Fix format constructor parameter order.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=121468904
This commit is contained in:
eguven 2016-05-04 04:37:16 -07:00 committed by Oliver Woodman
parent 45a46c3e6e
commit 686816a610
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ public final class FlacExtractor implements Extractor {
});
Format mediaFormat = Format.createAudioSampleFormat(null, MimeTypes.AUDIO_RAW,
Format.NO_VALUE, streamInfo.bitRate(),
streamInfo.bitRate(), Format.NO_VALUE,
streamInfo.channels, streamInfo.sampleRate, null, null);
trackOutput.format(mediaFormat);

View file

@ -67,7 +67,7 @@ import java.util.List;
metadata[4] = (byte) 0x80; // Set the last metadata block flag, ignore the other blocks
List<byte[]> initializationData = Collections.singletonList(metadata);
trackOutput.format(Format.createAudioSampleFormat(null, MimeTypes.AUDIO_FLAC,
Format.NO_VALUE, streamInfo.bitRate(), streamInfo.channels, streamInfo.sampleRate,
streamInfo.bitRate(), Format.NO_VALUE, streamInfo.channels, streamInfo.sampleRate,
initializationData, null));
} else if (data[0] == AUDIO_PACKET_TYPE) {
if (!firstAudioPacketProcessed) {