From e1a57cbb1c2752feb9315f748836dc44e58d2dc6 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 14 Feb 2015 16:15:37 +0100 Subject: ape: Use the proper variable type Avoid an unsigned underflow. Bug-Id: 1041122 CC: libav-stable@libav.org --- libavformat/apetag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/apetag.c') diff --git a/libavformat/apetag.c b/libavformat/apetag.c index bd8d0ed485..4d65301697 100644 --- a/libavformat/apetag.c +++ b/libavformat/apetag.c @@ -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 */ -- cgit v1.2.3