avformat/apngdec: Use 64bit ret to avoid overflow
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Feb 2015 18:31:10 +0000 (19:31 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Feb 2015 18:31:10 +0000 (19:31 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/apngdec.c

index 5e7a4a1..a0a475a 100644 (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;