nutdec: fix type of intermediate variable for ts calculation.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Sep 2012 04:27:38 +0000 (06:27 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Sep 2012 04:27:38 +0000 (06:27 +0200)
Prior to this it could theoretically become negative and read
out of array.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nutdec.c

index 397e44f..becf7a4 100644 (file)
@@ -527,7 +527,8 @@ static int decode_syncpoint(NUTContext *nut, int64_t *ts, int64_t *back_ptr)
 {
     AVFormatContext *s = nut->avf;
     AVIOContext *bc    = s->pb;
-    int64_t end, tmp;
+    int64_t end;
+    uint64_t tmp;
 
     nut->last_syncpoint_pos = avio_tell(bc) - 8;