aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-06-24 17:38:54 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-06-24 20:40:44 +0100
commitc11043aca7365add6c4c80b7cff80d22dde0eb94 (patch)
treed09e4943525b3bd08bf6a58d003245d48034dc14
parent74bd039f8cc2edfd869d3feb75be9525b92a431f (diff)
downloadffmpeg-c11043aca7365add6c4c80b7cff80d22dde0eb94.tar.gz
mjpegdec: Properly set the context colorspace info
The JPEG spec requires it to be this. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r--libavcodec/mjpegdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index c5ebb7705d..8cdc0cf7e0 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);