Index: webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm |
index 44983beb6a8e09dd8ec18241e356e0063ed84c5f..a410e273cb602da06c3732dc658b88c92845b31f 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm |
@@ -664,10 +664,10 @@ CFStringRef ExtractProfile(const cricket::VideoCodec &codec) { |
std::unique_ptr<rtc::Buffer> buffer(new rtc::Buffer()); |
RTCRtpFragmentationHeader *header; |
{ |
- webrtc::RTPFragmentationHeader *header_cpp; |
+ std::unique_ptr<webrtc::RTPFragmentationHeader> header_cpp; |
bool result = |
H264CMSampleBufferToAnnexBBuffer(sampleBuffer, isKeyframe, buffer.get(), &header_cpp); |
- header = [[RTCRtpFragmentationHeader alloc] initWithNativeFragmentationHeader:header_cpp]; |
+ header = [[RTCRtpFragmentationHeader alloc] initWithNativeFragmentationHeader:header_cpp.get()]; |
if (!result) { |
return; |
} |