aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/frame.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-06-03 19:57:38 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-06-06 17:21:37 +0200
commit834bedf3121e9f9d551abb7994b87e630bf5fa5a (patch)
treea645d2d2f43445f1cee0380608c086b05db4c200 /libavutil/frame.c
parent81adbd2d3d63c801d4b7d5410cf16979f475e58c (diff)
downloadffmpeg-834bedf3121e9f9d551abb7994b87e630bf5fa5a.tar.gz
avutil/frame: Fix av_realloc_array() argument order
This is not a real bug, but mostly cosmetic. Fixes ticket #11620. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r--libavutil/frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c
index 13141f143e..8f3fda2371 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -421,8 +421,8 @@ int av_frame_replace(AVFrame *dst, const AVFrame *src)
for (int i = nb_extended_buf; i < dst->nb_extended_buf; i++)
av_buffer_unref(&dst->extended_buf[i]);
- tmp = av_realloc_array(dst->extended_buf, sizeof(*dst->extended_buf),
- src->nb_extended_buf);
+ tmp = av_realloc_array(dst->extended_buf, src->nb_extended_buf,
+ sizeof(*dst->extended_buf));
if (!tmp) {
ret = AVERROR(ENOMEM);
goto fail;