projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f242e0a
)
avformat/utils: add missing brackets around arguments in av_realloc() call
author
James Almer
<jamrial@gmail.com>
Tue, 22 Nov 2016 02:01:48 +0000
(23:01 -0300)
committer
James Almer
<jamrial@gmail.com>
Tue, 22 Nov 2016 02:02:20 +0000
(23:02 -0300)
Found-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
9d01bab
..
2634317
100644
(file)
--- 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);
}