diff options
author | wm4 <nfxjfg@googlemail.com> | 2015-05-08 17:01:50 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-05-09 15:55:50 +0200 |
commit | b9f7a677083647d85e583d6d7384938766a293d7 (patch) | |
tree | cfbcf824a64ecbe2db2f393e594739b84277d290 | |
parent | 254f3daba4271c1918d9a7ad155b1442ef93ed29 (diff) | |
download | ffmpeg-b9f7a677083647d85e583d6d7384938766a293d7.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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index c8bfa36398..823d77f027 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -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); |