Commit 9a7b6e15 authored by vitor's avatar vitor

Fix behavior when exporting output pad with default query_formats()

Commited in SoC by Bobby Bingham on 2007-08-08 04:25:08


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12697 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d35851b5
...@@ -257,8 +257,10 @@ static int *graph_out_query_formats(AVFilterLink *link) ...@@ -257,8 +257,10 @@ static int *graph_out_query_formats(AVFilterLink *link)
{ {
AVFilterLink *link2 = get_intern_output_link(link); AVFilterLink *link2 = get_intern_output_link(link);
if(!link2 || !link2->src->output_pads[link2->srcpad].query_formats) if(!link2)
return avfilter_make_format_list(0); return avfilter_make_format_list(0);
if(!link2->src->output_pads[link2->srcpad].query_formats)
return avfilter_default_query_output_formats(link2);
return link2->src->output_pads[link2->srcpad].query_formats(link2); return link2->src->output_pads[link2->srcpad].query_formats(link2);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment