ffmpeg | branch: release/2.4 | wm4 <nfx...@googlemail.com> | Fri May  8 
17:01:50 2015 +0200| [0f50c53cfb959162f2bccc1a2c2e066d35723595] | committer: 
Vittorio Giovara

png: Set the color range as full range

The format uses full range for the gray formats.

CC: libav-sta...@libav.org

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

 libavcodec/pngdec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index fa7f7cc..2790bf4 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -645,6 +645,8 @@ static av_cold int png_dec_init(AVCodecContext *avctx)
 {
     PNGDecContext *s = avctx->priv_data;
 
+    avctx->color_range = AVCOL_RANGE_JPEG;
+
     s->prev = av_frame_alloc();
     if (!s->prev)
         return AVERROR(ENOMEM);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to