mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-12-02 00:12:33 +08:00
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:
parent
a64383a26b
commit
64553797bd
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user