| Index: webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc
|
| diff --git a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc
|
| index 9d06b6b1363b4d5bdf0cbd1cf48bca345a24ac63..0fd556c3411d0c133b2be144aeaae342de4ff3b9 100644
|
| --- a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc
|
| +++ b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc
|
| @@ -500,12 +500,15 @@ int VP9EncoderImpl::Encode(const VideoFrame& input_image,
|
|
|
| // Image in vpx_image_t format.
|
| // Input image is const. VPX's raw image is not defined as const.
|
| - raw_->planes[VPX_PLANE_Y] = const_cast<uint8_t*>(input_image.buffer(kYPlane));
|
| - raw_->planes[VPX_PLANE_U] = const_cast<uint8_t*>(input_image.buffer(kUPlane));
|
| - raw_->planes[VPX_PLANE_V] = const_cast<uint8_t*>(input_image.buffer(kVPlane));
|
| - raw_->stride[VPX_PLANE_Y] = input_image.stride(kYPlane);
|
| - raw_->stride[VPX_PLANE_U] = input_image.stride(kUPlane);
|
| - raw_->stride[VPX_PLANE_V] = input_image.stride(kVPlane);
|
| + raw_->planes[VPX_PLANE_Y] =
|
| + const_cast<uint8_t*>(input_image.video_frame_buffer()->DataY());
|
| + raw_->planes[VPX_PLANE_U] =
|
| + const_cast<uint8_t*>(input_image.video_frame_buffer()->DataU());
|
| + raw_->planes[VPX_PLANE_V] =
|
| + const_cast<uint8_t*>(input_image.video_frame_buffer()->DataV());
|
| + raw_->stride[VPX_PLANE_Y] = input_image.video_frame_buffer()->StrideY();
|
| + raw_->stride[VPX_PLANE_U] = input_image.video_frame_buffer()->StrideU();
|
| + raw_->stride[VPX_PLANE_V] = input_image.video_frame_buffer()->StrideV();
|
|
|
| vpx_enc_frame_flags_t flags = 0;
|
| bool send_keyframe = (frame_type == kVideoFrameKey);
|
|
|