mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
bug fixed
This commit is contained in:
parent
9e17b44e77
commit
9cf0ccc6b9
@ -180,6 +180,10 @@ inline bool RtmpParser::inputAudio(const RtmpPacket::Ptr &pkt) {
|
||||
return false;
|
||||
}
|
||||
inline void RtmpParser::onGetAAC(const char* pcData, int iLen, uint32_t ui32TimeStamp) {
|
||||
if(iLen + 7 > sizeof(m_adts.data)){
|
||||
WarnL << "Illegal adts data, exceeding the length limit.";
|
||||
return;
|
||||
}
|
||||
//添加adts头
|
||||
memcpy(m_adts.data + 7, pcData, iLen);
|
||||
m_adts.aac_frame_length = 7 + iLen;
|
||||
|
Loading…
Reference in New Issue
Block a user