mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-16 12:24:52 +00:00
10e645e9cb
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> |
||
---|---|---|
.. | ||
arm | ||
x86 | ||
audio_convert.c | ||
audio_convert.h | ||
audio_data.c | ||
audio_data.h | ||
audio_mix_matrix.c | ||
audio_mix.c | ||
audio_mix.h | ||
avresample-test.c | ||
avresample.h | ||
internal.h | ||
libavresample.v | ||
Makefile | ||
options.c | ||
resample_template.c | ||
resample.c | ||
resample.h | ||
utils.c | ||
version.h |