png: Set the color range as full range
authorwm4 <nfxjfg@googlemail.com>
Fri, 8 May 2015 15:01:50 +0000 (17:01 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 9 May 2015 13:55:50 +0000 (15:55 +0200)
The format uses full range for the gray formats.

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

index c8bfa36..823d77f 100644 (file)
@@ -646,6 +646,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);