From f69718e5ad42fb30ac2021a9d4bbb60546d80444 Mon Sep 17 00:00:00 2001 From: Tianyi Feng Date: Wed, 17 May 2023 13:06:58 +0000 Subject: [PATCH] Fix the lint issues --- .../java/androidx/media3/extractor/DtsUtil.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/libraries/extractor/src/main/java/androidx/media3/extractor/DtsUtil.java b/libraries/extractor/src/main/java/androidx/media3/extractor/DtsUtil.java index 26f8cbaa9b..b02ba440e3 100644 --- a/libraries/extractor/src/main/java/androidx/media3/extractor/DtsUtil.java +++ b/libraries/extractor/src/main/java/androidx/media3/extractor/DtsUtil.java @@ -160,16 +160,13 @@ public final class DtsUtil { * @return The number of audio samples represented by the syncframe. */ public static int parseDtsAudioSampleCount(ByteBuffer buffer) { - - // Check for DTS:X Profile 2 sync or non sync word and return - // 1024 if found. This is the only audio sample count that is used by DTS:X Streaming Encoder. if ((buffer.getInt(0) == SYNC_FTOC_LE) || (buffer.getInt(0) == SYNC_FTOC_NON_SYNC_LE)) { + // Check for DTS:X Profile 2 sync or non sync word and return + // 1024 if found. This is the only audio sample count that is used by DTS:X Streaming Encoder. return 1024; - } - - // Check for DTS Express sync word and return 4096 if found. This is the only audio - // sample count that is used by DTS Streaming Encoder. - else if (buffer.getInt(0) == SYNC_EXT_SUB_LE) { + } else if (buffer.getInt(0) == SYNC_EXT_SUB_LE) { + // Check for DTS Express sync word and return 4096 if found. This is the only audio + // sample count that is used by DTS Streaming Encoder. return 4096; }