diff --git a/libraries/common/src/main/java/androidx/media3/common/Format.java b/libraries/common/src/main/java/androidx/media3/common/Format.java index bb712e2472..8e08993f1a 100644 --- a/libraries/common/src/main/java/androidx/media3/common/Format.java +++ b/libraries/common/src/main/java/androidx/media3/common/Format.java @@ -1690,6 +1690,14 @@ public final class Format implements Bundleable { + Integer.toString(initialisationDataIndex, Character.MAX_RADIX); } + /** + * Utility method to get {@code defaultValue} if {@code value} is {@code null}. {@code + * defaultValue} can be {@code null}. + * + *
Note: Current implementations of getters in {@link Bundle}, for example {@link
+ * Bundle#getString(String, String)} does not allow the defaultValue to be {@code null}, hence the
+ * need for this method.
+ */
@Nullable
private static