avformat/apngdec: Use 64bit ret to avoid overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-02-20 19:31:10 +01:00
parent d4936d28a1
commit 0e3d6e17de

View File

@ -321,7 +321,7 @@ static int decode_fctl_chunk(AVFormatContext *s, APNGDemuxContext *ctx, AVPacket
static int apng_read_packet(AVFormatContext *s, AVPacket *pkt)
{
APNGDemuxContext *ctx = s->priv_data;
int ret;
int64_t ret;
int64_t size;
AVIOContext *pb = s->pb;
uint32_t len, tag;