Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
Remove bad workaround for wrong track indices
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Walton committed Jun 15, 2021
1 parent f5dee4d commit ae3120e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -931,12 +931,12 @@ private static TrackBundle parseTfhd(

private static @Nullable TrackBundle getTrackBundle(
SparseArray<TrackBundle> trackBundles, int trackId) {
if (trackBundles.size() == 1) {
// Ignore track id if there is only one track. This is either because we have a side-loaded
// track or to cope with non-matching track indices (see
// https:/google/ExoPlayer/issues/4083).
return trackBundles.valueAt(/* index= */ 0);
}
// if (trackBundles.size() == 1) {
// // Ignore track id if there is only one track. This is either because we have a side-loaded
// // track or to cope with non-matching track indices (see
// // https:/google/ExoPlayer/issues/4083).
// return trackBundles.valueAt(/* index= */ 0);
// }
return trackBundles.get(trackId);
}

Expand Down

0 comments on commit ae3120e

Please sign in to comment.