1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fate: add swr-convertaudio test

test for flt to s16
should pass on correct rounding to nearest

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
This commit is contained in:
Muhammad Faiz 2016-10-17 05:29:34 +07:00
parent 7853d838a6
commit 2c1be03cb3

View File

@ -741,5 +741,13 @@ FATE_SWR_RESAMPLE-$(call FILTERDEMDECENCMUX, ARESAMPLE, WAV, PCM_S16LE, PCM_S16L
fate-swr-resample: $(FATE_SWR_RESAMPLE-yes)
FATE_SWR += $(FATE_SWR_RESAMPLE-yes)
FATE_SWR_AUDIOCONVERT-$(call FILTERDEMDECENCMUX, AFORMAT AEVAL, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-swr-audioconvert
fate-swr-audioconvert: tests/data/asynth-44100-1.wav
fate-swr-audioconvert: REF = tests/data/asynth-44100-1.wav
fate-swr-audioconvert: CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-44100-1.wav -af "aformat=fltp,aeval=val(0)+(random(0)-0.5)/33000,aformat=fltp" -f wav -acodec pcm_s16le -
fate-swr-audioconvert: CMP = stddev
fate-swr-audioconvert: FUZZ = 0
FATE_SWR += $(FATE_SWR_AUDIOCONVERT-yes)
FATE_FFMPEG += $(FATE_SWR)
fate-swr: $(FATE_SWR)