diff mbox

[FFmpeg-devel] fate: add swr-convertaudio test

Message ID 1476657461-26309-1-git-send-email-mfcc64@gmail.com
State Accepted
Commit 2c1be03cb38fb8a11331e7b8ce761569af3aab58
Headers show

Commit Message

Muhammad Faiz Oct. 16, 2016, 10:37 p.m. UTC
test for flt to s16
should pass on correct rounding to nearest

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
---
 tests/fate/libswresample.mak | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Michael Niedermayer Oct. 17, 2016, 11:20 p.m. UTC | #1
On Mon, Oct 17, 2016 at 05:37:41AM +0700, Muhammad Faiz wrote:
> test for flt to s16
> should pass on correct rounding to nearest
> 
> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
> ---
>  tests/fate/libswresample.mak | 8 ++++++++
>  1 file changed, 8 insertions(+)

tested on linux32/64, arm and mips qemu

LGTM

thx

[...]
Muhammad Faiz Oct. 18, 2016, 8:06 a.m. UTC | #2
On Tue, Oct 18, 2016 at 6:20 AM, Michael Niedermayer
<michael@niedermayer.cc> wrote:
> On Mon, Oct 17, 2016 at 05:37:41AM +0700, Muhammad Faiz wrote:
>> test for flt to s16
>> should pass on correct rounding to nearest
>>
>> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
>> ---
>>  tests/fate/libswresample.mak | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>
> tested on linux32/64, arm and mips qemu
>
> LGTM
>
> thx

pushed

thanks
diff mbox

Patch

diff --git a/tests/fate/libswresample.mak b/tests/fate/libswresample.mak
index 93b8d6e..7cb3bdb 100644
--- a/tests/fate/libswresample.mak
+++ b/tests/fate/libswresample.mak
@@ -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)