avfilter/ebur128: fix relative threshold calculation for multiple contexts
authorMarton Balint <cus@passwd.hu>
Wed, 25 Jan 2017 00:44:31 +0000 (01:44 +0100)
committerMarton Balint <cus@passwd.hu>
Sat, 4 Feb 2017 22:54:18 +0000 (23:54 +0100)
commitfd57f70c9788e55ec9270e1f43ac1a680b9b9531
treec50a22ba9815a39f686e3c1e45766ffaea2a20ce
parenta91cedf79a92377300006b66b8707ae52021eea9
avfilter/ebur128: fix relative threshold calculation for multiple contexts

This reworks the code a bit and also disallows NULL contexts.

Fixes Coverity CID 13962731396279.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavfilter/ebur128.c