mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +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.NO_VALUE, streamInfo.bitRate(),
|
||||
streamInfo.bitRate(), Format.NO_VALUE,
|
||||
streamInfo.channels, streamInfo.sampleRate, null, null);
|
||||
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
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue