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
9753c3fcfb
commit
64d5be8719
2 changed files with 7 additions and 1 deletions
|
|
@ -51,6 +51,10 @@
|
||||||
([#7988](https://github.com/google/ExoPlayer/issues/7988)).
|
([#7988](https://github.com/google/ExoPlayer/issues/7988)).
|
||||||
* Ignore negative payload size in PES packets
|
* Ignore negative payload size in PES packets
|
||||||
([#8005](https://github.com/google/ExoPlayer/issues/8005)).
|
([#8005](https://github.com/google/ExoPlayer/issues/8005)).
|
||||||
|
* 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