mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
qtdemux: Increment current stts index whenever we finished one stts entry
Otherwise we could read more chunks than there are available, doing an out of bounds read and potentially crash. https://bugzilla.gnome.org/show_bug.cgi?id=777469
This commit is contained in:
parent
db1757503d
commit
1ffef8bf60
1 changed files with 2 additions and 0 deletions
|
@ -8545,6 +8545,8 @@ done2:
|
|||
/* save values */
|
||||
stream->stts_time = stts_time;
|
||||
stream->stts_sample_index = j + 1;
|
||||
if (stream->stts_sample_index >= stream->stts_samples)
|
||||
stream->stts_index++;
|
||||
goto done3;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue