summaryrefslogtreecommitdiff
path: root/libavfilter/ebur128.c
Commit message (Collapse)AuthorAgeFilesLines
* avfilter/ebur128: fix relative threshold calculation for multiple contextsMarton Balint2017-02-041-30/+16
| | | | | | | | This reworks the code a bit and also disallows NULL contexts. Fixes Coverity CID 1396273, 1396279. Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/ebur128: do not allow null ebur128 context in ↵Marton Balint2017-02-041-1/+1
| | | | | | | | | | ff_ebur128_relative_threshold The user should supply a proper context. Fixes Coverity CID 1396246. Signed-off-by: Marton Balint <cus@passwd.hu>
* lavfi/ebur128: specify scaling_factor directlyMarton Balint2016-11-131-6/+5
| | | | | | | This should fix build with Solaris CC. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
* lavfi/loudnorm: add an internal libebur128 libraryMarton Balint2016-11-111-0/+784
Also contains the following changes to the library: - add ff_ prefix to functions - remove cplusplus defines. - add FF_ prefix to contants and some structs - remove true peak calculation feature, since it uses its own resampler, and af_loudnorm does not need it. - remove version info and some fprintf(stderr) functions - convert to use av_malloc - always use histogram mode for LRA calculation, otherwise LRA data is slowly consuming memory making af_loudnorm unfit for 24/7 operation. It also uses a BSD style linked list implementation which is probably not available on all platforms. So let's just remove the classic mode which not uses histogram. - add ff_thread_once for calculating static histogram tables - convert some functions to void which cannot fail - remove intrinsics and some unused headers - add support for planar audio - remove channel / sample rate changer function, in ffmpeg usually we simply alloc a new context - convert some static variables to defines - declare static histogram variables as aligned - convert some initalizations to mallocz - add window size parameter to init function and remove window size setter function - convert return codes to AVERROR - fix indentation Signed-off-by: Marton Balint <cus@passwd.hu>