Skip to content
Snippets Groups Projects
Commit f38d0d0c authored by Paul B Mahol's avatar Paul B Mahol
Browse files

avformat/ty: check cur_chunk_pos before using it


Fixes #6831.

Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent a38b14a4
No related branches found
No related tags found
No related merge requests found
......@@ -378,6 +378,8 @@ static void parse_master(AVFormatContext *s)
ty->cur_chunk_pos = 32;
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->cur_chunk_pos += 8;
if (map_size > 8) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment