diff options
author | Clément Bœsch <u@pkh.me> | 2015-03-14 21:17:27 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2015-03-16 23:43:12 +0100 |
commit | 93d9ce7cec48a4c6478bba4383613fca3f28740a (patch) | |
tree | c7f61d1428a1072ea38100cf0b49abd50536da1a /libavfilter | |
parent | 38fb183b125657f2356183b1e2a493d3eda7f02c (diff) | |
download | ffmpeg-93d9ce7cec48a4c6478bba4383613fca3f28740a.tar.gz |
avfilter/formats: use av_realloc_array in ADD_FORMAT()
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/formats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 1fc7fa6019..896ceeba88 100644 --- 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); \ |