media/libraries/extractor/src
ibaker eebf081528 Pass missing length into SubtitleParser from SubtitleExtractor
If the length of the `ExtractorInput` is not known then the
`subtitleData` field is re-sized by 1kB each time
(`SubtitleExtractor.DEFAULT_BUFFER_SIZE`), so the end of the array is
often not populated. This change ensures that `length` is propagated to
`SubtitleParser`, so that implementations don't try and parse the
garbage/zero bytes at the end of the array.

Discovered while investigating Issue: androidx/media#1516

#cherrypick

PiperOrigin-RevId: 661195634
(cherry picked from commit f37f9690f4)
2024-08-21 11:23:53 +00:00
..
androidTest Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
main Pass missing length into SubtitleParser from SubtitleExtractor 2024-08-21 11:23:53 +00:00
test Pass missing length into SubtitleParser from SubtitleExtractor 2024-08-21 11:23:53 +00:00