Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
25fe9db5
authored
Aug 19, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Set the sync flag on all audio samples in WebM.
Issue: #690
parent
cde1c27e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
library/src/main/java/com/google/android/exoplayer/extractor/webm/WebmExtractor.java
library/src/main/java/com/google/android/exoplayer/extractor/webm/WebmExtractor.java
View file @
25fe9db5
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment