Skip to content

Commit 60e0546

Browse files
committed
Merge pull request #11061 from cedricxperi:dts-udts-support
PiperOrigin-RevId: 517067549 (cherry picked from commit 49d85d6)
1 parent a94fb21 commit 60e0546

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libraries/extractor/src/main/java/androidx/media3/extractor/mp4/Atom.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@
176176
@SuppressWarnings("ConstantCaseForConstants")
177177
public static final int TYPE_ddts = 0x64647473;
178178

179+
@SuppressWarnings("ConstantCaseForConstants")
180+
public static final int TYPE_udts = 0x75647473;
181+
179182
@SuppressWarnings("ConstantCaseForConstants")
180183
public static final int TYPE_tfdt = 0x74666474;
181184

libraries/extractor/src/main/java/androidx/media3/extractor/mp4/AtomParsers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ private static void parseAudioSampleEntry(
15601560
// because these streams can carry simultaneously multiple representations of the same
15611561
// audio. Use stereo by default.
15621562
channelCount = 2;
1563-
} else if (childAtomType == Atom.TYPE_ddts) {
1563+
} else if (childAtomType == Atom.TYPE_ddts || childAtomType == Atom.TYPE_udts) {
15641564
out.format =
15651565
new Format.Builder()
15661566
.setId(trackId)

0 commit comments

Comments
 (0)