png: Set the color range as full range
authorwm4 <nfxjfg@googlemail.com>
Fri, 8 May 2015 15:01:50 +0000 (17:01 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 19 May 2015 11:14:50 +0000 (12:14 +0100)
The format uses full range for the gray formats.

CC: libav-stable@libav.org
libavcodec/pngdec.c

index fa7f7cc..2790bf4 100644 (file)
@@ -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);