[FFmpeg-cvslog] ape: Use the proper variable type

Luca Barbato git at videolan.org
Sun Feb 15 21:49:54 CET 2015


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sat Feb 14 16:15:37 2015 +0100| [e1a57cbb1c2752feb9315f748836dc44e58d2dc6] | committer: Luca Barbato

ape: Use the proper variable type

Avoid an unsigned underflow.

Bug-Id: 1041122
CC: libav-stable at libav.org

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1a57cbb1c2752feb9315f748836dc44e58d2dc6
---

 libavformat/apetag.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/apetag.c b/libavformat/apetag.c
index bd8d0ed..4d65301 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 */



More information about the ffmpeg-cvslog mailing list