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

Commit f69fc88

Browse files
authored
Check payload buffer validity. (#121)
1 parent 12c16f9 commit f69fc88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/rtp_rtcp/source/rtp_format_h265.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void RtpPacketizerH265::NextAggregatePacket(RtpPacketToSend* rtp_packet,
304304
size_t payload_capacity = rtp_packet->FreeCapacity();
305305
RTC_CHECK_GE(payload_capacity, kHevcNalHeaderSize);
306306
uint8_t* buffer = rtp_packet->AllocatePayload(payload_capacity);
307-
307+
RTC_CHECK(buffer);
308308
PacketUnit* packet = &packets_.front();
309309
RTC_CHECK(packet->first_fragment);
310310
uint8_t payload_hdr_h = packet->header >> 8;

0 commit comments

Comments
 (0)