From 2183432e6dc8aedf1ef3db63006a2a8195479abd Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 12 Mar 2014 14:35:21 +0100 Subject: mdec: set color_range --- libavcodec/mdec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/mdec.c') diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index b9ffca6a34..d6c6060f04 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; } -- cgit v1.2.3