[FFmpeg-devel] [PATCH] tests/fate/filter-audio: convert atempo test to oneoff

James Almer jamrial at gmail.com
Thu Jul 4 23:45:28 EEST 2024


On 7/4/2024 4:04 PM, Anton Khirnov wrote:
> Filter output is not bitexact.
> ---
> Reference file at https://up.khirnov.net/7r.pcm, please put it in
> filter-reference/atempo.pcm

How did you create it? x86_32 uses x87 floats which are a lot more 
precise than sse ones, for example, so it's best to create a ref file 
using such a build.

> ---
>   tests/fate/filter-audio.mak | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak
> index cf6065b93f..a3f7aaddbf 100644
> --- a/tests/fate/filter-audio.mak
> +++ b/tests/fate/filter-audio.mak
> @@ -414,7 +414,9 @@ fate-filter-hdcd-s32p: REF = 0c5513e83eedaa10ab6fac9ddc173cf5
>   
>   FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, ATEMPO, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-atempo
>   fate-filter-atempo: tests/data/asynth-44100-1.wav
> -fate-filter-atempo: CMD = framecrc -i $(TARGET_PATH)/tests/data/asynth-44100-1.wav -af "atempo=2.0" -ar 44100
> +fate-filter-atempo: CMD = pcm -i $(TARGET_PATH)/tests/data/asynth-44100-1.wav -af "atempo=2.0"
> +fate-filter-atempo: CMP = oneoff
> +fate-filter-atempo: REF = $(SAMPLES)/filter-reference/atempo.pcm
>   
>   FATE_AFILTER-yes += fate-filter-formats
>   fate-filter-formats: libavfilter/tests/formats$(EXESUF)


More information about the ffmpeg-devel mailing list