| Index: remoting/codec/video_encoder_vpx.cc
|
| diff --git a/remoting/codec/video_encoder_vpx.cc b/remoting/codec/video_encoder_vpx.cc
|
| index e281ef58efbc9c9e092c3b2efadf04b528dbebdf..6ab4eb6e6c72c00887be3478d7dadb336433a2ea 100644
|
| --- a/remoting/codec/video_encoder_vpx.cc
|
| +++ b/remoting/codec/video_encoder_vpx.cc
|
| @@ -269,8 +269,7 @@ void VideoEncoderVpx::SetLosslessColor(bool want_lossless) {
|
| }
|
|
|
| std::unique_ptr<VideoPacket> VideoEncoderVpx::Encode(
|
| - const webrtc::DesktopFrame& frame,
|
| - uint32_t flags) {
|
| + const webrtc::DesktopFrame& frame) {
|
| DCHECK_LE(32, frame.size().width());
|
| DCHECK_LE(32, frame.size().height());
|
|
|
| @@ -301,9 +300,6 @@ std::unique_ptr<VideoPacket> VideoEncoderVpx::Encode(
|
| LOG(ERROR) << "Unable to apply active map";
|
| }
|
|
|
| - if (flags & REQUEST_KEY_FRAME)
|
| - vpx_codec_control(codec_.get(), VP8E_SET_FRAME_FLAGS, VPX_EFLAG_FORCE_KF);
|
| -
|
| // Do the actual encoding.
|
| int timestamp = (clock_->NowTicks() - timestamp_base_).InMilliseconds();
|
| vpx_codec_err_t ret = vpx_codec_encode(
|
| @@ -344,7 +340,6 @@ std::unique_ptr<VideoPacket> VideoEncoderVpx::Encode(
|
| case VPX_CODEC_CX_FRAME_PKT:
|
| got_data = true;
|
| packet->set_data(vpx_packet->data.frame.buf, vpx_packet->data.frame.sz);
|
| - packet->set_key_frame(vpx_packet->data.frame.flags & VPX_FRAME_IS_KEY);
|
| break;
|
| default:
|
| break;
|
|
|