[FFmpeg-cvslog] avfilter/vf_vectorscope: avoid crash by explicitly checking for 8-bit depth
Paul B Mahol
git at videolan.org
Wed Mar 2 09:51:53 CET 2016
ffmpeg | branch: master | Paul B Mahol <onemda at 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 <onemda at 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;
More information about the ffmpeg-cvslog
mailing list