Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2593,6 +2593,10 @@ public void initializeFormat(int trackId) throws ParserException {
case CODEC_ID_FLAC:
mimeType = MimeTypes.AUDIO_FLAC;
initializationData = Collections.singletonList(getCodecPrivate(codecId));
pcmEncoding = Util.getPcmEncoding(audioBitDepth);
if (pcmEncoding == C.ENCODING_INVALID) {
pcmEncoding = Format.NO_VALUE;
}
break;
case CODEC_ID_ACM:
mimeType = MimeTypes.AUDIO_RAW;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ track 1:
sampleMimeType = audio/flac
channelCount = 2
sampleRate = 48000
pcmEncoding = pcm-16
selectionFlags = [default]
language = und
initializationData:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ track 1:
sampleMimeType = audio/flac
channelCount = 2
sampleRate = 48000
pcmEncoding = pcm-16
selectionFlags = [default]
language = und
initializationData:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ track 1:
sampleMimeType = audio/flac
channelCount = 2
sampleRate = 48000
pcmEncoding = pcm-24
selectionFlags = [default]
language = und
initializationData:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ track 1:
sampleMimeType = audio/flac
channelCount = 2
sampleRate = 48000
pcmEncoding = pcm-24
selectionFlags = [default]
language = und
initializationData:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ track 1:
sampleMimeType = audio/flac
channelCount = 2
sampleRate = 48000
pcmEncoding = pcm-32
language = und
initializationData:
data = length 42, hash DE0B9CE3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ track 1:
sampleMimeType = audio/flac
channelCount = 2
sampleRate = 48000
pcmEncoding = pcm-32
language = und
initializationData:
data = length 42, hash DE0B9CE3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ track 1:
sampleMimeType = audio/flac
channelCount = 2
sampleRate = 48000
pcmEncoding = pcm-32
language = und
initializationData:
data = length 42, hash DE0B9CE3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ track 1:
sampleMimeType = audio/flac
channelCount = 2
sampleRate = 48000
pcmEncoding = pcm-32
language = und
initializationData:
data = length 42, hash DE0B9CE3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ track 1:
sampleMimeType = audio/flac
channelCount = 2
sampleRate = 48000
pcmEncoding = pcm-32
language = und
initializationData:
data = length 42, hash DE0B9CE3
Expand Down