[vlc-commits] [Git][videolan/vlc][master] hds: fix crash if bootstrap data or URL are missing

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Oct 18 11:56:21 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
01934b33 by Tristan Matthews at 2024-10-18T11:22:33+00:00
hds: fix crash if bootstrap data or URL are missing

- - - - -


1 changed file:

- modules/stream_filter/hds/hds.c


Changes:

=====================================
modules/stream_filter/hds/hds.c
=====================================
@@ -1555,7 +1555,7 @@ static int parse_Manifest( stream_t *s, manifest_t *m )
                     new_stream->metadata_len = medias[i].metadata_len;
                 }
 
-                if( ! sys->live )
+                if( ! sys->live && bootstraps[j].data )
                 {
                     parse_BootstrapData( VLC_OBJECT(s),
                                          new_stream,
@@ -1577,7 +1577,7 @@ static int parse_Manifest( stream_t *s, manifest_t *m )
                             total_duration += chunk->duration;
                     }
                 }
-                else
+                else if( bootstraps[j].url )
                 {
                     if( !(new_stream->abst_url = strdup( bootstraps[j].url ) ) )
                     {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/01934b339cf5f467c9c2e3a7fb61c7458347684c

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