media/libraries/extractor
ibaker f91d5208b5 MP3: Use bytes field from VBRI frame instead of deriving from ToC
The previous code assumed that the `VBRI` Table of Contents (ToC)
covers all the MP3 data in the file. In a file with an invalid VBRI ToC
where this isn't the case, this results in playback silently stopping
mid-playback (and either advancing to the next item, or continuing to
count up the playback clock forever). This change considers the `bytes`
field to determine the end of the MP3 data, in addition to deriving it
from the ToC. If they disagree we log a warning and take the max value.
This is because we handle accidentally reading non-MP3 data at the end
(or hitting EoF) better than stopping reading valid MP3 data partway
through.

Issue: androidx/media#1904

#cherrypick

PiperOrigin-RevId: 700319250
(cherry picked from commit 46578ee0a6)
2024-12-18 14:19:41 +00:00
..
src MP3: Use bytes field from VBRI frame instead of deriving from ToC 2024-12-18 14:19:41 +00:00
build.gradle Make CueSerializationTest more realistic 2023-11-27 07:16:19 -08:00
proguard-rules.txt Rollback of f4e444bdd2 2024-03-29 10:07:56 -07:00
README.md Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00

Extractor module

Provides media container extractors and related utilities. Application code will not normally need to depend on this module directly.