On Tue, Sep 08, 2020 at 11:18:49PM +0200, Andreas Rheinhardt wrote: > 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. > > Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com> > --- > libavfilter/af_headphone.c | 28 +++++----------------------- > 1 file changed, 5 insertions(+), 23 deletions(-) >
should be fine if properly tested. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".