Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: webrtc/common_video/video_frame.cc

Issue 2078943002: Rewrite CreateBlackFrame in webrtcvideoengine. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/common_video/video_frame.cc
diff --git a/webrtc/common_video/video_frame.cc b/webrtc/common_video/video_frame.cc
index bfac3a680de9fc18ace1dc323ce1b29d34655197..64938d4d6b7e28b87556de2f3a6d32fb8272f566 100644
--- a/webrtc/common_video/video_frame.cc
+++ b/webrtc/common_video/video_frame.cc
@@ -61,7 +61,7 @@ void VideoFrame::CreateEmptyFrame(int width,
rotation_ = kVideoRotation_0;
// Allocate a new buffer.
- video_frame_buffer_ = new rtc::RefCountedObject<I420Buffer>(
+ video_frame_buffer_ = I420Buffer::Create(
width, height, stride_y, stride_u, stride_v);
}

Powered by Google App Engine
This is Rietveld 408576698