diff --git a/libavformat/apetag.c b/libavformat/apetag.c index 68f2df6c56..d4be91c837 100644 --- a/libavformat/apetag.c +++ b/libavformat/apetag.c @@ -118,7 +118,7 @@ static int ape_tag_read_field(AVFormatContext *s) int64_t ff_ape_parse_tag(AVFormatContext *s) { AVIOContext *pb = s->pb; - int file_size = avio_size(pb); + int64_t file_size = avio_size(pb); uint32_t val, fields, tag_bytes; uint8_t buf[8]; int64_t tag_start;