mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix HLS chunkful preparation bug affecting certain master playlists
The bug affects playlists that start with an I-FRAME only variant. Issue: #8025 PiperOrigin-RevId: 335819497
This commit is contained in:
parent
837cdc4f67
commit
5b0b4479ae
2 changed files with 7 additions and 1 deletions
|
|
@ -37,6 +37,10 @@
|
||||||
* Add the option to sort tracks by `Format` in `TrackSelectionView` and
|
* Add the option to sort tracks by `Format` in `TrackSelectionView` and
|
||||||
`TrackSelectionDialogBuilder`
|
`TrackSelectionDialogBuilder`
|
||||||
([#7709](https://github.com/google/ExoPlayer/issues/7709)).
|
([#7709](https://github.com/google/ExoPlayer/issues/7709)).
|
||||||
|
* HLS:
|
||||||
|
* Fix crash affecting chunkful preparation of master playlists that start
|
||||||
|
with an I-FRAME only variant
|
||||||
|
([#8025](https://github.com/google/ExoPlayer/issues/8025)).
|
||||||
* IMA extension:
|
* IMA extension:
|
||||||
* Fix position reporting after fetch errors
|
* Fix position reporting after fetch errors
|
||||||
([#7956](https://github.com/google/ExoPlayer/issues/7956)).
|
([#7956](https://github.com/google/ExoPlayer/issues/7956)).
|
||||||
|
|
|
||||||
|
|
@ -592,7 +592,9 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
|
|
||||||
public InitializationTrackSelection(TrackGroup group, int[] tracks) {
|
public InitializationTrackSelection(TrackGroup group, int[] tracks) {
|
||||||
super(group, tracks);
|
super(group, tracks);
|
||||||
selectedIndex = indexOf(group.getFormat(0));
|
// The initially selected index corresponds to the first EXT-X-STREAMINF tag in the master
|
||||||
|
// playlist.
|
||||||
|
selectedIndex = indexOf(group.getFormat(tracks[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue