mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/ty: check cur_chunk_pos before using it
Fixes #6831. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
a38b14a432
commit
f38d0d0c22
@ -378,6 +378,8 @@ static void parse_master(AVFormatContext *s)
|
|||||||
|
|
||||||
ty->cur_chunk_pos = 32;
|
ty->cur_chunk_pos = 32;
|
||||||
for (j = 0; j < ty->seq_table_size; j++) {
|
for (j = 0; j < ty->seq_table_size; j++) {
|
||||||
|
if (ty->cur_chunk_pos >= CHUNK_SIZE - 8)
|
||||||
|
return;
|
||||||
ty->seq_table[j].timestamp = AV_RB64(ty->chunk + ty->cur_chunk_pos);
|
ty->seq_table[j].timestamp = AV_RB64(ty->chunk + ty->cur_chunk_pos);
|
||||||
ty->cur_chunk_pos += 8;
|
ty->cur_chunk_pos += 8;
|
||||||
if (map_size > 8) {
|
if (map_size > 8) {
|
||||||
|
Loading…
Reference in New Issue
Block a user