diff options
-rw-r--r-- | libavfilter/avfiltergraph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 665f80e600..98e14661f3 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -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; } |