git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
38fb183
)
avfilter/formats: use av_realloc_array in ADD_FORMAT()
author
Clément Bœsch
<u@pkh.me>
Sat, 14 Mar 2015 20:17:27 +0000
(21:17 +0100)
committer
Clément Bœsch
<u@pkh.me>
Mon, 16 Mar 2015 22:43:12 +0000
(23:43 +0100)
libavfilter/formats.c
patch
|
blob
|
history
diff --git
a/libavfilter/formats.c
b/libavfilter/formats.c
index
1fc7fa6
..
896ceeb
100644
(file)
--- a/
libavfilter/formats.c
+++ b/
libavfilter/formats.c
@@
-308,8
+308,8
@@
do { \
if (!(*f) && !(*f = av_mallocz(sizeof(**f)))) \
return AVERROR(ENOMEM); \
\
- fmts = av_realloc
((*f)->list,
\
-
sizeof(*(*f)->list) * ((*f)->nb + 1));
\
+ fmts = av_realloc
_array((*f)->list, (*f)->nb + 1,
\
+
sizeof(*(*f)->list));
\
if (!fmts) { \
if (!oldf) \
av_freep(f); \