Skip to content

Commit

Permalink
Merge pull request #1792 from DolbyLaboratories:dlb/elst-handling/dev
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 685851466
  • Loading branch information
copybara-github committed Oct 14, 2024
2 parents 1084c9e + 3f4a165 commit 4df9d4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
* Improved frame rate calculation by using media duration from the `mdhd`
box in `Mp4Extractor` and `FragmentedMp4Extractor`
([#1531](https://github.com/androidx/media/issues/1531)).
* Fix incorrect scaling of `media_time` in MP4 edit lists. While
`segment_duration` was already correctly scaled using the movie
timescale, `media_time` is now properly scaled using the track
timescale, as specified by the MP4 format standard
([#1792](https://github.com/androidx/media/issues/1792)).
* DataSource:
* Audio:
* Fix pop sounds that may occur during seeks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1149,12 +1149,12 @@ private static boolean isEdtsListDurationForEntireMediaTimeline(Track track) {
if (track.editListDurations[0] == 0) {
return true;
}
long editListEndMediaTimeUs =
long editListDurationUs =
Util.scaleLargeTimestamp(
track.editListDurations[0] + track.editListMediaTimes[0],
C.MICROS_PER_SECOND,
track.movieTimescale);
return editListEndMediaTimeUs >= track.durationUs;
track.editListDurations[0], C.MICROS_PER_SECOND, track.movieTimescale);
long editListMediaTimeUs =
Util.scaleLargeTimestamp(track.editListMediaTimes[0], C.MICROS_PER_SECOND, track.timescale);
return editListDurationUs + editListMediaTimeUs >= track.durationUs;
}

/**
Expand Down

0 comments on commit 4df9d4e

Please sign in to comment.