summaryrefslogtreecommitdiff
path: root/makemkv-oss/debian/patches/missing-av_mallocz_array.patch
diff options
context:
space:
mode:
Diffstat (limited to 'makemkv-oss/debian/patches/missing-av_mallocz_array.patch')
-rw-r--r--makemkv-oss/debian/patches/missing-av_mallocz_array.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/makemkv-oss/debian/patches/missing-av_mallocz_array.patch b/makemkv-oss/debian/patches/missing-av_mallocz_array.patch
new file mode 100644
index 0000000..86a56f0
--- /dev/null
+++ b/makemkv-oss/debian/patches/missing-av_mallocz_array.patch
@@ -0,0 +1,18 @@
+Author: junknot
+Origin: https://build.opensuse.org/package/show/home:junknot/makemkv
+Reference: https://forum.makemkv.com/forum/viewtopic.php?f=3&p=132993
+Version: 1.17.4
+Message: FFmpeg deprecated a function call name.
+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);
bgstack15