docs/guide/audio: HE-AAC section and opts.sbr; audio/caf: SBR only at the described rate
This commit is contained in:
1 parent
9a4cacc40b
commit
028bee3f59
3 files changed
+48
-1
No files matched your search
@@ -398,6 +398,10 @@ local function source(r: Bytes.Reader, p: Parsed): (Source?, Err.Err?)
|
||||
if not dec then
|
||||
return nil, err
|
||||
end
|
||||
-- HE-AAC: SBR output only when the description is at the SBR rate (else the AAC-LC core)
|
||||
if dec.sbrOutput and dec.sampleRate ~= d.rate then
|
||||
dec = Aac.decoder(asc :: buffer, { sbr = false })
|
||||
end
|
||||
local ad = dec :: Aac.Decoder
|
||||
return {
|
||||
channels = ad.channels,
|
||||
|
||||
Reference in new issue
Block a user