Browse code

avformat/gxf: Use 64bit for res to avoid overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 12987f89007ee82b9d3a6090085dfaef8461ab8b)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2015/02/21 04:14:56
Showing 1 changed files
... ...
@@ -560,7 +560,7 @@ static int gxf_packet(AVFormatContext *s, AVPacket *pkt) {
560 560
 }
561 561
 
562 562
 static int gxf_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) {
563
-    int res = 0;
563
+    int64_t res = 0;
564 564
     uint64_t pos;
565 565
     uint64_t maxlen = 100 * 1024 * 1024;
566 566
     AVStream *st = s->streams[0];