summaryrefslogtreecommitdiff
path: root/makemkv-fix-build-with-ffmpeg6.patch
diff options
context:
space:
mode:
Diffstat (limited to 'makemkv-fix-build-with-ffmpeg6.patch')
-rw-r--r--makemkv-fix-build-with-ffmpeg6.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/makemkv-fix-build-with-ffmpeg6.patch b/makemkv-fix-build-with-ffmpeg6.patch
new file mode 100644
index 0000000..275aeef
--- /dev/null
+++ b/makemkv-fix-build-with-ffmpeg6.patch
@@ -0,0 +1,25 @@
+From e07e7800ed622a9bb3d3ad03af0342d5caec3905 Mon Sep 17 00:00:00 2001
+From: FabioLolix <fabio.loli@disroot.org>
+Date: Fri, 10 Mar 2023 23:17:20 +0100
+Subject: [PATCH] fix build with ffmpeg6
+
+---
+ libffabi/src/ffabi.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libffabi/src/ffabi.c b/libffabi/src/ffabi.c
+index 5dda9e1..2b29b87 100644
+--- a/libffabi/src/ffabi.c
++++ b/libffabi/src/ffabi.c
+@@ -478,7 +478,7 @@ FFM_AudioEncodeContext* __cdecl ffm_audio_encode_init(void* logctx,const char* n
+ #else
+ ctx->frame = av_frame_alloc();
+ if (av_sample_fmt_is_planar(ctx->avctx->sample_fmt)) {
+- ctx->frame_extended_data = av_mallocz_array(ctx->avctx->channels,
++ ctx->frame_extended_data = av_calloc(ctx->avctx->channels,
+ sizeof(*ctx->frame_extended_data));
+ if (!ctx->frame_extended_data) {
+ ffm_audio_encode_close(ctx);
+--
+2.39.2
+