]> granicus.if.org Git - libvpx/commitdiff
Initialize VP9EncoderConfig profile and bit depth
authorChunbo Hua <chunbo.hua@intel.com>
Wed, 16 Jun 2021 08:51:44 +0000 (01:51 -0700)
committerChunbo Hua <chunbo.hua@intel.com>
Thu, 17 Jun 2021 02:30:25 +0000 (19:30 -0700)
Change-Id: I5c42013a08677cdef8d47f348458118338ff0138

vp9/ratectrl_rtc.cc

index 47f9f3ba33eecedbcaea4a18673fe9e156f467bb..8f77fc842d99434dd65a0c9d99adadf6689f7ba5 100644 (file)
@@ -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;