mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-11-24 00:47:21 +08:00
fix(codec): 修复H264和H265 RTP解码器中的小载荷读越界问题
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user