You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mjpegdec: Properly set the context colorspace info
The JPEG spec requires it to be this. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
@@ -103,6 +103,7 @@ av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
|
|||||||
s->first_picture = 1;
|
s->first_picture = 1;
|
||||||
s->org_height = avctx->coded_height;
|
s->org_height = avctx->coded_height;
|
||||||
avctx->chroma_sample_location = AVCHROMA_LOC_CENTER;
|
avctx->chroma_sample_location = AVCHROMA_LOC_CENTER;
|
||||||
|
avctx->colorspace = AVCOL_SPC_BT470BG;
|
||||||
|
|
||||||
build_basic_mjpeg_vlc(s);
|
build_basic_mjpeg_vlc(s);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user