[vlc-commits] [Git][videolan/vlc][master] demux: mp4: reenable quicktime spu alternative for chapters

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu May 4 09:58:41 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8e9246f8 by Francois Cartegnie at 2023-05-04T09:13:08+00:00
demux: mp4: reenable quicktime spu alternative for chapters

- - - - -


1 changed file:

- modules/demux/mp4/mp4.c


Changes:

=====================================
modules/demux/mp4/mp4.c
=====================================
@@ -3848,9 +3848,12 @@ static void MP4_TrackSetup( demux_t *p_demux, mp4_track_t *p_track,
     if( !p_track->b_enable || (p_track->i_use_flags & USEAS_CHAPTERS) )
         p_track->fmt.i_priority = ES_PRIORITY_NOT_DEFAULTABLE;
 
+    if( !p_sys->b_quicktime || (p_track->i_use_flags & USEAS_CHAPTERS) == 0 )
+        b_create_es &= !MP4_isMetadata( p_track );
+
     if( TrackCreateES( p_demux,
                        p_track, p_track->i_chunk,
-                      (MP4_isMetadata( p_track ) || !b_create_es) ? NULL : &p_track->p_es ) )
+                       !b_create_es ? NULL : &p_track->p_es ) )
     {
         msg_Err( p_demux, "cannot create es for track[Id 0x%x]",
                  p_track->i_track_ID );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8e9246f8684ae7a499f162e5dcdb1d0d0770455e

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