1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00
FFmpeg/libswresample
Marton Balint 3fb9425a75 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>
(cherry picked from commit 7b1b9bb31f)
2024-03-19 21:25:07 +01:00
..
aarch64 aarch64: Reindent all assembly to 8/24 column indentation 2023-10-21 23:25:54 +03:00
arm
tests
x86 swresample/swresample: add a used channel layout option using the new API 2023-02-19 18:28:45 -03:00
audioconvert.c
audioconvert.h
dither_template.c
dither.c
libswresample.v
log2_tab.c
Makefile
noise_shaping_data.c
options.c swresample/swresample: add a used channel layout option using the new API 2023-02-19 18:28:45 -03:00
rematrix_template.c
rematrix.c swresample/swresample: add a used channel layout option using the new API 2023-02-19 18:28:45 -03:00
resample_dsp.c
resample_template.c
resample.c swresample/resample: fix rounding errors with filter_size=1 and phase_shift=0 2024-03-19 21:25:07 +01:00
resample.h
soxr_resample.c
swresample_frame.c
swresample_internal.h swresample/swresample: add a used channel layout option using the new API 2023-02-19 18:28:45 -03:00
swresample.c libswresample/swresample: avoid s16p internal transfer format 2023-09-25 21:41:35 +02:00
swresample.h
swresampleres.rc
version_major.h
version.c
version.h Bump versions prior to 6.1 2023-10-29 16:19:39 +01:00