]> git.sesse.net Git - ffmpeg/commit
avfilter/formats: Avoid code duplication when merging samplerates
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 13 Aug 2020 22:18:09 +0000 (00:18 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 20 Aug 2020 19:31:01 +0000 (21:31 +0200)
commit363f93460fbce0a2ea073f7f64edc597405982a1
tree489bbba7dc698ded926944ae59439bec5ea7d420
parent621e2625e0e37c41ea813f1113278a79f05f288a
avfilter/formats: Avoid code duplication when merging samplerates

Right now, ff_merge_samplerates() contains three instances of the
MERGE_REF() macro, a macro which reallocates an array, updates some
pointers in a loop and frees several buffers. This commit makes it
possible to contain only one instance of said macro in the function,
thereby reducing codesize.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/formats.c