Commit 042a738b authored by Michael Niedermayer's avatar Michael Niedermayer

vf_mp: check list in querry_format()

Fixes CID717772
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 31fdf306
...@@ -787,6 +787,9 @@ static int query_formats(AVFilterContext *ctx) ...@@ -787,6 +787,9 @@ static int query_formats(AVFilterContext *ctx)
} }
} }
if (!avfmts)
return -1;
//We assume all allowed input formats are also allowed output formats //We assume all allowed input formats are also allowed output formats
ff_set_common_formats(ctx, avfmts); ff_set_common_formats(ctx, avfmts);
return 0; return 0;
......
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