mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-18 04:50:11 +01:00
png: Set the color range as full range
The format uses full range for the gray formats.
CC: libav-stable@libav.org
(cherry picked from commit 0f50c53cfb)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:
@@ -629,6 +629,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);
|
||||||
|
|||||||
Reference in New Issue
Block a user