mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
优化aac rtp解码器内存安全限定
This commit is contained in:
parent
ad7b28bb0a
commit
3de2ee7a2b
@ -103,7 +103,7 @@ bool AACRtpDecoder::inputRtp(const RtpPacket::Ptr &rtp, bool key_pos) {
|
||||
ptr += len;
|
||||
au_header_ptr += 2;
|
||||
|
||||
if (_frame->size() == (size_t)size) {
|
||||
if (_frame->size() >= (size_t)size) {
|
||||
// 设置当前audio unit时间戳
|
||||
_frame->_dts = _last_dts + i * dts_inc;
|
||||
flushData();
|
||||
|
Loading…
Reference in New Issue
Block a user