From 23173a372b3cec70fe890f50ad0d01d8d2fe6d35 Mon Sep 17 00:00:00 2001 From: jianj Date: Wed, 12 Jul 2017 16:11:09 -0700 Subject: [PATCH] vp9: Use 2 threads for 360p. BUG=None Review-Url: https://codereview.webrtc.org/2977843002 Cr-Commit-Position: refs/heads/master@{#18990} --- webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc index 3f77f55450..e1776fc954 100644 --- a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc +++ b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc @@ -381,7 +381,7 @@ int VP9EncoderImpl::NumberOfThreads(int width, // tiles, which is (1, 2, 4, 8). See comments below for VP9E_SET_TILE_COLUMNS. if (width * height >= 1280 * 720 && number_of_cores > 4) { return 4; - } else if (width * height >= 640 * 480 && number_of_cores > 2) { + } else if (width * height >= 640 * 360 && number_of_cores > 2) { return 2; } else { // 1 thread less than VGA.