openh264enc: Actually hook up the rate-control property
authorSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jun 2016 21:19:26 +0000 (23:19 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jun 2016 21:30:13 +0000 (23:30 +0200)
ext/openh264/gstopenh264enc.cpp

index 8d88117..5e9eca0 100644 (file)
@@ -654,7 +654,7 @@ gst_openh264enc_set_format (GstVideoEncoder * encoder,
   enc_params.iPicWidth = width;
   enc_params.iPicHeight = height;
   enc_params.iTargetBitrate = openh264enc->bitrate;
-  enc_params.iRCMode = RC_QUALITY_MODE;
+  enc_params.iRCMode = openh264enc->rate_control;
   enc_params.iTemporalLayerNum = 1;
   enc_params.iSpatialLayerNum = 1;
   enc_params.iLtrMarkPeriod = 30;