Commit 45013ece by olly Committed by Oliver Woodman

Add unit test for MatroskaExtractor full Block

The existing sample uses SimpleBlock

PiperOrigin-RevId: 284195590
parent d73af024
seekMap:
isSeekable = true
duration = 8901000
getPosition(0) = [[timeUs=0, position=5401]]
numberOfTracks = 1
track 1:
format:
bitrate = -1
id = 1
containerMimeType = null
sampleMimeType = application/x-subrip
maxInputSize = -1
width = -1
height = -1
frameRate = -1.0
rotationDegrees = 0
pixelWidthHeightRatio = 1.0
channelCount = -1
sampleRate = -1
pcmEncoding = -1
encoderDelay = 0
encoderPadding = 0
subsampleOffsetUs = 9223372036854775807
selectionFlags = 1
language = und
drmInitData = -
metadata = null
initializationData:
total output bytes = 213
sample count = 3
sample 0:
time = 0
flags = 1
data = length 59, hash A0217393
sample 1:
time = 2345000
flags = 1
data = length 95, hash 4904F2
sample 2:
time = 4567000
flags = 1
data = length 59, hash EFAB6D8A
tracksEnded = true
seekMap:
isSeekable = true
duration = 8901000
getPosition(0) = [[timeUs=0, position=5401]]
numberOfTracks = 1
track 1:
format:
bitrate = -1
id = 1
containerMimeType = null
sampleMimeType = application/x-subrip
maxInputSize = -1
width = -1
height = -1
frameRate = -1.0
rotationDegrees = 0
pixelWidthHeightRatio = 1.0
channelCount = -1
sampleRate = -1
pcmEncoding = -1
encoderDelay = 0
encoderPadding = 0
subsampleOffsetUs = 9223372036854775807
selectionFlags = 1
language = und
drmInitData = -
metadata = null
initializationData:
total output bytes = 213
sample count = 3
sample 0:
time = 0
flags = 1
data = length 59, hash A0217393
sample 1:
time = 2345000
flags = 1
data = length 95, hash 4904F2
sample 2:
time = 4567000
flags = 1
data = length 59, hash EFAB6D8A
tracksEnded = true
seekMap:
isSeekable = true
duration = 8901000
getPosition(0) = [[timeUs=0, position=5401]]
numberOfTracks = 1
track 1:
format:
bitrate = -1
id = 1
containerMimeType = null
sampleMimeType = application/x-subrip
maxInputSize = -1
width = -1
height = -1
frameRate = -1.0
rotationDegrees = 0
pixelWidthHeightRatio = 1.0
channelCount = -1
sampleRate = -1
pcmEncoding = -1
encoderDelay = 0
encoderPadding = 0
subsampleOffsetUs = 9223372036854775807
selectionFlags = 1
language = und
drmInitData = -
metadata = null
initializationData:
total output bytes = 213
sample count = 3
sample 0:
time = 0
flags = 1
data = length 59, hash A0217393
sample 1:
time = 2345000
flags = 1
data = length 95, hash 4904F2
sample 2:
time = 4567000
flags = 1
data = length 59, hash EFAB6D8A
tracksEnded = true
seekMap:
isSeekable = true
duration = 8901000
getPosition(0) = [[timeUs=0, position=5401]]
numberOfTracks = 1
track 1:
format:
bitrate = -1
id = 1
containerMimeType = null
sampleMimeType = application/x-subrip
maxInputSize = -1
width = -1
height = -1
frameRate = -1.0
rotationDegrees = 0
pixelWidthHeightRatio = 1.0
channelCount = -1
sampleRate = -1
pcmEncoding = -1
encoderDelay = 0
encoderPadding = 0
subsampleOffsetUs = 9223372036854775807
selectionFlags = 1
language = und
drmInitData = -
metadata = null
initializationData:
total output bytes = 213
sample count = 3
sample 0:
time = 0
flags = 1
data = length 59, hash A0217393
sample 1:
time = 2345000
flags = 1
data = length 95, hash 4904F2
sample 2:
time = 4567000
flags = 1
data = length 59, hash EFAB6D8A
tracksEnded = true
...@@ -30,6 +30,11 @@ public final class MatroskaExtractorTest { ...@@ -30,6 +30,11 @@ public final class MatroskaExtractorTest {
} }
@Test @Test
public void testMkvFullBlocksSample() throws Exception {
ExtractorAsserts.assertBehavior(MatroskaExtractor::new, "mkv/full_blocks.mkv");
}
@Test
public void testWebmSubsampleEncryption() throws Exception { public void testWebmSubsampleEncryption() throws Exception {
ExtractorAsserts.assertBehavior( ExtractorAsserts.assertBehavior(
MatroskaExtractor::new, "mkv/subsample_encrypted_noaltref.webm"); MatroskaExtractor::new, "mkv/subsample_encrypted_noaltref.webm");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment