tests: HE-AAC against ffmpeg (ADTS, M4A explicit / implicit, TS, MP4, MKV; mono, stereo, 5.1, PS)
This commit is contained in:
1 parent
686a1fbf86
commit
778502c54d
4 files changed
+304
-10
No files matched your search
@@ -50,7 +50,9 @@ end
|
||||
for _, c in He do
|
||||
if string.sub(c.name, -4) == ".aac" then
|
||||
local a, err = AacF.decode(reader(c.data))
|
||||
t:check(a and a.sampleRate == c.rate // 2 and a.frames > 0, c.name .. ": core decode: " .. tostring(err))
|
||||
t:check(a and a.sampleRate == c.rate and a.frames > 0, c.name .. ": SBR found in ADTS: " .. tostring(err))
|
||||
local core, cerr = AacF.decode(reader(c.data), { sbr = false })
|
||||
t:check(core and core.sampleRate == c.rate // 2 and core.frames * 2 == a.frames, c.name .. ": sbr = false: " .. tostring(cerr))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user