[FFmpeg-cvslog] avcodec/mjpegbdec: Fix yuv444 pix_fmt detection

Alex Mogurenko git at videolan.org
Wed Nov 20 19:36:01 EET 2019


ffmpeg | branch: master | Alex Mogurenko <alex at mogurenko.com> | Wed Nov 20 13:22:46 2019 +0200| [b6571777d28d59308e622883c9fe7d0765e406a8] | committer: Carl Eugen Hoyos

avcodec/mjpegbdec: Fix yuv444 pix_fmt detection

by default adobe_transform set to 0 and because of that mjpegb decoder detects yuv444 pix fmt as bgrp

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

 libavcodec/mjpegbdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mjpegbdec.c b/libavcodec/mjpegbdec.c
index 37d7bb8228..70ff4cf563 100644
--- a/libavcodec/mjpegbdec.c
+++ b/libavcodec/mjpegbdec.c
@@ -56,6 +56,7 @@ static int mjpegb_decode_frame(AVCodecContext *avctx,
     buf_ptr = buf;
     buf_end = buf + buf_size;
     s->got_picture = 0;
+    s->adobe_transform = -1;
 
 read_header:
     /* reset on every SOI */



More information about the ffmpeg-cvslog mailing list