summaryrefslogtreecommitdiff
path: root/libavfilter/defaults.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-02-15 22:00:00 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-02-15 22:00:00 +0000
commitd0e4eba57cb773aefeda65c2a795a296e3ea9784 (patch)
treeef771ad13f38cf04c6fdd47662811a703b01e602 /libavfilter/defaults.c
parent4f909565968158dd6cf5116838e8863f4aa51ecc (diff)
Make an invalid use of a default callback implementation return an error.
Commited in SoC by Bobby Bingham on 2007-08-18 01:45:42 Originally committed as revision 12071 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r--libavfilter/defaults.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c
index 8abdb7e08f..4736c96d5c 100644
--- a/libavfilter/defaults.c
+++ b/libavfilter/defaults.c
@@ -98,8 +98,7 @@ int avfilter_default_config_output_link(AVFilterLink *link)
} else {
/* XXX: any non-simple filter which would cause this branch to be taken
* really should implement its own config_props() for this link. */
- link->w =
- link->h = 0;
+ return -1;
}
return 0;