mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
avcodec/pngdec: remove the unnecessary type conversion
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
9d442102b9
commit
4cea39ad9b
@ -415,7 +415,7 @@ static int png_decode_idat(PNGDecContext *s, int length)
|
||||
{
|
||||
int ret;
|
||||
s->zstream.avail_in = FFMIN(length, bytestream2_get_bytes_left(&s->gb));
|
||||
s->zstream.next_in = (unsigned char *)s->gb.buffer;
|
||||
s->zstream.next_in = s->gb.buffer;
|
||||
bytestream2_skip(&s->gb, length);
|
||||
|
||||
/* decode one line if possible */
|
||||
@ -454,7 +454,7 @@ static int decode_zbuf(AVBPrint *bp, const uint8_t *data,
|
||||
zstream.opaque = NULL;
|
||||
if (inflateInit(&zstream) != Z_OK)
|
||||
return AVERROR_EXTERNAL;
|
||||
zstream.next_in = (unsigned char *)data;
|
||||
zstream.next_in = data;
|
||||
zstream.avail_in = data_end - data;
|
||||
av_bprint_init(bp, 0, AV_BPRINT_SIZE_UNLIMITED);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user