diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-04-05 00:06:28 +0400 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-04-05 00:06:28 +0400 |
commit | 7b712850d2addea6e2b584bb223ffe74c08577bd (patch) | |
tree | 9b4d8efce16c846ce9755f741b944b8a9ab53269 | |
parent | 7f8fb52f066fb87ec0905e89ca74208e0d663e5a (diff) |
Fix behavior when exporting output pad with default query_formats()
Commited in SoC by Bobby Bingham on 2007-08-08 04:25:08
Originally committed as revision 12697 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavfilter/avfiltergraph.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index c01e81294b..dae2c979f0 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -257,8 +257,10 @@ static int *graph_out_query_formats(AVFilterLink *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); + 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); } |