From eb2601ee1d3410ef4a61db52d883f525a9457d98 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 21 Sep 2026 00:43:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(codec):=20=E4=BF=AE=E5=A4=8DVP8=20RTP?= =?UTF-8?q?=E8=A7=A3=E7=A0=81=E5=99=A8=E4=B8=AD=E7=9A=84=E7=BC=93=E5=86=B2?= =?UTF-8?q?=E5=8C=BA=E8=B6=8A=E7=95=8C=E8=AE=BF=E9=97=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext-codec/VP8Rtp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext-codec/VP8Rtp.cpp b/ext-codec/VP8Rtp.cpp index 3f0760ae..58420157 100644 --- a/ext-codec/VP8Rtp.cpp +++ b/ext-codec/VP8Rtp.cpp @@ -294,7 +294,7 @@ bool VP8RtpDecoder::decodeRtp(const RtpPacket::Ptr &rtp) { outputFrame(rtp); } - return (info.isFirstPacket() && (payload[offset] & 0x01) == 0); + return (info.isFirstPacket() && (size_t)offset < payload_size && (payload[offset] & 0x01) == 0); } void VP8RtpDecoder::outputFrame(const RtpPacket::Ptr &rtp) {