summaryrefslogtreecommitdiff
path: root/vp9/ratectrl_rtc.cc
diff options
context:
space:
mode:
authorChunbo Hua <chunbo.hua@intel.com>2021-06-16 01:51:44 -0700
committerChunbo Hua <chunbo.hua@intel.com>2021-06-16 19:30:25 -0700
commit364f0e31fed78be436d00c177574dac00c0d85a4 (patch)
tree096bcab91116c055d6ad49fea5085413f2935b49 /vp9/ratectrl_rtc.cc
parenta945f344e04d2851cd675cca48182cca2e7d8a4e (diff)
downloadlibvpx-364f0e31fed78be436d00c177574dac00c0d85a4.tar.gz
Initialize VP9EncoderConfig profile and bit depth
Change-Id: I5c42013a08677cdef8d47f348458118338ff0138
Diffstat (limited to 'vp9/ratectrl_rtc.cc')
-rw-r--r--vp9/ratectrl_rtc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vp9/ratectrl_rtc.cc b/vp9/ratectrl_rtc.cc
index 47f9f3ba3..8f77fc842 100644
--- a/vp9/ratectrl_rtc.cc
+++ b/vp9/ratectrl_rtc.cc
@@ -39,6 +39,8 @@ void VP9RateControlRTC::InitRateControl(const VP9RateControlRtcConfig &rc_cfg) {
cm->bit_depth = VPX_BITS_8;
cm->show_frame = 1;
oxcf->rc_mode = VPX_CBR;
+ oxcf->profile = cm->profile;
+ oxcf->bit_depth = cm->bit_depth;
oxcf->pass = 0;
oxcf->aq_mode = NO_AQ;
oxcf->content = VP9E_CONTENT_DEFAULT;