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

reimar subversion at mplayerhq.hu
Fri Feb 3 22:22:32 EET 2023


Author: reimar
Date: Fri Feb  3 22:22:31 2023
New Revision: 38410

Log:
ve_lavc: Fix av_reallocp_array usage.

Reported by Jeremie Courreges-Anglas <jca at wxcvbn org> and
Brad Smith <brad at comstyle com>

Modified:
   trunk/libmpcodecs/ve_lavc.c

Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c	Thu Feb  2 00:14:09 2023	(r38409)
+++ trunk/libmpcodecs/ve_lavc.c	Fri Feb  3 22:22:31 2023	(r38410)
@@ -441,8 +441,7 @@ static int config(struct vf_instance *vf
 	    mp_msg(MSGT_MENCODER,MSGL_ERR,"error parsing vrc_q\n");
             return 0;
         }
-        lavc_venc_context->rc_override=
-            av_reallocp_array(lavc_venc_context->rc_override, i+1, sizeof(*lavc_venc_context->rc_override));
+        av_reallocp_array(&lavc_venc_context->rc_override, i+1, sizeof(*lavc_venc_context->rc_override));
         lavc_venc_context->rc_override[i].start_frame= start;
         lavc_venc_context->rc_override[i].end_frame  = end;
         if(q>0){


More information about the MPlayer-cvslog mailing list