diff options
author | Marton Balint <cus@passwd.hu> | 2024-11-10 01:14:06 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2024-11-29 21:16:22 +0100 |
commit | 8d6f3bcb96043a590dd0ef60faf194066195d1cc (patch) | |
tree | 8bc33826c1c5846e31b4c5da3589a905f5f6f1ec /tests/fate/hlsenc.mak | |
parent | 06247ae7460df0353d470c27465e880a97977f80 (diff) | |
download | ffmpeg-8d6f3bcb96043a590dd0ef60faf194066195d1cc.tar.gz |
avfilter/asrc_sine: increase frequency accuracy
Previously the delta phase was fixed point fractional with 2^32 fractions,
which caused inaccuracies in the output frequency, unless the input
frequency*2^32 was divisable by the sample rate.
This patch improves frequency accuracy by tracking subfractions of the delta
phase fractions. For this we are using a denominator which is a multiple of the
sample rate, making sure that integer frequencies are always accurately
represented.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'tests/fate/hlsenc.mak')
0 files changed, 0 insertions, 0 deletions