From 6cccfc1caa13c00a7be8b640e31ad0840746b14a Mon Sep 17 00:00:00 2001 From: Oliver Woodman Date: Fri, 1 May 2015 20:12:28 +0100 Subject: [PATCH] Make Atom.getAtomTypeString public. I've found myself doing this a couple of times during local debugging. It's harmless to have it public, and seems pretty useful for debugging inside of the mp4 package. --- .../com/google/android/exoplayer/extractor/mp4/Atom.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/library/src/main/java/com/google/android/exoplayer/extractor/mp4/Atom.java b/library/src/main/java/com/google/android/exoplayer/extractor/mp4/Atom.java index 421687d940..e87f71f885 100644 --- a/library/src/main/java/com/google/android/exoplayer/extractor/mp4/Atom.java +++ b/library/src/main/java/com/google/android/exoplayer/extractor/mp4/Atom.java @@ -180,7 +180,13 @@ import java.util.List; return 0x00FFFFFF & fullAtomInt; } - private static String getAtomTypeString(int type) { + /** + * Converts a numeric atom type to the corresponding four character string. + * + * @param type The numeric atom type. + * @return The corresponding four character string. + */ + public static String getAtomTypeString(int type) { return "" + (char) (type >> 24) + (char) ((type >> 16) & 0xFF) + (char) ((type >> 8) & 0xFF)