[FFmpeg-cvslog] vf_mp: check list in querry_format()

Michael Niedermayer git at videolan.org
Fri Oct 19 20:00:23 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 19 19:51:33 2012 +0200| [042a738b4599e7d454b4d9298e065ce91ec18da3] | committer: Michael Niedermayer

vf_mp: check list in querry_format()

Fixes CID717772
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=042a738b4599e7d454b4d9298e065ce91ec18da3
---

 libavfilter/vf_mp.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c
index 377a8b5..e31fccd 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;



More information about the ffmpeg-cvslog mailing list