diff options
author | wm4 <nfxjfg@googlemail.com> | 2015-05-08 18:01:50 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-05-09 16:55:50 +0300 |
commit | b9f7a677083647d85e583d6d7384938766a293d7 (patch) | |
tree | cfbcf824a64ecbe2db2f393e594739b84277d290 /libavcodec/pngdec.c | |
parent | 254f3daba4271c1918d9a7ad155b1442ef93ed29 (diff) |
png: Set the color range as full range
The format uses full range for the gray formats.
CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/pngdec.c')
-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); |