diff --git a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc index 2c674b33a..9a57e4c5a 100644 --- a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc +++ b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc @@ -226,12 +226,11 @@ int VP8EncoderImpl::InitEncode(const VideoCodec* inst, config_->g_lag_in_frames = 0; // 0- no frame lagging // Determining number of threads based on the image size - if (codec_.width * codec_.height > 640 * 480 && number_of_cores >= 4) { - config_->g_threads = 4; // 4 threads for qHD/HD. - } else if (codec_.width * codec_.height > 320 * 240 && number_of_cores >= 2) { - config_->g_threads = 2; // 2 threads for HVGA/VGA. + if (codec_.width * codec_.height > 704 * 576 && number_of_cores > 1) { + // 2 threads when larger than 4CIF + config_->g_threads = 2; } else { - config_->g_threads = 1; // 1 thread for QVGA. + config_->g_threads = 1; } // rate control settings