ape: Use the proper variable type

Avoid an unsigned underflow.

Bug-Id: 1041122
CC: libav-stable@libav.org
This commit is contained in:
Luca Barbato 2015-02-14 16:15:37 +01:00
parent b4cda0a999
commit e1a57cbb1c

View 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 */