mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 19:59:46 +00: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:
parent
74bd039f8c
commit
c11043aca7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user