
Before this change, the SubtitleExtractor did not mark the limit of the input buffer, thus the SubtitleDecoder attempted to decode more bytes. If the subtitle file had a new line at the end, this bug would make the SubtitleDecoder append an line break after the last subtitle. PiperOrigin-RevId: 402523039