OSDN Git Service

mov_probe: fix integer overflows
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Oct 2012 15:20:12 +0000 (17:20 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Oct 2012 15:50:14 +0000 (17:50 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c

index b817bc9..7e65323 100644 (file)
@@ -2858,7 +2858,7 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom)
 
 static int mov_probe(AVProbeData *p)
 {
-    unsigned int offset;
+    int64_t offset;
     uint32_t tag;
     int score = 0;