Commit c11043ac authored by Derek Buitenhuis's avatar Derek Buitenhuis

mjpegdec: Properly set the context colorspace info

The JPEG spec requires it to be this.
Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 74bd039f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment