aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-05-08 17:01:50 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-05-19 12:14:50 +0100
commit0f50c53cfb959162f2bccc1a2c2e066d35723595 (patch)
tree2070a4735dce99ba07a259cca5a26303aedaa320
parenta55a70644872027fdf76a75edf12a09c9008880f (diff)
downloadffmpeg-0f50c53cfb959162f2bccc1a2c2e066d35723595.tar.gz
png: Set the color range as full range
The format uses full range for the gray formats. CC: libav-stable@libav.org
-rw-r--r--libavcodec/pngdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index fa7f7cc0a6..2790bf432b 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);