h265 rtp pack avoid 1387 size nal fu-a only one end packet and first satrt end not exist try fix #2425

This commit is contained in:
xiongguangjie 2023-04-27 19:54:47 +08:00
parent a64383a26b
commit 64553797bd

View File

@ -302,7 +302,7 @@ void H265RtpEncoder::packRtpFu(const char *ptr, size_t len, uint64_t pts, bool i
} }
void H265RtpEncoder::packRtp(const char *ptr, size_t len, uint64_t pts, bool is_mark, bool gop_pos){ void H265RtpEncoder::packRtp(const char *ptr, size_t len, uint64_t pts, bool is_mark, bool gop_pos){
if (len + 3 <= getMaxSize()) { if (len <= getMaxSize()) {
//signal-nalu //signal-nalu
RtpCodec::inputRtp(makeRtp(getTrackType(), ptr, len, is_mark, pts), gop_pos); RtpCodec::inputRtp(makeRtp(getTrackType(), ptr, len, is_mark, pts), gop_pos);
} else { } else {