aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
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:42:40 +0100
commit2deb614272e6faad8802c5341971d08c7272f74d (patch)
tree61cea52a3072950a50a7282eb64ca0043062c65f /libavcodec
parent772d150a6e82542c06b0c251e73dd299d98d1027 (diff)
downloadffmpeg-2deb614272e6faad8802c5341971d08c7272f74d.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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mjpegdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index adcab4f443..f674539507 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);