10l
authorVitor Sessak <vitor1001@gmail.com>
Fri, 4 Apr 2008 20:07:44 +0000 (20:07 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Fri, 4 Apr 2008 20:07:44 +0000 (20:07 +0000)
Commited in SoC by Bobby Bingham on 2007-12-20 20:21:19

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

libavfilter/avfiltergraph.c

index 665f80e..98e1466 100644 (file)
@@ -412,9 +412,9 @@ static int query_formats(AVFilterContext *graphctx)
 
                     avfilter_graph_add_filter(graphctx, scale);
                     scale->filter->query_formats(scale);
-                    if(avfilter_merge_formats(scale-> inputs[0]->in_formats,
+                    if(!avfilter_merge_formats(scale-> inputs[0]->in_formats,
                                               scale-> inputs[0]->out_formats) ||
-                       avfilter_merge_formats(scale->outputs[0]->in_formats,
+                       !avfilter_merge_formats(scale->outputs[0]->in_formats,
                                               scale->outputs[0]->out_formats))
                         return -1;
                 }