修复adts头相关bug

This commit is contained in:
xiongziliang 2019-12-11 09:29:10 +08:00
parent df73eb2c10
commit 99c1dd339f

View File

@ -257,6 +257,9 @@ private:
* 2aac配置
*/
void onReady(){
if(_cfg.size() < 2){
return;
}
AACFrame aacFrame;
makeAdtsHeader(_cfg,aacFrame);
getAACInfo(aacFrame,_sampleRate,_channel);