aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-30 13:22:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-30 13:28:42 +0200
commitd24ef674ec248d4c0c0c128fe172e32593b3e308 (patch)
treedecc22dc2ebb99a7571bf3a52701284cb9bc99a1
parentf5e0ef536ab5542a6fb46eecb4ca0d99fb95a05b (diff)
downloadffmpeg-d24ef674ec248d4c0c0c128fe172e32593b3e308.tar.gz
fate: fix long standing bug in the g723_1 test
The test compared files of mismatching sample rate Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--tests/fate/acodec.mak6
-rw-r--r--tests/ref/fate/acodec-g723_16
2 files changed, 7 insertions, 5 deletions
diff --git a/tests/fate/acodec.mak b/tests/fate/acodec.mak
index 17523b876a..8937636fca 100644
--- a/tests/fate/acodec.mak
+++ b/tests/fate/acodec.mak
@@ -60,10 +60,12 @@ fate-acodec-flac: FMT = flac
fate-acodec-flac: CODEC = flac -compression_level 2
FATE_ACODEC += fate-acodec-g723_1
+fate-acodec-g723_1: tests/data/asynth-8000-1.wav
+fate-acodec-g723_1: SRC = tests/data/asynth-8000-1.wav
fate-acodec-g723_1: FMT = g723_1
fate-acodec-g723_1: CODEC = g723_1
-fate-acodec-g723_1: ENCOPTS = -b:a 6.3k -ac 1 -ar 8000
-#fate-acodec-g723_1: DECOPTS = -ac 2 -ar 44100
+fate-acodec-g723_1: ENCOPTS = -b:a 6.3k
+fate-acodec-g723_1: CMP_SHIFT = 8
FATE_ACODEC += fate-acodec-ra144
fate-acodec-ra144: FMT = rm
diff --git a/tests/ref/fate/acodec-g723_1 b/tests/ref/fate/acodec-g723_1
index 6452661baa..38b1a1155a 100644
--- a/tests/ref/fate/acodec-g723_1
+++ b/tests/ref/fate/acodec-g723_1
@@ -1,4 +1,4 @@
-d34f35011a3d596eb359cc62c92fa737 *tests/data/fate/acodec-g723_1.g723_1
+dec0deb2425e908d232d2471acff04a3 *tests/data/fate/acodec-g723_1.g723_1
4800 tests/data/fate/acodec-g723_1.g723_1
-bc1807ce2a90997c09df66ced6900ebc *tests/data/fate/acodec-g723_1.out.wav
-stddev: 8507.27 PSNR: 17.73 MAXDIFF:26473 bytes: 1058400/ 96000
+90b20555c962b638dad0e98ac2c05b25 *tests/data/fate/acodec-g723_1.out.wav
+stddev: 8418.34 PSNR: 17.82 MAXDIFF:52968 bytes: 95992/ 96000