[FFmpeg-devel] [PATCH 19/25] avfilter/af_headphone: Only keep one AVFrame at a time

Paul B Mahol onemda at gmail.com
Wed Sep 9 04:28:34 EEST 2020


On Tue, Sep 08, 2020 at 11:18:50PM +0200, Andreas Rheinhardt wrote:
> Despite the headphone filter only using one AVFrame at a time, it kept
> an array each of whose entries contained a pointer to an AVFrame at all
> times; the pointers were mostly NULL. This commit instead replaces them
> by using a single pointer to an AVFrame on the stack of the only
> function that actually uses them.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavfilter/af_headphone.c | 14 ++++----------
>  1 file changed, 4 insertions(+), 10 deletions(-)
> 

should be fine if properly tested.


More information about the ffmpeg-devel mailing list