style(android): apply ktlint to the ffmpeg audio csd code

The Native Formatting lane rejects the unbraced multiline if/else in
FfmpegExtractor and the wrapped expression body in FfmpegAudioCsdTest.
This commit is contained in:
edde746
2026-08-24 12:42:23 +02:00
parent cc4eff98c0
commit fb85bb279a
2 changed files with 6 additions and 4 deletions
@@ -340,8 +340,11 @@ internal class FfmpegExtractor private constructor(
// extradata is only correct for video (already Annex-B via the JNI
// bitstream filter) and text tracks.
builder.setInitializationData(
if (trackType == C.TRACK_TYPE_AUDIO) FfmpegAudioCsd.initializationData(mime, extradata)
else listOf(extradata)
if (trackType == C.TRACK_TYPE_AUDIO) {
FfmpegAudioCsd.initializationData(mime, extradata)
} else {
listOf(extradata)
}
)
}
@@ -61,8 +61,7 @@ class FfmpegAudioCsdTest {
return bytes.toByteArray()
}
private fun vorbisHeader(type: Int, payloadLength: Int): ByteArray =
byteArrayOf(type.toByte()) + "vorbis".toByteArray(Charsets.US_ASCII) + ByteArray(payloadLength)
private fun vorbisHeader(type: Int, payloadLength: Int): ByteArray = byteArrayOf(type.toByte()) + "vorbis".toByteArray(Charsets.US_ASCII) + ByteArray(payloadLength)
@Test
fun vorbisSplitsLacedHeadersIntoIdentificationAndSetup() {