]> git.sesse.net Git - ffmpeg/commitdiff
avi: Use the correct data type
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 28 Nov 2015 13:43:17 +0000 (14:43 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 2 Dec 2015 22:49:10 +0000 (23:49 +0100)
avio_tell returns an int64_t.

libavformat/avidec.c

index 659bfa7b6d60e557d5457d069009db65532e04b4..43c178ff7e2cc68cf885892cee708a88eb942718 100644 (file)
@@ -367,6 +367,7 @@ static int avi_read_header(AVFormatContext *s)
     int avih_width      = 0, avih_height = 0;
     int amv_file_format = 0;
     uint64_t list_end   = 0;
+    int64_t pos;
     int ret;
 
     avi->stream_index = -1;
@@ -759,12 +760,12 @@ static int avi_read_header(AVFormatContext *s)
             }
             break;
         case MKTAG('i', 'n', 'd', 'x'):
-            i = avio_tell(pb);
+            pos = avio_tell(pb);
             if (pb->seekable && !(s->flags & AVFMT_FLAG_IGNIDX) &&
                 read_braindead_odml_indx(s, 0) < 0 &&
                 (s->error_recognition & AV_EF_EXPLODE))
                 goto fail;
-            avio_seek(pb, i + size, SEEK_SET);
+            avio_seek(pb, pos + size, SEEK_SET);
             break;
         case MKTAG('v', 'p', 'r', 'p'):
             if (stream_index < (unsigned)s->nb_streams && size > 9 * 4) {