[MPlayer-cvslog] r37820 - trunk/libmpcodecs/ve_lavc.c

reimar subversion at mplayerhq.hu
Wed Mar 2 22:33:27 CET 2016


Author: reimar
Date: Wed Mar  2 22:33:27 2016
New Revision: 37820

Log:
ve_lavc: ensure options use malloc'd memory.

Fixes trac issue #2190 (assert if MEMALIGN_HACK is used).

Modified:
   trunk/libmpcodecs/ve_lavc.c

Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c	Wed Mar  2 22:33:25 2016	(r37819)
+++ trunk/libmpcodecs/ve_lavc.c	Wed Mar  2 22:33:27 2016	(r37820)
@@ -370,7 +370,7 @@ static int config(struct vf_instance *vf
     lavc_venc_context->rc_qsquish= lavc_param_rc_qsquish;
     lavc_venc_context->rc_qmod_amp= lavc_param_rc_qmod_amp;
     lavc_venc_context->rc_qmod_freq= lavc_param_rc_qmod_freq;
-    lavc_venc_context->rc_eq= lavc_param_rc_eq;
+    lavc_venc_context->rc_eq= av_strdup(lavc_param_rc_eq);
 
     mux_v->max_rate=
     lavc_venc_context->rc_max_rate= lavc_param_rc_max_rate*1000;


More information about the MPlayer-cvslog mailing list