You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SegmentBase getSegmentTimeUs does not perform a bounds check, results in out of bounds error #11014
Provide a dash manifest with an empty segmentTimeline, getSegmentTimeUs attempts to index into segmentTimeline which is empty, resulting in an out of bounds error.
Expected result
Something other than an out of bounds error, perhaps an error or warn that the segmentTimeline is empty.
Actual result
Index out of bounds exception
Media
This was the mpd in question. May violate DASH spec, but a more useful error would be appreciated DASH_EXAMPLE.zip
Bug Report
You will email the zip file produced by adb bugreport to [email protected] after filing this issue.
The attached MPD fails to parse because it has id="2-sd-video" in one of the AdaptationSet nodes, which is just not allowed because the value is supposed to be an unsigned integer. Even if I hackily ignore this issue in code, I can't see the problem with getSegmentTimeUs you are describing? It would also help to see a stack trace to know how the problem is triggered.
Ah, apologies, that was an early pass when the packager was putting in the wrong id. I'm able to reproduce by hosting this mpd with a python simple http server and setting the ExoPlayer demo to allow clear text traffic. ExoPlayerException.zip
Activity
tonihei commentedon Feb 27, 2023
The attached MPD fails to parse because it has
id="2-sd-video"in one of theAdaptationSetnodes, which is just not allowed because the value is supposed to be an unsigned integer. Even if I hackily ignore this issue in code, I can't see the problem withgetSegmentTimeUsyou are describing? It would also help to see a stack trace to know how the problem is triggered.kamaroyl commentedon Mar 6, 2023
Ah, apologies, that was an early pass when the packager was putting in the wrong id. I'm able to reproduce by hosting this mpd with a python simple http server and setting the ExoPlayer demo to allow clear text traffic.
ExoPlayerException.zip
tonihei commentedon Mar 7, 2023
Thanks, we'll provide a fix for this.
Make DefaultDashChunkSource more robust against empty segment timelines
Make DefaultDashChunkSource more robust against empty segment timelines
Make DefaultDashChunkSource more robust against empty segment timelines
Make DefaultDashChunkSource more robust against empty segment timelines