Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1501)

Unified Diff: content/common/gpu/media/vaapi_video_encode_accelerator.cc

Issue 369923008: VaapiVEA: Handle bitrate and frame rate negotiation from webrtc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/vaapi_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/vaapi_video_encode_accelerator.cc b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
index 6cfdd9d1faa3ec46d02428d206cceb5bcd97d7d0..6cbf0a27aca57e8ae3d1bc531b062f5a4a24235d 100644
--- a/content/common/gpu/media/vaapi_video_encode_accelerator.cc
+++ b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
@@ -745,6 +745,11 @@ void VaapiVideoEncodeAccelerator::RequestEncodingParametersChangeTask(
DCHECK(encoder_thread_proxy_->BelongsToCurrentThread());
DCHECK_NE(state_, kUninitialized);
+ if (bitrate < 1)
+ bitrate = 1;
+ if (framerate < 1)
+ framerate = 1;
xhwang 2014/07/07 16:30:51 I am not really familiar with this code, so some n
+
UpdateRates(bitrate, framerate);
UpdateSPS();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698