[FFmpeg-devel] [PATCH] mjpegdec: Properly set the context colorspace info
Derek Buitenhuis
derek.buitenhuis at gmail.com
Tue Jun 24 18:38:54 CEST 2014
The JPEG spec requires it to be this.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
libavcodec/mjpegdec.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index c5ebb77..8cdc0cf 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -118,6 +118,7 @@ av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
s->got_picture = 0;
s->org_height = avctx->coded_height;
avctx->chroma_sample_location = AVCHROMA_LOC_CENTER;
+ avctx->colorspace = AVCOL_SPC_BT470BG;
build_basic_mjpeg_vlc(s);
--
1.7.1
More information about the ffmpeg-devel
mailing list