mirror of
https://github.com/androidx/media.git
synced 2025-05-16 03:59:54 +08:00
Add parameter names to Format creation
PiperOrigin-RevId: 277963928
This commit is contained in:
parent
6c7fbe8b52
commit
1ea878a0b0
@ -78,17 +78,17 @@ import java.util.List;
|
|||||||
List<byte[]> initializationData = Collections.singletonList(metadata);
|
List<byte[]> initializationData = Collections.singletonList(metadata);
|
||||||
setupData.format =
|
setupData.format =
|
||||||
Format.createAudioSampleFormat(
|
Format.createAudioSampleFormat(
|
||||||
null,
|
/* id= */ null,
|
||||||
MimeTypes.AUDIO_FLAC,
|
MimeTypes.AUDIO_FLAC,
|
||||||
null,
|
/* codecs= */ null,
|
||||||
Format.NO_VALUE,
|
/* bitrate= */ Format.NO_VALUE,
|
||||||
streamMetadata.bitRate(),
|
/* maxInputSize= */ streamMetadata.bitRate(),
|
||||||
streamMetadata.channels,
|
streamMetadata.channels,
|
||||||
streamMetadata.sampleRate,
|
streamMetadata.sampleRate,
|
||||||
initializationData,
|
initializationData,
|
||||||
null,
|
/* drmInitData= */ null,
|
||||||
0,
|
/* selectionFlags= */ 0,
|
||||||
null);
|
/* language= */ null);
|
||||||
} else if ((data[0] & 0x7F) == SEEKTABLE_PACKET_TYPE) {
|
} else if ((data[0] & 0x7F) == SEEKTABLE_PACKET_TYPE) {
|
||||||
flacOggSeeker = new FlacOggSeeker();
|
flacOggSeeker = new FlacOggSeeker();
|
||||||
flacOggSeeker.parseSeekTable(packet);
|
flacOggSeeker.parseSeekTable(packet);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user