[vlc-commits] qsv: Fix memory leak
Hugo Beauzée-Luyssen
git at videolan.org
Wed Aug 23 17:39:45 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Aug 23 15:07:39 2017 +0200| [ac73a7926514f94f06a30393164c854dac12ca66] | committer: Hugo Beauzée-Luyssen
qsv: Fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac73a7926514f94f06a30393164c854dac12ca66
---
modules/codec/qsv.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index e24196fa65..6d94abb3a3 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -498,11 +498,10 @@ static int Open(vlc_object_t *this)
sys->params.mfx.CodecProfile, sys->params.mfx.CodecLevel);
}
+ char *psz_rc = var_InheritString(enc, SOUT_CFG_PREFIX "rc-method");
+ msg_Dbg(enc, "Encoder using '%s' Rate Control method", psz_rc );
sys->params.mfx.RateControlMethod = qsv_params_get_value(rc_method_text,
- rc_method_list, sizeof(rc_method_list),
- var_InheritString(enc, SOUT_CFG_PREFIX "rc-method"));
- msg_Dbg(enc, "Encoder using '%s' Rate Control method",
- var_InheritString(enc, SOUT_CFG_PREFIX "rc-method"));
+ rc_method_list, sizeof(rc_method_list), psz_rc );
if (sys->params.mfx.RateControlMethod == MFX_RATECONTROL_CQP) {
sys->params.mfx.QPI = sys->params.mfx.QPB = sys->params.mfx.QPP =
More information about the vlc-commits
mailing list