Commit 017a7cf3 by andrewlewis Committed by Oliver Woodman

Resolve TrueHD spec TODO

PiperOrigin-RevId: 288855515
parent 4f15cfaa
...@@ -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
......
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