Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
eadb90ff by Tristan Matthews at 2024-10-18T08:49:27-04:00
hds: fix crash if bootstrap data or URL are missing
(cherry picked from commit 01934b339cf5f467c9c2e3a7fb61c7458347684c)
- - - - -
1 changed file:
- modules/stream_filter/hds/hds.c
Changes:
=====================================
modules/stream_filter/hds/hds.c
=====================================
@@ -1557,7 +1557,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_t*)s,
new_stream,
@@ -1579,7 +1579,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/eadb90ffad45a39c725f52382782926a58c4e534
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/eadb90ffad45a39c725f52382782926a58c4e534
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits