ffmpeg/libavresample
Justin Ruggles 10e645e9cb lavr: handle clipping in the float to s32 conversion
We cannot clip to INT_MAX because that value cannot be exactly
represented by a float value and ends up overflowing during conversion
anyway. We need to use a slightly smaller float value, which ends up
with slightly inaccurate results for samples which clip or nearly clip,
but it is close enough. Using doubles as intermediates in the conversion
would be more accurate, but it takes about twice as much time.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2012-10-13 12:34:34 +02:00
..
arm
x86 lavr: handle clipping in the float to s32 conversion 2012-10-13 12:34:34 +02:00
Makefile
audio_convert.c
audio_convert.h
audio_data.c lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
audio_data.h lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
audio_mix.c
audio_mix.h
audio_mix_matrix.c
avresample-test.c lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
avresample.h lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
internal.h
libavresample.v
options.c
resample.c
resample.h
resample_template.c
utils.c lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
version.h lavr: bump major to 1 and declare it stable. 2012-10-05 13:50:13 +02:00