]> git.sesse.net Git - ffmpeg/commit
avfilter/af_amix: Don't needlessly reallocate table
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 7 Aug 2020 14:08:42 +0000 (16:08 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 23 Aug 2020 21:24:04 +0000 (23:24 +0200)
commit27f35fd121e38b28daafb4f1ad47cf55b5e5ab71
tree75aae139e1f31004da0af7b53a1a2f20117f2ead
parentc4beb0783bd2470edbcc8da9e264c7fe1c10d7cc
avfilter/af_amix: Don't needlessly reallocate table

Replace using ff_add_format() repeatedly by a single call to
ff_make_format_list(). (Right now this also fixes a memleak: If the
first ff_add_format() succeeds and a subsequent call fails, the list
leaks.)

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/af_amix.c