Skip to content

Commit

Permalink
Fix HLS chunkful preparation bug affecting certain master playlists
Browse files Browse the repository at this point in the history
The bug affects playlists that start with an I-FRAME only variant.

Issue: #8025
PiperOrigin-RevId: 335819497
  • Loading branch information
AquilesCanta authored and kim-vde committed Oct 13, 2020
1 parent 9753c3f commit 64d5be8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
([#7988](https://github.com/google/ExoPlayer/issues/7988)).
* Ignore negative payload size in PES packets
([#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:
* Fix position reporting after fetch errors
([#7956](https://github.com/google/ExoPlayer/issues/7956)).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ private static final class InitializationTrackSelection extends BaseTrackSelecti

public InitializationTrackSelection(TrackGroup group, int[] 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
Expand Down

0 comments on commit 64d5be8

Please sign in to comment.