diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index 1567e14a1f..d9bb64e31f 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -215,6 +215,7 @@ static av_cold int decode_init(AVCodecContext *avctx) if (avctx->idct_algo == FF_IDCT_AUTO) avctx->idct_algo = FF_IDCT_SIMPLE; avctx->pix_fmt = AV_PIX_FMT_YUVJ420P; + avctx->color_range = AVCOL_RANGE_JPEG; return 0; }