mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
avformat/avidec: Change (last)pos to 64bit
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1526,8 +1526,9 @@ static int avi_read_idx1(AVFormatContext *s, int size)
|
|||||||
int nb_index_entries, i;
|
int nb_index_entries, i;
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
AVIStream *ast;
|
AVIStream *ast;
|
||||||
unsigned int index, tag, flags, pos, len, first_packet = 1;
|
int64_t pos;
|
||||||
unsigned last_pos = -1;
|
unsigned int index, tag, flags, len, first_packet = 1;
|
||||||
|
int64_t last_pos = -1;
|
||||||
unsigned last_idx = -1;
|
unsigned last_idx = -1;
|
||||||
int64_t idx1_pos, first_packet_pos = 0, data_offset = 0;
|
int64_t idx1_pos, first_packet_pos = 0, data_offset = 0;
|
||||||
int anykey = 0;
|
int anykey = 0;
|
||||||
@@ -1557,7 +1558,7 @@ static int avi_read_idx1(AVFormatContext *s, int size)
|
|||||||
flags = avio_rl32(pb);
|
flags = avio_rl32(pb);
|
||||||
pos = avio_rl32(pb);
|
pos = avio_rl32(pb);
|
||||||
len = 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);
|
i, tag, flags, pos, len);
|
||||||
|
|
||||||
index = ((tag & 0xff) - '0') * 10;
|
index = ((tag & 0xff) - '0') * 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user