Commit 0b8df0ce authored by James Almer's avatar James Almer

avformat/utils: add missing brackets around arguments in av_realloc() call

Found-by: 's avatarNeil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent f242e0a0
......@@ -5124,7 +5124,7 @@ int av_stream_add_side_data(AVStream *st, enum AVPacketSideDataType type,
if ((unsigned)st->nb_side_data + 1 >= INT_MAX / sizeof(*st->side_data))
return AVERROR(ERANGE);
tmp = av_realloc(st->side_data, st->nb_side_data + 1 * sizeof(*tmp));
tmp = av_realloc(st->side_data, (st->nb_side_data + 1) * sizeof(*tmp));
if (!tmp) {
return AVERROR(ENOMEM);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment