aboutsummaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer2015-09-15 04:14:55 +0200
committerMichael Niedermayer2015-09-15 04:26:19 +0200
commit59c1fec9fb9441501bfa873094977cf3c95f77d5 (patch)
treecfbdac469efda7e6209b9cfbf05dc7d0e9768e86 /libavformat/avidec.c
parent3e2ef00394b8079e93835d47c993868229f07502 (diff)
avformat/avidec: Change (last)pos to 64bit
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 2b4bc84abb..1a4f1b55ec 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1526,8 +1526,9 @@ static int avi_read_idx1(AVFormatContext *s, int size)
int nb_index_entries, i;
AVStream *st;
AVIStream *ast;
- unsigned int index, tag, flags, pos, len, first_packet = 1;
- unsigned last_pos = -1;
+ int64_t pos;
+ unsigned int index, tag, flags, len, first_packet = 1;
+ int64_t last_pos = -1;
unsigned last_idx = -1;
int64_t idx1_pos, first_packet_pos = 0, data_offset = 0;
int anykey = 0;
@@ -1557,7 +1558,7 @@ static int avi_read_idx1(AVFormatContext *s, int size)
flags = avio_rl32(pb);
pos = avio_rl32(pb);
len = avio_rl32(pb);
- av_log(s, AV_LOG_TRACE, "%d: tag=0x%x flags=0x%x pos=0x%x len=%d/",
+ av_log(s, AV_LOG_TRACE, "%d: tag=0x%x flags=0x%x pos=0x%"PRIx64" len=%d/",
i, tag, flags, pos, len);
index = ((tag & 0xff) - '0') * 10;