From b6571777d28d59308e622883c9fe7d0765e406a8 Mon Sep 17 00:00:00 2001 From: Alex Mogurenko Date: Wed, 20 Nov 2019 13:22:46 +0200 Subject: [PATCH] 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 --- 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 */