ffmpeg | branch: master | Alex Mogurenko <a...@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 */

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to