Skip to content
Snippets Groups Projects
Commit 3a4a3dea authored by Steve Lhomme's avatar Steve Lhomme
Browse files

demux: mkv: make sure the first cluster has a timestamp for an infinite Cluster

We don't use the Cluster otherwise and can read at all.

Ref #28653
parent 918e9a33
No related branches found
No related tags found
1 merge request!5474demux: mkv: make sure the first cluster has a timestamp for an infinite Cluster
Pipeline #476067 passed with warnings with stage
in 17 minutes and 41 seconds
......@@ -1027,7 +1027,12 @@ void matroska_segment_c::EnsureDuration()
if ( b_cues && _seeker._cluster_positions.size() )
i_last_cluster_pos = *_seeker._cluster_positions.rbegin();
else if( !cluster->IsFiniteSize() )
{
if ( i_last_cluster_pos == cluster->GetElementPosition() )
// make sure our first Cluster has a timestamp
ParseCluster( cluster, false, SCOPE_PARTIAL_DATA );
return;
}
es.I_O().setFilePointer( i_last_cluster_pos, seek_beginning );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment