mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-10-19 09:53:18 +00:00
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>
This commit is contained in:
parent
81adbd2d3d
commit
834bedf312
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue