mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Reference ALAC sample rate bug
This commit is contained in:
parent
24724158b1
commit
f7b2452d46
1 changed files with 2 additions and 0 deletions
|
|
@ -89,6 +89,8 @@ import java.util.List;
|
|||
if (!hasOutputFormat) {
|
||||
channelCount = ffmpegGetChannelCount(nativeContext);
|
||||
if ("alac".equals(codecName)) {
|
||||
// ALAC decoder did not set the sample rate in earlier versions of FFMPEG.
|
||||
// See https://trac.ffmpeg.org/ticket/6096
|
||||
ParsableByteArray parsableExtraData = new ParsableByteArray(extraData);
|
||||
parsableExtraData.setPosition(extraData.length - 4);
|
||||
sampleRate = parsableExtraData.readUnsignedIntToInt();
|
||||
|
|
|
|||
Loading…
Reference in a new issue