Add DTSUHDSpecificBox (udts) support to parseAudioSampleEntry().

This commit is contained in:
Cedric T 2023-03-14 16:12:45 +08:00
parent bc3537260b
commit 3909db2a4e
2 changed files with 4 additions and 1 deletions

View File

@ -176,6 +176,9 @@ import java.util.List;
@SuppressWarnings("ConstantCaseForConstants") @SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_ddts = 0x64647473; public static final int TYPE_ddts = 0x64647473;
@SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_udts = 0x75647473;
@SuppressWarnings("ConstantCaseForConstants") @SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_tfdt = 0x74666474; 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 // because these streams can carry simultaneously multiple representations of the same
// audio. Use stereo by default. // audio. Use stereo by default.
channelCount = 2; channelCount = 2;
} else if (childAtomType == Atom.TYPE_ddts) { } else if ((childAtomType == Atom.TYPE_ddts) || (childAtomType == Atom.TYPE_udts)) {
out.format = out.format =
new Format.Builder() new Format.Builder()
.setId(trackId) .setId(trackId)