[FFmpeg-cvslog] mjpegdec: Properly set the context colorspace info
Derek Buitenhuis
git at videolan.org
Tue Jun 24 22:25:06 CEST 2014
ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Tue Jun 24 17:38:54 2014 +0100| [2deb614272e6faad8802c5341971d08c7272f74d] | committer: Derek Buitenhuis
mjpegdec: Properly set the context colorspace info
The JPEG spec requires it to be this.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2deb614272e6faad8802c5341971d08c7272f74d
---
libavcodec/mjpegdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index adcab4f..f674539 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -103,6 +103,7 @@ av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
s->first_picture = 1;
s->org_height = avctx->coded_height;
avctx->chroma_sample_location = AVCHROMA_LOC_CENTER;
+ avctx->colorspace = AVCOL_SPC_BT470BG;
build_basic_mjpeg_vlc(s);
More information about the ffmpeg-cvslog
mailing list