aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-06-02 15:32:04 -0300
committerJames Almer <jamrial@gmail.com>2024-06-02 15:32:04 -0300
commitd8ffd65bfd07f8186bfaf14f27269e2441738e49 (patch)
treeb4d40eafe171cb5d5199d623f3e40b5038d06a3d
parent63e166d8028becb0fceff1648c17da9d3b0968dd (diff)
downloadffmpeg-d8ffd65bfd07f8186bfaf14f27269e2441738e49.tar.gz
avcodec/aac/aacdec_usac: remove call to realloc
Must be one of the lavu wrappers instead. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/aac/aacdec_usac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
index c3c9137a2e..f63a67381b 100644
--- a/libavcodec/aac/aacdec_usac.c
+++ b/libavcodec/aac/aacdec_usac.c
@@ -1396,7 +1396,7 @@ static int parse_audio_preroll(AACDecContext *ac, GetBitContext *gb)
if (au_len*8 > tmp_buf_size) {
uint8_t *tmp2;
tmp_buf = tmp_buf == temp_data ? NULL : tmp_buf;
- tmp2 = realloc(tmp_buf, au_len*8);
+ tmp2 = av_realloc_array(tmp_buf, au_len, 8);
if (!tmp2) {
if (tmp_buf != temp_data)
av_free(tmp_buf);