ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Tue Mar 1 11:05:00 2016 +0100| [85dd497baad0f0667636bb17c6d2463d5f15a532] | committer: Paul B Mahol
avfilter/vf_vectorscope: avoid crash by explicitly checking for 8-bit depth Signed-off-by: Paul B Mahol <one...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=85dd497baad0f0667636bb17c6d2463d5f15a532 --- libavfilter/vf_vectorscope.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_vectorscope.c b/libavfilter/vf_vectorscope.c index 7389035..3659f79 100644 --- a/libavfilter/vf_vectorscope.c +++ b/libavfilter/vf_vectorscope.c @@ -181,8 +181,10 @@ static int query_formats(AVFilterContext *ctx) out_pix_fmts = out_yuv9_pix_fmts; else if (depth == 10) out_pix_fmts = out_yuv10_pix_fmts; - else + else if (depth == 8) out_pix_fmts = out_yuv8_pix_fmts; + else + return AVERROR(EAGAIN); if ((ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats)) < 0) return ret; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog