summaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-11-28 14:43:17 +0100
committerLuca Barbato <lu_zero@gentoo.org>2015-12-02 23:49:10 +0100
commitd017ed878a45171f2f6c69fb9d76401c3c494110 (patch)
tree7d5b9aefcda38356217f5dd03cd0bbe21248eea0 /libavformat/avidec.c
parent7f57ea143c55ce5732ef7e31e4b75ae6c307af13 (diff)
avi: Use the correct data type
avio_tell returns an int64_t.
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 659bfa7b6d..43c178ff7e 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -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) {