From 01934b339cf5f467c9c2e3a7fb61c7458347684c Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Wed, 16 Oct 2024 15:29:35 -0400 Subject: [PATCH] hds: fix crash if bootstrap data or URL are missing --- modules/stream_filter/hds/hds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c index 6a278a774c..f1e58eda1d 100644 --- a/modules/stream_filter/hds/hds.c +++ b/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 ) ) ) {