]> git.sesse.net Git - ffmpeg/commitdiff
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 5e7a4a11502082aa1a6bb1a0b885b2893781f136..a0a475a350f74c67a5f881f3c584f8e27daac68e 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;