png: Set the color range as full range

The format uses full range for the gray formats.

CC: libav-stable@libav.org
This commit is contained in:
wm4 2015-05-08 17:01:50 +02:00 committed by Vittorio Giovara
parent a55a706448
commit 0f50c53cfb
1 changed files with 2 additions and 0 deletions

View File

@ -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);