summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-11-21 23:01:48 -0300
committerJames Almer <jamrial@gmail.com>2016-11-21 23:02:20 -0300
commit0b8df0ce48e6e3d3263f20ec0ce20fe72bdae318 (patch)
tree3036995a2d38bfb3e1bfc7315cca89b542890b57
parentf242e0a0ff0d24caabc2f647ffc669c1c51fbcba (diff)
avformat/utils: add missing brackets around arguments in av_realloc() call
Found-by: Neil Birkbeck <neil.birkbeck@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 9d01babaf4..26343175ff 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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);
}