You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user