From 6356ffcb4f0924fdab06c150af8d96167507f2ae Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 11 May 2020 23:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E7=BB=86=E8=8A=82=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extension/AAC.cpp | 2 ++ src/Extension/AAC.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Extension/AAC.cpp b/src/Extension/AAC.cpp index 71bbd5d0..e138ccf2 100644 --- a/src/Extension/AAC.cpp +++ b/src/Extension/AAC.cpp @@ -12,6 +12,8 @@ namespace mediakit{ +unsigned const samplingFrequencyTable[16] = { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350, 0, 0, 0 }; + class AdtsHeader{ public: unsigned int syncword = 0; //12 bslbf 同步字The bit string ‘1111 1111 1111’,说明一个ADTS帧的开始 diff --git a/src/Extension/AAC.h b/src/Extension/AAC.h index fa83722c..a20a2cef 100644 --- a/src/Extension/AAC.h +++ b/src/Extension/AAC.h @@ -19,7 +19,6 @@ namespace mediakit{ class AACFrame; -unsigned const samplingFrequencyTable[16] = { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350, 0, 0, 0 }; string makeAacConfig(const uint8_t *hex); void dumpAacConfig(const string &config, int length, uint8_t *out); void parseAacConfig(const string &config, int &samplerate, int &channels);