[MPlayer-cvslog] r37825 - trunk/libmpcodecs/ve_lavc.c
reimar
subversion at mplayerhq.hu
Wed Mar 2 22:33:33 CET 2016
Author: reimar
Date: Wed Mar 2 22:33:33 2016
New Revision: 37825
Log:
ve_lavc: use av_reallocp_array.
Using realloc but using av_freep later
is not allowed.
Modified:
trunk/libmpcodecs/ve_lavc.c
Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c Wed Mar 2 22:33:32 2016 (r37824)
+++ trunk/libmpcodecs/ve_lavc.c Wed Mar 2 22:33:33 2016 (r37825)
@@ -455,7 +455,7 @@ static int config(struct vf_instance *vf
return 0;
}
lavc_venc_context->rc_override=
- realloc(lavc_venc_context->rc_override, sizeof(RcOverride)*(i+1));
+ 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