mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix format constructor parameter order.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=121468904
This commit is contained in:
parent
45a46c3e6e
commit
686816a610
2 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ public final class FlacExtractor implements Extractor {
|
||||||
});
|
});
|
||||||
|
|
||||||
Format mediaFormat = Format.createAudioSampleFormat(null, MimeTypes.AUDIO_RAW,
|
Format mediaFormat = Format.createAudioSampleFormat(null, MimeTypes.AUDIO_RAW,
|
||||||
Format.NO_VALUE, streamInfo.bitRate(),
|
streamInfo.bitRate(), Format.NO_VALUE,
|
||||||
streamInfo.channels, streamInfo.sampleRate, null, null);
|
streamInfo.channels, streamInfo.sampleRate, null, null);
|
||||||
trackOutput.format(mediaFormat);
|
trackOutput.format(mediaFormat);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ import java.util.List;
|
||||||
metadata[4] = (byte) 0x80; // Set the last metadata block flag, ignore the other blocks
|
metadata[4] = (byte) 0x80; // Set the last metadata block flag, ignore the other blocks
|
||||||
List<byte[]> initializationData = Collections.singletonList(metadata);
|
List<byte[]> initializationData = Collections.singletonList(metadata);
|
||||||
trackOutput.format(Format.createAudioSampleFormat(null, MimeTypes.AUDIO_FLAC,
|
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));
|
initializationData, null));
|
||||||
} else if (data[0] == AUDIO_PACKET_TYPE) {
|
} else if (data[0] == AUDIO_PACKET_TYPE) {
|
||||||
if (!firstAudioPacketProcessed) {
|
if (!firstAudioPacketProcessed) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue