[FFmpeg-devel] [PATCH] af_volumedetect: Work with sample formats other than s16/s16p

Paul B Mahol onemda at gmail.com
Sat Aug 13 12:23:42 EEST 2016


On 8/13/16, Nicolas George <george at nsup.org> wrote:
> Le septidi 27 thermidor, an CCXXIV, Burt P a écrit :
>> The histogram will still only be shown for s16 and s16p.
>>
>> Signed-off-by: Burt P <pburt0 at gmail.com>
>> ---
>>  libavfilter/af_volumedetect.c | 133
>> ++++++++++++++++++++++++++++++++++++++----
>>  1 file changed, 121 insertions(+), 12 deletions(-)
>
> Did you benchmark the original s16 case? The main point of this filter is
> that it is fast. With these changes, I see switches inside inner loops, and
> I am afraid it becomes less fast.

Also, swresample already does what converting code do, but faster.


More information about the ffmpeg-devel mailing list