Fix ffmpeg API usage, lets this build with clang 15

Maintainer timeout
This commit is contained in:
jca 2023-01-24 17:48:32 +00:00
parent b78dc48784
commit feb45f90be
2 changed files with 15 additions and 1 deletions

View File

@ -3,7 +3,7 @@ COMMENT= movie player supporting many formats
V= 20211106
FFMPEG_V= 4.4.3
DISTNAME= mplayer-${V}
REVISION= 3
REVISION= 4
CATEGORIES= x11 multimedia
MASTER_SITES= https://comstyle.com/source/
EXTRACT_SUFX= .tar.xz

View File

@ -0,0 +1,14 @@
av_reallocp_array and av_realloc_array are not the same functions.
Index: libmpcodecs/ve_lavc.c
--- libmpcodecs/ve_lavc.c.orig
+++ libmpcodecs/ve_lavc.c
@@ -442,7 +442,7 @@ static int config(struct vf_instance *vf,
return 0;
}
lavc_venc_context->rc_override=
- av_reallocp_array(lavc_venc_context->rc_override, i+1, sizeof(*lavc_venc_context->rc_override));
+ av_realloc_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){