mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +00:00
parent
cde1c27e2b
commit
25fe9db5d1
1 changed files with 2 additions and 1 deletions
|
|
@ -721,7 +721,8 @@ public final class WebmExtractor implements Extractor {
|
|||
int timecode = (scratch.data[0] << 8) | (scratch.data[1] & 0xFF);
|
||||
blockTimeUs = clusterTimecodeUs + scaleTimecodeToUs(timecode);
|
||||
boolean isInvisible = (scratch.data[2] & 0x08) == 0x08;
|
||||
boolean isKeyframe = (id == ID_SIMPLE_BLOCK && (scratch.data[2] & 0x80) == 0x80);
|
||||
boolean isKeyframe = sampleTrackFormat.type == TRACK_TYPE_AUDIO
|
||||
|| (id == ID_SIMPLE_BLOCK && (scratch.data[2] & 0x80) == 0x80);
|
||||
blockFlags = (isKeyframe ? C.SAMPLE_FLAG_SYNC : 0)
|
||||
| (isInvisible ? C.SAMPLE_FLAG_DECODE_ONLY : 0);
|
||||
blockEncryptionKeyId = sampleTrackFormat.encryptionKeyId;
|
||||
|
|
|
|||
Loading…
Reference in a new issue