From 3de2ee7a2b0c3f484ba5255737c6bc860a5615e1 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 16 Jun 2024 09:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96aac=20rtp=E8=A7=A3=E7=A0=81?= =?UTF-8?q?=E5=99=A8=E5=86=85=E5=AD=98=E5=AE=89=E5=85=A8=E9=99=90=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext-codec/AACRtp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext-codec/AACRtp.cpp b/ext-codec/AACRtp.cpp index 6ac5fa66..c9e4bfea 100644 --- a/ext-codec/AACRtp.cpp +++ b/ext-codec/AACRtp.cpp @@ -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();