Skip to content

Commit 17c3993

Browse files
authored
android: Update out of date comment (#6955)
Bug: 413418478
1 parent 29018cb commit 17c3993

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

cobalt/android/apk/app/src/main/java/dev/cobalt/media/MediaCodecUtil.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import java.util.Set;
3333
import org.chromium.base.annotations.CalledByNative;
3434
import org.chromium.base.annotations.JNINamespace;
35-
import org.chromium.base.annotations.NativeMethods;
3635

3736
/** Utility functions for dealing with MediaCodec related things. */
3837
@JNINamespace("starboard::android::shared")
@@ -551,8 +550,7 @@ public static boolean isSoftwareDecoder(MediaCodecInfo codecInfo) {
551550
}
552551

553552
/**
554-
* The same as hasVideoDecoderFor, returns the name of the video decoder if it is found, or ""
555-
* otherwise.
553+
* Returns the name of the video decoder if it is found, or "" otherwise.
556554
*
557555
* <p>NOTE: This code path is called repeatedly by the player to determine the decoding
558556
* capabilities of the device. To ensure speedy playback the code below should be kept performant.
@@ -736,10 +734,7 @@ public static String findVideoDecoder(
736734
return "";
737735
}
738736

739-
/**
740-
* The same as hasAudioDecoderFor, only return the name of the audio decoder if it is found, and
741-
* "" otherwise.
742-
*/
737+
/** Return the name of the audio decoder if it is found, and "" otherwise. */
743738
@CalledByNative
744739
public static String findAudioDecoder(String mimeType, int bitrate) {
745740
// Note: MediaCodecList is sorted by the framework such that the best decoders come first.
@@ -752,8 +747,10 @@ public static String findAudioDecoder(String mimeType, int bitrate) {
752747
continue;
753748
}
754749
String name = info.getName();
755-
MediaCodecInfo.CodecCapabilities codecCapabilities = info.getCapabilitiesForType(supportedType);
756-
MediaCodecInfo.AudioCapabilities audioCapabilities = codecCapabilities.getAudioCapabilities();
750+
MediaCodecInfo.CodecCapabilities codecCapabilities =
751+
info.getCapabilitiesForType(supportedType);
752+
MediaCodecInfo.AudioCapabilities audioCapabilities =
753+
codecCapabilities.getAudioCapabilities();
757754
Range<Integer> bitrateRange =
758755
Range.create(0, audioCapabilities.getBitrateRange().getUpper());
759756
if (!bitrateRange.contains(bitrate)) {

0 commit comments

Comments
 (0)