[FFmpeg-cvslog] mdec: set color_range

Vittorio Giovara git at videolan.org
Mon Mar 17 16:21:38 CET 2014


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Mar 12 14:35:21 2014 +0100| [2183432e6dc8aedf1ef3db63006a2a8195479abd] | committer: Vittorio Giovara

mdec: set color_range

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2183432e6dc8aedf1ef3db63006a2a8195479abd
---

 libavcodec/mdec.c |    1 +
 1 file changed, 1 insertion(+)

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;
 }



More information about the ffmpeg-cvslog mailing list