mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
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:
parent
254f3daba4
commit
b9f7a67708
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user