This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/ty: check cur_chunk_pos before using it
Fixes
#6831
. Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n4.0
Paul B Mahol
8 years ago
parent
a38b14a432
commit
f38d0d0c22
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavformat/ty.c
+ 2
- 0
libavformat/ty.c
View File
@@ -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) {
Write
Preview
Loading…
Cancel
Save