From 99c1dd339fe07b4dbc25ce4dc8cb2d5437212e11 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 11 Dec 2019 09:29:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dadts=E5=A4=B4=E7=9B=B8?= =?UTF-8?q?=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extension/AAC.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Extension/AAC.h b/src/Extension/AAC.h index 156c4122..fe78509e 100644 --- a/src/Extension/AAC.h +++ b/src/Extension/AAC.h @@ -257,6 +257,9 @@ private: * 解析2个字节的aac配置 */ void onReady(){ + if(_cfg.size() < 2){ + return; + } AACFrame aacFrame; makeAdtsHeader(_cfg,aacFrame); getAACInfo(aacFrame,_sampleRate,_channel);