diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-25 15:08:31 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-09 13:47:35 +0200 |
commit | abe0a5dd0a87aa8f509a366910ed6e3ccc2bd281 (patch) | |
tree | 09c34d85837f99f5813ac1a856d07ad15b67ea77 /doc/examples/avio_reading.c | |
parent | 9d1f58424aa3154e63b7c7cfed6c5311ad6a6ccc (diff) | |
download | ffmpeg-abe0a5dd0a87aa8f509a366910ed6e3ccc2bd281.tar.gz |
avfilter/af_headphone: Avoid intermediate buffer III
The headphone filter allocates a pair of buffers to be used as
intermediate buffers lateron: Before every use they are zeroed, then
some elements of the buffer are set and lateron the complete buffers are
copied into another, bigger buffer. These intermediate buffers are
unnecessary as the data can be directly written into the bigger buffer.
Furthermore, the whole buffer has been zeroed initially and because no
piece of this buffer is set twice (due to the fact that duplicate
channel map entries are skipped), it is unnecessary to rezero the part
of the big buffer that is about to be written to.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'doc/examples/avio_reading.c')
0 files changed, 0 insertions, 0 deletions