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

Commit 4cb32be

Browse files
authored
Check allocation of payload buffer. (#119)
1 parent 2619b25 commit 4cb32be

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
@@ -296,7 +296,7 @@ void RtpPacketizerH265::NextAggregatePacket(RtpPacketToSend* rtp_packet,
296296
size_t payload_capacity = rtp_packet->FreeCapacity();
297297
RTC_CHECK_GE(payload_capacity, kHevcNalHeaderSize);
298298
uint8_t* buffer = rtp_packet->AllocatePayload(payload_capacity);
299-
299+
RTC_CHECK(buffer);
300300
PacketUnit* packet = &packets_.front();
301301
RTC_CHECK(packet->first_fragment);
302302
uint8_t payload_hdr_h = packet->header >> 8;

0 commit comments

Comments
 (0)