Actually fail when colorspaces don't match
authorVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:36:21 +0000 (21:36 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:36:21 +0000 (21:36 +0000)
Commited in SoC by Bobby Bingham on 2007-07-08 17:58:45

Originally committed as revision 11984 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/avfilter.c

index 872d62fc60892e90f45457839b6a7e8f5d43eed8..18452e984ddce699c765f539f99b48ad62740815 100644 (file)
@@ -142,6 +142,7 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
     link->cur_pic = NULL;
 
     /* find a format both filters support - TODO: auto-insert conversion filter */
+    link->format = -1;
     if(src->filter->outputs[srcpad].query_formats)
         fmts[0] = src->filter->outputs[srcpad].query_formats(link);
     else