LoRd_MuldeR
8ab200fb8a
avfilter/af_dynaudnorm: improve pre-filling code
...
In order to avoid possible clipping at the very
beginning. Especially apparent when "alternative"
boundary mode is used.
Adopted from original commit by committer.
2016-08-02 20:00:44 +02:00
Paul B Mahol
307b848218
avfilter/af_dynaudnorm: call uninit() from config_input()
...
Should help dynamic filtergraph reconfiguration.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-19 20:14:14 +01:00
Paul B Mahol
70df51112c
avfilter/af_dynaudnorm: fix possible null pointer dereference
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-14 14:30:36 +01:00
Ganesh Ajjanagadde
ad795f6394
lavfi/af_dynaudnorm: replace round by lrint
...
lrint is at least as fast, uses a superior rounding mode, and avoids an
implicit cast.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-12-21 08:22:23 -08:00
Paul B Mahol
7caf381a95
avfilter/af_dynaudnorm: use av_malloc_array()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-12-19 22:46:10 +01:00
Ganesh Ajjanagadde
352bd18dff
avfilter/af_dynaudnorm: remove wasteful pow
...
This removes wasteful pow(x, 2.0) that although not terribly important
for speed, is still useless.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-11-26 09:20:46 -05:00
Ganesh Ajjanagadde
7769e6602d
avfilter/af_dynaudnorm: use M_PI
...
The ad-hoc pi constant has a ludicrous number of digits that offer no
value whatsoever. M_PI is more consistent and readable across the
codebase.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-11-20 08:29:56 -05:00
Nicolas George
44f660e7e7
lavfi: remove FF_LINK_FLAG_REQUEST_LOOP.
...
It has no longer any effect.
2015-09-20 19:02:33 +02:00
Paul B Mahol
494b792441
avfilter: use ff_all_channel_counts() instead of ff_all_channel_layouts()
...
Fixes playback of some files with ffplay.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-09-12 01:43:06 +00:00
Clément Bœsch
266997504d
avfilter/dynaudnorm: use AV_OPT_TYPE_BOOL
2015-09-08 22:39:24 +02:00
Michael Niedermayer
92b3c486b0
avfilter/af_dynaudnorm: Fix typo in assert
...
Fixes: CID1322303
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-09-03 18:55:06 +02:00
Michael Niedermayer
2927b61c55
avfilter/af_dynaudnorm: Use av_frame_get_channels()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-18 10:45:29 +02:00
Michael Niedermayer
4c7c0d37e5
avfilter/af_dynaudnorm: Fix "ISO C90 forbids mixed declarations and code" warnings
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-17 21:13:56 +02:00
LoRd_MuldeR
21436b95dc
avfilter: add Dynamic Audio Normalizer filter
2015-07-17 10:58:24 +00:00