From c8666c58e826575a4b94b8d1cab9652328fcdad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 30 Jun 2016 23:19:26 +0200 Subject: [PATCH] openh264enc: Actually hook up the rate-control property --- ext/openh264/gstopenh264enc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp index 8d8811733b..5e9eca0581 100644 --- a/ext/openh264/gstopenh264enc.cpp +++ b/ext/openh264/gstopenh264enc.cpp @@ -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;