From 4d24f5a01438074583590cf7d658ee809ed1c604 Mon Sep 17 00:00:00 2001 From: zhaohappy <2281756061@qq.com> Date: Thu, 23 Jan 2025 16:45:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(aac):=20=E5=8E=BB=E6=8E=89=E6=B2=A1?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/avutil/codecs/aac.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/avutil/codecs/aac.ts b/src/avutil/codecs/aac.ts index add7949..bc8df5d 100644 --- a/src/avutil/codecs/aac.ts +++ b/src/avutil/codecs/aac.ts @@ -136,9 +136,9 @@ export function getAVCodecParameters(extradata: Uint8ArrayInterface) { if (extradata.length >= 2) { profile = (extradata[0] >> 3) & 0x1f sampleRate = MPEG4SamplingFrequencies[((extradata[0] & 0x07) << 1) - | (extradata[1] >> 7)] ?? 48000 + | (extradata[1] >> 7)] - channels = MPEG4Channels[(extradata[1] >> 3) & 0x0f] ?? 2 + channels = MPEG4Channels[(extradata[1] >> 3) & 0x0f] } return {