]> git.sesse.net Git - ffmpeg/commit
avfilter/af_headphone: Only keep one AVFrame at a time
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 26 Aug 2020 04:10:47 +0000 (06:10 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 9 Sep 2020 11:47:40 +0000 (13:47 +0200)
commit990d9dd80000468ea4088cf318370b5045ea69d1
treec0be537b546d51cda32bece58a65c4a8c42f616a
parentabe0a5dd0a87aa8f509a366910ed6e3ccc2bd281
avfilter/af_headphone: Only keep one AVFrame at a time

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.

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