[FFmpeg-devel] [PATCH 1/3] tests/swr: move the results out of the functions

Timothy Gu timothygu99 at gmail.com
Thu Jun 5 04:21:27 CEST 2014


This prevents all results from being declared whenever the function is called.

Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
 tests/fate/libswresample.mak | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/fate/libswresample.mak b/tests/fate/libswresample.mak
index 10a3c6f..3b479a9 100644
--- a/tests/fate/libswresample.mak
+++ b/tests/fate/libswresample.mak
@@ -20,6 +20,7 @@ fate-swr-resample-$(3)-$(1)-$(2): CMP = stddev
 fate-swr-resample-$(3)-$(1)-$(2): CMP_UNIT = $(5)
 fate-swr-resample-$(3)-$(1)-$(2): FUZZ = 0.1
 fate-swr-resample-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
+endef
 
 #below list is generated by:
 #you can use this if you need to update it!
@@ -264,7 +265,6 @@ fate-swr-resample-s32p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
 
 fate-swr-resample-s32p-96000-8000: CMP_TARGET = 58.60
 fate-swr-resample-s32p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
-endef
 
 define ARESAMPLE_LIN
 FATE_SWR_RESAMPLE += fate-swr-resample_lin-$(3)-$(1)-$(2)
@@ -275,6 +275,7 @@ fate-swr-resample_lin-$(3)-$(1)-$(2): CMP = stddev
 fate-swr-resample_lin-$(3)-$(1)-$(2): CMP_UNIT = $(5)
 fate-swr-resample_lin-$(3)-$(1)-$(2): FUZZ = 0.1
 fate-swr-resample_lin-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
+endef
 
 fate-swr-resample_lin-s16p-8000-44100: CMP_TARGET = 14.63
 fate-swr-resample_lin-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
@@ -329,7 +330,6 @@ fate-swr-resample_lin-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
 
 fate-swr-resample_lin-dblp-48000-44100: CMP_TARGET = 0.63
 fate-swr-resample_lin-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
-endef
 
 define ARESAMPLE_NN
 FATE_SWR_RESAMPLE += fate-swr-resample_nn-$(3)-$(1)-$(2)
@@ -340,6 +340,7 @@ fate-swr-resample_nn-$(3)-$(1)-$(2): CMP = stddev
 fate-swr-resample_nn-$(3)-$(1)-$(2): CMP_UNIT = $(5)
 fate-swr-resample_nn-$(3)-$(1)-$(2): FUZZ = 0.1
 fate-swr-resample_nn-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
+endef
 
 fate-swr-resample_nn-fltp-44100-8000: CMP_TARGET = 590.98
 fate-swr-resample_nn-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
@@ -352,7 +353,6 @@ fate-swr-resample_nn-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
 
 fate-swr-resample_nn-s16p-8000-44100: CMP_TARGET = 3163.39
 fate-swr-resample_nn-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
-endef
 
 define ARESAMPLE_ASYNC
 FATE_SWR_RESAMPLE += fate-swr-resample_async-$(3)-$(1)-$(2)
@@ -363,6 +363,7 @@ fate-swr-resample_async-$(3)-$(1)-$(2): CMP = stddev
 fate-swr-resample_async-$(3)-$(1)-$(2): CMP_UNIT = $(5)
 fate-swr-resample_async-$(3)-$(1)-$(2): FUZZ = 0.1
 fate-swr-resample_async-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
+endef
 
 fate-swr-resample_async-fltp-44100-8000: CMP_TARGET = 4047.25
 fate-swr-resample_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20132
@@ -375,7 +376,6 @@ fate-swr-resample_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20132
 
 fate-swr-resample_async-s16p-8000-44100: CMP_TARGET = 11194.08
 fate-swr-resample_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20312
-endef
 
 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s16p,s16le,s16)
 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s32p,s32le,s16)
-- 
1.9.1



More information about the ffmpeg-devel mailing list