summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-10-30 17:11:46 +0200
committersfan5 <sfan5@live.de>2021-11-05 23:34:20 +0100
commit6996588254e59cc5c2489556d6fbfc8bca54f19c (patch)
tree71df1d3a1186a906e5553585e1e3dd663641d31b
parent662c793a557925319493297de8c941a636f18d73 (diff)
downloadmpv-6996588254e59cc5c2489556d6fbfc8bca54f19c.tar.bz2
mpv-6996588254e59cc5c2489556d6fbfc8bca54f19c.tar.xz
audio: replace deprecated av_mallocz_array
-rw-r--r--audio/aframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/aframe.c b/audio/aframe.c
index c2c0df7c9b..46264b692e 100644
--- a/audio/aframe.c
+++ b/audio/aframe.c
@@ -637,7 +637,7 @@ int mp_aframe_pool_allocate(struct mp_aframe_pool *pool, struct mp_aframe *frame
av_freep(&av_frame->extended_data); // sigh
if (planes > AV_NUM_DATA_POINTERS) {
av_frame->extended_data =
- av_mallocz_array(planes, sizeof(av_frame->extended_data[0]));
+ av_calloc(planes, sizeof(av_frame->extended_data[0]));
if (!av_frame->extended_data)
abort();
} else {