[vlc-commits] [Git][videolan/vlc][master] demux: mkv: make sure the first cluster has a timestamp for an infinite Cluster
    Steve Lhomme (@robUx4) 
    gitlab at videolan.org
       
    Sat Jun  1 04:56:03 UTC 2024
    
    
  
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
3a4a3dea by Steve Lhomme at 2024-06-01T04:40:07+00:00
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
- - - - -
1 changed file:
- modules/demux/mkv/matroska_segment.cpp
Changes:
=====================================
modules/demux/mkv/matroska_segment.cpp
=====================================
@@ -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 );
 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3a4a3dea5b6f40ccf646989b42a8c075b80667f0
-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3a4a3dea5b6f40ccf646989b42a8c075b80667f0
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
    
    
More information about the vlc-commits
mailing list