[FFmpeg-devel] [PATCH 1/2] swresample/resample: fix rounding errors with filter_size=1 and phase_shift=0
Michael Niedermayer
michael at niedermayer.cc
Tue Feb 27 19:53:20 EET 2024
On Tue, Feb 27, 2024 at 10:48:09AM +0100, Marton Balint wrote:
> 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 at passwd.hu>
> ---
> libswresample/resample.c | 4 ++--
> tests/fate/libswresample.mak | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
probably ok
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety -- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240227/71285dff/attachment.sig>
More information about the ffmpeg-devel
mailing list