Commit 854fa928 by Oliver Woodman

Fix read H.264 in WebM when the NAL unit length field length is not 4.

parent 49f4fe78
......@@ -646,6 +646,7 @@ public final class WebmExtractor implements Extractor {
// Write a start code for the current NAL unit.
nalStartCode.setPosition(0);
trackOutput.sampleData(nalStartCode, 4);
sampleSize += nalUnitLengthFieldLengthDiff;
} else {
// Write the payload of the NAL unit.
int writtenBytes = trackOutput.sampleData(input, sampleCurrentNalBytesRemaining);
......
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