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 7b1b9bb31f04fb9ba06e79c767c1084f0e229bb6)
2024-03-19 21:25:07 +01:00
..
2022-11-06 14:39:27 +01:00
2022-11-07 16:08:35 +11:00
2022-04-28 02:39:37 +02:00
2023-07-07 11:56:37 -03:00
2022-04-28 02:39:37 +02:00
2022-06-01 14:56:50 +02:00
2023-06-29 17:33:01 +02:00
2022-04-28 02:39:37 +02:00
2022-05-03 04:18:05 +02:00
2023-07-07 12:12:52 +02:00
2022-05-03 04:18:05 +02:00
2022-05-03 04:18:06 +02:00
2023-04-22 11:20:58 -03:00
2022-05-03 04:18:06 +02:00
2023-05-17 12:37:42 +02:00
2023-09-06 11:59:20 +02:00
2023-08-06 16:14:41 +08:00
2022-05-03 04:18:06 +02:00
2023-09-08 15:48:21 +02:00
2022-09-20 11:26:00 +02:00
2022-07-10 16:58:58 +02:00
2021-08-29 18:44:46 +02:00
2022-05-03 04:18:06 +02:00
2022-05-03 04:18:06 +02:00
2022-05-03 04:18:05 +02:00
2022-05-03 04:18:06 +02:00
2023-01-13 11:22:59 -06:00
2023-09-07 20:58:08 +02:00