Commit b9f7a677 authored by wm4's avatar wm4 Committed by Luca Barbato

png: Set the color range as full range

The format uses full range for the gray formats.

CC: libav-stable@libav.org
parent 254f3dab
...@@ -646,6 +646,8 @@ static av_cold int png_dec_init(AVCodecContext *avctx) ...@@ -646,6 +646,8 @@ static av_cold int png_dec_init(AVCodecContext *avctx)
{ {
PNGDecContext *s = avctx->priv_data; PNGDecContext *s = avctx->priv_data;
avctx->color_range = AVCOL_RANGE_JPEG;
s->prev = av_frame_alloc(); s->prev = av_frame_alloc();
if (!s->prev) if (!s->prev)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment