Index: webrtc/common_video/video_frame.cc |
diff --git a/webrtc/common_video/video_frame.cc b/webrtc/common_video/video_frame.cc |
index 7145a623e65ef4837c7b216b528ae1575254506a..b85241035157f71207f923d93f34d24f791da459 100644 |
--- a/webrtc/common_video/video_frame.cc |
+++ b/webrtc/common_video/video_frame.cc |
@@ -93,12 +93,8 @@ void VideoFrame::CreateFrame(const uint8_t* buffer, |
stride_uv, stride_uv, rotation); |
} |
-void VideoFrame::ShallowCopy(const VideoFrame& videoFrame) { |
- video_frame_buffer_ = videoFrame.video_frame_buffer(); |
- timestamp_rtp_ = videoFrame.timestamp_rtp_; |
- ntp_time_ms_ = videoFrame.ntp_time_ms_; |
- timestamp_us_ = videoFrame.timestamp_us_; |
- rotation_ = videoFrame.rotation_; |
+void VideoFrame::ShallowCopy(const VideoFrame& frame) { |
+ *this = frame; |
} |
int VideoFrame::width() const { |