summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-03-12 14:35:21 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-03-16 23:31:30 +0100
commit2183432e6dc8aedf1ef3db63006a2a8195479abd (patch)
tree18fe7a0da290e588954c27c5c5c1da3481182465
parent1c1fbc70cae44c10af8ff865826e31c17bc9f347 (diff)
downloadffmpeg-streaming-2183432e6dc8aedf1ef3db63006a2a8195479abd.zip
ffmpeg-streaming-2183432e6dc8aedf1ef3db63006a2a8195479abd.tar.gz
mdec: set color_range
-rw-r--r--libavcodec/mdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index b9ffca6..d6c6060 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;
}
OpenPOWER on IntegriCloud