| Index: webrtc/common_video/video_frame.cc
|
| diff --git a/webrtc/common_video/video_frame.cc b/webrtc/common_video/video_frame.cc
|
| index 0ebb9835d55f593be62dcf77cded48dd6402fb9c..7cdbd53f9d41cc8ff71d99f09ead95005375650e 100644
|
| --- a/webrtc/common_video/video_frame.cc
|
| +++ b/webrtc/common_video/video_frame.cc
|
| @@ -42,11 +42,11 @@ int VideoFrame::CreateEmptyFrame(int width,
|
| int stride_u,
|
| int stride_v) {
|
| const int half_width = (width + 1) / 2;
|
| - DCHECK_GT(width, 0);
|
| - DCHECK_GT(height, 0);
|
| - DCHECK_GE(stride_y, width);
|
| - DCHECK_GE(stride_u, half_width);
|
| - DCHECK_GE(stride_v, half_width);
|
| + RTC_DCHECK_GT(width, 0);
|
| + RTC_DCHECK_GT(height, 0);
|
| + RTC_DCHECK_GE(stride_y, width);
|
| + RTC_DCHECK_GE(stride_u, half_width);
|
| + RTC_DCHECK_GE(stride_v, half_width);
|
|
|
| // Creating empty frame - reset all values.
|
| timestamp_ = 0;
|
| @@ -195,7 +195,7 @@ void VideoFrame::set_video_frame_buffer(
|
| }
|
|
|
| VideoFrame VideoFrame::ConvertNativeToI420Frame() const {
|
| - DCHECK(native_handle());
|
| + RTC_DCHECK(native_handle());
|
| VideoFrame frame;
|
| frame.ShallowCopy(*this);
|
| frame.set_video_frame_buffer(video_frame_buffer_->NativeToI420Buffer());
|
|
|