ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Tue Jun  3 19:57:38 2025 +0200| [834bedf3121e9f9d551abb7994b87e630bf5fa5a] | 
committer: Andreas Rheinhardt

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.rheinha...@outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=834bedf3121e9f9d551abb7994b87e630bf5fa5a
---

 libavutil/frame.c | 4 ++--
 1 file 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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to