diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-25 15:31:04 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-09 13:47:14 +0200 |
commit | f5e1d38b87fb82c199ea293863789c8bfb7fe1bf (patch) | |
tree | 9b48bbbe0a74d8cf0f9b4bb41e24309bd5bbb96e /doc/examples/encode_audio.c | |
parent | a513b306b3bb058f0501a72dd5169dfc39bf73ef (diff) | |
download | ffmpeg-f5e1d38b87fb82c199ea293863789c8bfb7fe1bf.tar.gz |
avfilter/af_headphone: Avoid intermediate buffers I
The headphone filter has two modes; in one of them (say A), it needs
certain buffers to store data. But it allocated them in both modes.
Furthermore when in mode A it also allocated intermediate buffers of the
same size, initialized them, copied their contents into the permanent
buffers and freed them.
This commit changes this: The permanent buffer is only allocated when
needed; the temporary buffer has been completely avoided.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'doc/examples/encode_audio.c')
0 files changed, 0 insertions, 0 deletions