Make an invalid use of a default callback implementation return an error.
authorVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 22:00:00 +0000 (22:00 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 22:00:00 +0000 (22:00 +0000)
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

libavfilter/defaults.c

index 8abdb7e..4736c96 100644 (file)
@@ -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;