]> git.sesse.net Git - ffmpeg/commit
avfilter/af_headphone: Avoid intermediate buffers II
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 25 Aug 2020 13:35:23 +0000 (15:35 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 9 Sep 2020 11:47:19 +0000 (13:47 +0200)
commitd883bca0f0f15bd4b86d57fb64c172b3c0c8850f
treef85b2f62749d6246b2b661ddd8d6d78ed320031c
parentf5e1d38b87fb82c199ea293863789c8bfb7fe1bf
avfilter/af_headphone: Avoid intermediate buffers II

When the headphone filter is configured to perform its processing in the
frequency domain, it allocates (among other things) two pairs of
buffers, all of the same size. One pair is used to store data in it
during the initialization of the filter; the other pair is only
allocated lateron. It is zero-initialized and yet its data is
immediately overwritten by the content of the other pair of buffers
mentioned above; the latter pair is then freed.

This commit eliminates the pair of intermediate buffers.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/af_headphone.c