Merge pull request #11061 from cedricxperi:dts-udts-support

PiperOrigin-RevId: 517067549
(cherry picked from commit 49d85d625c42177aaf0d6413ba7ee0ae7b4d580e)
This commit is contained in:
Rohit Singh 2023-03-16 15:33:38 +00:00
parent a94fb21dcb
commit 60e0546bea
2 changed files with 4 additions and 1 deletions

View File

@ -176,6 +176,9 @@ import java.util.List;
@SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_ddts = 0x64647473;
@SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_udts = 0x75647473;
@SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_tfdt = 0x74666474;

View File

@ -1560,7 +1560,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
// because these streams can carry simultaneously multiple representations of the same
// audio. Use stereo by default.
channelCount = 2;
} else if (childAtomType == Atom.TYPE_ddts) {
} else if (childAtomType == Atom.TYPE_ddts || childAtomType == Atom.TYPE_udts) {
out.format =
new Format.Builder()
.setId(trackId)