summaryrefslogtreecommitdiff
path: root/libavfilter/vf_mp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-19 19:51:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-19 19:59:38 +0200
commit042a738b4599e7d454b4d9298e065ce91ec18da3 (patch)
treed6225e4b38e108438f0e88d1a178604c3a64f7f8 /libavfilter/vf_mp.c
parent31fdf3065daceb31e12fd26a367445676d761180 (diff)
vf_mp: check list in querry_format()
Fixes CID717772 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_mp.c')
-rw-r--r--libavfilter/vf_mp.c3
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;