Skip to content

Commit

Permalink
Merge pull request #2792 from gpac/buildbot-fix-infinite-loop-segment…
Browse files Browse the repository at this point in the history
…Template-absent

Fix infinite loop when segment_template is absent in MPD
  • Loading branch information
jeanlf committed Apr 5, 2024
2 parents 9e8e8d1 + 665bcdd commit 4e6807e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media_tools/mpd.c
Expand Up @@ -5164,7 +5164,7 @@ GF_Err gf_mpd_get_segment_start_time_with_timescale(s32 in_segment_index,
if (!rep->segment_template && !set->segment_template && !period->segment_template) {
GF_LOG(GF_LOG_WARNING, GF_LOG_DASH, ("[MPD] Representation without any SegmentBase, SegmentList or SegmentTemplate (non compliant). Assuming default SegmentBase\n"));
*out_segment_start_time = start_time;
return GF_OK;
return GF_NON_COMPLIANT_BITSTREAM;
}

if (period->segment_template) {
Expand Down

0 comments on commit 4e6807e

Please sign in to comment.