mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfilter: Properly check for failed format query
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
1dbc3e8ac8
commit
23c9ebffb5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user