mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix read H.264 in WebM when the NAL unit length field length is not 4.
This commit is contained in:
parent
49f4fe7810
commit
854fa928fb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user