| Index: talk/app/webrtc/objc/RTCI420Frame.mm
|
| diff --git a/talk/app/webrtc/objc/RTCI420Frame.mm b/talk/app/webrtc/objc/RTCI420Frame.mm
|
| index 6c6c5645823d283975835d4f462722851e595062..1646510b372001ea0417cdcb0788062b91f7cd32 100644
|
| --- a/talk/app/webrtc/objc/RTCI420Frame.mm
|
| +++ b/talk/app/webrtc/objc/RTCI420Frame.mm
|
| @@ -29,7 +29,7 @@
|
|
|
| #include <memory>
|
|
|
| -#include "webrtc/media/base/videoframe.h"
|
| +#include "webrtc/media/engine/webrtcvideoframe.h"
|
|
|
| @implementation RTCI420Frame {
|
| std::unique_ptr<cricket::VideoFrame> _videoFrame;
|
| @@ -98,7 +98,10 @@
|
| if (self = [super init]) {
|
| // Keep a shallow copy of the video frame. The underlying frame buffer is
|
| // not copied.
|
| - _videoFrame.reset(videoFrame->Copy());
|
| + _videoFrame.reset(new cricket::WebRtcVideoFrame(
|
| + videoFrame->video_frame_buffer(),
|
| + videoFrame->rotation(),
|
| + videoFrame->timestamp_us()));
|
| }
|
| return self;
|
| }
|
|
|