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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user