mirror of
https://github.com/samsonjs/media.git
synced 2026-04-24 14:37:45 +00:00
Require the list returned by SubtitleParser to be sorted by timestamp
This makes it more efficient to consume (e.g. we can binary search through it). PiperOrigin-RevId: 539095673
This commit is contained in:
parent
fafeafa72d
commit
3cf21bd5d5
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ public interface SubtitleParser {
|
|||
* @param offset The index in {@code data} to start reading from (inclusive).
|
||||
* @param length The number of bytes to read from {@code data}.
|
||||
* @return The {@linkplain CueGroup cue groups} parsed from {@code data} (and possibly previous
|
||||
* provided samples too), or null if there is insufficient data to generate a complete {@link
|
||||
* CueGroup}.
|
||||
* provided samples too), sorted in ascending order by {@link CueGroup#presentationTimeUs}.
|
||||
* Otherwise null if there is insufficient data to generate a complete {@link CueGroup}.
|
||||
*/
|
||||
@Nullable
|
||||
List<CueGroup> parse(byte[] data, int offset, int length);
|
||||
|
|
|
|||
Loading…
Reference in a new issue