fix(codec): 修复H264和H265 RTP解码器中的小载荷读越界问题

This commit is contained in:
xiongziliang
2026-09-20 22:55:29 +08:00
parent 205150d72b
commit 4a2db9e4b7
2 changed files with 15 additions and 0 deletions

View File

@@ -217,6 +217,11 @@ bool H265RtpDecoder::decodeRtp(const RtpPacket::Ptr &rtp) {
case 49:
// fragmentation unit (FU)
if (payload_size < 4) {
WarnL << "FU payload too small: " << payload_size << ", rtp:\r\n" << rtp->dumpString();
_gop_dropped = true;
return false;
}
return mergeFu(rtp, frame, payload_size, stamp, seq);
default: {