lavfi/aevalsrc: try to honor specified duration

If nb_samples divide sample_rate and if nb_samples allow it, aevalsrc
should generate the exact amount of samples according to duration.

Example:
aevalsrc=0::n=480:s=48000:d=5.21 should generate 250080 samples.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
swr: minor simplification for the noise shaping pos update

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swr: use local variable for ns_errors

71 -> 63 kcycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swr: use a local variable for ns_coeffs

maybe a very tiny bit faster

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
dec/developer: Add Valgrind / Address Sanitizer to the patch checklist

Reviewed-by: saste
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swr/noise_shaping_data: pad coeffs to multiple of 4 when they are 1 below

This allows using code working with 4 at a time

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swr: work with 4 noise shaping coeffs at a time

63->38 kcycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
dvdsubdec: use unsigned shifts to avoid shifting into the sign bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
dvdsubenc: use unsigned shifts to avoid shifting into the sign bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pthread: Do not use a half updated context as master for deallocation.

Fixes assertion failure

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
EVRC decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>