[FFmpeg-devel] [PATCH] mjpegdec: Support 4x1, 2x1, 2x1 notation for 4:2:2 chroma subsampling
Derek Buitenhuis
derek.buitenhuis at gmail.com
Mon Jun 18 23:19:30 EEST 2018
Just one of the many, many ways to store this stuff in the header.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
Related reading, but not exactly the same type:
* https://github.com/libjpeg-turbo/libjpeg-turbo/issues/92
* https://github.com/libjpeg-turbo/libjpeg-turbo/commit/8ce2c9119a995ef6280f8bba375aac7effb9b571
---
libavcodec/mjpegdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index d1dca84d36..e5888ed548 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -568,6 +568,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
}
break;
case 0x21111100:
+ case 0x41212100:
if (s->component_id[0] == 'Q' && s->component_id[1] == 'F' && s->component_id[2] == 'A') {
if (s->bits <= 8) s->avctx->pix_fmt = AV_PIX_FMT_GBRP;
else
--
2.17.1
More information about the ffmpeg-devel
mailing list