projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc04a94
)
vp9 rc: Fills VP9_COMP zero at initialization
author
Hirokazu Honda
<hiroh@chromium.org>
Thu, 29 Jul 2021 17:42:35 +0000
(
02:42
+0900)
committer
Hirokazu Honda
<hiroh@chromium.org>
Thu, 29 Jul 2021 17:42:35 +0000
(
02:42
+0900)
Change-Id: Ib1a544ce87e8fdbe23c0e54b6426ee228011b126
vp9/ratectrl_rtc.cc
patch
|
blob
|
history
diff --git
a/vp9/ratectrl_rtc.cc
b/vp9/ratectrl_rtc.cc
index
0f56e67
..
6446120
100644
(file)
--- a/
vp9/ratectrl_rtc.cc
+++ b/
vp9/ratectrl_rtc.cc
@@
-25,9
+25,9
@@
std::unique_ptr<VP9RateControlRTC> VP9RateControlRTC::Create(
VP9RateControlRTC());
if (!rc_api) return nullptr;
rc_api->cpi_ = static_cast<VP9_COMP *>(vpx_memalign(32, sizeof(*cpi_)));
- if (
rc_api->cpi_ == nullptr) {
-
return nullptr
;
- }
+ if (
!rc_api->cpi_) return nullptr;
+
vp9_zero(*rc_api->cpi_)
;
+
rc_api->InitRateControl(cfg);
if (cfg.aq_mode) {
VP9_COMP *const cpi = rc_api->cpi_;