Index: webrtc/modules/video_render/test/testAPI/testAPI.cc |
diff --git a/webrtc/modules/video_render/test/testAPI/testAPI.cc b/webrtc/modules/video_render/test/testAPI/testAPI.cc |
index cea2f6b56fe0bc33d99c812ea5543621218ee45b..8557e7029e7aa1439ec722fc9067a58fad219795 100644 |
--- a/webrtc/modules/video_render/test/testAPI/testAPI.cc |
+++ b/webrtc/modules/video_render/test/testAPI/testAPI.cc |
@@ -276,9 +276,12 @@ void GetTestVideoFrame(VideoFrame* frame, uint8_t startColor) { |
// changing color |
static uint8_t color = startColor; |
- memset(frame->buffer(kYPlane), color, frame->allocated_size(kYPlane)); |
- memset(frame->buffer(kUPlane), color, frame->allocated_size(kUPlane)); |
- memset(frame->buffer(kVPlane), color, frame->allocated_size(kVPlane)); |
+ memset(frame->video_frame_buffer()->MutableDataY(), color, |
+ frame->allocated_size(kYPlane)); |
+ memset(frame->video_frame_buffer()->MutableDataU(), color, |
+ frame->allocated_size(kUPlane)); |
+ memset(frame->video_frame_buffer()->MutableDataV(), color, |
+ frame->allocated_size(kVPlane)); |
++color; |
} |