From f7d2f47f21285bce4415dfff495f09704e1b92eb Mon Sep 17 00:00:00 2001 From: Alexander Kharkov Date: Mon, 7 Feb 2022 12:15:42 +0700 Subject: [PATCH] AAC parser config fix - fmtp.parameters.config --- lib/components/mp4muxer/helpers/aacSettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/mp4muxer/helpers/aacSettings.ts b/lib/components/mp4muxer/helpers/aacSettings.ts index e2f8b848e..135a3c091 100644 --- a/lib/components/mp4muxer/helpers/aacSettings.ts +++ b/lib/components/mp4muxer/helpers/aacSettings.ts @@ -96,7 +96,7 @@ export const aacSettings = (media: AACMedia, date: number, trackId: number) => { */ const bitrate = Number(media.fmtp.parameters.bitrate) || 320000 - const audioConfigBytes = parseInt(media.fmtp.parameters.config, 16) + const audioConfigBytes = parseInt(media.fmtp.parameters.config.substr(0, 4), 16); const audioObjectType = (audioConfigBytes >>> 11) & 0x001f return {