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
b35499f8
authored
Jan 09, 2020
by
andrewlewis
Committed by
Oliver Woodman
Jan 17, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Resolve TrueHD spec TODO
PiperOrigin-RevId: 288855515
parent
91d2d8b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
library/core/src/main/java/com/google/android/exoplayer2/audio/Ac3Util.java
library/core/src/main/java/com/google/android/exoplayer2/audio/Ac3Util.java
View file @
b35499f8
...
@@ -534,8 +534,8 @@ public final class Ac3Util {
...
@@ -534,8 +534,8 @@ public final class Ac3Util {
* contain the start of a syncframe.
* contain the start of a syncframe.
*/
*/
public
static
int
parseTrueHdSyncframeAudioSampleCount
(
byte
[]
syncframe
)
{
public
static
int
parseTrueHdSyncframeAudioSampleCount
(
byte
[]
syncframe
)
{
//
TODO: Link to specification if available.
//
See "Dolby TrueHD (MLP) high-level bitstream description" on the Dolby developer site,
// The syncword ends 0xBA for TrueHD or 0xBB for MLP.
//
subsections 2.2 and 4.2.1.
The syncword ends 0xBA for TrueHD or 0xBB for MLP.
if
(
syncframe
[
4
]
!=
(
byte
)
0xF8
if
(
syncframe
[
4
]
!=
(
byte
)
0xF8
||
syncframe
[
5
]
!=
(
byte
)
0x72
||
syncframe
[
5
]
!=
(
byte
)
0x72
||
syncframe
[
6
]
!=
(
byte
)
0x6F
||
syncframe
[
6
]
!=
(
byte
)
0x6F
...
...
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