Fix crash for DASH manifests with empty segment timelines
DASH manifests containing an empty <SegmentTimeline/> (0 segments) in a representation caused DashMediaPeriod.getFirstChunkStartTimeUs() to access index 0 of an empty list, throwing an IndexOutOfBoundsException during period preparation. This change guards against empty segment indices before querying segment times in DashMediaPeriod and DefaultDashChunkSource. Issue: androidx/media#3326 PiperOrigin-RevId: 946936731 (cherry picked from commit 6c7dbd9bd89d10859ccd07a90c96cf59a1000f40)
T
tonihei committed
8465e107ece2bb26d5fb45d8d302559fc8783fd8
Parent: 764253e
Committed by Tianyi Feng <tianyifeng@google.com>
on 7/13/2026, 10:53:53 AM