Commit f230451b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'b9f7a677'

* commit 'b9f7a677':
  png: Set the color range as full range

Conflicts:
	libavcodec/pngdec.c

See: 72e75531Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 55231323 b9f7a677
......@@ -633,8 +633,6 @@ static int decode_idat_chunk(AVCodecContext *avctx, PNGDecContext *s,
return AVERROR_INVALIDDATA;
}
avctx->color_range = AVCOL_RANGE_JPEG;
if ((ret = ff_thread_get_buffer(avctx, &s->picture, AV_GET_BUFFER_FLAG_REF)) < 0)
return ret;
ff_thread_finish_setup(avctx);
......@@ -1245,6 +1243,8 @@ static av_cold int png_dec_init(AVCodecContext *avctx)
{
PNGDecContext *s = avctx->priv_data;
avctx->color_range = AVCOL_RANGE_JPEG;
s->avctx = avctx;
s->previous_picture.f = av_frame_alloc();
s->last_picture.f = av_frame_alloc();
......
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