Index: webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm |
index c3de9ae7061eb32009ba612c30c556d8b5d135c7..75b4a34a3abc1817e3a1cbea0c7ab5fc9be7fa5e 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm |
@@ -78,7 +78,7 @@ class ObjCVideoEncoder : public VideoEncoder { |
std::unique_ptr<RTPFragmentationHeader> fragmentationHeader = |
[header createNativeFragmentationHeader]; |
EncodedImageCallback::Result res = |
- callback->OnEncodedImage(encodedImage, &codecSpecificInfo, fragmentationHeader.release()); |
+ callback->OnEncodedImage(encodedImage, &codecSpecificInfo, fragmentationHeader.get()); |
return res.error == EncodedImageCallback::Result::OK; |
}]; |