Skip to content

Commit

Permalink
avfilter: Properly check for failed format query
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Buitenhuis <[email protected]>
  • Loading branch information
dwbuiten committed Oct 2, 2014
1 parent 1dbc3e8 commit 23c9ebf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libavfilter/avfiltergraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,9 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
if ((ret = avfilter_insert_filter(link, convert, 0, 0)) < 0)
return ret;

filter_query_formats(convert);
if ((ret = filter_query_formats(convert)) < 0)
return ret;

inlink = convert->inputs[0];
outlink = convert->outputs[0];
av_assert0( inlink-> in_formats->refcount > 0);
Expand Down

0 comments on commit 23c9ebf

Please sign in to comment.