-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for 33-bit HLS WebVTT wraparound
This also gives some general test coverage for HLS' WebvttExtractor Issue: #7462 PiperOrigin-RevId: 315257252
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
testdata/src/test/assets/webvtt/with_x-timestamp-map_header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
WEBVTT | ||
X-TIMESTAMP-MAP=LOCAL:1:11:16.443,MPEGTS:384879885 | ||
|
||
NOTE | ||
X-TIMESTAMP-MAP is defined in RFC 8216 section 3.5 (HLS spec). | ||
The cue times below are deliberately greater than 2^33 in 90kHz PTS clock, | ||
to test wraparound logic. | ||
|
||
266:18:35.679 --> 266:18:37.305 | ||
Cue text one | ||
|
||
266:18:37.433 --> 266:18:38.276 | ||
Cue text two |
16 changes: 16 additions & 0 deletions
16
testdata/src/test/assets/webvtt/with_x-timestamp-map_header.dump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
seekMap: | ||
isSeekable = false | ||
duration = UNSET TIME | ||
getPosition(0) = [[timeUs=0, position=0]] | ||
numberOfTracks = 1 | ||
track 0: | ||
total output bytes = 324 | ||
sample count = 1 | ||
format 0: | ||
sampleMimeType = text/vtt | ||
subsampleOffsetUs = -958710678845 | ||
sample 0: | ||
time = 5000155 | ||
flags = 1 | ||
data = length 324, hash C0D159A2 | ||
tracksEnded = true |