summaryrefslogtreecommitdiff
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-05-08 17:01:50 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-05-09 15:55:50 +0200
commitb9f7a677083647d85e583d6d7384938766a293d7 (patch)
treecfbcf824a64ecbe2db2f393e594739b84277d290 /libavcodec/pngdec.c
parent254f3daba4271c1918d9a7ad155b1442ef93ed29 (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.c2
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);