avcodec/pngdec: remove AVFrame argument from decode_iccp_chunk()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7117b380a7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/6.0
Michael Niedermayer 2 years ago
parent 8c8a08e1bf
commit 344f333c6c
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 4
      libavcodec/pngdec.c

@ -883,7 +883,7 @@ static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s,
return 0;
}
static int decode_iccp_chunk(PNGDecContext *s, GetByteContext *gb, AVFrame *f)
static int decode_iccp_chunk(PNGDecContext *s, GetByteContext *gb)
{
int ret, cnt = 0;
AVBPrint bp;
@ -1338,7 +1338,7 @@ static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s,
s->have_srgb = 1;
break;
case MKTAG('i', 'C', 'C', 'P'): {
if ((ret = decode_iccp_chunk(s, &gb_chunk, p)) < 0)
if ((ret = decode_iccp_chunk(s, &gb_chunk)) < 0)
goto fail;
break;
}

Loading…
Cancel
Save