summaryrefslogtreecommitdiff
path: root/libavformat/apetag.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-02-14 16:15:37 +0100
committerLuca Barbato <lu_zero@gentoo.org>2015-02-15 18:20:54 +0100
commite1a57cbb1c2752feb9315f748836dc44e58d2dc6 (patch)
treef49678ff99470de52276851878a366099bc0ef15 /libavformat/apetag.c
parentb4cda0a999facbddacb95861a67ff61074edc39b (diff)
ape: Use the proper variable type
Avoid an unsigned underflow. Bug-Id: 1041122 CC: libav-stable@libav.org
Diffstat (limited to 'libavformat/apetag.c')
-rw-r--r--libavformat/apetag.c2
1 files changed, 1 insertions, 1 deletions
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 */