aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-04-27 14:17:42 +0000
committerMans Rullgard <mans@mansr.com>2012-05-09 14:13:34 +0100
commitf2a5586c6462f942628e2c66109198ee07ce88bc (patch)
tree9c4c3cb67d2ccc13310ee871388525bb580067e4
parentd57b43df2e691bc5f32bedf15a7e5bb0e6b84b61 (diff)
downloadffmpeg-f2a5586c6462f942628e2c66109198ee07ce88bc.tar.gz
fate: split some combined tests into separate audio and video tests
Signed-off-by: Mans Rullgard <mans@mansr.com>
-rw-r--r--tests/fate/adpcm.mak19
-rw-r--r--tests/fate/ea.mak17
-rw-r--r--tests/fate/video.mak6
-rw-r--r--tests/ref/fate/adpcm-ea-126
-rw-r--r--tests/ref/fate/adpcm-ea-2134
-rw-r--r--tests/ref/fate/adpcm-ea-r196
-rw-r--r--tests/ref/fate/adpcm-ima-ea-eacs48
-rw-r--r--tests/ref/fate/adpcm-ima-ea-sead50
-rw-r--r--tests/ref/fate/adpcm-thp217
-rw-r--r--tests/ref/fate/ea-mad (renamed from tests/ref/fate/adpcm-ea-mad-ea-r1)96
-rw-r--r--tests/ref/fate/ea-tgv-148
-rw-r--r--tests/ref/fate/ea-tgv-239
-rw-r--r--tests/ref/fate/ea-tgv-ima-ea-eacs96
-rw-r--r--tests/ref/fate/ea-tgv-ima-ea-sead89
-rw-r--r--tests/ref/fate/ea-tqi (renamed from tests/ref/fate/adpcm-ea-tqi)26
-rw-r--r--tests/ref/fate/mdec (renamed from tests/ref/fate/ea-dct)134
-rw-r--r--tests/ref/fate/thp73
17 files changed, 616 insertions, 598 deletions
diff --git a/tests/fate/adpcm.mak b/tests/fate/adpcm.mak
index 5e41d6e18f..5a12a77e20 100644
--- a/tests/fate/adpcm.mak
+++ b/tests/fate/adpcm.mak
@@ -16,14 +16,17 @@ fate-adpcm-creative-8-2.6bit: CMD = md5 -i $(SAMPLES)/creative/BBC_3BIT.VOC -f s
FATE_ADPCM += fate-adpcm-creative-8-4bit
fate-adpcm-creative-8-4bit: CMD = md5 -i $(SAMPLES)/creative/BBC_4BIT.VOC -f s16le
-FATE_ADPCM += fate-adpcm-ea-mad-ea-r1
-fate-adpcm-ea-mad-ea-r1: CMD = framecrc -i $(SAMPLES)/ea-mad/NFS6LogoE.mad
+FATE_ADPCM += fate-adpcm-ea-1
+fate-adpcm-ea-1: CMD = framecrc -i $(SAMPLES)/ea-wve/networkBackbone-partial.wve -frames:a 26 -vn
+
+FATE_ADPCM += fate-adpcm-ea-2
+fate-adpcm-ea-2: CMD = framecrc -i $(SAMPLES)/ea-dct/NFS2Esprit-partial.dct -vn
FATE_ADPCM += fate-adpcm-ea-maxis-xa
fate-adpcm-ea-maxis-xa: CMD = framecrc -i $(SAMPLES)/maxis-xa/SC2KBUG.XA -frames:a 30
-FATE_ADPCM += fate-adpcm-ea-tqi
-fate-adpcm-ea-tqi: CMD = framecrc -i $(SAMPLES)/ea-wve/networkBackbone-partial.wve -frames:v 26
+FATE_ADPCM += fate-adpcm-ea-r1
+fate-adpcm-ea-r1: CMD = framecrc -i $(SAMPLES)/ea-mad/NFS6LogoE.mad -vn
FATE_ADPCM += fate-adpcm-ima-dk3
fate-adpcm-ima-dk3: CMD = md5 -i $(SAMPLES)/duck/sop-audio-only.avi -f s16le
@@ -31,6 +34,12 @@ fate-adpcm-ima-dk3: CMD = md5 -i $(SAMPLES)/duck/sop-audio-only.avi -f s16le
FATE_ADPCM += fate-adpcm-ima-dk4
fate-adpcm-ima-dk4: CMD = md5 -i $(SAMPLES)/duck/salsa-audio-only.avi -f s16le
+FATE_ADPCM += fate-adpcm-ima-ea-eacs
+fate-adpcm-ima-ea-eacs: CMD = framecrc -i $(SAMPLES)/ea-tgv/INTRO8K-partial.TGV -vn
+
+FATE_ADPCM += fate-adpcm-ima-ea-sead
+fate-adpcm-ima-ea-sead: CMD = framecrc -i $(SAMPLES)/ea-tgv/INTEL_S.TGV -vn
+
FATE_ADPCM += fate-adpcm-ima_wav-stereo
fate-adpcm-ima_wav-stereo: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-2-16-L-ms11.mov -f s16le
@@ -38,7 +47,7 @@ FATE_ADPCM += fate-adpcm-psx-str-v3
fate-adpcm-psx-str-v3: CMD = framecrc -i $(SAMPLES)/psx-str/abc000_cut.str -vn
FATE_ADPCM += fate-adpcm-thp
-fate-adpcm-thp: CMD = framecrc -idct simple -i $(SAMPLES)/thp/pikmin2-opening1-partial.thp
+fate-adpcm-thp: CMD = framecrc -i $(SAMPLES)/thp/pikmin2-opening1-partial.thp -vn
FATE_ADPCM += fate-adpcm_ms-stereo
fate-adpcm_ms-stereo: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-2-16-L-ms02.mov -f s16le
diff --git a/tests/fate/ea.mak b/tests/fate/ea.mak
index 0c91de5141..4734161630 100644
--- a/tests/fate/ea.mak
+++ b/tests/fate/ea.mak
@@ -4,14 +4,17 @@ fate-ea-cdata: CMD = md5 -i $(SAMPLES)/ea-cdata/166b084d.46410f77.0009b440.24be9
FATE_TESTS += fate-ea-cmv
fate-ea-cmv: CMD = framecrc -i $(SAMPLES)/ea-cmv/TITLE.CMV -pix_fmt rgb24
-FATE_TESTS += fate-ea-dct
-fate-ea-dct: CMD = framecrc -idct simple -i $(SAMPLES)/ea-dct/NFS2Esprit-partial.dct
-
FATE_TESTS += fate-ea-tgq
fate-ea-tgq: CMD = framecrc -i $(SAMPLES)/ea-tgq/v27.tgq -an
-FATE_TESTS += fate-ea-tgv-ima-ea-eacs
-fate-ea-tgv-ima-ea-eacs: CMD = framecrc -i $(SAMPLES)/ea-tgv/INTRO8K-partial.TGV -pix_fmt rgb24
+FATE_TESTS += fate-ea-tqi
+fate-ea-tqi: CMD = framecrc -i $(SAMPLES)/ea-wve/networkBackbone-partial.wve -frames:v 26 -an
+
+FATE_TESTS += fate-ea-mad
+fate-ea-mad: CMD = framecrc -i $(SAMPLES)/ea-mad/NFS6LogoE.mad -an
+
+FATE_TESTS += fate-ea-tgv-1
+fate-ea-tgv-1: CMD = framecrc -i $(SAMPLES)/ea-tgv/INTRO8K-partial.TGV -pix_fmt rgb24 -an
-FATE_TESTS += fate-ea-tgv-ima-ea-sead
-fate-ea-tgv-ima-ea-sead: CMD = framecrc -i $(SAMPLES)/ea-tgv/INTEL_S.TGV -pix_fmt rgb24
+FATE_TESTS += fate-ea-tgv-2
+fate-ea-tgv-2: CMD = framecrc -i $(SAMPLES)/ea-tgv/INTEL_S.TGV -pix_fmt rgb24 -an
diff --git a/tests/fate/video.mak b/tests/fate/video.mak
index a676cd10d1..c07ab628af 100644
--- a/tests/fate/video.mak
+++ b/tests/fate/video.mak
@@ -133,6 +133,9 @@ fate-kgv1: CMD = framecrc -i $(SAMPLES)/kega/kgv1.avi -pix_fmt rgb555le -an
FATE_TESTS += fate-kmvc
fate-kmvc: CMD = framecrc -i $(SAMPLES)/KMVC/LOGO1.AVI -an -t 3 -pix_fmt rgb24
+FATE_TESTS += fate-mdec
+fate-mdec: CMD = framecrc -idct simple -i $(SAMPLES)/ea-dct/NFS2Esprit-partial.dct -an
+
FATE_TESTS += fate-mimic
fate-mimic: CMD = framecrc -idct simple -i $(SAMPLES)/mimic/mimic2-womanloveffmpeg.cam
@@ -170,6 +173,9 @@ fate-sp5x: CMD = framecrc -idct simple -i $(SAMPLES)/sp5x/sp5x_problem.avi
FATE_TESTS += fate-sub-srt
fate-sub-srt: CMD = md5 -i $(SAMPLES)/sub/SubRip_capability_tester.srt -f ass
+FATE_TESTS += fate-thp
+fate-thp: CMD = framecrc -idct simple -i $(SAMPLES)/thp/pikmin2-opening1-partial.thp -an
+
FATE_TESTS += fate-tiertex-seq
fate-tiertex-seq: CMD = framecrc -i $(SAMPLES)/tiertex-seq/Gameover.seq -pix_fmt rgb24
diff --git a/tests/ref/fate/adpcm-ea-1 b/tests/ref/fate/adpcm-ea-1
new file mode 100644
index 0000000000..f5a33df710
--- /dev/null
+++ b/tests/ref/fate/adpcm-ea-1
@@ -0,0 +1,26 @@
+#tb 0: 1/22050
+0, 0, 0, 1484, 5936, 0x00000000
+0, 1484, 1484, 1456, 5824, 0x00000000
+0, 2940, 2940, 1484, 5936, 0x00000000
+0, 4424, 4424, 1456, 5824, 0x00000000
+0, 5880, 5880, 1484, 5936, 0x00000000
+0, 7364, 7364, 1456, 5824, 0x00000000
+0, 8820, 8820, 1484, 5936, 0x00000000
+0, 10304, 10304, 1456, 5824, 0x0f06f5bb
+0, 11760, 11760, 1484, 5936, 0xb0dbfc46
+0, 13244, 13244, 1456, 5824, 0x9daa9f9c
+0, 14700, 14700, 1484, 5936, 0x61400d2f
+0, 16184, 16184, 1456, 5824, 0x34a5b0e3
+0, 17640, 17640, 1484, 5936, 0x6e546f72
+0, 19124, 19124, 1456, 5824, 0x4f093b35
+0, 20580, 20580, 1484, 5936, 0x95b5b599
+0, 22064, 22064, 1456, 5824, 0x75e15e60
+0, 23520, 23520, 1484, 5936, 0xd1077d39
+0, 25004, 25004, 1456, 5824, 0x956e21ca
+0, 26460, 26460, 1484, 5936, 0x33bac234
+0, 27944, 27944, 1456, 5824, 0x5df37824
+0, 29400, 29400, 1484, 5936, 0xc174af24
+0, 30884, 30884, 1456, 5824, 0xe5dc2159
+0, 32340, 32340, 1484, 5936, 0x63ffc8b1
+0, 33824, 33824, 1456, 5824, 0xefe4c365
+0, 35280, 35280, 1484, 5936, 0x2174304d
diff --git a/tests/ref/fate/adpcm-ea-2 b/tests/ref/fate/adpcm-ea-2
new file mode 100644
index 0000000000..f58d9a00ce
--- /dev/null
+++ b/tests/ref/fate/adpcm-ea-2
@@ -0,0 +1,134 @@
+#tb 0: 1/22050
+0, 0, 0, 1484, 5936, 0xea261a29
+0, 1484, 1484, 1456, 5824, 0x253df061
+0, 2940, 2940, 1484, 5936, 0x603a5bd7
+0, 4424, 4424, 1456, 5824, 0x9d283f59
+0, 5880, 5880, 1484, 5936, 0x49323497
+0, 7364, 7364, 1456, 5824, 0x7c299939
+0, 8820, 8820, 1484, 5936, 0x9f918e9a
+0, 10304, 10304, 1456, 5824, 0x1226b534
+0, 11760, 11760, 1484, 5936, 0xdd159326
+0, 13244, 13244, 1456, 5824, 0x361ad10f
+0, 14700, 14700, 1484, 5936, 0x6ccac9e3
+0, 16184, 16184, 1456, 5824, 0x1861efef
+0, 17640, 17640, 1484, 5936, 0x5f718eb9
+0, 19124, 19124, 1456, 5824, 0xd4ca72ba
+0, 20580, 20580, 1484, 5936, 0xbf2b27e6
+0, 22064, 22064, 1456, 5824, 0xcb6f024e
+0, 23520, 23520, 1484, 5936, 0x7dfb7e05
+0, 25004, 25004, 1456, 5824, 0x80e16f13
+0, 26460, 26460, 1484, 5936, 0x0fb59227
+0, 27944, 27944, 1456, 5824, 0x4d6f1fdb
+0, 29400, 29400, 1484, 5936, 0x505a5103
+0, 30884, 30884, 1456, 5824, 0x47ef4c13
+0, 32340, 32340, 1484, 5936, 0xbe4795fb
+0, 33824, 33824, 1456, 5824, 0xb82cc4ff
+0, 35280, 35280, 1484, 5936, 0xf7c6ab8d
+0, 36764, 36764, 1456, 5824, 0x1442f5e0
+0, 38220, 38220, 1484, 5936, 0x64659389
+0, 39704, 39704, 1456, 5824, 0xdd81725c
+0, 41160, 41160, 1484, 5936, 0x7f7c604f
+0, 42644, 42644, 1456, 5824, 0xafc77beb
+0, 44100, 44100, 1484, 5936, 0x24f88e4d
+0, 45584, 45584, 1456, 5824, 0xa31956ca
+0, 47040, 47040, 1484, 5936, 0x958e02b9
+0, 48524, 48524, 1456, 5824, 0xcfc79890
+0, 49980, 49980, 1484, 5936, 0xc7e788ae
+0, 51464, 51464, 1456, 5824, 0x4b6b1acc
+0, 52920, 52920, 1484, 5936, 0xa74496dc
+0, 54404, 54404, 1456, 5824, 0x719e6171
+0, 55860, 55860, 1484, 5936, 0x9346222d
+0, 57344, 57344, 1456, 5824, 0x9e2a876e
+0, 58800, 58800, 1484, 5936, 0xeca6ea64
+0, 60284, 60284, 1456, 5824, 0x07d8174f
+0, 61740, 61740, 1484, 5936, 0x2df5aa6b
+0, 63224, 63224, 1456, 5824, 0x314e7034
+0, 64680, 64680, 1484, 5936, 0x5a328768
+0, 66164, 66164, 1456, 5824, 0x32b92446
+0, 67620, 67620, 1484, 5936, 0x20ecbc9b
+0, 69104, 69104, 1456, 5824, 0x76019c14
+0, 70560, 70560, 1484, 5936, 0x8c3ef8a6
+0, 72044, 72044, 1456, 5824, 0xcdaab50b
+0, 73500, 73500, 1484, 5936, 0xb2f87f4f
+0, 74984, 74984, 1456, 5824, 0x70c26379
+0, 76440, 76440, 1484, 5936, 0x5691ecfd
+0, 77924, 77924, 1456, 5824, 0x61e208fe
+0, 79380, 79380, 1484, 5936, 0x87d1a5e0
+0, 80864, 80864, 1456, 5824, 0x02054cfd
+0, 82320, 82320, 1484, 5936, 0x22ff1c4b
+0, 83804, 83804, 1456, 5824, 0xc6d87fef
+0, 85260, 85260, 1484, 5936, 0x9028bb3b
+0, 86744, 86744, 1456, 5824, 0xbadde406
+0, 88200, 88200, 1484, 5936, 0x6e88ddf1
+0, 89684, 89684, 1456, 5824, 0x5bb8be6e
+0, 91140, 91140, 1484, 5936, 0xe1f8d7fc
+0, 92624, 92624, 1456, 5824, 0xc824e388
+0, 94080, 94080, 1484, 5936, 0x654371a9
+0, 95564, 95564, 1456, 5824, 0xae6ee9ec
+0, 97020, 97020, 1484, 5936, 0x9aa4550d
+0, 98504, 98504, 1456, 5824, 0xdce210ac
+0, 99960, 99960, 1484, 5936, 0xb12641c8
+0, 101444, 101444, 1456, 5824, 0x277e014b
+0, 102900, 102900, 1484, 5936, 0xb0d262de
+0, 104384, 104384, 1456, 5824, 0xf94d6f49
+0, 105840, 105840, 1484, 5936, 0x3d7848cb
+0, 107324, 107324, 1456, 5824, 0xe67fc08e
+0, 108780, 108780, 1484, 5936, 0x0475e0d6
+0, 110264, 110264, 1456, 5824, 0x8a9a4a2e
+0, 111720, 111720, 1484, 5936, 0x82576204
+0, 113204, 113204, 1456, 5824, 0x3017b648
+0, 114660, 114660, 1484, 5936, 0xca4c3e04
+0, 116144, 116144, 1456, 5824, 0x340077d1
+0, 117600, 117600, 1484, 5936, 0x805bea6e
+0, 119084, 119084, 1456, 5824, 0x2cf6c87b
+0, 120540, 120540, 1484, 5936, 0x3635bc5f
+0, 122024, 122024, 1456, 5824, 0x0d7a81c7
+0, 123480, 123480, 1484, 5936, 0x26179764
+0, 124964, 124964, 1456, 5824, 0xa0b2454f
+0, 126420, 126420, 1484, 5936, 0x91d24608
+0, 127904, 127904, 1456, 5824, 0x6509b3e1
+0, 129360, 129360, 1484, 5936, 0xa0e3c9fc
+0, 130844, 130844, 1456, 5824, 0x18682a2f
+0, 132300, 132300, 1484, 5936, 0x89cea4ff
+0, 133784, 133784, 1456, 5824, 0x7dd22b85
+0, 135240, 135240, 1484, 5936, 0x8b2eeb8d
+0, 136724, 136724, 1456, 5824, 0x0c21af82
+0, 138180, 138180, 1484, 5936, 0x9c5a748d
+0, 139664, 139664, 1456, 5824, 0x1dc72c5c
+0, 141120, 141120, 1484, 5936, 0xe6129383
+0, 142604, 142604, 1456, 5824, 0x0a44312a
+0, 144060, 144060, 1484, 5936, 0x7ed30640
+0, 145544, 145544, 1456, 5824, 0xede15f25
+0, 147000, 147000, 1484, 5936, 0x0096d0f3
+0, 148484, 148484, 1456, 5824, 0x13764b4b
+0, 149940, 149940, 1484, 5936, 0xd4608756
+0, 151424, 151424, 1456, 5824, 0x254b5f2a
+0, 152880, 152880, 1484, 5936, 0x7705b830
+0, 154364, 154364, 1456, 5824, 0x64a63d78
+0, 155820, 155820, 1484, 5936, 0xc02d81a6
+0, 157304, 157304, 1456, 5824, 0xd239e55e
+0, 158760, 158760, 1484, 5936, 0x8018cd3a
+0, 160244, 160244, 1456, 5824, 0xf86b8a98
+0, 161700, 161700, 1484, 5936, 0x2a0078bc
+0, 163184, 163184, 1456, 5824, 0x058d4e1b
+0, 164640, 164640, 1484, 5936, 0xbc718309
+0, 166124, 166124, 1456, 5824, 0xaf6c29e5
+0, 167580, 167580, 1484, 5936, 0x80df004d
+0, 169064, 169064, 1456, 5824, 0xeca5aa57
+0, 170520, 170520, 1484, 5936, 0xb793a8f8
+0, 172004, 172004, 1456, 5824, 0x70fa6aff
+0, 173460, 173460, 1484, 5936, 0xda8d4cc6
+0, 174944, 174944, 1456, 5824, 0xa70088eb
+0, 176400, 176400, 1484, 5936, 0x1c0b0aab
+0, 177884, 177884, 1456, 5824, 0x234d2436
+0, 179340, 179340, 1484, 5936, 0xf79d731e
+0, 180824, 180824, 1456, 5824, 0x5a4e454a
+0, 182280, 182280, 1484, 5936, 0xccf6d042
+0, 183764, 183764, 1456, 5824, 0x4e524d14
+0, 185220, 185220, 1484, 5936, 0xf8f2fcc3
+0, 186704, 186704, 1456, 5824, 0x08f12491
+0, 188160, 188160, 1484, 5936, 0x506e0a42
+0, 189644, 189644, 1456, 5824, 0x7cf05049
+0, 191100, 191100, 1484, 5936, 0xdeb9d295
+0, 192584, 192584, 1456, 5824, 0x758ef642
+0, 194040, 194040, 1484, 5936, 0x91903980
diff --git a/tests/ref/fate/adpcm-ea-r1 b/tests/ref/fate/adpcm-ea-r1
new file mode 100644
index 0000000000..74d15c6f67
--- /dev/null
+++ b/tests/ref/fate/adpcm-ea-r1
@@ -0,0 +1,96 @@
+#tb 0: 1/48000
+0, 0, 0, 1624, 6496, 0x00000000
+0, 1624, 1624, 1596, 6384, 0x00000000
+0, 3220, 3220, 1596, 6384, 0x00000000
+0, 4816, 4816, 1596, 6384, 0x00000000
+0, 6412, 6412, 1596, 6384, 0x00000000
+0, 8008, 8008, 1624, 6496, 0xe2034d04
+0, 9632, 9632, 1596, 6384, 0x089c9157
+0, 11228, 11228, 1596, 6384, 0xeed5743c
+0, 12824, 12824, 1596, 6384, 0x71de6b34
+0, 14420, 14420, 1596, 6384, 0xc0d67710
+0, 16016, 16016, 1624, 6496, 0x35786490
+0, 17640, 17640, 1596, 6384, 0xdf1c99a2
+0, 19236, 19236, 1596, 6384, 0xca9591ad
+0, 20832, 20832, 1596, 6384, 0x6f0d9c3d
+0, 22428, 22428, 1596, 6384, 0xfacbbaee
+0, 24024, 24024, 1624, 6496, 0x927fb136
+0, 25648, 25648, 1596, 6384, 0x9d4f2572
+0, 27244, 27244, 1596, 6384, 0x2a3c6d08
+0, 28840, 28840, 1596, 6384, 0x4282b1e0
+0, 30436, 30436, 1596, 6384, 0xc4a77b9f
+0, 32032, 32032, 1624, 6496, 0x2af6a14f
+0, 33656, 33656, 1596, 6384, 0x4d734169
+0, 35252, 35252, 1596, 6384, 0xb91b5865
+0, 36848, 36848, 1596, 6384, 0x9dce2417
+0, 38444, 38444, 1596, 6384, 0xb7c4e1ce
+0, 40040, 40040, 1624, 6496, 0xef0dc07a
+0, 41664, 41664, 1596, 6384, 0x4ad21d10
+0, 43260, 43260, 1596, 6384, 0xcfe14682
+0, 44856, 44856, 1596, 6384, 0x07be48eb
+0, 46452, 46452, 1596, 6384, 0x09de3498
+0, 48048, 48048, 1624, 6496, 0xab2e9686
+0, 49672, 49672, 1596, 6384, 0x3aba3ccc
+0, 51268, 51268, 1596, 6384, 0x0a905ec3
+0, 52864, 52864, 1596, 6384, 0x76a93ce4
+0, 54460, 54460, 1596, 6384, 0xa99063a4
+0, 56056, 56056, 1624, 6496, 0xc16bb88d
+0, 57680, 57680, 1596, 6384, 0x650379bf
+0, 59276, 59276, 1596, 6384, 0x4e0749fe
+0, 60872, 60872, 1596, 6384, 0x778e8d12
+0, 62468, 62468, 1596, 6384, 0x9fa8c494
+0, 64064, 64064, 1624, 6496, 0x61d5bead
+0, 65688, 65688, 1596, 6384, 0x4da9bc3c
+0, 67284, 67284, 1596, 6384, 0xa72b6f93
+0, 68880, 68880, 1596, 6384, 0x811f5f77
+0, 70476, 70476, 1596, 6384, 0x83ea5e3d
+0, 72072, 72072, 1624, 6496, 0x78bab460
+0, 73696, 73696, 1596, 6384, 0xc9a07432
+0, 75292, 75292, 1596, 6384, 0x4b4f2a34
+0, 76888, 76888, 1596, 6384, 0x4d707a53
+0, 78484, 78484, 1596, 6384, 0x703efb60
+0, 80080, 80080, 1624, 6496, 0x319a77bb
+0, 81704, 81704, 1596, 6384, 0xbdfd82ec
+0, 83300, 83300, 1596, 6384, 0x413c3503
+0, 84896, 84896, 1596, 6384, 0xe6e666b3
+0, 86492, 86492, 1596, 6384, 0xa09c7342
+0, 88088, 88088, 1624, 6496, 0x60cba846
+0, 89712, 89712, 1596, 6384, 0x0ba34308
+0, 91308, 91308, 1596, 6384, 0xdc3a65f0
+0, 92904, 92904, 1596, 6384, 0x1ebf9dc4
+0, 94500, 94500, 1596, 6384, 0xbbcb1449
+0, 96096, 96096, 1624, 6496, 0x926574eb
+0, 97720, 97720, 1596, 6384, 0xb4da92f1
+0, 99316, 99316, 1596, 6384, 0xdbbd21e0
+0, 100912, 100912, 1596, 6384, 0x08510eff
+0, 102508, 102508, 1596, 6384, 0x9534b7ca
+0, 104104, 104104, 1624, 6496, 0x50a5ed30
+0, 105728, 105728, 1596, 6384, 0xf5ac2f7c
+0, 107324, 107324, 1596, 6384, 0x4fe1fa55
+0, 108920, 108920, 1596, 6384, 0xd61c4c05
+0, 110516, 110516, 1596, 6384, 0x56d11b45
+0, 112112, 112112, 1624, 6496, 0x3906084b
+0, 113736, 113736, 1596, 6384, 0x1ef31fed
+0, 115332, 115332, 1596, 6384, 0x58ed82f5
+0, 116928, 116928, 1596, 6384, 0xb31ccd1f
+0, 118524, 118524, 1596, 6384, 0xfb648285
+0, 120120, 120120, 1624, 6496, 0xfae2950b
+0, 121744, 121744, 1596, 6384, 0xe28c8357
+0, 123340, 123340, 1596, 6384, 0xda718e60
+0, 124936, 124936, 1596, 6384, 0x27516999
+0, 126532, 126532, 1596, 6384, 0x0ba07921
+0, 128128, 128128, 1624, 6496, 0xcfbecfab
+0, 129752, 129752, 1596, 6384, 0xae4cedcd
+0, 131348, 131348, 1596, 6384, 0x917b4707
+0, 132944, 132944, 1596, 6384, 0x8671b28e
+0, 134540, 134540, 1596, 6384, 0x9a1238fa
+0, 136136, 136136, 1624, 6496, 0x23b8f8ca
+0, 137760, 137760, 1596, 6384, 0x3903bcd6
+0, 139356, 139356, 1596, 6384, 0x0532b267
+0, 140952, 140952, 1596, 6384, 0xde931220
+0, 142548, 142548, 1596, 6384, 0x4ed70a80
+0, 144144, 144144, 1624, 6496, 0x4a52d5a1
+0, 145768, 145768, 1596, 6384, 0xc1be5760
+0, 147364, 147364, 1596, 6384, 0x790d69ba
+0, 148960, 148960, 1596, 6384, 0x9d73e6cf
+0, 150556, 150556, 1568, 6272, 0xbc0fc725
diff --git a/tests/ref/fate/adpcm-ima-ea-eacs b/tests/ref/fate/adpcm-ima-ea-eacs
new file mode 100644
index 0000000000..9887296f45
--- /dev/null
+++ b/tests/ref/fate/adpcm-ima-ea-eacs
@@ -0,0 +1,48 @@
+#tb 0: 1/22050
+0, 0, 0, 1468, 5872, 0x00000000
+0, 1468, 1468, 1468, 5872, 0x00000000
+0, 2936, 2936, 1468, 5872, 0x00000000
+0, 4404, 4404, 1468, 5872, 0x00000000
+0, 5872, 5872, 1468, 5872, 0x00000000
+0, 7340, 7340, 1468, 5872, 0x00000000
+0, 8808, 8808, 1468, 5872, 0x00000000
+0, 10276, 10276, 1468, 5872, 0x00000000
+0, 11744, 11744, 1468, 5872, 0x00000000
+0, 13212, 13212, 1468, 5872, 0x00000000
+0, 14680, 14680, 1468, 5872, 0x00000000
+0, 16148, 16148, 1468, 5872, 0x00000000
+0, 17616, 17616, 1468, 5872, 0x00000000
+0, 19084, 19084, 1468, 5872, 0x00000000
+0, 20552, 20552, 1468, 5872, 0x00000000
+0, 22020, 22020, 1468, 5872, 0xc6f64777
+0, 23488, 23488, 1468, 5872, 0x7c9e60e8
+0, 24956, 24956, 1468, 5872, 0x46525c54
+0, 26424, 26424, 1468, 5872, 0x842796bb
+0, 27892, 27892, 1468, 5872, 0xb1f6cbd5
+0, 29360, 29360, 1468, 5872, 0x0261a74b
+0, 30828, 30828, 1468, 5872, 0x8218b1f9
+0, 32296, 32296, 1468, 5872, 0xd7a2cae6
+0, 33764, 33764, 1468, 5872, 0x69d34562
+0, 35232, 35232, 1468, 5872, 0x9303ec65
+0, 36700, 36700, 1468, 5872, 0xd5d963a1
+0, 38168, 38168, 1468, 5872, 0x0557e06f
+0, 39636, 39636, 1468, 5872, 0x1eb48b41
+0, 41104, 41104, 1468, 5872, 0x70f5ca3f
+0, 42572, 42572, 1468, 5872, 0xd39e5c5e
+0, 44040, 44040, 1468, 5872, 0x29c59140
+0, 45508, 45508, 1468, 5872, 0x7d95e643
+0, 46976, 46976, 1468, 5872, 0x45353fd8
+0, 48444, 48444, 1468, 5872, 0xad7b1b27
+0, 49912, 49912, 1468, 5872, 0x1f0377b3
+0, 51380, 51380, 1468, 5872, 0x6074541e
+0, 52848, 52848, 1468, 5872, 0xa4f5e892
+0, 54316, 54316, 1468, 5872, 0x084bc696
+0, 55784, 55784, 1468, 5872, 0x67fdafce
+0, 57252, 57252, 1468, 5872, 0x8dfd249d
+0, 58720, 58720, 1468, 5872, 0x514184ee
+0, 60188, 60188, 1468, 5872, 0xc0090b0d
+0, 61656, 61656, 1468, 5872, 0xc1171cc8
+0, 63124, 63124, 1468, 5872, 0x7d7dd07e
+0, 64592, 64592, 1468, 5872, 0xe6aa619c
+0, 66060, 66060, 1468, 5872, 0xd5aac0df
+0, 67528, 67528, 1468, 5872, 0x3b68b390
diff --git a/tests/ref/fate/adpcm-ima-ea-sead b/tests/ref/fate/adpcm-ima-ea-sead
new file mode 100644
index 0000000000..17c10875a6
--- /dev/null
+++ b/tests/ref/fate/adpcm-ima-ea-sead
@@ -0,0 +1,50 @@
+#tb 0: 1/22050
+0, 0, 0, 736, 2944, 0x00000000
+0, 736, 736, 1472, 5888, 0x5ae3c2a4
+0, 2208, 2208, 1472, 5888, 0x158fbcb4
+0, 3680, 3680, 1472, 5888, 0x3fc85d35
+0, 5152, 5152, 1472, 5888, 0x4667ec2b
+0, 6624, 6624, 1472, 5888, 0x82744494
+0, 8096, 8096, 1472, 5888, 0x3b0cb86f
+0, 9568, 9568, 1472, 5888, 0x29493fbb
+0, 11040, 11040, 1472, 5888, 0xaa2d8595
+0, 12512, 12512, 1472, 5888, 0x2e563de6
+0, 13984, 13984, 1472, 5888, 0x225cca99
+0, 15456, 15456, 1472, 5888, 0x2b577599
+0, 16928, 16928, 1472, 5888, 0x3d967f32
+0, 18400, 18400, 1472, 5888, 0x16639a84
+0, 19872, 19872, 1472, 5888, 0x90549ba0
+0, 21344, 21344, 1472, 5888, 0xf46e6644
+0, 22816, 22816, 1472, 5888, 0x39a073ec
+0, 24288, 24288, 1472, 5888, 0xb1d7a93a
+0, 25760, 25760, 1472, 5888, 0x25e9795b
+0, 27232, 27232, 1472, 5888, 0xbbc07644
+0, 28704, 28704, 1472, 5888, 0x323f6a1b
+0, 30176, 30176, 1472, 5888, 0x7cae130b
+0, 31648, 31648, 1472, 5888, 0xd23bf9c6
+0, 33120, 33120, 1472, 5888, 0x5f73ef35
+0, 34592, 34592, 1472, 5888, 0xc66026be
+0, 36064, 36064, 1472, 5888, 0xc8fdb539
+0, 37536, 37536, 1472, 5888, 0x94c6bfbd
+0, 39008, 39008, 1472, 5888, 0xb77e1b83
+0, 40480, 40480, 1472, 5888, 0x6c6d6693
+0, 41952, 41952, 1472, 5888, 0xd9f064d4
+0, 43424, 43424, 1472, 5888, 0x85dd990d
+0, 44896, 44896, 1472, 5888, 0x385e021b
+0, 46368, 46368, 1472, 5888, 0xac09fd02
+0, 47840, 47840, 1472, 5888, 0xc6dcdff2
+0, 49312, 49312, 1472, 5888, 0x86a6944d
+0, 50784, 50784, 1472, 5888, 0x8587b964
+0, 52256, 52256, 1472, 5888, 0x2b0355ff
+0, 53728, 53728, 1472, 5888, 0xe4148a85
+0, 55200, 55200, 1472, 5888, 0xdf02ed4f
+0, 56672, 56672, 1472, 5888, 0x87a54b15
+0, 58144, 58144, 1472, 5888, 0x3ad2be45
+0, 59616, 59616, 1472, 5888, 0x3a49c2c3
+0, 61088, 61088, 1472, 5888, 0xc2b66404
+0, 62560, 62560, 1472, 5888, 0xac3e234a
+0, 64032, 64032, 1472, 5888, 0x5dcf523b
+0, 65504, 65504, 1472, 5888, 0x2034b5d6
+0, 66976, 66976, 1472, 5888, 0x96882832
+0, 68448, 68448, 1472, 5888, 0x2be3d534
+0, 69920, 69920, 1472, 5888, 0xa841a49d
diff --git a/tests/ref/fate/adpcm-thp b/tests/ref/fate/adpcm-thp
index 135de54910..72aff61ade 100644
--- a/tests/ref/fate/adpcm-thp
+++ b/tests/ref/fate/adpcm-thp
@@ -1,145 +1,72 @@
-#tb 0: 524288/15712911
-#tb 1: 1/32000
-0, 0, 0, 1, 291840, 0xbd7e0b22
-1, 0, 0, 1078, 4312, 0x469714f6
-0, 1, 1, 1, 291840, 0xf6e12ca5
-1, 1078, 1078, 1064, 4256, 0xe03dd882
-0, 2, 2, 1, 291840, 0x528c7049
-1, 2142, 2142, 1078, 4312, 0x46b901f7
-0, 3, 3, 1, 291840, 0x93055de9
-1, 3220, 3220, 1064, 4256, 0x8d4a54e4
-0, 4, 4, 1, 291840, 0xf95a51c1
-1, 4284, 4284, 1064, 4256, 0xfd616b67
-0, 5, 5, 1, 291840, 0x6ad3a65a
-1, 5348, 5348, 1078, 4312, 0xefe62302
-0, 6, 6, 1, 291840, 0x494684a7
-1, 6426, 6426, 1064, 4256, 0xab11684e
-0, 7, 7, 1, 291840, 0x74c14eb1
-1, 7490, 7490, 1064, 4256, 0xb4b3feb8
-0, 8, 8, 1, 291840, 0x149fcb7e
-1, 8554, 8554, 1078, 4312, 0x71db6461
-0, 9, 9, 1, 291840, 0x25649761
-1, 9632, 9632, 1064, 4256, 0x090e5efa
-0, 10, 10, 1, 291840, 0xbc3f9052
-1, 10696, 10696, 1064, 4256, 0x36f49c28
-0, 11, 11, 1, 291840, 0x080edfff
-1, 11760, 11760, 1078, 4312, 0x0fe3d262
-0, 12, 12, 1, 291840, 0x6d7ad684
-1, 12838, 12838, 1064, 4256, 0x199ce269
-0, 13, 13, 1, 291840, 0x6d53844d
-1, 13902, 13902, 1064, 4256, 0x98342d05
-0, 14, 14, 1, 291840, 0xf7ad5385
-1, 14966, 14966, 1078, 4312, 0xb6fb7ebe
-0, 15, 15, 1, 291840, 0x0241b56a
-1, 16044, 16044, 1064, 4256, 0x033dd562
-0, 16, 16, 1, 291840, 0x120122c8
-1, 17108, 17108, 1064, 4256, 0xc2cc17e0
-0, 17, 17, 1, 291840, 0x31b0f32a
-1, 18172, 18172, 1078, 4312, 0x4bb3ff50
-0, 18, 18, 1, 291840, 0x14068b98
-1, 19250, 19250, 1064, 4256, 0x6f2671ef
-0, 19, 19, 1, 291840, 0xeeec658b
-1, 20314, 20314, 1064, 4256, 0x5a337bf4
-0, 20, 20, 1, 291840, 0x9376374c
-1, 21378, 21378, 1078, 4312, 0xa71f6967
-0, 21, 21, 1, 291840, 0x091e8c6e
-1, 22456, 22456, 1064, 4256, 0x48084aa9
-0, 22, 22, 1, 291840, 0x744ad07f
-1, 23520, 23520, 1064, 4256, 0x3cce4218
-0, 23, 23, 1, 291840, 0xf99c554e
-1, 24584, 24584, 1078, 4312, 0xcbb8f73d
-0, 24, 24, 1, 291840, 0xc84bd677
-1, 25662, 25662, 1064, 4256, 0x36825021
-0, 25, 25, 1, 291840, 0x3898d474
-1, 26726, 26726, 1064, 4256, 0xeae036c6
-0, 26, 26, 1, 291840, 0x1e2910c8
-1, 27790, 27790, 1078, 4312, 0x0d650ac6
-0, 27, 27, 1, 291840, 0xb11f58bc
-1, 28868, 28868, 1064, 4256, 0xfba4f58c
-0, 28, 28, 1, 291840, 0xf89170ee
-1, 29932, 29932, 1064, 4256, 0x54311f9b
-0, 29, 29, 1, 291840, 0x8f239dc3
-1, 30996, 30996, 1078, 4312, 0x286386b3
-0, 30, 30, 1, 291840, 0x8538c76c
-1, 32074, 32074, 1064, 4256, 0x871896de
-0, 31, 31, 1, 291840, 0x162ee66f
-1, 33138, 33138, 1064, 4256, 0x9ef9f970
-0, 32, 32, 1, 291840, 0x5f8708a5
-1, 34202, 34202, 1078, 4312, 0xf9ae97f1
-0, 33, 33, 1, 291840, 0x95802dfb
-1, 35280, 35280, 1064, 4256, 0x0ad0d765
-0, 34, 34, 1, 291840, 0xc424630d
-1, 36344, 36344, 1064, 4256, 0x8e6aa9b5
-0, 35, 35, 1, 291840, 0xfb8a8667
-1, 37408, 37408, 1078, 4312, 0x8362787b
-0, 36, 36, 1, 291840, 0xbad79af5
-1, 38486, 38486, 1064, 4256, 0x9b6a5d9c
-0, 37, 37, 1, 291840, 0xc733b325
-1, 39550, 39550, 1064, 4256, 0xfb715d8f
-0, 38, 38, 1, 291840, 0x4bfbcd70
-1, 40614, 40614, 1078, 4312, 0x02bd8075
-0, 39, 39, 1, 291840, 0x502cd950
-1, 41692, 41692, 1064, 4256, 0x428eb932
-0, 40, 40, 1, 291840, 0x8461ca2c
-1, 42756, 42756, 1064, 4256, 0x17ea8c94
-0, 41, 41, 1, 291840, 0x00219b0d
-1, 43820, 43820, 1078, 4312, 0xb3e761d7
-0, 42, 42, 1, 291840, 0xa4de45e1
-1, 44898, 44898, 1064, 4256, 0x0919755a
-0, 43, 43, 1, 291840, 0xacd3f4df
-1, 45962, 45962, 1064, 4256, 0x5e520edd
-0, 44, 44, 1, 291840, 0x2203a369
-1, 47026, 47026, 1078, 4312, 0x69aa070e
-0, 45, 45, 1, 291840, 0x0a66effa
-1, 48104, 48104, 1064, 4256, 0xf8192f7d
-0, 46, 46, 1, 291840, 0x7ac1fd91
-1, 49168, 49168, 1064, 4256, 0xaad4475c
-0, 47, 47, 1, 291840, 0x84970aa7
-1, 50232, 50232, 1078, 4312, 0x0cabcfcb
-0, 48, 48, 1, 291840, 0x569d145f
-1, 51310, 51310, 1064, 4256, 0x952f0f96
-0, 49, 49, 1, 291840, 0xe51efe1b
-1, 52374, 52374, 1064, 4256, 0x1b805a0c
-0, 50, 50, 1, 291840, 0x38e2cd78
-1, 53438, 53438, 1078, 4312, 0x93043d2a
-0, 51, 51, 1, 291840, 0x93428ea2
-1, 54516, 54516, 1064, 4256, 0x38b99e44
-0, 52, 52, 1, 291840, 0x3d3f5b17
-1, 55580, 55580, 1064, 4256, 0x60cc52ff
-0, 53, 53, 1, 291840, 0x9546127d
-1, 56644, 56644, 1078, 4312, 0x6a875849
-0, 54, 54, 1, 291840, 0x4178be54
-1, 57722, 57722, 1064, 4256, 0xd08d6d0e
-0, 55, 55, 1, 291840, 0x0d0f8036
-1, 58786, 58786, 1064, 4256, 0x36bfe48e
-0, 56, 56, 1, 291840, 0xc20557b9
-1, 59850, 59850, 1078, 4312, 0x795c6134
-0, 57, 57, 1, 291840, 0x6d4b2d64
-1, 60928, 60928, 1064, 4256, 0x4fd79583
-0, 58, 58, 1, 291840, 0xa750125d
-1, 61992, 61992, 1064, 4256, 0x65e2ab9f
-0, 59, 59, 1, 291840, 0x04623ce3
-1, 63056, 63056, 1078, 4312, 0xedeede4a
-0, 60, 60, 1, 291840, 0xc7f2bbc7
-1, 64134, 64134, 1064, 4256, 0x097e0d09
-0, 61, 61, 1, 291840, 0x6e271336
-1, 65198, 65198, 1064, 4256, 0x58afa133
-0, 62, 62, 1, 291840, 0xcfbd4246
-1, 66262, 66262, 1078, 4312, 0x442525b5
-0, 63, 63, 1, 291840, 0xe1493be9
-1, 67340, 67340, 1064, 4256, 0x6645c591
-0, 64, 64, 1, 291840, 0x6c731194
-1, 68404, 68404, 1064, 4256, 0xb0dd948a
-0, 65, 65, 1, 291840, 0x0fc30cc2
-1, 69468, 69468, 1078, 4312, 0x12684e69
-0, 66, 66, 1, 291840, 0x967427f3
-1, 70546, 70546, 1064, 4256, 0xb45098e3
-0, 67, 67, 1, 291840, 0x55ae3b00
-1, 71610, 71610, 1064, 4256, 0xb6d3c61c
-0, 68, 68, 1, 291840, 0xbe4f200c
-1, 72674, 72674, 1078, 4312, 0xb46b5b22
-0, 69, 69, 1, 291840, 0xc515e443
-1, 73752, 73752, 1064, 4256, 0x9a556830
-0, 70, 70, 1, 291840, 0xd738bd69
-1, 74816, 74816, 1064, 4256, 0x67ca2b35
-0, 71, 71, 1, 291840, 0xa8e0ab69
+#tb 0: 1/32000
+0, 0, 0, 1078, 4312, 0x469714f6
+0, 1078, 1078, 1064, 4256, 0xe03dd882
+0, 2142, 2142, 1078, 4312, 0x46b901f7
+0, 3220, 3220, 1064, 4256, 0x8d4a54e4
+0, 4284, 4284, 1064, 4256, 0xfd616b67
+0, 5348, 5348, 1078, 4312, 0xefe62302
+0, 6426, 6426, 1064, 4256, 0xab11684e
+0, 7490, 7490, 1064, 4256, 0xb4b3feb8
+0, 8554, 8554, 1078, 4312, 0x71db6461
+0, 9632, 9632, 1064, 4256, 0x090e5efa
+0, 10696, 10696, 1064, 4256, 0x36f49c28
+0, 11760, 11760, 1078, 4312, 0x0fe3d262
+0, 12838, 12838, 1064, 4256, 0x199ce269
+0, 13902, 13902, 1064, 4256, 0x98342d05
+0, 14966, 14966, 1078, 4312, 0xb6fb7ebe
+0, 16044, 16044, 1064, 4256, 0x033dd562
+0, 17108, 17108, 1064, 4256, 0xc2cc17e0
+0, 18172, 18172, 1078, 4312, 0x4bb3ff50
+0, 19250, 19250, 1064, 4256, 0x6f2671ef
+0, 20314, 20314, 1064, 4256, 0x5a337bf4
+0, 21378, 21378, 1078, 4312, 0xa71f6967
+0, 22456, 22456, 1064, 4256, 0x48084aa9
+0, 23520, 23520, 1064, 4256, 0x3cce4218
+0, 24584, 24584, 1078, 4312, 0xcbb8f73d
+0, 25662, 25662, 1064, 4256, 0x36825021
+0, 26726, 26726, 1064, 4256, 0xeae036c6
+0, 27790, 27790, 1078, 4312, 0x0d650ac6
+0, 28868, 28868, 1064, 4256, 0xfba4f58c
+0, 29932, 29932, 1064, 4256, 0x54311f9b
+0, 30996, 30996, 1078, 4312, 0x286386b3
+0, 32074, 32074, 1064, 4256, 0x871896de
+0, 33138, 33138, 1064, 4256, 0x9ef9f970
+0, 34202, 34202, 1078, 4312, 0xf9ae97f1
+0, 35280, 35280, 1064, 4256, 0x0ad0d765
+0, 36344, 36344, 1064, 4256, 0x8e6aa9b5
+0, 37408, 37408, 1078, 4312, 0x8362787b
+0, 38486, 38486, 1064, 4256, 0x9b6a5d9c
+0, 39550, 39550, 1064, 4256, 0xfb715d8f
+0, 40614, 40614, 1078, 4312, 0x02bd8075
+0, 41692, 41692, 1064, 4256, 0x428eb932
+0, 42756, 42756, 1064, 4256, 0x17ea8c94
+0, 43820, 43820, 1078, 4312, 0xb3e761d7
+0, 44898, 44898, 1064, 4256, 0x0919755a
+0, 45962, 45962, 1064, 4256, 0x5e520edd
+0, 47026, 47026, 1078, 4312, 0x69aa070e
+0, 48104, 48104, 1064, 4256, 0xf8192f7d
+0, 49168, 49168, 1064, 4256, 0xaad4475c
+0, 50232, 50232, 1078, 4312, 0x0cabcfcb
+0, 51310, 51310, 1064, 4256, 0x952f0f96
+0, 52374, 52374, 1064, 4256, 0x1b805a0c
+0, 53438, 53438, 1078, 4312, 0x93043d2a
+0, 54516, 54516, 1064, 4256, 0x38b99e44
+0, 55580, 55580, 1064, 4256, 0x60cc52ff
+0, 56644, 56644, 1078, 4312, 0x6a875849
+0, 57722, 57722, 1064, 4256, 0xd08d6d0e
+0, 58786, 58786, 1064, 4256, 0x36bfe48e
+0, 59850, 59850, 1078, 4312, 0x795c6134
+0, 60928, 60928, 1064, 4256, 0x4fd79583
+0, 61992, 61992, 1064, 4256, 0x65e2ab9f
+0, 63056, 63056, 1078, 4312, 0xedeede4a
+0, 64134, 64134, 1064, 4256, 0x097e0d09
+0, 65198, 65198, 1064, 4256, 0x58afa133
+0, 66262, 66262, 1078, 4312, 0x442525b5
+0, 67340, 67340, 1064, 4256, 0x6645c591
+0, 68404, 68404, 1064, 4256, 0xb0dd948a
+0, 69468, 69468, 1078, 4312, 0x12684e69
+0, 70546, 70546, 1064, 4256, 0xb45098e3
+0, 71610, 71610, 1064, 4256, 0xb6d3c61c
+0, 72674, 72674, 1078, 4312, 0xb46b5b22
+0, 73752, 73752, 1064, 4256, 0x9a556830
+0, 74816, 74816, 1064, 4256, 0x67ca2b35
diff --git a/tests/ref/fate/adpcm-ea-mad-ea-r1 b/tests/ref/fate/ea-mad
index 7e8a995992..ce1df4af4b 100644
--- a/tests/ref/fate/adpcm-ea-mad-ea-r1
+++ b/tests/ref/fate/ea-mad
@@ -1,193 +1,97 @@
#tb 0: 1/90000
-#tb 1: 1/48000
0, 0, 0, 0, 535680, 0x889c32cf
-1, 0, 0, 1624, 6496, 0x00000000
0, 2970, 2970, 0, 535680, 0x0b1ef044
-1, 1624, 1624, 1596, 6384, 0x00000000
0, 5940, 5940, 0, 535680, 0xa7d0818b
-1, 3220, 3220, 1596, 6384, 0x00000000
0, 8910, 8910, 0, 535680, 0xf392e4e1
-1, 4816, 4816, 1596, 6384, 0x00000000
0, 11880, 11880, 0, 535680, 0x08480c69
-1, 6412, 6412, 1596, 6384, 0x00000000
0, 14850, 14850, 0, 535680, 0x2b8af1ed
-1, 8008, 8008, 1624, 6496, 0xe2034d04
0, 17820, 17820, 0, 535680, 0x0d58e062
-1, 9632, 9632, 1596, 6384, 0x089c9157
0, 20790, 20790, 0, 535680, 0xd140ced0
-1, 11228, 11228, 1596, 6384, 0xeed5743c
0, 23760, 23760, 0, 535680, 0xbd0e6652
-1, 12824, 12824, 1596, 6384, 0x71de6b34
0, 26730, 26730, 0, 535680, 0xdc2f2a6b
-1, 14420, 14420, 1596, 6384, 0xc0d67710
0, 29700, 29700, 0, 535680, 0x97c31a38
-1, 16016, 16016, 1624, 6496, 0x35786490
0, 32670, 32670, 0, 535680, 0x1a2bdf38
-1, 17640, 17640, 1596, 6384, 0xdf1c99a2
0, 35640, 35640, 0, 535680, 0xb3af3ac4
-1, 19236, 19236, 1596, 6384, 0xca9591ad
0, 38610, 38610, 0, 535680, 0x07a52577
-1, 20832, 20832, 1596, 6384, 0x6f0d9c3d
0, 41580, 41580, 0, 535680, 0x78407368
-1, 22428, 22428, 1596, 6384, 0xfacbbaee
0, 44550, 44550, 0, 535680, 0xd2a9efc3
-1, 24024, 24024, 1624, 6496, 0x927fb136
0, 47520, 47520, 0, 535680, 0x36df2f29
-1, 25648, 25648, 1596, 6384, 0x9d4f2572
0, 50490, 50490, 0, 535680, 0x9821d8f7
-1, 27244, 27244, 1596, 6384, 0x2a3c6d08
0, 53460, 53460, 0, 535680, 0xf64321aa
-1, 28840, 28840, 1596, 6384, 0x4282b1e0
0, 56430, 56430, 0, 535680, 0x53e4d9aa
-1, 30436, 30436, 1596, 6384, 0xc4a77b9f
0, 59400, 59400, 0, 535680, 0xdbd6f853
-1, 32032, 32032, 1624, 6496, 0x2af6a14f
0, 62370, 62370, 0, 535680, 0x5d40cf8b
-1, 33656, 33656, 1596, 6384, 0x4d734169
0, 65340, 65340, 0, 535680, 0xe624af9d
-1, 35252, 35252, 1596, 6384, 0xb91b5865
0, 68310, 68310, 0, 535680, 0xd9dbb4cd
-1, 36848, 36848, 1596, 6384, 0x9dce2417
0, 71280, 71280, 0, 535680, 0xf14e72ec
-1, 38444, 38444, 1596, 6384, 0xb7c4e1ce
0, 74250, 74250, 0, 535680, 0xb35c18f6
-1, 40040, 40040, 1624, 6496, 0xef0dc07a
0, 77220, 77220, 0, 535680, 0xc96d7757
-1, 41664, 41664, 1596, 6384, 0x4ad21d10
0, 80190, 80190, 0, 535680, 0xdfb937df
-1, 43260, 43260, 1596, 6384, 0xcfe14682
0, 83160, 83160, 0, 535680, 0x40cd71d7
-1, 44856, 44856, 1596, 6384, 0x07be48eb
0, 86130, 86130, 0, 535680, 0x15e176d6
-1, 46452, 46452, 1596, 6384, 0x09de3498
0, 89100, 89100, 0, 535680, 0x7f891b24
-1, 48048, 48048, 1624, 6496, 0xab2e9686
0, 92070, 92070, 0, 535680, 0xb87a8c32
-1, 49672, 49672, 1596, 6384, 0x3aba3ccc
0, 95040, 95040, 0, 535680, 0x0c01541f
-1, 51268, 51268, 1596, 6384, 0x0a905ec3
0, 98010, 98010, 0, 535680, 0x9eee99b3
-1, 52864, 52864, 1596, 6384, 0x76a93ce4
0, 100980, 100980, 0, 535680, 0xd65eb689
-1, 54460, 54460, 1596, 6384, 0xa99063a4
0, 103950, 103950, 0, 535680, 0x6e733cfa
-1, 56056, 56056, 1624, 6496, 0xc16bb88d
0, 106920, 106920, 0, 535680, 0xac536670
-1, 57680, 57680, 1596, 6384, 0x650379bf
0, 109890, 109890, 0, 535680, 0x002275b8
-1, 59276, 59276, 1596, 6384, 0x4e0749fe
0, 112860, 112860, 0, 535680, 0x6a5385cb
-1, 60872, 60872, 1596, 6384, 0x778e8d12
0, 115830, 115830, 0, 535680, 0xd129ade3
-1, 62468, 62468, 1596, 6384, 0x9fa8c494
0, 118800, 118800, 0, 535680, 0x32cab5d7
-1, 64064, 64064, 1624, 6496, 0x61d5bead
0, 121770, 121770, 0, 535680, 0x08be1c8f
-1, 65688, 65688, 1596, 6384, 0x4da9bc3c
0, 124740, 124740, 0, 535680, 0x59e1fba0
-1, 67284, 67284, 1596, 6384, 0xa72b6f93
0, 127710, 127710, 0, 535680, 0x138aee3a
-1, 68880, 68880, 1596, 6384, 0x811f5f77
0, 130680, 130680, 0, 535680, 0x4cfbcd5e
-1, 70476, 70476, 1596, 6384, 0x83ea5e3d
0, 133650, 133650, 0, 535680, 0xf6cf0fb4
-1, 72072, 72072, 1624, 6496, 0x78bab460
0, 136620, 136620, 0, 535680, 0xb13a06de
-1, 73696, 73696, 1596, 6384, 0xc9a07432
0, 139590, 139590, 0, 535680, 0x59176f00
-1, 75292, 75292, 1596, 6384, 0x4b4f2a34
0, 142560, 142560, 0, 535680, 0xf84b4ca3
-1, 76888, 76888, 1596, 6384, 0x4d707a53
0, 145530, 145530, 0, 535680, 0x7fd09f73
-1, 78484, 78484, 1596, 6384, 0x703efb60
0, 148500, 148500, 0, 535680, 0x3be383b8
-1, 80080, 80080, 1624, 6496, 0x319a77bb
0, 151470, 151470, 0, 535680, 0xa7118e51
-1, 81704, 81704, 1596, 6384, 0xbdfd82ec
0, 154440, 154440, 0, 535680, 0xbd83120c
-1, 83300, 83300, 1596, 6384, 0x413c3503
0, 157410, 157410, 0, 535680, 0x3bc9d256
-1, 84896, 84896, 1596, 6384, 0xe6e666b3
0, 160380, 160380, 0, 535680, 0xb6c87f87
-1, 86492, 86492, 1596, 6384, 0xa09c7342
0, 163350, 163350, 0, 535680, 0xe80d110a
-1, 88088, 88088, 1624, 6496, 0x60cba846
0, 166320, 166320, 0, 535680, 0xb3a83362
-1, 89712, 89712, 1596, 6384, 0x0ba34308
0, 169290, 169290, 0, 535680, 0xfb39eb52
-1, 91308, 91308, 1596, 6384, 0xdc3a65f0
0, 172260, 172260, 0, 535680, 0xbf6e1220
-1, 92904, 92904, 1596, 6384, 0x1ebf9dc4
0, 175230, 175230, 0, 535680, 0x9ecdfbae
-1, 94500, 94500, 1596, 6384, 0xbbcb1449
0, 178200, 178200, 0, 535680, 0x069a65f5
-1, 96096, 96096, 1624, 6496, 0x926574eb
0, 181170, 181170, 0, 535680, 0x206e372c
-1, 97720, 97720, 1596, 6384, 0xb4da92f1
0, 184140, 184140, 0, 535680, 0x58c83dd4
-1, 99316, 99316, 1596, 6384, 0xdbbd21e0
0, 187110, 187110, 0, 535680, 0xc3562b03
-1, 100912, 100912, 1596, 6384, 0x08510eff
0, 190080, 190080, 0, 535680, 0xd1ed85a0
-1, 102508, 102508, 1596, 6384, 0x9534b7ca
0, 193050, 193050, 0, 535680, 0xb6205f4b
-1, 104104, 104104, 1624, 6496, 0x50a5ed30
0, 196020, 196020, 0, 535680, 0xaedf8bfa
-1, 105728, 105728, 1596, 6384, 0xf5ac2f7c
0, 198990, 198990, 0, 535680, 0xa48d5dea
-1, 107324, 107324, 1596, 6384, 0x4fe1fa55
0, 201960, 201960, 0, 535680, 0xff82e7c1
-1, 108920, 108920, 1596, 6384, 0xd61c4c05
0, 204930, 204930, 0, 535680, 0xc9560222
-1, 110516, 110516, 1596, 6384, 0x56d11b45
0, 207900, 207900, 0, 535680, 0x0fafa549
-1, 112112, 112112, 1624, 6496, 0x3906084b
0, 210870, 210870, 0, 535680, 0x8d556ccb
-1, 113736, 113736, 1596, 6384, 0x1ef31fed
0, 213840, 213840, 0, 535680, 0x802aac1f
-1, 115332, 115332, 1596, 6384, 0x58ed82f5
0, 216810, 216810, 0, 535680, 0x7d0fa168
-1, 116928, 116928, 1596, 6384, 0xb31ccd1f
0, 219780, 219780, 0, 535680, 0x1a9255c9
-1, 118524, 118524, 1596, 6384, 0xfb648285
0, 222750, 222750, 0, 535680, 0xb4ec7e35
-1, 120120, 120120, 1624, 6496, 0xfae2950b
0, 225720, 225720, 0, 535680, 0x48fac072
-1, 121744, 121744, 1596, 6384, 0xe28c8357
0, 228690, 228690, 0, 535680, 0x1e260135
-1, 123340, 123340, 1596, 6384, 0xda718e60
0, 231660, 231660, 0, 535680, 0xce4d5079
-1, 124936, 124936, 1596, 6384, 0x27516999
0, 234630, 234630, 0, 535680, 0x13e5e4ed
-1, 126532, 126532, 1596, 6384, 0x0ba07921
0, 237600, 237600, 0, 535680, 0x592305ec
-1, 128128, 128128, 1624, 6496, 0xcfbecfab
0, 240570, 240570, 0, 535680, 0x9e227508
-1, 129752, 129752, 1596, 6384, 0xae4cedcd
0, 243540, 243540, 0, 535680, 0x1d37e5ea
-1, 131348, 131348, 1596, 6384, 0x917b4707
0, 246510, 246510, 0, 535680, 0x7eae7692
-1, 132944, 132944, 1596, 6384, 0x8671b28e
0, 249480, 249480, 0, 535680, 0xf452e4b9
-1, 134540, 134540, 1596, 6384, 0x9a1238fa
0, 252450, 252450, 0, 535680, 0x1460e7e9
-1, 136136, 136136, 1624, 6496, 0x23b8f8ca
0, 255420, 255420, 0, 535680, 0xc6d8a638
-1, 137760, 137760, 1596, 6384, 0x3903bcd6
0, 258390, 258390, 0, 535680, 0x854f5fb0
-1, 139356, 139356, 1596, 6384, 0x0532b267
0, 261360, 261360, 0, 535680, 0x854f5fb0
-1, 140952, 140952, 1596, 6384, 0xde931220
0, 264330, 264330, 0, 535680, 0x70a02d87
-1, 142548, 142548, 1596, 6384, 0x4ed70a80
0, 267300, 267300, 0, 535680, 0x9a4ad464
0, 270270, 270270, 0, 535680, 0x9a4ad464
-1, 144144, 144144, 1624, 6496, 0x4a52d5a1
0, 273240, 273240, 0, 535680, 0x9a4ad464
-1, 145768, 145768, 1596, 6384, 0xc1be5760
0, 276210, 276210, 0, 535680, 0x9a4ad464
-1, 147364, 147364, 1596, 6384, 0x790d69ba
0, 279180, 279180, 0, 535680, 0x9a4ad464
-1, 148960, 148960, 1596, 6384, 0x9d73e6cf
0, 282150, 282150, 0, 535680, 0x9a4ad464
-1, 150556, 150556, 1568, 6272, 0xbc0fc725
diff --git a/tests/ref/fate/ea-tgv-1 b/tests/ref/fate/ea-tgv-1
new file mode 100644
index 0000000000..fc9218164b
--- /dev/null
+++ b/tests/ref/fate/ea-tgv-1
@@ -0,0 +1,48 @@
+#tb 0: 1/15
+0, 0, 0, 1, 230400, 0xfbf2581e
+0, 1, 1, 1, 230400, 0xfbf2581e
+0, 2, 2, 1, 230400, 0xfbf2581e
+0, 3, 3, 1, 230400, 0xfbf2581e
+0, 4, 4, 1, 230400, 0xfbf2581e
+0, 5, 5, 1, 230400, 0xfbf2581e
+0, 6, 6, 1, 230400, 0xfbf2581e
+0, 7, 7, 1, 230400, 0xfbf2581e
+0, 8, 8, 1, 230400, 0xfbf2581e
+0, 9, 9, 1, 230400, 0xfbf2581e
+0, 10, 10, 1, 230400, 0xfbf2581e
+0, 11, 11, 1, 230400, 0xfbf2581e
+0, 12, 12, 1, 230400, 0xfbf2581e
+0, 13, 13, 1, 230400, 0xfbf2581e
+0, 14, 14, 1, 230400, 0xfbf2581e
+0, 15, 15, 1, 230400, 0xf5a0a21d
+0, 16, 16, 1, 230400, 0x909cc039
+0, 17, 17, 1, 230400, 0x14d899dd
+0, 18, 18, 1, 230400, 0x0d246edf
+0, 19, 19, 1, 230400, 0x5345fe0d
+0, 20, 20, 1, 230400, 0x5abdff9a
+0, 21, 21, 1, 230400, 0x1730d973
+0, 22, 22, 1, 230400, 0xec881be9
+0, 23, 23, 1, 230400, 0xf4216895
+0, 24, 24, 1, 230400, 0x529d7a52
+0, 25, 25, 1, 230400, 0x93b4c7b9
+0, 26, 26, 1, 230400, 0xedc65bcd
+0, 27, 27, 1, 230400, 0xf0fb54ae
+0, 28, 28, 1, 230400, 0x27864ce9
+0, 29, 29, 1, 230400, 0xcd05012d
+0, 30, 30, 1, 230400, 0x019b6d84
+0, 31, 31, 1, 230400, 0xcc05d416
+0, 32, 32, 1, 230400, 0xb04c0248
+0, 33, 33, 1, 230400, 0x6806eb92
+0, 34, 34, 1, 230400, 0x60e9c001
+0, 35, 35, 1, 230400, 0x9b040261
+0, 36, 36, 1, 230400, 0x6961fb90
+0, 37, 37, 1, 230400, 0xbf67ad24
+0, 38, 38, 1, 230400, 0x2270f328
+0, 39, 39, 1, 230400, 0xd0c345f6
+0, 40, 40, 1, 230400, 0xfd159212
+0, 41, 41, 1, 230400, 0x085578ff
+0, 42, 42, 1, 230400, 0xcca8afa6
+0, 43, 43, 1, 230400, 0x901ec91c
+0, 44, 44, 1, 230400, 0xf1cb99f3
+0, 45, 45, 1, 230400, 0x86d98f0c
+0, 46, 46, 1, 230400, 0x52970700
diff --git a/tests/ref/fate/ea-tgv-2 b/tests/ref/fate/ea-tgv-2
new file mode 100644
index 0000000000..5e9de02149
--- /dev/null
+++ b/tests/ref/fate/ea-tgv-2
@@ -0,0 +1,39 @@
+#tb 0: 1/15
+0, 0, 0, 1, 192000, 0xdfc2f225
+0, 1, 1, 1, 192000, 0x059b57bd
+0, 2, 2, 1, 192000, 0x766cb086
+0, 3, 3, 1, 192000, 0x459e3bac
+0, 4, 4, 1, 192000, 0x5293e622
+0, 5, 5, 1, 192000, 0x898b03f4
+0, 6, 6, 1, 192000, 0xb184a627
+0, 7, 7, 1, 192000, 0xa3fc650a
+0, 8, 8, 1, 192000, 0xea448589
+0, 9, 9, 1, 192000, 0x700e2b76
+0, 10, 10, 1, 192000, 0xa1a1d66d
+0, 11, 11, 1, 192000, 0xd63bc8a1
+0, 12, 12, 1, 192000, 0x5f08c023
+0, 13, 13, 1, 192000, 0x8b75ec3b
+0, 14, 14, 1, 192000, 0x62728ce4
+0, 15, 15, 1, 192000, 0xaa007941
+0, 16, 16, 1, 192000, 0x55dc5b3b
+0, 17, 17, 1, 192000, 0x72d836c2
+0, 18, 18, 1, 192000, 0x1f2de2fc
+0, 19, 19, 1, 192000, 0xb295dfdb
+0, 20, 20, 1, 192000, 0xe5c5f634
+0, 21, 21, 1, 192000, 0x455a0464
+0, 22, 22, 1, 192000, 0x3bf2340d
+0, 23, 23, 1, 192000, 0xe368f0fc
+0, 24, 24, 1, 192000, 0xfa7549c0
+0, 25, 25, 1, 192000, 0x4dd76f3d
+0, 26, 26, 1, 192000, 0x50a49f6c
+0, 27, 27, 1, 192000, 0xb6072f65
+0, 28, 28, 1, 192000, 0x093ce1a8
+0, 29, 29, 1, 192000, 0x55afe3db
+0, 30, 30, 1, 192000, 0x81c3bfab
+0, 31, 31, 1, 192000, 0x583ebd3d
+0, 32, 32, 1, 192000, 0x2504f003
+0, 33, 33, 1, 192000, 0x44ade2af
+0, 34, 34, 1, 192000, 0x77cbcfd8
+0, 35, 35, 1, 192000, 0xac7ddfa1
+0, 36, 36, 1, 192000, 0x79f7cfe8
+0, 37, 37, 1, 192000, 0xdf2898fd
diff --git a/tests/ref/fate/ea-tgv-ima-ea-eacs b/tests/ref/fate/ea-tgv-ima-ea-eacs
deleted file mode 100644
index 1814e3ce83..0000000000
--- a/tests/ref/fate/ea-tgv-ima-ea-eacs
+++ /dev/null
@@ -1,96 +0,0 @@
-#tb 0: 1/15
-#tb 1: 1/22050
-0, 0, 0, 1, 230400, 0xfbf2581e
-1, 0, 0, 1468, 5872, 0x00000000
-1, 1468, 1468, 1468, 5872, 0x00000000
-0, 1, 1, 1, 230400, 0xfbf2581e
-1, 2936, 2936, 1468, 5872, 0x00000000
-0, 2, 2, 1, 230400, 0xfbf2581e
-1, 4404, 4404, 1468, 5872, 0x00000000
-0, 3, 3, 1, 230400, 0xfbf2581e
-1, 5872, 5872, 1468, 5872, 0x00000000
-0, 4, 4, 1, 230400, 0xfbf2581e
-1, 7340, 7340, 1468, 5872, 0x00000000
-0, 5, 5, 1, 230400, 0xfbf2581e
-1, 8808, 8808, 1468, 5872, 0x00000000
-0, 6, 6, 1, 230400, 0xfbf2581e
-1, 10276, 10276, 1468, 5872, 0x00000000
-0, 7, 7, 1, 230400, 0xfbf2581e
-1, 11744, 11744, 1468, 5872, 0x00000000
-0, 8, 8, 1, 230400, 0xfbf2581e
-1, 13212, 13212, 1468, 5872, 0x00000000
-0, 9, 9, 1, 230400, 0xfbf2581e
-1, 14680, 14680, 1468, 5872, 0x00000000
-0, 10, 10, 1, 230400, 0xfbf2581e
-1, 16148, 16148, 1468, 5872, 0x00000000
-0, 11, 11, 1, 230400, 0xfbf2581e
-1, 17616, 17616, 1468, 5872, 0x00000000
-0, 12, 12, 1, 230400, 0xfbf2581e
-1, 19084, 19084, 1468, 5872, 0x00000000
-0, 13, 13, 1, 230400, 0xfbf2581e
-1, 20552, 20552, 1468, 5872, 0x00000000
-0, 14, 14, 1, 230400, 0xfbf2581e
-1, 22020, 22020, 1468, 5872, 0xc6f64777
-0, 15, 15, 1, 230400, 0xf5a0a21d
-1, 23488, 23488, 1468, 5872, 0x7c9e60e8
-0, 16, 16, 1, 230400, 0x909cc039
-1, 24956, 24956, 1468, 5872, 0x46525c54
-0, 17, 17, 1, 230400, 0x14d899dd
-1, 26424, 26424, 1468, 5872, 0x842796bb
-0, 18, 18, 1, 230400, 0x0d246edf
-1, 27892, 27892, 1468, 5872, 0xb1f6cbd5
-0, 19, 19, 1, 230400, 0x5345fe0d
-1, 29360, 29360, 1468, 5872, 0x0261a74b
-0, 20, 20, 1, 230400, 0x5abdff9a
-1, 30828, 30828, 1468, 5872, 0x8218b1f9
-0, 21, 21, 1, 230400, 0x1730d973
-1, 32296, 32296, 1468, 5872, 0xd7a2cae6
-0, 22, 22, 1, 230400, 0xec881be9
-1, 33764, 33764, 1468, 5872, 0x69d34562
-0, 23, 23, 1, 230400, 0xf4216895
-1, 35232, 35232, 1468, 5872, 0x9303ec65
-0, 24, 24, 1, 230400, 0x529d7a52
-1, 36700, 36700, 1468, 5872, 0xd5d963a1
-0, 25, 25, 1, 230400, 0x93b4c7b9
-1, 38168, 38168, 1468, 5872, 0x0557e06f
-0, 26, 26, 1, 230400, 0xedc65bcd
-1, 39636, 39636, 1468, 5872, 0x1eb48b41
-0, 27, 27, 1, 230400, 0xf0fb54ae
-1, 41104, 41104, 1468, 5872, 0x70f5ca3f
-0, 28, 28, 1, 230400, 0x27864ce9
-1, 42572, 42572, 1468, 5872, 0xd39e5c5e
-0, 29, 29, 1, 230400, 0xcd05012d
-1, 44040, 44040, 1468, 5872, 0x29c59140
-0, 30, 30, 1, 230400, 0x019b6d84
-1, 45508, 45508, 1468, 5872, 0x7d95e643
-0, 31, 31, 1, 230400, 0xcc05d416
-1, 46976, 46976, 1468, 5872, 0x45353fd8
-0, 32, 32, 1, 230400, 0xb04c0248
-1, 48444, 48444, 1468, 5872, 0xad7b1b27
-0, 33, 33, 1, 230400, 0x6806eb92
-1, 49912, 49912, 1468, 5872, 0x1f0377b3
-0, 34, 34, 1, 230400, 0x60e9c001
-1, 51380, 51380, 1468, 5872, 0x6074541e
-0, 35, 35, 1, 230400, 0x9b040261
-1, 52848, 52848, 1468, 5872, 0xa4f5e892
-0, 36, 36, 1, 230400, 0x6961fb90
-1, 54316, 54316, 1468, 5872, 0x084bc696
-0, 37, 37, 1, 230400, 0xbf67ad24
-1, 55784, 55784, 1468, 5872, 0x67fdafce
-0, 38, 38, 1, 230400, 0x2270f328
-1, 57252, 57252, 1468, 5872, 0x8dfd249d
-0, 39, 39, 1, 230400, 0xd0c345f6
-1, 58720, 58720, 1468, 5872, 0x514184ee
-0, 40, 40, 1, 230400, 0xfd159212
-1, 60188, 60188, 1468, 5872, 0xc0090b0d
-0, 41, 41, 1, 230400, 0x085578ff
-1, 61656, 61656, 1468, 5872, 0xc1171cc8
-0, 42, 42, 1, 230400, 0xcca8afa6
-1, 63124, 63124, 1468, 5872, 0x7d7dd07e
-0, 43, 43, 1, 230400, 0x901ec91c
-1, 64592, 64592, 1468, 5872, 0xe6aa619c
-0, 44, 44, 1, 230400, 0xf1cb99f3
-1, 66060, 66060, 1468, 5872, 0xd5aac0df
-0, 45, 45, 1, 230400, 0x86d98f0c
-1, 67528, 67528, 1468, 5872, 0x3b68b390
-0, 46, 46, 1, 230400, 0x52970700
diff --git a/tests/ref/fate/ea-tgv-ima-ea-sead b/tests/ref/fate/ea-tgv-ima-ea-sead
deleted file mode 100644
index bfc9cb58fe..0000000000
--- a/tests/ref/fate/ea-tgv-ima-ea-sead
+++ /dev/null
@@ -1,89 +0,0 @@
-#tb 0: 1/15
-#tb 1: 1/22050
-0, 0, 0, 1, 192000, 0xdfc2f225
-1, 0, 0, 736, 2944, 0x00000000
-1, 736, 736, 1472, 5888, 0x5ae3c2a4
-0, 1, 1, 1, 192000, 0x059b57bd
-1, 2208, 2208, 1472, 5888, 0x158fbcb4
-0, 2, 2, 1, 192000, 0x766cb086
-1, 3680, 3680, 1472, 5888, 0x3fc85d35
-0, 3, 3, 1, 192000, 0x459e3bac
-1, 5152, 5152, 1472, 5888, 0x4667ec2b
-0, 4, 4, 1, 192000, 0x5293e622
-1, 6624, 6624, 1472, 5888, 0x82744494
-0, 5, 5, 1, 192000, 0x898b03f4
-1, 8096, 8096, 1472, 5888, 0x3b0cb86f
-0, 6, 6, 1, 192000, 0xb184a627
-1, 9568, 9568, 1472, 5888, 0x29493fbb
-0, 7, 7, 1, 192000, 0xa3fc650a
-1, 11040, 11040, 1472, 5888, 0xaa2d8595
-0, 8, 8, 1, 192000, 0xea448589
-1, 12512, 12512, 1472, 5888, 0x2e563de6
-0, 9, 9, 1, 192000, 0x700e2b76
-1, 13984, 13984, 1472, 5888, 0x225cca99
-0, 10, 10, 1, 192000, 0xa1a1d66d
-1, 15456, 15456, 1472, 5888, 0x2b577599
-0, 11, 11, 1, 192000, 0xd63bc8a1
-1, 16928, 16928, 1472, 5888, 0x3d967f32
-0, 12, 12, 1, 192000, 0x5f08c023
-1, 18400, 18400, 1472, 5888, 0x16639a84
-0, 13, 13, 1, 192000, 0x8b75ec3b
-1, 19872, 19872, 1472, 5888, 0x90549ba0
-0, 14, 14, 1, 192000, 0x62728ce4
-1, 21344, 21344, 1472, 5888, 0xf46e6644
-0, 15, 15, 1, 192000, 0xaa007941
-1, 22816, 22816, 1472, 5888, 0x39a073ec
-0, 16, 16, 1, 192000, 0x55dc5b3b
-1, 24288, 24288, 1472, 5888, 0xb1d7a93a
-0, 17, 17, 1, 192000, 0x72d836c2
-1, 25760, 25760, 1472, 5888, 0x25e9795b
-0, 18, 18, 1, 192000, 0x1f2de2fc
-1, 27232, 27232, 1472, 5888, 0xbbc07644
-0, 19, 19, 1, 192000, 0xb295dfdb
-1, 28704, 28704, 1472, 5888, 0x323f6a1b
-0, 20, 20, 1, 192000, 0xe5c5f634
-1, 30176, 30176, 1472, 5888, 0x7cae130b
-0, 21, 21, 1, 192000, 0x455a0464
-1, 31648, 31648, 1472, 5888, 0xd23bf9c6
-0, 22, 22, 1, 192000, 0x3bf2340d
-1, 33120, 33120, 1472, 5888, 0x5f73ef35
-0, 23, 23, 1, 192000, 0xe368f0fc
-1, 34592, 34592, 1472, 5888, 0xc66026be
-0, 24, 24, 1, 192000, 0xfa7549c0
-1, 36064, 36064, 1472, 5888, 0xc8fdb539
-0, 25, 25, 1, 192000, 0x4dd76f3d
-1, 37536, 37536, 1472, 5888, 0x94c6bfbd
-0, 26, 26, 1, 192000, 0x50a49f6c
-1, 39008, 39008, 1472, 5888, 0xb77e1b83
-0, 27, 27, 1, 192000, 0xb6072f65
-1, 40480, 40480, 1472, 5888, 0x6c6d6693
-0, 28, 28, 1, 192000, 0x093ce1a8
-1, 41952, 41952, 1472, 5888, 0xd9f064d4
-0, 29, 29, 1, 192000, 0x55afe3db
-1, 43424, 43424, 1472, 5888, 0x85dd990d
-0, 30, 30, 1, 192000, 0x81c3bfab
-1, 44896, 44896, 1472, 5888, 0x385e021b
-0, 31, 31, 1, 192000, 0x583ebd3d
-1, 46368, 46368, 1472, 5888, 0xac09fd02
-0, 32, 32, 1, 192000, 0x2504f003
-1, 47840, 47840, 1472, 5888, 0xc6dcdff2
-0, 33, 33, 1, 192000, 0x44ade2af
-1, 49312, 49312, 1472, 5888, 0x86a6944d
-0, 34, 34, 1, 192000, 0x77cbcfd8
-1, 50784, 50784, 1472, 5888, 0x8587b964
-0, 35, 35, 1, 192000, 0xac7ddfa1
-1, 52256, 52256, 1472, 5888, 0x2b0355ff
-0, 36, 36, 1, 192000, 0x79f7cfe8
-1, 53728, 53728, 1472, 5888, 0xe4148a85
-0, 37, 37, 1, 192000, 0xdf2898fd
-1, 55200, 55200, 1472, 5888, 0xdf02ed4f
-1, 56672, 56672, 1472, 5888, 0x87a54b15
-1, 58144, 58144, 1472, 5888, 0x3ad2be45
-1, 59616, 59616, 1472, 5888, 0x3a49c2c3
-1, 61088, 61088, 1472, 5888, 0xc2b66404
-1, 62560, 62560, 1472, 5888, 0xac3e234a
-1, 64032, 64032, 1472, 5888, 0x5dcf523b
-1, 65504, 65504, 1472, 5888, 0x2034b5d6
-1, 66976, 66976, 1472, 5888, 0x96882832
-1, 68448, 68448, 1472, 5888, 0x2be3d534
-1, 69920, 69920, 1472, 5888, 0xa841a49d
diff --git a/tests/ref/fate/adpcm-ea-tqi b/tests/ref/fate/ea-tqi
index 9f09003bf3..ba0073b1e2 100644
--- a/tests/ref/fate/adpcm-ea-tqi
+++ b/tests/ref/fate/ea-tqi
@@ -1,53 +1,27 @@
#tb 0: 1/90000
-#tb 1: 1/22050
0, 0, 0, 0, 115200, 0x375ec573
-1, 0, 0, 1484, 5936, 0x00000000
0, 6000, 6000, 0, 115200, 0x375ec573
-1, 1484, 1484, 1456, 5824, 0x00000000
0, 12000, 12000, 0, 115200, 0x375ec573
-1, 2940, 2940, 1484, 5936, 0x00000000
0, 18000, 18000, 0, 115200, 0x375ec573
-1, 4424, 4424, 1456, 5824, 0x00000000
0, 24000, 24000, 0, 115200, 0x375ec573
-1, 5880, 5880, 1484, 5936, 0x00000000
0, 30000, 30000, 0, 115200, 0x375ec573
-1, 7364, 7364, 1456, 5824, 0x00000000
0, 36000, 36000, 0, 115200, 0x375ec573
-1, 8820, 8820, 1484, 5936, 0x00000000
0, 42000, 42000, 0, 115200, 0x375ec573
-1, 10304, 10304, 1456, 5824, 0x0f06f5bb
0, 48000, 48000, 0, 115200, 0x0b4d31bf
-1, 11760, 11760, 1484, 5936, 0xb0dbfc46
0, 54000, 54000, 0, 115200, 0xdd724598
-1, 13244, 13244, 1456, 5824, 0x9daa9f9c
0, 60000, 60000, 0, 115200, 0xc3077e75
-1, 14700, 14700, 1484, 5936, 0x61400d2f
0, 66000, 66000, 0, 115200, 0xbf70778a
-1, 16184, 16184, 1456, 5824, 0x34a5b0e3
0, 72000, 72000, 0, 115200, 0x117eb766
-1, 17640, 17640, 1484, 5936, 0x6e546f72
0, 78000, 78000, 0, 115200, 0x4617fbad
-1, 19124, 19124, 1456, 5824, 0x4f093b35
0, 84000, 84000, 0, 115200, 0x5f5b02d2
-1, 20580, 20580, 1484, 5936, 0x95b5b599
0, 90000, 90000, 0, 115200, 0x2a9c5325
-1, 22064, 22064, 1456, 5824, 0x75e15e60
0, 96000, 96000, 0, 115200, 0x14a89e2a
-1, 23520, 23520, 1484, 5936, 0xd1077d39
0, 102000, 102000, 0, 115200, 0xe69aa994
-1, 25004, 25004, 1456, 5824, 0x956e21ca
0, 108000, 108000, 0, 115200, 0xfbacf589
-1, 26460, 26460, 1484, 5936, 0x33bac234
0, 114000, 114000, 0, 115200, 0x1d714c6e
-1, 27944, 27944, 1456, 5824, 0x5df37824
0, 120000, 120000, 0, 115200, 0x6eff66cb
-1, 29400, 29400, 1484, 5936, 0xc174af24
0, 126000, 126000, 0, 115200, 0xee21c1cb
-1, 30884, 30884, 1456, 5824, 0xe5dc2159
0, 132000, 132000, 0, 115200, 0xce714ada
-1, 32340, 32340, 1484, 5936, 0x63ffc8b1
0, 138000, 138000, 0, 115200, 0xf89d56c3
-1, 33824, 33824, 1456, 5824, 0xefe4c365
0, 144000, 144000, 0, 115200, 0x65fd5e60
-1, 35280, 35280, 1484, 5936, 0x2174304d
0, 150000, 150000, 0, 115200, 0x0c256424
diff --git a/tests/ref/fate/ea-dct b/tests/ref/fate/mdec
index 071be8abb6..b7aab626e9 100644
--- a/tests/ref/fate/ea-dct
+++ b/tests/ref/fate/mdec
@@ -1,269 +1,135 @@
#tb 0: 1/15
-#tb 1: 1/22050
0, 0, 0, 1, 102144, 0x6edc83de
-1, 0, 0, 1484, 5936, 0xea261a29
0, 1, 1, 1, 102144, 0xd0534fda
-1, 1484, 1484, 1456, 5824, 0x253df061
0, 2, 2, 1, 102144, 0x6447911f
-1, 2940, 2940, 1484, 5936, 0x603a5bd7
0, 3, 3, 1, 102144, 0xf21f3b46
-1, 4424, 4424, 1456, 5824, 0x9d283f59
0, 4, 4, 1, 102144, 0x0975077a
-1, 5880, 5880, 1484, 5936, 0x49323497
0, 5, 5, 1, 102144, 0xb9a12d8e
-1, 7364, 7364, 1456, 5824, 0x7c299939
0, 6, 6, 1, 102144, 0x17413513
-1, 8820, 8820, 1484, 5936, 0x9f918e9a
0, 7, 7, 1, 102144, 0x1e622a04
-1, 10304, 10304, 1456, 5824, 0x1226b534
0, 8, 8, 1, 102144, 0x7489224e
-1, 11760, 11760, 1484, 5936, 0xdd159326
0, 9, 9, 1, 102144, 0xae14956e
-1, 13244, 13244, 1456, 5824, 0x361ad10f
0, 10, 10, 1, 102144, 0x104fd3a0
-1, 14700, 14700, 1484, 5936, 0x6ccac9e3
0, 11, 11, 1, 102144, 0xea63a940
-1, 16184, 16184, 1456, 5824, 0x1861efef
0, 12, 12, 1, 102144, 0x0cf81588
-1, 17640, 17640, 1484, 5936, 0x5f718eb9
0, 13, 13, 1, 102144, 0xe4a5b2fd
-1, 19124, 19124, 1456, 5824, 0xd4ca72ba
0, 14, 14, 1, 102144, 0x0c9aaf77
-1, 20580, 20580, 1484, 5936, 0xbf2b27e6
0, 15, 15, 1, 102144, 0x065007d7
-1, 22064, 22064, 1456, 5824, 0xcb6f024e
0, 16, 16, 1, 102144, 0x54c0c29b
-1, 23520, 23520, 1484, 5936, 0x7dfb7e05
0, 17, 17, 1, 102144, 0x1114cb8e
-1, 25004, 25004, 1456, 5824, 0x80e16f13
0, 18, 18, 1, 102144, 0xe4270462
-1, 26460, 26460, 1484, 5936, 0x0fb59227
0, 19, 19, 1, 102144, 0x61e5b7fd
-1, 27944, 27944, 1456, 5824, 0x4d6f1fdb
0, 20, 20, 1, 102144, 0x7cbeaca6
-1, 29400, 29400, 1484, 5936, 0x505a5103
0, 21, 21, 1, 102144, 0xed92daa4
-1, 30884, 30884, 1456, 5824, 0x47ef4c13
0, 22, 22, 1, 102144, 0xd8654d0d
-1, 32340, 32340, 1484, 5936, 0xbe4795fb
0, 23, 23, 1, 102144, 0x854e842b
-1, 33824, 33824, 1456, 5824, 0xb82cc4ff
0, 24, 24, 1, 102144, 0x56407c3a
-1, 35280, 35280, 1484, 5936, 0xf7c6ab8d
0, 25, 25, 1, 102144, 0x17db3f90
-1, 36764, 36764, 1456, 5824, 0x1442f5e0
0, 26, 26, 1, 102144, 0x8b133b9a
-1, 38220, 38220, 1484, 5936, 0x64659389
0, 27, 27, 1, 102144, 0xe4899db9
-1, 39704, 39704, 1456, 5824, 0xdd81725c
0, 28, 28, 1, 102144, 0x579cf092
-1, 41160, 41160, 1484, 5936, 0x7f7c604f
0, 29, 29, 1, 102144, 0x19fa5062
-1, 42644, 42644, 1456, 5824, 0xafc77beb
0, 30, 30, 1, 102144, 0x71339792
-1, 44100, 44100, 1484, 5936, 0x24f88e4d
0, 31, 31, 1, 102144, 0x970e5c0c
-1, 45584, 45584, 1456, 5824, 0xa31956ca
0, 32, 32, 1, 102144, 0x84ee616a
-1, 47040, 47040, 1484, 5936, 0x958e02b9
0, 33, 33, 1, 102144, 0x1d6f9a23
-1, 48524, 48524, 1456, 5824, 0xcfc79890
0, 34, 34, 1, 102144, 0xc28e19db
-1, 49980, 49980, 1484, 5936, 0xc7e788ae
0, 35, 35, 1, 102144, 0x0e898967
-1, 51464, 51464, 1456, 5824, 0x4b6b1acc
0, 36, 36, 1, 102144, 0x52a8b671
-1, 52920, 52920, 1484, 5936, 0xa74496dc
0, 37, 37, 1, 102144, 0x3f45ea83
-1, 54404, 54404, 1456, 5824, 0x719e6171
0, 38, 38, 1, 102144, 0x7b0fc603
-1, 55860, 55860, 1484, 5936, 0x9346222d
0, 39, 39, 1, 102144, 0x14f94469
-1, 57344, 57344, 1456, 5824, 0x9e2a876e
0, 40, 40, 1, 102144, 0x5b9f37cc
-1, 58800, 58800, 1484, 5936, 0xeca6ea64
0, 41, 41, 1, 102144, 0xf902b7c7
-1, 60284, 60284, 1456, 5824, 0x07d8174f
0, 42, 42, 1, 102144, 0x326836e0
-1, 61740, 61740, 1484, 5936, 0x2df5aa6b
0, 43, 43, 1, 102144, 0x2e4aebba
-1, 63224, 63224, 1456, 5824, 0x314e7034
0, 44, 44, 1, 102144, 0xd10ae58c
-1, 64680, 64680, 1484, 5936, 0x5a328768
0, 45, 45, 1, 102144, 0xbd084ecf
-1, 66164, 66164, 1456, 5824, 0x32b92446
0, 46, 46, 1, 102144, 0xb2157c0a
-1, 67620, 67620, 1484, 5936, 0x20ecbc9b
0, 47, 47, 1, 102144, 0xd7f158d4
-1, 69104, 69104, 1456, 5824, 0x76019c14
0, 48, 48, 1, 102144, 0x3cf86462
-1, 70560, 70560, 1484, 5936, 0x8c3ef8a6
0, 49, 49, 1, 102144, 0x53ecddab
-1, 72044, 72044, 1456, 5824, 0xcdaab50b
0, 50, 50, 1, 102144, 0xcdaba8ef
-1, 73500, 73500, 1484, 5936, 0xb2f87f4f
0, 51, 51, 1, 102144, 0xab9ede18
-1, 74984, 74984, 1456, 5824, 0x70c26379
0, 52, 52, 1, 102144, 0xb6706e79
-1, 76440, 76440, 1484, 5936, 0x5691ecfd
0, 53, 53, 1, 102144, 0x76371069
-1, 77924, 77924, 1456, 5824, 0x61e208fe
0, 54, 54, 1, 102144, 0x3a365016
-1, 79380, 79380, 1484, 5936, 0x87d1a5e0
0, 55, 55, 1, 102144, 0x52177c09
-1, 80864, 80864, 1456, 5824, 0x02054cfd
0, 56, 56, 1, 102144, 0xc33eb4fb
-1, 82320, 82320, 1484, 5936, 0x22ff1c4b
0, 57, 57, 1, 102144, 0x16098436
-1, 83804, 83804, 1456, 5824, 0xc6d87fef
0, 58, 58, 1, 102144, 0x715d6a2b
-1, 85260, 85260, 1484, 5936, 0x9028bb3b
0, 59, 59, 1, 102144, 0xd3abc960
-1, 86744, 86744, 1456, 5824, 0xbadde406
0, 60, 60, 1, 102144, 0x7f34b0d4
-1, 88200, 88200, 1484, 5936, 0x6e88ddf1
0, 61, 61, 1, 102144, 0xe3219b9c
-1, 89684, 89684, 1456, 5824, 0x5bb8be6e
0, 62, 62, 1, 102144, 0x5fa54f54
-1, 91140, 91140, 1484, 5936, 0xe1f8d7fc
0, 63, 63, 1, 102144, 0x0fb746cb
-1, 92624, 92624, 1456, 5824, 0xc824e388
0, 64, 64, 1, 102144, 0xa6bd2da2
-1, 94080, 94080, 1484, 5936, 0x654371a9
0, 65, 65, 1, 102144, 0x04579119
-1, 95564, 95564, 1456, 5824, 0xae6ee9ec
0, 66, 66, 1, 102144, 0xda818691
-1, 97020, 97020, 1484, 5936, 0x9aa4550d
0, 67, 67, 1, 102144, 0xe9d44445
-1, 98504, 98504, 1456, 5824, 0xdce210ac
0, 68, 68, 1, 102144, 0x94868dc9
-1, 99960, 99960, 1484, 5936, 0xb12641c8
0, 69, 69, 1, 102144, 0x3ca52ce6
-1, 101444, 101444, 1456, 5824, 0x277e014b
0, 70, 70, 1, 102144, 0xd7eb4c4f
-1, 102900, 102900, 1484, 5936, 0xb0d262de
0, 71, 71, 1, 102144, 0xfcdfafca
-1, 104384, 104384, 1456, 5824, 0xf94d6f49
0, 72, 72, 1, 102144, 0x473a4a5a
-1, 105840, 105840, 1484, 5936, 0x3d7848cb
0, 73, 73, 1, 102144, 0xe5a5f3cb
-1, 107324, 107324, 1456, 5824, 0xe67fc08e
0, 74, 74, 1, 102144, 0x34070219
-1, 108780, 108780, 1484, 5936, 0x0475e0d6
0, 75, 75, 1, 102144, 0x0faa965a
-1, 110264, 110264, 1456, 5824, 0x8a9a4a2e
0, 76, 76, 1, 102144, 0xe2c6acda
-1, 111720, 111720, 1484, 5936, 0x82576204
0, 77, 77, 1, 102144, 0xe22776d5
-1, 113204, 113204, 1456, 5824, 0x3017b648
0, 78, 78, 1, 102144, 0x80d85602
-1, 114660, 114660, 1484, 5936, 0xca4c3e04
0, 79, 79, 1, 102144, 0x2f3fa190
-1, 116144, 116144, 1456, 5824, 0x340077d1
0, 80, 80, 1, 102144, 0x70b461b1
-1, 117600, 117600, 1484, 5936, 0x805bea6e
0, 81, 81, 1, 102144, 0x366c8b27
-1, 119084, 119084, 1456, 5824, 0x2cf6c87b
0, 82, 82, 1, 102144, 0x65cc0866
-1, 120540, 120540, 1484, 5936, 0x3635bc5f
0, 83, 83, 1, 102144, 0x903beb14
-1, 122024, 122024, 1456, 5824, 0x0d7a81c7
0, 84, 84, 1, 102144, 0xb6c5f5c7
-1, 123480, 123480, 1484, 5936, 0x26179764
0, 85, 85, 1, 102144, 0xaa813725
-1, 124964, 124964, 1456, 5824, 0xa0b2454f
0, 86, 86, 1, 102144, 0x014a84a0
-1, 126420, 126420, 1484, 5936, 0x91d24608
0, 87, 87, 1, 102144, 0xd286ece1
-1, 127904, 127904, 1456, 5824, 0x6509b3e1
0, 88, 88, 1, 102144, 0x48b1c27d
-1, 129360, 129360, 1484, 5936, 0xa0e3c9fc
0, 89, 89, 1, 102144, 0xa611ef42
-1, 130844, 130844, 1456, 5824, 0x18682a2f
0, 90, 90, 1, 102144, 0x98627584
-1, 132300, 132300, 1484, 5936, 0x89cea4ff
0, 91, 91, 1, 102144, 0x43de7c75
-1, 133784, 133784, 1456, 5824, 0x7dd22b85
0, 92, 92, 1, 102144, 0xa9e22c68
-1, 135240, 135240, 1484, 5936, 0x8b2eeb8d
0, 93, 93, 1, 102144, 0x84ac34d4
-1, 136724, 136724, 1456, 5824, 0x0c21af82
0, 94, 94, 1, 102144, 0x6abd00ba
-1, 138180, 138180, 1484, 5936, 0x9c5a748d
0, 95, 95, 1, 102144, 0x5d11066e
-1, 139664, 139664, 1456, 5824, 0x1dc72c5c
0, 96, 96, 1, 102144, 0xb6b083aa
-1, 141120, 141120, 1484, 5936, 0xe6129383
0, 97, 97, 1, 102144, 0x5d152a11
-1, 142604, 142604, 1456, 5824, 0x0a44312a
0, 98, 98, 1, 102144, 0x0c0aec67
-1, 144060, 144060, 1484, 5936, 0x7ed30640
0, 99, 99, 1, 102144, 0xa248bd10
-1, 145544, 145544, 1456, 5824, 0xede15f25
0, 100, 100, 1, 102144, 0x4e6c12cc
-1, 147000, 147000, 1484, 5936, 0x0096d0f3
0, 101, 101, 1, 102144, 0xca1d6753
-1, 148484, 148484, 1456, 5824, 0x13764b4b
0, 102, 102, 1, 102144, 0x116310c3
-1, 149940, 149940, 1484, 5936, 0xd4608756
0, 103, 103, 1, 102144, 0x16903cd0
-1, 151424, 151424, 1456, 5824, 0x254b5f2a
0, 104, 104, 1, 102144, 0x239adfed
-1, 152880, 152880, 1484, 5936, 0x7705b830
0, 105, 105, 1, 102144, 0x0970ce49
-1, 154364, 154364, 1456, 5824, 0x64a63d78
0, 106, 106, 1, 102144, 0xb628adc1
-1, 155820, 155820, 1484, 5936, 0xc02d81a6
0, 107, 107, 1, 102144, 0x473613f7
-1, 157304, 157304, 1456, 5824, 0xd239e55e
0, 108, 108, 1, 102144, 0x3eef3987
-1, 158760, 158760, 1484, 5936, 0x8018cd3a
0, 109, 109, 1, 102144, 0x935b99ca
-1, 160244, 160244, 1456, 5824, 0xf86b8a98
0, 110, 110, 1, 102144, 0xb9f4d6ee
-1, 161700, 161700, 1484, 5936, 0x2a0078bc
0, 111, 111, 1, 102144, 0xac811656
-1, 163184, 163184, 1456, 5824, 0x058d4e1b
0, 112, 112, 1, 102144, 0xd1f84af0
-1, 164640, 164640, 1484, 5936, 0xbc718309
0, 113, 113, 1, 102144, 0xf2fd25f4
-1, 166124, 166124, 1456, 5824, 0xaf6c29e5
0, 114, 114, 1, 102144, 0x935bbed9
-1, 167580, 167580, 1484, 5936, 0x80df004d
0, 115, 115, 1, 102144, 0x8c8c3e53
-1, 169064, 169064, 1456, 5824, 0xeca5aa57
0, 116, 116, 1, 102144, 0x24afc20f
-1, 170520, 170520, 1484, 5936, 0xb793a8f8
0, 117, 117, 1, 102144, 0xad20a451
-1, 172004, 172004, 1456, 5824, 0x70fa6aff
0, 118, 118, 1, 102144, 0xd1a0df13
-1, 173460, 173460, 1484, 5936, 0xda8d4cc6
0, 119, 119, 1, 102144, 0xb0ee53f8
-1, 174944, 174944, 1456, 5824, 0xa70088eb
0, 120, 120, 1, 102144, 0x08cdb591
-1, 176400, 176400, 1484, 5936, 0x1c0b0aab
0, 121, 121, 1, 102144, 0x89b985b0
-1, 177884, 177884, 1456, 5824, 0x234d2436
0, 122, 122, 1, 102144, 0xdd27d51f
-1, 179340, 179340, 1484, 5936, 0xf79d731e
0, 123, 123, 1, 102144, 0xa783fce0
-1, 180824, 180824, 1456, 5824, 0x5a4e454a
0, 124, 124, 1, 102144, 0xfe5602e8
-1, 182280, 182280, 1484, 5936, 0xccf6d042
0, 125, 125, 1, 102144, 0xfb989934
-1, 183764, 183764, 1456, 5824, 0x4e524d14
0, 126, 126, 1, 102144, 0xf857eb2b
-1, 185220, 185220, 1484, 5936, 0xf8f2fcc3
0, 127, 127, 1, 102144, 0x987a7098
-1, 186704, 186704, 1456, 5824, 0x08f12491
0, 128, 128, 1, 102144, 0xbc749f42
-1, 188160, 188160, 1484, 5936, 0x506e0a42
0, 129, 129, 1, 102144, 0x221e48a6
-1, 189644, 189644, 1456, 5824, 0x7cf05049
0, 130, 130, 1, 102144, 0x4c4b5da2
-1, 191100, 191100, 1484, 5936, 0xdeb9d295
0, 131, 131, 1, 102144, 0x32140027
-1, 192584, 192584, 1456, 5824, 0x758ef642
0, 132, 132, 1, 102144, 0xbeb4bf18
-1, 194040, 194040, 1484, 5936, 0x91903980
0, 133, 133, 1, 102144, 0x523012e5
diff --git a/tests/ref/fate/thp b/tests/ref/fate/thp
new file mode 100644
index 0000000000..52dd059027
--- /dev/null
+++ b/tests/ref/fate/thp
@@ -0,0 +1,73 @@
+#tb 0: 524288/15712911
+0, 0, 0, 1, 291840, 0xbd7e0b22
+0, 1, 1, 1, 291840, 0xf6e12ca5
+0, 2, 2, 1, 291840, 0x528c7049
+0, 3, 3, 1, 291840, 0x93055de9
+0, 4, 4, 1, 291840, 0xf95a51c1
+0, 5, 5, 1, 291840, 0x6ad3a65a
+0, 6, 6, 1, 291840, 0x494684a7
+0, 7, 7, 1, 291840, 0x74c14eb1
+0, 8, 8, 1, 291840, 0x149fcb7e
+0, 9, 9, 1, 291840, 0x25649761
+0, 10, 10, 1, 291840, 0xbc3f9052
+0, 11, 11, 1, 291840, 0x080edfff
+0, 12, 12, 1, 291840, 0x6d7ad684
+0, 13, 13, 1, 291840, 0x6d53844d
+0, 14, 14, 1, 291840, 0xf7ad5385
+0, 15, 15, 1, 291840, 0x0241b56a
+0, 16, 16, 1, 291840, 0x120122c8
+0, 17, 17, 1, 291840, 0x31b0f32a
+0, 18, 18, 1, 291840, 0x14068b98
+0, 19, 19, 1, 291840, 0xeeec658b
+0, 20, 20, 1, 291840, 0x9376374c
+0, 21, 21, 1, 291840, 0x091e8c6e
+0, 22, 22, 1, 291840, 0x744ad07f
+0, 23, 23, 1, 291840, 0xf99c554e
+0, 24, 24, 1, 291840, 0xc84bd677
+0, 25, 25, 1, 291840, 0x3898d474
+0, 26, 26, 1, 291840, 0x1e2910c8
+0, 27, 27, 1, 291840, 0xb11f58bc
+0, 28, 28, 1, 291840, 0xf89170ee
+0, 29, 29, 1, 291840, 0x8f239dc3
+0, 30, 30, 1, 291840, 0x8538c76c
+0, 31, 31, 1, 291840, 0x162ee66f
+0, 32, 32, 1, 291840, 0x5f8708a5
+0, 33, 33, 1, 291840, 0x95802dfb
+0, 34, 34, 1, 291840, 0xc424630d
+0, 35, 35, 1, 291840, 0xfb8a8667
+0, 36, 36, 1, 291840, 0xbad79af5
+0, 37, 37, 1, 291840, 0xc733b325
+0, 38, 38, 1, 291840, 0x4bfbcd70
+0, 39, 39, 1, 291840, 0x502cd950
+0, 40, 40, 1, 291840, 0x8461ca2c
+0, 41, 41, 1, 291840, 0x00219b0d
+0, 42, 42, 1, 291840, 0xa4de45e1
+0, 43, 43, 1, 291840, 0xacd3f4df
+0, 44, 44, 1, 291840, 0x2203a369
+0, 45, 45, 1, 291840, 0x0a66effa
+0, 46, 46, 1, 291840, 0x7ac1fd91
+0, 47, 47, 1, 291840, 0x84970aa7
+0, 48, 48, 1, 291840, 0x569d145f
+0, 49, 49, 1, 291840, 0xe51efe1b
+0, 50, 50, 1, 291840, 0x38e2cd78
+0, 51, 51, 1, 291840, 0x93428ea2
+0, 52, 52, 1, 291840, 0x3d3f5b17
+0, 53, 53, 1, 291840, 0x9546127d
+0, 54, 54, 1, 291840, 0x4178be54
+0, 55, 55, 1, 291840, 0x0d0f8036
+0, 56, 56, 1, 291840, 0xc20557b9
+0, 57, 57, 1, 291840, 0x6d4b2d64
+0, 58, 58, 1, 291840, 0xa750125d
+0, 59, 59, 1, 291840, 0x04623ce3
+0, 60, 60, 1, 291840, 0xc7f2bbc7
+0, 61, 61, 1, 291840, 0x6e271336
+0, 62, 62, 1, 291840, 0xcfbd4246
+0, 63, 63, 1, 291840, 0xe1493be9
+0, 64, 64, 1, 291840, 0x6c731194
+0, 65, 65, 1, 291840, 0x0fc30cc2
+0, 66, 66, 1, 291840, 0x967427f3
+0, 67, 67, 1, 291840, 0x55ae3b00
+0, 68, 68, 1, 291840, 0xbe4f200c
+0, 69, 69, 1, 291840, 0xc515e443
+0, 70, 70, 1, 291840, 0xd738bd69
+0, 71, 71, 1, 291840, 0xa8e0ab69