[vlc-commits] [Git][videolan/vlc][master] mux: mp4: fix loop index never used

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Feb 16 15:02:33 UTC 2025



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
22ea21dc by Steve Lhomme at 2025-02-16T14:47:35+00:00
mux: mp4: fix loop index never used

- - - - -


1 changed file:

- modules/mux/mp4/libmp4mux.c


Changes:

=====================================
modules/mux/mp4/libmp4mux.c
=====================================
@@ -1858,7 +1858,7 @@ bo_t * mp4mux_GetMoov(mp4mux_handle_t *h, vlc_object_t *p_obj, vlc_tick_t i_dura
     if( i_duration == 0 && (h->options & FRAGMENTED) == 0 )
     {
         for (unsigned int i = 0; i < vlc_array_count(&h->tracks); i++) {
-            mp4mux_trackinfo_t *p_stream = vlc_array_item_at_index(&h->tracks, 0);
+            mp4mux_trackinfo_t *p_stream = vlc_array_item_at_index(&h->tracks, i);
             i_duration = __MAX(i_duration, p_stream->i_read_duration);
         }
         if(p_obj)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/22ea21dc9efff3e1ce539a098e4839975051bbe5

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/22ea21dc9efff3e1ce539a098e4839975051bbe5
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