diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index b9ffca6a348962d59c051739093b35f8aa941fb8..d6c6060f0487a777b0f35b033f5d9b69b7e8382d 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -219,6 +219,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; }