mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
matroskademux: avoid infinite cluster scanning
This commit is contained in:
parent
49d5d8f69e
commit
e0d11f0644
1 changed files with 7 additions and 0 deletions
|
@ -2515,6 +2515,13 @@ retry:
|
|||
if (cluster_time > time) {
|
||||
GST_DEBUG_OBJECT (demux, "overshot target");
|
||||
/* cluster overshoots */
|
||||
if (cluster_offset == demux->first_cluster_offset) {
|
||||
/* but no prev one */
|
||||
GST_DEBUG_OBJECT (demux, "but using first cluster anyway");
|
||||
prev_cluster_time = cluster_time;
|
||||
prev_cluster_offset = cluster_offset;
|
||||
break;
|
||||
}
|
||||
if (prev_cluster_time != GST_CLOCK_TIME_NONE) {
|
||||
/* prev cluster did not overshoot, so prev cluster is target */
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue