优化aac rtp解码器内存安全限定

This commit is contained in:
xiongziliang 2024-06-16 09:34:39 +08:00
parent ad7b28bb0a
commit 3de2ee7a2b

View File

@ -103,7 +103,7 @@ bool AACRtpDecoder::inputRtp(const RtpPacket::Ptr &rtp, bool key_pos) {
ptr += len; ptr += len;
au_header_ptr += 2; au_header_ptr += 2;
if (_frame->size() == (size_t)size) { if (_frame->size() >= (size_t)size) {
// 设置当前audio unit时间戳 // 设置当前audio unit时间戳
_frame->_dts = _last_dts + i * dts_inc; _frame->_dts = _last_dts + i * dts_inc;
flushData(); flushData();