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 bd8d0ed..4d65301 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 */