]> git.sesse.net Git - ffmpeg/commitdiff
ape: Use the proper variable type
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 14 Feb 2015 15:15:37 +0000 (16:15 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 15 Feb 2015 17:20:54 +0000 (18:20 +0100)
Avoid an unsigned underflow.

Bug-Id: 1041122
CC: libav-stable@libav.org
libavformat/apetag.c

index bd8d0ed48554af64ffe899a71b9375f70c07e2f6..4d653016970ecb9bb1df2c476d9adc14d2c01ab7 100644 (file)
@@ -40,7 +40,7 @@ static int ape_tag_read_field(AVFormatContext *s)
 {
     AVIOContext *pb = s->pb;
     uint8_t key[1024], *value;
-    uint32_t size, flags;
+    int64_t size, flags;
     int i, c;
 
     size = avio_rl32(pb);  /* field size */