diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 19:51:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 19:59:38 +0200 |
commit | 042a738b4599e7d454b4d9298e065ce91ec18da3 (patch) | |
tree | d6225e4b38e108438f0e88d1a178604c3a64f7f8 /libavfilter | |
parent | 31fdf3065daceb31e12fd26a367445676d761180 (diff) | |
download | ffmpeg-042a738b4599e7d454b4d9298e065ce91ec18da3.tar.gz |
vf_mp: check list in querry_format()
Fixes CID717772
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_mp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c index 377a8b54eb..e31fccdef9 100644 --- a/libavfilter/vf_mp.c +++ b/libavfilter/vf_mp.c @@ -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 ff_set_common_formats(ctx, avfmts); return 0; |