ffmpeg/libswresample
Marton Balint 7b1b9bb31f swresample/resample: fix rounding errors with filter_size=1 and phase_shift=0
Depending on input chunk size noticable corrpution was hearable, here is an
example command line:

ffplay -f lavfi -i "sine=440:r=8000:samples_per_frame=32,aresample=24000:filter_size=1:phase_shift=0"

Fix this by rounding the fixed point fractions up instead of down.

Signed-off-by: Marton Balint <cus@passwd.hu>
2024-03-02 19:13:03 +01:00
..
aarch64 aarch64: Reindent all assembly to 8/24 column indentation 2023-10-21 23:25:54 +03:00
arm Include attributes.h directly 2021-04-19 14:34:10 +02:00
tests swresample: convert to new channel layout API 2022-03-15 09:42:46 -03:00
x86 swresample/swresample: add a used channel layout option using the new API 2023-02-19 18:28:45 -03:00
Makefile configure: always enable gnu_windres if available 2022-08-13 14:42:36 +02:00
audioconvert.c all: Replace if (ARCH_FOO) checks by #if ARCH_FOO 2022-06-15 04:56:37 +02:00
audioconvert.h avutil/internal, swresample/audioconvert: Remove cpu.h inclusions 2021-07-22 14:33:45 +02:00
dither.c swresample: Skip over dither steps if dithering scale is 0 2016-08-18 11:52:11 +02:00
dither_template.c
libswresample.v
log2_tab.c
noise_shaping_data.c swresample/noise_shaping_data: Remove unused tables 2022-06-15 04:58:14 +02:00
options.c all: use designated initializers for AVOption.unit 2024-02-14 14:53:41 +01:00
rematrix.c swresample/swresample: add a used channel layout option using the new API 2023-02-19 18:28:45 -03:00
rematrix_template.c swresample: convert to new channel layout API 2022-03-15 09:42:46 -03:00
resample.c swresample/resample: fix rounding errors with filter_size=1 and phase_shift=0 2024-03-02 19:13:03 +01:00
resample.h swresample/aarch64: add ff_resample_common_apply_filter_{x4,x8}_{float,s16}_neon 2017-01-13 21:24:19 +01:00
resample_dsp.c all: Replace if (ARCH_FOO) checks by #if ARCH_FOO 2022-06-15 04:56:37 +02:00
resample_template.c swresample/resample_template: Add filter values in parallel 2016-12-10 02:44:21 +01:00
soxr_resample.c swresample/soxr: fix invalid use of linear_interp 2016-11-26 05:52:24 +07:00
swresample.c swresample/swresample: Constify swr_convert() 2024-03-02 02:51:55 +01:00
swresample.h swresample/swresample: Constify swr_convert() 2024-03-02 02:51:55 +01:00
swresample_frame.c swresample/swresample_frame: fix regression in detecting changes 2023-01-04 18:19:07 +01:00
swresample_internal.h swresample/swresample: add a used channel layout option using the new API 2023-02-19 18:28:45 -03:00
swresampleres.rc
version.c lib*/version: Move library version functions into files of their own 2022-05-10 06:49:32 +02:00
version.h swresample/swresample: Constify swr_convert() 2024-03-02 02:51:55 +01:00
version_major.h libswresample: Split version.h 2022-03-16 14:05:26 +02:00