| Index: webrtc/test/fake_texture_frame.h
|
| diff --git a/webrtc/test/fake_texture_frame.h b/webrtc/test/fake_texture_frame.h
|
| index 682e7b6bae679a7ee5a90fc4edd983dd6ac356c0..dc6abaf745bd41e6e6bd554e9f1ab9ffbb066175 100644
|
| --- a/webrtc/test/fake_texture_frame.h
|
| +++ b/webrtc/test/fake_texture_frame.h
|
| @@ -34,9 +34,9 @@ class FakeNativeHandleBuffer : public NativeHandleBuffer {
|
| new rtc::RefCountedObject<I420Buffer>(width_, height_));
|
| int half_height = (height_ + 1) / 2;
|
| int half_width = (width_ + 1) / 2;
|
| - memset(buffer->data(kYPlane), 0, height_ * width_);
|
| - memset(buffer->data(kUPlane), 0, half_height * half_width);
|
| - memset(buffer->data(kVPlane), 0, half_height * half_width);
|
| + memset(buffer->MutableData(kYPlane), 0, height_ * width_);
|
| + memset(buffer->MutableData(kUPlane), 0, half_height * half_width);
|
| + memset(buffer->MutableData(kVPlane), 0, half_height * half_width);
|
| return buffer;
|
| }
|
| };
|
|
|