ref: 8276005eba660ee076ccb9712d6f005c38419880
parent: ae856e401293da36cee57d8e1b5a4fbb66a0fe06
author: Johann <johannkoenig@google.com>
date: Wed Mar 14 08:52:49 EDT 2018
temporal svc: zero layer_target_bitrate These values are set in main() from user input. Ensure they are cleared out first. Clears a static analysis warning: warning: The right operand of '*' is a garbage value 1000.0 * rc->layer_target_bitrate[0] / rc->layer_framerate[0]; Change-Id: I09bd209be5aff31b87597a24d37a9673fa99381b
--- a/examples/vpx_temporal_svc_encoder.c
+++ b/examples/vpx_temporal_svc_encoder.c
@@ -608,6 +608,8 @@
double sum_bitrate2 = 0.0;
double framerate = 30.0;
+ zero(rc.layer_target_bitrate);
+
exec_name = argv[0];
// Check usage and arguments.
if (argc < min_args) {