Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit decd29d

Browse files
author
Chunbo
authored
Merge pull request #115 from taste1981/fix_scanissue
Fix static scan issues of webrtc stack.
2 parents 8c21de0 + bbbb3f1 commit decd29d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/rtp_rtcp/source/rtp_format_h265.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ void RtpPacketizerH265::NextFragmentPacket(RtpPacketToSend* rtp_packet) {
358358
const Fragment& fragment = packet->source_fragment;
359359
uint8_t* buffer = rtp_packet->AllocatePayload(
360360
kHevcFuHeaderSize + kHevcNalHeaderSize + fragment.length);
361+
RTC_CHECK(buffer);
361362
buffer[0] = payload_hdr_h;
362363
buffer[1] = payload_hdr_l;
363364
buffer[2] = fu_header;

0 commit comments

Comments
 (0)