[FFmpeg-cvslog] avconv: saner output video timebase.

Anton Khirnov git at videolan.org
Mon Feb 27 04:47:11 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Feb  7 11:03:33 2012 +0100| [832ba44d8d91d5c5ad47843085f810bde74a2e6d] | committer: Anton Khirnov

avconv: saner output video timebase.

r_frame_rate should in theory have something to do with input framerate,
but in practice it is often made up from thin air by lavf. So unless we
are targeting a constant output framerate, it's better to just use input
stream timebase.

Brings back dropped frames in nuv and cscd tests introduced in
cd1ad18a6539bd7fc2dc4c1740fbcbd498c0c0a2

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=832ba44d8d91d5c5ad47843085f810bde74a2e6d
---

 avconv.c                           |   29 ++-
 doc/avconv.texi                    |    3 +-
 tests/ref/fate/8bps                |   24 +-
 tests/ref/fate/adpcm-ea-mad-ea-r1  |  194 +++++++-------
 tests/ref/fate/adpcm-ea-tqi        |   54 ++--
 tests/ref/fate/bethsoft-vid        |  142 +++++-----
 tests/ref/fate/cdxl-ham6           |   34 ++--
 tests/ref/fate/cdxl-ham8           |    4 +-
 tests/ref/fate/cdxl-pal8           |   24 +-
 tests/ref/fate/cdxl-pal8-small     |   94 +++---
 tests/ref/fate/creatureshock-avs   |  114 ++++----
 tests/ref/fate/cscd                |  404 +++++++++++++-------------
 tests/ref/fate/cvid-palette        |  114 ++++----
 tests/ref/fate/ea-cmv              |  390 +++++++++++++-------------
 tests/ref/fate/ea-dct              |  270 +++++++++---------
 tests/ref/fate/ea-mad-pcm-planar   |  302 ++++++++++----------
 tests/ref/fate/ea-tgq              |  558 ++++++++++++++++++------------------
 tests/ref/fate/ea-tgv-ima-ea-eacs  |   96 +++---
 tests/ref/fate/ea-tgv-ima-ea-sead  |   78 +++---
 tests/ref/fate/ea-vp60             |  268 +++++++++---------
 tests/ref/fate/ea-vp61             |  242 ++++++++--------
 tests/ref/fate/indeo3              |   80 +++---
 tests/ref/fate/interplay-mve-16bit |  102 ++++----
 tests/ref/fate/interplay-mve-8bit  |  222 +++++++-------
 tests/ref/fate/mjpegb              |   22 +-
 tests/ref/fate/mpeg2-field-enc     |   64 ++--
 tests/ref/fate/nuv                 |   19 +-
 tests/ref/fate/prores-422          |    6 +-
 tests/ref/fate/prores-422_hq       |    6 +-
 tests/ref/fate/prores-422_lt       |    6 +-
 tests/ref/fate/prores-422_proxy    |    6 +-
 tests/ref/fate/prores-alpha        |    6 +-
 tests/ref/fate/qtrle-16bit         |  166 ++++++------
 tests/ref/fate/qtrle-1bit          |   78 +++---
 tests/ref/fate/qtrle-24bit         |   68 +++---
 tests/ref/fate/qtrle-2bit          |   78 +++---
 tests/ref/fate/qtrle-32bit         |   54 ++--
 tests/ref/fate/qtrle-4bit          |   78 +++---
 tests/ref/fate/qtrle-8bit          |  334 +++++++++++-----------
 tests/ref/fate/quickdraw           |    4 +-
 tests/ref/fate/real-rv40           |  480 ++++++++++++++++----------------
 tests/ref/fate/rpza                |   60 ++--
 tests/ref/fate/rv30                |  220 +++++++-------
 tests/ref/fate/smc                 |  240 ++++++++--------
 tests/ref/fate/svq1                |  300 ++++++++++----------
 tests/ref/fate/svq3                |  360 ++++++++++++------------
 tests/ref/fate/txd-16bpp           |   24 +-
 tests/ref/fate/txd-pal8            |    4 +-
 tests/ref/fate/vc1-ism             |  242 ++++++++--------
 tests/ref/fate/vp3-coeff-level64   |   18 +-
 tests/ref/fate/vp6a                |  188 ++++++------
 tests/ref/fate/vp6f                |  350 +++++++++++-----------
 tests/ref/fate/wmv8-drm            |  262 +++++++++---------
 53 files changed, 3803 insertions(+), 3782 deletions(-)

diff --git a/avconv.c b/avconv.c
index 8310f73..7acd7ed 100644
--- a/avconv.c
+++ b/avconv.c
@@ -2450,13 +2450,30 @@ static int transcode_init(OutputFile *output_files,
                 ost->resample_width   = icodec->width;
                 ost->resample_pix_fmt = icodec->pix_fmt;
 
-                if (!ost->frame_rate.num)
-                    ost->frame_rate = ist->st->r_frame_rate.num ? ist->st->r_frame_rate : (AVRational) { 25, 1 };
-                if (ost->enc && ost->enc->supported_framerates && !ost->force_fps) {
-                    int idx = av_find_nearest_q_idx(ost->frame_rate, ost->enc->supported_framerates);
-                    ost->frame_rate = ost->enc->supported_framerates[idx];
+                /*
+                 * We want CFR output if and only if one of those is true:
+                 * 1) user specified output framerate with -r
+                 * 2) user specified -vsync cfr
+                 * 3) output format is CFR and the user didn't force vsync to
+                 *    something else than CFR
+                 *
+                 * in such a case, set ost->frame_rate
+                 */
+                if (!ost->frame_rate.num &&
+                    (video_sync_method ==  VSYNC_CFR ||
+                     (video_sync_method ==  VSYNC_AUTO &&
+                      !(oc->oformat->flags & (AVFMT_NOTIMESTAMPS | AVFMT_VARIABLE_FPS))))) {
+                    ost->frame_rate = ist->st->r_frame_rate.num ? ist->st->r_frame_rate : (AVRational){25, 1};
+                    if (ost->enc && ost->enc->supported_framerates && !ost->force_fps) {
+                        int idx = av_find_nearest_q_idx(ost->frame_rate, ost->enc->supported_framerates);
+                        ost->frame_rate = ost->enc->supported_framerates[idx];
+                    }
                 }
-                codec->time_base = (AVRational){ost->frame_rate.den, ost->frame_rate.num};
+                if (ost->frame_rate.num) {
+                    codec->time_base = (AVRational){ost->frame_rate.den, ost->frame_rate.num};
+                    video_sync_method = VSYNC_CFR;
+                } else
+                    codec->time_base = ist->st->time_base;
 
 #if CONFIG_AVFILTER
                 if (configure_video_filters(ist, ost)) {
diff --git a/doc/avconv.texi b/doc/avconv.texi
index 008b421..25fb12f 100644
--- a/doc/avconv.texi
+++ b/doc/avconv.texi
@@ -254,7 +254,8 @@ attachments.
 @item -vframes @var{number} (@emph{output})
 Set the number of video frames to record. This is an alias for @code{-frames:v}.
 @item -r[:@var{stream_specifier}] @var{fps} (@emph{input/output,per-stream})
-Set frame rate (Hz value, fraction or abbreviation), (default = 25).
+Set frame rate (Hz value, fraction or abbreviation), (default = 25). For output
+streams implies @code{-vsync cfr}.
 @item -s[:@var{stream_specifier}] @var{size} (@emph{input/output,per-stream})
 Set frame size. The format is @samp{wxh} (default - same as source).
 The following abbreviations are recognized:
diff --git a/tests/ref/fate/8bps b/tests/ref/fate/8bps
index 9db9430..869d38c 100644
--- a/tests/ref/fate/8bps
+++ b/tests/ref/fate/8bps
@@ -1,36 +1,36 @@
-#tb 0: 2/25
+#tb 0: 1/125
 #tb 1: 1/22050
 0,          0,          0,        1,   259200, 0x7e91df07
 1,          0,          0,     1024,     2048, 0x3d042426
 1,       1024,       1024,     1024,     2048, 0x5bcae456
-0,          1,          1,        1,   259200, 0x7e91df07
+0,         10,         10,        1,   259200, 0x7e91df07
 1,       2048,       2048,     1024,     2048, 0xb6043655
 1,       3072,       3072,     1024,     2048, 0x6fdaffad
-0,          2,          2,        1,   259200, 0xc468c119
+0,         20,         20,        1,   259200, 0xc468c119
 1,       4096,       4096,     1024,     2048, 0xf86700cb
 1,       5120,       5120,     1024,     2048, 0x045e46c1
-0,          3,          3,        1,   259200, 0x0e058930
+0,         30,         30,        1,   259200, 0x0e058930
 1,       6144,       6144,     1024,     2048, 0x000df0e5
-0,          4,          4,        1,   259200, 0xa0261310
+0,         40,         40,        1,   259200, 0xa0261310
 1,       7168,       7168,     1024,     2048, 0x8f5f12fb
 1,       8192,       8192,     1024,     2048, 0xd516f6b0
-0,          5,          5,        1,   259200, 0x78ca9aba
+0,         50,         50,        1,   259200, 0x78ca9aba
 1,       9216,       9216,     1024,     2048, 0xa1fe2bd3
 1,      10240,      10240,     1024,     2048, 0x3647087a
-0,          6,          6,        1,   259200, 0x4971f7b3
+0,         60,         60,        1,   259200, 0x4971f7b3
 1,      11264,      11264,     1024,     2048, 0xd2ee584e
 1,      12288,      12288,     1024,     2048, 0xf132088c
-0,          7,          7,        1,   259200, 0x7dc2cff7
+0,         70,         70,        1,   259200, 0x7dc2cff7
 1,      13312,      13312,     1024,     2048, 0x1efc0eb1
-0,          8,          8,        1,   259200, 0x8cbc53d5
+0,         80,         80,        1,   259200, 0x8cbc53d5
 1,      14336,      14336,     1024,     2048, 0xeb73f402
 1,      15360,      15360,     1024,     2048, 0x75cb3d20
-0,          9,          9,        1,   259200, 0xcccd77e3
+0,         90,         90,        1,   259200, 0xcccd77e3
 1,      16384,      16384,     1024,     2048, 0x85a501b6
 1,      17408,      17408,     1024,     2048, 0xa4eb312d
-0,         10,         10,        1,   259200, 0x6b3e0fb3
+0,        100,        100,        1,   259200, 0x6b3e0fb3
 1,      18432,      18432,     1024,     2048, 0xf0aaf8c7
-0,         11,         11,        1,   259200, 0x281dd175
+0,        110,        110,        1,   259200, 0x281dd175
 1,      19456,      19456,     1024,     2048, 0x65371cda
 1,      20480,      20480,     1024,     2048, 0x25512cd6
 1,      21504,      21504,     1024,     2048, 0xc81410e3
diff --git a/tests/ref/fate/adpcm-ea-mad-ea-r1 b/tests/ref/fate/adpcm-ea-mad-ea-r1
index 01c7262..7e8a995 100644
--- a/tests/ref/fate/adpcm-ea-mad-ea-r1
+++ b/tests/ref/fate/adpcm-ea-mad-ea-r1
@@ -1,193 +1,193 @@
-#tb 0: 33/1000
+#tb 0: 1/90000
 #tb 1: 1/48000
-0,          0,          0,        1,   535680, 0x889c32cf
+0,          0,          0,        0,   535680, 0x889c32cf
 1,          0,          0,     1624,     6496, 0x00000000
-0,          1,          1,        1,   535680, 0x0b1ef044
+0,       2970,       2970,        0,   535680, 0x0b1ef044
 1,       1624,       1624,     1596,     6384, 0x00000000
-0,          2,          2,        1,   535680, 0xa7d0818b
+0,       5940,       5940,        0,   535680, 0xa7d0818b
 1,       3220,       3220,     1596,     6384, 0x00000000
-0,          3,          3,        1,   535680, 0xf392e4e1
+0,       8910,       8910,        0,   535680, 0xf392e4e1
 1,       4816,       4816,     1596,     6384, 0x00000000
-0,          4,          4,        1,   535680, 0x08480c69
+0,      11880,      11880,        0,   535680, 0x08480c69
 1,       6412,       6412,     1596,     6384, 0x00000000
-0,          5,          5,        1,   535680, 0x2b8af1ed
+0,      14850,      14850,        0,   535680, 0x2b8af1ed
 1,       8008,       8008,     1624,     6496, 0xe2034d04
-0,          6,          6,        1,   535680, 0x0d58e062
+0,      17820,      17820,        0,   535680, 0x0d58e062
 1,       9632,       9632,     1596,     6384, 0x089c9157
-0,          7,          7,        1,   535680, 0xd140ced0
+0,      20790,      20790,        0,   535680, 0xd140ced0
 1,      11228,      11228,     1596,     6384, 0xeed5743c
-0,          8,          8,        1,   535680, 0xbd0e6652
+0,      23760,      23760,        0,   535680, 0xbd0e6652
 1,      12824,      12824,     1596,     6384, 0x71de6b34
-0,          9,          9,        1,   535680, 0xdc2f2a6b
+0,      26730,      26730,        0,   535680, 0xdc2f2a6b
 1,      14420,      14420,     1596,     6384, 0xc0d67710
-0,         10,         10,        1,   535680, 0x97c31a38
+0,      29700,      29700,        0,   535680, 0x97c31a38
 1,      16016,      16016,     1624,     6496, 0x35786490
-0,         11,         11,        1,   535680, 0x1a2bdf38
+0,      32670,      32670,        0,   535680, 0x1a2bdf38
 1,      17640,      17640,     1596,     6384, 0xdf1c99a2
-0,         12,         12,        1,   535680, 0xb3af3ac4
+0,      35640,      35640,        0,   535680, 0xb3af3ac4
 1,      19236,      19236,     1596,     6384, 0xca9591ad
-0,         13,         13,        1,   535680, 0x07a52577
+0,      38610,      38610,        0,   535680, 0x07a52577
 1,      20832,      20832,     1596,     6384, 0x6f0d9c3d
-0,         14,         14,        1,   535680, 0x78407368
+0,      41580,      41580,        0,   535680, 0x78407368
 1,      22428,      22428,     1596,     6384, 0xfacbbaee
-0,         15,         15,        1,   535680, 0xd2a9efc3
+0,      44550,      44550,        0,   535680, 0xd2a9efc3
 1,      24024,      24024,     1624,     6496, 0x927fb136
-0,         16,         16,        1,   535680, 0x36df2f29
+0,      47520,      47520,        0,   535680, 0x36df2f29
 1,      25648,      25648,     1596,     6384, 0x9d4f2572
-0,         17,         17,        1,   535680, 0x9821d8f7
+0,      50490,      50490,        0,   535680, 0x9821d8f7
 1,      27244,      27244,     1596,     6384, 0x2a3c6d08
-0,         18,         18,        1,   535680, 0xf64321aa
+0,      53460,      53460,        0,   535680, 0xf64321aa
 1,      28840,      28840,     1596,     6384, 0x4282b1e0
-0,         19,         19,        1,   535680, 0x53e4d9aa
+0,      56430,      56430,        0,   535680, 0x53e4d9aa
 1,      30436,      30436,     1596,     6384, 0xc4a77b9f
-0,         20,         20,        1,   535680, 0xdbd6f853
+0,      59400,      59400,        0,   535680, 0xdbd6f853
 1,      32032,      32032,     1624,     6496, 0x2af6a14f
-0,         21,         21,        1,   535680, 0x5d40cf8b
+0,      62370,      62370,        0,   535680, 0x5d40cf8b
 1,      33656,      33656,     1596,     6384, 0x4d734169
-0,         22,         22,        1,   535680, 0xe624af9d
+0,      65340,      65340,        0,   535680, 0xe624af9d
 1,      35252,      35252,     1596,     6384, 0xb91b5865
-0,         23,         23,        1,   535680, 0xd9dbb4cd
+0,      68310,      68310,        0,   535680, 0xd9dbb4cd
 1,      36848,      36848,     1596,     6384, 0x9dce2417
-0,         24,         24,        1,   535680, 0xf14e72ec
+0,      71280,      71280,        0,   535680, 0xf14e72ec
 1,      38444,      38444,     1596,     6384, 0xb7c4e1ce
-0,         25,         25,        1,   535680, 0xb35c18f6
+0,      74250,      74250,        0,   535680, 0xb35c18f6
 1,      40040,      40040,     1624,     6496, 0xef0dc07a
-0,         26,         26,        1,   535680, 0xc96d7757
+0,      77220,      77220,        0,   535680, 0xc96d7757
 1,      41664,      41664,     1596,     6384, 0x4ad21d10
-0,         27,         27,        1,   535680, 0xdfb937df
+0,      80190,      80190,        0,   535680, 0xdfb937df
 1,      43260,      43260,     1596,     6384, 0xcfe14682
-0,         28,         28,        1,   535680, 0x40cd71d7
+0,      83160,      83160,        0,   535680, 0x40cd71d7
 1,      44856,      44856,     1596,     6384, 0x07be48eb
-0,         29,         29,        1,   535680, 0x15e176d6
+0,      86130,      86130,        0,   535680, 0x15e176d6
 1,      46452,      46452,     1596,     6384, 0x09de3498
-0,         30,         30,        1,   535680, 0x7f891b24
+0,      89100,      89100,        0,   535680, 0x7f891b24
 1,      48048,      48048,     1624,     6496, 0xab2e9686
-0,         31,         31,        1,   535680, 0xb87a8c32
+0,      92070,      92070,        0,   535680, 0xb87a8c32
 1,      49672,      49672,     1596,     6384, 0x3aba3ccc
-0,         32,         32,        1,   535680, 0x0c01541f
+0,      95040,      95040,        0,   535680, 0x0c01541f
 1,      51268,      51268,     1596,     6384, 0x0a905ec3
-0,         33,         33,        1,   535680, 0x9eee99b3
+0,      98010,      98010,        0,   535680, 0x9eee99b3
 1,      52864,      52864,     1596,     6384, 0x76a93ce4
-0,         34,         34,        1,   535680, 0xd65eb689
+0,     100980,     100980,        0,   535680, 0xd65eb689
 1,      54460,      54460,     1596,     6384, 0xa99063a4
-0,         35,         35,        1,   535680, 0x6e733cfa
+0,     103950,     103950,        0,   535680, 0x6e733cfa
 1,      56056,      56056,     1624,     6496, 0xc16bb88d
-0,         36,         36,        1,   535680, 0xac536670
+0,     106920,     106920,        0,   535680, 0xac536670
 1,      57680,      57680,     1596,     6384, 0x650379bf
-0,         37,         37,        1,   535680, 0x002275b8
+0,     109890,     109890,        0,   535680, 0x002275b8
 1,      59276,      59276,     1596,     6384, 0x4e0749fe
-0,         38,         38,        1,   535680, 0x6a5385cb
+0,     112860,     112860,        0,   535680, 0x6a5385cb
 1,      60872,      60872,     1596,     6384, 0x778e8d12
-0,         39,         39,        1,   535680, 0xd129ade3
+0,     115830,     115830,        0,   535680, 0xd129ade3
 1,      62468,      62468,     1596,     6384, 0x9fa8c494
-0,         40,         40,        1,   535680, 0x32cab5d7
+0,     118800,     118800,        0,   535680, 0x32cab5d7
 1,      64064,      64064,     1624,     6496, 0x61d5bead
-0,         41,         41,        1,   535680, 0x08be1c8f
+0,     121770,     121770,        0,   535680, 0x08be1c8f
 1,      65688,      65688,     1596,     6384, 0x4da9bc3c
-0,         42,         42,        1,   535680, 0x59e1fba0
+0,     124740,     124740,        0,   535680, 0x59e1fba0
 1,      67284,      67284,     1596,     6384, 0xa72b6f93
-0,         43,         43,        1,   535680, 0x138aee3a
+0,     127710,     127710,        0,   535680, 0x138aee3a
 1,      68880,      68880,     1596,     6384, 0x811f5f77
-0,         44,         44,        1,   535680, 0x4cfbcd5e
+0,     130680,     130680,        0,   535680, 0x4cfbcd5e
 1,      70476,      70476,     1596,     6384, 0x83ea5e3d
-0,         45,         45,        1,   535680, 0xf6cf0fb4
+0,     133650,     133650,        0,   535680, 0xf6cf0fb4
 1,      72072,      72072,     1624,     6496, 0x78bab460
-0,         46,         46,        1,   535680, 0xb13a06de
+0,     136620,     136620,        0,   535680, 0xb13a06de
 1,      73696,      73696,     1596,     6384, 0xc9a07432
-0,         47,         47,        1,   535680, 0x59176f00
+0,     139590,     139590,        0,   535680, 0x59176f00
 1,      75292,      75292,     1596,     6384, 0x4b4f2a34
-0,         48,         48,        1,   535680, 0xf84b4ca3
+0,     142560,     142560,        0,   535680, 0xf84b4ca3
 1,      76888,      76888,     1596,     6384, 0x4d707a53
-0,         49,         49,        1,   535680, 0x7fd09f73
+0,     145530,     145530,        0,   535680, 0x7fd09f73
 1,      78484,      78484,     1596,     6384, 0x703efb60
-0,         50,         50,        1,   535680, 0x3be383b8
+0,     148500,     148500,        0,   535680, 0x3be383b8
 1,      80080,      80080,     1624,     6496, 0x319a77bb
-0,         51,         51,        1,   535680, 0xa7118e51
+0,     151470,     151470,        0,   535680, 0xa7118e51
 1,      81704,      81704,     1596,     6384, 0xbdfd82ec
-0,         52,         52,        1,   535680, 0xbd83120c
+0,     154440,     154440,        0,   535680, 0xbd83120c
 1,      83300,      83300,     1596,     6384, 0x413c3503
-0,         53,         53,        1,   535680, 0x3bc9d256
+0,     157410,     157410,        0,   535680, 0x3bc9d256
 1,      84896,      84896,     1596,     6384, 0xe6e666b3
-0,         54,         54,        1,   535680, 0xb6c87f87
+0,     160380,     160380,        0,   535680, 0xb6c87f87
 1,      86492,      86492,     1596,     6384, 0xa09c7342
-0,         55,         55,        1,   535680, 0xe80d110a
+0,     163350,     163350,        0,   535680, 0xe80d110a
 1,      88088,      88088,     1624,     6496, 0x60cba846
-0,         56,         56,        1,   535680, 0xb3a83362
+0,     166320,     166320,        0,   535680, 0xb3a83362
 1,      89712,      89712,     1596,     6384, 0x0ba34308
-0,         57,         57,        1,   535680, 0xfb39eb52
+0,     169290,     169290,        0,   535680, 0xfb39eb52
 1,      91308,      91308,     1596,     6384, 0xdc3a65f0
-0,         58,         58,        1,   535680, 0xbf6e1220
+0,     172260,     172260,        0,   535680, 0xbf6e1220
 1,      92904,      92904,     1596,     6384, 0x1ebf9dc4
-0,         59,         59,        1,   535680, 0x9ecdfbae
+0,     175230,     175230,        0,   535680, 0x9ecdfbae
 1,      94500,      94500,     1596,     6384, 0xbbcb1449
-0,         60,         60,        1,   535680, 0x069a65f5
+0,     178200,     178200,        0,   535680, 0x069a65f5
 1,      96096,      96096,     1624,     6496, 0x926574eb
-0,         61,         61,        1,   535680, 0x206e372c
+0,     181170,     181170,        0,   535680, 0x206e372c
 1,      97720,      97720,     1596,     6384, 0xb4da92f1
-0,         62,         62,        1,   535680, 0x58c83dd4
+0,     184140,     184140,        0,   535680, 0x58c83dd4
 1,      99316,      99316,     1596,     6384, 0xdbbd21e0
-0,         63,         63,        1,   535680, 0xc3562b03
+0,     187110,     187110,        0,   535680, 0xc3562b03
 1,     100912,     100912,     1596,     6384, 0x08510eff
-0,         64,         64,        1,   535680, 0xd1ed85a0
+0,     190080,     190080,        0,   535680, 0xd1ed85a0
 1,     102508,     102508,     1596,     6384, 0x9534b7ca
-0,         65,         65,        1,   535680, 0xb6205f4b
+0,     193050,     193050,        0,   535680, 0xb6205f4b
 1,     104104,     104104,     1624,     6496, 0x50a5ed30
-0,         66,         66,        1,   535680, 0xaedf8bfa
+0,     196020,     196020,        0,   535680, 0xaedf8bfa
 1,     105728,     105728,     1596,     6384, 0xf5ac2f7c
-0,         67,         67,        1,   535680, 0xa48d5dea
+0,     198990,     198990,        0,   535680, 0xa48d5dea
 1,     107324,     107324,     1596,     6384, 0x4fe1fa55
-0,         68,         68,        1,   535680, 0xff82e7c1
+0,     201960,     201960,        0,   535680, 0xff82e7c1
 1,     108920,     108920,     1596,     6384, 0xd61c4c05
-0,         69,         69,        1,   535680, 0xc9560222
+0,     204930,     204930,        0,   535680, 0xc9560222
 1,     110516,     110516,     1596,     6384, 0x56d11b45
-0,         70,         70,        1,   535680, 0x0fafa549
+0,     207900,     207900,        0,   535680, 0x0fafa549
 1,     112112,     112112,     1624,     6496, 0x3906084b
-0,         71,         71,        1,   535680, 0x8d556ccb
+0,     210870,     210870,        0,   535680, 0x8d556ccb
 1,     113736,     113736,     1596,     6384, 0x1ef31fed
-0,         72,         72,        1,   535680, 0x802aac1f
+0,     213840,     213840,        0,   535680, 0x802aac1f
 1,     115332,     115332,     1596,     6384, 0x58ed82f5
-0,         73,         73,        1,   535680, 0x7d0fa168
+0,     216810,     216810,        0,   535680, 0x7d0fa168
 1,     116928,     116928,     1596,     6384, 0xb31ccd1f
-0,         74,         74,        1,   535680, 0x1a9255c9
+0,     219780,     219780,        0,   535680, 0x1a9255c9
 1,     118524,     118524,     1596,     6384, 0xfb648285
-0,         75,         75,        1,   535680, 0xb4ec7e35
+0,     222750,     222750,        0,   535680, 0xb4ec7e35
 1,     120120,     120120,     1624,     6496, 0xfae2950b
-0,         76,         76,        1,   535680, 0x48fac072
+0,     225720,     225720,        0,   535680, 0x48fac072
 1,     121744,     121744,     1596,     6384, 0xe28c8357
-0,         77,         77,        1,   535680, 0x1e260135
+0,     228690,     228690,        0,   535680, 0x1e260135
 1,     123340,     123340,     1596,     6384, 0xda718e60
-0,         78,         78,        1,   535680, 0xce4d5079
+0,     231660,     231660,        0,   535680, 0xce4d5079
 1,     124936,     124936,     1596,     6384, 0x27516999
-0,         79,         79,        1,   535680, 0x13e5e4ed
+0,     234630,     234630,        0,   535680, 0x13e5e4ed
 1,     126532,     126532,     1596,     6384, 0x0ba07921
-0,         80,         80,        1,   535680, 0x592305ec
+0,     237600,     237600,        0,   535680, 0x592305ec
 1,     128128,     128128,     1624,     6496, 0xcfbecfab
-0,         81,         81,        1,   535680, 0x9e227508
+0,     240570,     240570,        0,   535680, 0x9e227508
 1,     129752,     129752,     1596,     6384, 0xae4cedcd
-0,         82,         82,        1,   535680, 0x1d37e5ea
+0,     243540,     243540,        0,   535680, 0x1d37e5ea
 1,     131348,     131348,     1596,     6384, 0x917b4707
-0,         83,         83,        1,   535680, 0x7eae7692
+0,     246510,     246510,        0,   535680, 0x7eae7692
 1,     132944,     132944,     1596,     6384, 0x8671b28e
-0,         84,         84,        1,   535680, 0xf452e4b9
+0,     249480,     249480,        0,   535680, 0xf452e4b9
 1,     134540,     134540,     1596,     6384, 0x9a1238fa
-0,         85,         85,        1,   535680, 0x1460e7e9
+0,     252450,     252450,        0,   535680, 0x1460e7e9
 1,     136136,     136136,     1624,     6496, 0x23b8f8ca
-0,         86,         86,        1,   535680, 0xc6d8a638
+0,     255420,     255420,        0,   535680, 0xc6d8a638
 1,     137760,     137760,     1596,     6384, 0x3903bcd6
-0,         87,         87,        1,   535680, 0x854f5fb0
+0,     258390,     258390,        0,   535680, 0x854f5fb0
 1,     139356,     139356,     1596,     6384, 0x0532b267
-0,         88,         88,        1,   535680, 0x854f5fb0
+0,     261360,     261360,        0,   535680, 0x854f5fb0
 1,     140952,     140952,     1596,     6384, 0xde931220
-0,         89,         89,        1,   535680, 0x70a02d87
+0,     264330,     264330,        0,   535680, 0x70a02d87
 1,     142548,     142548,     1596,     6384, 0x4ed70a80
-0,         90,         90,        1,   535680, 0x9a4ad464
-0,         91,         91,        1,   535680, 0x9a4ad464
+0,     267300,     267300,        0,   535680, 0x9a4ad464
+0,     270270,     270270,        0,   535680, 0x9a4ad464
 1,     144144,     144144,     1624,     6496, 0x4a52d5a1
-0,         92,         92,        1,   535680, 0x9a4ad464
+0,     273240,     273240,        0,   535680, 0x9a4ad464
 1,     145768,     145768,     1596,     6384, 0xc1be5760
-0,         93,         93,        1,   535680, 0x9a4ad464
+0,     276210,     276210,        0,   535680, 0x9a4ad464
 1,     147364,     147364,     1596,     6384, 0x790d69ba
-0,         94,         94,        1,   535680, 0x9a4ad464
+0,     279180,     279180,        0,   535680, 0x9a4ad464
 1,     148960,     148960,     1596,     6384, 0x9d73e6cf
-0,         95,         95,        1,   535680, 0x9a4ad464
+0,     282150,     282150,        0,   535680, 0x9a4ad464
 1,     150556,     150556,     1568,     6272, 0xbc0fc725
diff --git a/tests/ref/fate/adpcm-ea-tqi b/tests/ref/fate/adpcm-ea-tqi
index fc6fe14..9f09003 100644
--- a/tests/ref/fate/adpcm-ea-tqi
+++ b/tests/ref/fate/adpcm-ea-tqi
@@ -1,53 +1,53 @@
-#tb 0: 1/15
+#tb 0: 1/90000
 #tb 1: 1/22050
-0,          0,          0,        1,   115200, 0x375ec573
+0,          0,          0,        0,   115200, 0x375ec573
 1,          0,          0,     1484,     5936, 0x00000000
-0,          1,          1,        1,   115200, 0x375ec573
+0,       6000,       6000,        0,   115200, 0x375ec573
 1,       1484,       1484,     1456,     5824, 0x00000000
-0,          2,          2,        1,   115200, 0x375ec573
+0,      12000,      12000,        0,   115200, 0x375ec573
 1,       2940,       2940,     1484,     5936, 0x00000000
-0,          3,          3,        1,   115200, 0x375ec573
+0,      18000,      18000,        0,   115200, 0x375ec573
 1,       4424,       4424,     1456,     5824, 0x00000000
-0,          4,          4,        1,   115200, 0x375ec573
+0,      24000,      24000,        0,   115200, 0x375ec573
 1,       5880,       5880,     1484,     5936, 0x00000000
-0,          5,          5,        1,   115200, 0x375ec573
+0,      30000,      30000,        0,   115200, 0x375ec573
 1,       7364,       7364,     1456,     5824, 0x00000000
-0,          6,          6,        1,   115200, 0x375ec573
+0,      36000,      36000,        0,   115200, 0x375ec573
 1,       8820,       8820,     1484,     5936, 0x00000000
-0,          7,          7,        1,   115200, 0x375ec573
+0,      42000,      42000,        0,   115200, 0x375ec573
 1,      10304,      10304,     1456,     5824, 0x0f06f5bb
-0,          8,          8,        1,   115200, 0x0b4d31bf
+0,      48000,      48000,        0,   115200, 0x0b4d31bf
 1,      11760,      11760,     1484,     5936, 0xb0dbfc46
-0,          9,          9,        1,   115200, 0xdd724598
+0,      54000,      54000,        0,   115200, 0xdd724598
 1,      13244,      13244,     1456,     5824, 0x9daa9f9c
-0,         10,         10,        1,   115200, 0xc3077e75
+0,      60000,      60000,        0,   115200, 0xc3077e75
 1,      14700,      14700,     1484,     5936, 0x61400d2f
-0,         11,         11,        1,   115200, 0xbf70778a
+0,      66000,      66000,        0,   115200, 0xbf70778a
 1,      16184,      16184,     1456,     5824, 0x34a5b0e3
-0,         12,         12,        1,   115200, 0x117eb766
+0,      72000,      72000,        0,   115200, 0x117eb766
 1,      17640,      17640,     1484,     5936, 0x6e546f72
-0,         13,         13,        1,   115200, 0x4617fbad
+0,      78000,      78000,        0,   115200, 0x4617fbad
 1,      19124,      19124,     1456,     5824, 0x4f093b35
-0,         14,         14,        1,   115200, 0x5f5b02d2
+0,      84000,      84000,        0,   115200, 0x5f5b02d2
 1,      20580,      20580,     1484,     5936, 0x95b5b599
-0,         15,         15,        1,   115200, 0x2a9c5325
+0,      90000,      90000,        0,   115200, 0x2a9c5325
 1,      22064,      22064,     1456,     5824, 0x75e15e60
-0,         16,         16,        1,   115200, 0x14a89e2a
+0,      96000,      96000,        0,   115200, 0x14a89e2a
 1,      23520,      23520,     1484,     5936, 0xd1077d39
-0,         17,         17,        1,   115200, 0xe69aa994
+0,     102000,     102000,        0,   115200, 0xe69aa994
 1,      25004,      25004,     1456,     5824, 0x956e21ca
-0,         18,         18,        1,   115200, 0xfbacf589
+0,     108000,     108000,        0,   115200, 0xfbacf589
 1,      26460,      26460,     1484,     5936, 0x33bac234
-0,         19,         19,        1,   115200, 0x1d714c6e
+0,     114000,     114000,        0,   115200, 0x1d714c6e
 1,      27944,      27944,     1456,     5824, 0x5df37824
-0,         20,         20,        1,   115200, 0x6eff66cb
+0,     120000,     120000,        0,   115200, 0x6eff66cb
 1,      29400,      29400,     1484,     5936, 0xc174af24
-0,         21,         21,        1,   115200, 0xee21c1cb
+0,     126000,     126000,        0,   115200, 0xee21c1cb
 1,      30884,      30884,     1456,     5824, 0xe5dc2159
-0,         22,         22,        1,   115200, 0xce714ada
+0,     132000,     132000,        0,   115200, 0xce714ada
 1,      32340,      32340,     1484,     5936, 0x63ffc8b1
-0,         23,         23,        1,   115200, 0xf89d56c3
+0,     138000,     138000,        0,   115200, 0xf89d56c3
 1,      33824,      33824,     1456,     5824, 0xefe4c365
-0,         24,         24,        1,   115200, 0x65fd5e60
+0,     144000,     144000,        0,   115200, 0x65fd5e60
 1,      35280,      35280,     1484,     5936, 0x2174304d
-0,         25,         25,        1,   115200, 0x0c256424
+0,     150000,     150000,        0,   115200, 0x0c256424
diff --git a/tests/ref/fate/bethsoft-vid b/tests/ref/fate/bethsoft-vid
index 394d7e9..a4c049e 100644
--- a/tests/ref/fate/bethsoft-vid
+++ b/tests/ref/fate/bethsoft-vid
@@ -1,144 +1,144 @@
-#tb 0: 12/553
+#tb 0: 185/11111
 #tb 1: 1/11111
 0,          0,          0,        1,   192000, 0x00000000
 1,          0,          0,      740,     1480, 0x00000000
-0,          3,          3,        1,   192000, 0x01a6cf45
+0,          4,          4,        1,   192000, 0x01a6cf45
 1,        740,        740,      740,     1480, 0x20a92bd4
-0,          6,          6,        1,   192000, 0xd07d57e9
+0,          8,          8,        1,   192000, 0xd07d57e9
 1,       1480,       1480,      925,     1850, 0xa9e48a74
+0,         13,         13,        1,   192000, 0x3cb1dff5
 1,       2405,       2405,      740,     1480, 0x23ecd018
-0,         10,         10,        1,   192000, 0x3cb1dff5
-0,         13,         13,        1,   192000, 0xd1aaa8fb
+0,         17,         17,        1,   192000, 0xd1aaa8fb
 1,       3145,       3145,      740,     1480, 0x206bb915
-0,         16,         16,        1,   192000, 0x75f526cd
+0,         21,         21,        1,   192000, 0x75f526cd
 1,       3885,       3885,      925,     1850, 0xb0e10e75
+0,         26,         26,        1,   192000, 0x0f673577
 1,       4810,       4810,      740,     1480, 0x8d9baedd
-0,         20,         20,        1,   192000, 0x0f673577
-0,         23,         23,        1,   192000, 0x897b6781
+0,         30,         30,        1,   192000, 0x897b6781
 1,       5550,       5550,      740,     1480, 0xb802aae1
-0,         26,         26,        1,   192000, 0x81e6b7f7
+0,         34,         34,        1,   192000, 0x81e6b7f7
 1,       6290,       6290,      740,     1480, 0xecd7b5cc
-0,         29,         29,        1,   192000, 0x1f45ce61
+0,         38,         38,        1,   192000, 0x1f45ce61
 1,       7030,       7030,      925,     1850, 0x16861355
+0,         43,         43,        1,   192000, 0x5a0772a6
 1,       7955,       7955,      740,     1480, 0xa51690bd
-0,         33,         33,        1,   192000, 0x5a0772a6
-0,         36,         36,        1,   192000, 0xf78732b3
+0,         47,         47,        1,   192000, 0xf78732b3
 1,       8695,       8695,      740,     1480, 0xdd0b90d1
-0,         39,         39,        1,   192000, 0x8427f9e5
+0,         51,         51,        1,   192000, 0x8427f9e5
 1,       9435,       9435,      925,     1850, 0x3ce6e333
+0,         56,         56,        1,   192000, 0x40473f11
 1,      10360,      10360,      740,     1480, 0xf8ce8ea3
-0,         43,         43,        1,   192000, 0x40473f11
-0,         46,         46,        1,   192000, 0x173ceebe
+0,         60,         60,        1,   192000, 0x173ceebe
 1,      11100,      11100,      740,     1480, 0xda4597af
-0,         49,         49,        1,   192000, 0x136b9516
+0,         64,         64,        1,   192000, 0x136b9516
 1,      11840,      11840,      740,     1480, 0x918f7cb3
-0,         52,         52,        1,   192000, 0x138d11ae
+0,         68,         68,        1,   192000, 0x138d11ae
 1,      12580,      12580,      925,     1850, 0xca6edb15
-0,         56,         56,        1,   192000, 0x063dbff3
+0,         73,         73,        1,   192000, 0x063dbff3
 1,      13505,      13505,      740,     1480, 0xba279597
-0,         59,         59,        1,   192000, 0x5280852f
+0,         77,         77,        1,   192000, 0x5280852f
 1,      14245,      14245,      740,     1480, 0xc5a38a9e
-0,         62,         62,        1,   192000, 0x99943a8f
+0,         81,         81,        1,   192000, 0x99943a8f
 1,      14985,      14985,      925,     1850, 0x8147eef5
+0,         86,         86,        1,   192000, 0x0330a728
 1,      15910,      15910,      740,     1480, 0xce2c7cb5
-0,         66,         66,        1,   192000, 0x0330a728
-0,         69,         69,        1,   192000, 0x5d35467d
+0,         90,         90,        1,   192000, 0x5d35467d
 1,      16650,      16650,      740,     1480, 0x4282819f
-0,         72,         72,        1,   192000, 0xfd436343
+0,         94,         94,        1,   192000, 0xfd436343
 1,      17390,      17390,      740,     1480, 0xbdbb8da6
-0,         75,         75,        1,   192000, 0xc323fcfe
+0,         98,         98,        1,   192000, 0xc323fcfe
 1,      18130,      18130,      925,     1850, 0xdbbeea10
-0,         79,         79,        1,   192000, 0x2a1530a0
+0,        103,        103,        1,   192000, 0x2a1530a0
 1,      19055,      19055,      740,     1480, 0xbe6a77c2
-0,         82,         82,        1,   192000, 0xbd43bb60
+0,        107,        107,        1,   192000, 0xbd43bb60
 1,      19795,      19795,      740,     1480, 0xa85c75b2
-0,         85,         85,        1,   192000, 0xa47f5eab
+0,        111,        111,        1,   192000, 0xa47f5eab
 1,      20535,      20535,      925,     1850, 0xa45bde21
-0,         89,         89,        1,   192000, 0xff17f5f7
+0,        116,        116,        1,   192000, 0xff17f5f7
 1,      21460,      21460,      740,     1480, 0x84aa7895
-0,         92,         92,        1,   192000, 0xb4140b55
+0,        120,        120,        1,   192000, 0xb4140b55
 1,      22200,      22200,      740,     1480, 0x147f7d9f
-0,         95,         95,        1,   192000, 0xb8782cc4
+0,        124,        124,        1,   192000, 0xb8782cc4
 1,      22940,      22940,      740,     1480, 0xc8e77b85
-0,         98,         98,        1,   192000, 0x92975b8b
+0,        128,        128,        1,   192000, 0x92975b8b
 1,      23680,      23680,      925,     1850, 0x10d4d81b
-0,        102,        102,        1,   192000, 0xf42a64d6
+0,        133,        133,        1,   192000, 0xf42a64d6
 1,      24605,      24605,      740,     1480, 0xb4ae8bb1
-0,        105,        105,        1,   192000, 0x2cc7077d
+0,        137,        137,        1,   192000, 0x2cc7077d
 1,      25345,      25345,      740,     1480, 0x3ef782a5
-0,        108,        108,        1,   192000, 0x00080cc8
+0,        141,        141,        1,   192000, 0x00080cc8
 1,      26085,      26085,      925,     1850, 0xdeebda14
-0,        112,        112,        1,   192000, 0x584b48f3
+0,        146,        146,        1,   192000, 0x584b48f3
 1,      27010,      27010,      740,     1480, 0x4c7e7bbb
-0,        115,        115,        1,   192000, 0xd68f57da
+0,        150,        150,        1,   192000, 0xd68f57da
 1,      27750,      27750,      740,     1480, 0x0e0e9198
-0,        118,        118,        1,   192000, 0x60158422
+0,        154,        154,        1,   192000, 0x60158422
 1,      28490,      28490,      740,     1480, 0x5c1f819f
-0,        121,        121,        1,   192000, 0xd7fb89e6
+0,        158,        158,        1,   192000, 0xd7fb89e6
 1,      29230,      29230,      925,     1850, 0x0e4cf6ff
-0,        125,        125,        1,   192000, 0x97f1c76a
+0,        163,        163,        1,   192000, 0x97f1c76a
 1,      30155,      30155,      740,     1480, 0x374388a7
-0,        128,        128,        1,   192000, 0x46c4bb9e
+0,        167,        167,        1,   192000, 0x46c4bb9e
 1,      30895,      30895,      740,     1480, 0xed729389
-0,        131,        131,        1,   192000, 0xd32f9b66
+0,        171,        171,        1,   192000, 0xd32f9b66
 1,      31635,      31635,      925,     1850, 0xe0f1e43f
-0,        135,        135,        1,   192000, 0x74f43886
+0,        176,        176,        1,   192000, 0x74f43886
 1,      32560,      32560,      740,     1480, 0x3b27839a
-0,        138,        138,        1,   192000, 0x3c4e47df
+0,        180,        180,        1,   192000, 0x3c4e47df
 1,      33300,      33300,      740,     1480, 0xe6287e94
-0,        141,        141,        1,   192000, 0xb5ac0a58
+0,        184,        184,        1,   192000, 0xb5ac0a58
 1,      34040,      34040,      740,     1480, 0x7e0d84b5
-0,        144,        144,        1,   192000, 0xcc572b31
+0,        188,        188,        1,   192000, 0xcc572b31
 1,      34780,      34780,      925,     1850, 0xf08bebf7
-0,        148,        148,        1,   192000, 0xb1739d26
+0,        193,        193,        1,   192000, 0xb1739d26
 1,      35705,      35705,      740,     1480, 0x94cf73a0
-0,        151,        151,        1,   192000, 0x73da5473
+0,        197,        197,        1,   192000, 0x73da5473
 1,      36445,      36445,      740,     1480, 0xfef384ae
-0,        154,        154,        1,   192000, 0x5f79f5bc
+0,        201,        201,        1,   192000, 0x5f79f5bc
 1,      37185,      37185,      925,     1850, 0x3b93e0f7
-0,        158,        158,        1,   192000, 0x0affc0a0
+0,        206,        206,        1,   192000, 0x0affc0a0
 1,      38110,      38110,      740,     1480, 0x28d27bae
-0,        161,        161,        1,   192000, 0x2b4d5c1c
+0,        210,        210,        1,   192000, 0x2b4d5c1c
 1,      38850,      38850,      740,     1480, 0x94d57da5
-0,        164,        164,        1,   192000, 0x309b41bc
+0,        214,        214,        1,   192000, 0x309b41bc
 1,      39590,      39590,      740,     1480, 0xc9327db5
-0,        167,        167,        1,   192000, 0xd42b6424
+0,        218,        218,        1,   192000, 0xd42b6424
 1,      40330,      40330,      925,     1850, 0xe781f604
-0,        171,        171,        1,   192000, 0x4795c948
+0,        223,        223,        1,   192000, 0x4795c948
 1,      41255,      41255,      740,     1480, 0x752f8c5b
-0,        174,        174,        1,   192000, 0xbc1a3a8b
+0,        227,        227,        1,   192000, 0xbc1a3a8b
 1,      41995,      41995,      740,     1480, 0x30068032
-0,        177,        177,        1,   192000, 0x16529c5b
+0,        231,        231,        1,   192000, 0x16529c5b
 1,      42735,      42735,      925,     1850, 0x7895023e
-0,        181,        181,        1,   192000, 0x6b1b31ba
+0,        236,        236,        1,   192000, 0x6b1b31ba
 1,      43660,      43660,      740,     1480, 0xa1e0a6e1
-0,        184,        184,        1,   192000, 0x569182ce
+0,        240,        240,        1,   192000, 0x569182ce
 1,      44400,      44400,      740,     1480, 0x6af4b500
-0,        187,        187,        1,   192000, 0xe6ea9866
+0,        244,        244,        1,   192000, 0xe6ea9866
 1,      45140,      45140,      740,     1480, 0xc26ea4c7
-0,        190,        190,        1,   192000, 0x102c6076
+0,        248,        248,        1,   192000, 0x102c6076
 1,      45880,      45880,      925,     1850, 0x16a72419
-0,        194,        194,        1,   192000, 0xb29f527a
+0,        253,        253,        1,   192000, 0xb29f527a
 1,      46805,      46805,      740,     1480, 0x1794aacc
-0,        197,        197,        1,   192000, 0x040b4eee
+0,        257,        257,        1,   192000, 0x040b4eee
 1,      47545,      47545,      740,     1480, 0x2ecad8d0
-0,        200,        200,        1,   192000, 0x92574f4a
+0,        261,        261,        1,   192000, 0x92574f4a
 1,      48285,      48285,      925,     1850, 0x2e645e07
-0,        204,        204,        1,   192000, 0x1e8acdce
+0,        266,        266,        1,   192000, 0x1e8acdce
 1,      49210,      49210,      740,     1480, 0x1c54dfe7
-0,        207,        207,        1,   192000, 0x1becf516
+0,        270,        270,        1,   192000, 0x1becf516
 1,      49950,      49950,      740,     1480, 0xbd35feec
-0,        210,        210,        1,   192000, 0xb62e9776
+0,        274,        274,        1,   192000, 0xb62e9776
 1,      50690,      50690,      740,     1480, 0x419403d6
-0,        213,        213,        1,   192000, 0xed37a08e
+0,        278,        278,        1,   192000, 0xed37a08e
 1,      51430,      51430,      925,     1850, 0x78699d2a
-0,        217,        217,        1,   192000, 0xc0719912
+0,        283,        283,        1,   192000, 0xc0719912
 1,      52355,      52355,      740,     1480, 0x74ec68e0
-0,        220,        220,        1,   192000, 0x24cf7a7e
+0,        287,        287,        1,   192000, 0x24cf7a7e
 1,      53095,      53095,      740,     1480, 0x76af64d9
-0,        223,        223,        1,   192000, 0x0307f62f
+0,        291,        291,        1,   192000, 0x0307f62f
 1,      53835,      53835,      925,     1850, 0x5a303d1a
-0,        227,        227,        1,   192000, 0x79b7417b
+0,        296,        296,        1,   192000, 0x79b7417b
 1,      54760,      54760,      537,     1074, 0x142ce7ba
 1,      55297,      55297,      925,     1850, 0x7ff682f7
-0,        230,        230,        1,   192000, 0x468d8db4
+0,        300,        300,        1,   192000, 0x468d8db4
diff --git a/tests/ref/fate/cdxl-ham6 b/tests/ref/fate/cdxl-ham6
index 6426d45..25886b2 100644
--- a/tests/ref/fate/cdxl-ham6
+++ b/tests/ref/fate/cdxl-ham6
@@ -1,17 +1,17 @@
-#tb 0: 52/525
-0,          0,          0,        1,    57600, 0x87887a7b
-0,          1,          1,        1,    57600, 0x10c301d2
-0,          2,          2,        1,    57600, 0xd1a6f910
-0,          3,          3,        1,    57600, 0x20242bb9
-0,          4,          4,        1,    57600, 0xae33cb7f
-0,          5,          5,        1,    57600, 0x501b82c8
-0,          6,          6,        1,    57600, 0x84199043
-0,          7,          7,        1,    57600, 0x946a6dbb
-0,          8,          8,        1,    57600, 0xeacea671
-0,          9,          9,        1,    57600, 0x77b8723f
-0,         10,         10,        1,    57600, 0x371cdb09
-0,         11,         11,        1,    57600, 0xa16ef5ee
-0,         12,         12,        1,    57600, 0xcb6abd9e
-0,         13,         13,        1,    57600, 0xb73e800f
-0,         14,         14,        1,    57600, 0x368bd93e
-0,         15,         15,        1,    57600, 0xcde72dc5
+#tb 0: 1/11025
+0,          0,          0,        0,    57600, 0x87887a7b
+0,       1092,       1092,        0,    57600, 0x10c301d2
+0,       2184,       2184,        0,    57600, 0xd1a6f910
+0,       3276,       3276,        0,    57600, 0x20242bb9
+0,       4368,       4368,        0,    57600, 0xae33cb7f
+0,       5460,       5460,        0,    57600, 0x501b82c8
+0,       6552,       6552,        0,    57600, 0x84199043
+0,       7644,       7644,        0,    57600, 0x946a6dbb
+0,       8736,       8736,        0,    57600, 0xeacea671
+0,       9828,       9828,        0,    57600, 0x77b8723f
+0,      10920,      10920,        0,    57600, 0x371cdb09
+0,      12012,      12012,        0,    57600, 0xa16ef5ee
+0,      13104,      13104,        0,    57600, 0xcb6abd9e
+0,      14196,      14196,        0,    57600, 0xb73e800f
+0,      15288,      15288,        0,    57600, 0x368bd93e
+0,      16380,      16380,        0,    57600, 0xcde72dc5
diff --git a/tests/ref/fate/cdxl-ham8 b/tests/ref/fate/cdxl-ham8
index 269f1f3..356ad1b 100644
--- a/tests/ref/fate/cdxl-ham8
+++ b/tests/ref/fate/cdxl-ham8
@@ -1,2 +1,2 @@
-#tb 0: 3/158
-0,          0,          0,        1,    67584, 0xce0cade5
+#tb 0: 1/11025
+0,          0,          0,        0,    67584, 0xce0cade5
diff --git a/tests/ref/fate/cdxl-pal8 b/tests/ref/fate/cdxl-pal8
index 82d4d63..f5c319a 100644
--- a/tests/ref/fate/cdxl-pal8
+++ b/tests/ref/fate/cdxl-pal8
@@ -1,12 +1,12 @@
-#tb 0: 12/601
-0,          0,          0,        1,    67584, 0x5eae629b
-0,          1,          1,        1,    67584, 0x32591227
-0,          2,          2,        1,    67584, 0x4e4424c7
-0,          3,          3,        1,    67584, 0x70db0134
-0,          4,          4,        1,    67584, 0x3550ed0b
-0,          5,          5,        1,    67584, 0x86fe3eef
-0,          6,          6,        1,    67584, 0x3414bb33
-0,          7,          7,        1,    67584, 0x667bfb91
-0,          8,          8,        1,    67584, 0x6e1a4ccb
-0,          9,          9,        1,    67584, 0xf723f9ae
-0,         10,         10,        1,    67584, 0x88481d5d
+#tb 0: 1/11025
+0,          0,          0,        0,    67584, 0x5eae629b
+0,        220,        220,        0,    67584, 0x32591227
+0,        440,        440,        0,    67584, 0x4e4424c7
+0,        660,        660,        0,    67584, 0x70db0134
+0,        880,        880,        0,    67584, 0x3550ed0b
+0,       1100,       1100,        0,    67584, 0x86fe3eef
+0,       1320,       1320,        0,    67584, 0x3414bb33
+0,       1540,       1540,        0,    67584, 0x667bfb91
+0,       1760,       1760,        0,    67584, 0x6e1a4ccb
+0,       1980,       1980,        0,    67584, 0xf723f9ae
+0,       2200,       2200,        0,    67584, 0x88481d5d
diff --git a/tests/ref/fate/cdxl-pal8-small b/tests/ref/fate/cdxl-pal8-small
index f7a1a46..d285e9a 100644
--- a/tests/ref/fate/cdxl-pal8-small
+++ b/tests/ref/fate/cdxl-pal8-small
@@ -1,47 +1,47 @@
-#tb 0: 368/11025
-0,          0,          0,        1,    30720, 0x0d552cfd
-0,          1,          1,        1,    30720, 0x3cf93291
-0,          2,          2,        1,    30720, 0xe45b2868
-0,          3,          3,        1,    30720, 0xb5df289b
-0,          4,          4,        1,    30720, 0x2562259e
-0,          5,          5,        1,    30720, 0xbf171878
-0,          6,          6,        1,    30720, 0x695b1d73
-0,          7,          7,        1,    30720, 0x89ef1614
-0,          8,          8,        1,    30720, 0xe12a1dd9
-0,          9,          9,        1,    30720, 0x49622ffa
-0,         10,         10,        1,    30720, 0xd6832703
-0,         11,         11,        1,    30720, 0xec1d0cb7
-0,         12,         12,        1,    30720, 0x8bee0525
-0,         13,         13,        1,    30720, 0x1e0cf0c4
-0,         14,         14,        1,    30720, 0xf83fd9db
-0,         15,         15,        1,    30720, 0xffb0d6ab
-0,         16,         16,        1,    30720, 0xe37fe239
-0,         17,         17,        1,    30720, 0x74b0f856
-0,         18,         18,        1,    30720, 0x9c88d3e1
-0,         19,         19,        1,    30720, 0x714db368
-0,         20,         20,        1,    30720, 0x6c8e8860
-0,         21,         21,        1,    30720, 0x804968e6
-0,         22,         22,        1,    30720, 0x7ac56ae4
-0,         23,         23,        1,    30720, 0xffd85cbf
-0,         24,         24,        1,    30720, 0x1f8455f9
-0,         25,         25,        1,    30720, 0x3ae65296
-0,         26,         26,        1,    30720, 0x9e544ecd
-0,         27,         27,        1,    30720, 0x35678e5a
-0,         28,         28,        1,    30720, 0x04bae866
-0,         29,         29,        1,    30720, 0xb126ed94
-0,         30,         30,        1,    30720, 0x1720efc5
-0,         31,         31,        1,    30720, 0x4c1b01c2
-0,         32,         32,        1,    30720, 0xd0a1e866
-0,         33,         33,        1,    30720, 0x0d330789
-0,         34,         34,        1,    30720, 0xf5ac08bb
-0,         35,         35,        1,    30720, 0x9abe0d83
-0,         36,         36,        1,    30720, 0xa44c02f4
-0,         37,         37,        1,    30720, 0xdc4cc688
-0,         38,         38,        1,    30720, 0x22eef3c1
-0,         39,         39,        1,    30720, 0xcfbc0d1d
-0,         40,         40,        1,    30720, 0x7104ea31
-0,         41,         41,        1,    30720, 0x80daecfb
-0,         42,         42,        1,    30720, 0xe1bab995
-0,         43,         43,        1,    30720, 0x43f4b896
-0,         44,         44,        1,    30720, 0xa0d2bf5c
-0,         45,         45,        1,    30720, 0x3556a114
+#tb 0: 1/11025
+0,          0,          0,        0,    30720, 0x0d552cfd
+0,        368,        368,        0,    30720, 0x3cf93291
+0,        736,        736,        0,    30720, 0xe45b2868
+0,       1104,       1104,        0,    30720, 0xb5df289b
+0,       1472,       1472,        0,    30720, 0x2562259e
+0,       1840,       1840,        0,    30720, 0xbf171878
+0,       2208,       2208,        0,    30720, 0x695b1d73
+0,       2576,       2576,        0,    30720, 0x89ef1614
+0,       2944,       2944,        0,    30720, 0xe12a1dd9
+0,       3312,       3312,        0,    30720, 0x49622ffa
+0,       3680,       3680,        0,    30720, 0xd6832703
+0,       4048,       4048,        0,    30720, 0xec1d0cb7
+0,       4416,       4416,        0,    30720, 0x8bee0525
+0,       4784,       4784,        0,    30720, 0x1e0cf0c4
+0,       5152,       5152,        0,    30720, 0xf83fd9db
+0,       5520,       5520,        0,    30720, 0xffb0d6ab
+0,       5888,       5888,        0,    30720, 0xe37fe239
+0,       6256,       6256,        0,    30720, 0x74b0f856
+0,       6624,       6624,        0,    30720, 0x9c88d3e1
+0,       6992,       6992,        0,    30720, 0x714db368
+0,       7360,       7360,        0,    30720, 0x6c8e8860
+0,       7728,       7728,        0,    30720, 0x804968e6
+0,       8096,       8096,        0,    30720, 0x7ac56ae4
+0,       8464,       8464,        0,    30720, 0xffd85cbf
+0,       8832,       8832,        0,    30720, 0x1f8455f9
+0,       9200,       9200,        0,    30720, 0x3ae65296
+0,       9568,       9568,        0,    30720, 0x9e544ecd
+0,       9936,       9936,        0,    30720, 0x35678e5a
+0,      10304,      10304,        0,    30720, 0x04bae866
+0,      10672,      10672,        0,    30720, 0xb126ed94
+0,      11040,      11040,        0,    30720, 0x1720efc5
+0,      11408,      11408,        0,    30720, 0x4c1b01c2
+0,      11776,      11776,        0,    30720, 0xd0a1e866
+0,      12144,      12144,        0,    30720, 0x0d330789
+0,      12512,      12512,        0,    30720, 0xf5ac08bb
+0,      12880,      12880,        0,    30720, 0x9abe0d83
+0,      13248,      13248,        0,    30720, 0xa44c02f4
+0,      13616,      13616,        0,    30720, 0xdc4cc688
+0,      13984,      13984,        0,    30720, 0x22eef3c1
+0,      14352,      14352,        0,    30720, 0xcfbc0d1d
+0,      14720,      14720,        0,    30720, 0x7104ea31
+0,      15088,      15088,        0,    30720, 0x80daecfb
+0,      15456,      15456,        0,    30720, 0xe1bab995
+0,      15824,      15824,        0,    30720, 0x43f4b896
+0,      16192,      16192,        0,    30720, 0xa0d2bf5c
+0,      16560,      16560,        0,    30720, 0x3556a114
diff --git a/tests/ref/fate/creatureshock-avs b/tests/ref/fate/creatureshock-avs
index 931fe18..979baf6 100644
--- a/tests/ref/fate/creatureshock-avs
+++ b/tests/ref/fate/creatureshock-avs
@@ -1,94 +1,94 @@
-#tb 0: 1/15
+#tb 0: 1/90000
 #tb 1: 1/22222
-0,          0,          0,        1,   188892, 0xcb5be3dd
+0,          0,          0,        0,   188892, 0xcb5be3dd
 1,          0,          0,     8186,    16372, 0xfaaab59d
-0,          1,          1,        1,   188892, 0x0f313ebc
-0,          2,          2,        1,   188892, 0xc0da25cc
-0,          3,          3,        1,   188892, 0xad6e1d44
-0,          4,          4,        1,   188892, 0xb1103b40
-0,          5,          5,        1,   188892, 0xae033450
+0,       6000,       6000,        0,   188892, 0x0f313ebc
+0,      12000,      12000,        0,   188892, 0xc0da25cc
+0,      18000,      18000,        0,   188892, 0xad6e1d44
+0,      24000,      24000,        0,   188892, 0xb1103b40
+0,      30000,      30000,        0,   188892, 0xae033450
 1,       8186,       8186,     2014,     4028, 0xc2daed72
-0,          6,          6,        1,   188892, 0xb31f03b4
+0,      36000,      36000,        0,   188892, 0xb31f03b4
 1,      10200,      10200,     2743,     5486, 0xf7fd794d
-0,          7,          7,        1,   188892, 0xacb2d3f9
-0,          8,          8,        1,   188892, 0x7d77ecbd
+0,      42000,      42000,        0,   188892, 0xacb2d3f9
+0,      48000,      48000,        0,   188892, 0x7d77ecbd
 1,      12943,      12943,     2895,     5790, 0xfd5a369f
-0,          9,          9,        1,   188892, 0x7faa2f6c
-0,         10,         10,        1,   188892, 0x28f4fdf1
+0,      54000,      54000,        0,   188892, 0x7faa2f6c
+0,      60000,      60000,        0,   188892, 0x28f4fdf1
 1,      15838,      15838,      534,     1068, 0x0b602cd0
-0,         11,         11,        1,   188892, 0x4b53f3b9
+0,      66000,      66000,        0,   188892, 0x4b53f3b9
 1,      16372,      16372,     2454,     4908, 0xfe870aad
-0,         12,         12,        1,   188892, 0x1f09bb29
+0,      72000,      72000,        0,   188892, 0x1f09bb29
 1,      18826,      18826,     3031,     6062, 0x8a4d6e0f
-0,         13,         13,        1,   188892, 0x3afcc11d
-0,         14,         14,        1,   188892, 0x6b918e49
+0,      78000,      78000,        0,   188892, 0x3afcc11d
+0,      84000,      84000,        0,   188892, 0x6b918e49
 1,      21857,      21857,     2701,     5402, 0x71fd352f
-0,         15,         15,        1,   188892, 0x9630a04d
-0,         16,         16,        1,   188892, 0x9381b4c1
+0,      90000,      90000,        0,   188892, 0x9630a04d
+0,      96000,      96000,        0,   188892, 0x9381b4c1
 1,      24558,      24558,      272,      544, 0xeb766d34
 1,      24830,      24830,     2953,     5906, 0x47ac7e08
-0,         17,         17,        1,   188892, 0xa7dea7e5
-0,         18,         18,        1,   188892, 0xd277c41d
+0,     102000,     102000,        0,   188892, 0xa7dea7e5
+0,     108000,     108000,        0,   188892, 0xd277c41d
 1,      27783,      27783,     2958,     5916, 0x0d26eb56
-0,         19,         19,        1,   188892, 0xafa2a6c9
-0,         20,         20,        1,   188892, 0x13a38839
+0,     114000,     114000,        0,   188892, 0xafa2a6c9
+0,     120000,     120000,        0,   188892, 0x13a38839
 1,      30741,      30741,     2003,     4006, 0x9941c71a
-0,         21,         21,        1,   188892, 0xcd5e5a6d
-0,         22,         22,        1,   188892, 0xe7da71e9
+0,     126000,     126000,        0,   188892, 0xcd5e5a6d
+0,     132000,     132000,        0,   188892, 0xe7da71e9
 1,      32744,      32744,     1050,     2100, 0xc9a2ee36
 1,      33794,      33794,     2947,     5894, 0xd2ba4eaa
-0,         23,         23,        1,   188892, 0x06928add
-0,         24,         24,        1,   188892, 0x4a108eb9
+0,     138000,     138000,        0,   188892, 0x06928add
+0,     144000,     144000,        0,   188892, 0x4a108eb9
 1,      36741,      36741,     3045,     6090, 0xf43e73d0
-0,         25,         25,        1,   188892, 0xea2598f5
-0,         26,         26,        1,   188892, 0x17ed6839
+0,     150000,     150000,        0,   188892, 0xea2598f5
+0,     156000,     156000,        0,   188892, 0x17ed6839
 1,      39786,      39786,     1144,     2288, 0x5a8b7aa0
-0,         27,         27,        1,   188892, 0x9de6ab65
+0,     162000,     162000,        0,   188892, 0x9de6ab65
 1,      40930,      40930,     1925,     3850, 0x7f66eb2c
-0,         28,         28,        1,   188892, 0xb4ee326f
+0,     168000,     168000,        0,   188892, 0xb4ee326f
 1,      42855,      42855,     2898,     5796, 0xc5cf3ee8
-0,         29,         29,        1,   188892, 0x3f85095b
-0,         30,         30,        1,   188892, 0xaab7e331
+0,     174000,     174000,        0,   188892, 0x3f85095b
+0,     180000,     180000,        0,   188892, 0xaab7e331
 1,      45753,      45753,     3021,     6042, 0xed80136d
-0,         31,         31,        1,   188892, 0xc2a079e1
-0,         32,         32,        1,   188892, 0x612080c2
+0,     186000,     186000,        0,   188892, 0xc2a079e1
+0,     192000,     192000,        0,   188892, 0x612080c2
 1,      48774,      48774,      342,      684, 0xc42bd137
-0,         33,         33,        1,   188892, 0xa7232d47
+0,     198000,     198000,        0,   188892, 0xa7232d47
 1,      49116,      49116,     2718,     5436, 0xb7f8a6fd
-0,         34,         34,        1,   188892, 0xc053297d
+0,     204000,     204000,        0,   188892, 0xc053297d
 1,      51834,      51834,     3049,     6098, 0xee6354a2
-0,         35,         35,        1,   188892, 0x1ecc3bfe
-0,         36,         36,        1,   188892, 0xcc4ac803
-0,         37,         37,        1,   188892, 0x4b90047b
+0,     210000,     210000,        0,   188892, 0x1ecc3bfe
+0,     216000,     216000,        0,   188892, 0xcc4ac803
+0,     222000,     222000,        0,   188892, 0x4b90047b
 1,      54883,      54883,     2419,     4838, 0x129e61d0
-0,         38,         38,        1,   188892, 0xd863b643
+0,     228000,     228000,        0,   188892, 0xd863b643
 1,      57302,      57302,      537,     1074, 0x9da90634
-0,         39,         39,        1,   188892, 0x93a25fb1
+0,     234000,     234000,        0,   188892, 0x93a25fb1
 1,      57839,      57839,     3042,     6084, 0x8ffed952
-0,         40,         40,        1,   188892, 0xf969e131
-0,         41,         41,        1,   188892, 0x73bd2469
+0,     240000,     240000,        0,   188892, 0xf969e131
+0,     246000,     246000,        0,   188892, 0x73bd2469
 1,      60881,      60881,     3019,     6038, 0xa07b4276
-0,         42,         42,        1,   188892, 0x265a9ce2
-0,         43,         43,        1,   188892, 0xd59ccd39
+0,     252000,     252000,        0,   188892, 0x265a9ce2
+0,     258000,     258000,        0,   188892, 0xd59ccd39
 1,      63900,      63900,     1588,     3176, 0xebef63c1
-0,         44,         44,        1,   188892, 0xe50fc068
+0,     264000,     264000,        0,   188892, 0xe50fc068
 1,      65488,      65488,     1397,     2794, 0xbe1000db
-0,         45,         45,        1,   188892, 0x83113a86
+0,     270000,     270000,        0,   188892, 0x83113a86
 1,      66885,      66885,     3010,     6020, 0xd8e34961
-0,         46,         46,        1,   188892, 0xa0203504
-0,         47,         47,        1,   188892, 0x9e2d518c
+0,     276000,     276000,        0,   188892, 0xa0203504
+0,     282000,     282000,        0,   188892, 0x9e2d518c
 1,      69895,      69895,     3010,     6020, 0xc07cf461
-0,         48,         48,        1,   188892, 0x5f610e66
-0,         49,         49,        1,   188892, 0x9b77f900
+0,     288000,     288000,        0,   188892, 0x5f610e66
+0,     294000,     294000,        0,   188892, 0x9b77f900
 1,      72905,      72905,      769,     1538, 0xc975ae02
 1,      73674,      73674,     2115,     4230, 0x0827111b
-0,         50,         50,        1,   188892, 0xaaf279c2
-0,         51,         51,        1,   188892, 0x4ac97cc2
+0,     300000,     300000,        0,   188892, 0xaaf279c2
+0,     306000,     306000,        0,   188892, 0x4ac97cc2
 1,      75789,      75789,     3042,     6084, 0x2cf0a407
-0,         52,         52,        1,   188892, 0xddd91642
-0,         53,         53,        1,   188892, 0x4f32dcd1
+0,     312000,     312000,        0,   188892, 0xddd91642
+0,     318000,     318000,        0,   188892, 0x4f32dcd1
 1,      78831,      78831,     2914,     5828, 0x12750279
-0,         54,         54,        1,   188892, 0xdc126b42
-0,         55,         55,        1,   188892, 0x00000000
+0,     324000,     324000,        0,   188892, 0xdc126b42
+0,     330000,     330000,        0,   188892, 0x00000000
 1,      81745,      81745,      115,      230, 0xc9c03f3b
 1,      81860,      81860,      384,      768, 0x6137a04d
diff --git a/tests/ref/fate/cscd b/tests/ref/fate/cscd
index 4ad046e..74fe94e 100644
--- a/tests/ref/fate/cscd
+++ b/tests/ref/fate/cscd
@@ -1,207 +1,209 @@
-#tb 0: 12/377
+#tb 0: 1/200
 0,          0,          0,        1,   270000, 0xf90015d8
-0,          1,          1,        1,   270000, 0xf90015d8
-0,          2,          2,        1,   270000, 0xf90015d8
-0,          3,          3,        1,   270000, 0xf90015d8
-0,          4,          4,        1,   270000, 0xf90015d8
-0,          5,          5,        1,   270000, 0xf90015d8
-0,          6,          6,        1,   270000, 0xf90015d8
-0,          7,          7,        1,   270000, 0xf90015d8
-0,          8,          8,        1,   270000, 0xf90015d8
 0,          9,          9,        1,   270000, 0xf90015d8
-0,         10,         10,        1,   270000, 0xf90015d8
-0,         11,         11,        1,   270000, 0xf90015d8
-0,         12,         12,        1,   270000, 0xf90015d8
-0,         13,         13,        1,   270000, 0xf90015d8
 0,         15,         15,        1,   270000, 0xf90015d8
-0,         16,         16,        1,   270000, 0xf90015d8
-0,         17,         17,        1,   270000, 0xf90015d8
-0,         18,         18,        1,   270000, 0xf90015d8
-0,         19,         19,        1,   270000, 0xf90015d8
-0,         20,         20,        1,   270000, 0xf90015d8
-0,         21,         21,        1,   270000, 0xf90015d8
 0,         22,         22,        1,   270000, 0xf90015d8
-0,         23,         23,        1,   270000, 0xf90015d8
-0,         24,         24,        1,   270000, 0xf90015d8
-0,         25,         25,        1,   270000, 0xf90015d8
-0,         26,         26,        1,   270000, 0xf90015d8
-0,         27,         27,        1,   270000, 0xf90015d8
 0,         28,         28,        1,   270000, 0xf90015d8
-0,         29,         29,        1,   270000, 0xf90015d8
-0,         30,         30,        1,   270000, 0xf90015d8
-0,         31,         31,        1,   270000, 0xf90015d8
-0,         32,         32,        1,   270000, 0xf90015d8
-0,         33,         33,        1,   270000, 0xf90015d8
 0,         34,         34,        1,   270000, 0xf90015d8
-0,         35,         35,        1,   270000, 0xf90015d8
-0,         36,         36,        1,   270000, 0xf90015d8
-0,         37,         37,        1,   270000, 0xf90015d8
-0,         38,         38,        1,   270000, 0xf90015d8
-0,         40,         40,        1,   270000, 0x1f9c15d8
-0,         41,         41,        1,   270000, 0x436f15d8
-0,         42,         42,        1,   270000, 0xe90115d8
-0,         43,         43,        1,   270000, 0xe90115d8
-0,         44,         44,        1,   270000, 0x8ea215d8
-0,         45,         45,        1,   270000, 0x424015d8
-0,         47,         47,        1,   270000, 0x0ce315d8
-0,         48,         48,        1,   270000, 0x14bc15d8
-0,         50,         50,        1,   270000, 0x2a9215d8
-0,         51,         51,        1,   270000, 0x233f15d8
-0,         53,         53,        1,   270000, 0x764b15d8
-0,         54,         54,        1,   270000, 0xf76115d8
-0,         56,         56,        1,   270000, 0xbbe015d8
-0,         57,         57,        1,   270000, 0x95af15d8
-0,         59,         59,        1,   270000, 0x324815d8
-0,         60,         60,        1,   270000, 0x311915d8
-0,         62,         62,        1,   270000, 0x090ef191
-0,         63,         63,        1,   270000, 0xd88974dc
-0,         65,         65,        1,   270000, 0xfa7f58df
-0,         66,         66,        1,   270000, 0x78f849c3
-0,         68,         68,        1,   270000, 0xae174892
-0,         69,         69,        1,   270000, 0x9d4e2332
-0,         71,         71,        1,   270000, 0x874b09b4
-0,         72,         72,        1,   270000, 0x4069fed6
-0,         73,         73,        1,   270000, 0x4069fed6
-0,         74,         74,        1,   270000, 0x4069fed6
-0,         75,         75,        1,   270000, 0x4069fed6
-0,         76,         76,        1,   270000, 0x4069fed6
-0,         77,         77,        1,   270000, 0x4069fed6
-0,         78,         78,        1,   270000, 0x4069fed6
-0,         79,         79,        1,   270000, 0x4069fed6
-0,         80,         80,        1,   270000, 0x4069fed6
-0,         81,         81,        1,   270000, 0x4069fed6
-0,         82,         82,        1,   270000, 0x4069fed6
-0,         87,         87,        1,   270000, 0x773db046
-0,         88,         88,        1,   270000, 0x773db046
-0,         89,         89,        1,   270000, 0x773db046
-0,         90,         90,        1,   270000, 0x773db046
-0,         91,         91,        1,   270000, 0x773db046
-0,         92,         92,        1,   270000, 0x773db046
-0,         93,         93,        1,   270000, 0x773db046
-0,         94,         94,        1,   270000, 0x773db046
-0,         95,         95,        1,   270000, 0x773db046
-0,         96,         96,        1,   270000, 0x773db046
-0,         97,         97,        1,   270000, 0x773db046
-0,         98,         98,        1,   270000, 0x773db046
-0,         99,         99,        1,   270000, 0x773db046
-0,        100,        100,        1,   270000, 0x773db046
-0,        101,        101,        1,   270000, 0x773db046
-0,        102,        102,        1,   270000, 0x773db046
-0,        103,        103,        1,   270000, 0x773db046
-0,        104,        104,        1,   270000, 0x17b9aec9
-0,        105,        105,        1,   270000, 0x622fad4c
-0,        107,        107,        1,   270000, 0xdaea3aef
-0,        108,        108,        1,   270000, 0x61bb10e3
-0,        109,        109,        1,   270000, 0xfc37ee0c
-0,        110,        110,        1,   270000, 0x50dbd01e
-0,        112,        112,        1,   270000, 0xcd66c27c
-0,        113,        113,        1,   270000, 0xd13f1e4f
-0,        115,        115,        1,   270000, 0xa4a2dbf5
-0,        116,        116,        1,   270000, 0xf302c9ab
-0,        118,        118,        1,   270000, 0x4479f7fe
-0,        119,        119,        1,   270000, 0x1afe92c8
-0,        121,        121,        1,   270000, 0x3007f4c3
-0,        122,        122,        1,   270000, 0x5834c096
-0,        123,        123,        1,   270000, 0x40109126
-0,        124,        124,        1,   270000, 0x0a7b8882
-0,        126,        126,        1,   270000, 0x15b8635d
-0,        127,        127,        1,   270000, 0xeaa5598e
-0,        128,        128,        1,   270000, 0x0b7b5489
-0,        129,        129,        1,   270000, 0x0b7b5489
-0,        130,        130,        1,   270000, 0x0b7b5489
-0,        131,        131,        1,   270000, 0x0b7b5489
-0,        132,        132,        1,   270000, 0x8f0e6eaa
-0,        133,        133,        1,   270000, 0xc46fc0f2
-0,        134,        134,        1,   270000, 0xadd7e605
-0,        136,        136,        1,   270000, 0x9d23a056
-0,        137,        137,        1,   270000, 0x365afa63
-0,        139,        139,        1,   270000, 0x6ac3bda2
-0,        140,        140,        1,   270000, 0x14f5daf2
-0,        142,        142,        1,   270000, 0x4b3afb6a
-0,        143,        143,        1,   270000, 0x1a3302e3
-0,        144,        144,        1,   270000, 0x1a3302e3
-0,        145,        145,        1,   270000, 0x1a3302e3
-0,        146,        146,        1,   270000, 0x1a3302e3
-0,        147,        147,        1,   270000, 0xc15526e2
-0,        148,        148,        1,   270000, 0x3dd73006
-0,        150,        150,        1,   270000, 0x60abb5bc
-0,        151,        151,        1,   270000, 0xb960c27c
-0,        152,        152,        1,   270000, 0x8fa4c01c
-0,        153,        153,        1,   270000, 0x8fa4c01c
-0,        154,        154,        1,   270000, 0x8fa4c01c
-0,        155,        155,        1,   270000, 0xb20dcc38
-0,        157,        157,        1,   270000, 0x03c6ad3c
-0,        158,        158,        1,   270000, 0xe550b194
-0,        159,        159,        1,   270000, 0xe550b194
-0,        160,        160,        1,   270000, 0xe550b194
-0,        161,        161,        1,   270000, 0xe550b194
-0,        162,        162,        1,   270000, 0xe550b194
-0,        163,        163,        1,   270000, 0xe550b194
-0,        164,        164,        1,   270000, 0xe550b194
-0,        165,        165,        1,   270000, 0xe550b194
-0,        166,        166,        1,   270000, 0xe550b194
-0,        167,        167,        1,   270000, 0xe550b194
-0,        168,        168,        1,   270000, 0xe550b194
-0,        169,        169,        1,   270000, 0xe550b194
-0,        170,        170,        1,   270000, 0xe550b194
-0,        171,        171,        1,   270000, 0xe550b194
-0,        172,        172,        1,   270000, 0x4550a014
-0,        173,        173,        1,   270000, 0xaf639da8
-0,        175,        175,        1,   270000, 0xe4229da8
-0,        176,        176,        1,   270000, 0x315d9da8
-0,        177,        177,        1,   270000, 0x7e899da8
-0,        178,        178,        1,   270000, 0x99b9a8a0
-0,        179,        179,        1,   270000, 0x4588ac2a
-0,        181,        181,        1,   270000, 0x1e79ae6e
-0,        182,        182,        1,   270000, 0xa003cb14
-0,        184,        184,        1,   270000, 0x03ef1bb8
-0,        185,        185,        1,   270000, 0x3b3f30fc
-0,        187,        187,        1,   270000, 0x4dad3525
-0,        188,        188,        1,   270000, 0x5b600c12
-0,        190,        190,        1,   270000, 0x75a1fab3
-0,        191,        191,        1,   270000, 0xc9f7d9ad
-0,        193,        193,        1,   270000, 0x9eaec58d
-0,        194,        194,        1,   270000, 0xb91bc3e8
-0,        196,        196,        1,   270000, 0x77bdbbfb
-0,        197,        197,        1,   270000, 0x77bdbbfb
-0,        198,        198,        1,   270000, 0x77bdbbfb
-0,        199,        199,        1,   270000, 0x77bdbbfb
-0,        200,        200,        1,   270000, 0x77bdbbfb
-0,        201,        201,        1,   270000, 0x77bdbbfb
-0,        202,        202,        1,   270000, 0x3d54eac2
-0,        203,        203,        1,   270000, 0x3d54eac2
-0,        204,        204,        1,   270000, 0x3d54eac2
-0,        205,        205,        1,   270000, 0x3d54eac2
-0,        206,        206,        1,   270000, 0x3d54eac2
-0,        208,        208,        1,   270000, 0x3d54eac2
-0,        209,        209,        1,   270000, 0x3d54eac2
-0,        210,        210,        1,   270000, 0x3d54eac2
-0,        211,        211,        1,   270000, 0x3d54eac2
-0,        212,        212,        1,   270000, 0x3d54eac2
-0,        213,        213,        1,   270000, 0x3d54eac2
-0,        214,        214,        1,   270000, 0x3d54eac2
-0,        215,        215,        1,   270000, 0x3d54eac2
-0,        216,        216,        1,   270000, 0x3d54eac2
-0,        217,        217,        1,   270000, 0x3d54eac2
-0,        218,        218,        1,   270000, 0x3d54eac2
-0,        219,        219,        1,   270000, 0x3d54eac2
-0,        220,        220,        1,   270000, 0x3d54eac2
-0,        222,        222,        1,   270000, 0x5f3609ba
-0,        223,        223,        1,   270000, 0x80921b0c
-0,        224,        224,        1,   270000, 0x80921b0c
-0,        225,        225,        1,   270000, 0x80921b0c
-0,        226,        226,        1,   270000, 0x80921b0c
-0,        227,        227,        1,   270000, 0x80921b0c
-0,        228,        228,        1,   270000, 0x80921b0c
-0,        229,        229,        1,   270000, 0x80921b0c
-0,        230,        230,        1,   270000, 0x80921b0c
-0,        231,        231,        1,   270000, 0x80921b0c
-0,        232,        232,        1,   270000, 0x80921b0c
-0,        233,        233,        1,   270000, 0x80921b0c
-0,        234,        234,        1,   270000, 0x80921b0c
-0,        235,        235,        1,   270000, 0x80921b0c
-0,        236,        236,        1,   270000, 0x80921b0c
-0,        237,        237,        1,   270000, 0x80921b0c
-0,        238,        238,        1,   270000, 0x80921b0c
-0,        239,        239,        1,   270000, 0xf0e626a8
-0,        240,        240,        1,   270000, 0xf0e626a8
+0,         40,         40,        1,   270000, 0xf90015d8
+0,         47,         47,        1,   270000, 0xf90015d8
+0,         53,         53,        1,   270000, 0xf90015d8
+0,         59,         59,        1,   270000, 0xf90015d8
+0,         65,         65,        1,   270000, 0xf90015d8
+0,         72,         72,        1,   270000, 0xf90015d8
+0,         78,         78,        1,   270000, 0xf90015d8
+0,         84,         84,        1,   270000, 0xf90015d8
+0,         93,         93,        1,   270000, 0xf90015d8
+0,        100,        100,        1,   270000, 0xf90015d8
+0,        106,        106,        1,   270000, 0xf90015d8
+0,        112,        112,        1,   270000, 0xf90015d8
+0,        118,        118,        1,   270000, 0xf90015d8
+0,        125,        125,        1,   270000, 0xf90015d8
+0,        131,        131,        1,   270000, 0xf90015d8
+0,        137,        137,        1,   270000, 0xf90015d8
+0,        143,        143,        1,   270000, 0xf90015d8
+0,        150,        150,        1,   270000, 0xf90015d8
+0,        156,        156,        1,   270000, 0xf90015d8
+0,        162,        162,        1,   270000, 0xf90015d8
+0,        168,        168,        1,   270000, 0xf90015d8
+0,        175,        175,        1,   270000, 0xf90015d8
+0,        181,        181,        1,   270000, 0xf90015d8
+0,        187,        187,        1,   270000, 0xf90015d8
+0,        193,        193,        1,   270000, 0xf90015d8
+0,        200,        200,        1,   270000, 0xf90015d8
+0,        206,        206,        1,   270000, 0xf90015d8
+0,        212,        212,        1,   270000, 0xf90015d8
+0,        218,        218,        1,   270000, 0xf90015d8
+0,        225,        225,        1,   270000, 0xf90015d8
+0,        231,        231,        1,   270000, 0xf90015d8
+0,        237,        237,        1,   270000, 0xf90015d8
+0,        243,        243,        1,   270000, 0xf90015d8
+0,        253,        253,        1,   270000, 0x1f9c15d8
+0,        262,        262,        1,   270000, 0x436f15d8
+0,        268,        268,        1,   270000, 0xe90115d8
+0,        275,        275,        1,   270000, 0xe90115d8
+0,        281,        281,        1,   270000, 0x8ea215d8
+0,        290,        290,        1,   270000, 0x424015d8
+0,        300,        300,        1,   270000, 0x0ce315d8
+0,        309,        309,        1,   270000, 0x14bc15d8
+0,        318,        318,        1,   270000, 0x2a9215d8
+0,        328,        328,        1,   270000, 0x233f15d8
+0,        337,        337,        1,   270000, 0x764b15d8
+0,        347,        347,        1,   270000, 0xf76115d8
+0,        356,        356,        1,   270000, 0xbbe015d8
+0,        365,        365,        1,   270000, 0x95af15d8
+0,        375,        375,        1,   270000, 0x324815d8
+0,        384,        384,        1,   270000, 0x311915d8
+0,        393,        393,        1,   270000, 0x090ef191
+0,        403,        403,        1,   270000, 0xd88974dc
+0,        412,        412,        1,   270000, 0xfa7f58df
+0,        422,        422,        1,   270000, 0x78f849c3
+0,        431,        431,        1,   270000, 0xae174892
+0,        440,        440,        1,   270000, 0x9d4e2332
+0,        450,        450,        1,   270000, 0x874b09b4
+0,        459,        459,        1,   270000, 0x4069fed6
+0,        465,        465,        1,   270000, 0x4069fed6
+0,        472,        472,        1,   270000, 0x4069fed6
+0,        478,        478,        1,   270000, 0x4069fed6
+0,        484,        484,        1,   270000, 0x4069fed6
+0,        490,        490,        1,   270000, 0x4069fed6
+0,        500,        500,        1,   270000, 0x4069fed6
+0,        506,        506,        1,   270000, 0x4069fed6
+0,        512,        512,        1,   270000, 0x4069fed6
+0,        518,        518,        1,   270000, 0x4069fed6
+0,        525,        525,        1,   270000, 0x4069fed6
+0,        553,        553,        1,   270000, 0x773db046
+0,        559,        559,        1,   270000, 0x773db046
+0,        565,        565,        1,   270000, 0x773db046
+0,        572,        572,        1,   270000, 0x773db046
+0,        578,        578,        1,   270000, 0x773db046
+0,        584,        584,        1,   270000, 0x773db046
+0,        590,        590,        1,   270000, 0x773db046
+0,        597,        597,        1,   270000, 0x773db046
+0,        603,        603,        1,   270000, 0x773db046
+0,        609,        609,        1,   270000, 0x773db046
+0,        615,        615,        1,   270000, 0x773db046
+0,        622,        622,        1,   270000, 0x773db046
+0,        628,        628,        1,   270000, 0x773db046
+0,        634,        634,        1,   270000, 0x773db046
+0,        640,        640,        1,   270000, 0x773db046
+0,        647,        647,        1,   270000, 0x773db046
+0,        653,        653,        1,   270000, 0x773db046
+0,        662,        662,        1,   270000, 0x17b9aec9
+0,        672,        672,        1,   270000, 0x622fad4c
+0,        681,        681,        1,   270000, 0xdaea3aef
+0,        687,        687,        1,   270000, 0x61bb10e3
+0,        693,        693,        1,   270000, 0xfc37ee0c
+0,        703,        703,        1,   270000, 0x50dbd01e
+0,        712,        712,        1,   270000, 0xcd66c27c
+0,        722,        722,        1,   270000, 0xd13f1e4f
+0,        731,        731,        1,   270000, 0xa4a2dbf5
+0,        740,        740,        1,   270000, 0xf302c9ab
+0,        750,        750,        1,   270000, 0x4479f7fe
+0,        759,        759,        1,   270000, 0x1afe92c8
+0,        768,        768,        1,   270000, 0x3007f4c3
+0,        778,        778,        1,   270000, 0x5834c096
+0,        784,        784,        1,   270000, 0x40109126
+0,        790,        790,        1,   270000, 0x0a7b8882
+0,        800,        800,        1,   270000, 0x15b8635d
+0,        806,        806,        1,   270000, 0xeaa5598e
+0,        812,        812,        1,   270000, 0x0b7b5489
+0,        818,        818,        1,   270000, 0x0b7b5489
+0,        825,        825,        1,   270000, 0x0b7b5489
+0,        831,        831,        1,   270000, 0x0b7b5489
+0,        837,        837,        1,   270000, 0x8f0e6eaa
+0,        847,        847,        1,   270000, 0xc46fc0f2
+0,        856,        856,        1,   270000, 0xadd7e605
+0,        865,        865,        1,   270000, 0x9d23a056
+0,        875,        875,        1,   270000, 0x365afa63
+0,        884,        884,        1,   270000, 0x6ac3bda2
+0,        893,        893,        1,   270000, 0x14f5daf2
+0,        903,        903,        1,   270000, 0x4b3afb6a
+0,        909,        909,        1,   270000, 0x1a3302e3
+0,        915,        915,        1,   270000, 0x1a3302e3
+0,        922,        922,        1,   270000, 0x1a3302e3
+0,        928,        928,        1,   270000, 0x1a3302e3
+0,        934,        934,        1,   270000, 0xc15526e2
+0,        943,        943,        1,   270000, 0x3dd73006
+0,        953,        953,        1,   270000, 0x60abb5bc
+0,        962,        962,        1,   270000, 0xb960c27c
+0,        968,        968,        1,   270000, 0x8fa4c01c
+0,        975,        975,        1,   270000, 0x8fa4c01c
+0,        981,        981,        1,   270000, 0x8fa4c01c
+0,        987,        987,        1,   270000, 0xb20dcc38
+0,        997,        997,        1,   270000, 0x03c6ad3c
+0,       1006,       1006,        1,   270000, 0xe550b194
+0,       1012,       1012,        1,   270000, 0xe550b194
+0,       1018,       1018,        1,   270000, 0xe550b194
+0,       1025,       1025,        1,   270000, 0xe550b194
+0,       1031,       1031,        1,   270000, 0xe550b194
+0,       1037,       1037,        1,   270000, 0xe550b194
+0,       1043,       1043,        1,   270000, 0xe550b194
+0,       1050,       1050,        1,   270000, 0xe550b194
+0,       1056,       1056,        1,   270000, 0xe550b194
+0,       1062,       1062,        1,   270000, 0xe550b194
+0,       1068,       1068,        1,   270000, 0xe550b194
+0,       1075,       1075,        1,   270000, 0xe550b194
+0,       1081,       1081,        1,   270000, 0xe550b194
+0,       1087,       1087,        1,   270000, 0xe550b194
+0,       1093,       1093,        1,   270000, 0x4550a014
+0,       1103,       1103,        1,   270000, 0xaf639da8
+0,       1112,       1112,        1,   270000, 0xe4229da8
+0,       1118,       1118,        1,   270000, 0x315d9da8
+0,       1125,       1125,        1,   270000, 0x7e899da8
+0,       1134,       1134,        1,   270000, 0x99b9a8a0
+0,       1143,       1143,        1,   270000, 0x4588ac2a
+0,       1153,       1153,        1,   270000, 0x1e79ae6e
+0,       1162,       1162,        1,   270000, 0xa003cb14
+0,       1172,       1172,        1,   270000, 0x03ef1bb8
+0,       1181,       1181,        1,   270000, 0x3b3f30fc
+0,       1190,       1190,        1,   270000, 0x4dad3525
+0,       1200,       1200,        1,   270000, 0x5b600c12
+0,       1209,       1209,        1,   270000, 0x75a1fab3
+0,       1218,       1218,        1,   270000, 0xc9f7d9ad
+0,       1228,       1228,        1,   270000, 0x9eaec58d
+0,       1237,       1237,        1,   270000, 0xb91bc3e8
+0,       1247,       1247,        1,   270000, 0x77bdbbfb
+0,       1253,       1253,        1,   270000, 0x77bdbbfb
+0,       1259,       1259,        1,   270000, 0x77bdbbfb
+0,       1265,       1265,        1,   270000, 0x77bdbbfb
+0,       1272,       1272,        1,   270000, 0x77bdbbfb
+0,       1278,       1278,        1,   270000, 0x77bdbbfb
+0,       1287,       1287,        1,   270000, 0x3d54eac2
+0,       1293,       1293,        1,   270000, 0x3d54eac2
+0,       1300,       1300,        1,   270000, 0x3d54eac2
+0,       1306,       1306,        1,   270000, 0x3d54eac2
+0,       1315,       1315,        1,   270000, 0x3d54eac2
+0,       1322,       1322,        1,   270000, 0x3d54eac2
+0,       1328,       1328,        1,   270000, 0x3d54eac2
+0,       1334,       1334,        1,   270000, 0x3d54eac2
+0,       1340,       1340,        1,   270000, 0x3d54eac2
+0,       1347,       1347,        1,   270000, 0x3d54eac2
+0,       1353,       1353,        1,   270000, 0x3d54eac2
+0,       1359,       1359,        1,   270000, 0x3d54eac2
+0,       1365,       1365,        1,   270000, 0x3d54eac2
+0,       1372,       1372,        1,   270000, 0x3d54eac2
+0,       1378,       1378,        1,   270000, 0x3d54eac2
+0,       1384,       1384,        1,   270000, 0x3d54eac2
+0,       1390,       1390,        1,   270000, 0x3d54eac2
+0,       1397,       1397,        1,   270000, 0x3d54eac2
+0,       1403,       1403,        1,   270000, 0x3d54eac2
+0,       1412,       1412,        1,   270000, 0x5f3609ba
+0,       1422,       1422,        1,   270000, 0x80921b0c
+0,       1428,       1428,        1,   270000, 0x80921b0c
+0,       1434,       1434,        1,   270000, 0x80921b0c
+0,       1440,       1440,        1,   270000, 0x80921b0c
+0,       1447,       1447,        1,   270000, 0x80921b0c
+0,       1453,       1453,        1,   270000, 0x80921b0c
+0,       1459,       1459,        1,   270000, 0x80921b0c
+0,       1465,       1465,        1,   270000, 0x80921b0c
+0,       1472,       1472,        1,   270000, 0x80921b0c
+0,       1478,       1478,        1,   270000, 0x80921b0c
+0,       1484,       1484,        1,   270000, 0x80921b0c
+0,       1490,       1490,        1,   270000, 0x80921b0c
+0,       1497,       1497,        1,   270000, 0x80921b0c
+0,       1503,       1503,        1,   270000, 0x80921b0c
+0,       1509,       1509,        1,   270000, 0x80921b0c
+0,       1515,       1515,        1,   270000, 0x80921b0c
+0,       1525,       1525,        1,   270000, 0xf0e626a8
+0,       1531,       1531,        1,   270000, 0xf0e626a8
diff --git a/tests/ref/fate/cvid-palette b/tests/ref/fate/cvid-palette
index 49de1c1..5fcbc51 100644
--- a/tests/ref/fate/cvid-palette
+++ b/tests/ref/fate/cvid-palette
@@ -1,57 +1,57 @@
-#tb 0: 200/2997
-0,          0,          0,        1,    57600, 0x1f5c89b7
-0,          1,          1,        1,    57600, 0xd2055aaf
-0,          2,          2,        1,    57600, 0x22336052
-0,          3,          3,        1,    57600, 0xf7135e2a
-0,          4,          4,        1,    57600, 0xd9de126a
-0,          5,          5,        1,    57600, 0xe5a9e1de
-0,          6,          6,        1,    57600, 0x253f1702
-0,          7,          7,        1,    57600, 0xcb8679c9
-0,          8,          8,        1,    57600, 0x96cb5fa8
-0,          9,          9,        1,    57600, 0xbe03528a
-0,         10,         10,        1,    57600, 0x120a097d
-0,         11,         11,        1,    57600, 0xaf562041
-0,         12,         12,        1,    57600, 0x15b2d8c9
-0,         13,         13,        1,    57600, 0x95f60e58
-0,         14,         14,        1,    57600, 0x5ace5a6b
-0,         15,         15,        1,    57600, 0x2f80b8e3
-0,         16,         16,        1,    57600, 0x5c49c915
-0,         17,         17,        1,    57600, 0xb91efe60
-0,         18,         18,        1,    57600, 0xa80d29e8
-0,         19,         19,        1,    57600, 0x6e72d03a
-0,         20,         20,        1,    57600, 0x4f716a9e
-0,         21,         21,        1,    57600, 0x3a43b9c9
-0,         22,         22,        1,    57600, 0x65002db3
-0,         23,         23,        1,    57600, 0x70edc765
-0,         24,         24,        1,    57600, 0x9dc54abd
-0,         25,         25,        1,    57600, 0xd17bda86
-0,         26,         26,        1,    57600, 0xc5d2d458
-0,         27,         27,        1,    57600, 0x32313c79
-0,         28,         28,        1,    57600, 0x2e537e8d
-0,         29,         29,        1,    57600, 0xe77d5d9e
-0,         30,         30,        1,    57600, 0x9cc2599a
-0,         31,         31,        1,    57600, 0x8a9be76e
-0,         32,         32,        1,    57600, 0x47447eef
-0,         33,         33,        1,    57600, 0xbf5f84fa
-0,         34,         34,        1,    57600, 0xacd49c07
-0,         35,         35,        1,    57600, 0xdc628975
-0,         36,         36,        1,    57600, 0x97d7964e
-0,         37,         37,        1,    57600, 0xd0a19b6b
-0,         38,         38,        1,    57600, 0x5ea3d78c
-0,         39,         39,        1,    57600, 0x39b59be0
-0,         40,         40,        1,    57600, 0x6501a2d2
-0,         41,         41,        1,    57600, 0x0ee7e36d
-0,         42,         42,        1,    57600, 0x354ddd1d
-0,         43,         43,        1,    57600, 0x9b8f22d3
-0,         44,         44,        1,    57600, 0x0aadfb8c
-0,         45,         45,        1,    57600, 0x322e2785
-0,         46,         46,        1,    57600, 0x78a6467e
-0,         47,         47,        1,    57600, 0x1757f3b1
-0,         48,         48,        1,    57600, 0xe874ceb7
-0,         49,         49,        1,    57600, 0xc40f9e4d
-0,         50,         50,        1,    57600, 0x89f6a735
-0,         51,         51,        1,    57600, 0xe3635393
-0,         52,         52,        1,    57600, 0xdae585c7
-0,         53,         53,        1,    57600, 0xf99baa60
-0,         54,         54,        1,    57600, 0x28a8b1ee
-0,         55,         55,        1,    57600, 0xcd5587f8
+#tb 0: 1/14985
+0,          0,          0,        0,    57600, 0x1f5c89b7
+0,       1000,       1000,        0,    57600, 0xd2055aaf
+0,       2000,       2000,        0,    57600, 0x22336052
+0,       3000,       3000,        0,    57600, 0xf7135e2a
+0,       4000,       4000,        0,    57600, 0xd9de126a
+0,       5000,       5000,        0,    57600, 0xe5a9e1de
+0,       6000,       6000,        0,    57600, 0x253f1702
+0,       7000,       7000,        0,    57600, 0xcb8679c9
+0,       8000,       8000,        0,    57600, 0x96cb5fa8
+0,       9000,       9000,        0,    57600, 0xbe03528a
+0,      10000,      10000,        0,    57600, 0x120a097d
+0,      11000,      11000,        0,    57600, 0xaf562041
+0,      12000,      12000,        0,    57600, 0x15b2d8c9
+0,      13000,      13000,        0,    57600, 0x95f60e58
+0,      14000,      14000,        0,    57600, 0x5ace5a6b
+0,      15000,      15000,        0,    57600, 0x2f80b8e3
+0,      16000,      16000,        0,    57600, 0x5c49c915
+0,      17000,      17000,        0,    57600, 0xb91efe60
+0,      18000,      18000,        0,    57600, 0xa80d29e8
+0,      19000,      19000,        0,    57600, 0x6e72d03a
+0,      20000,      20000,        0,    57600, 0x4f716a9e
+0,      21000,      21000,        0,    57600, 0x3a43b9c9
+0,      22000,      22000,        0,    57600, 0x65002db3
+0,      23000,      23000,        0,    57600, 0x70edc765
+0,      24000,      24000,        0,    57600, 0x9dc54abd
+0,      25000,      25000,        0,    57600, 0xd17bda86
+0,      26000,      26000,        0,    57600, 0xc5d2d458
+0,      27000,      27000,        0,    57600, 0x32313c79
+0,      28000,      28000,        0,    57600, 0x2e537e8d
+0,      29000,      29000,        0,    57600, 0xe77d5d9e
+0,      30000,      30000,        0,    57600, 0x9cc2599a
+0,      31000,      31000,        0,    57600, 0x8a9be76e
+0,      32000,      32000,        0,    57600, 0x47447eef
+0,      33000,      33000,        0,    57600, 0xbf5f84fa
+0,      34000,      34000,        0,    57600, 0xacd49c07
+0,      35000,      35000,        0,    57600, 0xdc628975
+0,      36000,      36000,        0,    57600, 0x97d7964e
+0,      37000,      37000,        0,    57600, 0xd0a19b6b
+0,      38000,      38000,        0,    57600, 0x5ea3d78c
+0,      39000,      39000,        0,    57600, 0x39b59be0
+0,      40000,      40000,        0,    57600, 0x6501a2d2
+0,      41000,      41000,        0,    57600, 0x0ee7e36d
+0,      42000,      42000,        0,    57600, 0x354ddd1d
+0,      43000,      43000,        0,    57600, 0x9b8f22d3
+0,      44000,      44000,        0,    57600, 0x0aadfb8c
+0,      45000,      45000,        0,    57600, 0x322e2785
+0,      46000,      46000,        0,    57600, 0x78a6467e
+0,      47000,      47000,        0,    57600, 0x1757f3b1
+0,      48000,      48000,        0,    57600, 0xe874ceb7
+0,      49000,      49000,        0,    57600, 0xc40f9e4d
+0,      50000,      50000,        0,    57600, 0x89f6a735
+0,      51000,      51000,        0,    57600, 0xe3635393
+0,      52000,      52000,        0,    57600, 0xdae585c7
+0,      53000,      53000,        0,    57600, 0xf99baa60
+0,      54000,      54000,        0,    57600, 0x28a8b1ee
+0,      55000,      55000,        0,    57600, 0xcd5587f8
diff --git a/tests/ref/fate/ea-cmv b/tests/ref/fate/ea-cmv
index 18f2b3a..be8837e 100644
--- a/tests/ref/fate/ea-cmv
+++ b/tests/ref/fate/ea-cmv
@@ -1,195 +1,195 @@
-#tb 0: 1/10
-0,          1,          1,        1,   120000, 0x34ac91d2
-0,          2,          2,        1,   120000, 0x17150729
-0,          3,          3,        1,   120000, 0xc3f510bb
-0,          4,          4,        1,   120000, 0xb3b14a3b
-0,          5,          5,        1,   120000, 0x26a7f3d1
-0,          6,          6,        1,   120000, 0xd161af6f
-0,          7,          7,        1,   120000, 0x459fc92d
-0,          8,          8,        1,   120000, 0x05c3fa94
-0,          9,          9,        1,   120000, 0x6630cd8c
-0,         10,         10,        1,   120000, 0x60cd39d4
-0,         11,         11,        1,   120000, 0xc8854d1c
-0,         12,         12,        1,   120000, 0xe55e8e6d
-0,         13,         13,        1,   120000, 0xbeab201f
-0,         14,         14,        1,   120000, 0x70744b0b
-0,         15,         15,        1,   120000, 0x80dea5d0
-0,         16,         16,        1,   120000, 0x769bfa1c
-0,         17,         17,        1,   120000, 0x04e25bbe
-0,         18,         18,        1,   120000, 0x48abc5a5
-0,         19,         19,        1,   120000, 0xda5c4e2a
-0,         20,         20,        1,   120000, 0x8de96d38
-0,         21,         21,        1,   120000, 0xe96418b0
-0,         22,         22,        1,   120000, 0x1c2f272b
-0,         23,         23,        1,   120000, 0x4b755804
-0,         24,         24,        1,   120000, 0xc92f96fd
-0,         25,         25,        1,   120000, 0x69e90ebb
-0,         26,         26,        1,   120000, 0x78d4bd1a
-0,         27,         27,        1,   120000, 0xaf2edf55
-0,         28,         28,        1,   120000, 0x94161c78
-0,         29,         29,        1,   120000, 0x1109094d
-0,         30,         30,        1,   120000, 0xc61b0392
-0,         31,         31,        1,   120000, 0xc157d003
-0,         32,         32,        1,   120000, 0xf2747e7b
-0,         33,         33,        1,   120000, 0xa36299c2
-0,         34,         34,        1,   120000, 0x49bc788c
-0,         35,         35,        1,   120000, 0x3bee336e
-0,         36,         36,        1,   120000, 0xa316b9d1
-0,         37,         37,        1,   120000, 0x5cc32e9c
-0,         38,         38,        1,   120000, 0x9f7eca16
-0,         39,         39,        1,   120000, 0x958e2988
-0,         40,         40,        1,   120000, 0xebcba2f1
-0,         41,         41,        1,   120000, 0x281f1e60
-0,         42,         42,        1,   120000, 0x82256c4d
-0,         43,         43,        1,   120000, 0xddc8be56
-0,         44,         44,        1,   120000, 0x64ff2ed0
-0,         45,         45,        1,   120000, 0x3e63ab02
-0,         46,         46,        1,   120000, 0x43f78b37
-0,         47,         47,        1,   120000, 0xb7cc62d4
-0,         48,         48,        1,   120000, 0x694f1764
-0,         49,         49,        1,   120000, 0x2264c483
-0,         51,         51,        1,   120000, 0xb6680b4a
-0,         52,         52,        1,   120000, 0x2a92626a
-0,         53,         53,        1,   120000, 0x8da02509
-0,         54,         54,        1,   120000, 0xa976c382
-0,         55,         55,        1,   120000, 0x749e822b
-0,         56,         56,        1,   120000, 0xe9e7fc8c
-0,         57,         57,        1,   120000, 0xfdc05a0c
-0,         58,         58,        1,   120000, 0x7d5a856d
-0,         59,         59,        1,   120000, 0xcc344937
-0,         60,         60,        1,   120000, 0x9d90bc67
-0,         61,         61,        1,   120000, 0x3f527712
-0,         62,         62,        1,   120000, 0xf0f57f97
-0,         63,         63,        1,   120000, 0xc29535cd
-0,         64,         64,        1,   120000, 0x9a64598b
-0,         65,         65,        1,   120000, 0x0d1ddf7c
-0,         66,         66,        1,   120000, 0xb580ec24
-0,         67,         67,        1,   120000, 0xf0db5bbc
-0,         68,         68,        1,   120000, 0x6b980b61
-0,         69,         69,        1,   120000, 0xc29f30b5
-0,         70,         70,        1,   120000, 0xaf2c4bcd
-0,         71,         71,        1,   120000, 0x1e725645
-0,         72,         72,        1,   120000, 0x295c4c96
-0,         73,         73,        1,   120000, 0x7ea121a2
-0,         74,         74,        1,   120000, 0xdb9e9cec
-0,         75,         75,        1,   120000, 0x1da47c80
-0,         76,         76,        1,   120000, 0x9d0c1345
-0,         77,         77,        1,   120000, 0x88058527
-0,         78,         78,        1,   120000, 0x46766aed
-0,         79,         79,        1,   120000, 0xba520bd3
-0,         80,         80,        1,   120000, 0x7fb6373c
-0,         81,         81,        1,   120000, 0x05a86f4d
-0,         82,         82,        1,   120000, 0x7fb47cbd
-0,         83,         83,        1,   120000, 0x6814d8ca
-0,         84,         84,        1,   120000, 0x9c13acb8
-0,         85,         85,        1,   120000, 0xad0edbfe
-0,         86,         86,        1,   120000, 0x352fde81
-0,         87,         87,        1,   120000, 0xa654b386
-0,         88,         88,        1,   120000, 0xd3b3dc72
-0,         89,         89,        1,   120000, 0x01572668
-0,         90,         90,        1,   120000, 0x30189e03
-0,         91,         91,        1,   120000, 0x26126d30
-0,         92,         92,        1,   120000, 0x4f376c7d
-0,         93,         93,        1,   120000, 0xd3667bcf
-0,         94,         94,        1,   120000, 0x0b46b3d5
-0,         95,         95,        1,   120000, 0x893415ef
-0,         96,         96,        1,   120000, 0x99a78749
-0,         97,         97,        1,   120000, 0x6da0d8e9
-0,         98,         98,        1,   120000, 0x22d8ceb6
-0,         99,         99,        1,   120000, 0x67ef9be8
-0,        100,        100,        1,   120000, 0xb696fb53
-0,        101,        101,        1,   120000, 0x70339dab
-0,        102,        102,        1,   120000, 0xc1876efa
-0,        103,        103,        1,   120000, 0x80e78c92
-0,        104,        104,        1,   120000, 0x18d2f2ac
-0,        105,        105,        1,   120000, 0x28be9ae4
-0,        106,        106,        1,   120000, 0xc3c2c190
-0,        107,        107,        1,   120000, 0xd6a859d8
-0,        108,        108,        1,   120000, 0x40b9046d
-0,        109,        109,        1,   120000, 0x7f8d5999
-0,        110,        110,        1,   120000, 0x89724027
-0,        111,        111,        1,   120000, 0x4c15c988
-0,        112,        112,        1,   120000, 0x812ebe08
-0,        113,        113,        1,   120000, 0x273ef8e2
-0,        114,        114,        1,   120000, 0xe029de06
-0,        115,        115,        1,   120000, 0x5846127c
-0,        116,        116,        1,   120000, 0x6c5df8e3
-0,        117,        117,        1,   120000, 0x7424919f
-0,        118,        118,        1,   120000, 0xa8313015
-0,        119,        119,        1,   120000, 0x28878ab4
-0,        120,        120,        1,   120000, 0x126d0746
-0,        121,        121,        1,   120000, 0xee3f7138
-0,        122,        122,        1,   120000, 0xd4b2e0a1
-0,        123,        123,        1,   120000, 0x8d60bfff
-0,        124,        124,        1,   120000, 0x701c23d0
-0,        125,        125,        1,   120000, 0x1cbb5654
-0,        126,        126,        1,   120000, 0x0f5853e9
-0,        127,        127,        1,   120000, 0x2a5c3339
-0,        128,        128,        1,   120000, 0x86b00350
-0,        129,        129,        1,   120000, 0xe8cc6931
-0,        130,        130,        1,   120000, 0xf1cad983
-0,        131,        131,        1,   120000, 0xabcd8704
-0,        132,        132,        1,   120000, 0x89592f94
-0,        133,        133,        1,   120000, 0x100486d9
-0,        134,        134,        1,   120000, 0x60ef9e2d
-0,        135,        135,        1,   120000, 0x2485176a
-0,        136,        136,        1,   120000, 0x6b8c360d
-0,        137,        137,        1,   120000, 0xe2e1bf4f
-0,        138,        138,        1,   120000, 0xe17b65c3
-0,        139,        139,        1,   120000, 0x2a42821a
-0,        140,        140,        1,   120000, 0xbe9ddba7
-0,        141,        141,        1,   120000, 0x19f937fe
-0,        142,        142,        1,   120000, 0xb7e0c600
-0,        143,        143,        1,   120000, 0xfbf8c5f6
-0,        144,        144,        1,   120000, 0x93b62f93
-0,        145,        145,        1,   120000, 0xb6ddec93
-0,        146,        146,        1,   120000, 0xa04d031b
-0,        147,        147,        1,   120000, 0x61c986c0
-0,        148,        148,        1,   120000, 0x3516e54a
-0,        149,        149,        1,   120000, 0x3489eb2c
-0,        150,        150,        1,   120000, 0xb75a4827
-0,        151,        151,        1,   120000, 0x76031a80
-0,        152,        152,        1,   120000, 0x867c3969
-0,        153,        153,        1,   120000, 0x9b63a093
-0,        154,        154,        1,   120000, 0xcb253d8a
-0,        155,        155,        1,   120000, 0x354ba3b2
-0,        156,        156,        1,   120000, 0x4d5ead8c
-0,        157,        157,        1,   120000, 0x7b7029ae
-0,        158,        158,        1,   120000, 0x4765ab9d
-0,        159,        159,        1,   120000, 0x747cdee9
-0,        160,        160,        1,   120000, 0x20989b08
-0,        161,        161,        1,   120000, 0x3a957085
-0,        162,        162,        1,   120000, 0xdd49e8ad
-0,        163,        163,        1,   120000, 0x00e89719
-0,        164,        164,        1,   120000, 0x2822aa76
-0,        165,        165,        1,   120000, 0x492388f3
-0,        166,        166,        1,   120000, 0x4dffa6ee
-0,        167,        167,        1,   120000, 0xc382bb83
-0,        168,        168,        1,   120000, 0xb59aaa74
-0,        169,        169,        1,   120000, 0x7c7885d3
-0,        170,        170,        1,   120000, 0xc05ee219
-0,        171,        171,        1,   120000, 0xc3df6b73
-0,        172,        172,        1,   120000, 0x8ae31170
-0,        173,        173,        1,   120000, 0xb979fdce
-0,        174,        174,        1,   120000, 0xb8f9e407
-0,        175,        175,        1,   120000, 0x56675b80
-0,        176,        176,        1,   120000, 0x1aad1ce2
-0,        177,        177,        1,   120000, 0xa050a52b
-0,        178,        178,        1,   120000, 0x49f8c32f
-0,        179,        179,        1,   120000, 0x8e7f4d2c
-0,        180,        180,        1,   120000, 0x5c07f751
-0,        181,        181,        1,   120000, 0x67fa5523
-0,        182,        182,        1,   120000, 0xf38b933a
-0,        183,        183,        1,   120000, 0xb113e202
-0,        184,        184,        1,   120000, 0xb8d99ff4
-0,        185,        185,        1,   120000, 0x15ab6cc6
-0,        186,        186,        1,   120000, 0xd64a51c9
-0,        187,        187,        1,   120000, 0x2088b53c
-0,        188,        188,        1,   120000, 0xdd78d40a
-0,        189,        189,        1,   120000, 0x2fb58848
-0,        190,        190,        1,   120000, 0xf775d36a
-0,        191,        191,        1,   120000, 0xa03987e9
-0,        192,        192,        1,   120000, 0x457322ad
-0,        193,        193,        1,   120000, 0x0f6c3d1c
-0,        194,        194,        1,   120000, 0xbdf2f1a5
-0,        195,        195,        1,   120000, 0x5828ee1d
+#tb 0: 1/90000
+0,       9000,       9000,        0,   120000, 0x34ac91d2
+0,      18000,      18000,        0,   120000, 0x17150729
+0,      27000,      27000,        0,   120000, 0xc3f510bb
+0,      36000,      36000,        0,   120000, 0xb3b14a3b
+0,      45000,      45000,        0,   120000, 0x26a7f3d1
+0,      54000,      54000,        0,   120000, 0xd161af6f
+0,      63000,      63000,        0,   120000, 0x459fc92d
+0,      72000,      72000,        0,   120000, 0x05c3fa94
+0,      81000,      81000,        0,   120000, 0x6630cd8c
+0,      90000,      90000,        0,   120000, 0x60cd39d4
+0,      99000,      99000,        0,   120000, 0xc8854d1c
+0,     108000,     108000,        0,   120000, 0xe55e8e6d
+0,     117000,     117000,        0,   120000, 0xbeab201f
+0,     126000,     126000,        0,   120000, 0x70744b0b
+0,     135000,     135000,        0,   120000, 0x80dea5d0
+0,     144000,     144000,        0,   120000, 0x769bfa1c
+0,     153000,     153000,        0,   120000, 0x04e25bbe
+0,     162000,     162000,        0,   120000, 0x48abc5a5
+0,     171000,     171000,        0,   120000, 0xda5c4e2a
+0,     180000,     180000,        0,   120000, 0x8de96d38
+0,     189000,     189000,        0,   120000, 0xe96418b0
+0,     198000,     198000,        0,   120000, 0x1c2f272b
+0,     207000,     207000,        0,   120000, 0x4b755804
+0,     216000,     216000,        0,   120000, 0xc92f96fd
+0,     225000,     225000,        0,   120000, 0x69e90ebb
+0,     234000,     234000,        0,   120000, 0x78d4bd1a
+0,     243000,     243000,        0,   120000, 0xaf2edf55
+0,     252000,     252000,        0,   120000, 0x94161c78
+0,     261000,     261000,        0,   120000, 0x1109094d
+0,     270000,     270000,        0,   120000, 0xc61b0392
+0,     279000,     279000,        0,   120000, 0xc157d003
+0,     288000,     288000,        0,   120000, 0xf2747e7b
+0,     297000,     297000,        0,   120000, 0xa36299c2
+0,     306000,     306000,        0,   120000, 0x49bc788c
+0,     315000,     315000,        0,   120000, 0x3bee336e
+0,     324000,     324000,        0,   120000, 0xa316b9d1
+0,     333000,     333000,        0,   120000, 0x5cc32e9c
+0,     342000,     342000,        0,   120000, 0x9f7eca16
+0,     351000,     351000,        0,   120000, 0x958e2988
+0,     360000,     360000,        0,   120000, 0xebcba2f1
+0,     369000,     369000,        0,   120000, 0x281f1e60
+0,     378000,     378000,        0,   120000, 0x82256c4d
+0,     387000,     387000,        0,   120000, 0xddc8be56
+0,     396000,     396000,        0,   120000, 0x64ff2ed0
+0,     405000,     405000,        0,   120000, 0x3e63ab02
+0,     414000,     414000,        0,   120000, 0x43f78b37
+0,     423000,     423000,        0,   120000, 0xb7cc62d4
+0,     432000,     432000,        0,   120000, 0x694f1764
+0,     441000,     441000,        0,   120000, 0x2264c483
+0,     459000,     459000,        0,   120000, 0xb6680b4a
+0,     468000,     468000,        0,   120000, 0x2a92626a
+0,     477000,     477000,        0,   120000, 0x8da02509
+0,     486000,     486000,        0,   120000, 0xa976c382
+0,     495000,     495000,        0,   120000, 0x749e822b
+0,     504000,     504000,        0,   120000, 0xe9e7fc8c
+0,     513000,     513000,        0,   120000, 0xfdc05a0c
+0,     522000,     522000,        0,   120000, 0x7d5a856d
+0,     531000,     531000,        0,   120000, 0xcc344937
+0,     540000,     540000,        0,   120000, 0x9d90bc67
+0,     549000,     549000,        0,   120000, 0x3f527712
+0,     558000,     558000,        0,   120000, 0xf0f57f97
+0,     567000,     567000,        0,   120000, 0xc29535cd
+0,     576000,     576000,        0,   120000, 0x9a64598b
+0,     585000,     585000,        0,   120000, 0x0d1ddf7c
+0,     594000,     594000,        0,   120000, 0xb580ec24
+0,     603000,     603000,        0,   120000, 0xf0db5bbc
+0,     612000,     612000,        0,   120000, 0x6b980b61
+0,     621000,     621000,        0,   120000, 0xc29f30b5
+0,     630000,     630000,        0,   120000, 0xaf2c4bcd
+0,     639000,     639000,        0,   120000, 0x1e725645
+0,     648000,     648000,        0,   120000, 0x295c4c96
+0,     657000,     657000,        0,   120000, 0x7ea121a2
+0,     666000,     666000,        0,   120000, 0xdb9e9cec
+0,     675000,     675000,        0,   120000, 0x1da47c80
+0,     684000,     684000,        0,   120000, 0x9d0c1345
+0,     693000,     693000,        0,   120000, 0x88058527
+0,     702000,     702000,        0,   120000, 0x46766aed
+0,     711000,     711000,        0,   120000, 0xba520bd3
+0,     720000,     720000,        0,   120000, 0x7fb6373c
+0,     729000,     729000,        0,   120000, 0x05a86f4d
+0,     738000,     738000,        0,   120000, 0x7fb47cbd
+0,     747000,     747000,        0,   120000, 0x6814d8ca
+0,     756000,     756000,        0,   120000, 0x9c13acb8
+0,     765000,     765000,        0,   120000, 0xad0edbfe
+0,     774000,     774000,        0,   120000, 0x352fde81
+0,     783000,     783000,        0,   120000, 0xa654b386
+0,     792000,     792000,        0,   120000, 0xd3b3dc72
+0,     801000,     801000,        0,   120000, 0x01572668
+0,     810000,     810000,        0,   120000, 0x30189e03
+0,     819000,     819000,        0,   120000, 0x26126d30
+0,     828000,     828000,        0,   120000, 0x4f376c7d
+0,     837000,     837000,        0,   120000, 0xd3667bcf
+0,     846000,     846000,        0,   120000, 0x0b46b3d5
+0,     855000,     855000,        0,   120000, 0x893415ef
+0,     864000,     864000,        0,   120000, 0x99a78749
+0,     873000,     873000,        0,   120000, 0x6da0d8e9
+0,     882000,     882000,        0,   120000, 0x22d8ceb6
+0,     891000,     891000,        0,   120000, 0x67ef9be8
+0,     900000,     900000,        0,   120000, 0xb696fb53
+0,     909000,     909000,        0,   120000, 0x70339dab
+0,     918000,     918000,        0,   120000, 0xc1876efa
+0,     927000,     927000,        0,   120000, 0x80e78c92
+0,     936000,     936000,        0,   120000, 0x18d2f2ac
+0,     945000,     945000,        0,   120000, 0x28be9ae4
+0,     954000,     954000,        0,   120000, 0xc3c2c190
+0,     963000,     963000,        0,   120000, 0xd6a859d8
+0,     972000,     972000,        0,   120000, 0x40b9046d
+0,     981000,     981000,        0,   120000, 0x7f8d5999
+0,     990000,     990000,        0,   120000, 0x89724027
+0,     999000,     999000,        0,   120000, 0x4c15c988
+0,    1008000,    1008000,        0,   120000, 0x812ebe08
+0,    1017000,    1017000,        0,   120000, 0x273ef8e2
+0,    1026000,    1026000,        0,   120000, 0xe029de06
+0,    1035000,    1035000,        0,   120000, 0x5846127c
+0,    1044000,    1044000,        0,   120000, 0x6c5df8e3
+0,    1053000,    1053000,        0,   120000, 0x7424919f
+0,    1062000,    1062000,        0,   120000, 0xa8313015
+0,    1071000,    1071000,        0,   120000, 0x28878ab4
+0,    1080000,    1080000,        0,   120000, 0x126d0746
+0,    1089000,    1089000,        0,   120000, 0xee3f7138
+0,    1098000,    1098000,        0,   120000, 0xd4b2e0a1
+0,    1107000,    1107000,        0,   120000, 0x8d60bfff
+0,    1116000,    1116000,        0,   120000, 0x701c23d0
+0,    1125000,    1125000,        0,   120000, 0x1cbb5654
+0,    1134000,    1134000,        0,   120000, 0x0f5853e9
+0,    1143000,    1143000,        0,   120000, 0x2a5c3339
+0,    1152000,    1152000,        0,   120000, 0x86b00350
+0,    1161000,    1161000,        0,   120000, 0xe8cc6931
+0,    1170000,    1170000,        0,   120000, 0xf1cad983
+0,    1179000,    1179000,        0,   120000, 0xabcd8704
+0,    1188000,    1188000,        0,   120000, 0x89592f94
+0,    1197000,    1197000,        0,   120000, 0x100486d9
+0,    1206000,    1206000,        0,   120000, 0x60ef9e2d
+0,    1215000,    1215000,        0,   120000, 0x2485176a
+0,    1224000,    1224000,        0,   120000, 0x6b8c360d
+0,    1233000,    1233000,        0,   120000, 0xe2e1bf4f
+0,    1242000,    1242000,        0,   120000, 0xe17b65c3
+0,    1251000,    1251000,        0,   120000, 0x2a42821a
+0,    1260000,    1260000,        0,   120000, 0xbe9ddba7
+0,    1269000,    1269000,        0,   120000, 0x19f937fe
+0,    1278000,    1278000,        0,   120000, 0xb7e0c600
+0,    1287000,    1287000,        0,   120000, 0xfbf8c5f6
+0,    1296000,    1296000,        0,   120000, 0x93b62f93
+0,    1305000,    1305000,        0,   120000, 0xb6ddec93
+0,    1314000,    1314000,        0,   120000, 0xa04d031b
+0,    1323000,    1323000,        0,   120000, 0x61c986c0
+0,    1332000,    1332000,        0,   120000, 0x3516e54a
+0,    1341000,    1341000,        0,   120000, 0x3489eb2c
+0,    1350000,    1350000,        0,   120000, 0xb75a4827
+0,    1359000,    1359000,        0,   120000, 0x76031a80
+0,    1368000,    1368000,        0,   120000, 0x867c3969
+0,    1377000,    1377000,        0,   120000, 0x9b63a093
+0,    1386000,    1386000,        0,   120000, 0xcb253d8a
+0,    1395000,    1395000,        0,   120000, 0x354ba3b2
+0,    1404000,    1404000,        0,   120000, 0x4d5ead8c
+0,    1413000,    1413000,        0,   120000, 0x7b7029ae
+0,    1422000,    1422000,        0,   120000, 0x4765ab9d
+0,    1431000,    1431000,        0,   120000, 0x747cdee9
+0,    1440000,    1440000,        0,   120000, 0x20989b08
+0,    1449000,    1449000,        0,   120000, 0x3a957085
+0,    1458000,    1458000,        0,   120000, 0xdd49e8ad
+0,    1467000,    1467000,        0,   120000, 0x00e89719
+0,    1476000,    1476000,        0,   120000, 0x2822aa76
+0,    1485000,    1485000,        0,   120000, 0x492388f3
+0,    1494000,    1494000,        0,   120000, 0x4dffa6ee
+0,    1503000,    1503000,        0,   120000, 0xc382bb83
+0,    1512000,    1512000,        0,   120000, 0xb59aaa74
+0,    1521000,    1521000,        0,   120000, 0x7c7885d3
+0,    1530000,    1530000,        0,   120000, 0xc05ee219
+0,    1539000,    1539000,        0,   120000, 0xc3df6b73
+0,    1548000,    1548000,        0,   120000, 0x8ae31170
+0,    1557000,    1557000,        0,   120000, 0xb979fdce
+0,    1566000,    1566000,        0,   120000, 0xb8f9e407
+0,    1575000,    1575000,        0,   120000, 0x56675b80
+0,    1584000,    1584000,        0,   120000, 0x1aad1ce2
+0,    1593000,    1593000,        0,   120000, 0xa050a52b
+0,    1602000,    1602000,        0,   120000, 0x49f8c32f
+0,    1611000,    1611000,        0,   120000, 0x8e7f4d2c
+0,    1620000,    1620000,        0,   120000, 0x5c07f751
+0,    1629000,    1629000,        0,   120000, 0x67fa5523
+0,    1638000,    1638000,        0,   120000, 0xf38b933a
+0,    1647000,    1647000,        0,   120000, 0xb113e202
+0,    1656000,    1656000,        0,   120000, 0xb8d99ff4
+0,    1665000,    1665000,        0,   120000, 0x15ab6cc6
+0,    1674000,    1674000,        0,   120000, 0xd64a51c9
+0,    1683000,    1683000,        0,   120000, 0x2088b53c
+0,    1692000,    1692000,        0,   120000, 0xdd78d40a
+0,    1701000,    1701000,        0,   120000, 0x2fb58848
+0,    1710000,    1710000,        0,   120000, 0xf775d36a
+0,    1719000,    1719000,        0,   120000, 0xa03987e9
+0,    1728000,    1728000,        0,   120000, 0x457322ad
+0,    1737000,    1737000,        0,   120000, 0x0f6c3d1c
+0,    1746000,    1746000,        0,   120000, 0xbdf2f1a5
+0,    1755000,    1755000,        0,   120000, 0x5828ee1d
diff --git a/tests/ref/fate/ea-dct b/tests/ref/fate/ea-dct
index 071be8a..8ce0f2f 100644
--- a/tests/ref/fate/ea-dct
+++ b/tests/ref/fate/ea-dct
@@ -1,269 +1,269 @@
-#tb 0: 1/15
+#tb 0: 1/90000
 #tb 1: 1/22050
-0,          0,          0,        1,   102144, 0x6edc83de
+0,          0,          0,        0,   102144, 0x6edc83de
 1,          0,          0,     1484,     5936, 0xea261a29
-0,          1,          1,        1,   102144, 0xd0534fda
+0,       6000,       6000,        0,   102144, 0xd0534fda
 1,       1484,       1484,     1456,     5824, 0x253df061
-0,          2,          2,        1,   102144, 0x6447911f
+0,      12000,      12000,        0,   102144, 0x6447911f
 1,       2940,       2940,     1484,     5936, 0x603a5bd7
-0,          3,          3,        1,   102144, 0xf21f3b46
+0,      18000,      18000,        0,   102144, 0xf21f3b46
 1,       4424,       4424,     1456,     5824, 0x9d283f59
-0,          4,          4,        1,   102144, 0x0975077a
+0,      24000,      24000,        0,   102144, 0x0975077a
 1,       5880,       5880,     1484,     5936, 0x49323497
-0,          5,          5,        1,   102144, 0xb9a12d8e
+0,      30000,      30000,        0,   102144, 0xb9a12d8e
 1,       7364,       7364,     1456,     5824, 0x7c299939
-0,          6,          6,        1,   102144, 0x17413513
+0,      36000,      36000,        0,   102144, 0x17413513
 1,       8820,       8820,     1484,     5936, 0x9f918e9a
-0,          7,          7,        1,   102144, 0x1e622a04
+0,      42000,      42000,        0,   102144, 0x1e622a04
 1,      10304,      10304,     1456,     5824, 0x1226b534
-0,          8,          8,        1,   102144, 0x7489224e
+0,      48000,      48000,        0,   102144, 0x7489224e
 1,      11760,      11760,     1484,     5936, 0xdd159326
-0,          9,          9,        1,   102144, 0xae14956e
+0,      54000,      54000,        0,   102144, 0xae14956e
 1,      13244,      13244,     1456,     5824, 0x361ad10f
-0,         10,         10,        1,   102144, 0x104fd3a0
+0,      60000,      60000,        0,   102144, 0x104fd3a0
 1,      14700,      14700,     1484,     5936, 0x6ccac9e3
-0,         11,         11,        1,   102144, 0xea63a940
+0,      66000,      66000,        0,   102144, 0xea63a940
 1,      16184,      16184,     1456,     5824, 0x1861efef
-0,         12,         12,        1,   102144, 0x0cf81588
+0,      72000,      72000,        0,   102144, 0x0cf81588
 1,      17640,      17640,     1484,     5936, 0x5f718eb9
-0,         13,         13,        1,   102144, 0xe4a5b2fd
+0,      78000,      78000,        0,   102144, 0xe4a5b2fd
 1,      19124,      19124,     1456,     5824, 0xd4ca72ba
-0,         14,         14,        1,   102144, 0x0c9aaf77
+0,      84000,      84000,        0,   102144, 0x0c9aaf77
 1,      20580,      20580,     1484,     5936, 0xbf2b27e6
-0,         15,         15,        1,   102144, 0x065007d7
+0,      90000,      90000,        0,   102144, 0x065007d7
 1,      22064,      22064,     1456,     5824, 0xcb6f024e
-0,         16,         16,        1,   102144, 0x54c0c29b
+0,      96000,      96000,        0,   102144, 0x54c0c29b
 1,      23520,      23520,     1484,     5936, 0x7dfb7e05
-0,         17,         17,        1,   102144, 0x1114cb8e
+0,     102000,     102000,        0,   102144, 0x1114cb8e
 1,      25004,      25004,     1456,     5824, 0x80e16f13
-0,         18,         18,        1,   102144, 0xe4270462
+0,     108000,     108000,        0,   102144, 0xe4270462
 1,      26460,      26460,     1484,     5936, 0x0fb59227
-0,         19,         19,        1,   102144, 0x61e5b7fd
+0,     114000,     114000,        0,   102144, 0x61e5b7fd
 1,      27944,      27944,     1456,     5824, 0x4d6f1fdb
-0,         20,         20,        1,   102144, 0x7cbeaca6
+0,     120000,     120000,        0,   102144, 0x7cbeaca6
 1,      29400,      29400,     1484,     5936, 0x505a5103
-0,         21,         21,        1,   102144, 0xed92daa4
+0,     126000,     126000,        0,   102144, 0xed92daa4
 1,      30884,      30884,     1456,     5824, 0x47ef4c13
-0,         22,         22,        1,   102144, 0xd8654d0d
+0,     132000,     132000,        0,   102144, 0xd8654d0d
 1,      32340,      32340,     1484,     5936, 0xbe4795fb
-0,         23,         23,        1,   102144, 0x854e842b
+0,     138000,     138000,        0,   102144, 0x854e842b
 1,      33824,      33824,     1456,     5824, 0xb82cc4ff
-0,         24,         24,        1,   102144, 0x56407c3a
+0,     144000,     144000,        0,   102144, 0x56407c3a
 1,      35280,      35280,     1484,     5936, 0xf7c6ab8d
-0,         25,         25,        1,   102144, 0x17db3f90
+0,     150000,     150000,        0,   102144, 0x17db3f90
 1,      36764,      36764,     1456,     5824, 0x1442f5e0
-0,         26,         26,        1,   102144, 0x8b133b9a
+0,     156000,     156000,        0,   102144, 0x8b133b9a
 1,      38220,      38220,     1484,     5936, 0x64659389
-0,         27,         27,        1,   102144, 0xe4899db9
+0,     162000,     162000,        0,   102144, 0xe4899db9
 1,      39704,      39704,     1456,     5824, 0xdd81725c
-0,         28,         28,        1,   102144, 0x579cf092
+0,     168000,     168000,        0,   102144, 0x579cf092
 1,      41160,      41160,     1484,     5936, 0x7f7c604f
-0,         29,         29,        1,   102144, 0x19fa5062
+0,     174000,     174000,        0,   102144, 0x19fa5062
 1,      42644,      42644,     1456,     5824, 0xafc77beb
-0,         30,         30,        1,   102144, 0x71339792
+0,     180000,     180000,        0,   102144, 0x71339792
 1,      44100,      44100,     1484,     5936, 0x24f88e4d
-0,         31,         31,        1,   102144, 0x970e5c0c
+0,     186000,     186000,        0,   102144, 0x970e5c0c
 1,      45584,      45584,     1456,     5824, 0xa31956ca
-0,         32,         32,        1,   102144, 0x84ee616a
+0,     192000,     192000,        0,   102144, 0x84ee616a
 1,      47040,      47040,     1484,     5936, 0x958e02b9
-0,         33,         33,        1,   102144, 0x1d6f9a23
+0,     198000,     198000,        0,   102144, 0x1d6f9a23
 1,      48524,      48524,     1456,     5824, 0xcfc79890
-0,         34,         34,        1,   102144, 0xc28e19db
+0,     204000,     204000,        0,   102144, 0xc28e19db
 1,      49980,      49980,     1484,     5936, 0xc7e788ae
-0,         35,         35,        1,   102144, 0x0e898967
+0,     210000,     210000,        0,   102144, 0x0e898967
 1,      51464,      51464,     1456,     5824, 0x4b6b1acc
-0,         36,         36,        1,   102144, 0x52a8b671
+0,     216000,     216000,        0,   102144, 0x52a8b671
 1,      52920,      52920,     1484,     5936, 0xa74496dc
-0,         37,         37,        1,   102144, 0x3f45ea83
+0,     222000,     222000,        0,   102144, 0x3f45ea83
 1,      54404,      54404,     1456,     5824, 0x719e6171
-0,         38,         38,        1,   102144, 0x7b0fc603
+0,     228000,     228000,        0,   102144, 0x7b0fc603
 1,      55860,      55860,     1484,     5936, 0x9346222d
-0,         39,         39,        1,   102144, 0x14f94469
+0,     234000,     234000,        0,   102144, 0x14f94469
 1,      57344,      57344,     1456,     5824, 0x9e2a876e
-0,         40,         40,        1,   102144, 0x5b9f37cc
+0,     240000,     240000,        0,   102144, 0x5b9f37cc
 1,      58800,      58800,     1484,     5936, 0xeca6ea64
-0,         41,         41,        1,   102144, 0xf902b7c7
+0,     246000,     246000,        0,   102144, 0xf902b7c7
 1,      60284,      60284,     1456,     5824, 0x07d8174f
-0,         42,         42,        1,   102144, 0x326836e0
+0,     252000,     252000,        0,   102144, 0x326836e0
 1,      61740,      61740,     1484,     5936, 0x2df5aa6b
-0,         43,         43,        1,   102144, 0x2e4aebba
+0,     258000,     258000,        0,   102144, 0x2e4aebba
 1,      63224,      63224,     1456,     5824, 0x314e7034
-0,         44,         44,        1,   102144, 0xd10ae58c
+0,     264000,     264000,        0,   102144, 0xd10ae58c
 1,      64680,      64680,     1484,     5936, 0x5a328768
-0,         45,         45,        1,   102144, 0xbd084ecf
+0,     270000,     270000,        0,   102144, 0xbd084ecf
 1,      66164,      66164,     1456,     5824, 0x32b92446
-0,         46,         46,        1,   102144, 0xb2157c0a
+0,     276000,     276000,        0,   102144, 0xb2157c0a
 1,      67620,      67620,     1484,     5936, 0x20ecbc9b
-0,         47,         47,        1,   102144, 0xd7f158d4
+0,     282000,     282000,        0,   102144, 0xd7f158d4
 1,      69104,      69104,     1456,     5824, 0x76019c14
-0,         48,         48,        1,   102144, 0x3cf86462
+0,     288000,     288000,        0,   102144, 0x3cf86462
 1,      70560,      70560,     1484,     5936, 0x8c3ef8a6
-0,         49,         49,        1,   102144, 0x53ecddab
+0,     294000,     294000,        0,   102144, 0x53ecddab
 1,      72044,      72044,     1456,     5824, 0xcdaab50b
-0,         50,         50,        1,   102144, 0xcdaba8ef
+0,     300000,     300000,        0,   102144, 0xcdaba8ef
 1,      73500,      73500,     1484,     5936, 0xb2f87f4f
-0,         51,         51,        1,   102144, 0xab9ede18
+0,     306000,     306000,        0,   102144, 0xab9ede18
 1,      74984,      74984,     1456,     5824, 0x70c26379
-0,         52,         52,        1,   102144, 0xb6706e79
+0,     312000,     312000,        0,   102144, 0xb6706e79
 1,      76440,      76440,     1484,     5936, 0x5691ecfd
-0,         53,         53,        1,   102144, 0x76371069
+0,     318000,     318000,        0,   102144, 0x76371069
 1,      77924,      77924,     1456,     5824, 0x61e208fe
-0,         54,         54,        1,   102144, 0x3a365016
+0,     324000,     324000,        0,   102144, 0x3a365016
 1,      79380,      79380,     1484,     5936, 0x87d1a5e0
-0,         55,         55,        1,   102144, 0x52177c09
+0,     330000,     330000,        0,   102144, 0x52177c09
 1,      80864,      80864,     1456,     5824, 0x02054cfd
-0,         56,         56,        1,   102144, 0xc33eb4fb
+0,     336000,     336000,        0,   102144, 0xc33eb4fb
 1,      82320,      82320,     1484,     5936, 0x22ff1c4b
-0,         57,         57,        1,   102144, 0x16098436
+0,     342000,     342000,        0,   102144, 0x16098436
 1,      83804,      83804,     1456,     5824, 0xc6d87fef
-0,         58,         58,        1,   102144, 0x715d6a2b
+0,     348000,     348000,        0,   102144, 0x715d6a2b
 1,      85260,      85260,     1484,     5936, 0x9028bb3b
-0,         59,         59,        1,   102144, 0xd3abc960
+0,     354000,     354000,        0,   102144, 0xd3abc960
 1,      86744,      86744,     1456,     5824, 0xbadde406
-0,         60,         60,        1,   102144, 0x7f34b0d4
+0,     360000,     360000,        0,   102144, 0x7f34b0d4
 1,      88200,      88200,     1484,     5936, 0x6e88ddf1
-0,         61,         61,        1,   102144, 0xe3219b9c
+0,     366000,     366000,        0,   102144, 0xe3219b9c
 1,      89684,      89684,     1456,     5824, 0x5bb8be6e
-0,         62,         62,        1,   102144, 0x5fa54f54
+0,     372000,     372000,        0,   102144, 0x5fa54f54
 1,      91140,      91140,     1484,     5936, 0xe1f8d7fc
-0,         63,         63,        1,   102144, 0x0fb746cb
+0,     378000,     378000,        0,   102144, 0x0fb746cb
 1,      92624,      92624,     1456,     5824, 0xc824e388
-0,         64,         64,        1,   102144, 0xa6bd2da2
+0,     384000,     384000,        0,   102144, 0xa6bd2da2
 1,      94080,      94080,     1484,     5936, 0x654371a9
-0,         65,         65,        1,   102144, 0x04579119
+0,     390000,     390000,        0,   102144, 0x04579119
 1,      95564,      95564,     1456,     5824, 0xae6ee9ec
-0,         66,         66,        1,   102144, 0xda818691
+0,     396000,     396000,        0,   102144, 0xda818691
 1,      97020,      97020,     1484,     5936, 0x9aa4550d
-0,         67,         67,        1,   102144, 0xe9d44445
+0,     402000,     402000,        0,   102144, 0xe9d44445
 1,      98504,      98504,     1456,     5824, 0xdce210ac
-0,         68,         68,        1,   102144, 0x94868dc9
+0,     408000,     408000,        0,   102144, 0x94868dc9
 1,      99960,      99960,     1484,     5936, 0xb12641c8
-0,         69,         69,        1,   102144, 0x3ca52ce6
+0,     414000,     414000,        0,   102144, 0x3ca52ce6
 1,     101444,     101444,     1456,     5824, 0x277e014b
-0,         70,         70,        1,   102144, 0xd7eb4c4f
+0,     420000,     420000,        0,   102144, 0xd7eb4c4f
 1,     102900,     102900,     1484,     5936, 0xb0d262de
-0,         71,         71,        1,   102144, 0xfcdfafca
+0,     426000,     426000,        0,   102144, 0xfcdfafca
 1,     104384,     104384,     1456,     5824, 0xf94d6f49
-0,         72,         72,        1,   102144, 0x473a4a5a
+0,     432000,     432000,        0,   102144, 0x473a4a5a
 1,     105840,     105840,     1484,     5936, 0x3d7848cb
-0,         73,         73,        1,   102144, 0xe5a5f3cb
+0,     438000,     438000,        0,   102144, 0xe5a5f3cb
 1,     107324,     107324,     1456,     5824, 0xe67fc08e
-0,         74,         74,        1,   102144, 0x34070219
+0,     444000,     444000,        0,   102144, 0x34070219
 1,     108780,     108780,     1484,     5936, 0x0475e0d6
-0,         75,         75,        1,   102144, 0x0faa965a
+0,     450000,     450000,        0,   102144, 0x0faa965a
 1,     110264,     110264,     1456,     5824, 0x8a9a4a2e
-0,         76,         76,        1,   102144, 0xe2c6acda
+0,     456000,     456000,        0,   102144, 0xe2c6acda
 1,     111720,     111720,     1484,     5936, 0x82576204
-0,         77,         77,        1,   102144, 0xe22776d5
+0,     462000,     462000,        0,   102144, 0xe22776d5
 1,     113204,     113204,     1456,     5824, 0x3017b648
-0,         78,         78,        1,   102144, 0x80d85602
+0,     468000,     468000,        0,   102144, 0x80d85602
 1,     114660,     114660,     1484,     5936, 0xca4c3e04
-0,         79,         79,        1,   102144, 0x2f3fa190
+0,     474000,     474000,        0,   102144, 0x2f3fa190
 1,     116144,     116144,     1456,     5824, 0x340077d1
-0,         80,         80,        1,   102144, 0x70b461b1
+0,     480000,     480000,        0,   102144, 0x70b461b1
 1,     117600,     117600,     1484,     5936, 0x805bea6e
-0,         81,         81,        1,   102144, 0x366c8b27
+0,     486000,     486000,        0,   102144, 0x366c8b27
 1,     119084,     119084,     1456,     5824, 0x2cf6c87b
-0,         82,         82,        1,   102144, 0x65cc0866
+0,     492000,     492000,        0,   102144, 0x65cc0866
 1,     120540,     120540,     1484,     5936, 0x3635bc5f
-0,         83,         83,        1,   102144, 0x903beb14
+0,     498000,     498000,        0,   102144, 0x903beb14
 1,     122024,     122024,     1456,     5824, 0x0d7a81c7
-0,         84,         84,        1,   102144, 0xb6c5f5c7
+0,     504000,     504000,        0,   102144, 0xb6c5f5c7
 1,     123480,     123480,     1484,     5936, 0x26179764
-0,         85,         85,        1,   102144, 0xaa813725
+0,     510000,     510000,        0,   102144, 0xaa813725
 1,     124964,     124964,     1456,     5824, 0xa0b2454f
-0,         86,         86,        1,   102144, 0x014a84a0
+0,     516000,     516000,        0,   102144, 0x014a84a0
 1,     126420,     126420,     1484,     5936, 0x91d24608
-0,         87,         87,        1,   102144, 0xd286ece1
+0,     522000,     522000,        0,   102144, 0xd286ece1
 1,     127904,     127904,     1456,     5824, 0x6509b3e1
-0,         88,         88,        1,   102144, 0x48b1c27d
+0,     528000,     528000,        0,   102144, 0x48b1c27d
 1,     129360,     129360,     1484,     5936, 0xa0e3c9fc
-0,         89,         89,        1,   102144, 0xa611ef42
+0,     534000,     534000,        0,   102144, 0xa611ef42
 1,     130844,     130844,     1456,     5824, 0x18682a2f
-0,         90,         90,        1,   102144, 0x98627584
+0,     540000,     540000,        0,   102144, 0x98627584
 1,     132300,     132300,     1484,     5936, 0x89cea4ff
-0,         91,         91,        1,   102144, 0x43de7c75
+0,     546000,     546000,        0,   102144, 0x43de7c75
 1,     133784,     133784,     1456,     5824, 0x7dd22b85
-0,         92,         92,        1,   102144, 0xa9e22c68
+0,     552000,     552000,        0,   102144, 0xa9e22c68
 1,     135240,     135240,     1484,     5936, 0x8b2eeb8d
-0,         93,         93,        1,   102144, 0x84ac34d4
+0,     558000,     558000,        0,   102144, 0x84ac34d4
 1,     136724,     136724,     1456,     5824, 0x0c21af82
-0,         94,         94,        1,   102144, 0x6abd00ba
+0,     564000,     564000,        0,   102144, 0x6abd00ba
 1,     138180,     138180,     1484,     5936, 0x9c5a748d
-0,         95,         95,        1,   102144, 0x5d11066e
+0,     570000,     570000,        0,   102144, 0x5d11066e
 1,     139664,     139664,     1456,     5824, 0x1dc72c5c
-0,         96,         96,        1,   102144, 0xb6b083aa
+0,     576000,     576000,        0,   102144, 0xb6b083aa
 1,     141120,     141120,     1484,     5936, 0xe6129383
-0,         97,         97,        1,   102144, 0x5d152a11
+0,     582000,     582000,        0,   102144, 0x5d152a11
 1,     142604,     142604,     1456,     5824, 0x0a44312a
-0,         98,         98,        1,   102144, 0x0c0aec67
+0,     588000,     588000,        0,   102144, 0x0c0aec67
 1,     144060,     144060,     1484,     5936, 0x7ed30640
-0,         99,         99,        1,   102144, 0xa248bd10
+0,     594000,     594000,        0,   102144, 0xa248bd10
 1,     145544,     145544,     1456,     5824, 0xede15f25
-0,        100,        100,        1,   102144, 0x4e6c12cc
+0,     600000,     600000,        0,   102144, 0x4e6c12cc
 1,     147000,     147000,     1484,     5936, 0x0096d0f3
-0,        101,        101,        1,   102144, 0xca1d6753
+0,     606000,     606000,        0,   102144, 0xca1d6753
 1,     148484,     148484,     1456,     5824, 0x13764b4b
-0,        102,        102,        1,   102144, 0x116310c3
+0,     612000,     612000,        0,   102144, 0x116310c3
 1,     149940,     149940,     1484,     5936, 0xd4608756
-0,        103,        103,        1,   102144, 0x16903cd0
+0,     618000,     618000,        0,   102144, 0x16903cd0
 1,     151424,     151424,     1456,     5824, 0x254b5f2a
-0,        104,        104,        1,   102144, 0x239adfed
+0,     624000,     624000,        0,   102144, 0x239adfed
 1,     152880,     152880,     1484,     5936, 0x7705b830
-0,        105,        105,        1,   102144, 0x0970ce49
+0,     630000,     630000,        0,   102144, 0x0970ce49
 1,     154364,     154364,     1456,     5824, 0x64a63d78
-0,        106,        106,        1,   102144, 0xb628adc1
+0,     636000,     636000,        0,   102144, 0xb628adc1
 1,     155820,     155820,     1484,     5936, 0xc02d81a6
-0,        107,        107,        1,   102144, 0x473613f7
+0,     642000,     642000,        0,   102144, 0x473613f7
 1,     157304,     157304,     1456,     5824, 0xd239e55e
-0,        108,        108,        1,   102144, 0x3eef3987
+0,     648000,     648000,        0,   102144, 0x3eef3987
 1,     158760,     158760,     1484,     5936, 0x8018cd3a
-0,        109,        109,        1,   102144, 0x935b99ca
+0,     654000,     654000,        0,   102144, 0x935b99ca
 1,     160244,     160244,     1456,     5824, 0xf86b8a98
-0,        110,        110,        1,   102144, 0xb9f4d6ee
+0,     660000,     660000,        0,   102144, 0xb9f4d6ee
 1,     161700,     161700,     1484,     5936, 0x2a0078bc
-0,        111,        111,        1,   102144, 0xac811656
+0,     666000,     666000,        0,   102144, 0xac811656
 1,     163184,     163184,     1456,     5824, 0x058d4e1b
-0,        112,        112,        1,   102144, 0xd1f84af0
+0,     672000,     672000,        0,   102144, 0xd1f84af0
 1,     164640,     164640,     1484,     5936, 0xbc718309
-0,        113,        113,        1,   102144, 0xf2fd25f4
+0,     678000,     678000,        0,   102144, 0xf2fd25f4
 1,     166124,     166124,     1456,     5824, 0xaf6c29e5
-0,        114,        114,        1,   102144, 0x935bbed9
+0,     684000,     684000,        0,   102144, 0x935bbed9
 1,     167580,     167580,     1484,     5936, 0x80df004d
-0,        115,        115,        1,   102144, 0x8c8c3e53
+0,     690000,     690000,        0,   102144, 0x8c8c3e53
 1,     169064,     169064,     1456,     5824, 0xeca5aa57
-0,        116,        116,        1,   102144, 0x24afc20f
+0,     696000,     696000,        0,   102144, 0x24afc20f
 1,     170520,     170520,     1484,     5936, 0xb793a8f8
-0,        117,        117,        1,   102144, 0xad20a451
+0,     702000,     702000,        0,   102144, 0xad20a451
 1,     172004,     172004,     1456,     5824, 0x70fa6aff
-0,        118,        118,        1,   102144, 0xd1a0df13
+0,     708000,     708000,        0,   102144, 0xd1a0df13
 1,     173460,     173460,     1484,     5936, 0xda8d4cc6
-0,        119,        119,        1,   102144, 0xb0ee53f8
+0,     714000,     714000,        0,   102144, 0xb0ee53f8
 1,     174944,     174944,     1456,     5824, 0xa70088eb
-0,        120,        120,        1,   102144, 0x08cdb591
+0,     720000,     720000,        0,   102144, 0x08cdb591
 1,     176400,     176400,     1484,     5936, 0x1c0b0aab
-0,        121,        121,        1,   102144, 0x89b985b0
+0,     726000,     726000,        0,   102144, 0x89b985b0
 1,     177884,     177884,     1456,     5824, 0x234d2436
-0,        122,        122,        1,   102144, 0xdd27d51f
+0,     732000,     732000,        0,   102144, 0xdd27d51f
 1,     179340,     179340,     1484,     5936, 0xf79d731e
-0,        123,        123,        1,   102144, 0xa783fce0
+0,     738000,     738000,        0,   102144, 0xa783fce0
 1,     180824,     180824,     1456,     5824, 0x5a4e454a
-0,        124,        124,        1,   102144, 0xfe5602e8
+0,     744000,     744000,        0,   102144, 0xfe5602e8
 1,     182280,     182280,     1484,     5936, 0xccf6d042
-0,        125,        125,        1,   102144, 0xfb989934
+0,     750000,     750000,        0,   102144, 0xfb989934
 1,     183764,     183764,     1456,     5824, 0x4e524d14
-0,        126,        126,        1,   102144, 0xf857eb2b
+0,     756000,     756000,        0,   102144, 0xf857eb2b
 1,     185220,     185220,     1484,     5936, 0xf8f2fcc3
-0,        127,        127,        1,   102144, 0x987a7098
+0,     762000,     762000,        0,   102144, 0x987a7098
 1,     186704,     186704,     1456,     5824, 0x08f12491
-0,        128,        128,        1,   102144, 0xbc749f42
+0,     768000,     768000,        0,   102144, 0xbc749f42
 1,     188160,     188160,     1484,     5936, 0x506e0a42
-0,        129,        129,        1,   102144, 0x221e48a6
+0,     774000,     774000,        0,   102144, 0x221e48a6
 1,     189644,     189644,     1456,     5824, 0x7cf05049
-0,        130,        130,        1,   102144, 0x4c4b5da2
+0,     780000,     780000,        0,   102144, 0x4c4b5da2
 1,     191100,     191100,     1484,     5936, 0xdeb9d295
-0,        131,        131,        1,   102144, 0x32140027
+0,     786000,     786000,        0,   102144, 0x32140027
 1,     192584,     192584,     1456,     5824, 0x758ef642
-0,        132,        132,        1,   102144, 0xbeb4bf18
+0,     792000,     792000,        0,   102144, 0xbeb4bf18
 1,     194040,     194040,     1484,     5936, 0x91903980
-0,        133,        133,        1,   102144, 0x523012e5
+0,     798000,     798000,        0,   102144, 0x523012e5
diff --git a/tests/ref/fate/ea-mad-pcm-planar b/tests/ref/fate/ea-mad-pcm-planar
index baa846c..3c767fa 100644
--- a/tests/ref/fate/ea-mad-pcm-planar
+++ b/tests/ref/fate/ea-mad-pcm-planar
@@ -1,294 +1,294 @@
-#tb 0: 33/1000
+#tb 0: 1/90000
 #tb 1: 1/44100
-0,          0,          0,        1,   196608, 0x75d22292
+0,          0,          0,        0,   196608, 0x75d22292
 1,          0,          0,     1471,     5884, 0x00000000
-0,          1,          1,        1,   196608, 0x75d22292
+0,       2970,       2970,        0,   196608, 0x75d22292
 1,       1471,       1471,     1471,     5884, 0x00000000
-0,          2,          2,        1,   196608, 0x75d22292
+0,       5940,       5940,        0,   196608, 0x75d22292
 1,       2942,       2942,     1472,     5888, 0x00000000
-0,          3,          3,        1,   196608, 0x75d22292
+0,       8910,       8910,        0,   196608, 0x75d22292
 1,       4414,       4414,     1471,     5884, 0x00000000
-0,          4,          4,        1,   196608, 0x75d22292
+0,      11880,      11880,        0,   196608, 0x75d22292
 1,       5885,       5885,     1472,     5888, 0x00000000
-0,          5,          5,        1,   196608, 0x75d22292
+0,      14850,      14850,        0,   196608, 0x75d22292
 1,       7357,       7357,     1471,     5884, 0x00000000
-0,          6,          6,        1,   196608, 0x75d22292
+0,      17820,      17820,        0,   196608, 0x75d22292
 1,       8828,       8828,     1472,     5888, 0x00000000
-0,          7,          7,        1,   196608, 0x75d22292
+0,      20790,      20790,        0,   196608, 0x75d22292
 1,      10300,      10300,     1471,     5884, 0x00000000
-0,          8,          8,        1,   196608, 0x75d22292
+0,      23760,      23760,        0,   196608, 0x75d22292
 1,      11771,      11771,     1472,     5888, 0x00000000
-0,          9,          9,        1,   196608, 0xd3f66981
+0,      26730,      26730,        0,   196608, 0xd3f66981
 1,      13243,      13243,     1471,     5884, 0x00000000
-0,         10,         10,        1,   196608, 0xed37c4c3
+0,      29700,      29700,        0,   196608, 0xed37c4c3
 1,      14714,      14714,     1472,     5888, 0x174b2bd4
-0,         11,         11,        1,   196608, 0x6ce01dc4
+0,      32670,      32670,        0,   196608, 0x6ce01dc4
 1,      16186,      16186,     1471,     5884, 0xfab9563d
-0,         12,         12,        1,   196608, 0x2874fc9a
+0,      35640,      35640,        0,   196608, 0x2874fc9a
 1,      17657,      17657,     1472,     5888, 0x0129a4f5
-0,         13,         13,        1,   196608, 0x9b65bbc8
+0,      38610,      38610,        0,   196608, 0x9b65bbc8
 1,      19129,      19129,     1471,     5884, 0xf12b15dd
-0,         14,         14,        1,   196608, 0x8f9af811
+0,      41580,      41580,        0,   196608, 0x8f9af811
 1,      20600,      20600,     1472,     5888, 0x60c8c922
-0,         15,         15,        1,   196608, 0x04aeb0b0
+0,      44550,      44550,        0,   196608, 0x04aeb0b0
 1,      22072,      22072,     1471,     5884, 0x85693c81
-0,         16,         16,        1,   196608, 0x0df037a1
+0,      47520,      47520,        0,   196608, 0x0df037a1
 1,      23543,      23543,     1472,     5888, 0xcefcf0e0
-0,         17,         17,        1,   196608, 0xa32c5515
+0,      50490,      50490,        0,   196608, 0xa32c5515
 1,      25015,      25015,     1471,     5884, 0x243974ff
-0,         18,         18,        1,   196608, 0xf3b11a1b
+0,      53460,      53460,        0,   196608, 0xf3b11a1b
 1,      26486,      26486,     1471,     5884, 0x9101b901
-0,         19,         19,        1,   196608, 0xaf945190
+0,      56430,      56430,        0,   196608, 0xaf945190
 1,      27957,      27957,     1472,     5888, 0xe3c68cb9
-0,         20,         20,        1,   196608, 0xabee8b24
+0,      59400,      59400,        0,   196608, 0xabee8b24
 1,      29429,      29429,     1471,     5884, 0x80f2ff5f
-0,         21,         21,        1,   196608, 0x1d7b3df0
+0,      62370,      62370,        0,   196608, 0x1d7b3df0
 1,      30900,      30900,     1472,     5888, 0xfc2d19dc
-0,         22,         22,        1,   196608, 0x1347d787
+0,      65340,      65340,        0,   196608, 0x1347d787
 1,      32372,      32372,     1471,     5884, 0xb6e0af21
-0,         23,         23,        1,   196608, 0x654c4a9b
+0,      68310,      68310,        0,   196608, 0x654c4a9b
 1,      33843,      33843,     1472,     5888, 0x476e74ff
-0,         24,         24,        1,   196608, 0xa2a6596a
+0,      71280,      71280,        0,   196608, 0xa2a6596a
 1,      35315,      35315,     1471,     5884, 0x3921bc7f
-0,         25,         25,        1,   196608, 0x50d04d8e
+0,      74250,      74250,        0,   196608, 0x50d04d8e
 1,      36786,      36786,     1472,     5888, 0x44180a3f
-0,         26,         26,        1,   196608, 0x4f9f9352
+0,      77220,      77220,        0,   196608, 0x4f9f9352
 1,      38258,      38258,     1471,     5884, 0x01b5a119
-0,         27,         27,        1,   196608, 0xbb358281
+0,      80190,      80190,        0,   196608, 0xbb358281
 1,      39729,      39729,     1472,     5888, 0xdd7ad621
-0,         28,         28,        1,   196608, 0xcd91a50a
+0,      83160,      83160,        0,   196608, 0xcd91a50a
 1,      41201,      41201,     1471,     5884, 0xadabe898
-0,         29,         29,        1,   196608, 0xb665bb76
+0,      86130,      86130,        0,   196608, 0xb665bb76
 1,      42672,      42672,     1472,     5888, 0x2141ff8e
-0,         30,         30,        1,   196608, 0xec924ee7
+0,      89100,      89100,        0,   196608, 0xec924ee7
 1,      44144,      44144,     1471,     5884, 0xfb5118fb
-0,         31,         31,        1,   196608, 0x9c4aa4ad
+0,      92070,      92070,        0,   196608, 0x9c4aa4ad
 1,      45615,      45615,     1472,     5888, 0x06d31461
-0,         32,         32,        1,   196608, 0x27ccdf86
+0,      95040,      95040,        0,   196608, 0x27ccdf86
 1,      47087,      47087,     1471,     5884, 0x80ce34c1
-0,         33,         33,        1,   196608, 0x93778cc8
+0,      98010,      98010,        0,   196608, 0x93778cc8
 1,      48558,      48558,     1472,     5888, 0x72bf392f
-0,         34,         34,        1,   196608, 0x3d68e826
+0,     100980,     100980,        0,   196608, 0x3d68e826
 1,      50030,      50030,     1471,     5884, 0x9d9237cf
-0,         35,         35,        1,   196608, 0x9240b751
+0,     103950,     103950,        0,   196608, 0x9240b751
 1,      51501,      51501,     1471,     5884, 0xf5c9ce23
-0,         36,         36,        1,   196608, 0xd77ec46b
+0,     106920,     106920,        0,   196608, 0xd77ec46b
 1,      52972,      52972,     1472,     5888, 0x12a05dc5
-0,         37,         37,        1,   196608, 0x4a303ef1
+0,     109890,     109890,        0,   196608, 0x4a303ef1
 1,      54444,      54444,     1471,     5884, 0xd3ed5d4b
-0,         38,         38,        1,   196608, 0x2508bacf
+0,     112860,     112860,        0,   196608, 0x2508bacf
 1,      55915,      55915,     1472,     5888, 0x06557401
-0,         39,         39,        1,   196608, 0xb74cb5bf
+0,     115830,     115830,        0,   196608, 0xb74cb5bf
 1,      57387,      57387,     1471,     5884, 0x53d81662
-0,         40,         40,        1,   196608, 0x9c4a9719
+0,     118800,     118800,        0,   196608, 0x9c4a9719
 1,      58858,      58858,     1472,     5888, 0xd7e0d98d
-0,         41,         41,        1,   196608, 0xc34a7924
+0,     121770,     121770,        0,   196608, 0xc34a7924
 1,      60330,      60330,     1471,     5884, 0xdf00752e
-0,         42,         42,        1,   196608, 0x9d8428bd
+0,     124740,     124740,        0,   196608, 0x9d8428bd
 1,      61801,      61801,     1472,     5888, 0x82f1d7a9
-0,         43,         43,        1,   196608, 0x019eebf7
+0,     127710,     127710,        0,   196608, 0x019eebf7
 1,      63273,      63273,     1471,     5884, 0x9cb3aba9
-0,         44,         44,        1,   196608, 0x36e58d6b
+0,     130680,     130680,        0,   196608, 0x36e58d6b
 1,      64744,      64744,     1472,     5888, 0xd6f98e91
-0,         45,         45,        1,   196608, 0xc7038ceb
+0,     133650,     133650,        0,   196608, 0xc7038ceb
 1,      66216,      66216,     1471,     5884, 0xaa7f7c09
-0,         46,         46,        1,   196608, 0xb041fd50
+0,     136620,     136620,        0,   196608, 0xb041fd50
 1,      67687,      67687,     1472,     5888, 0xb97a82a7
-0,         47,         47,        1,   196608, 0x76934674
+0,     139590,     139590,        0,   196608, 0x76934674
 1,      69159,      69159,     1471,     5884, 0x375a3d53
-0,         48,         48,        1,   196608, 0x22afa88b
+0,     142560,     142560,        0,   196608, 0x22afa88b
 1,      70630,      70630,     1472,     5888, 0xa0a460cb
-0,         49,         49,        1,   196608, 0x22158960
+0,     145530,     145530,        0,   196608, 0x22158960
 1,      72102,      72102,     1471,     5884, 0xe05efbab
-0,         50,         50,        1,   196608, 0x75ab0895
+0,     148500,     148500,        0,   196608, 0x75ab0895
 1,      73573,      73573,     1472,     5888, 0x95e151f0
-0,         51,         51,        1,   196608, 0xcaab6c6d
+0,     151470,     151470,        0,   196608, 0xcaab6c6d
 1,      75045,      75045,     1471,     5884, 0x44ac688d
-0,         52,         52,        1,   196608, 0xe64d8b91
+0,     154440,     154440,        0,   196608, 0xe64d8b91
 1,      76516,      76516,     1471,     5884, 0xfc6d929f
-0,         53,         53,        1,   196608, 0x1e8aa17a
+0,     157410,     157410,        0,   196608, 0x1e8aa17a
 1,      77987,      77987,     1472,     5888, 0x6406c5f1
-0,         54,         54,        1,   196608, 0x7dd94fdb
+0,     160380,     160380,        0,   196608, 0x7dd94fdb
 1,      79459,      79459,     1471,     5884, 0x4ee9e48c
-0,         55,         55,        1,   196608, 0xab74566c
+0,     163350,     163350,        0,   196608, 0xab74566c
 1,      80930,      80930,     1472,     5888, 0xd55d43d0
-0,         56,         56,        1,   196608, 0xec962966
+0,     166320,     166320,        0,   196608, 0xec962966
 1,      82402,      82402,     1471,     5884, 0xcae69baf
-0,         57,         57,        1,   196608, 0xf5bfd751
+0,     169290,     169290,        0,   196608, 0xf5bfd751
 1,      83873,      83873,     1472,     5888, 0x4c01f1f5
-0,         58,         58,        1,   196608, 0xc7f46e0e
+0,     172260,     172260,        0,   196608, 0xc7f46e0e
 1,      85345,      85345,     1471,     5884, 0xf7d6dab6
-0,         59,         59,        1,   196608, 0xe641f676
+0,     175230,     175230,        0,   196608, 0xe641f676
 1,      86816,      86816,     1472,     5888, 0x1affdeb5
-0,         60,         60,        1,   196608, 0xea7c7b75
+0,     178200,     178200,        0,   196608, 0xea7c7b75
 1,      88288,      88288,     1471,     5884, 0x6db72487
-0,         61,         61,        1,   196608, 0x69120371
+0,     181170,     181170,        0,   196608, 0x69120371
 1,      89759,      89759,     1472,     5888, 0x4f344e49
-0,         62,         62,        1,   196608, 0xb2319175
+0,     184140,     184140,        0,   196608, 0xb2319175
 1,      91231,      91231,     1471,     5884, 0x2df3827b
-0,         63,         63,        1,   196608, 0xd2d73b56
+0,     187110,     187110,        0,   196608, 0xd2d73b56
 1,      92702,      92702,     1472,     5888, 0x1d1fc283
-0,         64,         64,        1,   196608, 0x74aafac0
+0,     190080,     190080,        0,   196608, 0x74aafac0
 1,      94174,      94174,     1471,     5884, 0x22eb1dd5
-0,         65,         65,        1,   196608, 0x15e8ddbc
+0,     193050,     193050,        0,   196608, 0x15e8ddbc
 1,      95645,      95645,     1472,     5888, 0x734e7093
-0,         66,         66,        1,   196608, 0xd4e2c90c
+0,     196020,     196020,        0,   196608, 0xd4e2c90c
 1,      97117,      97117,     1471,     5884, 0x357c9531
-0,         67,         67,        1,   196608, 0x86eaf31c
+0,     198990,     198990,        0,   196608, 0x86eaf31c
 1,      98588,      98588,     1472,     5888, 0x108c102d
-0,         68,         68,        1,   196608, 0x8004291b
+0,     201960,     201960,        0,   196608, 0x8004291b
 1,     100060,     100060,     1471,     5884, 0x96ad26c6
-0,         69,         69,        1,   196608, 0xbbf6954a
+0,     204930,     204930,        0,   196608, 0xbbf6954a
 1,     101531,     101531,     1472,     5888, 0x7bea1996
-0,         70,         70,        1,   196608, 0x2f24f0e1
+0,     207900,     207900,        0,   196608, 0x2f24f0e1
 1,     103003,     103003,     1471,     5884, 0x124a1f8e
-0,         71,         71,        1,   196608, 0x59d56dfb
+0,     210870,     210870,        0,   196608, 0x59d56dfb
 1,     104474,     104474,     1471,     5884, 0x08d272fb
-0,         72,         72,        1,   196608, 0x1377c9cb
+0,     213840,     213840,        0,   196608, 0x1377c9cb
 1,     105945,     105945,     1472,     5888, 0x88832c6b
-0,         73,         73,        1,   196608, 0x07582cc3
+0,     216810,     216810,        0,   196608, 0x07582cc3
 1,     107417,     107417,     1471,     5884, 0xedf41493
-0,         74,         74,        1,   196608, 0xa5a853fc
+0,     219780,     219780,        0,   196608, 0xa5a853fc
 1,     108888,     108888,     1472,     5888, 0xc4f226d7
-0,         75,         75,        1,   196608, 0x3b01856a
+0,     222750,     222750,        0,   196608, 0x3b01856a
 1,     110360,     110360,     1471,     5884, 0x97730397
-0,         76,         76,        1,   196608, 0x64927496
+0,     225720,     225720,        0,   196608, 0x64927496
 1,     111831,     111831,     1472,     5888, 0xbc3540e9
-0,         77,         77,        1,   196608, 0xf24c6f8a
+0,     228690,     228690,        0,   196608, 0xf24c6f8a
 1,     113303,     113303,     1471,     5884, 0x8adfa135
-0,         78,         78,        1,   196608, 0xc92c3c46
+0,     231660,     231660,        0,   196608, 0xc92c3c46
 1,     114774,     114774,     1472,     5888, 0x6d4be121
-0,         79,         79,        1,   196608, 0xa50d07fb
+0,     234630,     234630,        0,   196608, 0xa50d07fb
 1,     116246,     116246,     1471,     5884, 0xc3daea85
-0,         80,         80,        1,   196608, 0xb1d4a092
+0,     237600,     237600,        0,   196608, 0xb1d4a092
 1,     117717,     117717,     1472,     5888, 0x5498e9f0
-0,         81,         81,        1,   196608, 0x20c5526b
+0,     240570,     240570,        0,   196608, 0x20c5526b
 1,     119189,     119189,     1471,     5884, 0xa0eb691f
-0,         82,         82,        1,   196608, 0x6127fbbd
+0,     243540,     243540,        0,   196608, 0x6127fbbd
 1,     120660,     120660,     1472,     5888, 0x775c7c59
-0,         83,         83,        1,   196608, 0xc168a747
+0,     246510,     246510,        0,   196608, 0xc168a747
 1,     122132,     122132,     1471,     5884, 0x9f108fd1
-0,         84,         84,        1,   196608, 0x9c0d3241
+0,     249480,     249480,        0,   196608, 0x9c0d3241
 1,     123603,     123603,     1472,     5888, 0x72d53062
-0,         85,         85,        1,   196608, 0x5466dd21
+0,     252450,     252450,        0,   196608, 0x5466dd21
 1,     125075,     125075,     1471,     5884, 0x13a93faa
-0,         86,         86,        1,   196608, 0x5bba67cc
+0,     255420,     255420,        0,   196608, 0x5bba67cc
 1,     126546,     126546,     1472,     5888, 0x64773c8e
-0,         87,         87,        1,   196608, 0x4c1a1c18
+0,     258390,     258390,        0,   196608, 0x4c1a1c18
 1,     128018,     128018,     1471,     5884, 0xaf696999
-0,         88,         88,        1,   196608, 0x22c0a537
+0,     261360,     261360,        0,   196608, 0x22c0a537
 1,     129489,     129489,     1471,     5884, 0xf45e7e81
-0,         89,         89,        1,   196608, 0x4ffc5ea6
+0,     264330,     264330,        0,   196608, 0x4ffc5ea6
 1,     130960,     130960,     1472,     5888, 0x00000000
-0,         90,         90,        1,   196608, 0x7e8e2395
+0,     267300,     267300,        0,   196608, 0x7e8e2395
 1,     132432,     132432,     1471,     5884, 0x00000000
-0,         91,         91,        1,   196608, 0xa3b6f198
-0,         92,         92,        1,   196608, 0xf6aac4d1
+0,     270270,     270270,        0,   196608, 0xa3b6f198
+0,     273240,     273240,        0,   196608, 0xf6aac4d1
 1,     133903,     133903,     1472,     5888, 0x00000000
-0,         93,         93,        1,   196608, 0x1a6ea9ee
+0,     276210,     276210,        0,   196608, 0x1a6ea9ee
 1,     135375,     135375,     1471,     5884, 0x00000000
-0,         94,         94,        1,   196608, 0xfd729443
+0,     279180,     279180,        0,   196608, 0xfd729443
 1,     136846,     136846,     1472,     5888, 0x00000000
-0,         95,         95,        1,   196608, 0xc6a69012
+0,     282150,     282150,        0,   196608, 0xc6a69012
 1,     138318,     138318,     1471,     5884, 0x00000000
-0,         96,         96,        1,   196608, 0x576f9270
+0,     285120,     285120,        0,   196608, 0x576f9270
 1,     139789,     139789,     1472,     5888, 0x00000000
-0,         97,         97,        1,   196608, 0x0d539fe5
+0,     288090,     288090,        0,   196608, 0x0d539fe5
 1,     141261,     141261,     1471,     5884, 0x00000000
-0,         98,         98,        1,   196608, 0x191db7d6
+0,     291060,     291060,        0,   196608, 0x191db7d6
 1,     142732,     142732,     1472,     5888, 0x00000000
-0,         99,         99,        1,   196608, 0x80cddedd
+0,     294030,     294030,        0,   196608, 0x80cddedd
 1,     144204,     144204,     1471,     5884, 0x00000000
-0,        100,        100,        1,   196608, 0xccf5fd39
+0,     297000,     297000,        0,   196608, 0xccf5fd39
 1,     145675,     145675,     1472,     5888, 0x00000000
-0,        101,        101,        1,   196608, 0x521d33b6
+0,     299970,     299970,        0,   196608, 0x521d33b6
 1,     147147,     147147,     1471,     5884, 0x00000000
-0,        102,        102,        1,   196608, 0xb75e59ee
+0,     302940,     302940,        0,   196608, 0xb75e59ee
 1,     148618,     148618,     1472,     5888, 0x00000000
-0,        103,        103,        1,   196608, 0xbba68972
+0,     305910,     305910,        0,   196608, 0xbba68972
 1,     150090,     150090,     1471,     5884, 0x00000000
-0,        104,        104,        1,   196608, 0x368fb86a
+0,     308880,     308880,        0,   196608, 0x368fb86a
 1,     151561,     151561,     1472,     5888, 0x00000000
-0,        105,        105,        1,   196608, 0x99e6e94a
+0,     311850,     311850,        0,   196608, 0x99e6e94a
 1,     153033,     153033,     1471,     5884, 0x00000000
-0,        106,        106,        1,   196608, 0xe4021296
+0,     314820,     314820,        0,   196608, 0xe4021296
 1,     154504,     154504,     1471,     5884, 0x00000000
-0,        107,        107,        1,   196608, 0xbc993b10
+0,     317790,     317790,        0,   196608, 0xbc993b10
 1,     155975,     155975,     1472,     5888, 0x00000000
-0,        108,        108,        1,   196608, 0xf2765d22
+0,     320760,     320760,        0,   196608, 0xf2765d22
 1,     157447,     157447,     1471,     5884, 0x00000000
-0,        109,        109,        1,   196608, 0xc6257db5
+0,     323730,     323730,        0,   196608, 0xc6257db5
 1,     158918,     158918,     1472,     5888, 0x00000000
-0,        110,        110,        1,   196608, 0xa832782f
+0,     326700,     326700,        0,   196608, 0xa832782f
 1,     160390,     160390,     1471,     5884, 0x00000000
-0,        111,        111,        1,   196608, 0xa832782f
+0,     329670,     329670,        0,   196608, 0xa832782f
 1,     161861,     161861,     1472,     5888, 0x00000000
-0,        112,        112,        1,   196608, 0xa832782f
+0,     332640,     332640,        0,   196608, 0xa832782f
 1,     163333,     163333,     1471,     5884, 0x00000000
-0,        113,        113,        1,   196608, 0xa832782f
+0,     335610,     335610,        0,   196608, 0xa832782f
 1,     164804,     164804,     1472,     5888, 0x00000000
-0,        114,        114,        1,   196608, 0xa832782f
+0,     338580,     338580,        0,   196608, 0xa832782f
 1,     166276,     166276,     1471,     5884, 0x00000000
-0,        115,        115,        1,   196608, 0xa832782f
+0,     341550,     341550,        0,   196608, 0xa832782f
 1,     167747,     167747,     1472,     5888, 0x00000000
-0,        116,        116,        1,   196608, 0xa832782f
+0,     344520,     344520,        0,   196608, 0xa832782f
 1,     169219,     169219,     1471,     5884, 0x00000000
-0,        117,        117,        1,   196608, 0xa832782f
+0,     347490,     347490,        0,   196608, 0xa832782f
 1,     170690,     170690,     1472,     5888, 0x00000000
-0,        118,        118,        1,   196608, 0xa832782f
+0,     350460,     350460,        0,   196608, 0xa832782f
 1,     172162,     172162,     1471,     5884, 0xfe4b2bd4
-0,        119,        119,        1,   196608, 0xa832782f
+0,     353430,     353430,        0,   196608, 0xa832782f
 1,     173633,     173633,     1472,     5888, 0x00000000
-0,        120,        120,        1,   196608, 0xa832782f
+0,     356400,     356400,        0,   196608, 0xa832782f
 1,     175105,     175105,     1471,     5884, 0x00000000
-0,        121,        121,        1,   196608, 0xa832782f
+0,     359370,     359370,        0,   196608, 0xa832782f
 1,     176576,     176576,     1472,     5888, 0x00000000
-0,        122,        122,        1,   196608, 0xa832782f
+0,     362340,     362340,        0,   196608, 0xa832782f
 1,     178048,     178048,     1471,     5884, 0x00000000
-0,        123,        123,        1,   196608, 0xa832782f
+0,     365310,     365310,        0,   196608, 0xa832782f
 1,     179519,     179519,     1471,     5884, 0x00000000
-0,        124,        124,        1,   196608, 0xa832782f
+0,     368280,     368280,        0,   196608, 0xa832782f
 1,     180990,     180990,     1472,     5888, 0x00000000
-0,        125,        125,        1,   196608, 0xa832782f
+0,     371250,     371250,        0,   196608, 0xa832782f
 1,     182462,     182462,     1471,     5884, 0x00000000
-0,        126,        126,        1,   196608, 0xa832782f
+0,     374220,     374220,        0,   196608, 0xa832782f
 1,     183933,     183933,     1472,     5888, 0x00000000
-0,        127,        127,        1,   196608, 0xa832782f
+0,     377190,     377190,        0,   196608, 0xa832782f
 1,     185405,     185405,     1471,     5884, 0x00000000
-0,        128,        128,        1,   196608, 0xa832782f
+0,     380160,     380160,        0,   196608, 0xa832782f
 1,     186876,     186876,     1472,     5888, 0x00000000
-0,        129,        129,        1,   196608, 0xa832782f
+0,     383130,     383130,        0,   196608, 0xa832782f
 1,     188348,     188348,     1471,     5884, 0x00000000
-0,        130,        130,        1,   196608, 0xa832782f
+0,     386100,     386100,        0,   196608, 0xa832782f
 1,     189819,     189819,     1472,     5888, 0x00000000
-0,        131,        131,        1,   196608, 0xa832782f
+0,     389070,     389070,        0,   196608, 0xa832782f
 1,     191291,     191291,     1471,     5884, 0x00000000
-0,        132,        132,        1,   196608, 0xa832782f
+0,     392040,     392040,        0,   196608, 0xa832782f
 1,     192762,     192762,     1472,     5888, 0x00000000
-0,        133,        133,        1,   196608, 0xa832782f
+0,     395010,     395010,        0,   196608, 0xa832782f
 1,     194234,     194234,     1471,     5884, 0x00000000
-0,        134,        134,        1,   196608, 0xa832782f
+0,     397980,     397980,        0,   196608, 0xa832782f
 1,     195705,     195705,     1472,     5888, 0x00000000
-0,        135,        135,        1,   196608, 0xa832782f
+0,     400950,     400950,        0,   196608, 0xa832782f
 1,     197177,     197177,     1471,     5884, 0x00000000
-0,        136,        136,        1,   196608, 0xa832782f
+0,     403920,     403920,        0,   196608, 0xa832782f
 1,     198648,     198648,     1472,     5888, 0x00000000
-0,        137,        137,        1,   196608, 0xa832782f
+0,     406890,     406890,        0,   196608, 0xa832782f
 1,     200120,     200120,     1471,     5884, 0x00000000
-0,        138,        138,        1,   196608, 0xa832782f
+0,     409860,     409860,        0,   196608, 0xa832782f
 1,     201591,     201591,     1472,     5888, 0x00000000
-0,        139,        139,        1,   196608, 0xa832782f
+0,     412830,     412830,        0,   196608, 0xa832782f
 1,     203063,     203063,     1471,     5884, 0x00000000
-0,        140,        140,        1,   196608, 0xa832782f
+0,     415800,     415800,        0,   196608, 0xa832782f
 1,     204534,     204534,     1472,     5888, 0x00000000
-0,        141,        141,        1,   196608, 0xa832782f
+0,     418770,     418770,        0,   196608, 0xa832782f
 1,     206006,     206006,     1471,     5884, 0x00000000
-0,        142,        142,        1,   196608, 0xa832782f
+0,     421740,     421740,        0,   196608, 0xa832782f
 1,     207477,     207477,     1262,     5048, 0x00000000
-0,        143,        143,        1,   196608, 0xa832782f
-0,        144,        144,        1,   196608, 0xa832782f
-0,        145,        145,        1,   196608, 0xa832782f
-0,        146,        146,        1,   196608, 0xa832782f
-0,        147,        147,        1,   196608, 0xa832782f
-0,        148,        148,        1,   196608, 0xa832782f
-0,        149,        149,        1,   196608, 0xa832782f
+0,     424710,     424710,        0,   196608, 0xa832782f
+0,     427680,     427680,        0,   196608, 0xa832782f
+0,     430650,     430650,        0,   196608, 0xa832782f
+0,     433620,     433620,        0,   196608, 0xa832782f
+0,     436590,     436590,        0,   196608, 0xa832782f
+0,     439560,     439560,        0,   196608, 0xa832782f
+0,     442530,     442530,        0,   196608, 0xa832782f
diff --git a/tests/ref/fate/ea-tgq b/tests/ref/fate/ea-tgq
index 5c0648d..edb04fa 100644
--- a/tests/ref/fate/ea-tgq
+++ b/tests/ref/fate/ea-tgq
@@ -1,279 +1,279 @@
-#tb 0: 1/15
-0,          0,          0,        1,    34944, 0xe33671a4
-0,          1,          1,        1,    34944, 0xe33671a4
-0,          2,          2,        1,    34944, 0xe33671a4
-0,          3,          3,        1,    34944, 0xe33671a4
-0,          4,          4,        1,    34944, 0xe33671a4
-0,          5,          5,        1,    34944, 0xe33671a4
-0,          6,          6,        1,    34944, 0xe33671a4
-0,          7,          7,        1,    34944, 0xe33671a4
-0,          8,          8,        1,    34944, 0xe33671a4
-0,          9,          9,        1,    34944, 0xe33671a4
-0,         10,         10,        1,    34944, 0xe33671a4
-0,         11,         11,        1,    34944, 0xe33671a4
-0,         12,         12,        1,    34944, 0xe33671a4
-0,         13,         13,        1,    34944, 0xe33671a4
-0,         14,         14,        1,    34944, 0xe33671a4
-0,         15,         15,        1,    34944, 0x63196b41
-0,         16,         16,        1,    34944, 0x308d6f10
-0,         17,         17,        1,    34944, 0x86026ced
-0,         18,         18,        1,    34944, 0xaa6a6bc9
-0,         19,         19,        1,    34944, 0x58276ee3
-0,         20,         20,        1,    34944, 0x402d70c2
-0,         21,         21,        1,    34944, 0x948d74bf
-0,         22,         22,        1,    34944, 0x3d31759c
-0,         23,         23,        1,    34944, 0x638c734e
-0,         24,         24,        1,    34944, 0xe218768a
-0,         25,         25,        1,    34944, 0xed6678ff
-0,         26,         26,        1,    34944, 0x381b7dda
-0,         27,         27,        1,    34944, 0x216680e7
-0,         28,         28,        1,    34944, 0xaca5810f
-0,         29,         29,        1,    34944, 0xf70b81eb
-0,         30,         30,        1,    34944, 0x3675858b
-0,         31,         31,        1,    34944, 0xa51188c3
-0,         32,         32,        1,    34944, 0x3a848bf1
-0,         33,         33,        1,    34944, 0x67608d4d
-0,         34,         34,        1,    34944, 0xafe49165
-0,         35,         35,        1,    34944, 0x7e8a94a7
-0,         36,         36,        1,    34944, 0x3b889432
-0,         37,         37,        1,    34944, 0x97e89623
-0,         38,         38,        1,    34944, 0x07819793
-0,         39,         39,        1,    34944, 0xdac39b87
-0,         40,         40,        1,    34944, 0x4d8c9d93
-0,         41,         41,        1,    34944, 0xcf009fa7
-0,         42,         42,        1,    34944, 0x2f109f6e
-0,         43,         43,        1,    34944, 0xcedda4eb
-0,         44,         44,        1,    34944, 0xfe89a6df
-0,         45,         45,        1,    34944, 0x195ea7a9
-0,         46,         46,        1,    34944, 0x9287ab92
-0,         47,         47,        1,    34944, 0x6d21af54
-0,         48,         48,        1,    34944, 0xd627b28b
-0,         49,         49,        1,    34944, 0x3ad5b6fd
-0,         50,         50,        1,    34944, 0x5101b64d
-0,         51,         51,        1,    34944, 0xb968b8ca
-0,         52,         52,        1,    34944, 0xa105b74a
-0,         53,         53,        1,    34944, 0xc056bdd6
-0,         54,         54,        1,    34944, 0xec7fc1d9
-0,         55,         55,        1,    34944, 0x92c3c3e0
-0,         56,         56,        1,    34944, 0x9bffc45c
-0,         57,         57,        1,    34944, 0x5aabca4b
-0,         58,         58,        1,    34944, 0xcbdacb26
-0,         59,         59,        1,    34944, 0xed6cce3f
-0,         60,         60,        1,    34944, 0xcc61cfb8
-0,         61,         61,        1,    34944, 0x7a97d427
-0,         62,         62,        1,    34944, 0x7cdbd5ec
-0,         63,         63,        1,    34944, 0x5851d9c4
-0,         64,         64,        1,    34944, 0x69d5dd1d
-0,         65,         65,        1,    34944, 0xdf30dcf4
-0,         66,         66,        1,    34944, 0x2359e084
-0,         67,         67,        1,    34944, 0xe0bae491
-0,         68,         68,        1,    34944, 0xa716e4fd
-0,         69,         69,        1,    34944, 0xe48aeaf4
-0,         70,         70,        1,    34944, 0x0a0deb21
-0,         71,         71,        1,    34944, 0xe8a56e12
-0,         72,         72,        1,    34944, 0x0d72c98e
-0,         73,         73,        1,    34944, 0x71a7bb9d
-0,         74,         74,        1,    34944, 0xc0c8c108
-0,         75,         75,        1,    34944, 0x1d1fc3ba
-0,         76,         76,        1,    34944, 0xebcfc67f
-0,         77,         77,        1,    34944, 0x2921cb5b
-0,         78,         78,        1,    34944, 0x793ed099
-0,         79,         79,        1,    34944, 0xefebd9e8
-0,         80,         80,        1,    34944, 0x163c2330
-0,         81,         81,        1,    34944, 0x35155672
-0,         82,         82,        1,    34944, 0x05474e2e
-0,         83,         83,        1,    34944, 0x9433542f
-0,         84,         84,        1,    34944, 0x777d5a13
-0,         85,         85,        1,    34944, 0x87526776
-0,         86,         86,        1,    34944, 0x4c3c72c1
-0,         87,         87,        1,    34944, 0x70407b87
-0,         88,         88,        1,    34944, 0x2358861d
-0,         89,         89,        1,    34944, 0xec61923f
-0,         90,         90,        1,    34944, 0x0bb2a0d4
-0,         91,         91,        1,    34944, 0x6b6d8624
-0,         92,         92,        1,    34944, 0x624761ec
-0,         93,         93,        1,    34944, 0xff23b926
-0,         94,         94,        1,    34944, 0x07fc7ca5
-0,         95,         95,        1,    34944, 0xa8d3ffda
-0,         96,         96,        1,    34944, 0xa2d31265
-0,         97,         97,        1,    34944, 0x5e58225e
-0,         98,         98,        1,    34944, 0x284b2fb0
-0,         99,         99,        1,    34944, 0x205b3cb1
-0,        100,        100,        1,    34944, 0x3fa64a09
-0,        101,        101,        1,    34944, 0xa5de5097
-0,        102,        102,        1,    34944, 0x00686cea
-0,        103,        103,        1,    34944, 0x465a8282
-0,        104,        104,        1,    34944, 0x4ceb8189
-0,        105,        105,        1,    34944, 0x14698509
-0,        106,        106,        1,    34944, 0x232c830d
-0,        107,        107,        1,    34944, 0x0739807c
-0,        108,        108,        1,    34944, 0x83b0861e
-0,        109,        109,        1,    34944, 0xbdc094b1
-0,        110,        110,        1,    34944, 0xc4c0a605
-0,        111,        111,        1,    34944, 0x8376b059
-0,        112,        112,        1,    34944, 0x2035b939
-0,        113,        113,        1,    34944, 0xb6bfc812
-0,        114,        114,        1,    34944, 0xc5d4d5c4
-0,        115,        115,        1,    34944, 0x492c954e
-0,        116,        116,        1,    34944, 0xd23f0dcc
-0,        117,        117,        1,    34944, 0x22d7ff6c
-0,        118,        118,        1,    34944, 0xd08b4168
-0,        119,        119,        1,    34944, 0xa82e4062
-0,        120,        120,        1,    34944, 0xcc4f2f31
-0,        121,        121,        1,    34944, 0x964b0307
-0,        122,        122,        1,    34944, 0xe8130606
-0,        123,        123,        1,    34944, 0x5fb744bf
-0,        124,        124,        1,    34944, 0x1546a88b
-0,        125,        125,        1,    34944, 0xe6e4d94d
-0,        126,        126,        1,    34944, 0x8d1ea97e
-0,        127,        127,        1,    34944, 0x3bb1fb55
-0,        128,        128,        1,    34944, 0x3c37e9cc
-0,        129,        129,        1,    34944, 0xe2d22521
-0,        130,        130,        1,    34944, 0x7c0ec8cc
-0,        131,        131,        1,    34944, 0x7c2dc956
-0,        132,        132,        1,    34944, 0x7fe3c263
-0,        133,        133,        1,    34944, 0x9a65b813
-0,        134,        134,        1,    34944, 0x7ea7cb14
-0,        135,        135,        1,    34944, 0x31ded64e
-0,        136,        136,        1,    34944, 0x50f30ad1
-0,        137,        137,        1,    34944, 0x12eac45c
-0,        138,        138,        1,    34944, 0x984b6335
-0,        139,        139,        1,    34944, 0x3b9b02f0
-0,        140,        140,        1,    34944, 0x4629d2a4
-0,        141,        141,        1,    34944, 0x38687e89
-0,        142,        142,        1,    34944, 0xb76620fe
-0,        143,        143,        1,    34944, 0x66347155
-0,        144,        144,        1,    34944, 0x6e6bc297
-0,        145,        145,        1,    34944, 0x452a653a
-0,        146,        146,        1,    34944, 0x8c8a0683
-0,        147,        147,        1,    34944, 0xaf5d7c2d
-0,        148,        148,        1,    34944, 0x3064a7e1
-0,        149,        149,        1,    34944, 0xc0657fc4
-0,        150,        150,        1,    34944, 0x1f129266
-0,        151,        151,        1,    34944, 0x35adedfb
-0,        152,        152,        1,    34944, 0x40a3db0d
-0,        153,        153,        1,    34944, 0x87bebb37
-0,        154,        154,        1,    34944, 0x04d7ffed
-0,        155,        155,        1,    34944, 0x9bde3180
-0,        156,        156,        1,    34944, 0xc35c25bd
-0,        157,        157,        1,    34944, 0x820bf4bb
-0,        158,        158,        1,    34944, 0x876163ef
-0,        159,        159,        1,    34944, 0x3ab6dac0
-0,        160,        160,        1,    34944, 0x69a9ef73
-0,        161,        161,        1,    34944, 0x0df3813c
-0,        162,        162,        1,    34944, 0x1bba0947
-0,        163,        163,        1,    34944, 0x0b7883d4
-0,        164,        164,        1,    34944, 0xa9972f7e
-0,        165,        165,        1,    34944, 0x603d08fe
-0,        166,        166,        1,    34944, 0x05f4f111
-0,        167,        167,        1,    34944, 0xb24fdb42
-0,        168,        168,        1,    34944, 0xfe2ad344
-0,        169,        169,        1,    34944, 0xda4bcb8f
-0,        170,        170,        1,    34944, 0xd28aca6b
-0,        171,        171,        1,    34944, 0x9486c260
-0,        172,        172,        1,    34944, 0xad9fc04d
-0,        173,        173,        1,    34944, 0x9333c0ca
-0,        174,        174,        1,    34944, 0x96e9c226
-0,        175,        175,        1,    34944, 0x3e89bd6f
-0,        176,        176,        1,    34944, 0x7a2dbd32
-0,        177,        177,        1,    34944, 0xe578ba53
-0,        178,        178,        1,    34944, 0xb77ebab1
-0,        179,        179,        1,    34944, 0xd8bfbcb1
-0,        180,        180,        1,    34944, 0x15d9bc97
-0,        181,        181,        1,    34944, 0x09c3b9f0
-0,        182,        182,        1,    34944, 0xd8c8b944
-0,        183,        183,        1,    34944, 0x2c2fb996
-0,        184,        184,        1,    34944, 0xd7a8b7e7
-0,        185,        185,        1,    34944, 0xce34b843
-0,        186,        186,        1,    34944, 0xba69e9fd
-0,        187,        187,        1,    34944, 0x1b3f1adc
-0,        188,        188,        1,    34944, 0x48f515aa
-0,        189,        189,        1,    34944, 0x864e12bb
-0,        190,        190,        1,    34944, 0xca571996
-0,        191,        191,        1,    34944, 0x1d5a1af0
-0,        192,        192,        1,    34944, 0x3d1e171f
-0,        193,        193,        1,    34944, 0xb57417ca
-0,        194,        194,        1,    34944, 0x6e6d1e9d
-0,        195,        195,        1,    34944, 0xc9971899
-0,        196,        196,        1,    34944, 0xe0b112c8
-0,        197,        197,        1,    34944, 0x121b0cd9
-0,        198,        198,        1,    34944, 0x418e0eff
-0,        199,        199,        1,    34944, 0x9e1b07d8
-0,        200,        200,        1,    34944, 0x5590064a
-0,        201,        201,        1,    34944, 0x7a170b14
-0,        202,        202,        1,    34944, 0xf25709f0
-0,        203,        203,        1,    34944, 0x94fa099a
-0,        204,        204,        1,    34944, 0x081e06ae
-0,        205,        205,        1,    34944, 0xcfc40417
-0,        206,        206,        1,    34944, 0xed33096f
-0,        207,        207,        1,    34944, 0xd73a07e2
-0,        208,        208,        1,    34944, 0xc512077d
-0,        209,        209,        1,    34944, 0x27d7021d
-0,        210,        210,        1,    34944, 0xab59fd20
-0,        211,        211,        1,    34944, 0xcc2400b7
-0,        212,        212,        1,    34944, 0xcb3bfb99
-0,        213,        213,        1,    34944, 0x0974fb1a
-0,        214,        214,        1,    34944, 0xef79f8ba
-0,        215,        215,        1,    34944, 0xf932f3a2
-0,        216,        216,        1,    34944, 0xa32df1bc
-0,        217,        217,        1,    34944, 0xdbe0f532
-0,        218,        218,        1,    34944, 0x234cf142
-0,        219,        219,        1,    34944, 0xe68befd0
-0,        220,        220,        1,    34944, 0xe4e7ee45
-0,        221,        221,        1,    34944, 0x0283eff1
-0,        222,        222,        1,    34944, 0xc8d3f6db
-0,        223,        223,        1,    34944, 0x0aa6ee88
-0,        224,        224,        1,    34944, 0xcc3de527
-0,        225,        225,        1,    34944, 0x9db0ebef
-0,        226,        226,        1,    34944, 0xa207e9db
-0,        227,        227,        1,    34944, 0x35b3e74a
-0,        228,        228,        1,    34944, 0x1988e848
-0,        229,        229,        1,    34944, 0x727de73c
-0,        230,        230,        1,    34944, 0x05d5e709
-0,        231,        231,        1,    34944, 0x3214e4b2
-0,        232,        232,        1,    34944, 0xed85e0a9
-0,        233,        233,        1,    34944, 0xf6c9e100
-0,        234,        234,        1,    34944, 0x57a8dbaf
-0,        235,        235,        1,    34944, 0xc75fdf41
-0,        236,        236,        1,    34944, 0x736fde24
-0,        237,        237,        1,    34944, 0x8d4bde80
-0,        238,        238,        1,    34944, 0x3220dc86
-0,        239,        239,        1,    34944, 0xe498da85
-0,        240,        240,        1,    34944, 0x0655daed
-0,        241,        241,        1,    34944, 0xb22ad874
-0,        242,        242,        1,    34944, 0x8198d411
-0,        243,        243,        1,    34944, 0xd0d2d557
-0,        244,        244,        1,    34944, 0xd740d1ff
-0,        245,        245,        1,    34944, 0x2783d00e
-0,        246,        246,        1,    34944, 0x7abdcd6b
-0,        247,        247,        1,    34944, 0x2e47d1eb
-0,        248,        248,        1,    34944, 0xfe1bcf60
-0,        249,        249,        1,    34944, 0xf0f0d5bb
-0,        250,        250,        1,    34944, 0x9af7d581
-0,        251,        251,        1,    34944, 0xb325ca3d
-0,        252,        252,        1,    34944, 0xd88abfbd
-0,        253,        253,        1,    34944, 0xf2bab746
-0,        254,        254,        1,    34944, 0xac44a7dd
-0,        255,        255,        1,    34944, 0x609e9ea3
-0,        256,        256,        1,    34944, 0xa39993b9
-0,        257,        257,        1,    34944, 0x9c948911
-0,        258,        258,        1,    34944, 0x72f8822d
-0,        259,        259,        1,    34944, 0x7f3f7a8c
-0,        260,        260,        1,    34944, 0x7ab475f9
-0,        261,        261,        1,    34944, 0x536f73aa
-0,        262,        262,        1,    34944, 0x86cb71e5
-0,        263,        263,        1,    34944, 0x17157186
-0,        264,        264,        1,    34944, 0xe33671a4
-0,        265,        265,        1,    34944, 0xe33671a4
-0,        266,        266,        1,    34944, 0xe33671a4
-0,        267,        267,        1,    34944, 0xe33671a4
-0,        268,        268,        1,    34944, 0xe33671a4
-0,        269,        269,        1,    34944, 0xe33671a4
-0,        270,        270,        1,    34944, 0xe33671a4
-0,        271,        271,        1,    34944, 0xe33671a4
-0,        272,        272,        1,    34944, 0xe33671a4
-0,        273,        273,        1,    34944, 0xe33671a4
-0,        274,        274,        1,    34944, 0xe33671a4
-0,        275,        275,        1,    34944, 0xe33671a4
-0,        276,        276,        1,    34944, 0xe33671a4
-0,        277,        277,        1,    34944, 0xe33671a4
+#tb 0: 1/90000
+0,          0,          0,        0,    34944, 0xe33671a4
+0,       6000,       6000,        0,    34944, 0xe33671a4
+0,      12000,      12000,        0,    34944, 0xe33671a4
+0,      18000,      18000,        0,    34944, 0xe33671a4
+0,      24000,      24000,        0,    34944, 0xe33671a4
+0,      30000,      30000,        0,    34944, 0xe33671a4
+0,      36000,      36000,        0,    34944, 0xe33671a4
+0,      42000,      42000,        0,    34944, 0xe33671a4
+0,      48000,      48000,        0,    34944, 0xe33671a4
+0,      54000,      54000,        0,    34944, 0xe33671a4
+0,      60000,      60000,        0,    34944, 0xe33671a4
+0,      66000,      66000,        0,    34944, 0xe33671a4
+0,      72000,      72000,        0,    34944, 0xe33671a4
+0,      78000,      78000,        0,    34944, 0xe33671a4
+0,      84000,      84000,        0,    34944, 0xe33671a4
+0,      90000,      90000,        0,    34944, 0x63196b41
+0,      96000,      96000,        0,    34944, 0x308d6f10
+0,     102000,     102000,        0,    34944, 0x86026ced
+0,     108000,     108000,        0,    34944, 0xaa6a6bc9
+0,     114000,     114000,        0,    34944, 0x58276ee3
+0,     120000,     120000,        0,    34944, 0x402d70c2
+0,     126000,     126000,        0,    34944, 0x948d74bf
+0,     132000,     132000,        0,    34944, 0x3d31759c
+0,     138000,     138000,        0,    34944, 0x638c734e
+0,     144000,     144000,        0,    34944, 0xe218768a
+0,     150000,     150000,        0,    34944, 0xed6678ff
+0,     156000,     156000,        0,    34944, 0x381b7dda
+0,     162000,     162000,        0,    34944, 0x216680e7
+0,     168000,     168000,        0,    34944, 0xaca5810f
+0,     174000,     174000,        0,    34944, 0xf70b81eb
+0,     180000,     180000,        0,    34944, 0x3675858b
+0,     186000,     186000,        0,    34944, 0xa51188c3
+0,     192000,     192000,        0,    34944, 0x3a848bf1
+0,     198000,     198000,        0,    34944, 0x67608d4d
+0,     204000,     204000,        0,    34944, 0xafe49165
+0,     210000,     210000,        0,    34944, 0x7e8a94a7
+0,     216000,     216000,        0,    34944, 0x3b889432
+0,     222000,     222000,        0,    34944, 0x97e89623
+0,     228000,     228000,        0,    34944, 0x07819793
+0,     234000,     234000,        0,    34944, 0xdac39b87
+0,     240000,     240000,        0,    34944, 0x4d8c9d93
+0,     246000,     246000,        0,    34944, 0xcf009fa7
+0,     252000,     252000,        0,    34944, 0x2f109f6e
+0,     258000,     258000,        0,    34944, 0xcedda4eb
+0,     264000,     264000,        0,    34944, 0xfe89a6df
+0,     270000,     270000,        0,    34944, 0x195ea7a9
+0,     276000,     276000,        0,    34944, 0x9287ab92
+0,     282000,     282000,        0,    34944, 0x6d21af54
+0,     288000,     288000,        0,    34944, 0xd627b28b
+0,     294000,     294000,        0,    34944, 0x3ad5b6fd
+0,     300000,     300000,        0,    34944, 0x5101b64d
+0,     306000,     306000,        0,    34944, 0xb968b8ca
+0,     312000,     312000,        0,    34944, 0xa105b74a
+0,     318000,     318000,        0,    34944, 0xc056bdd6
+0,     324000,     324000,        0,    34944, 0xec7fc1d9
+0,     330000,     330000,        0,    34944, 0x92c3c3e0
+0,     336000,     336000,        0,    34944, 0x9bffc45c
+0,     342000,     342000,        0,    34944, 0x5aabca4b
+0,     348000,     348000,        0,    34944, 0xcbdacb26
+0,     354000,     354000,        0,    34944, 0xed6cce3f
+0,     360000,     360000,        0,    34944, 0xcc61cfb8
+0,     366000,     366000,        0,    34944, 0x7a97d427
+0,     372000,     372000,        0,    34944, 0x7cdbd5ec
+0,     378000,     378000,        0,    34944, 0x5851d9c4
+0,     384000,     384000,        0,    34944, 0x69d5dd1d
+0,     390000,     390000,        0,    34944, 0xdf30dcf4
+0,     396000,     396000,        0,    34944, 0x2359e084
+0,     402000,     402000,        0,    34944, 0xe0bae491
+0,     408000,     408000,        0,    34944, 0xa716e4fd
+0,     414000,     414000,        0,    34944, 0xe48aeaf4
+0,     420000,     420000,        0,    34944, 0x0a0deb21
+0,     426000,     426000,        0,    34944, 0xe8a56e12
+0,     432000,     432000,        0,    34944, 0x0d72c98e
+0,     438000,     438000,        0,    34944, 0x71a7bb9d
+0,     444000,     444000,        0,    34944, 0xc0c8c108
+0,     450000,     450000,        0,    34944, 0x1d1fc3ba
+0,     456000,     456000,        0,    34944, 0xebcfc67f
+0,     462000,     462000,        0,    34944, 0x2921cb5b
+0,     468000,     468000,        0,    34944, 0x793ed099
+0,     474000,     474000,        0,    34944, 0xefebd9e8
+0,     480000,     480000,        0,    34944, 0x163c2330
+0,     486000,     486000,        0,    34944, 0x35155672
+0,     492000,     492000,        0,    34944, 0x05474e2e
+0,     498000,     498000,        0,    34944, 0x9433542f
+0,     504000,     504000,        0,    34944, 0x777d5a13
+0,     510000,     510000,        0,    34944, 0x87526776
+0,     516000,     516000,        0,    34944, 0x4c3c72c1
+0,     522000,     522000,        0,    34944, 0x70407b87
+0,     528000,     528000,        0,    34944, 0x2358861d
+0,     534000,     534000,        0,    34944, 0xec61923f
+0,     540000,     540000,        0,    34944, 0x0bb2a0d4
+0,     546000,     546000,        0,    34944, 0x6b6d8624
+0,     552000,     552000,        0,    34944, 0x624761ec
+0,     558000,     558000,        0,    34944, 0xff23b926
+0,     564000,     564000,        0,    34944, 0x07fc7ca5
+0,     570000,     570000,        0,    34944, 0xa8d3ffda
+0,     576000,     576000,        0,    34944, 0xa2d31265
+0,     582000,     582000,        0,    34944, 0x5e58225e
+0,     588000,     588000,        0,    34944, 0x284b2fb0
+0,     594000,     594000,        0,    34944, 0x205b3cb1
+0,     600000,     600000,        0,    34944, 0x3fa64a09
+0,     606000,     606000,        0,    34944, 0xa5de5097
+0,     612000,     612000,        0,    34944, 0x00686cea
+0,     618000,     618000,        0,    34944, 0x465a8282
+0,     624000,     624000,        0,    34944, 0x4ceb8189
+0,     630000,     630000,        0,    34944, 0x14698509
+0,     636000,     636000,        0,    34944, 0x232c830d
+0,     642000,     642000,        0,    34944, 0x0739807c
+0,     648000,     648000,        0,    34944, 0x83b0861e
+0,     654000,     654000,        0,    34944, 0xbdc094b1
+0,     660000,     660000,        0,    34944, 0xc4c0a605
+0,     666000,     666000,        0,    34944, 0x8376b059
+0,     672000,     672000,        0,    34944, 0x2035b939
+0,     678000,     678000,        0,    34944, 0xb6bfc812
+0,     684000,     684000,        0,    34944, 0xc5d4d5c4
+0,     690000,     690000,        0,    34944, 0x492c954e
+0,     696000,     696000,        0,    34944, 0xd23f0dcc
+0,     702000,     702000,        0,    34944, 0x22d7ff6c
+0,     708000,     708000,        0,    34944, 0xd08b4168
+0,     714000,     714000,        0,    34944, 0xa82e4062
+0,     720000,     720000,        0,    34944, 0xcc4f2f31
+0,     726000,     726000,        0,    34944, 0x964b0307
+0,     732000,     732000,        0,    34944, 0xe8130606
+0,     738000,     738000,        0,    34944, 0x5fb744bf
+0,     744000,     744000,        0,    34944, 0x1546a88b
+0,     750000,     750000,        0,    34944, 0xe6e4d94d
+0,     756000,     756000,        0,    34944, 0x8d1ea97e
+0,     762000,     762000,        0,    34944, 0x3bb1fb55
+0,     768000,     768000,        0,    34944, 0x3c37e9cc
+0,     774000,     774000,        0,    34944, 0xe2d22521
+0,     780000,     780000,        0,    34944, 0x7c0ec8cc
+0,     786000,     786000,        0,    34944, 0x7c2dc956
+0,     792000,     792000,        0,    34944, 0x7fe3c263
+0,     798000,     798000,        0,    34944, 0x9a65b813
+0,     804000,     804000,        0,    34944, 0x7ea7cb14
+0,     810000,     810000,        0,    34944, 0x31ded64e
+0,     816000,     816000,        0,    34944, 0x50f30ad1
+0,     822000,     822000,        0,    34944, 0x12eac45c
+0,     828000,     828000,        0,    34944, 0x984b6335
+0,     834000,     834000,        0,    34944, 0x3b9b02f0
+0,     840000,     840000,        0,    34944, 0x4629d2a4
+0,     846000,     846000,        0,    34944, 0x38687e89
+0,     852000,     852000,        0,    34944, 0xb76620fe
+0,     858000,     858000,        0,    34944, 0x66347155
+0,     864000,     864000,        0,    34944, 0x6e6bc297
+0,     870000,     870000,        0,    34944, 0x452a653a
+0,     876000,     876000,        0,    34944, 0x8c8a0683
+0,     882000,     882000,        0,    34944, 0xaf5d7c2d
+0,     888000,     888000,        0,    34944, 0x3064a7e1
+0,     894000,     894000,        0,    34944, 0xc0657fc4
+0,     900000,     900000,        0,    34944, 0x1f129266
+0,     906000,     906000,        0,    34944, 0x35adedfb
+0,     912000,     912000,        0,    34944, 0x40a3db0d
+0,     918000,     918000,        0,    34944, 0x87bebb37
+0,     924000,     924000,        0,    34944, 0x04d7ffed
+0,     930000,     930000,        0,    34944, 0x9bde3180
+0,     936000,     936000,        0,    34944, 0xc35c25bd
+0,     942000,     942000,        0,    34944, 0x820bf4bb
+0,     948000,     948000,        0,    34944, 0x876163ef
+0,     954000,     954000,        0,    34944, 0x3ab6dac0
+0,     960000,     960000,        0,    34944, 0x69a9ef73
+0,     966000,     966000,        0,    34944, 0x0df3813c
+0,     972000,     972000,        0,    34944, 0x1bba0947
+0,     978000,     978000,        0,    34944, 0x0b7883d4
+0,     984000,     984000,        0,    34944, 0xa9972f7e
+0,     990000,     990000,        0,    34944, 0x603d08fe
+0,     996000,     996000,        0,    34944, 0x05f4f111
+0,    1002000,    1002000,        0,    34944, 0xb24fdb42
+0,    1008000,    1008000,        0,    34944, 0xfe2ad344
+0,    1014000,    1014000,        0,    34944, 0xda4bcb8f
+0,    1020000,    1020000,        0,    34944, 0xd28aca6b
+0,    1026000,    1026000,        0,    34944, 0x9486c260
+0,    1032000,    1032000,        0,    34944, 0xad9fc04d
+0,    1038000,    1038000,        0,    34944, 0x9333c0ca
+0,    1044000,    1044000,        0,    34944, 0x96e9c226
+0,    1050000,    1050000,        0,    34944, 0x3e89bd6f
+0,    1056000,    1056000,        0,    34944, 0x7a2dbd32
+0,    1062000,    1062000,        0,    34944, 0xe578ba53
+0,    1068000,    1068000,        0,    34944, 0xb77ebab1
+0,    1074000,    1074000,        0,    34944, 0xd8bfbcb1
+0,    1080000,    1080000,        0,    34944, 0x15d9bc97
+0,    1086000,    1086000,        0,    34944, 0x09c3b9f0
+0,    1092000,    1092000,        0,    34944, 0xd8c8b944
+0,    1098000,    1098000,        0,    34944, 0x2c2fb996
+0,    1104000,    1104000,        0,    34944, 0xd7a8b7e7
+0,    1110000,    1110000,        0,    34944, 0xce34b843
+0,    1116000,    1116000,        0,    34944, 0xba69e9fd
+0,    1122000,    1122000,        0,    34944, 0x1b3f1adc
+0,    1128000,    1128000,        0,    34944, 0x48f515aa
+0,    1134000,    1134000,        0,    34944, 0x864e12bb
+0,    1140000,    1140000,        0,    34944, 0xca571996
+0,    1146000,    1146000,        0,    34944, 0x1d5a1af0
+0,    1152000,    1152000,        0,    34944, 0x3d1e171f
+0,    1158000,    1158000,        0,    34944, 0xb57417ca
+0,    1164000,    1164000,        0,    34944, 0x6e6d1e9d
+0,    1170000,    1170000,        0,    34944, 0xc9971899
+0,    1176000,    1176000,        0,    34944, 0xe0b112c8
+0,    1182000,    1182000,        0,    34944, 0x121b0cd9
+0,    1188000,    1188000,        0,    34944, 0x418e0eff
+0,    1194000,    1194000,        0,    34944, 0x9e1b07d8
+0,    1200000,    1200000,        0,    34944, 0x5590064a
+0,    1206000,    1206000,        0,    34944, 0x7a170b14
+0,    1212000,    1212000,        0,    34944, 0xf25709f0
+0,    1218000,    1218000,        0,    34944, 0x94fa099a
+0,    1224000,    1224000,        0,    34944, 0x081e06ae
+0,    1230000,    1230000,        0,    34944, 0xcfc40417
+0,    1236000,    1236000,        0,    34944, 0xed33096f
+0,    1242000,    1242000,        0,    34944, 0xd73a07e2
+0,    1248000,    1248000,        0,    34944, 0xc512077d
+0,    1254000,    1254000,        0,    34944, 0x27d7021d
+0,    1260000,    1260000,        0,    34944, 0xab59fd20
+0,    1266000,    1266000,        0,    34944, 0xcc2400b7
+0,    1272000,    1272000,        0,    34944, 0xcb3bfb99
+0,    1278000,    1278000,        0,    34944, 0x0974fb1a
+0,    1284000,    1284000,        0,    34944, 0xef79f8ba
+0,    1290000,    1290000,        0,    34944, 0xf932f3a2
+0,    1296000,    1296000,        0,    34944, 0xa32df1bc
+0,    1302000,    1302000,        0,    34944, 0xdbe0f532
+0,    1308000,    1308000,        0,    34944, 0x234cf142
+0,    1314000,    1314000,        0,    34944, 0xe68befd0
+0,    1320000,    1320000,        0,    34944, 0xe4e7ee45
+0,    1326000,    1326000,        0,    34944, 0x0283eff1
+0,    1332000,    1332000,        0,    34944, 0xc8d3f6db
+0,    1338000,    1338000,        0,    34944, 0x0aa6ee88
+0,    1344000,    1344000,        0,    34944, 0xcc3de527
+0,    1350000,    1350000,        0,    34944, 0x9db0ebef
+0,    1356000,    1356000,        0,    34944, 0xa207e9db
+0,    1362000,    1362000,        0,    34944, 0x35b3e74a
+0,    1368000,    1368000,        0,    34944, 0x1988e848
+0,    1374000,    1374000,        0,    34944, 0x727de73c
+0,    1380000,    1380000,        0,    34944, 0x05d5e709
+0,    1386000,    1386000,        0,    34944, 0x3214e4b2
+0,    1392000,    1392000,        0,    34944, 0xed85e0a9
+0,    1398000,    1398000,        0,    34944, 0xf6c9e100
+0,    1404000,    1404000,        0,    34944, 0x57a8dbaf
+0,    1410000,    1410000,        0,    34944, 0xc75fdf41
+0,    1416000,    1416000,        0,    34944, 0x736fde24
+0,    1422000,    1422000,        0,    34944, 0x8d4bde80
+0,    1428000,    1428000,        0,    34944, 0x3220dc86
+0,    1434000,    1434000,        0,    34944, 0xe498da85
+0,    1440000,    1440000,        0,    34944, 0x0655daed
+0,    1446000,    1446000,        0,    34944, 0xb22ad874
+0,    1452000,    1452000,        0,    34944, 0x8198d411
+0,    1458000,    1458000,        0,    34944, 0xd0d2d557
+0,    1464000,    1464000,        0,    34944, 0xd740d1ff
+0,    1470000,    1470000,        0,    34944, 0x2783d00e
+0,    1476000,    1476000,        0,    34944, 0x7abdcd6b
+0,    1482000,    1482000,        0,    34944, 0x2e47d1eb
+0,    1488000,    1488000,        0,    34944, 0xfe1bcf60
+0,    1494000,    1494000,        0,    34944, 0xf0f0d5bb
+0,    1500000,    1500000,        0,    34944, 0x9af7d581
+0,    1506000,    1506000,        0,    34944, 0xb325ca3d
+0,    1512000,    1512000,        0,    34944, 0xd88abfbd
+0,    1518000,    1518000,        0,    34944, 0xf2bab746
+0,    1524000,    1524000,        0,    34944, 0xac44a7dd
+0,    1530000,    1530000,        0,    34944, 0x609e9ea3
+0,    1536000,    1536000,        0,    34944, 0xa39993b9
+0,    1542000,    1542000,        0,    34944, 0x9c948911
+0,    1548000,    1548000,        0,    34944, 0x72f8822d
+0,    1554000,    1554000,        0,    34944, 0x7f3f7a8c
+0,    1560000,    1560000,        0,    34944, 0x7ab475f9
+0,    1566000,    1566000,        0,    34944, 0x536f73aa
+0,    1572000,    1572000,        0,    34944, 0x86cb71e5
+0,    1578000,    1578000,        0,    34944, 0x17157186
+0,    1584000,    1584000,        0,    34944, 0xe33671a4
+0,    1590000,    1590000,        0,    34944, 0xe33671a4
+0,    1596000,    1596000,        0,    34944, 0xe33671a4
+0,    1602000,    1602000,        0,    34944, 0xe33671a4
+0,    1608000,    1608000,        0,    34944, 0xe33671a4
+0,    1614000,    1614000,        0,    34944, 0xe33671a4
+0,    1620000,    1620000,        0,    34944, 0xe33671a4
+0,    1626000,    1626000,        0,    34944, 0xe33671a4
+0,    1632000,    1632000,        0,    34944, 0xe33671a4
+0,    1638000,    1638000,        0,    34944, 0xe33671a4
+0,    1644000,    1644000,        0,    34944, 0xe33671a4
+0,    1650000,    1650000,        0,    34944, 0xe33671a4
+0,    1656000,    1656000,        0,    34944, 0xe33671a4
+0,    1662000,    1662000,        0,    34944, 0xe33671a4
diff --git a/tests/ref/fate/ea-tgv-ima-ea-eacs b/tests/ref/fate/ea-tgv-ima-ea-eacs
index 1814e3c..6f7964a 100644
--- a/tests/ref/fate/ea-tgv-ima-ea-eacs
+++ b/tests/ref/fate/ea-tgv-ima-ea-eacs
@@ -1,96 +1,96 @@
-#tb 0: 1/15
+#tb 0: 1/90000
 #tb 1: 1/22050
-0,          0,          0,        1,   230400, 0xfbf2581e
+0,          0,          0,        0,   230400, 0xfbf2581e
 1,          0,          0,     1468,     5872, 0x00000000
 1,       1468,       1468,     1468,     5872, 0x00000000
-0,          1,          1,        1,   230400, 0xfbf2581e
+0,       6000,       6000,        0,   230400, 0xfbf2581e
 1,       2936,       2936,     1468,     5872, 0x00000000
-0,          2,          2,        1,   230400, 0xfbf2581e
+0,      12000,      12000,        0,   230400, 0xfbf2581e
 1,       4404,       4404,     1468,     5872, 0x00000000
-0,          3,          3,        1,   230400, 0xfbf2581e
+0,      18000,      18000,        0,   230400, 0xfbf2581e
 1,       5872,       5872,     1468,     5872, 0x00000000
-0,          4,          4,        1,   230400, 0xfbf2581e
+0,      24000,      24000,        0,   230400, 0xfbf2581e
 1,       7340,       7340,     1468,     5872, 0x00000000
-0,          5,          5,        1,   230400, 0xfbf2581e
+0,      30000,      30000,        0,   230400, 0xfbf2581e
 1,       8808,       8808,     1468,     5872, 0x00000000
-0,          6,          6,        1,   230400, 0xfbf2581e
+0,      36000,      36000,        0,   230400, 0xfbf2581e
 1,      10276,      10276,     1468,     5872, 0x00000000
-0,          7,          7,        1,   230400, 0xfbf2581e
+0,      42000,      42000,        0,   230400, 0xfbf2581e
 1,      11744,      11744,     1468,     5872, 0x00000000
-0,          8,          8,        1,   230400, 0xfbf2581e
+0,      48000,      48000,        0,   230400, 0xfbf2581e
 1,      13212,      13212,     1468,     5872, 0x00000000
-0,          9,          9,        1,   230400, 0xfbf2581e
+0,      54000,      54000,        0,   230400, 0xfbf2581e
 1,      14680,      14680,     1468,     5872, 0x00000000
-0,         10,         10,        1,   230400, 0xfbf2581e
+0,      60000,      60000,        0,   230400, 0xfbf2581e
 1,      16148,      16148,     1468,     5872, 0x00000000
-0,         11,         11,        1,   230400, 0xfbf2581e
+0,      66000,      66000,        0,   230400, 0xfbf2581e
 1,      17616,      17616,     1468,     5872, 0x00000000
-0,         12,         12,        1,   230400, 0xfbf2581e
+0,      72000,      72000,        0,   230400, 0xfbf2581e
 1,      19084,      19084,     1468,     5872, 0x00000000
-0,         13,         13,        1,   230400, 0xfbf2581e
+0,      78000,      78000,        0,   230400, 0xfbf2581e
 1,      20552,      20552,     1468,     5872, 0x00000000
-0,         14,         14,        1,   230400, 0xfbf2581e
+0,      84000,      84000,        0,   230400, 0xfbf2581e
 1,      22020,      22020,     1468,     5872, 0xc6f64777
-0,         15,         15,        1,   230400, 0xf5a0a21d
+0,      90000,      90000,        0,   230400, 0xf5a0a21d
 1,      23488,      23488,     1468,     5872, 0x7c9e60e8
-0,         16,         16,        1,   230400, 0x909cc039
+0,      96000,      96000,        0,   230400, 0x909cc039
 1,      24956,      24956,     1468,     5872, 0x46525c54
-0,         17,         17,        1,   230400, 0x14d899dd
+0,     102000,     102000,        0,   230400, 0x14d899dd
 1,      26424,      26424,     1468,     5872, 0x842796bb
-0,         18,         18,        1,   230400, 0x0d246edf
+0,     108000,     108000,        0,   230400, 0x0d246edf
 1,      27892,      27892,     1468,     5872, 0xb1f6cbd5
-0,         19,         19,        1,   230400, 0x5345fe0d
+0,     114000,     114000,        0,   230400, 0x5345fe0d
 1,      29360,      29360,     1468,     5872, 0x0261a74b
-0,         20,         20,        1,   230400, 0x5abdff9a
+0,     120000,     120000,        0,   230400, 0x5abdff9a
 1,      30828,      30828,     1468,     5872, 0x8218b1f9
-0,         21,         21,        1,   230400, 0x1730d973
+0,     126000,     126000,        0,   230400, 0x1730d973
 1,      32296,      32296,     1468,     5872, 0xd7a2cae6
-0,         22,         22,        1,   230400, 0xec881be9
+0,     132000,     132000,        0,   230400, 0xec881be9
 1,      33764,      33764,     1468,     5872, 0x69d34562
-0,         23,         23,        1,   230400, 0xf4216895
+0,     138000,     138000,        0,   230400, 0xf4216895
 1,      35232,      35232,     1468,     5872, 0x9303ec65
-0,         24,         24,        1,   230400, 0x529d7a52
+0,     144000,     144000,        0,   230400, 0x529d7a52
 1,      36700,      36700,     1468,     5872, 0xd5d963a1
-0,         25,         25,        1,   230400, 0x93b4c7b9
+0,     150000,     150000,        0,   230400, 0x93b4c7b9
 1,      38168,      38168,     1468,     5872, 0x0557e06f
-0,         26,         26,        1,   230400, 0xedc65bcd
+0,     156000,     156000,        0,   230400, 0xedc65bcd
 1,      39636,      39636,     1468,     5872, 0x1eb48b41
-0,         27,         27,        1,   230400, 0xf0fb54ae
+0,     162000,     162000,        0,   230400, 0xf0fb54ae
 1,      41104,      41104,     1468,     5872, 0x70f5ca3f
-0,         28,         28,        1,   230400, 0x27864ce9
+0,     168000,     168000,        0,   230400, 0x27864ce9
 1,      42572,      42572,     1468,     5872, 0xd39e5c5e
-0,         29,         29,        1,   230400, 0xcd05012d
+0,     174000,     174000,        0,   230400, 0xcd05012d
 1,      44040,      44040,     1468,     5872, 0x29c59140
-0,         30,         30,        1,   230400, 0x019b6d84
+0,     180000,     180000,        0,   230400, 0x019b6d84
 1,      45508,      45508,     1468,     5872, 0x7d95e643
-0,         31,         31,        1,   230400, 0xcc05d416
+0,     186000,     186000,        0,   230400, 0xcc05d416
 1,      46976,      46976,     1468,     5872, 0x45353fd8
-0,         32,         32,        1,   230400, 0xb04c0248
+0,     192000,     192000,        0,   230400, 0xb04c0248
 1,      48444,      48444,     1468,     5872, 0xad7b1b27
-0,         33,         33,        1,   230400, 0x6806eb92
+0,     198000,     198000,        0,   230400, 0x6806eb92
 1,      49912,      49912,     1468,     5872, 0x1f0377b3
-0,         34,         34,        1,   230400, 0x60e9c001
+0,     204000,     204000,        0,   230400, 0x60e9c001
 1,      51380,      51380,     1468,     5872, 0x6074541e
-0,         35,         35,        1,   230400, 0x9b040261
+0,     210000,     210000,        0,   230400, 0x9b040261
 1,      52848,      52848,     1468,     5872, 0xa4f5e892
-0,         36,         36,        1,   230400, 0x6961fb90
+0,     216000,     216000,        0,   230400, 0x6961fb90
 1,      54316,      54316,     1468,     5872, 0x084bc696
-0,         37,         37,        1,   230400, 0xbf67ad24
+0,     222000,     222000,        0,   230400, 0xbf67ad24
 1,      55784,      55784,     1468,     5872, 0x67fdafce
-0,         38,         38,        1,   230400, 0x2270f328
+0,     228000,     228000,        0,   230400, 0x2270f328
 1,      57252,      57252,     1468,     5872, 0x8dfd249d
-0,         39,         39,        1,   230400, 0xd0c345f6
+0,     234000,     234000,        0,   230400, 0xd0c345f6
 1,      58720,      58720,     1468,     5872, 0x514184ee
-0,         40,         40,        1,   230400, 0xfd159212
+0,     240000,     240000,        0,   230400, 0xfd159212
 1,      60188,      60188,     1468,     5872, 0xc0090b0d
-0,         41,         41,        1,   230400, 0x085578ff
+0,     246000,     246000,        0,   230400, 0x085578ff
 1,      61656,      61656,     1468,     5872, 0xc1171cc8
-0,         42,         42,        1,   230400, 0xcca8afa6
+0,     252000,     252000,        0,   230400, 0xcca8afa6
 1,      63124,      63124,     1468,     5872, 0x7d7dd07e
-0,         43,         43,        1,   230400, 0x901ec91c
+0,     258000,     258000,        0,   230400, 0x901ec91c
 1,      64592,      64592,     1468,     5872, 0xe6aa619c
-0,         44,         44,        1,   230400, 0xf1cb99f3
+0,     264000,     264000,        0,   230400, 0xf1cb99f3
 1,      66060,      66060,     1468,     5872, 0xd5aac0df
-0,         45,         45,        1,   230400, 0x86d98f0c
+0,     270000,     270000,        0,   230400, 0x86d98f0c
 1,      67528,      67528,     1468,     5872, 0x3b68b390
-0,         46,         46,        1,   230400, 0x52970700
+0,     276000,     276000,        0,   230400, 0x52970700
diff --git a/tests/ref/fate/ea-tgv-ima-ea-sead b/tests/ref/fate/ea-tgv-ima-ea-sead
index bfc9cb5..c04faa9 100644
--- a/tests/ref/fate/ea-tgv-ima-ea-sead
+++ b/tests/ref/fate/ea-tgv-ima-ea-sead
@@ -1,81 +1,81 @@
-#tb 0: 1/15
+#tb 0: 1/90000
 #tb 1: 1/22050
-0,          0,          0,        1,   192000, 0xdfc2f225
+0,          0,          0,        0,   192000, 0xdfc2f225
 1,          0,          0,      736,     2944, 0x00000000
 1,        736,        736,     1472,     5888, 0x5ae3c2a4
-0,          1,          1,        1,   192000, 0x059b57bd
+0,       6000,       6000,        0,   192000, 0x059b57bd
 1,       2208,       2208,     1472,     5888, 0x158fbcb4
-0,          2,          2,        1,   192000, 0x766cb086
+0,      12000,      12000,        0,   192000, 0x766cb086
 1,       3680,       3680,     1472,     5888, 0x3fc85d35
-0,          3,          3,        1,   192000, 0x459e3bac
+0,      18000,      18000,        0,   192000, 0x459e3bac
 1,       5152,       5152,     1472,     5888, 0x4667ec2b
-0,          4,          4,        1,   192000, 0x5293e622
+0,      24000,      24000,        0,   192000, 0x5293e622
 1,       6624,       6624,     1472,     5888, 0x82744494
-0,          5,          5,        1,   192000, 0x898b03f4
+0,      30000,      30000,        0,   192000, 0x898b03f4
 1,       8096,       8096,     1472,     5888, 0x3b0cb86f
-0,          6,          6,        1,   192000, 0xb184a627
+0,      36000,      36000,        0,   192000, 0xb184a627
 1,       9568,       9568,     1472,     5888, 0x29493fbb
-0,          7,          7,        1,   192000, 0xa3fc650a
+0,      42000,      42000,        0,   192000, 0xa3fc650a
 1,      11040,      11040,     1472,     5888, 0xaa2d8595
-0,          8,          8,        1,   192000, 0xea448589
+0,      48000,      48000,        0,   192000, 0xea448589
 1,      12512,      12512,     1472,     5888, 0x2e563de6
-0,          9,          9,        1,   192000, 0x700e2b76
+0,      54000,      54000,        0,   192000, 0x700e2b76
 1,      13984,      13984,     1472,     5888, 0x225cca99
-0,         10,         10,        1,   192000, 0xa1a1d66d
+0,      60000,      60000,        0,   192000, 0xa1a1d66d
 1,      15456,      15456,     1472,     5888, 0x2b577599
-0,         11,         11,        1,   192000, 0xd63bc8a1
+0,      66000,      66000,        0,   192000, 0xd63bc8a1
 1,      16928,      16928,     1472,     5888, 0x3d967f32
-0,         12,         12,        1,   192000, 0x5f08c023
+0,      72000,      72000,        0,   192000, 0x5f08c023
 1,      18400,      18400,     1472,     5888, 0x16639a84
-0,         13,         13,        1,   192000, 0x8b75ec3b
+0,      78000,      78000,        0,   192000, 0x8b75ec3b
 1,      19872,      19872,     1472,     5888, 0x90549ba0
-0,         14,         14,        1,   192000, 0x62728ce4
+0,      84000,      84000,        0,   192000, 0x62728ce4
 1,      21344,      21344,     1472,     5888, 0xf46e6644
-0,         15,         15,        1,   192000, 0xaa007941
+0,      90000,      90000,        0,   192000, 0xaa007941
 1,      22816,      22816,     1472,     5888, 0x39a073ec
-0,         16,         16,        1,   192000, 0x55dc5b3b
+0,      96000,      96000,        0,   192000, 0x55dc5b3b
 1,      24288,      24288,     1472,     5888, 0xb1d7a93a
-0,         17,         17,        1,   192000, 0x72d836c2
+0,     102000,     102000,        0,   192000, 0x72d836c2
 1,      25760,      25760,     1472,     5888, 0x25e9795b
-0,         18,         18,        1,   192000, 0x1f2de2fc
+0,     108000,     108000,        0,   192000, 0x1f2de2fc
 1,      27232,      27232,     1472,     5888, 0xbbc07644
-0,         19,         19,        1,   192000, 0xb295dfdb
+0,     114000,     114000,        0,   192000, 0xb295dfdb
 1,      28704,      28704,     1472,     5888, 0x323f6a1b
-0,         20,         20,        1,   192000, 0xe5c5f634
+0,     120000,     120000,        0,   192000, 0xe5c5f634
 1,      30176,      30176,     1472,     5888, 0x7cae130b
-0,         21,         21,        1,   192000, 0x455a0464
+0,     126000,     126000,        0,   192000, 0x455a0464
 1,      31648,      31648,     1472,     5888, 0xd23bf9c6
-0,         22,         22,        1,   192000, 0x3bf2340d
+0,     132000,     132000,        0,   192000, 0x3bf2340d
 1,      33120,      33120,     1472,     5888, 0x5f73ef35
-0,         23,         23,        1,   192000, 0xe368f0fc
+0,     138000,     138000,        0,   192000, 0xe368f0fc
 1,      34592,      34592,     1472,     5888, 0xc66026be
-0,         24,         24,        1,   192000, 0xfa7549c0
+0,     144000,     144000,        0,   192000, 0xfa7549c0
 1,      36064,      36064,     1472,     5888, 0xc8fdb539
-0,         25,         25,        1,   192000, 0x4dd76f3d
+0,     150000,     150000,        0,   192000, 0x4dd76f3d
 1,      37536,      37536,     1472,     5888, 0x94c6bfbd
-0,         26,         26,        1,   192000, 0x50a49f6c
+0,     156000,     156000,        0,   192000, 0x50a49f6c
 1,      39008,      39008,     1472,     5888, 0xb77e1b83
-0,         27,         27,        1,   192000, 0xb6072f65
+0,     162000,     162000,        0,   192000, 0xb6072f65
 1,      40480,      40480,     1472,     5888, 0x6c6d6693
-0,         28,         28,        1,   192000, 0x093ce1a8
+0,     168000,     168000,        0,   192000, 0x093ce1a8
 1,      41952,      41952,     1472,     5888, 0xd9f064d4
-0,         29,         29,        1,   192000, 0x55afe3db
+0,     174000,     174000,        0,   192000, 0x55afe3db
 1,      43424,      43424,     1472,     5888, 0x85dd990d
-0,         30,         30,        1,   192000, 0x81c3bfab
+0,     180000,     180000,        0,   192000, 0x81c3bfab
 1,      44896,      44896,     1472,     5888, 0x385e021b
-0,         31,         31,        1,   192000, 0x583ebd3d
+0,     186000,     186000,        0,   192000, 0x583ebd3d
 1,      46368,      46368,     1472,     5888, 0xac09fd02
-0,         32,         32,        1,   192000, 0x2504f003
+0,     192000,     192000,        0,   192000, 0x2504f003
 1,      47840,      47840,     1472,     5888, 0xc6dcdff2
-0,         33,         33,        1,   192000, 0x44ade2af
+0,     198000,     198000,        0,   192000, 0x44ade2af
 1,      49312,      49312,     1472,     5888, 0x86a6944d
-0,         34,         34,        1,   192000, 0x77cbcfd8
+0,     204000,     204000,        0,   192000, 0x77cbcfd8
 1,      50784,      50784,     1472,     5888, 0x8587b964
-0,         35,         35,        1,   192000, 0xac7ddfa1
+0,     210000,     210000,        0,   192000, 0xac7ddfa1
 1,      52256,      52256,     1472,     5888, 0x2b0355ff
-0,         36,         36,        1,   192000, 0x79f7cfe8
+0,     216000,     216000,        0,   192000, 0x79f7cfe8
 1,      53728,      53728,     1472,     5888, 0xe4148a85
-0,         37,         37,        1,   192000, 0xdf2898fd
+0,     222000,     222000,        0,   192000, 0xdf2898fd
 1,      55200,      55200,     1472,     5888, 0xdf02ed4f
 1,      56672,      56672,     1472,     5888, 0x87a54b15
 1,      58144,      58144,     1472,     5888, 0x3ad2be45
diff --git a/tests/ref/fate/ea-vp60 b/tests/ref/fate/ea-vp60
index 5e4b62c..363aa26 100644
--- a/tests/ref/fate/ea-vp60
+++ b/tests/ref/fate/ea-vp60
@@ -1,134 +1,134 @@
-#tb 0: 32767/982027
-0,          0,          0,        1,    55296, 0x6a3202a3
-0,          1,          1,        1,    55296, 0x2af202eb
-0,          2,          2,        1,    55296, 0xa1a40388
-0,          3,          3,        1,    55296, 0x61c90426
-0,          4,          4,        1,    55296, 0x17720594
-0,          5,          5,        1,    55296, 0x49440805
-0,          6,          6,        1,    55296, 0x5b2e0d32
-0,          7,          7,        1,    55296, 0x207891c1
-0,          8,          8,        1,    55296, 0x502da4cd
-0,          9,          9,        1,    55296, 0x75a22a75
-0,         10,         10,        1,    55296, 0xd55099af
-0,         11,         11,        1,    55296, 0x48778bb6
-0,         12,         12,        1,    55296, 0xe76b7df7
-0,         13,         13,        1,    55296, 0x5a049f33
-0,         14,         14,        1,    55296, 0xc83d9b90
-0,         15,         15,        1,    55296, 0x567877b8
-0,         16,         16,        1,    55296, 0x334c7f6e
-0,         17,         17,        1,    55296, 0x8717945c
-0,         18,         18,        1,    55296, 0xe432831e
-0,         19,         19,        1,    55296, 0x032e8d2d
-0,         20,         20,        1,    55296, 0x37109fd6
-0,         21,         21,        1,    55296, 0xe9b0b61b
-0,         22,         22,        1,    55296, 0x7385dae8
-0,         23,         23,        1,    55296, 0x74b8a9f5
-0,         24,         24,        1,    55296, 0xbce2e218
-0,         25,         25,        1,    55296, 0x0ab6c623
-0,         26,         26,        1,    55296, 0x2234d6d6
-0,         27,         27,        1,    55296, 0xd18be4d6
-0,         28,         28,        1,    55296, 0x5247ecc9
-0,         29,         29,        1,    55296, 0xc89f10ca
-0,         30,         30,        1,    55296, 0x16181f87
-0,         31,         31,        1,    55296, 0x893bfa85
-0,         32,         32,        1,    55296, 0x1fd9f1c0
-0,         33,         33,        1,    55296, 0xa2e8e6a9
-0,         34,         34,        1,    55296, 0x1b42dfd5
-0,         35,         35,        1,    55296, 0x0fa9f509
-0,         36,         36,        1,    55296, 0x4449c216
-0,         37,         37,        1,    55296, 0xb66baa36
-0,         38,         38,        1,    55296, 0x38c19f3b
-0,         39,         39,        1,    55296, 0xcdce83a0
-0,         40,         40,        1,    55296, 0xac4ea82b
-0,         41,         41,        1,    55296, 0xb77a6979
-0,         42,         42,        1,    55296, 0xc8834ec2
-0,         43,         43,        1,    55296, 0x181d3f0f
-0,         44,         44,        1,    55296, 0x2ae04252
-0,         45,         45,        1,    55296, 0x07633c18
-0,         46,         46,        1,    55296, 0xdc6a3340
-0,         47,         47,        1,    55296, 0xa456ebb1
-0,         48,         48,        1,    55296, 0xbf7de5e2
-0,         49,         49,        1,    55296, 0x54a1c39b
-0,         50,         50,        1,    55296, 0x08fc9423
-0,         51,         51,        1,    55296, 0x926f968a
-0,         52,         52,        1,    55296, 0x5c908481
-0,         53,         53,        1,    55296, 0x6b257f16
-0,         54,         54,        1,    55296, 0xbaf8658a
-0,         55,         55,        1,    55296, 0x61c957b1
-0,         56,         56,        1,    55296, 0xa6d181ff
-0,         57,         57,        1,    55296, 0xef476e69
-0,         58,         58,        1,    55296, 0x74f72f9a
-0,         59,         59,        1,    55296, 0x3a9328e9
-0,         60,         60,        1,    55296, 0xbe962874
-0,         61,         61,        1,    55296, 0x5f8b58cc
-0,         62,         62,        1,    55296, 0x1e066d22
-0,         63,         63,        1,    55296, 0x9ef72b34
-0,         64,         64,        1,    55296, 0x525c2bb1
-0,         65,         65,        1,    55296, 0x8e5a20a3
-0,         66,         66,        1,    55296, 0x1c6723d0
-0,         67,         67,        1,    55296, 0x2b1023c8
-0,         68,         68,        1,    55296, 0x8f682691
-0,         69,         69,        1,    55296, 0x3a0624f5
-0,         70,         70,        1,    55296, 0xbc1046fb
-0,         71,         71,        1,    55296, 0x2859470e
-0,         72,         72,        1,    55296, 0x61d45a12
-0,         73,         73,        1,    55296, 0xa68853b6
-0,         74,         74,        1,    55296, 0x36543ce4
-0,         75,         75,        1,    55296, 0x95b953d4
-0,         76,         76,        1,    55296, 0x804b3c53
-0,         77,         77,        1,    55296, 0x743960f6
-0,         78,         78,        1,    55296, 0x23916b9c
-0,         79,         79,        1,    55296, 0x8f5a59e3
-0,         80,         80,        1,    55296, 0xf1285f83
-0,         81,         81,        1,    55296, 0xde75640f
-0,         82,         82,        1,    55296, 0xde146188
-0,         83,         83,        1,    55296, 0xb5315cc9
-0,         84,         84,        1,    55296, 0xa85f6861
-0,         85,         85,        1,    55296, 0x4fda562f
-0,         86,         86,        1,    55296, 0xa0185863
-0,         87,         87,        1,    55296, 0xe4dc5a5f
-0,         88,         88,        1,    55296, 0x8a2aabb6
-0,         89,         89,        1,    55296, 0x3ba89b4f
-0,         90,         90,        1,    55296, 0x82b07c21
-0,         91,         91,        1,    55296, 0xb7998478
-0,         92,         92,        1,    55296, 0xceca8046
-0,         93,         93,        1,    55296, 0xe652b325
-0,         94,         94,        1,    55296, 0xc26bb607
-0,         95,         95,        1,    55296, 0x40c99200
-0,         96,         96,        1,    55296, 0x61bc9b27
-0,         97,         97,        1,    55296, 0x1e4baa30
-0,         98,         98,        1,    55296, 0xd8a7adb0
-0,         99,         99,        1,    55296, 0x0d0aa8fb
-0,        100,        100,        1,    55296, 0x1f1ba33c
-0,        101,        101,        1,    55296, 0xa000a80b
-0,        102,        102,        1,    55296, 0xb49dd332
-0,        103,        103,        1,    55296, 0x6b8ac499
-0,        104,        104,        1,    55296, 0x9636ed15
-0,        105,        105,        1,    55296, 0xa152f03d
-0,        106,        106,        1,    55296, 0x47a8cfc7
-0,        107,        107,        1,    55296, 0x9f94c82a
-0,        108,        108,        1,    55296, 0xe208d626
-0,        109,        109,        1,    55296, 0x28cc0616
-0,        110,        110,        1,    55296, 0xc545179e
-0,        111,        111,        1,    55296, 0xdf9205af
-0,        112,        112,        1,    55296, 0x31d6ed99
-0,        113,        113,        1,    55296, 0x866bf86e
-0,        114,        114,        1,    55296, 0x0490fbd1
-0,        115,        115,        1,    55296, 0xe1102987
-0,        116,        116,        1,    55296, 0x7f860c29
-0,        117,        117,        1,    55296, 0xc3a91f7a
-0,        118,        118,        1,    55296, 0x69641a52
-0,        119,        119,        1,    55296, 0x05b12204
-0,        120,        120,        1,    55296, 0x715b6206
-0,        121,        121,        1,    55296, 0xdcf55139
-0,        122,        122,        1,    55296, 0x1369f746
-0,        123,        123,        1,    55296, 0xc1533ef5
-0,        124,        124,        1,    55296, 0xc00ff85f
-0,        125,        125,        1,    55296, 0x4f5f70dc
-0,        126,        126,        1,    55296, 0x85720ccc
-0,        127,        127,        1,    55296, 0xfdff0780
-0,        128,        128,        1,    55296, 0x57ef04ff
-0,        129,        129,        1,    55296, 0xbf94041f
-0,        130,        130,        1,    55296, 0x4cee0392
-0,        131,        131,        1,    55296, 0x80160314
-0,        132,        132,        1,    55296, 0x396802af
+#tb 0: 1/90000
+0,          0,          0,        0,    55296, 0x6a3202a3
+0,       3003,       3003,        0,    55296, 0x2af202eb
+0,       6006,       6006,        0,    55296, 0xa1a40388
+0,       9009,       9009,        0,    55296, 0x61c90426
+0,      12012,      12012,        0,    55296, 0x17720594
+0,      15015,      15015,        0,    55296, 0x49440805
+0,      18018,      18018,        0,    55296, 0x5b2e0d32
+0,      21021,      21021,        0,    55296, 0x207891c1
+0,      24024,      24024,        0,    55296, 0x502da4cd
+0,      27027,      27027,        0,    55296, 0x75a22a75
+0,      30030,      30030,        0,    55296, 0xd55099af
+0,      33033,      33033,        0,    55296, 0x48778bb6
+0,      36036,      36036,        0,    55296, 0xe76b7df7
+0,      39039,      39039,        0,    55296, 0x5a049f33
+0,      42042,      42042,        0,    55296, 0xc83d9b90
+0,      45045,      45045,        0,    55296, 0x567877b8
+0,      48048,      48048,        0,    55296, 0x334c7f6e
+0,      51051,      51051,        0,    55296, 0x8717945c
+0,      54054,      54054,        0,    55296, 0xe432831e
+0,      57057,      57057,        0,    55296, 0x032e8d2d
+0,      60060,      60060,        0,    55296, 0x37109fd6
+0,      63063,      63063,        0,    55296, 0xe9b0b61b
+0,      66066,      66066,        0,    55296, 0x7385dae8
+0,      69069,      69069,        0,    55296, 0x74b8a9f5
+0,      72072,      72072,        0,    55296, 0xbce2e218
+0,      75075,      75075,        0,    55296, 0x0ab6c623
+0,      78078,      78078,        0,    55296, 0x2234d6d6
+0,      81081,      81081,        0,    55296, 0xd18be4d6
+0,      84084,      84084,        0,    55296, 0x5247ecc9
+0,      87087,      87087,        0,    55296, 0xc89f10ca
+0,      90090,      90090,        0,    55296, 0x16181f87
+0,      93093,      93093,        0,    55296, 0x893bfa85
+0,      96096,      96096,        0,    55296, 0x1fd9f1c0
+0,      99099,      99099,        0,    55296, 0xa2e8e6a9
+0,     102102,     102102,        0,    55296, 0x1b42dfd5
+0,     105105,     105105,        0,    55296, 0x0fa9f509
+0,     108108,     108108,        0,    55296, 0x4449c216
+0,     111111,     111111,        0,    55296, 0xb66baa36
+0,     114114,     114114,        0,    55296, 0x38c19f3b
+0,     117117,     117117,        0,    55296, 0xcdce83a0
+0,     120120,     120120,        0,    55296, 0xac4ea82b
+0,     123123,     123123,        0,    55296, 0xb77a6979
+0,     126126,     126126,        0,    55296, 0xc8834ec2
+0,     129129,     129129,        0,    55296, 0x181d3f0f
+0,     132132,     132132,        0,    55296, 0x2ae04252
+0,     135135,     135135,        0,    55296, 0x07633c18
+0,     138138,     138138,        0,    55296, 0xdc6a3340
+0,     141141,     141141,        0,    55296, 0xa456ebb1
+0,     144144,     144144,        0,    55296, 0xbf7de5e2
+0,     147147,     147147,        0,    55296, 0x54a1c39b
+0,     150150,     150150,        0,    55296, 0x08fc9423
+0,     153153,     153153,        0,    55296, 0x926f968a
+0,     156156,     156156,        0,    55296, 0x5c908481
+0,     159159,     159159,        0,    55296, 0x6b257f16
+0,     162162,     162162,        0,    55296, 0xbaf8658a
+0,     165165,     165165,        0,    55296, 0x61c957b1
+0,     168168,     168168,        0,    55296, 0xa6d181ff
+0,     171171,     171171,        0,    55296, 0xef476e69
+0,     174174,     174174,        0,    55296, 0x74f72f9a
+0,     177177,     177177,        0,    55296, 0x3a9328e9
+0,     180180,     180180,        0,    55296, 0xbe962874
+0,     183183,     183183,        0,    55296, 0x5f8b58cc
+0,     186186,     186186,        0,    55296, 0x1e066d22
+0,     189189,     189189,        0,    55296, 0x9ef72b34
+0,     192192,     192192,        0,    55296, 0x525c2bb1
+0,     195195,     195195,        0,    55296, 0x8e5a20a3
+0,     198198,     198198,        0,    55296, 0x1c6723d0
+0,     201201,     201201,        0,    55296, 0x2b1023c8
+0,     204204,     204204,        0,    55296, 0x8f682691
+0,     207207,     207207,        0,    55296, 0x3a0624f5
+0,     210210,     210210,        0,    55296, 0xbc1046fb
+0,     213213,     213213,        0,    55296, 0x2859470e
+0,     216216,     216216,        0,    55296, 0x61d45a12
+0,     219219,     219219,        0,    55296, 0xa68853b6
+0,     222222,     222222,        0,    55296, 0x36543ce4
+0,     225225,     225225,        0,    55296, 0x95b953d4
+0,     228228,     228228,        0,    55296, 0x804b3c53
+0,     231231,     231231,        0,    55296, 0x743960f6
+0,     234234,     234234,        0,    55296, 0x23916b9c
+0,     237237,     237237,        0,    55296, 0x8f5a59e3
+0,     240240,     240240,        0,    55296, 0xf1285f83
+0,     243243,     243243,        0,    55296, 0xde75640f
+0,     246246,     246246,        0,    55296, 0xde146188
+0,     249249,     249249,        0,    55296, 0xb5315cc9
+0,     252252,     252252,        0,    55296, 0xa85f6861
+0,     255255,     255255,        0,    55296, 0x4fda562f
+0,     258258,     258258,        0,    55296, 0xa0185863
+0,     261261,     261261,        0,    55296, 0xe4dc5a5f
+0,     264264,     264264,        0,    55296, 0x8a2aabb6
+0,     267267,     267267,        0,    55296, 0x3ba89b4f
+0,     270270,     270270,        0,    55296, 0x82b07c21
+0,     273273,     273273,        0,    55296, 0xb7998478
+0,     276276,     276276,        0,    55296, 0xceca8046
+0,     279279,     279279,        0,    55296, 0xe652b325
+0,     282282,     282282,        0,    55296, 0xc26bb607
+0,     285285,     285285,        0,    55296, 0x40c99200
+0,     288288,     288288,        0,    55296, 0x61bc9b27
+0,     291291,     291291,        0,    55296, 0x1e4baa30
+0,     294294,     294294,        0,    55296, 0xd8a7adb0
+0,     297297,     297297,        0,    55296, 0x0d0aa8fb
+0,     300300,     300300,        0,    55296, 0x1f1ba33c
+0,     303303,     303303,        0,    55296, 0xa000a80b
+0,     306306,     306306,        0,    55296, 0xb49dd332
+0,     309309,     309309,        0,    55296, 0x6b8ac499
+0,     312312,     312312,        0,    55296, 0x9636ed15
+0,     315315,     315315,        0,    55296, 0xa152f03d
+0,     318318,     318318,        0,    55296, 0x47a8cfc7
+0,     321321,     321321,        0,    55296, 0x9f94c82a
+0,     324324,     324324,        0,    55296, 0xe208d626
+0,     327327,     327327,        0,    55296, 0x28cc0616
+0,     330330,     330330,        0,    55296, 0xc545179e
+0,     333333,     333333,        0,    55296, 0xdf9205af
+0,     336336,     336336,        0,    55296, 0x31d6ed99
+0,     339339,     339339,        0,    55296, 0x866bf86e
+0,     342342,     342342,        0,    55296, 0x0490fbd1
+0,     345345,     345345,        0,    55296, 0xe1102987
+0,     348348,     348348,        0,    55296, 0x7f860c29
+0,     351351,     351351,        0,    55296, 0xc3a91f7a
+0,     354354,     354354,        0,    55296, 0x69641a52
+0,     357357,     357357,        0,    55296, 0x05b12204
+0,     360360,     360360,        0,    55296, 0x715b6206
+0,     363363,     363363,        0,    55296, 0xdcf55139
+0,     366366,     366366,        0,    55296, 0x1369f746
+0,     369369,     369369,        0,    55296, 0xc1533ef5
+0,     372372,     372372,        0,    55296, 0xc00ff85f
+0,     375375,     375375,        0,    55296, 0x4f5f70dc
+0,     378378,     378378,        0,    55296, 0x85720ccc
+0,     381381,     381381,        0,    55296, 0xfdff0780
+0,     384384,     384384,        0,    55296, 0x57ef04ff
+0,     387387,     387387,        0,    55296, 0xbf94041f
+0,     390390,     390390,        0,    55296, 0x4cee0392
+0,     393393,     393393,        0,    55296, 0x80160314
+0,     396396,     396396,        0,    55296, 0x396802af
diff --git a/tests/ref/fate/ea-vp61 b/tests/ref/fate/ea-vp61
index be1fe53..e8bb561 100644
--- a/tests/ref/fate/ea-vp61
+++ b/tests/ref/fate/ea-vp61
@@ -1,121 +1,121 @@
-#tb 0: 32767/982027
-0,          0,          0,        1,    18816, 0xc3fe9fc7
-0,          1,          1,        1,    18816, 0x6ddf972f
-0,          2,          2,        1,    18816, 0x72808b6e
-0,          3,          3,        1,    18816, 0x8f09857f
-0,          4,          4,        1,    18816, 0xe8027c00
-0,          5,          5,        1,    18816, 0x308670cf
-0,          6,          6,        1,    18816, 0x0e656170
-0,          7,          7,        1,    18816, 0x594e54a4
-0,          8,          8,        1,    18816, 0x36944b05
-0,          9,          9,        1,    18816, 0x87013a34
-0,         10,         10,        1,    18816, 0xc0f32f0d
-0,         11,         11,        1,    18816, 0x911f1951
-0,         12,         12,        1,    18816, 0xad590d59
-0,         13,         13,        1,    18816, 0x943afff0
-0,         14,         14,        1,    18816, 0x7f5ef719
-0,         15,         15,        1,    18816, 0x889feafc
-0,         16,         16,        1,    18816, 0x4334e12b
-0,         17,         17,        1,    18816, 0xd080cc67
-0,         18,         18,        1,    18816, 0xc3c1c04c
-0,         19,         19,        1,    18816, 0x816bae4b
-0,         20,         20,        1,    18816, 0xed23a5c7
-0,         21,         21,        1,    18816, 0x86689c2f
-0,         22,         22,        1,    18816, 0x63408c52
-0,         23,         23,        1,    18816, 0x399c79d6
-0,         24,         24,        1,    18816, 0xf0ff63bf
-0,         25,         25,        1,    18816, 0xa6185353
-0,         26,         26,        1,    18816, 0xe33d46fc
-0,         27,         27,        1,    18816, 0xd58d3c6d
-0,         28,         28,        1,    18816, 0xc94a27ea
-0,         29,         29,        1,    18816, 0x62f31c59
-0,         30,         30,        1,    18816, 0x71880825
-0,         31,         31,        1,    18816, 0xa6ce01d7
-0,         32,         32,        1,    18816, 0xa1d4fc06
-0,         33,         33,        1,    18816, 0xc208f570
-0,         34,         34,        1,    18816, 0xc862e637
-0,         35,         35,        1,    18816, 0xcf9ed93a
-0,         36,         36,        1,    18816, 0x85a8cbcc
-0,         37,         37,        1,    18816, 0x650ac6c1
-0,         38,         38,        1,    18816, 0xb418c12b
-0,         39,         39,        1,    18816, 0x9fe5b412
-0,         40,         40,        1,    18816, 0x80f6a7c1
-0,         41,         41,        1,    18816, 0x283299e4
-0,         42,         42,        1,    18816, 0x15429202
-0,         43,         43,        1,    18816, 0x9f0f8c8a
-0,         44,         44,        1,    18816, 0x8e828811
-0,         45,         45,        1,    18816, 0xaac67993
-0,         46,         46,        1,    18816, 0x8f3b6f4f
-0,         47,         47,        1,    18816, 0x0b125f95
-0,         48,         48,        1,    18816, 0xb4e75d14
-0,         49,         49,        1,    18816, 0x1bac5933
-0,         50,         50,        1,    18816, 0x300b521b
-0,         51,         51,        1,    18816, 0x51174590
-0,         52,         52,        1,    18816, 0x03df3d70
-0,         53,         53,        1,    18816, 0x338a344a
-0,         54,         54,        1,    18816, 0x45ad328d
-0,         55,         55,        1,    18816, 0x2d4e321a
-0,         56,         56,        1,    18816, 0x15932563
-0,         57,         57,        1,    18816, 0x9b4f1c76
-0,         58,         58,        1,    18816, 0x8e31153c
-0,         59,         59,        1,    18816, 0xfb391185
-0,         60,         60,        1,    18816, 0x93ee0cdc
-0,         61,         61,        1,    18816, 0xddeb0642
-0,         62,         62,        1,    18816, 0xda6cf529
-0,         63,         63,        1,    18816, 0xdbd6f085
-0,         64,         64,        1,    18816, 0x357aec81
-0,         65,         65,        1,    18816, 0x36eaecca
-0,         66,         66,        1,    18816, 0x6535ee02
-0,         67,         67,        1,    18816, 0xb7dfe466
-0,         68,         68,        1,    18816, 0x58d3d86b
-0,         69,         69,        1,    18816, 0xd8aad64b
-0,         70,         70,        1,    18816, 0x37ecd588
-0,         71,         71,        1,    18816, 0xe2f9cee4
-0,         72,         72,        1,    18816, 0xcd1ac93e
-0,         73,         73,        1,    18816, 0x18e1be81
-0,         74,         74,        1,    18816, 0xa05bb9d7
-0,         75,         75,        1,    18816, 0xe0ebb663
-0,         76,         76,        1,    18816, 0x7d61b39a
-0,         77,         77,        1,    18816, 0x01b8acb5
-0,         78,         78,        1,    18816, 0x7577aa8b
-0,         79,         79,        1,    18816, 0x6bbda4b5
-0,         80,         80,        1,    18816, 0xd0cc9b29
-0,         81,         81,        1,    18816, 0xb2858cbb
-0,         82,         82,        1,    18816, 0x93608c9d
-0,         83,         83,        1,    18816, 0x80c38e03
-0,         84,         84,        1,    18816, 0x37d6843c
-0,         85,         85,        1,    18816, 0xacc47b9a
-0,         86,         86,        1,    18816, 0xc4317178
-0,         87,         87,        1,    18816, 0xc92f6ebd
-0,         88,         88,        1,    18816, 0xc1217a3b
-0,         89,         89,        1,    18816, 0x03a37ccb
-0,         90,         90,        1,    18816, 0xf38c71a2
-0,         91,         91,        1,    18816, 0x68ff697d
-0,         92,         92,        1,    18816, 0x0fe358e5
-0,         93,         93,        1,    18816, 0x58455870
-0,         94,         94,        1,    18816, 0xc9075ce7
-0,         95,         95,        1,    18816, 0x16685773
-0,         96,         96,        1,    18816, 0x1b434c0e
-0,         97,         97,        1,    18816, 0x008e4c97
-0,         98,         98,        1,    18816, 0xb4d04f4f
-0,         99,         99,        1,    18816, 0xc8c94848
-0,        100,        100,        1,    18816, 0x64664191
-0,        101,        101,        1,    18816, 0xd591367f
-0,        102,        102,        1,    18816, 0xc70d3141
-0,        103,        103,        1,    18816, 0x8d492655
-0,        104,        104,        1,    18816, 0x7e7f22c8
-0,        105,        105,        1,    18816, 0x335d23f9
-0,        106,        106,        1,    18816, 0x0a7f22b6
-0,        107,        107,        1,    18816, 0x6cf51cb2
-0,        108,        108,        1,    18816, 0x312516e1
-0,        109,        109,        1,    18816, 0x8a3c0c7a
-0,        110,        110,        1,    18816, 0x997d0d20
-0,        111,        111,        1,    18816, 0xffbd117e
-0,        112,        112,        1,    18816, 0x855808ca
-0,        113,        113,        1,    18816, 0xe335fb94
-0,        114,        114,        1,    18816, 0x12e6f95c
-0,        115,        115,        1,    18816, 0x2d62f845
-0,        116,        116,        1,    18816, 0x7e63f591
-0,        117,        117,        1,    18816, 0x7463f175
-0,        118,        118,        1,    18816, 0x1521e0d2
-0,        119,        119,        1,    18816, 0x96a8dbce
+#tb 0: 1/90000
+0,          0,          0,        0,    18816, 0xc3fe9fc7
+0,       3003,       3003,        0,    18816, 0x6ddf972f
+0,       6006,       6006,        0,    18816, 0x72808b6e
+0,       9009,       9009,        0,    18816, 0x8f09857f
+0,      12012,      12012,        0,    18816, 0xe8027c00
+0,      15015,      15015,        0,    18816, 0x308670cf
+0,      18018,      18018,        0,    18816, 0x0e656170
+0,      21021,      21021,        0,    18816, 0x594e54a4
+0,      24024,      24024,        0,    18816, 0x36944b05
+0,      27027,      27027,        0,    18816, 0x87013a34
+0,      30030,      30030,        0,    18816, 0xc0f32f0d
+0,      33033,      33033,        0,    18816, 0x911f1951
+0,      36036,      36036,        0,    18816, 0xad590d59
+0,      39039,      39039,        0,    18816, 0x943afff0
+0,      42042,      42042,        0,    18816, 0x7f5ef719
+0,      45045,      45045,        0,    18816, 0x889feafc
+0,      48048,      48048,        0,    18816, 0x4334e12b
+0,      51051,      51051,        0,    18816, 0xd080cc67
+0,      54054,      54054,        0,    18816, 0xc3c1c04c
+0,      57057,      57057,        0,    18816, 0x816bae4b
+0,      60060,      60060,        0,    18816, 0xed23a5c7
+0,      63063,      63063,        0,    18816, 0x86689c2f
+0,      66066,      66066,        0,    18816, 0x63408c52
+0,      69069,      69069,        0,    18816, 0x399c79d6
+0,      72072,      72072,        0,    18816, 0xf0ff63bf
+0,      75075,      75075,        0,    18816, 0xa6185353
+0,      78078,      78078,        0,    18816, 0xe33d46fc
+0,      81081,      81081,        0,    18816, 0xd58d3c6d
+0,      84084,      84084,        0,    18816, 0xc94a27ea
+0,      87087,      87087,        0,    18816, 0x62f31c59
+0,      90090,      90090,        0,    18816, 0x71880825
+0,      93093,      93093,        0,    18816, 0xa6ce01d7
+0,      96096,      96096,        0,    18816, 0xa1d4fc06
+0,      99099,      99099,        0,    18816, 0xc208f570
+0,     102102,     102102,        0,    18816, 0xc862e637
+0,     105105,     105105,        0,    18816, 0xcf9ed93a
+0,     108108,     108108,        0,    18816, 0x85a8cbcc
+0,     111111,     111111,        0,    18816, 0x650ac6c1
+0,     114114,     114114,        0,    18816, 0xb418c12b
+0,     117117,     117117,        0,    18816, 0x9fe5b412
+0,     120120,     120120,        0,    18816, 0x80f6a7c1
+0,     123123,     123123,        0,    18816, 0x283299e4
+0,     126126,     126126,        0,    18816, 0x15429202
+0,     129129,     129129,        0,    18816, 0x9f0f8c8a
+0,     132132,     132132,        0,    18816, 0x8e828811
+0,     135135,     135135,        0,    18816, 0xaac67993
+0,     138138,     138138,        0,    18816, 0x8f3b6f4f
+0,     141141,     141141,        0,    18816, 0x0b125f95
+0,     144144,     144144,        0,    18816, 0xb4e75d14
+0,     147147,     147147,        0,    18816, 0x1bac5933
+0,     150150,     150150,        0,    18816, 0x300b521b
+0,     153153,     153153,        0,    18816, 0x51174590
+0,     156156,     156156,        0,    18816, 0x03df3d70
+0,     159159,     159159,        0,    18816, 0x338a344a
+0,     162162,     162162,        0,    18816, 0x45ad328d
+0,     165165,     165165,        0,    18816, 0x2d4e321a
+0,     168168,     168168,        0,    18816, 0x15932563
+0,     171171,     171171,        0,    18816, 0x9b4f1c76
+0,     174174,     174174,        0,    18816, 0x8e31153c
+0,     177177,     177177,        0,    18816, 0xfb391185
+0,     180180,     180180,        0,    18816, 0x93ee0cdc
+0,     183183,     183183,        0,    18816, 0xddeb0642
+0,     186186,     186186,        0,    18816, 0xda6cf529
+0,     189189,     189189,        0,    18816, 0xdbd6f085
+0,     192192,     192192,        0,    18816, 0x357aec81
+0,     195195,     195195,        0,    18816, 0x36eaecca
+0,     198198,     198198,        0,    18816, 0x6535ee02
+0,     201201,     201201,        0,    18816, 0xb7dfe466
+0,     204204,     204204,        0,    18816, 0x58d3d86b
+0,     207207,     207207,        0,    18816, 0xd8aad64b
+0,     210210,     210210,        0,    18816, 0x37ecd588
+0,     213213,     213213,        0,    18816, 0xe2f9cee4
+0,     216216,     216216,        0,    18816, 0xcd1ac93e
+0,     219219,     219219,        0,    18816, 0x18e1be81
+0,     222222,     222222,        0,    18816, 0xa05bb9d7
+0,     225225,     225225,        0,    18816, 0xe0ebb663
+0,     228228,     228228,        0,    18816, 0x7d61b39a
+0,     231231,     231231,        0,    18816, 0x01b8acb5
+0,     234234,     234234,        0,    18816, 0x7577aa8b
+0,     237237,     237237,        0,    18816, 0x6bbda4b5
+0,     240240,     240240,        0,    18816, 0xd0cc9b29
+0,     243243,     243243,        0,    18816, 0xb2858cbb
+0,     246246,     246246,        0,    18816, 0x93608c9d
+0,     249249,     249249,        0,    18816, 0x80c38e03
+0,     252252,     252252,        0,    18816, 0x37d6843c
+0,     255255,     255255,        0,    18816, 0xacc47b9a
+0,     258258,     258258,        0,    18816, 0xc4317178
+0,     261261,     261261,        0,    18816, 0xc92f6ebd
+0,     264264,     264264,        0,    18816, 0xc1217a3b
+0,     267267,     267267,        0,    18816, 0x03a37ccb
+0,     270270,     270270,        0,    18816, 0xf38c71a2
+0,     273273,     273273,        0,    18816, 0x68ff697d
+0,     276276,     276276,        0,    18816, 0x0fe358e5
+0,     279279,     279279,        0,    18816, 0x58455870
+0,     282282,     282282,        0,    18816, 0xc9075ce7
+0,     285285,     285285,        0,    18816, 0x16685773
+0,     288288,     288288,        0,    18816, 0x1b434c0e
+0,     291291,     291291,        0,    18816, 0x008e4c97
+0,     294294,     294294,        0,    18816, 0xb4d04f4f
+0,     297297,     297297,        0,    18816, 0xc8c94848
+0,     300300,     300300,        0,    18816, 0x64664191
+0,     303303,     303303,        0,    18816, 0xd591367f
+0,     306306,     306306,        0,    18816, 0xc70d3141
+0,     309309,     309309,        0,    18816, 0x8d492655
+0,     312312,     312312,        0,    18816, 0x7e7f22c8
+0,     315315,     315315,        0,    18816, 0x335d23f9
+0,     318318,     318318,        0,    18816, 0x0a7f22b6
+0,     321321,     321321,        0,    18816, 0x6cf51cb2
+0,     324324,     324324,        0,    18816, 0x312516e1
+0,     327327,     327327,        0,    18816, 0x8a3c0c7a
+0,     330330,     330330,        0,    18816, 0x997d0d20
+0,     333333,     333333,        0,    18816, 0xffbd117e
+0,     336336,     336336,        0,    18816, 0x855808ca
+0,     339339,     339339,        0,    18816, 0xe335fb94
+0,     342342,     342342,        0,    18816, 0x12e6f95c
+0,     345345,     345345,        0,    18816, 0x2d62f845
+0,     348348,     348348,        0,    18816, 0x7e63f591
+0,     351351,     351351,        0,    18816, 0x7463f175
+0,     354354,     354354,        0,    18816, 0x1521e0d2
+0,     357357,     357357,        0,    18816, 0x96a8dbce
diff --git a/tests/ref/fate/indeo3 b/tests/ref/fate/indeo3
index 0f55649..e294f70 100644
--- a/tests/ref/fate/indeo3
+++ b/tests/ref/fate/indeo3
@@ -1,41 +1,41 @@
-#tb 0: 1/10
+#tb 0: 1/600
 0,          0,          0,        1,    21600, 0x845098fc
-0,          1,          1,        1,    21600, 0xc28e8bf0
-0,          2,          2,        1,    21600, 0x2f418fb4
-0,          3,          3,        1,    21600, 0x051d7a0e
-0,          4,          4,        1,    21600, 0x1b36aa7c
-0,          5,          5,        1,    21600, 0xb9e2ad38
-0,          6,          6,        1,    21600, 0x8dc99b60
-0,          7,          7,        1,    21600, 0xa3fa789a
-0,          8,          8,        1,    21600, 0x1fdbade2
-0,          9,          9,        1,    21600, 0x4f4ac164
-0,         10,         10,        1,    21600, 0x0ea5cb50
-0,         11,         11,        1,    21600, 0xfb659528
-0,         12,         12,        1,    21600, 0xac5790f8
-0,         13,         13,        1,    21600, 0x9762beb4
-0,         14,         14,        1,    21600, 0x29b0da0a
-0,         15,         15,        1,    21600, 0x6d88b0da
-0,         16,         16,        1,    21600, 0x687b8efa
-0,         17,         17,        1,    21600, 0xcd726220
-0,         18,         18,        1,    21600, 0xa1766598
-0,         19,         19,        1,    21600, 0xff4b8074
-0,         20,         20,        1,    21600, 0x845098fc
-0,         21,         21,        1,    21600, 0xdb259e08
-0,         22,         22,        1,    21600, 0xb6bda5a0
-0,         23,         23,        1,    21600, 0xbb998962
-0,         24,         24,        1,    21600, 0x28aa7b7c
-0,         25,         25,        1,    21600, 0x1ad1a15c
-0,         26,         26,        1,    21600, 0xb535a128
-0,         27,         27,        1,    21600, 0x4dbf968a
-0,         28,         28,        1,    21600, 0xfe90a8d6
-0,         29,         29,        1,    21600, 0xf63fabf0
-0,         30,         30,        1,    21600, 0xd6fabe58
-0,         31,         31,        1,    21600, 0x172eb09c
-0,         32,         32,        1,    21600, 0x44f8a8fe
-0,         33,         33,        1,    21600, 0x29429a06
-0,         34,         34,        1,    21600, 0xb12f8cc4
-0,         35,         35,        1,    21600, 0xd0c78cb4
-0,         36,         36,        1,    21600, 0x97e17e0c
-0,         37,         37,        1,    21600, 0xf8ac6700
-0,         38,         38,        1,    21600, 0xf9c17c94
-0,         39,         39,        1,    21600, 0xb10e8c54
+0,         60,         60,        1,    21600, 0xc28e8bf0
+0,        120,        120,        1,    21600, 0x2f418fb4
+0,        180,        180,        1,    21600, 0x051d7a0e
+0,        240,        240,        1,    21600, 0x1b36aa7c
+0,        300,        300,        1,    21600, 0xb9e2ad38
+0,        360,        360,        1,    21600, 0x8dc99b60
+0,        420,        420,        1,    21600, 0xa3fa789a
+0,        480,        480,        1,    21600, 0x1fdbade2
+0,        540,        540,        1,    21600, 0x4f4ac164
+0,        600,        600,        1,    21600, 0x0ea5cb50
+0,        660,        660,        1,    21600, 0xfb659528
+0,        720,        720,        1,    21600, 0xac5790f8
+0,        780,        780,        1,    21600, 0x9762beb4
+0,        840,        840,        1,    21600, 0x29b0da0a
+0,        900,        900,        1,    21600, 0x6d88b0da
+0,        960,        960,        1,    21600, 0x687b8efa
+0,       1020,       1020,        1,    21600, 0xcd726220
+0,       1080,       1080,        1,    21600, 0xa1766598
+0,       1140,       1140,        1,    21600, 0xff4b8074
+0,       1200,       1200,        1,    21600, 0x845098fc
+0,       1260,       1260,        1,    21600, 0xdb259e08
+0,       1320,       1320,        1,    21600, 0xb6bda5a0
+0,       1380,       1380,        1,    21600, 0xbb998962
+0,       1440,       1440,        1,    21600, 0x28aa7b7c
+0,       1500,       1500,        1,    21600, 0x1ad1a15c
+0,       1560,       1560,        1,    21600, 0xb535a128
+0,       1620,       1620,        1,    21600, 0x4dbf968a
+0,       1680,       1680,        1,    21600, 0xfe90a8d6
+0,       1740,       1740,        1,    21600, 0xf63fabf0
+0,       1800,       1800,        1,    21600, 0xd6fabe58
+0,       1860,       1860,        1,    21600, 0x172eb09c
+0,       1920,       1920,        1,    21600, 0x44f8a8fe
+0,       1980,       1980,        1,    21600, 0x29429a06
+0,       2040,       2040,        1,    21600, 0xb12f8cc4
+0,       2100,       2100,        1,    21600, 0xd0c78cb4
+0,       2160,       2160,        1,    21600, 0x97e17e0c
+0,       2220,       2220,        1,    21600, 0xf8ac6700
+0,       2280,       2280,        1,    21600, 0xf9c17c94
+0,       2340,       2340,        1,    21600, 0xb10e8c54
diff --git a/tests/ref/fate/interplay-mve-16bit b/tests/ref/fate/interplay-mve-16bit
index e0ddf38..35dc14b 100644
--- a/tests/ref/fate/interplay-mve-16bit
+++ b/tests/ref/fate/interplay-mve-16bit
@@ -1,105 +1,105 @@
-#tb 0: 417/12500
+#tb 0: 1/1000000
 #tb 1: 1/44100
-0,          0,          0,        1,   614400, 0x00000000
+0,          0,          0,        0,   614400, 0x00000000
 1,          0,          0,     1447,     5788, 0x916d2db8
 1,       1447,       1447,     1472,     5888, 0xc65cb069
-0,          1,          1,        1,   614400, 0x00000000
+0,      33360,      33360,        0,   614400, 0x00000000
 1,       2919,       2919,     1472,     5888, 0xd8ec1acc
-0,          2,          2,        1,   614400, 0xa17ea4ec
+0,      66720,      66720,        0,   614400, 0xa17ea4ec
 1,       4391,       4391,     1472,     5888, 0xb22af0d6
-0,          3,          3,        1,   614400, 0x4fd207fb
+0,     100080,     100080,        0,   614400, 0x4fd207fb
 1,       5863,       5863,     1472,     5888, 0x86bb50d9
-0,          4,          4,        1,   614400, 0xd7a510fb
+0,     133440,     133440,        0,   614400, 0xd7a510fb
 1,       7335,       7335,     1472,     5888, 0x7674d923
-0,          5,          5,        1,   614400, 0xe901e2f4
+0,     166800,     166800,        0,   614400, 0xe901e2f4
 1,       8807,       8807,     1472,     5888, 0xb97c5500
-0,          6,          6,        1,   614400, 0x4ac5d3c4
+0,     200160,     200160,        0,   614400, 0x4ac5d3c4
 1,      10279,      10279,     1472,     5888, 0xecea1249
-0,          7,          7,        1,   614400, 0x32e3e99c
+0,     233520,     233520,        0,   614400, 0x32e3e99c
 1,      11751,      11751,     1472,     5888, 0x0f4fea81
-0,          8,          8,        1,   614400, 0x7a2ff20c
+0,     266880,     266880,        0,   614400, 0x7a2ff20c
 1,      13223,      13223,     1472,     5888, 0x997914d8
-0,          9,          9,        1,   614400, 0x59941193
+0,     300240,     300240,        0,   614400, 0x59941193
 1,      14695,      14695,     1472,     5888, 0xd012f03a
-0,         10,         10,        1,   614400, 0x92773a2b
+0,     333600,     333600,        0,   614400, 0x92773a2b
 1,      16167,      16167,     1472,     5888, 0x03fd5248
-0,         11,         11,        1,   614400, 0x4cd14313
+0,     366960,     366960,        0,   614400, 0x4cd14313
 1,      17639,      17639,     1472,     5888, 0x3041a288
-0,         12,         12,        1,   614400, 0x2a093fa3
+0,     400320,     400320,        0,   614400, 0x2a093fa3
 1,      19111,      19111,     1472,     5888, 0xe6105de1
-0,         13,         13,        1,   614400, 0xf68b8463
+0,     433680,     433680,        0,   614400, 0xf68b8463
 1,      20583,      20583,     1472,     5888, 0xaa38c7bd
-0,         14,         14,        1,   614400, 0xa9e1969b
+0,     467040,     467040,        0,   614400, 0xa9e1969b
 1,      22055,      22055,     1472,     5888, 0xbfff702c
-0,         15,         15,        1,   614400, 0x461996bb
+0,     500400,     500400,        0,   614400, 0x461996bb
 1,      23527,      23527,     1472,     5888, 0xbe4319a3
-0,         16,         16,        1,   614400, 0xae58d053
+0,     533760,     533760,        0,   614400, 0xae58d053
 1,      24999,      24999,     1472,     5888, 0x2e89d262
-0,         17,         17,        1,   614400, 0x7693015a
+0,     567120,     567120,        0,   614400, 0x7693015a
 1,      26471,      26471,     1472,     5888, 0x10992b9c
-0,         18,         18,        1,   614400, 0x0b3507fa
+0,     600480,     600480,        0,   614400, 0x0b3507fa
 1,      27943,      27943,     1472,     5888, 0x972904bf
-0,         19,         19,        1,   614400, 0xff5c2492
+0,     633840,     633840,        0,   614400, 0xff5c2492
 1,      29415,      29415,     1472,     5888, 0x0093501c
-0,         20,         20,        1,   614400, 0x636e3e32
+0,     667200,     667200,        0,   614400, 0x636e3e32
 1,      30887,      30887,     1472,     5888, 0x8994ad0e
-0,         21,         21,        1,   614400, 0x1acd6d0a
+0,     700560,     700560,        0,   614400, 0x1acd6d0a
 1,      32359,      32359,     1472,     5888, 0x9db37d21
-0,         22,         22,        1,   614400, 0x67039232
+0,     733920,     733920,        0,   614400, 0x67039232
 1,      33831,      33831,     1472,     5888, 0xa8c7300f
-0,         23,         23,        1,   614400, 0x8ab9c75a
+0,     767280,     767280,        0,   614400, 0x8ab9c75a
 1,      35303,      35303,     1472,     5888, 0x1b7073b5
-0,         24,         24,        1,   614400, 0xe824bbe2
+0,     800640,     800640,        0,   614400, 0xe824bbe2
 1,      36775,      36775,     1472,     5888, 0x56ad7f7b
-0,         25,         25,        1,   614400, 0x5133e9ea
+0,     834000,     834000,        0,   614400, 0x5133e9ea
 1,      38247,      38247,     1472,     5888, 0x9706a8fb
-0,         26,         26,        1,   614400, 0xcecf1249
+0,     867360,     867360,        0,   614400, 0xcecf1249
 1,      39719,      39719,     1472,     5888, 0x16c9420e
-0,         27,         27,        1,   614400, 0xe6d928c1
+0,     900720,     900720,        0,   614400, 0xe6d928c1
 1,      41191,      41191,     1472,     5888, 0x3e11be0a
-0,         28,         28,        1,   614400, 0x8da46ff1
+0,     934080,     934080,        0,   614400, 0x8da46ff1
 1,      42663,      42663,     1472,     5888, 0x3e534a32
-0,         29,         29,        1,   614400, 0x1c778319
+0,     967440,     967440,        0,   614400, 0x1c778319
 1,      44135,      44135,     1447,     5788, 0x0ffae5f4
-0,         30,         30,        1,   614400, 0x35a19451
+0,    1000800,    1000800,        0,   614400, 0x35a19451
 1,      45582,      45582,     1472,     5888, 0xc2018f82
-0,         31,         31,        1,   614400, 0x5145d1b9
+0,    1034160,    1034160,        0,   614400, 0x5145d1b9
 1,      47054,      47054,     1472,     5888, 0x2a11f529
-0,         32,         32,        1,   614400, 0x146ee231
+0,    1067520,    1067520,        0,   614400, 0x146ee231
 1,      48526,      48526,     1472,     5888, 0xec282167
-0,         33,         33,        1,   614400, 0xd9b33380
+0,    1100880,    1100880,        0,   614400, 0xd9b33380
 1,      49998,      49998,     1472,     5888, 0xd61b5a05
-0,         34,         34,        1,   614400, 0x8b112ef8
+0,    1134240,    1134240,        0,   614400, 0x8b112ef8
 1,      51470,      51470,     1472,     5888, 0x61de2741
-0,         35,         35,        1,   614400, 0xb9e79ab0
+0,    1167600,    1167600,        0,   614400, 0xb9e79ab0
 1,      52942,      52942,     1472,     5888, 0x17aaff8c
-0,         36,         36,        1,   614400, 0x62d3a498
+0,    1200960,    1200960,        0,   614400, 0x62d3a498
 1,      54414,      54414,     1472,     5888, 0xd40cd7a6
-0,         37,         37,        1,   614400, 0xaeaaaa58
+0,    1234320,    1234320,        0,   614400, 0xaeaaaa58
 1,      55886,      55886,     1472,     5888, 0x840840d4
-0,         38,         38,        1,   614400, 0x8922c440
+0,    1267680,    1267680,        0,   614400, 0x8922c440
 1,      57358,      57358,     1472,     5888, 0x7c97ddcf
-0,         39,         39,        1,   614400, 0xd62ef758
+0,    1301040,    1301040,        0,   614400, 0xd62ef758
 1,      58830,      58830,     1472,     5888, 0xed9150f7
-0,         40,         40,        1,   614400, 0x2a53149f
+0,    1334400,    1334400,        0,   614400, 0x2a53149f
 1,      60302,      60302,     1472,     5888, 0xbccf973e
-0,         41,         41,        1,   614400, 0x13da47df
+0,    1367760,    1367760,        0,   614400, 0x13da47df
 1,      61774,      61774,     1472,     5888, 0x74bda5ea
-0,         42,         42,        1,   614400, 0x27c05c3f
+0,    1401120,    1401120,        0,   614400, 0x27c05c3f
 1,      63246,      63246,     1472,     5888, 0xd083892a
-0,         43,         43,        1,   614400, 0x41ff7ca7
+0,    1434480,    1434480,        0,   614400, 0x41ff7ca7
 1,      64718,      64718,     1472,     5888, 0x16e444b2
-0,         44,         44,        1,   614400, 0x6b0e8a07
+0,    1467840,    1467840,        0,   614400, 0x6b0e8a07
 1,      66190,      66190,     1472,     5888, 0x68a9cedb
-0,         45,         45,        1,   614400, 0xa200ad9f
+0,    1501200,    1501200,        0,   614400, 0xa200ad9f
 1,      67662,      67662,     1472,     5888, 0x80849f36
-0,         46,         46,        1,   614400, 0x9da7cc77
+0,    1534560,    1534560,        0,   614400, 0x9da7cc77
 1,      69134,      69134,     1472,     5888, 0x63cb7df9
-0,         47,         47,        1,   614400, 0x2f5703be
+0,    1567920,    1567920,        0,   614400, 0x2f5703be
 1,      70606,      70606,     1472,     5888, 0xf90f754d
-0,         48,         48,        1,   614400, 0x91c720f6
+0,    1601280,    1601280,        0,   614400, 0x91c720f6
 1,      72078,      72078,     1472,     5888, 0x9c2c867d
-0,         49,         49,        1,   614400, 0x927a882e
+0,    1634640,    1634640,        0,   614400, 0x927a882e
 1,      73550,      73550,     1472,     5888, 0x337994a4
 1,      75022,      75022,     1472,     5888, 0xf354a28d
 1,      76494,      76494,     1472,     5888, 0x70933738
diff --git a/tests/ref/fate/interplay-mve-8bit b/tests/ref/fate/interplay-mve-8bit
index 0a9287f..33630e9 100644
--- a/tests/ref/fate/interplay-mve-8bit
+++ b/tests/ref/fate/interplay-mve-8bit
@@ -1,225 +1,225 @@
-#tb 0: 8341/125000
+#tb 0: 1/1000000
 #tb 1: 1/22050
-0,          0,          0,        1,   414720, 0xa5cd50ca
+0,          0,          0,        0,   414720, 0xa5cd50ca
 1,          0,          0,     1462,     5848, 0xea04292b
 1,       1462,       1462,     1472,     5888, 0x0e59e942
-0,          1,          1,        1,   414720, 0x3facd321
+0,      66728,      66728,        0,   414720, 0x3facd321
 1,       2934,       2934,     1472,     5888, 0x56d480f6
-0,          2,          2,        1,   414720, 0x849e6d4b
+0,     133456,     133456,        0,   414720, 0x849e6d4b
 1,       4406,       4406,     1472,     5888, 0xcb560b22
-0,          3,          3,        1,   414720, 0xe649363f
+0,     200184,     200184,        0,   414720, 0xe649363f
 1,       5878,       5878,     1472,     5888, 0xca26865b
-0,          4,          4,        1,   414720, 0x5bbd7b14
+0,     266912,     266912,        0,   414720, 0x5bbd7b14
 1,       7350,       7350,     1472,     5888, 0xa434392f
-0,          5,          5,        1,   414720, 0xe246ab51
+0,     333640,     333640,        0,   414720, 0xe246ab51
 1,       8822,       8822,     1472,     5888, 0xa0615fe4
-0,          6,          6,        1,   414720, 0x5721b22e
+0,     400368,     400368,        0,   414720, 0x5721b22e
 1,      10294,      10294,     1472,     5888, 0x85b241cd
-0,          7,          7,        1,   414720, 0xe391e107
+0,     467096,     467096,        0,   414720, 0xe391e107
 1,      11766,      11766,     1472,     5888, 0x2c417a43
-0,          8,          8,        1,   414720, 0x04d851ff
+0,     533824,     533824,        0,   414720, 0x04d851ff
 1,      13238,      13238,     1472,     5888, 0x2d5ed665
-0,          9,          9,        1,   414720, 0x8d80d580
+0,     600552,     600552,        0,   414720, 0x8d80d580
 1,      14710,      14710,     1472,     5888, 0x37267a2d
-0,         10,         10,        1,   414720, 0x5a24b0bc
+0,     667280,     667280,        0,   414720, 0x5a24b0bc
 1,      16182,      16182,     1472,     5888, 0x1f803c67
-0,         11,         11,        1,   414720, 0x06cd6960
+0,     734008,     734008,        0,   414720, 0x06cd6960
 1,      17654,      17654,     1472,     5888, 0xfb7940ef
-0,         12,         12,        1,   414720, 0xf5ca48b4
+0,     800736,     800736,        0,   414720, 0xf5ca48b4
 1,      19126,      19126,     1472,     5888, 0x1a5371e8
-0,         13,         13,        1,   414720, 0x24700f94
+0,     867464,     867464,        0,   414720, 0x24700f94
 1,      20598,      20598,     1472,     5888, 0x37e29b21
-0,         14,         14,        1,   414720, 0xb0bfe451
+0,     934192,     934192,        0,   414720, 0xb0bfe451
 1,      22070,      22070,     1462,     5848, 0x70065769
-0,         15,         15,        1,   414720, 0x00e9f3d1
+0,    1000920,    1000920,        0,   414720, 0x00e9f3d1
 1,      23532,      23532,     1472,     5888, 0xaf624f3d
-0,         16,         16,        1,   414720, 0x0efbffd1
+0,    1067648,    1067648,        0,   414720, 0x0efbffd1
 1,      25004,      25004,     1472,     5888, 0x8f5e5b57
-0,         17,         17,        1,   414720, 0x2ecdfc8d
+0,    1134376,    1134376,        0,   414720, 0x2ecdfc8d
 1,      26476,      26476,     1472,     5888, 0x93545968
-0,         18,         18,        1,   414720, 0x94b531fc
+0,    1201104,    1201104,        0,   414720, 0x94b531fc
 1,      27948,      27948,     1472,     5888, 0x915f268f
-0,         19,         19,        1,   414720, 0x2c2579f8
+0,    1267832,    1267832,        0,   414720, 0x2c2579f8
 1,      29420,      29420,     1472,     5888, 0x9cd48ac4
-0,         20,         20,        1,   414720, 0x6c7ecfb8
+0,    1334560,    1334560,        0,   414720, 0x6c7ecfb8
 1,      30892,      30892,     1472,     5888, 0x812c8e13
-0,         21,         21,        1,   414720, 0x08982527
+0,    1401288,    1401288,        0,   414720, 0x08982527
 1,      32364,      32364,     1472,     5888, 0xe794a2a7
-0,         22,         22,        1,   414720, 0x5c0161b3
+0,    1468016,    1468016,        0,   414720, 0x5c0161b3
 1,      33836,      33836,     1472,     5888, 0x4a056e4b
-0,         23,         23,        1,   414720, 0x453ce413
+0,    1534744,    1534744,        0,   414720, 0x453ce413
 1,      35308,      35308,     1472,     5888, 0xa3589992
-0,         24,         24,        1,   414720, 0x634e36b2
+0,    1601472,    1601472,        0,   414720, 0x634e36b2
 1,      36780,      36780,     1472,     5888, 0x19ea7ec5
-0,         25,         25,        1,   414720, 0x401a683a
+0,    1668200,    1668200,        0,   414720, 0x401a683a
 1,      38252,      38252,     1472,     5888, 0x422d5097
-0,         26,         26,        1,   414720, 0x3c5f442e
+0,    1734928,    1734928,        0,   414720, 0x3c5f442e
 1,      39724,      39724,     1472,     5888, 0xc9fd963f
-0,         27,         27,        1,   414720, 0x075ef787
+0,    1801656,    1801656,        0,   414720, 0x075ef787
 1,      41196,      41196,     1472,     5888, 0xc556a5ea
-0,         28,         28,        1,   414720, 0x8501a04f
+0,    1868384,    1868384,        0,   414720, 0x8501a04f
 1,      42668,      42668,     1472,     5888, 0x51557e0f
-0,         29,         29,        1,   414720, 0x3620093b
+0,    1935112,    1935112,        0,   414720, 0x3620093b
 1,      44140,      44140,     1462,     5848, 0x4903ad21
-0,         30,         30,        1,   414720, 0xa42d9480
+0,    2001840,    2001840,        0,   414720, 0xa42d9480
 1,      45602,      45602,     1472,     5888, 0xb1c85e85
-0,         31,         31,        1,   414720, 0x09b150b4
+0,    2068568,    2068568,        0,   414720, 0x09b150b4
 1,      47074,      47074,     1472,     5888, 0x68963d65
-0,         32,         32,        1,   414720, 0xcad407f0
+0,    2135296,    2135296,        0,   414720, 0xcad407f0
 1,      48546,      48546,     1472,     5888, 0x62a3124e
-0,         33,         33,        1,   414720, 0x69e5eecd
+0,    2202024,    2202024,        0,   414720, 0x69e5eecd
 1,      50018,      50018,     1472,     5888, 0x4ff1878f
-0,         34,         34,        1,   414720, 0xb92ad2d9
+0,    2268752,    2268752,        0,   414720, 0xb92ad2d9
 1,      51490,      51490,     1472,     5888, 0x8b09ac18
-0,         35,         35,        1,   414720, 0xc78eaf29
+0,    2335480,    2335480,        0,   414720, 0xc78eaf29
 1,      52962,      52962,     1472,     5888, 0x67d85338
-0,         36,         36,        1,   414720, 0x47c3fa91
+0,    2402208,    2402208,        0,   414720, 0x47c3fa91
 1,      54434,      54434,     1472,     5888, 0x82eca0a6
-0,         37,         37,        1,   414720, 0x8847b7b8
+0,    2468936,    2468936,        0,   414720, 0x8847b7b8
 1,      55906,      55906,     1472,     5888, 0x81a17eb8
-0,         38,         38,        1,   414720, 0x864cab2f
+0,    2535664,    2535664,        0,   414720, 0x864cab2f
 1,      57378,      57378,     1472,     5888, 0x7108478c
-0,         39,         39,        1,   414720, 0x78d653e2
+0,    2602392,    2602392,        0,   414720, 0x78d653e2
 1,      58850,      58850,     1472,     5888, 0xbfc18b09
-0,         40,         40,        1,   414720, 0xda15cbd2
+0,    2669120,    2669120,        0,   414720, 0xda15cbd2
 1,      60322,      60322,     1472,     5888, 0xad93711f
-0,         41,         41,        1,   414720, 0xdf9ce28a
+0,    2735848,    2735848,        0,   414720, 0xdf9ce28a
 1,      61794,      61794,     1472,     5888, 0xf8d25e39
-0,         42,         42,        1,   414720, 0xe88c49ca
+0,    2802576,    2802576,        0,   414720, 0xe88c49ca
 1,      63266,      63266,     1472,     5888, 0x41edd04e
-0,         43,         43,        1,   414720, 0xd6bcbc07
+0,    2869304,    2869304,        0,   414720, 0xd6bcbc07
 1,      64738,      64738,     1472,     5888, 0xa6557ee2
-0,         44,         44,        1,   414720, 0xf0b4a7bf
+0,    2936032,    2936032,        0,   414720, 0xf0b4a7bf
 1,      66210,      66210,     1462,     5848, 0xc14d5456
-0,         45,         45,        1,   414720, 0x74f9bfbf
+0,    3002760,    3002760,        0,   414720, 0x74f9bfbf
 1,      67672,      67672,     1472,     5888, 0x20a7821f
-0,         46,         46,        1,   414720, 0x904ce103
+0,    3069488,    3069488,        0,   414720, 0x904ce103
 1,      69144,      69144,     1472,     5888, 0x9f1a8f9d
-0,         47,         47,        1,   414720, 0xca877e4a
+0,    3136216,    3136216,        0,   414720, 0xca877e4a
 1,      70616,      70616,     1472,     5888, 0x2f3c6cc8
-0,         48,         48,        1,   414720, 0x588effd6
+0,    3202944,    3202944,        0,   414720, 0x588effd6
 1,      72088,      72088,     1472,     5888, 0x757c894a
-0,         49,         49,        1,   414720, 0x6dff8b71
+0,    3269672,    3269672,        0,   414720, 0x6dff8b71
 1,      73560,      73560,     1472,     5888, 0x483e98bb
-0,         50,         50,        1,   414720, 0xbeaae788
+0,    3336400,    3336400,        0,   414720, 0xbeaae788
 1,      75032,      75032,     1472,     5888, 0x84289c75
-0,         51,         51,        1,   414720, 0x1a4d1242
+0,    3403128,    3403128,        0,   414720, 0x1a4d1242
 1,      76504,      76504,     1472,     5888, 0xf79d5a91
-0,         52,         52,        1,   414720, 0x4ae98ea0
+0,    3469856,    3469856,        0,   414720, 0x4ae98ea0
 1,      77976,      77976,     1472,     5888, 0x395b5228
-0,         53,         53,        1,   414720, 0x41ed6d22
+0,    3536584,    3536584,        0,   414720, 0x41ed6d22
 1,      79448,      79448,     1472,     5888, 0x9c937a14
-0,         54,         54,        1,   414720, 0x486e70aa
+0,    3603312,    3603312,        0,   414720, 0x486e70aa
 1,      80920,      80920,     1472,     5888, 0x40c169cf
-0,         55,         55,        1,   414720, 0xfddc103e
+0,    3670040,    3670040,        0,   414720, 0xfddc103e
 1,      82392,      82392,     1472,     5888, 0x3e7f99b0
-0,         56,         56,        1,   414720, 0x8620f03e
+0,    3736768,    3736768,        0,   414720, 0x8620f03e
 1,      83864,      83864,     1472,     5888, 0xd4de993e
-0,         57,         57,        1,   414720, 0x0e4ec273
+0,    3803496,    3803496,        0,   414720, 0x0e4ec273
 1,      85336,      85336,     1472,     5888, 0xae856b09
-0,         58,         58,        1,   414720, 0xb2298b3e
+0,    3870224,    3870224,        0,   414720, 0xb2298b3e
 1,      86808,      86808,     1472,     5888, 0xa2369c95
-0,         59,         59,        1,   414720, 0xb4f50176
+0,    3936952,    3936952,        0,   414720, 0xb4f50176
 1,      88280,      88280,     1462,     5848, 0x992d516b
-0,         60,         60,        1,   414720, 0xb9c7a495
+0,    4003680,    4003680,        0,   414720, 0xb9c7a495
 1,      89742,      89742,     1472,     5888, 0xcd785ba9
-0,         61,         61,        1,   414720, 0xed270702
+0,    4070408,    4070408,        0,   414720, 0xed270702
 1,      91214,      91214,     1472,     5888, 0x55ea3bce
-0,         62,         62,        1,   414720, 0x98b72586
+0,    4137136,    4137136,        0,   414720, 0x98b72586
 1,      92686,      92686,     1472,     5888, 0xf06d4bbf
-0,         63,         63,        1,   414720, 0xd8977cb1
+0,    4203864,    4203864,        0,   414720, 0xd8977cb1
 1,      94158,      94158,     1472,     5888, 0x2a9d4c1a
-0,         64,         64,        1,   414720, 0xff3d3851
+0,    4270592,    4270592,        0,   414720, 0xff3d3851
 1,      95630,      95630,     1472,     5888, 0xd5e348a3
-0,         65,         65,        1,   414720, 0x7e4f0424
+0,    4337320,    4337320,        0,   414720, 0x7e4f0424
 1,      97102,      97102,     1472,     5888, 0x6431a24c
-0,         66,         66,        1,   414720, 0xa9e75006
+0,    4404048,    4404048,        0,   414720, 0xa9e75006
 1,      98574,      98574,     1472,     5888, 0x41f9908c
-0,         67,         67,        1,   414720, 0x8f98cba9
+0,    4470776,    4470776,        0,   414720, 0x8f98cba9
 1,     100046,     100046,     1472,     5888, 0x0ed99656
-0,         68,         68,        1,   414720, 0x25ecd620
+0,    4537504,    4537504,        0,   414720, 0x25ecd620
 1,     101518,     101518,     1472,     5888, 0x635a6392
-0,         69,         69,        1,   414720, 0x78cf5c58
+0,    4604232,    4604232,        0,   414720, 0x78cf5c58
 1,     102990,     102990,     1472,     5888, 0x690c750c
-0,         70,         70,        1,   414720, 0x3fb4b81a
+0,    4670960,    4670960,        0,   414720, 0x3fb4b81a
 1,     104462,     104462,     1472,     5888, 0xf9d97b23
-0,         71,         71,        1,   414720, 0xd7b655fa
+0,    4737688,    4737688,        0,   414720, 0xd7b655fa
 1,     105934,     105934,     1472,     5888, 0x75e1606b
-0,         72,         72,        1,   414720, 0xd9158db3
+0,    4804416,    4804416,        0,   414720, 0xd9158db3
 1,     107406,     107406,     1472,     5888, 0x1bcb43b0
-0,         73,         73,        1,   414720, 0x2e651852
+0,    4871144,    4871144,        0,   414720, 0x2e651852
 1,     108878,     108878,     1472,     5888, 0x48c295cb
-0,         74,         74,        1,   414720, 0x9f9adb64
+0,    4937872,    4937872,        0,   414720, 0x9f9adb64
 1,     110350,     110350,     1462,     5848, 0xe47f7b5d
-0,         75,         75,        1,   414720, 0xe9d16e81
+0,    5004600,    5004600,        0,   414720, 0xe9d16e81
 1,     111812,     111812,     1472,     5888, 0x20be7f3e
-0,         76,         76,        1,   414720, 0xbe73daf5
+0,    5071328,    5071328,        0,   414720, 0xbe73daf5
 1,     113284,     113284,     1472,     5888, 0x8c2428c4
-0,         77,         77,        1,   414720, 0x3d164329
+0,    5138056,    5138056,        0,   414720, 0x3d164329
 1,     114756,     114756,     1472,     5888, 0x851379af
-0,         78,         78,        1,   414720, 0x1d5a9bc8
+0,    5204784,    5204784,        0,   414720, 0x1d5a9bc8
 1,     116228,     116228,     1472,     5888, 0x5916647d
-0,         79,         79,        1,   414720, 0x8e8debbe
+0,    5271512,    5271512,        0,   414720, 0x8e8debbe
 1,     117700,     117700,     1472,     5888, 0xef9c6281
-0,         80,         80,        1,   414720, 0x4e7a2bf0
+0,    5338240,    5338240,        0,   414720, 0x4e7a2bf0
 1,     119172,     119172,     1472,     5888, 0x49660d32
-0,         81,         81,        1,   414720, 0x4a13804d
+0,    5404968,    5404968,        0,   414720, 0x4a13804d
 1,     120644,     120644,     1472,     5888, 0x62cf36a1
-0,         82,         82,        1,   414720, 0x5dd188d8
+0,    5471696,    5471696,        0,   414720, 0x5dd188d8
 1,     122116,     122116,     1472,     5888, 0x56dff39c
-0,         83,         83,        1,   414720, 0xbe7f4963
+0,    5538424,    5538424,        0,   414720, 0xbe7f4963
 1,     123588,     123588,     1472,     5888, 0x4e6b5b02
-0,         84,         84,        1,   414720, 0xcff3b767
+0,    5605152,    5605152,        0,   414720, 0xcff3b767
 1,     125060,     125060,     1472,     5888, 0xb8697067
-0,         85,         85,        1,   414720, 0xbbd3afa0
+0,    5671880,    5671880,        0,   414720, 0xbbd3afa0
 1,     126532,     126532,     1472,     5888, 0xcb4e2706
-0,         86,         86,        1,   414720, 0xaf9dec62
+0,    5738608,    5738608,        0,   414720, 0xaf9dec62
 1,     128004,     128004,     1472,     5888, 0x6eaa9669
-0,         87,         87,        1,   414720, 0xc74816a1
+0,    5805336,    5805336,        0,   414720, 0xc74816a1
 1,     129476,     129476,     1472,     5888, 0xfd9d7dba
-0,         88,         88,        1,   414720, 0x51488bfc
+0,    5872064,    5872064,        0,   414720, 0x51488bfc
 1,     130948,     130948,     1472,     5888, 0xfe137923
-0,         89,         89,        1,   414720, 0x68c10a2c
+0,    5938792,    5938792,        0,   414720, 0x68c10a2c
 1,     132420,     132420,     1462,     5848, 0x1931296f
-0,         90,         90,        1,   414720, 0x10179c4e
+0,    6005520,    6005520,        0,   414720, 0x10179c4e
 1,     133882,     133882,     1472,     5888, 0xa09a7c03
-0,         91,         91,        1,   414720, 0x18d559b7
+0,    6072248,    6072248,        0,   414720, 0x18d559b7
 1,     135354,     135354,     1472,     5888, 0xded9802d
-0,         92,         92,        1,   414720, 0x8257aa55
+0,    6138976,    6138976,        0,   414720, 0x8257aa55
 1,     136826,     136826,     1472,     5888, 0x9f6723b7
-0,         93,         93,        1,   414720, 0x9ea24501
+0,    6205704,    6205704,        0,   414720, 0x9ea24501
 1,     138298,     138298,     1472,     5888, 0x3ad02476
-0,         94,         94,        1,   414720, 0x238605cc
+0,    6272432,    6272432,        0,   414720, 0x238605cc
 1,     139770,     139770,     1472,     5888, 0xa1647e32
-0,         95,         95,        1,   414720, 0xb552deaa
+0,    6339160,    6339160,        0,   414720, 0xb552deaa
 1,     141242,     141242,     1472,     5888, 0x728672da
-0,         96,         96,        1,   414720, 0x07c3348d
+0,    6405888,    6405888,        0,   414720, 0x07c3348d
 1,     142714,     142714,     1472,     5888, 0x9c098090
-0,         97,         97,        1,   414720, 0x82f4f9b0
+0,    6472616,    6472616,        0,   414720, 0x82f4f9b0
 1,     144186,     144186,     1472,     5888, 0x32a65ea3
-0,         98,         98,        1,   414720, 0xf5d76bc5
+0,    6539344,    6539344,        0,   414720, 0xf5d76bc5
 1,     145658,     145658,     1472,     5888, 0xdde141d5
-0,         99,         99,        1,   414720, 0x34b3a1e6
+0,    6606072,    6606072,        0,   414720, 0x34b3a1e6
 1,     147130,     147130,     1472,     5888, 0x816c5fb4
-0,        100,        100,        1,   414720, 0xda25e11b
+0,    6672800,    6672800,        0,   414720, 0xda25e11b
 1,     148602,     148602,     1472,     5888, 0x75e17581
-0,        101,        101,        1,   414720, 0x2b19936b
+0,    6739528,    6739528,        0,   414720, 0x2b19936b
 1,     150074,     150074,     1472,     5888, 0x59035469
-0,        102,        102,        1,   414720, 0xe91f9f73
+0,    6806256,    6806256,        0,   414720, 0xe91f9f73
 1,     151546,     151546,     1472,     5888, 0x20d340cd
-0,        103,        103,        1,   414720, 0x48d09aab
+0,    6872984,    6872984,        0,   414720, 0x48d09aab
 1,     153018,     153018,     1472,     5888, 0xa89a8790
-0,        104,        104,        1,   414720, 0xac42bf83
+0,    6939712,    6939712,        0,   414720, 0xac42bf83
 1,     154490,     154490,     1462,     5848, 0x12b74c34
-0,        105,        105,        1,   414720, 0x2d8ca14e
+0,    7006440,    7006440,        0,   414720, 0x2d8ca14e
 1,     155952,     155952,     1472,     5888, 0xcd3b3bef
-0,        106,        106,        1,   414720, 0xe65462fd
+0,    7073168,    7073168,        0,   414720, 0xe65462fd
 1,     157424,     157424,     1472,     5888, 0xe5c44bf3
-0,        107,        107,        1,   414720, 0xe5bfc929
+0,    7139896,    7139896,        0,   414720, 0xe5bfc929
 1,     158896,     158896,     1472,     5888, 0xb82c4fa4
-0,        108,        108,        1,   414720, 0x66784c58
+0,    7206624,    7206624,        0,   414720, 0x66784c58
 1,     160368,     160368,     1472,     5888, 0x05b2443a
-0,        109,        109,        1,   414720, 0x70dbeca8
+0,    7273352,    7273352,        0,   414720, 0x70dbeca8
 1,     161840,     161840,     1472,     5888, 0x78028172
 1,     163312,     163312,     1472,     5888, 0xdfcac19a
 1,     164784,     164784,     1472,     5888, 0x0761a0b9
diff --git a/tests/ref/fate/mjpegb b/tests/ref/fate/mjpegb
index ef8a00b..e4887f4 100644
--- a/tests/ref/fate/mjpegb
+++ b/tests/ref/fate/mjpegb
@@ -1,11 +1,11 @@
-#tb 0: 1/12
-0,          0,          0,        1,    38400, 0x45311080
-0,          1,          1,        1,    38400, 0x9474f731
-0,          2,          2,        1,    38400, 0x429ebb12
-0,          3,          3,        1,    38400, 0x472c199a
-0,          4,          4,        1,    38400, 0xefd49dae
-0,          5,          5,        1,    38400, 0x78627fa9
-0,          6,          6,        1,    38400, 0x2a8d9148
-0,          7,          7,        1,    38400, 0x21cc6738
-0,          8,          8,        1,    38400, 0x0bc4703f
-0,          9,          9,        1,    38400, 0x1ddcc035
+#tb 0: 1/1200
+0,          0,          0,        0,    38400, 0x45311080
+0,        100,        100,        0,    38400, 0x9474f731
+0,        200,        200,        0,    38400, 0x429ebb12
+0,        300,        300,        0,    38400, 0x472c199a
+0,        400,        400,        0,    38400, 0xefd49dae
+0,        500,        500,        0,    38400, 0x78627fa9
+0,        600,        600,        0,    38400, 0x2a8d9148
+0,        700,        700,        0,    38400, 0x21cc6738
+0,        800,        800,        0,    38400, 0x0bc4703f
+0,        900,        900,        0,    38400, 0x1ddcc035
diff --git a/tests/ref/fate/mpeg2-field-enc b/tests/ref/fate/mpeg2-field-enc
index 903adb5..079aae4 100644
--- a/tests/ref/fate/mpeg2-field-enc
+++ b/tests/ref/fate/mpeg2-field-enc
@@ -1,32 +1,32 @@
-#tb 0: 1/25
-0,          9,          9,        1,   622080, 0xb3b66c5c
-0,         10,         10,        1,   622080, 0x088ec02b
-0,         11,         11,        1,   622080, 0x7a36db21
-0,         12,         12,        1,   622080, 0x541b286f
-0,         13,         13,        1,   622080, 0xb6c3e590
-0,         14,         14,        1,   622080, 0x39dbed51
-0,         15,         15,        1,   622080, 0x973dc728
-0,         16,         16,        1,   622080, 0xd7a4f804
-0,         17,         17,        1,   622080, 0xa2484762
-0,         18,         18,        1,   622080, 0x0cd268d1
-0,         19,         19,        1,   622080, 0x72eb663d
-0,         20,         20,        1,   622080, 0x8fdbac59
-0,         21,         21,        1,   622080, 0xa6f4feb9
-0,         22,         22,        1,   622080, 0xadb828c6
-0,         23,         23,        1,   622080, 0xea630a63
-0,         24,         24,        1,   622080, 0xa901d925
-0,         25,         25,        1,   622080, 0xac5e7087
-0,         26,         26,        1,   622080, 0x10274a2b
-0,         27,         27,        1,   622080, 0x143d541c
-0,         28,         28,        1,   622080, 0xee94c93a
-0,         29,         29,        1,   622080, 0xca030208
-0,         30,         30,        1,   622080, 0x26f30ead
-0,         31,         31,        1,   622080, 0xfc22f32c
-0,         32,         32,        1,   622080, 0x940a5ff8
-0,         33,         33,        1,   622080, 0x2164f805
-0,         34,         34,        1,   622080, 0xa76f5aba
-0,         35,         35,        1,   622080, 0x8c311471
-0,         36,         36,        1,   622080, 0xa45e1d95
-0,         37,         37,        1,   622080, 0x6cc61d6c
-0,         38,         38,        1,   622080, 0x6983b417
-0,         39,         39,        1,   622080, 0x982363c0
+#tb 0: 1/90000
+0,      32400,      32400,        0,   622080, 0xb3b66c5c
+0,      36000,      36000,        0,   622080, 0x088ec02b
+0,      39600,      39600,        0,   622080, 0x7a36db21
+0,      43200,      43200,        0,   622080, 0x541b286f
+0,      46800,      46800,        0,   622080, 0xb6c3e590
+0,      50400,      50400,        0,   622080, 0x39dbed51
+0,      54000,      54000,        0,   622080, 0x973dc728
+0,      57600,      57600,        0,   622080, 0xd7a4f804
+0,      61200,      61200,        0,   622080, 0xa2484762
+0,      64800,      64800,        0,   622080, 0x0cd268d1
+0,      68400,      68400,        0,   622080, 0x72eb663d
+0,      72000,      72000,        0,   622080, 0x8fdbac59
+0,      75600,      75600,        0,   622080, 0xa6f4feb9
+0,      79200,      79200,        0,   622080, 0xadb828c6
+0,      82800,      82800,        0,   622080, 0xea630a63
+0,      86400,      86400,        0,   622080, 0xa901d925
+0,      90000,      90000,        0,   622080, 0xac5e7087
+0,      93600,      93600,        0,   622080, 0x10274a2b
+0,      97200,      97200,        0,   622080, 0x143d541c
+0,     100800,     100800,        0,   622080, 0xee94c93a
+0,     104400,     104400,        0,   622080, 0xca030208
+0,     108000,     108000,        0,   622080, 0x26f30ead
+0,     111600,     111600,        0,   622080, 0xfc22f32c
+0,     115200,     115200,        0,   622080, 0x940a5ff8
+0,     118800,     118800,        0,   622080, 0x2164f805
+0,     122400,     122400,        0,   622080, 0xa76f5aba
+0,     126000,     126000,        0,   622080, 0x8c311471
+0,     129600,     129600,        0,   622080, 0xa45e1d95
+0,     133200,     133200,        0,   622080, 0x6cc61d6c
+0,     136800,     136800,        0,   622080, 0x6983b417
+0,     140400,     140400,        0,   622080, 0x982363c0
diff --git a/tests/ref/fate/nuv b/tests/ref/fate/nuv
index 23a6a93..3607164 100644
--- a/tests/ref/fate/nuv
+++ b/tests/ref/fate/nuv
@@ -1,4 +1,4 @@
-#tb 0: 100/2997
+#tb 0: 1/1000
 #tb 1: 1/44100
 1,          0,          0,     1024,     4096, 0x00000000
 1,       1024,       1024,     1024,     4096, 0x4dfae7a6
@@ -6,23 +6,24 @@
 1,       3072,       3072,     1024,     4096, 0x7b86e310
 1,       4096,       4096,     1024,     4096, 0x611cece5
 1,       5120,       5120,     1024,     4096, 0xb7d8e872
-0,          4,          4,        1,   460800, 0x54aedafe
+0,        118,        118,        0,   460800, 0x54aedafe
 1,       6144,       6144,     1024,     4096, 0x072ef72b
+0,        152,        152,        0,   460800, 0xb7aa8b56
 1,       7168,       7168,     1024,     4096, 0xb3560144
-0,          5,          5,        1,   460800, 0xb7aa8b56
+0,        177,        177,        0,   460800, 0x283ea3b5
 1,       8192,       8192,     1024,     4096, 0x0a3d119e
-0,          6,          6,        1,   460800, 0x283ea3b5
+0,        202,        202,        0,   460800, 0x283ea3b5
 1,       9216,       9216,     1024,     4096, 0xbe391aa4
 1,      10240,      10240,     1024,     4096, 0x28f7c6e5
-0,          7,          7,        1,   460800, 0x10e577de
+0,        235,        235,        0,   460800, 0x10e577de
 1,      11264,      11264,     1024,     4096, 0xca9d9df2
-0,          8,          8,        1,   460800, 0x4e091ee2
+0,        269,        269,        0,   460800, 0x4e091ee2
 1,      12288,      12288,     1024,     4096, 0x5c6b95a9
-0,          9,          9,        1,   460800, 0x2ea88828
 1,      13312,      13312,     1024,     4096, 0x0bdfc0bf
+0,        302,        302,        0,   460800, 0x2ea88828
 1,      14336,      14336,     1024,     4096, 0xd95a9277
-0,         10,         10,        1,   460800, 0x4b7f4df0
+0,        335,        335,        0,   460800, 0x4b7f4df0
 1,      15360,      15360,     1024,     4096, 0xae2bef2c
-0,         11,         11,        1,   460800, 0xb30eb322
+0,        369,        369,        0,   460800, 0xb30eb322
 1,      16384,      16384,     1024,     4096, 0xbf031e83
 1,      17408,      17408,     1024,     4096, 0x4c83e2d1
diff --git a/tests/ref/fate/prores-422 b/tests/ref/fate/prores-422
index acd09e3..379739f 100644
--- a/tests/ref/fate/prores-422
+++ b/tests/ref/fate/prores-422
@@ -1,3 +1,3 @@
-#tb 0: 100/2997
-0,          0,          0,        1,  8294400, 0xe8e9d448
-0,          1,          1,        1,  8294400, 0xe8e9d448
+#tb 0: 1/2997
+0,          0,          0,        0,  8294400, 0xe8e9d448
+0,        100,        100,        0,  8294400, 0xe8e9d448
diff --git a/tests/ref/fate/prores-422_hq b/tests/ref/fate/prores-422_hq
index a404ef4..dc93c33 100644
--- a/tests/ref/fate/prores-422_hq
+++ b/tests/ref/fate/prores-422_hq
@@ -1,3 +1,3 @@
-#tb 0: 100/2997
-0,          0,          0,        1,  8294400, 0x817063b0
-0,          1,          1,        1,  8294400, 0x817063b0
+#tb 0: 1/2997
+0,          0,          0,        0,  8294400, 0x817063b0
+0,        100,        100,        0,  8294400, 0x817063b0
diff --git a/tests/ref/fate/prores-422_lt b/tests/ref/fate/prores-422_lt
index 09e2408..1c50840 100644
--- a/tests/ref/fate/prores-422_lt
+++ b/tests/ref/fate/prores-422_lt
@@ -1,3 +1,3 @@
-#tb 0: 100/2997
-0,          0,          0,        1,  8294400, 0xcd4ccde1
-0,          1,          1,        1,  8294400, 0xcd4ccde1
+#tb 0: 1/2997
+0,          0,          0,        0,  8294400, 0xcd4ccde1
+0,        100,        100,        0,  8294400, 0xcd4ccde1
diff --git a/tests/ref/fate/prores-422_proxy b/tests/ref/fate/prores-422_proxy
index d716f87..3763b00 100644
--- a/tests/ref/fate/prores-422_proxy
+++ b/tests/ref/fate/prores-422_proxy
@@ -1,3 +1,3 @@
-#tb 0: 100/2997
-0,          0,          0,        1,  8294400, 0x51d29320
-0,          1,          1,        1,  8294400, 0x51d29320
+#tb 0: 1/2997
+0,          0,          0,        0,  8294400, 0x51d29320
+0,        100,        100,        0,  8294400, 0x51d29320
diff --git a/tests/ref/fate/prores-alpha b/tests/ref/fate/prores-alpha
index e300951..9aa9160 100644
--- a/tests/ref/fate/prores-alpha
+++ b/tests/ref/fate/prores-alpha
@@ -1,3 +1,3 @@
-#tb 0: 100/2997
-0,          0,          0,        1, 12441600, 0x9d3dc525
-0,          1,          1,        1, 12441600, 0x9d3dc525
+#tb 0: 1/2997
+0,          0,          0,        0, 12441600, 0x9d3dc525
+0,        100,        100,        0, 12441600, 0x9d3dc525
diff --git a/tests/ref/fate/qtrle-16bit b/tests/ref/fate/qtrle-16bit
index b60ce52..d0d71b5 100644
--- a/tests/ref/fate/qtrle-16bit
+++ b/tests/ref/fate/qtrle-16bit
@@ -1,84 +1,84 @@
-#tb 0: 1/15
+#tb 0: 1/600
 0,          0,          0,        1,    57600, 0xe6b0a48c
-0,          1,          1,        1,    57600, 0xe064d51c
-0,          2,          2,        1,    57600, 0xbfce6b33
-0,          3,          3,        1,    57600, 0x371bab02
-0,          4,          4,        1,    57600, 0x0d2d7456
-0,          5,          5,        1,    57600, 0x9184eecb
-0,          6,          6,        1,    57600, 0xb482e8db
-0,          7,          7,        1,    57600, 0x0f4cd4be
-0,          8,          8,        1,    57600, 0xe276cccb
-0,          9,          9,        1,    57600, 0x04c21c62
-0,         10,         10,        1,    57600, 0x848960a2
-0,         11,         11,        1,    57600, 0xc4c8cf03
-0,         12,         12,        1,    57600, 0xb4094866
-0,         13,         13,        1,    57600, 0xf22da043
-0,         14,         14,        1,    57600, 0x6517b67b
-0,         15,         15,        1,    57600, 0x23e39ccb
-0,         16,         16,        1,    57600, 0x41525ca3
-0,         17,         17,        1,    57600, 0xc3edc5f3
-0,         18,         18,        1,    57600, 0x8ce81c7e
-0,         19,         19,        1,    57600, 0x56829443
-0,         20,         20,        1,    57600, 0x511ce287
-0,         21,         21,        1,    57600, 0x8f029a5b
-0,         22,         22,        1,    57600, 0x2b47cf43
-0,         23,         23,        1,    57600, 0x8e7ecf4b
-0,         24,         24,        1,    57600, 0xd620317e
-0,         25,         25,        1,    57600, 0x5987646e
-0,         26,         26,        1,    57600, 0xcfedb7df
-0,         27,         27,        1,    57600, 0x33746e7b
-0,         28,         28,        1,    57600, 0x1d318573
-0,         29,         29,        1,    57600, 0xc851848b
-0,         30,         30,        1,    57600, 0x939db1d7
-0,         31,         31,        1,    57600, 0x1719aed3
-0,         32,         32,        1,    57600, 0x1ba3e18c
-0,         33,         33,        1,    57600, 0x04f355fb
-0,         34,         34,        1,    57600, 0x6fafd5f4
-0,         35,         35,        1,    57600, 0x434f800b
-0,         36,         36,        1,    57600, 0xed42179b
-0,         37,         37,        1,    57600, 0x3b33118b
-0,         38,         38,        1,    57600, 0xf81880cb
-0,         39,         39,        1,    57600, 0xd2c58e1b
-0,         40,         40,        1,    57600, 0xd96f50eb
-0,         41,         41,        1,    57600, 0x64ef63fb
-0,         42,         42,        1,    57600, 0x7b14b6fc
-0,         43,         43,        1,    57600, 0xeb1c9054
-0,         44,         44,        1,    57600, 0x3b30c97c
-0,         45,         45,        1,    57600, 0xc93e9484
-0,         46,         46,        1,    57600, 0xe012c0cc
-0,         47,         47,        1,    57600, 0x48e2dda4
-0,         48,         48,        1,    57600, 0x13eb55fb
-0,         49,         49,        1,    57600, 0xa5edbedc
-0,         50,         50,        1,    57600, 0x0123a484
-0,         51,         51,        1,    57600, 0xc624a7ac
-0,         52,         52,        1,    57600, 0xd83cf45c
-0,         53,         53,        1,    57600, 0x8f9bf4b4
-0,         54,         54,        1,    57600, 0x2d494b8c
-0,         55,         55,        1,    57600, 0xb246f07c
-0,         56,         56,        1,    57600, 0x5750e67c
-0,         57,         57,        1,    57600, 0x6643e9ac
-0,         58,         58,        1,    57600, 0x8d3b86b3
-0,         59,         59,        1,    57600, 0x4bb0546b
-0,         60,         60,        1,    57600, 0xfe439333
-0,         61,         61,        1,    57600, 0x0cc76233
-0,         62,         62,        1,    57600, 0xb6fe40ae
-0,         63,         63,        1,    57600, 0xf79fe0d7
-0,         64,         64,        1,    57600, 0xdc90dcbb
-0,         65,         65,        1,    57600, 0x371e7c2b
-0,         66,         66,        1,    57600, 0x7c4590bb
-0,         67,         67,        1,    57600, 0x66f5454b
-0,         68,         68,        1,    57600, 0x1678ae5b
-0,         69,         69,        1,    57600, 0x1ee8fdec
-0,         70,         70,        1,    57600, 0x98d2a083
-0,         71,         71,        1,    57600, 0x86d29e5b
-0,         72,         72,        1,    57600, 0x23d2bc83
-0,         73,         73,        1,    57600, 0x3fc729f2
-0,         74,         74,        1,    57600, 0x821d61da
-0,         75,         75,        1,    57600, 0xdd549e0e
-0,         76,         76,        1,    57600, 0x641234e2
-0,         77,         77,        1,    57600, 0x9a282112
-0,         78,         78,        1,    57600, 0x6587e2fb
-0,         79,         79,        1,    57600, 0x043d0cb2
-0,         80,         80,        1,    57600, 0x90328707
-0,         81,         81,        1,    57600, 0x5744d313
-0,         82,         82,        1,    57600, 0x6e1b95cb
+0,         40,         40,        1,    57600, 0xe064d51c
+0,         80,         80,        1,    57600, 0xbfce6b33
+0,        120,        120,        1,    57600, 0x371bab02
+0,        160,        160,        1,    57600, 0x0d2d7456
+0,        200,        200,        1,    57600, 0x9184eecb
+0,        240,        240,        1,    57600, 0xb482e8db
+0,        280,        280,        1,    57600, 0x0f4cd4be
+0,        320,        320,        1,    57600, 0xe276cccb
+0,        360,        360,        1,    57600, 0x04c21c62
+0,        400,        400,        1,    57600, 0x848960a2
+0,        440,        440,        1,    57600, 0xc4c8cf03
+0,        480,        480,        1,    57600, 0xb4094866
+0,        520,        520,        1,    57600, 0xf22da043
+0,        560,        560,        1,    57600, 0x6517b67b
+0,        600,        600,        1,    57600, 0x23e39ccb
+0,        640,        640,        1,    57600, 0x41525ca3
+0,        680,        680,        1,    57600, 0xc3edc5f3
+0,        720,        720,        1,    57600, 0x8ce81c7e
+0,        760,        760,        1,    57600, 0x56829443
+0,        800,        800,        1,    57600, 0x511ce287
+0,        840,        840,        1,    57600, 0x8f029a5b
+0,        880,        880,        1,    57600, 0x2b47cf43
+0,        920,        920,        1,    57600, 0x8e7ecf4b
+0,        960,        960,        1,    57600, 0xd620317e
+0,       1000,       1000,        1,    57600, 0x5987646e
+0,       1040,       1040,        1,    57600, 0xcfedb7df
+0,       1080,       1080,        1,    57600, 0x33746e7b
+0,       1120,       1120,        1,    57600, 0x1d318573
+0,       1160,       1160,        1,    57600, 0xc851848b
+0,       1200,       1200,        1,    57600, 0x939db1d7
+0,       1240,       1240,        1,    57600, 0x1719aed3
+0,       1280,       1280,        1,    57600, 0x1ba3e18c
+0,       1320,       1320,        1,    57600, 0x04f355fb
+0,       1360,       1360,        1,    57600, 0x6fafd5f4
+0,       1400,       1400,        1,    57600, 0x434f800b
+0,       1440,       1440,        1,    57600, 0xed42179b
+0,       1480,       1480,        1,    57600, 0x3b33118b
+0,       1520,       1520,        1,    57600, 0xf81880cb
+0,       1560,       1560,        1,    57600, 0xd2c58e1b
+0,       1600,       1600,        1,    57600, 0xd96f50eb
+0,       1640,       1640,        1,    57600, 0x64ef63fb
+0,       1680,       1680,        1,    57600, 0x7b14b6fc
+0,       1720,       1720,        1,    57600, 0xeb1c9054
+0,       1760,       1760,        1,    57600, 0x3b30c97c
+0,       1800,       1800,        1,    57600, 0xc93e9484
+0,       1840,       1840,        1,    57600, 0xe012c0cc
+0,       1880,       1880,        1,    57600, 0x48e2dda4
+0,       1920,       1920,        1,    57600, 0x13eb55fb
+0,       1960,       1960,        1,    57600, 0xa5edbedc
+0,       2000,       2000,        1,    57600, 0x0123a484
+0,       2040,       2040,        1,    57600, 0xc624a7ac
+0,       2080,       2080,        1,    57600, 0xd83cf45c
+0,       2120,       2120,        1,    57600, 0x8f9bf4b4
+0,       2160,       2160,        1,    57600, 0x2d494b8c
+0,       2200,       2200,        1,    57600, 0xb246f07c
+0,       2240,       2240,        1,    57600, 0x5750e67c
+0,       2280,       2280,        1,    57600, 0x6643e9ac
+0,       2320,       2320,        1,    57600, 0x8d3b86b3
+0,       2360,       2360,        1,    57600, 0x4bb0546b
+0,       2400,       2400,        1,    57600, 0xfe439333
+0,       2440,       2440,        1,    57600, 0x0cc76233
+0,       2480,       2480,        1,    57600, 0xb6fe40ae
+0,       2520,       2520,        1,    57600, 0xf79fe0d7
+0,       2560,       2560,        1,    57600, 0xdc90dcbb
+0,       2600,       2600,        1,    57600, 0x371e7c2b
+0,       2640,       2640,        1,    57600, 0x7c4590bb
+0,       2680,       2680,        1,    57600, 0x66f5454b
+0,       2720,       2720,        1,    57600, 0x1678ae5b
+0,       2760,       2760,        1,    57600, 0x1ee8fdec
+0,       2800,       2800,        1,    57600, 0x98d2a083
+0,       2840,       2840,        1,    57600, 0x86d29e5b
+0,       2880,       2880,        1,    57600, 0x23d2bc83
+0,       2920,       2920,        1,    57600, 0x3fc729f2
+0,       2960,       2960,        1,    57600, 0x821d61da
+0,       3000,       3000,        1,    57600, 0xdd549e0e
+0,       3040,       3040,        1,    57600, 0x641234e2
+0,       3080,       3080,        1,    57600, 0x9a282112
+0,       3120,       3120,        1,    57600, 0x6587e2fb
+0,       3160,       3160,        1,    57600, 0x043d0cb2
+0,       3200,       3200,        1,    57600, 0x90328707
+0,       3240,       3240,        1,    57600, 0x5744d313
+0,       3280,       3280,        1,    57600, 0x6e1b95cb
diff --git a/tests/ref/fate/qtrle-1bit b/tests/ref/fate/qtrle-1bit
index dc5d6aa..230cae6 100644
--- a/tests/ref/fate/qtrle-1bit
+++ b/tests/ref/fate/qtrle-1bit
@@ -1,109 +1,109 @@
-#tb 0: 1/12
+#tb 0: 1/1200
 #tb 1: 1/22050
-0,          0,          0,        1,     9600, 0xc1632102
+0,          0,          0,        0,     9600, 0xc1632102
 1,          0,          0,     1020,     2040, 0x0a157db4
 1,       1020,       1020,     1020,     2040, 0x00c63e08
-0,          1,          1,        1,     9600, 0x0f6c0521
+0,        100,        100,        0,     9600, 0x0f6c0521
 1,       2040,       2040,     1020,     2040, 0xacf2a25b
 1,       3060,       3060,     1020,     2040, 0xd6189e85
-0,          2,          2,        1,     9600, 0x04b90b5a
+0,        200,        200,        0,     9600, 0x04b90b5a
 1,       4080,       4080,     1020,     2040, 0x8276f843
 1,       5100,       5100,     1020,     2040, 0xadebae73
-0,          3,          3,        1,     9600, 0x2ebd4500
+0,        300,        300,        0,     9600, 0x2ebd4500
 1,       6120,       6120,     1020,     2040, 0x5da76697
 1,       7140,       7140,     1020,     2040, 0x469d0ea7
-0,          4,          4,        1,     9600, 0x726f46f4
+0,        400,        400,        0,     9600, 0x726f46f4
 1,       8160,       8160,     1020,     2040, 0x0d7412e1
 1,       9180,       9180,     1020,     2040, 0x2f2cc63f
-0,          5,          5,        1,     9600, 0x37f6968e
+0,        500,        500,        0,     9600, 0x37f6968e
 1,      10200,      10200,     1020,     2040, 0x10106eb7
-0,          6,          6,        1,     9600, 0x7305872e
+0,        600,        600,        0,     9600, 0x7305872e
 1,      11220,      11220,     1020,     2040, 0x300124c7
 1,      12240,      12240,     1020,     2040, 0xa329f8e8
-0,          7,          7,        1,     9600, 0x222eff5e
+0,        700,        700,        0,     9600, 0x222eff5e
 1,      13260,      13260,     1020,     2040, 0xcea35ca5
 1,      14280,      14280,     1020,     2040, 0x55105aef
-0,          8,          8,        1,     9600, 0x9317e227
+0,        800,        800,        0,     9600, 0x9317e227
 1,      15300,      15300,     1020,     2040, 0x08980ce1
 1,      16320,      16320,     1020,     2040, 0x367faf24
-0,          9,          9,        1,     9600, 0x421eee9d
+0,        900,        900,        0,     9600, 0x421eee9d
 1,      17340,      17340,     1020,     2040, 0x75bfef06
 1,      18360,      18360,     1020,     2040, 0x34f1daf4
-0,         10,         10,        1,     9600, 0xcbcfaaff
+0,       1000,       1000,        0,     9600, 0xcbcfaaff
 1,      19380,      19380,     1020,     2040, 0x97050317
-0,         11,         11,        1,     9600, 0xe7d43be2
+0,       1100,       1100,        0,     9600, 0xe7d43be2
 1,      20400,      20400,     1020,     2040, 0xd297c536
 1,      21420,      21420,     1020,     2040, 0xa8abad5a
-0,         12,         12,        1,     9600, 0x0b71e28c
+0,       1200,       1200,        0,     9600, 0x0b71e28c
 1,      22440,      22440,     1020,     2040, 0x445ce8e0
 1,      23460,      23460,     1020,     2040, 0xa3f4d940
-0,         13,         13,        1,     9600, 0xd6a050ca
+0,       1300,       1300,        0,     9600, 0xd6a050ca
 1,      24480,      24480,     1020,     2040, 0x0ebb7b26
 1,      25500,      25500,     1020,     2040, 0x4372f6f6
-0,         14,         14,        1,     9600, 0x0ac6dbf5
+0,       1400,       1400,        0,     9600, 0x0ac6dbf5
 1,      26520,      26520,     1020,     2040, 0xd4365079
 1,      27540,      27540,     1020,     2040, 0x56f902f7
-0,         15,         15,        1,     9600, 0x5c036038
+0,       1500,       1500,        0,     9600, 0x5c036038
 1,      28560,      28560,     1020,     2040, 0x4153938a
-0,         16,         16,        1,     9600, 0x6e417ed6
+0,       1600,       1600,        0,     9600, 0x6e417ed6
 1,      29580,      29580,     1020,     2040, 0x14996d86
 1,      30600,      30600,     1020,     2040, 0x3f99c318
-0,         17,         17,        1,     9600, 0x8bd0dc22
+0,       1700,       1700,        0,     9600, 0x8bd0dc22
 1,      31620,      31620,     1020,     2040, 0x939978a5
 1,      32640,      32640,     1020,     2040, 0x7086bd44
-0,         18,         18,        1,     9600, 0xdf3b0877
+0,       1800,       1800,        0,     9600, 0xdf3b0877
 1,      33660,      33660,      138,      276, 0x25b89d22
 1,      33798,      33798,     1020,     2040, 0xf3edb106
 1,      34818,      34818,     1020,     2040, 0x0ca61430
-0,         19,         19,        1,     9600, 0xae6e7823
+0,       1900,       1900,        0,     9600, 0xae6e7823
 1,      35838,      35838,     1020,     2040, 0x7229c458
-0,         20,         20,        1,     9600, 0x8ff0ac32
+0,       2000,       2000,        0,     9600, 0x8ff0ac32
 1,      36858,      36858,     1020,     2040, 0xc37edd31
 1,      37878,      37878,     1020,     2040, 0xa3da98b4
-0,         21,         21,        1,     9600, 0xa2d9e2ce
+0,       2100,       2100,        0,     9600, 0xa2d9e2ce
 1,      38898,      38898,     1020,     2040, 0x69704803
 1,      39918,      39918,     1020,     2040, 0xa79bf334
-0,         22,         22,        1,     9600, 0x5fd92b65
+0,       2200,       2200,        0,     9600, 0x5fd92b65
 1,      40938,      40938,     1020,     2040, 0x59d8d4c4
 1,      41958,      41958,     1020,     2040, 0xf9ff0271
-0,         23,         23,        1,     9600, 0x81c1c824
+0,       2300,       2300,        0,     9600, 0x81c1c824
 1,      42978,      42978,     1020,     2040, 0xc4ced9d6
 1,      43998,      43998,     1020,     2040, 0x859f1912
-0,         24,         24,        1,     9600, 0xb8a2ace4
+0,       2400,       2400,        0,     9600, 0xb8a2ace4
 1,      45018,      45018,     1020,     2040, 0xe7955aa6
-0,         25,         25,        1,     9600, 0x65b70404
+0,       2500,       2500,        0,     9600, 0x65b70404
 1,      46038,      46038,     1020,     2040, 0x374624fd
 1,      47058,      47058,     1020,     2040, 0x52121097
-0,         26,         26,        1,     9600, 0xc5349eb2
+0,       2600,       2600,        0,     9600, 0xc5349eb2
 1,      48078,      48078,     1020,     2040, 0x660fe645
 1,      49098,      49098,     1020,     2040, 0xf624176a
-0,         27,         27,        1,     9600, 0xf60cc2b8
+0,       2700,       2700,        0,     9600, 0xf60cc2b8
 1,      50118,      50118,     1020,     2040, 0x1f2246dd
 1,      51138,      51138,     1020,     2040, 0x940e0a32
-0,         28,         28,        1,     9600, 0x31474595
+0,       2800,       2800,        0,     9600, 0x31474595
 1,      52158,      52158,     1020,     2040, 0x9c6d338c
 1,      53178,      53178,     1020,     2040, 0xfce0d30a
-0,         29,         29,        1,     9600, 0xf602635b
+0,       2900,       2900,        0,     9600, 0xf602635b
 1,      54198,      54198,     1020,     2040, 0xd0ec9aa5
-0,         30,         30,        1,     9600, 0x873cbd87
+0,       3000,       3000,        0,     9600, 0x873cbd87
 1,      55218,      55218,     1020,     2040, 0x58012141
 1,      56238,      56238,     1020,     2040, 0xde67fc43
-0,         31,         31,        1,     9600, 0xb9793ffe
+0,       3100,       3100,        0,     9600, 0xb9793ffe
 1,      57258,      57258,     1020,     2040, 0x6baa0450
 1,      58278,      58278,     1020,     2040, 0xf4f80252
-0,         32,         32,        1,     9600, 0x42eb2831
+0,       3200,       3200,        0,     9600, 0x42eb2831
 1,      59298,      59298,     1020,     2040, 0x0cd47ee3
 1,      60318,      60318,     1020,     2040, 0x129cbaa7
-0,         33,         33,        1,     9600, 0x44cc1dab
+0,       3300,       3300,        0,     9600, 0x44cc1dab
 1,      61338,      61338,     1020,     2040, 0x5ef5c0a1
 1,      62358,      62358,     1020,     2040, 0xf660baa7
-0,         34,         34,        1,     9600, 0xbdcbbb87
+0,       3400,       3400,        0,     9600, 0xbdcbbb87
 1,      63378,      63378,     1020,     2040, 0xe48bc0a1
-0,         35,         35,        1,     9600, 0x29c22df7
+0,       3500,       3500,        0,     9600, 0x29c22df7
 1,      64398,      64398,     1020,     2040, 0xdfeabaa7
 1,      65418,      65418,     1020,     2040, 0xed04c0a1
-0,         36,         36,        1,     9600, 0xde502ef5
+0,       3600,       3600,        0,     9600, 0xde502ef5
 1,      66438,      66438,     1020,     2040, 0xd771baa7
 1,      67458,      67458,      150,      300, 0x521f24e9
 1,      67608,      67608,      738,     1476, 0x9b9394b1
-0,         37,         37,        1,     9600, 0xaf311aeb
+0,       3700,       3700,        0,     9600, 0xaf311aeb
diff --git a/tests/ref/fate/qtrle-24bit b/tests/ref/fate/qtrle-24bit
index a21b099..7a162b8 100644
--- a/tests/ref/fate/qtrle-24bit
+++ b/tests/ref/fate/qtrle-24bit
@@ -1,35 +1,35 @@
-#tb 0: 1/10
+#tb 0: 1/600
 0,          0,          0,        1,    57600, 0x3718ad00
-0,          1,          1,        1,    57600, 0x54861558
-0,          2,          2,        1,    57600, 0xea1d6233
-0,          3,          3,        1,    57600, 0xf669a2fd
-0,          4,          4,        1,    57600, 0xc9f76f31
-0,          5,          5,        1,    57600, 0xe23c6d7b
-0,          6,          6,        1,    57600, 0xbc9d6167
-0,          7,          7,        1,    57600, 0x0ca63477
-0,          8,          8,        1,    57600, 0xc0850d22
-0,          9,          9,        1,    57600, 0x735d10b2
-0,         10,         10,        1,    57600, 0x561f3c4a
-0,         11,         11,        1,    57600, 0x84db9cf1
-0,         12,         12,        1,    57600, 0x9fb841f4
-0,         13,         13,        1,    57600, 0xeaf262ab
-0,         14,         14,        1,    57600, 0x264886b4
-0,         15,         15,        1,    57600, 0x5edc5518
-0,         16,         16,        1,    57600, 0xd3e60c72
-0,         17,         17,        1,    57600, 0x9cabaed7
-0,         18,         18,        1,    57600, 0x616716cf
-0,         19,         19,        1,    57600, 0xa43f61aa
-0,         20,         20,        1,    57600, 0xdba3a0bd
-0,         21,         21,        1,    57600, 0xa7dd6dfa
-0,         22,         22,        1,    57600, 0xc3fa6c84
-0,         23,         23,        1,    57600, 0xb1275fb8
-0,         24,         24,        1,    57600, 0x2e39331f
-0,         25,         25,        1,    57600, 0x5b9e0bca
-0,         26,         26,        1,    57600, 0x0e760f5a
-0,         27,         27,        1,    57600, 0xc56c3e69
-0,         28,         28,        1,    57600, 0x51da9fb8
-0,         29,         29,        1,    57600, 0xe3a1432b
-0,         30,         30,        1,    57600, 0xe1b360a3
-0,         31,         31,        1,    57600, 0x30b383cd
-0,         32,         32,        1,    57600, 0x950c5439
-0,         33,         33,        1,    57600, 0x8f9d0ca2
+0,         60,         60,        1,    57600, 0x54861558
+0,        120,        120,        1,    57600, 0xea1d6233
+0,        180,        180,        1,    57600, 0xf669a2fd
+0,        240,        240,        1,    57600, 0xc9f76f31
+0,        300,        300,        1,    57600, 0xe23c6d7b
+0,        360,        360,        1,    57600, 0xbc9d6167
+0,        420,        420,        1,    57600, 0x0ca63477
+0,        480,        480,        1,    57600, 0xc0850d22
+0,        540,        540,        1,    57600, 0x735d10b2
+0,        600,        600,        1,    57600, 0x561f3c4a
+0,        660,        660,        1,    57600, 0x84db9cf1
+0,        720,        720,        1,    57600, 0x9fb841f4
+0,        780,        780,        1,    57600, 0xeaf262ab
+0,        840,        840,        1,    57600, 0x264886b4
+0,        900,        900,        1,    57600, 0x5edc5518
+0,        960,        960,        1,    57600, 0xd3e60c72
+0,       1020,       1020,        1,    57600, 0x9cabaed7
+0,       1080,       1080,        1,    57600, 0x616716cf
+0,       1140,       1140,        1,    57600, 0xa43f61aa
+0,       1200,       1200,        1,    57600, 0xdba3a0bd
+0,       1260,       1260,        1,    57600, 0xa7dd6dfa
+0,       1320,       1320,        1,    57600, 0xc3fa6c84
+0,       1380,       1380,        1,    57600, 0xb1275fb8
+0,       1440,       1440,        1,    57600, 0x2e39331f
+0,       1500,       1500,        1,    57600, 0x5b9e0bca
+0,       1560,       1560,        1,    57600, 0x0e760f5a
+0,       1620,       1620,        1,    57600, 0xc56c3e69
+0,       1680,       1680,        1,    57600, 0x51da9fb8
+0,       1740,       1740,        1,    57600, 0xe3a1432b
+0,       1800,       1800,        1,    57600, 0xe1b360a3
+0,       1860,       1860,        1,    57600, 0x30b383cd
+0,       1920,       1920,        1,    57600, 0x950c5439
+0,       1980,       1980,        1,    57600, 0x8f9d0ca2
diff --git a/tests/ref/fate/qtrle-2bit b/tests/ref/fate/qtrle-2bit
index 4b93d87..2a43a84 100644
--- a/tests/ref/fate/qtrle-2bit
+++ b/tests/ref/fate/qtrle-2bit
@@ -1,109 +1,109 @@
-#tb 0: 1/12
+#tb 0: 1/1200
 #tb 1: 1/22050
-0,          0,          0,        1,   230400, 0xb1ee55dc
+0,          0,          0,        0,   230400, 0xb1ee55dc
 1,          0,          0,     1020,     2040, 0x0a157db4
 1,       1020,       1020,     1020,     2040, 0x00c63e08
-0,          1,          1,        1,   230400, 0x97c580bf
+0,        100,        100,        0,   230400, 0x97c580bf
 1,       2040,       2040,     1020,     2040, 0xacf2a25b
 1,       3060,       3060,     1020,     2040, 0xd6189e85
-0,          2,          2,        1,   230400, 0xd4bd57e8
+0,        200,        200,        0,   230400, 0xd4bd57e8
 1,       4080,       4080,     1020,     2040, 0x8276f843
 1,       5100,       5100,     1020,     2040, 0xadebae73
-0,          3,          3,        1,   230400, 0x412b79aa
+0,        300,        300,        0,   230400, 0x412b79aa
 1,       6120,       6120,     1020,     2040, 0x5da76697
 1,       7140,       7140,     1020,     2040, 0x469d0ea7
-0,          4,          4,        1,   230400, 0x928a44d1
+0,        400,        400,        0,   230400, 0x928a44d1
 1,       8160,       8160,     1020,     2040, 0x0d7412e1
 1,       9180,       9180,     1020,     2040, 0x2f2cc63f
-0,          5,          5,        1,   230400, 0x6bbdc0e4
+0,        500,        500,        0,   230400, 0x6bbdc0e4
 1,      10200,      10200,     1020,     2040, 0x10106eb7
-0,          6,          6,        1,   230400, 0x382e960f
+0,        600,        600,        0,   230400, 0x382e960f
 1,      11220,      11220,     1020,     2040, 0x300124c7
 1,      12240,      12240,     1020,     2040, 0xa329f8e8
-0,          7,          7,        1,   230400, 0x62c863ea
+0,        700,        700,        0,   230400, 0x62c863ea
 1,      13260,      13260,     1020,     2040, 0xcea35ca5
 1,      14280,      14280,     1020,     2040, 0x55105aef
-0,          8,          8,        1,   230400, 0xbfccd3ce
+0,        800,        800,        0,   230400, 0xbfccd3ce
 1,      15300,      15300,     1020,     2040, 0x08980ce1
 1,      16320,      16320,     1020,     2040, 0x367faf24
-0,          9,          9,        1,   230400, 0x1987cdd4
+0,        900,        900,        0,   230400, 0x1987cdd4
 1,      17340,      17340,     1020,     2040, 0x75bfef06
 1,      18360,      18360,     1020,     2040, 0x34f1daf4
-0,         10,         10,        1,   230400, 0x40279727
+0,       1000,       1000,        0,   230400, 0x40279727
 1,      19380,      19380,     1020,     2040, 0x97050317
-0,         11,         11,        1,   230400, 0x9d4f6746
+0,       1100,       1100,        0,   230400, 0x9d4f6746
 1,      20400,      20400,     1020,     2040, 0xd297c536
 1,      21420,      21420,     1020,     2040, 0xa8abad5a
-0,         12,         12,        1,   230400, 0x7b8a77ec
+0,       1200,       1200,        0,   230400, 0x7b8a77ec
 1,      22440,      22440,     1020,     2040, 0x445ce8e0
 1,      23460,      23460,     1020,     2040, 0xa3f4d940
-0,         13,         13,        1,   230400, 0x2ce7a781
+0,       1300,       1300,        0,   230400, 0x2ce7a781
 1,      24480,      24480,     1020,     2040, 0x0ebb7b26
 1,      25500,      25500,     1020,     2040, 0x4372f6f6
-0,         14,         14,        1,   230400, 0xb749815e
+0,       1400,       1400,        0,   230400, 0xb749815e
 1,      26520,      26520,     1020,     2040, 0xd4365079
 1,      27540,      27540,     1020,     2040, 0x56f902f7
-0,         15,         15,        1,   230400, 0x61c88610
+0,       1500,       1500,        0,   230400, 0x61c88610
 1,      28560,      28560,     1020,     2040, 0x4153938a
-0,         16,         16,        1,   230400, 0x8449114d
+0,       1600,       1600,        0,   230400, 0x8449114d
 1,      29580,      29580,     1020,     2040, 0x14996d86
 1,      30600,      30600,     1020,     2040, 0x3f99c318
-0,         17,         17,        1,   230400, 0x5f73e666
+0,       1700,       1700,        0,   230400, 0x5f73e666
 1,      31620,      31620,     1020,     2040, 0x939978a5
 1,      32640,      32640,     1020,     2040, 0x7086bd44
-0,         18,         18,        1,   230400, 0xbde53ce6
+0,       1800,       1800,        0,   230400, 0xbde53ce6
 1,      33660,      33660,      138,      276, 0x25b89d22
 1,      33798,      33798,     1020,     2040, 0xf3edb106
 1,      34818,      34818,     1020,     2040, 0x0ca61430
-0,         19,         19,        1,   230400, 0x8c7406fd
+0,       1900,       1900,        0,   230400, 0x8c7406fd
 1,      35838,      35838,     1020,     2040, 0x7229c458
-0,         20,         20,        1,   230400, 0xf9e9a3ef
+0,       2000,       2000,        0,   230400, 0xf9e9a3ef
 1,      36858,      36858,     1020,     2040, 0xc37edd31
 1,      37878,      37878,     1020,     2040, 0xa3da98b4
-0,         21,         21,        1,   230400, 0x7e0a3077
+0,       2100,       2100,        0,   230400, 0x7e0a3077
 1,      38898,      38898,     1020,     2040, 0x69704803
 1,      39918,      39918,     1020,     2040, 0xa79bf334
-0,         22,         22,        1,   230400, 0xd9245c5f
+0,       2200,       2200,        0,   230400, 0xd9245c5f
 1,      40938,      40938,     1020,     2040, 0x59d8d4c4
 1,      41958,      41958,     1020,     2040, 0xf9ff0271
-0,         23,         23,        1,   230400, 0x6d077ea2
+0,       2300,       2300,        0,   230400, 0x6d077ea2
 1,      42978,      42978,     1020,     2040, 0xc4ced9d6
 1,      43998,      43998,     1020,     2040, 0x859f1912
-0,         24,         24,        1,   230400, 0xf622bb2a
+0,       2400,       2400,        0,   230400, 0xf622bb2a
 1,      45018,      45018,     1020,     2040, 0xe7955aa6
-0,         25,         25,        1,   230400, 0x35292dc8
+0,       2500,       2500,        0,   230400, 0x35292dc8
 1,      46038,      46038,     1020,     2040, 0x374624fd
 1,      47058,      47058,     1020,     2040, 0x52121097
-0,         26,         26,        1,   230400, 0xc0cea946
+0,       2600,       2600,        0,   230400, 0xc0cea946
 1,      48078,      48078,     1020,     2040, 0x660fe645
 1,      49098,      49098,     1020,     2040, 0xf624176a
-0,         27,         27,        1,   230400, 0x98b27b60
+0,       2700,       2700,        0,   230400, 0x98b27b60
 1,      50118,      50118,     1020,     2040, 0x1f2246dd
 1,      51138,      51138,     1020,     2040, 0x940e0a32
-0,         28,         28,        1,   230400, 0x668ef6bd
+0,       2800,       2800,        0,   230400, 0x668ef6bd
 1,      52158,      52158,     1020,     2040, 0x9c6d338c
 1,      53178,      53178,     1020,     2040, 0xfce0d30a
-0,         29,         29,        1,   230400, 0x6c07a31c
+0,       2900,       2900,        0,   230400, 0x6c07a31c
 1,      54198,      54198,     1020,     2040, 0xd0ec9aa5
-0,         30,         30,        1,   230400, 0x0b4a6ae1
+0,       3000,       3000,        0,   230400, 0x0b4a6ae1
 1,      55218,      55218,     1020,     2040, 0x58012141
 1,      56238,      56238,     1020,     2040, 0xde67fc43
-0,         31,         31,        1,   230400, 0x945b9878
+0,       3100,       3100,        0,   230400, 0x945b9878
 1,      57258,      57258,     1020,     2040, 0x6baa0450
 1,      58278,      58278,     1020,     2040, 0xf4f80252
-0,         32,         32,        1,   230400, 0xab28031c
+0,       3200,       3200,        0,   230400, 0xab28031c
 1,      59298,      59298,     1020,     2040, 0x0cd47ee3
 1,      60318,      60318,     1020,     2040, 0x129cbaa7
-0,         33,         33,        1,   230400, 0x977252b0
+0,       3300,       3300,        0,   230400, 0x977252b0
 1,      61338,      61338,     1020,     2040, 0x5ef5c0a1
 1,      62358,      62358,     1020,     2040, 0xf660baa7
-0,         34,         34,        1,   230400, 0x6c3d9706
+0,       3400,       3400,        0,   230400, 0x6c3d9706
 1,      63378,      63378,     1020,     2040, 0xe48bc0a1
-0,         35,         35,        1,   230400, 0xe053bc2a
+0,       3500,       3500,        0,   230400, 0xe053bc2a
 1,      64398,      64398,     1020,     2040, 0xdfeabaa7
 1,      65418,      65418,     1020,     2040, 0xed04c0a1
-0,         36,         36,        1,   230400, 0x4cf2fc7c
+0,       3600,       3600,        0,   230400, 0x4cf2fc7c
 1,      66438,      66438,     1020,     2040, 0xd771baa7
 1,      67458,      67458,      150,      300, 0x521f24e9
 1,      67608,      67608,      738,     1476, 0x9b9394b1
-0,         37,         37,        1,   230400, 0x610beda7
+0,       3700,       3700,        0,   230400, 0x610beda7
diff --git a/tests/ref/fate/qtrle-32bit b/tests/ref/fate/qtrle-32bit
index ed6dc03..bbdd464 100644
--- a/tests/ref/fate/qtrle-32bit
+++ b/tests/ref/fate/qtrle-32bit
@@ -1,27 +1,27 @@
-#tb 0: 100/2997
-0,          0,          0,        1,  1036800, 0x2a90d062
-0,          1,          1,        1,  1036800, 0x6565aded
-0,          2,          2,        1,  1036800, 0xf0b587d2
-0,          3,          3,        1,  1036800, 0xf0b4e53f
-0,          4,          4,        1,  1036800, 0x5ba4b96a
-0,          5,          5,        1,  1036800, 0x501df9c1
-0,          6,          6,        1,  1036800, 0xcf45b940
-0,          7,          7,        1,  1036800, 0xa454df07
-0,          8,          8,        1,  1036800, 0xc504d152
-0,          9,          9,        1,  1036800, 0xd90ecac7
-0,         10,         10,        1,  1036800, 0xe30368df
-0,         11,         11,        1,  1036800, 0x0ca35522
-0,         12,         12,        1,  1036800, 0xe76b8d43
-0,         13,         13,        1,  1036800, 0x7c85a447
-0,         14,         14,        1,  1036800, 0x3e2d1b5f
-0,         15,         15,        1,  1036800, 0x230fa5a6
-0,         16,         16,        1,  1036800, 0x4fad025e
-0,         17,         17,        1,  1036800, 0x7d3366ae
-0,         18,         18,        1,  1036800, 0xa83720f7
-0,         19,         19,        1,  1036800, 0x5dbd13b1
-0,         20,         20,        1,  1036800, 0xd0ebd56d
-0,         21,         21,        1,  1036800, 0x4d7c67f3
-0,         22,         22,        1,  1036800, 0x226baa3f
-0,         23,         23,        1,  1036800, 0xc0e93acf
-0,         24,         24,        1,  1036800, 0x5a466c17
-0,         25,         25,        1,  1036800, 0xfdb7d2ea
+#tb 0: 1/2997
+0,          0,          0,        0,  1036800, 0x2a90d062
+0,        100,        100,        0,  1036800, 0x6565aded
+0,        200,        200,        0,  1036800, 0xf0b587d2
+0,        300,        300,        0,  1036800, 0xf0b4e53f
+0,        400,        400,        0,  1036800, 0x5ba4b96a
+0,        500,        500,        0,  1036800, 0x501df9c1
+0,        600,        600,        0,  1036800, 0xcf45b940
+0,        700,        700,        0,  1036800, 0xa454df07
+0,        800,        800,        0,  1036800, 0xc504d152
+0,        900,        900,        0,  1036800, 0xd90ecac7
+0,       1000,       1000,        0,  1036800, 0xe30368df
+0,       1100,       1100,        0,  1036800, 0x0ca35522
+0,       1200,       1200,        0,  1036800, 0xe76b8d43
+0,       1300,       1300,        0,  1036800, 0x7c85a447
+0,       1400,       1400,        0,  1036800, 0x3e2d1b5f
+0,       1500,       1500,        0,  1036800, 0x230fa5a6
+0,       1600,       1600,        0,  1036800, 0x4fad025e
+0,       1700,       1700,        0,  1036800, 0x7d3366ae
+0,       1800,       1800,        0,  1036800, 0xa83720f7
+0,       1900,       1900,        0,  1036800, 0x5dbd13b1
+0,       2000,       2000,        0,  1036800, 0xd0ebd56d
+0,       2100,       2100,        0,  1036800, 0x4d7c67f3
+0,       2200,       2200,        0,  1036800, 0x226baa3f
+0,       2300,       2300,        0,  1036800, 0xc0e93acf
+0,       2400,       2400,        0,  1036800, 0x5a466c17
+0,       2500,       2500,        0,  1036800, 0xfdb7d2ea
diff --git a/tests/ref/fate/qtrle-4bit b/tests/ref/fate/qtrle-4bit
index 74eb4ab..cc09e78 100644
--- a/tests/ref/fate/qtrle-4bit
+++ b/tests/ref/fate/qtrle-4bit
@@ -1,39 +1,39 @@
-#tb 0: 1/12
-0,          0,          0,        1,   230400, 0x0655b3d9
-0,          1,          1,        1,   230400, 0x9c626fd3
-0,          2,          2,        1,   230400, 0x5bc95868
-0,          3,          3,        1,   230400, 0x55a38387
-0,          4,          4,        1,   230400, 0xd3495b60
-0,          5,          5,        1,   230400, 0xecdb2d15
-0,          6,          6,        1,   230400, 0x7f9b373e
-0,          7,          7,        1,   230400, 0x51caac22
-0,          8,          8,        1,   230400, 0x0f2ac153
-0,          9,          9,        1,   230400, 0xe5a6f9e7
-0,         10,         10,        1,   230400, 0xfc2b2250
-0,         11,         11,        1,   230400, 0x24e2da1b
-0,         12,         12,        1,   230400, 0x2723d7dd
-0,         13,         13,        1,   230400, 0x024a4989
-0,         14,         14,        1,   230400, 0xdbafb92d
-0,         15,         15,        1,   230400, 0x6b9b5056
-0,         16,         16,        1,   230400, 0x010cabb4
-0,         17,         17,        1,   230400, 0xf75bc1c0
-0,         18,         18,        1,   230400, 0x6c7fd744
-0,         19,         19,        1,   230400, 0xabe4371a
-0,         20,         20,        1,   230400, 0xe41fb781
-0,         21,         21,        1,   230400, 0x42c5649e
-0,         22,         22,        1,   230400, 0xf5511deb
-0,         23,         23,        1,   230400, 0xebf5ab32
-0,         24,         24,        1,   230400, 0x44398194
-0,         25,         25,        1,   230400, 0xfd63510c
-0,         26,         26,        1,   230400, 0xa013975e
-0,         27,         27,        1,   230400, 0xe0aa028d
-0,         28,         28,        1,   230400, 0x349f6f3b
-0,         29,         29,        1,   230400, 0x2446032c
-0,         30,         30,        1,   230400, 0x648f122c
-0,         31,         31,        1,   230400, 0xbda221fd
-0,         32,         32,        1,   230400, 0xf0f97642
-0,         33,         33,        1,   230400, 0x6a1737de
-0,         34,         34,        1,   230400, 0x808a8179
-0,         35,         35,        1,   230400, 0x121641cf
-0,         36,         36,        1,   230400, 0x275d11ea
-0,         37,         37,        1,   230400, 0x92adf2cf
+#tb 0: 1/1200
+0,          0,          0,        0,   230400, 0x0655b3d9
+0,        100,        100,        0,   230400, 0x9c626fd3
+0,        200,        200,        0,   230400, 0x5bc95868
+0,        300,        300,        0,   230400, 0x55a38387
+0,        400,        400,        0,   230400, 0xd3495b60
+0,        500,        500,        0,   230400, 0xecdb2d15
+0,        600,        600,        0,   230400, 0x7f9b373e
+0,        700,        700,        0,   230400, 0x51caac22
+0,        800,        800,        0,   230400, 0x0f2ac153
+0,        900,        900,        0,   230400, 0xe5a6f9e7
+0,       1000,       1000,        0,   230400, 0xfc2b2250
+0,       1100,       1100,        0,   230400, 0x24e2da1b
+0,       1200,       1200,        0,   230400, 0x2723d7dd
+0,       1300,       1300,        0,   230400, 0x024a4989
+0,       1400,       1400,        0,   230400, 0xdbafb92d
+0,       1500,       1500,        0,   230400, 0x6b9b5056
+0,       1600,       1600,        0,   230400, 0x010cabb4
+0,       1700,       1700,        0,   230400, 0xf75bc1c0
+0,       1800,       1800,        0,   230400, 0x6c7fd744
+0,       1900,       1900,        0,   230400, 0xabe4371a
+0,       2000,       2000,        0,   230400, 0xe41fb781
+0,       2100,       2100,        0,   230400, 0x42c5649e
+0,       2200,       2200,        0,   230400, 0xf5511deb
+0,       2300,       2300,        0,   230400, 0xebf5ab32
+0,       2400,       2400,        0,   230400, 0x44398194
+0,       2500,       2500,        0,   230400, 0xfd63510c
+0,       2600,       2600,        0,   230400, 0xa013975e
+0,       2700,       2700,        0,   230400, 0xe0aa028d
+0,       2800,       2800,        0,   230400, 0x349f6f3b
+0,       2900,       2900,        0,   230400, 0x2446032c
+0,       3000,       3000,        0,   230400, 0x648f122c
+0,       3100,       3100,        0,   230400, 0xbda221fd
+0,       3200,       3200,        0,   230400, 0xf0f97642
+0,       3300,       3300,        0,   230400, 0x6a1737de
+0,       3400,       3400,        0,   230400, 0x808a8179
+0,       3500,       3500,        0,   230400, 0x121641cf
+0,       3600,       3600,        0,   230400, 0x275d11ea
+0,       3700,       3700,        0,   230400, 0x92adf2cf
diff --git a/tests/ref/fate/qtrle-8bit b/tests/ref/fate/qtrle-8bit
index 5b30fbb..bef2358 100644
--- a/tests/ref/fate/qtrle-8bit
+++ b/tests/ref/fate/qtrle-8bit
@@ -1,168 +1,168 @@
-#tb 0: 1/15
+#tb 0: 1/600
 0,          0,          0,        1,   921600, 0x1492e3ed
-0,          1,          1,        1,   921600, 0x1492e3ed
-0,          2,          2,        1,   921600, 0x1492e3ed
-0,          3,          3,        1,   921600, 0x23ef4fc7
-0,          4,          4,        1,   921600, 0x23ef4fc7
-0,          5,          5,        1,   921600, 0xe406d4be
-0,          6,          6,        1,   921600, 0xe406d4be
-0,          7,          7,        1,   921600, 0xe406d4be
-0,          8,          8,        1,   921600, 0x62b8b5a1
-0,          9,          9,        1,   921600, 0x62b8b5a1
-0,         10,         10,        1,   921600, 0x7d8ba674
-0,         11,         11,        1,   921600, 0x7d8ba674
-0,         12,         12,        1,   921600, 0x7d8ba674
-0,         13,         13,        1,   921600, 0xfe666be7
-0,         14,         14,        1,   921600, 0xfe666be7
-0,         15,         15,        1,   921600, 0x721baec0
-0,         16,         16,        1,   921600, 0x721baec0
-0,         17,         17,        1,   921600, 0x721baec0
-0,         18,         18,        1,   921600, 0xc237180a
-0,         19,         19,        1,   921600, 0xc237180a
-0,         20,         20,        1,   921600, 0xf03a7482
-0,         21,         21,        1,   921600, 0xf03a7482
-0,         22,         22,        1,   921600, 0xf03a7482
-0,         23,         23,        1,   921600, 0x5612a391
-0,         24,         24,        1,   921600, 0x5612a391
-0,         25,         25,        1,   921600, 0x9dbcc46a
-0,         26,         26,        1,   921600, 0x9dbcc46a
-0,         27,         27,        1,   921600, 0x9dbcc46a
-0,         28,         28,        1,   921600, 0xa128a5d5
-0,         29,         29,        1,   921600, 0xa128a5d5
-0,         30,         30,        1,   921600, 0x63e0025c
-0,         31,         31,        1,   921600, 0x63e0025c
-0,         32,         32,        1,   921600, 0x63e0025c
-0,         33,         33,        1,   921600, 0x262359ed
-0,         34,         34,        1,   921600, 0x262359ed
-0,         35,         35,        1,   921600, 0x343688e8
-0,         36,         36,        1,   921600, 0x343688e8
-0,         37,         37,        1,   921600, 0x343688e8
-0,         38,         38,        1,   921600, 0x343688e8
-0,         39,         39,        1,   921600, 0x343688e8
-0,         40,         40,        1,   921600, 0x343688e8
-0,         41,         41,        1,   921600, 0x343688e8
-0,         42,         42,        1,   921600, 0x343688e8
-0,         43,         43,        1,   921600, 0x343688e8
-0,         44,         44,        1,   921600, 0x343688e8
-0,         45,         45,        1,   921600, 0xe4b29d57
-0,         46,         46,        1,   921600, 0xe4b29d57
-0,         47,         47,        1,   921600, 0xe4b29d57
-0,         48,         48,        1,   921600, 0x198e8a4a
-0,         49,         49,        1,   921600, 0x198e8a4a
-0,         50,         50,        1,   921600, 0x0cad8dc9
-0,         51,         51,        1,   921600, 0x0cad8dc9
-0,         52,         52,        1,   921600, 0x0cad8dc9
-0,         53,         53,        1,   921600, 0x1f74cf3d
-0,         54,         54,        1,   921600, 0x1f74cf3d
-0,         55,         55,        1,   921600, 0xec5b5449
-0,         56,         56,        1,   921600, 0xec5b5449
-0,         57,         57,        1,   921600, 0xec5b5449
-0,         58,         58,        1,   921600, 0x39829711
-0,         59,         59,        1,   921600, 0x39829711
-0,         60,         60,        1,   921600, 0x6de5b9c6
-0,         61,         61,        1,   921600, 0x6de5b9c6
-0,         62,         62,        1,   921600, 0x6de5b9c6
-0,         63,         63,        1,   921600, 0x47b0e9d4
-0,         64,         64,        1,   921600, 0x47b0e9d4
-0,         65,         65,        1,   921600, 0x756452b8
-0,         66,         66,        1,   921600, 0x756452b8
-0,         67,         67,        1,   921600, 0x756452b8
-0,         68,         68,        1,   921600, 0x6fce3478
-0,         69,         69,        1,   921600, 0x6fce3478
-0,         70,         70,        1,   921600, 0x372397cd
-0,         71,         71,        1,   921600, 0x372397cd
-0,         72,         72,        1,   921600, 0x372397cd
-0,         73,         73,        1,   921600, 0xe3999ba1
-0,         74,         74,        1,   921600, 0xe3999ba1
-0,         75,         75,        1,   921600, 0x6ba26b43
-0,         76,         76,        1,   921600, 0x6ba26b43
-0,         77,         77,        1,   921600, 0x6ba26b43
-0,         78,         78,        1,   921600, 0x4e9ee49e
-0,         79,         79,        1,   921600, 0x4e9ee49e
-0,         80,         80,        1,   921600, 0xdb5fd6e7
-0,         81,         81,        1,   921600, 0xdb5fd6e7
-0,         82,         82,        1,   921600, 0xdb5fd6e7
-0,         83,         83,        1,   921600, 0x8f2254a5
-0,         84,         84,        1,   921600, 0x8f2254a5
-0,         85,         85,        1,   921600, 0x8f2254a5
-0,         86,         86,        1,   921600, 0x8f2254a5
-0,         87,         87,        1,   921600, 0x8f2254a5
-0,         88,         88,        1,   921600, 0x8f2254a5
-0,         89,         89,        1,   921600, 0x8f2254a5
-0,         90,         90,        1,   921600, 0x8f2254a5
-0,         91,         91,        1,   921600, 0x8f2254a5
-0,         92,         92,        1,   921600, 0x8f2254a5
-0,         93,         93,        1,   921600, 0x57e95c32
-0,         94,         94,        1,   921600, 0x57e95c32
-0,         95,         95,        1,   921600, 0x41627a9b
-0,         96,         96,        1,   921600, 0x41627a9b
-0,         97,         97,        1,   921600, 0x41627a9b
-0,         98,         98,        1,   921600, 0x7412dcee
-0,         99,         99,        1,   921600, 0x7412dcee
-0,        100,        100,        1,   921600, 0xaebe10ed
-0,        101,        101,        1,   921600, 0xaebe10ed
-0,        102,        102,        1,   921600, 0xaebe10ed
-0,        103,        103,        1,   921600, 0x411a91f6
-0,        104,        104,        1,   921600, 0x411a91f6
-0,        105,        105,        1,   921600, 0xb059df3f
-0,        106,        106,        1,   921600, 0xb059df3f
-0,        107,        107,        1,   921600, 0xb059df3f
-0,        108,        108,        1,   921600, 0x4d6f5a77
-0,        109,        109,        1,   921600, 0x4d6f5a77
-0,        110,        110,        1,   921600, 0xbbf06df4
-0,        111,        111,        1,   921600, 0xbbf06df4
-0,        112,        112,        1,   921600, 0xbbf06df4
-0,        113,        113,        1,   921600, 0xe27f7bf6
-0,        114,        114,        1,   921600, 0xe27f7bf6
-0,        115,        115,        1,   921600, 0xd7e8360e
-0,        116,        116,        1,   921600, 0xd7e8360e
-0,        117,        117,        1,   921600, 0xd7e8360e
-0,        118,        118,        1,   921600, 0x1dd4c344
-0,        119,        119,        1,   921600, 0x1dd4c344
-0,        120,        120,        1,   921600, 0x7995a7ce
-0,        121,        121,        1,   921600, 0x7995a7ce
-0,        122,        122,        1,   921600, 0x7995a7ce
-0,        123,        123,        1,   921600, 0x2ef3c566
-0,        124,        124,        1,   921600, 0x2ef3c566
-0,        125,        125,        1,   921600, 0xf296736e
-0,        126,        126,        1,   921600, 0xf296736e
-0,        127,        127,        1,   921600, 0xf296736e
-0,        128,        128,        1,   921600, 0xf296736e
-0,        129,        129,        1,   921600, 0xf296736e
-0,        130,        130,        1,   921600, 0xf296736e
-0,        131,        131,        1,   921600, 0xf296736e
-0,        132,        132,        1,   921600, 0xf296736e
-0,        133,        133,        1,   921600, 0xf296736e
-0,        134,        134,        1,   921600, 0xf296736e
-0,        135,        135,        1,   921600, 0x1a488311
-0,        136,        136,        1,   921600, 0x1a488311
-0,        137,        137,        1,   921600, 0x1a488311
-0,        138,        138,        1,   921600, 0x9e28011b
-0,        139,        139,        1,   921600, 0x9e28011b
-0,        140,        140,        1,   921600, 0x84d1ea80
-0,        141,        141,        1,   921600, 0x84d1ea80
-0,        142,        142,        1,   921600, 0x84d1ea80
-0,        143,        143,        1,   921600, 0x9ed41052
-0,        144,        144,        1,   921600, 0x9ed41052
-0,        145,        145,        1,   921600, 0xd4db7206
-0,        146,        146,        1,   921600, 0xd4db7206
-0,        147,        147,        1,   921600, 0xd4db7206
-0,        148,        148,        1,   921600, 0x55f695a9
-0,        149,        149,        1,   921600, 0x55f695a9
-0,        150,        150,        1,   921600, 0x9d8c667f
-0,        151,        151,        1,   921600, 0x9d8c667f
-0,        152,        152,        1,   921600, 0x9d8c667f
-0,        153,        153,        1,   921600, 0x9b6037ec
-0,        154,        154,        1,   921600, 0x9b6037ec
-0,        155,        155,        1,   921600, 0x57c5e835
-0,        156,        156,        1,   921600, 0x57c5e835
-0,        157,        157,        1,   921600, 0x57c5e835
-0,        158,        158,        1,   921600, 0x476dad89
-0,        159,        159,        1,   921600, 0x476dad89
-0,        160,        160,        1,   921600, 0xcfd6ad2b
-0,        161,        161,        1,   921600, 0xcfd6ad2b
-0,        162,        162,        1,   921600, 0xcfd6ad2b
-0,        163,        163,        1,   921600, 0x3b372379
-0,        164,        164,        1,   921600, 0x3b372379
-0,        165,        165,        1,   921600, 0x36f245f5
-0,        166,        166,        1,   921600, 0x36f245f5
+0,         40,         40,        1,   921600, 0x1492e3ed
+0,         80,         80,        1,   921600, 0x1492e3ed
+0,        120,        120,        1,   921600, 0x23ef4fc7
+0,        160,        160,        1,   921600, 0x23ef4fc7
+0,        200,        200,        1,   921600, 0xe406d4be
+0,        240,        240,        1,   921600, 0xe406d4be
+0,        280,        280,        1,   921600, 0xe406d4be
+0,        320,        320,        1,   921600, 0x62b8b5a1
+0,        360,        360,        1,   921600, 0x62b8b5a1
+0,        400,        400,        1,   921600, 0x7d8ba674
+0,        440,        440,        1,   921600, 0x7d8ba674
+0,        480,        480,        1,   921600, 0x7d8ba674
+0,        520,        520,        1,   921600, 0xfe666be7
+0,        560,        560,        1,   921600, 0xfe666be7
+0,        600,        600,        1,   921600, 0x721baec0
+0,        640,        640,        1,   921600, 0x721baec0
+0,        680,        680,        1,   921600, 0x721baec0
+0,        720,        720,        1,   921600, 0xc237180a
+0,        760,        760,        1,   921600, 0xc237180a
+0,        800,        800,        1,   921600, 0xf03a7482
+0,        840,        840,        1,   921600, 0xf03a7482
+0,        880,        880,        1,   921600, 0xf03a7482
+0,        920,        920,        1,   921600, 0x5612a391
+0,        960,        960,        1,   921600, 0x5612a391
+0,       1000,       1000,        1,   921600, 0x9dbcc46a
+0,       1040,       1040,        1,   921600, 0x9dbcc46a
+0,       1080,       1080,        1,   921600, 0x9dbcc46a
+0,       1120,       1120,        1,   921600, 0xa128a5d5
+0,       1160,       1160,        1,   921600, 0xa128a5d5
+0,       1200,       1200,        1,   921600, 0x63e0025c
+0,       1240,       1240,        1,   921600, 0x63e0025c
+0,       1280,       1280,        1,   921600, 0x63e0025c
+0,       1320,       1320,        1,   921600, 0x262359ed
+0,       1360,       1360,        1,   921600, 0x262359ed
+0,       1400,       1400,        1,   921600, 0x343688e8
+0,       1440,       1440,        1,   921600, 0x343688e8
+0,       1480,       1480,        1,   921600, 0x343688e8
+0,       1520,       1520,        1,   921600, 0x343688e8
+0,       1560,       1560,        1,   921600, 0x343688e8
+0,       1600,       1600,        1,   921600, 0x343688e8
+0,       1640,       1640,        1,   921600, 0x343688e8
+0,       1680,       1680,        1,   921600, 0x343688e8
+0,       1720,       1720,        1,   921600, 0x343688e8
+0,       1760,       1760,        1,   921600, 0x343688e8
+0,       1800,       1800,        1,   921600, 0xe4b29d57
+0,       1840,       1840,        1,   921600, 0xe4b29d57
+0,       1880,       1880,        1,   921600, 0xe4b29d57
+0,       1920,       1920,        1,   921600, 0x198e8a4a
+0,       1960,       1960,        1,   921600, 0x198e8a4a
+0,       2000,       2000,        1,   921600, 0x0cad8dc9
+0,       2040,       2040,        1,   921600, 0x0cad8dc9
+0,       2080,       2080,        1,   921600, 0x0cad8dc9
+0,       2120,       2120,        1,   921600, 0x1f74cf3d
+0,       2160,       2160,        1,   921600, 0x1f74cf3d
+0,       2200,       2200,        1,   921600, 0xec5b5449
+0,       2240,       2240,        1,   921600, 0xec5b5449
+0,       2280,       2280,        1,   921600, 0xec5b5449
+0,       2320,       2320,        1,   921600, 0x39829711
+0,       2360,       2360,        1,   921600, 0x39829711
+0,       2400,       2400,        1,   921600, 0x6de5b9c6
+0,       2440,       2440,        1,   921600, 0x6de5b9c6
+0,       2480,       2480,        1,   921600, 0x6de5b9c6
+0,       2520,       2520,        1,   921600, 0x47b0e9d4
+0,       2560,       2560,        1,   921600, 0x47b0e9d4
+0,       2600,       2600,        1,   921600, 0x756452b8
+0,       2640,       2640,        1,   921600, 0x756452b8
+0,       2680,       2680,        1,   921600, 0x756452b8
+0,       2720,       2720,        1,   921600, 0x6fce3478
+0,       2760,       2760,        1,   921600, 0x6fce3478
+0,       2800,       2800,        1,   921600, 0x372397cd
+0,       2840,       2840,        1,   921600, 0x372397cd
+0,       2880,       2880,        1,   921600, 0x372397cd
+0,       2920,       2920,        1,   921600, 0xe3999ba1
+0,       2960,       2960,        1,   921600, 0xe3999ba1
+0,       3000,       3000,        1,   921600, 0x6ba26b43
+0,       3040,       3040,        1,   921600, 0x6ba26b43
+0,       3080,       3080,        1,   921600, 0x6ba26b43
+0,       3120,       3120,        1,   921600, 0x4e9ee49e
+0,       3160,       3160,        1,   921600, 0x4e9ee49e
+0,       3200,       3200,        1,   921600, 0xdb5fd6e7
+0,       3240,       3240,        1,   921600, 0xdb5fd6e7
+0,       3280,       3280,        1,   921600, 0xdb5fd6e7
+0,       3320,       3320,        1,   921600, 0x8f2254a5
+0,       3360,       3360,        1,   921600, 0x8f2254a5
+0,       3400,       3400,        1,   921600, 0x8f2254a5
+0,       3440,       3440,        1,   921600, 0x8f2254a5
+0,       3480,       3480,        1,   921600, 0x8f2254a5
+0,       3520,       3520,        1,   921600, 0x8f2254a5
+0,       3560,       3560,        1,   921600, 0x8f2254a5
+0,       3600,       3600,        1,   921600, 0x8f2254a5
+0,       3640,       3640,        1,   921600, 0x8f2254a5
+0,       3680,       3680,        1,   921600, 0x8f2254a5
+0,       3720,       3720,        1,   921600, 0x57e95c32
+0,       3760,       3760,        1,   921600, 0x57e95c32
+0,       3800,       3800,        1,   921600, 0x41627a9b
+0,       3840,       3840,        1,   921600, 0x41627a9b
+0,       3880,       3880,        1,   921600, 0x41627a9b
+0,       3920,       3920,        1,   921600, 0x7412dcee
+0,       3960,       3960,        1,   921600, 0x7412dcee
+0,       4000,       4000,        1,   921600, 0xaebe10ed
+0,       4040,       4040,        1,   921600, 0xaebe10ed
+0,       4080,       4080,        1,   921600, 0xaebe10ed
+0,       4120,       4120,        1,   921600, 0x411a91f6
+0,       4160,       4160,        1,   921600, 0x411a91f6
+0,       4200,       4200,        1,   921600, 0xb059df3f
+0,       4240,       4240,        1,   921600, 0xb059df3f
+0,       4280,       4280,        1,   921600, 0xb059df3f
+0,       4320,       4320,        1,   921600, 0x4d6f5a77
+0,       4360,       4360,        1,   921600, 0x4d6f5a77
+0,       4400,       4400,        1,   921600, 0xbbf06df4
+0,       4440,       4440,        1,   921600, 0xbbf06df4
+0,       4480,       4480,        1,   921600, 0xbbf06df4
+0,       4520,       4520,        1,   921600, 0xe27f7bf6
+0,       4560,       4560,        1,   921600, 0xe27f7bf6
+0,       4600,       4600,        1,   921600, 0xd7e8360e
+0,       4640,       4640,        1,   921600, 0xd7e8360e
+0,       4680,       4680,        1,   921600, 0xd7e8360e
+0,       4720,       4720,        1,   921600, 0x1dd4c344
+0,       4760,       4760,        1,   921600, 0x1dd4c344
+0,       4800,       4800,        1,   921600, 0x7995a7ce
+0,       4840,       4840,        1,   921600, 0x7995a7ce
+0,       4880,       4880,        1,   921600, 0x7995a7ce
+0,       4920,       4920,        1,   921600, 0x2ef3c566
+0,       4960,       4960,        1,   921600, 0x2ef3c566
+0,       5000,       5000,        1,   921600, 0xf296736e
+0,       5040,       5040,        1,   921600, 0xf296736e
+0,       5080,       5080,        1,   921600, 0xf296736e
+0,       5120,       5120,        1,   921600, 0xf296736e
+0,       5160,       5160,        1,   921600, 0xf296736e
+0,       5200,       5200,        1,   921600, 0xf296736e
+0,       5240,       5240,        1,   921600, 0xf296736e
+0,       5280,       5280,        1,   921600, 0xf296736e
+0,       5320,       5320,        1,   921600, 0xf296736e
+0,       5360,       5360,        1,   921600, 0xf296736e
+0,       5400,       5400,        1,   921600, 0x1a488311
+0,       5440,       5440,        1,   921600, 0x1a488311
+0,       5480,       5480,        1,   921600, 0x1a488311
+0,       5520,       5520,        1,   921600, 0x9e28011b
+0,       5560,       5560,        1,   921600, 0x9e28011b
+0,       5600,       5600,        1,   921600, 0x84d1ea80
+0,       5640,       5640,        1,   921600, 0x84d1ea80
+0,       5680,       5680,        1,   921600, 0x84d1ea80
+0,       5720,       5720,        1,   921600, 0x9ed41052
+0,       5760,       5760,        1,   921600, 0x9ed41052
+0,       5800,       5800,        1,   921600, 0xd4db7206
+0,       5840,       5840,        1,   921600, 0xd4db7206
+0,       5880,       5880,        1,   921600, 0xd4db7206
+0,       5920,       5920,        1,   921600, 0x55f695a9
+0,       5960,       5960,        1,   921600, 0x55f695a9
+0,       6000,       6000,        1,   921600, 0x9d8c667f
+0,       6040,       6040,        1,   921600, 0x9d8c667f
+0,       6080,       6080,        1,   921600, 0x9d8c667f
+0,       6120,       6120,        1,   921600, 0x9b6037ec
+0,       6160,       6160,        1,   921600, 0x9b6037ec
+0,       6200,       6200,        1,   921600, 0x57c5e835
+0,       6240,       6240,        1,   921600, 0x57c5e835
+0,       6280,       6280,        1,   921600, 0x57c5e835
+0,       6320,       6320,        1,   921600, 0x476dad89
+0,       6360,       6360,        1,   921600, 0x476dad89
+0,       6400,       6400,        1,   921600, 0xcfd6ad2b
+0,       6440,       6440,        1,   921600, 0xcfd6ad2b
+0,       6480,       6480,        1,   921600, 0xcfd6ad2b
+0,       6520,       6520,        1,   921600, 0x3b372379
+0,       6560,       6560,        1,   921600, 0x3b372379
+0,       6600,       6600,        1,   921600, 0x36f245f5
+0,       6620,       6620,        1,   921600, 0x36f245f5
diff --git a/tests/ref/fate/quickdraw b/tests/ref/fate/quickdraw
index eccb477..9a55ad5 100644
--- a/tests/ref/fate/quickdraw
+++ b/tests/ref/fate/quickdraw
@@ -1,3 +1,3 @@
-#tb 0: 1/15
+#tb 0: 1/600
 0,          0,          0,        1,   921600, 0xc0e68764
-0,          2,          2,        1,   921600, 0x01a16629
+0,         80,         80,        1,   921600, 0x01a16629
diff --git a/tests/ref/fate/real-rv40 b/tests/ref/fate/real-rv40
index 6a8480b..d5cb265 100644
--- a/tests/ref/fate/real-rv40
+++ b/tests/ref/fate/real-rv40
@@ -1,240 +1,240 @@
-#tb 0: 32768/785647
-0,         -1,         -1,        1,   276480, 0x5f7a0d4f
-0,          1,          1,        1,   276480, 0x5f7a0d4f
-0,          2,          2,        1,   276480, 0x5f7a0d4f
-0,          3,          3,        1,   276480, 0x5f7a0d4f
-0,          4,          4,        1,   276480, 0x5f7a0d4f
-0,          5,          5,        1,   276480, 0x5f7a0d4f
-0,          6,          6,        1,   276480, 0x5f7a0d4f
-0,          7,          7,        1,   276480, 0x5f7a0d4f
-0,          8,          8,        1,   276480, 0x5f7a0d4f
-0,          9,          9,        1,   276480, 0x5f7a0d4f
-0,         10,         10,        1,   276480, 0x5f7a0d4f
-0,         11,         11,        1,   276480, 0x5f7a0d4f
-0,         12,         12,        1,   276480, 0x5f7a0d4f
-0,         13,         13,        1,   276480, 0x5f7a0d4f
-0,         14,         14,        1,   276480, 0x5f7a0d4f
-0,         15,         15,        1,   276480, 0x5f7a0d4f
-0,         16,         16,        1,   276480, 0x5f7a0d4f
-0,         17,         17,        1,   276480, 0x5f7a0d4f
-0,         18,         18,        1,   276480, 0x5f7a0d4f
-0,         19,         19,        1,   276480, 0x5f7a0d4f
-0,         20,         20,        1,   276480, 0x5f7a0d4f
-0,         21,         21,        1,   276480, 0x5f7a0d4f
-0,         22,         22,        1,   276480, 0x5f7a0d4f
-0,         23,         23,        1,   276480, 0x5f7a0d4f
-0,         24,         24,        1,   276480, 0x5f7a0d4f
-0,         25,         25,        1,   276480, 0x5f7a0d4f
-0,         26,         26,        1,   276480, 0x5f7a0d4f
-0,         27,         27,        1,   276480, 0x5f7a0d4f
-0,         28,         28,        1,   276480, 0x5f7a0d4f
-0,         29,         29,        1,   276480, 0x5f7a0d4f
-0,         30,         30,        1,   276480, 0x5f7a0d4f
-0,         31,         31,        1,   276480, 0x5f7a0d4f
-0,         32,         32,        1,   276480, 0x5f7a0d4f
-0,         33,         33,        1,   276480, 0x75641594
-0,         34,         34,        1,   276480, 0x32ee3526
-0,         35,         35,        1,   276480, 0xcb53479a
-0,         36,         36,        1,   276480, 0x7ca9658e
-0,         37,         37,        1,   276480, 0x5ce39368
-0,         38,         38,        1,   276480, 0x4ec1e418
-0,         39,         39,        1,   276480, 0xb3790499
-0,         40,         40,        1,   276480, 0xa9f1506f
-0,         41,         41,        1,   276480, 0x85cbc3b5
-0,         42,         42,        1,   276480, 0x377c7b46
-0,         43,         43,        1,   276480, 0x1a61d8db
-0,         44,         44,        1,   276480, 0xe1de7f0a
-0,         45,         45,        1,   276480, 0x756a4a2e
-0,         46,         46,        1,   276480, 0xcb379547
-0,         47,         47,        1,   276480, 0xbae14484
-0,         48,         48,        1,   276480, 0x8e12331c
-0,         49,         49,        1,   276480, 0x99c085be
-0,         50,         50,        1,   276480, 0xe479ffed
-0,         51,         51,        1,   276480, 0x99c82949
-0,         52,         52,        1,   276480, 0xac7672dd
-0,         53,         53,        1,   276480, 0x1e4fae19
-0,         54,         54,        1,   276480, 0x776412ef
-0,         55,         55,        1,   276480, 0x7d9b579f
-0,         56,         56,        1,   276480, 0x1cd1ab29
-0,         57,         57,        1,   276480, 0x58ce0f38
-0,         58,         58,        1,   276480, 0x5ab69b27
-0,         59,         59,        1,   276480, 0x0afad610
-0,         60,         60,        1,   276480, 0x9eca3f11
-0,         61,         61,        1,   276480, 0xc3db9706
-0,         62,         62,        1,   276480, 0xc9c57884
-0,         63,         63,        1,   276480, 0xd9fbb2cf
-0,         64,         64,        1,   276480, 0xdc07f3c9
-0,         65,         65,        1,   276480, 0x000b5269
-0,         66,         66,        1,   276480, 0x27ff7a5d
-0,         67,         67,        1,   276480, 0xd92e2017
-0,         68,         68,        1,   276480, 0x18d4b27d
-0,         69,         69,        1,   276480, 0x70647530
-0,         70,         70,        1,   276480, 0x97612c4b
-0,         71,         71,        1,   276480, 0xc9d4ac78
-0,         72,         72,        1,   276480, 0x4ec4d57f
-0,         73,         73,        1,   276480, 0xdf4e04d7
-0,         74,         74,        1,   276480, 0xbd98f57c
-0,         75,         75,        1,   276480, 0x7247ea3e
-0,         76,         76,        1,   276480, 0xa5d670ec
-0,         77,         77,        1,   276480, 0x5163b29b
-0,         78,         78,        1,   276480, 0x99170e64
-0,         79,         79,        1,   276480, 0x37f4c0b0
-0,         80,         80,        1,   276480, 0x7a4f2561
-0,         81,         81,        1,   276480, 0x8a4e991f
-0,         82,         82,        1,   276480, 0x6a45425f
-0,         83,         83,        1,   276480, 0x1f0e2bb6
-0,         84,         84,        1,   276480, 0xd75482c6
-0,         85,         85,        1,   276480, 0x7bf6b1ef
-0,         86,         86,        1,   276480, 0x6de1e34b
-0,         87,         87,        1,   276480, 0x4526c89b
-0,         88,         88,        1,   276480, 0xf964e18e
-0,         89,         89,        1,   276480, 0xdcaaa99a
-0,         90,         90,        1,   276480, 0xd1e98808
-0,         91,         91,        1,   276480, 0x556b2365
-0,         92,         92,        1,   276480, 0x0cf65540
-0,         93,         93,        1,   276480, 0x6e2d524e
-0,         94,         94,        1,   276480, 0x22c50a3d
-0,         95,         95,        1,   276480, 0x293f19af
-0,         96,         96,        1,   276480, 0xf4b1c461
-0,         97,         97,        1,   276480, 0x62b76407
-0,         98,         98,        1,   276480, 0x51e9b3eb
-0,         99,         99,        1,   276480, 0x7b910bc7
-0,        100,        100,        1,   276480, 0x6dd14ca6
-0,        101,        101,        1,   276480, 0x441f7afd
-0,        102,        102,        1,   276480, 0xfb01efc6
-0,        103,        103,        1,   276480, 0x4f73ccea
-0,        104,        104,        1,   276480, 0x5ac8e06f
-0,        105,        105,        1,   276480, 0x294bb441
-0,        106,        106,        1,   276480, 0xe04ac45e
-0,        107,        107,        1,   276480, 0xa7a38d41
-0,        108,        108,        1,   276480, 0xf688a3ed
-0,        109,        109,        1,   276480, 0x58f275ea
-0,        110,        110,        1,   276480, 0xf0b3b71b
-0,        111,        111,        1,   276480, 0x3ce773bf
-0,        112,        112,        1,   276480, 0x01840548
-0,        113,        113,        1,   276480, 0x674e34e4
-0,        114,        114,        1,   276480, 0x41dda2d9
-0,        115,        115,        1,   276480, 0xc5b60838
-0,        116,        116,        1,   276480, 0x9b209f41
-0,        117,        117,        1,   276480, 0xf46ba7fb
-0,        118,        118,        1,   276480, 0x28b54815
-0,        119,        119,        1,   276480, 0xb605a933
-0,        120,        120,        1,   276480, 0x34484aff
-0,        121,        121,        1,   276480, 0xaf2b5d89
-0,        122,        122,        1,   276480, 0x8facba58
-0,        123,        123,        1,   276480, 0xbbe3e99f
-0,        124,        124,        1,   276480, 0x02162c7c
-0,        125,        125,        1,   276480, 0x28a63236
-0,        126,        126,        1,   276480, 0x1ad43fd7
-0,        127,        127,        1,   276480, 0xe37883e5
-0,        128,        128,        1,   276480, 0x2b8a89c5
-0,        129,        129,        1,   276480, 0x71507bd2
-0,        130,        130,        1,   276480, 0x35626022
-0,        131,        131,        1,   276480, 0x461fc3e7
-0,        132,        132,        1,   276480, 0xce5af1ec
-0,        133,        133,        1,   276480, 0x7c1139b3
-0,        134,        134,        1,   276480, 0x7fd73a99
-0,        135,        135,        1,   276480, 0x4ae4c3a6
-0,        136,        136,        1,   276480, 0xcb60725a
-0,        137,        137,        1,   276480, 0xb52e1aa2
-0,        138,        138,        1,   276480, 0xd6f82cae
-0,        139,        139,        1,   276480, 0x6310e665
-0,        140,        140,        1,   276480, 0xfa88a483
-0,        141,        141,        1,   276480, 0xf88f75d4
-0,        142,        142,        1,   276480, 0x04a8e3ee
-0,        143,        143,        1,   276480, 0x54766a12
-0,        144,        144,        1,   276480, 0x0b41f0d7
-0,        145,        145,        1,   276480, 0xa29f5b01
-0,        146,        146,        1,   276480, 0x754ceaf5
-0,        147,        147,        1,   276480, 0x150c0423
-0,        148,        148,        1,   276480, 0xde084059
-0,        149,        149,        1,   276480, 0x5a38b4af
-0,        150,        150,        1,   276480, 0xfcebc261
-0,        151,        151,        1,   276480, 0x0eb9770d
-0,        152,        152,        1,   276480, 0x046394ae
-0,        153,        153,        1,   276480, 0x3d3ca985
-0,        154,        154,        1,   276480, 0x94a03c75
-0,        155,        155,        1,   276480, 0x800eea2d
-0,        156,        156,        1,   276480, 0x6a841f41
-0,        157,        157,        1,   276480, 0x2f98911c
-0,        158,        158,        1,   276480, 0x923b9937
-0,        159,        159,        1,   276480, 0xe82f8e0f
-0,        160,        160,        1,   276480, 0xee82d657
-0,        161,        161,        1,   276480, 0xefab7ffd
-0,        162,        162,        1,   276480, 0x6b9fbc80
-0,        163,        163,        1,   276480, 0x4a1ada47
-0,        164,        164,        1,   276480, 0x6d4b49d7
-0,        165,        165,        1,   276480, 0xe4bdbd1e
-0,        166,        166,        1,   276480, 0x225a56c0
-0,        167,        167,        1,   276480, 0xd4adadad
-0,        168,        168,        1,   276480, 0xff4e1a8c
-0,        169,        169,        1,   276480, 0xf58b1b7c
-0,        170,        170,        1,   276480, 0xbaffcdcc
-0,        171,        171,        1,   276480, 0x374f88f0
-0,        172,        172,        1,   276480, 0x3d861ae6
-0,        173,        173,        1,   276480, 0xeb6eb88f
-0,        174,        174,        1,   276480, 0xdb753d35
-0,        175,        175,        1,   276480, 0x9aa543af
-0,        176,        176,        1,   276480, 0xb24c8016
-0,        177,        177,        1,   276480, 0xea80a82e
-0,        178,        178,        1,   276480, 0x2aae902a
-0,        179,        179,        1,   276480, 0x5bba3cfb
-0,        180,        180,        1,   276480, 0x5c6e97a9
-0,        181,        181,        1,   276480, 0x9b9ee961
-0,        182,        182,        1,   276480, 0xaa12b6fd
-0,        183,        183,        1,   276480, 0xe9d2439f
-0,        184,        184,        1,   276480, 0xbf09053c
-0,        185,        185,        1,   276480, 0x50c31e73
-0,        186,        186,        1,   276480, 0xdd9fb89f
-0,        187,        187,        1,   276480, 0x3e4e5aec
-0,        188,        188,        1,   276480, 0x0b752d28
-0,        189,        189,        1,   276480, 0xaf82399a
-0,        190,        190,        1,   276480, 0x7ce5f23c
-0,        191,        191,        1,   276480, 0xad135d0f
-0,        192,        192,        1,   276480, 0x55dadd30
-0,        193,        193,        1,   276480, 0x5aaa7519
-0,        194,        194,        1,   276480, 0xe45a5599
-0,        195,        195,        1,   276480, 0xc8e89913
-0,        196,        196,        1,   276480, 0x2f447fd3
-0,        197,        197,        1,   276480, 0x704411fb
-0,        198,        198,        1,   276480, 0x9d7430a1
-0,        199,        199,        1,   276480, 0x24dd5fd3
-0,        200,        200,        1,   276480, 0x51cb657c
-0,        201,        201,        1,   276480, 0x2c230702
-0,        202,        202,        1,   276480, 0x4a4f76cd
-0,        203,        203,        1,   276480, 0xdcd71e88
-0,        204,        204,        1,   276480, 0x87160f99
-0,        205,        205,        1,   276480, 0x27f54854
-0,        206,        206,        1,   276480, 0x694d76e3
-0,        207,        207,        1,   276480, 0xcbe93c19
-0,        208,        208,        1,   276480, 0x50742e1b
-0,        209,        209,        1,   276480, 0x525463e2
-0,        210,        210,        1,   276480, 0x819898f9
-0,        211,        211,        1,   276480, 0x08fac755
-0,        212,        212,        1,   276480, 0x35c46927
-0,        213,        213,        1,   276480, 0xeeed00fc
-0,        214,        214,        1,   276480, 0xb6f99ee3
-0,        215,        215,        1,   276480, 0xd87f4c73
-0,        216,        216,        1,   276480, 0xde97d9fd
-0,        217,        217,        1,   276480, 0xefc83107
-0,        218,        218,        1,   276480, 0xbb22e024
-0,        219,        219,        1,   276480, 0x53a7cfcb
-0,        220,        220,        1,   276480, 0xbe1fbb19
-0,        221,        221,        1,   276480, 0x300f922a
-0,        222,        222,        1,   276480, 0x826fc3bd
-0,        223,        223,        1,   276480, 0x679aa57a
-0,        224,        224,        1,   276480, 0x5497097b
-0,        225,        225,        1,   276480, 0x679a53f8
-0,        226,        226,        1,   276480, 0x976c9e93
-0,        227,        227,        1,   276480, 0xe80f87f2
-0,        228,        228,        1,   276480, 0xdc2d7c6c
-0,        229,        229,        1,   276480, 0xb194656e
-0,        230,        230,        1,   276480, 0xf002c5ca
-0,        231,        231,        1,   276480, 0x43fc1c64
-0,        232,        232,        1,   276480, 0xf62d8581
-0,        233,        233,        1,   276480, 0xb243dda5
-0,        234,        234,        1,   276480, 0x1700efbb
-0,        235,        235,        1,   276480, 0x9ebe6ba2
-0,        236,        236,        1,   276480, 0x8f316c66
-0,        237,        237,        1,   276480, 0x6348ecf5
-0,        238,        238,        1,   276480, 0x34b5b78a
+#tb 0: 1/1000
+0,        -41,        -41,        0,   276480, 0x5f7a0d4f
+0,         42,         42,        0,   276480, 0x5f7a0d4f
+0,         83,         83,        0,   276480, 0x5f7a0d4f
+0,        125,        125,        0,   276480, 0x5f7a0d4f
+0,        167,        167,        0,   276480, 0x5f7a0d4f
+0,        209,        209,        0,   276480, 0x5f7a0d4f
+0,        250,        250,        0,   276480, 0x5f7a0d4f
+0,        292,        292,        0,   276480, 0x5f7a0d4f
+0,        334,        334,        0,   276480, 0x5f7a0d4f
+0,        375,        375,        0,   276480, 0x5f7a0d4f
+0,        417,        417,        0,   276480, 0x5f7a0d4f
+0,        459,        459,        0,   276480, 0x5f7a0d4f
+0,        501,        501,        0,   276480, 0x5f7a0d4f
+0,        542,        542,        0,   276480, 0x5f7a0d4f
+0,        584,        584,        0,   276480, 0x5f7a0d4f
+0,        626,        626,        0,   276480, 0x5f7a0d4f
+0,        667,        667,        0,   276480, 0x5f7a0d4f
+0,        709,        709,        0,   276480, 0x5f7a0d4f
+0,        751,        751,        0,   276480, 0x5f7a0d4f
+0,        792,        792,        0,   276480, 0x5f7a0d4f
+0,        834,        834,        0,   276480, 0x5f7a0d4f
+0,        876,        876,        0,   276480, 0x5f7a0d4f
+0,        918,        918,        0,   276480, 0x5f7a0d4f
+0,        959,        959,        0,   276480, 0x5f7a0d4f
+0,       1001,       1001,        0,   276480, 0x5f7a0d4f
+0,       1043,       1043,        0,   276480, 0x5f7a0d4f
+0,       1084,       1084,        0,   276480, 0x5f7a0d4f
+0,       1126,       1126,        0,   276480, 0x5f7a0d4f
+0,       1168,       1168,        0,   276480, 0x5f7a0d4f
+0,       1210,       1210,        0,   276480, 0x5f7a0d4f
+0,       1251,       1251,        0,   276480, 0x5f7a0d4f
+0,       1293,       1293,        0,   276480, 0x5f7a0d4f
+0,       1335,       1335,        0,   276480, 0x5f7a0d4f
+0,       1376,       1376,        0,   276480, 0x75641594
+0,       1418,       1418,        0,   276480, 0x32ee3526
+0,       1460,       1460,        0,   276480, 0xcb53479a
+0,       1502,       1502,        0,   276480, 0x7ca9658e
+0,       1543,       1543,        0,   276480, 0x5ce39368
+0,       1585,       1585,        0,   276480, 0x4ec1e418
+0,       1627,       1627,        0,   276480, 0xb3790499
+0,       1668,       1668,        0,   276480, 0xa9f1506f
+0,       1710,       1710,        0,   276480, 0x85cbc3b5
+0,       1752,       1752,        0,   276480, 0x377c7b46
+0,       1793,       1793,        0,   276480, 0x1a61d8db
+0,       1835,       1835,        0,   276480, 0xe1de7f0a
+0,       1877,       1877,        0,   276480, 0x756a4a2e
+0,       1919,       1919,        0,   276480, 0xcb379547
+0,       1960,       1960,        0,   276480, 0xbae14484
+0,       2002,       2002,        0,   276480, 0x8e12331c
+0,       2044,       2044,        0,   276480, 0x99c085be
+0,       2085,       2085,        0,   276480, 0xe479ffed
+0,       2127,       2127,        0,   276480, 0x99c82949
+0,       2169,       2169,        0,   276480, 0xac7672dd
+0,       2211,       2211,        0,   276480, 0x1e4fae19
+0,       2252,       2252,        0,   276480, 0x776412ef
+0,       2294,       2294,        0,   276480, 0x7d9b579f
+0,       2336,       2336,        0,   276480, 0x1cd1ab29
+0,       2377,       2377,        0,   276480, 0x58ce0f38
+0,       2419,       2419,        0,   276480, 0x5ab69b27
+0,       2461,       2461,        0,   276480, 0x0afad610
+0,       2503,       2503,        0,   276480, 0x9eca3f11
+0,       2544,       2544,        0,   276480, 0xc3db9706
+0,       2586,       2586,        0,   276480, 0xc9c57884
+0,       2628,       2628,        0,   276480, 0xd9fbb2cf
+0,       2669,       2669,        0,   276480, 0xdc07f3c9
+0,       2711,       2711,        0,   276480, 0x000b5269
+0,       2753,       2753,        0,   276480, 0x27ff7a5d
+0,       2794,       2794,        0,   276480, 0xd92e2017
+0,       2836,       2836,        0,   276480, 0x18d4b27d
+0,       2878,       2878,        0,   276480, 0x70647530
+0,       2920,       2920,        0,   276480, 0x97612c4b
+0,       2961,       2961,        0,   276480, 0xc9d4ac78
+0,       3003,       3003,        0,   276480, 0x4ec4d57f
+0,       3045,       3045,        0,   276480, 0xdf4e04d7
+0,       3086,       3086,        0,   276480, 0xbd98f57c
+0,       3128,       3128,        0,   276480, 0x7247ea3e
+0,       3170,       3170,        0,   276480, 0xa5d670ec
+0,       3212,       3212,        0,   276480, 0x5163b29b
+0,       3253,       3253,        0,   276480, 0x99170e64
+0,       3295,       3295,        0,   276480, 0x37f4c0b0
+0,       3337,       3337,        0,   276480, 0x7a4f2561
+0,       3378,       3378,        0,   276480, 0x8a4e991f
+0,       3420,       3420,        0,   276480, 0x6a45425f
+0,       3462,       3462,        0,   276480, 0x1f0e2bb6
+0,       3504,       3504,        0,   276480, 0xd75482c6
+0,       3545,       3545,        0,   276480, 0x7bf6b1ef
+0,       3587,       3587,        0,   276480, 0x6de1e34b
+0,       3629,       3629,        0,   276480, 0x4526c89b
+0,       3670,       3670,        0,   276480, 0xf964e18e
+0,       3712,       3712,        0,   276480, 0xdcaaa99a
+0,       3754,       3754,        0,   276480, 0xd1e98808
+0,       3795,       3795,        0,   276480, 0x556b2365
+0,       3837,       3837,        0,   276480, 0x0cf65540
+0,       3879,       3879,        0,   276480, 0x6e2d524e
+0,       3921,       3921,        0,   276480, 0x22c50a3d
+0,       3962,       3962,        0,   276480, 0x293f19af
+0,       4004,       4004,        0,   276480, 0xf4b1c461
+0,       4046,       4046,        0,   276480, 0x62b76407
+0,       4087,       4087,        0,   276480, 0x51e9b3eb
+0,       4129,       4129,        0,   276480, 0x7b910bc7
+0,       4171,       4171,        0,   276480, 0x6dd14ca6
+0,       4213,       4213,        0,   276480, 0x441f7afd
+0,       4254,       4254,        0,   276480, 0xfb01efc6
+0,       4296,       4296,        0,   276480, 0x4f73ccea
+0,       4338,       4338,        0,   276480, 0x5ac8e06f
+0,       4379,       4379,        0,   276480, 0x294bb441
+0,       4421,       4421,        0,   276480, 0xe04ac45e
+0,       4463,       4463,        0,   276480, 0xa7a38d41
+0,       4505,       4505,        0,   276480, 0xf688a3ed
+0,       4546,       4546,        0,   276480, 0x58f275ea
+0,       4588,       4588,        0,   276480, 0xf0b3b71b
+0,       4630,       4630,        0,   276480, 0x3ce773bf
+0,       4671,       4671,        0,   276480, 0x01840548
+0,       4713,       4713,        0,   276480, 0x674e34e4
+0,       4755,       4755,        0,   276480, 0x41dda2d9
+0,       4796,       4796,        0,   276480, 0xc5b60838
+0,       4838,       4838,        0,   276480, 0x9b209f41
+0,       4880,       4880,        0,   276480, 0xf46ba7fb
+0,       4922,       4922,        0,   276480, 0x28b54815
+0,       4963,       4963,        0,   276480, 0xb605a933
+0,       5005,       5005,        0,   276480, 0x34484aff
+0,       5047,       5047,        0,   276480, 0xaf2b5d89
+0,       5088,       5088,        0,   276480, 0x8facba58
+0,       5130,       5130,        0,   276480, 0xbbe3e99f
+0,       5172,       5172,        0,   276480, 0x02162c7c
+0,       5214,       5214,        0,   276480, 0x28a63236
+0,       5255,       5255,        0,   276480, 0x1ad43fd7
+0,       5297,       5297,        0,   276480, 0xe37883e5
+0,       5339,       5339,        0,   276480, 0x2b8a89c5
+0,       5380,       5380,        0,   276480, 0x71507bd2
+0,       5422,       5422,        0,   276480, 0x35626022
+0,       5464,       5464,        0,   276480, 0x461fc3e7
+0,       5506,       5506,        0,   276480, 0xce5af1ec
+0,       5547,       5547,        0,   276480, 0x7c1139b3
+0,       5589,       5589,        0,   276480, 0x7fd73a99
+0,       5631,       5631,        0,   276480, 0x4ae4c3a6
+0,       5672,       5672,        0,   276480, 0xcb60725a
+0,       5714,       5714,        0,   276480, 0xb52e1aa2
+0,       5756,       5756,        0,   276480, 0xd6f82cae
+0,       5797,       5797,        0,   276480, 0x6310e665
+0,       5839,       5839,        0,   276480, 0xfa88a483
+0,       5881,       5881,        0,   276480, 0xf88f75d4
+0,       5923,       5923,        0,   276480, 0x04a8e3ee
+0,       5964,       5964,        0,   276480, 0x54766a12
+0,       6006,       6006,        0,   276480, 0x0b41f0d7
+0,       6048,       6048,        0,   276480, 0xa29f5b01
+0,       6089,       6089,        0,   276480, 0x754ceaf5
+0,       6131,       6131,        0,   276480, 0x150c0423
+0,       6173,       6173,        0,   276480, 0xde084059
+0,       6215,       6215,        0,   276480, 0x5a38b4af
+0,       6256,       6256,        0,   276480, 0xfcebc261
+0,       6298,       6298,        0,   276480, 0x0eb9770d
+0,       6340,       6340,        0,   276480, 0x046394ae
+0,       6381,       6381,        0,   276480, 0x3d3ca985
+0,       6423,       6423,        0,   276480, 0x94a03c75
+0,       6465,       6465,        0,   276480, 0x800eea2d
+0,       6507,       6507,        0,   276480, 0x6a841f41
+0,       6548,       6548,        0,   276480, 0x2f98911c
+0,       6590,       6590,        0,   276480, 0x923b9937
+0,       6632,       6632,        0,   276480, 0xe82f8e0f
+0,       6673,       6673,        0,   276480, 0xee82d657
+0,       6715,       6715,        0,   276480, 0xefab7ffd
+0,       6757,       6757,        0,   276480, 0x6b9fbc80
+0,       6798,       6798,        0,   276480, 0x4a1ada47
+0,       6840,       6840,        0,   276480, 0x6d4b49d7
+0,       6882,       6882,        0,   276480, 0xe4bdbd1e
+0,       6924,       6924,        0,   276480, 0x225a56c0
+0,       6965,       6965,        0,   276480, 0xd4adadad
+0,       7007,       7007,        0,   276480, 0xff4e1a8c
+0,       7049,       7049,        0,   276480, 0xf58b1b7c
+0,       7090,       7090,        0,   276480, 0xbaffcdcc
+0,       7132,       7132,        0,   276480, 0x374f88f0
+0,       7174,       7174,        0,   276480, 0x3d861ae6
+0,       7216,       7216,        0,   276480, 0xeb6eb88f
+0,       7257,       7257,        0,   276480, 0xdb753d35
+0,       7299,       7299,        0,   276480, 0x9aa543af
+0,       7341,       7341,        0,   276480, 0xb24c8016
+0,       7382,       7382,        0,   276480, 0xea80a82e
+0,       7424,       7424,        0,   276480, 0x2aae902a
+0,       7466,       7466,        0,   276480, 0x5bba3cfb
+0,       7508,       7508,        0,   276480, 0x5c6e97a9
+0,       7549,       7549,        0,   276480, 0x9b9ee961
+0,       7591,       7591,        0,   276480, 0xaa12b6fd
+0,       7633,       7633,        0,   276480, 0xe9d2439f
+0,       7674,       7674,        0,   276480, 0xbf09053c
+0,       7716,       7716,        0,   276480, 0x50c31e73
+0,       7758,       7758,        0,   276480, 0xdd9fb89f
+0,       7799,       7799,        0,   276480, 0x3e4e5aec
+0,       7841,       7841,        0,   276480, 0x0b752d28
+0,       7883,       7883,        0,   276480, 0xaf82399a
+0,       7925,       7925,        0,   276480, 0x7ce5f23c
+0,       7966,       7966,        0,   276480, 0xad135d0f
+0,       8008,       8008,        0,   276480, 0x55dadd30
+0,       8050,       8050,        0,   276480, 0x5aaa7519
+0,       8091,       8091,        0,   276480, 0xe45a5599
+0,       8133,       8133,        0,   276480, 0xc8e89913
+0,       8175,       8175,        0,   276480, 0x2f447fd3
+0,       8217,       8217,        0,   276480, 0x704411fb
+0,       8258,       8258,        0,   276480, 0x9d7430a1
+0,       8300,       8300,        0,   276480, 0x24dd5fd3
+0,       8342,       8342,        0,   276480, 0x51cb657c
+0,       8383,       8383,        0,   276480, 0x2c230702
+0,       8425,       8425,        0,   276480, 0x4a4f76cd
+0,       8467,       8467,        0,   276480, 0xdcd71e88
+0,       8509,       8509,        0,   276480, 0x87160f99
+0,       8550,       8550,        0,   276480, 0x27f54854
+0,       8592,       8592,        0,   276480, 0x694d76e3
+0,       8634,       8634,        0,   276480, 0xcbe93c19
+0,       8675,       8675,        0,   276480, 0x50742e1b
+0,       8717,       8717,        0,   276480, 0x525463e2
+0,       8759,       8759,        0,   276480, 0x819898f9
+0,       8800,       8800,        0,   276480, 0x08fac755
+0,       8842,       8842,        0,   276480, 0x35c46927
+0,       8884,       8884,        0,   276480, 0xeeed00fc
+0,       8926,       8926,        0,   276480, 0xb6f99ee3
+0,       8967,       8967,        0,   276480, 0xd87f4c73
+0,       9009,       9009,        0,   276480, 0xde97d9fd
+0,       9051,       9051,        0,   276480, 0xefc83107
+0,       9092,       9092,        0,   276480, 0xbb22e024
+0,       9134,       9134,        0,   276480, 0x53a7cfcb
+0,       9176,       9176,        0,   276480, 0xbe1fbb19
+0,       9218,       9218,        0,   276480, 0x300f922a
+0,       9259,       9259,        0,   276480, 0x826fc3bd
+0,       9301,       9301,        0,   276480, 0x679aa57a
+0,       9343,       9343,        0,   276480, 0x5497097b
+0,       9384,       9384,        0,   276480, 0x679a53f8
+0,       9426,       9426,        0,   276480, 0x976c9e93
+0,       9468,       9468,        0,   276480, 0xe80f87f2
+0,       9510,       9510,        0,   276480, 0xdc2d7c6c
+0,       9551,       9551,        0,   276480, 0xb194656e
+0,       9593,       9593,        0,   276480, 0xf002c5ca
+0,       9635,       9635,        0,   276480, 0x43fc1c64
+0,       9676,       9676,        0,   276480, 0xf62d8581
+0,       9718,       9718,        0,   276480, 0xb243dda5
+0,       9760,       9760,        0,   276480, 0x1700efbb
+0,       9801,       9801,        0,   276480, 0x9ebe6ba2
+0,       9843,       9843,        0,   276480, 0x8f316c66
+0,       9885,       9885,        0,   276480, 0x6348ecf5
+0,       9927,       9927,        0,   276480, 0x34b5b78a
diff --git a/tests/ref/fate/rpza b/tests/ref/fate/rpza
index 7819fa1..a1c5333 100644
--- a/tests/ref/fate/rpza
+++ b/tests/ref/fate/rpza
@@ -1,31 +1,31 @@
-#tb 0: 1/15
+#tb 0: 1/600
 0,          0,          0,        1,   230400, 0x4aec80a3
-0,          1,          1,        1,   230400, 0xb6c41452
-0,          2,          2,        1,   230400, 0xa6c27f12
-0,          3,          3,        1,   230400, 0x309bd2d2
-0,          4,          4,        1,   230400, 0x597a7341
-0,          5,          5,        1,   230400, 0x597a7341
-0,          6,          6,        1,   230400, 0xd6d6c569
-0,          7,          7,        1,   230400, 0x31413d89
-0,          8,          8,        1,   230400, 0x464e42e9
-0,          9,          9,        1,   230400, 0x502d7c71
-0,         10,         10,        1,   230400, 0x502d7c71
-0,         11,         11,        1,   230400, 0xc96f23d1
-0,         12,         12,        1,   230400, 0xc96f23d1
-0,         13,         13,        1,   230400, 0x5bfd2bc7
-0,         14,         14,        1,   230400, 0x821640a7
-0,         15,         15,        1,   230400, 0x8f001967
-0,         16,         16,        1,   230400, 0x406ba109
-0,         17,         17,        1,   230400, 0x85d99b50
-0,         18,         18,        1,   230400, 0x2fdb4018
-0,         19,         19,        1,   230400, 0xfa127259
-0,         20,         20,        1,   230400, 0xe6427b9b
-0,         21,         21,        1,   230400, 0xe6427b9b
-0,         22,         22,        1,   230400, 0x3a279000
-0,         23,         23,        1,   230400, 0x710755ee
-0,         24,         24,        1,   230400, 0x76549d35
-0,         25,         25,        1,   230400, 0xf4d0132c
-0,         26,         26,        1,   230400, 0xf4d0132c
-0,         27,         27,        1,   230400, 0x19d7ec14
-0,         28,         28,        1,   230400, 0x19d7ec14
-0,         29,         29,        1,   230400, 0x5f24b7e1
+0,         40,         40,        1,   230400, 0xb6c41452
+0,         80,         80,        1,   230400, 0xa6c27f12
+0,        120,        120,        1,   230400, 0x309bd2d2
+0,        160,        160,        1,   230400, 0x597a7341
+0,        200,        200,        1,   230400, 0x597a7341
+0,        240,        240,        1,   230400, 0xd6d6c569
+0,        280,        280,        1,   230400, 0x31413d89
+0,        320,        320,        1,   230400, 0x464e42e9
+0,        360,        360,        1,   230400, 0x502d7c71
+0,        400,        400,        1,   230400, 0x502d7c71
+0,        440,        440,        1,   230400, 0xc96f23d1
+0,        480,        480,        1,   230400, 0xc96f23d1
+0,        520,        520,        1,   230400, 0x5bfd2bc7
+0,        560,        560,        1,   230400, 0x821640a7
+0,        600,        600,        1,   230400, 0x8f001967
+0,        640,        640,        1,   230400, 0x406ba109
+0,        680,        680,        1,   230400, 0x85d99b50
+0,        720,        720,        1,   230400, 0x2fdb4018
+0,        760,        760,        1,   230400, 0xfa127259
+0,        800,        800,        1,   230400, 0xe6427b9b
+0,        840,        840,        1,   230400, 0xe6427b9b
+0,        880,        880,        1,   230400, 0x3a279000
+0,        920,        920,        1,   230400, 0x710755ee
+0,        960,        960,        1,   230400, 0x76549d35
+0,       1000,       1000,        1,   230400, 0xf4d0132c
+0,       1040,       1040,        1,   230400, 0xf4d0132c
+0,       1080,       1080,        1,   230400, 0x19d7ec14
+0,       1120,       1120,        1,   230400, 0x19d7ec14
+0,       1160,       1160,        1,   230400, 0x5f24b7e1
diff --git a/tests/ref/fate/rv30 b/tests/ref/fate/rv30
index df002d9..4883423 100644
--- a/tests/ref/fate/rv30
+++ b/tests/ref/fate/rv30
@@ -1,110 +1,110 @@
-#tb 0: 32768/982057
-0,          0,          0,        1,   126720, 0xcefaec47
-0,          1,          1,        1,   126720, 0xa416ece5
-0,          2,          2,        1,   126720, 0xa416ece5
-0,          3,          3,        1,   126720, 0xa416ece5
-0,          4,          4,        1,   126720, 0x60d6ed27
-0,          5,          5,        1,   126720, 0x259af497
-0,          6,          6,        1,   126720, 0x5e6ff4d7
-0,          7,          7,        1,   126720, 0xcc10f4b7
-0,          8,          8,        1,   126720, 0x763ab817
-0,          9,          9,        1,   126720, 0xeb6fb8d7
-0,         10,         10,        1,   126720, 0xda71b917
-0,         11,         11,        1,   126720, 0x0967b8f7
-0,         12,         12,        1,   126720, 0x4b62b947
-0,         13,         13,        1,   126720, 0xbb1abbb7
-0,         14,         14,        1,   126720, 0x273fbc37
-0,         15,         15,        1,   126720, 0x16eebbd7
-0,         16,         16,        1,   126720, 0x105eb927
-0,         17,         17,        1,   126720, 0x7fa3ae27
-0,         18,         18,        1,   126720, 0x722e99f7
-0,         19,         19,        1,   126720, 0x5ac9a827
-0,         20,         20,        1,   126720, 0x07beba77
-0,         21,         21,        1,   126720, 0x29d6a887
-0,         22,         22,        1,   126720, 0xa5caab87
-0,         23,         23,        1,   126720, 0x9ca7aac7
-0,         24,         24,        1,   126720, 0xb7debcd7
-0,         25,         25,        1,   126720, 0xd115a757
-0,         26,         26,        1,   126720, 0x6ddaef32
-0,         27,         27,        1,   126720, 0xde1bb900
-0,         28,         28,        1,   126720, 0xac6c071b
-0,         29,         29,        1,   126720, 0x04e7897c
-0,         30,         30,        1,   126720, 0x5eee050f
-0,         31,         31,        1,   126720, 0xe675be59
-0,         32,         32,        1,   126720, 0xdc3e0837
-0,         33,         33,        1,   126720, 0x68cfda2b
-0,         34,         34,        1,   126720, 0xe572dfc9
-0,         35,         35,        1,   126720, 0x582fb176
-0,         36,         36,        1,   126720, 0xa9477df0
-0,         37,         37,        1,   126720, 0xbc3cc34f
-0,         38,         38,        1,   126720, 0xcf8cb0e2
-0,         39,         39,        1,   126720, 0xcff1db35
-0,         40,         40,        1,   126720, 0xc6e10f9f
-0,         41,         41,        1,   126720, 0x75ae61b6
-0,         42,         42,        1,   126720, 0x12af3119
-0,         43,         43,        1,   126720, 0x85597543
-0,         44,         44,        1,   126720, 0x68c27aca
-0,         45,         45,        1,   126720, 0x554fe3e4
-0,         46,         46,        1,   126720, 0x72ecea95
-0,         47,         47,        1,   126720, 0xf4d003d1
-0,         48,         48,        1,   126720, 0x9bf6a605
-0,         49,         49,        1,   126720, 0x5d00b5fe
-0,         50,         50,        1,   126720, 0x93f7b040
-0,         51,         51,        1,   126720, 0x0d6ad154
-0,         52,         52,        1,   126720, 0x4be8b4ea
-0,         53,         53,        1,   126720, 0xe39bba0d
-0,         54,         54,        1,   126720, 0x9c21bad8
-0,         55,         55,        1,   126720, 0xa567f25b
-0,         56,         56,        1,   126720, 0x7a82663a
-0,         57,         57,        1,   126720, 0x72f2a47d
-0,         58,         58,        1,   126720, 0x4f639ebe
-0,         59,         59,        1,   126720, 0xab0fce83
-0,         60,         60,        1,   126720, 0x6cf87d39
-0,         61,         61,        1,   126720, 0x534a10cc
-0,         62,         62,        1,   126720, 0x6bbcf44c
-0,         63,         63,        1,   126720, 0xfdca11d3
-0,         64,         64,        1,   126720, 0x7e58f5a6
-0,         65,         65,        1,   126720, 0x5fd753d8
-0,         66,         66,        1,   126720, 0x0c735615
-0,         67,         67,        1,   126720, 0x2a034ebf
-0,         68,         68,        1,   126720, 0xeaf3dd0b
-0,         69,         69,        1,   126720, 0x0eaf0c1b
-0,         70,         70,        1,   126720, 0xce5e6794
-0,         71,         71,        1,   126720, 0xf27c31c3
-0,         72,         72,        1,   126720, 0xb64af168
-0,         73,         73,        1,   126720, 0x14cf7974
-0,         74,         74,        1,   126720, 0x1c2a513d
-0,         75,         75,        1,   126720, 0xa3f515ab
-0,         76,         76,        1,   126720, 0xcfd62765
-0,         77,         77,        1,   126720, 0xbc513f2a
-0,         78,         78,        1,   126720, 0xbc303fae
-0,         79,         79,        1,   126720, 0x2f8f69b9
-0,         80,         80,        1,   126720, 0x0a22cc69
-0,         81,         81,        1,   126720, 0xd9f67585
-0,         82,         82,        1,   126720, 0x20403001
-0,         83,         83,        1,   126720, 0xf92b2a25
-0,         84,         84,        1,   126720, 0x3c170aad
-0,         85,         85,        1,   126720, 0x3378251f
-0,         86,         86,        1,   126720, 0xb3ed5911
-0,         87,         87,        1,   126720, 0x35d24ef8
-0,         88,         88,        1,   126720, 0x8da30275
-0,         89,         89,        1,   126720, 0xc15a3577
-0,         90,         90,        1,   126720, 0xf2942f53
-0,         91,         91,        1,   126720, 0x44d8304a
-0,         92,         92,        1,   126720, 0xd688a932
-0,         93,         93,        1,   126720, 0x0a24f256
-0,         94,         94,        1,   126720, 0xfab9c45d
-0,         95,         95,        1,   126720, 0x10e939ce
-0,         96,         96,        1,   126720, 0x97fcaa3a
-0,         97,         97,        1,   126720, 0x45464610
-0,         98,         98,        1,   126720, 0xfe2e057d
-0,         99,         99,        1,   126720, 0x0b6718ae
-0,        100,        100,        1,   126720, 0x5284da7b
-0,        101,        101,        1,   126720, 0x23efdc35
-0,        102,        102,        1,   126720, 0xc387b2b3
-0,        103,        103,        1,   126720, 0xc9e92bf1
-0,        104,        104,        1,   126720, 0xfbf20a01
-0,        105,        105,        1,   126720, 0x4d888b2e
-0,        106,        106,        1,   126720, 0xdd0d74df
-0,        107,        107,        1,   126720, 0x49d07aa4
-0,        108,        108,        1,   126720, 0x08382b8e
+#tb 0: 1/1000
+0,          1,          1,        0,   126720, 0xcefaec47
+0,         33,         33,        0,   126720, 0xa416ece5
+0,         66,         66,        0,   126720, 0xa416ece5
+0,        100,        100,        0,   126720, 0xa416ece5
+0,        133,        133,        0,   126720, 0x60d6ed27
+0,        166,        166,        0,   126720, 0x259af497
+0,        200,        200,        0,   126720, 0x5e6ff4d7
+0,        233,        233,        0,   126720, 0xcc10f4b7
+0,        266,        266,        0,   126720, 0x763ab817
+0,        300,        300,        0,   126720, 0xeb6fb8d7
+0,        333,        333,        0,   126720, 0xda71b917
+0,        367,        367,        0,   126720, 0x0967b8f7
+0,        400,        400,        0,   126720, 0x4b62b947
+0,        433,        433,        0,   126720, 0xbb1abbb7
+0,        467,        467,        0,   126720, 0x273fbc37
+0,        500,        500,        0,   126720, 0x16eebbd7
+0,        533,        533,        0,   126720, 0x105eb927
+0,        567,        567,        0,   126720, 0x7fa3ae27
+0,        600,        600,        0,   126720, 0x722e99f7
+0,        633,        633,        0,   126720, 0x5ac9a827
+0,        667,        667,        0,   126720, 0x07beba77
+0,        700,        700,        0,   126720, 0x29d6a887
+0,        734,        734,        0,   126720, 0xa5caab87
+0,        767,        767,        0,   126720, 0x9ca7aac7
+0,        800,        800,        0,   126720, 0xb7debcd7
+0,        834,        834,        0,   126720, 0xd115a757
+0,        867,        867,        0,   126720, 0x6ddaef32
+0,        900,        900,        0,   126720, 0xde1bb900
+0,        934,        934,        0,   126720, 0xac6c071b
+0,        967,        967,        0,   126720, 0x04e7897c
+0,       1000,       1000,        0,   126720, 0x5eee050f
+0,       1034,       1034,        0,   126720, 0xe675be59
+0,       1067,       1067,        0,   126720, 0xdc3e0837
+0,       1101,       1101,        0,   126720, 0x68cfda2b
+0,       1134,       1134,        0,   126720, 0xe572dfc9
+0,       1167,       1167,        0,   126720, 0x582fb176
+0,       1201,       1201,        0,   126720, 0xa9477df0
+0,       1234,       1234,        0,   126720, 0xbc3cc34f
+0,       1267,       1267,        0,   126720, 0xcf8cb0e2
+0,       1301,       1301,        0,   126720, 0xcff1db35
+0,       1334,       1334,        0,   126720, 0xc6e10f9f
+0,       1368,       1368,        0,   126720, 0x75ae61b6
+0,       1401,       1401,        0,   126720, 0x12af3119
+0,       1434,       1434,        0,   126720, 0x85597543
+0,       1468,       1468,        0,   126720, 0x68c27aca
+0,       1501,       1501,        0,   126720, 0x554fe3e4
+0,       1534,       1534,        0,   126720, 0x72ecea95
+0,       1568,       1568,        0,   126720, 0xf4d003d1
+0,       1601,       1601,        0,   126720, 0x9bf6a605
+0,       1634,       1634,        0,   126720, 0x5d00b5fe
+0,       1668,       1668,        0,   126720, 0x93f7b040
+0,       1701,       1701,        0,   126720, 0x0d6ad154
+0,       1735,       1735,        0,   126720, 0x4be8b4ea
+0,       1768,       1768,        0,   126720, 0xe39bba0d
+0,       1801,       1801,        0,   126720, 0x9c21bad8
+0,       1835,       1835,        0,   126720, 0xa567f25b
+0,       1868,       1868,        0,   126720, 0x7a82663a
+0,       1901,       1901,        0,   126720, 0x72f2a47d
+0,       1935,       1935,        0,   126720, 0x4f639ebe
+0,       1968,       1968,        0,   126720, 0xab0fce83
+0,       2001,       2001,        0,   126720, 0x6cf87d39
+0,       2035,       2035,        0,   126720, 0x534a10cc
+0,       2068,       2068,        0,   126720, 0x6bbcf44c
+0,       2102,       2102,        0,   126720, 0xfdca11d3
+0,       2135,       2135,        0,   126720, 0x7e58f5a6
+0,       2168,       2168,        0,   126720, 0x5fd753d8
+0,       2202,       2202,        0,   126720, 0x0c735615
+0,       2235,       2235,        0,   126720, 0x2a034ebf
+0,       2268,       2268,        0,   126720, 0xeaf3dd0b
+0,       2302,       2302,        0,   126720, 0x0eaf0c1b
+0,       2335,       2335,        0,   126720, 0xce5e6794
+0,       2369,       2369,        0,   126720, 0xf27c31c3
+0,       2402,       2402,        0,   126720, 0xb64af168
+0,       2435,       2435,        0,   126720, 0x14cf7974
+0,       2469,       2469,        0,   126720, 0x1c2a513d
+0,       2502,       2502,        0,   126720, 0xa3f515ab
+0,       2535,       2535,        0,   126720, 0xcfd62765
+0,       2569,       2569,        0,   126720, 0xbc513f2a
+0,       2602,       2602,        0,   126720, 0xbc303fae
+0,       2635,       2635,        0,   126720, 0x2f8f69b9
+0,       2669,       2669,        0,   126720, 0x0a22cc69
+0,       2702,       2702,        0,   126720, 0xd9f67585
+0,       2736,       2736,        0,   126720, 0x20403001
+0,       2769,       2769,        0,   126720, 0xf92b2a25
+0,       2802,       2802,        0,   126720, 0x3c170aad
+0,       2836,       2836,        0,   126720, 0x3378251f
+0,       2869,       2869,        0,   126720, 0xb3ed5911
+0,       2902,       2902,        0,   126720, 0x35d24ef8
+0,       2936,       2936,        0,   126720, 0x8da30275
+0,       2969,       2969,        0,   126720, 0xc15a3577
+0,       3002,       3002,        0,   126720, 0xf2942f53
+0,       3036,       3036,        0,   126720, 0x44d8304a
+0,       3069,       3069,        0,   126720, 0xd688a932
+0,       3103,       3103,        0,   126720, 0x0a24f256
+0,       3136,       3136,        0,   126720, 0xfab9c45d
+0,       3169,       3169,        0,   126720, 0x10e939ce
+0,       3203,       3203,        0,   126720, 0x97fcaa3a
+0,       3236,       3236,        0,   126720, 0x45464610
+0,       3269,       3269,        0,   126720, 0xfe2e057d
+0,       3303,       3303,        0,   126720, 0x0b6718ae
+0,       3336,       3336,        0,   126720, 0x5284da7b
+0,       3370,       3370,        0,   126720, 0x23efdc35
+0,       3403,       3403,        0,   126720, 0xc387b2b3
+0,       3436,       3436,        0,   126720, 0xc9e92bf1
+0,       3470,       3470,        0,   126720, 0xfbf20a01
+0,       3503,       3503,        0,   126720, 0x4d888b2e
+0,       3536,       3536,        0,   126720, 0xdd0d74df
+0,       3570,       3570,        0,   126720, 0x49d07aa4
+0,       3603,       3603,        0,   126720, 0x08382b8e
diff --git a/tests/ref/fate/smc b/tests/ref/fate/smc
index 1635b37..cdfc3d5 100644
--- a/tests/ref/fate/smc
+++ b/tests/ref/fate/smc
@@ -1,121 +1,121 @@
-#tb 0: 1/10
+#tb 0: 1/30
 0,          0,          0,        1,   230400, 0xf814fc90
-0,          1,          1,        1,   230400, 0xe1b13137
-0,          2,          2,        1,   230400, 0xa7f4d408
-0,          3,          3,        1,   230400, 0x4b86e1d5
-0,          4,          4,        1,   230400, 0xc663af5a
-0,          5,          5,        1,   230400, 0x943b5757
-0,          6,          6,        1,   230400, 0x0d7ee496
-0,          7,          7,        1,   230400, 0x78792de4
-0,          8,          8,        1,   230400, 0xd102fb8d
-0,          9,          9,        1,   230400, 0xf9006139
-0,         10,         10,        1,   230400, 0x216bd87d
-0,         11,         11,        1,   230400, 0x1e4c902c
-0,         12,         12,        1,   230400, 0x5aaa7742
-0,         13,         13,        1,   230400, 0x48699d93
-0,         14,         14,        1,   230400, 0xd1e22a5c
-0,         15,         15,        1,   230400, 0x18929315
-0,         16,         16,        1,   230400, 0x680dd4d3
-0,         17,         17,        1,   230400, 0x4cdbcbcb
-0,         18,         18,        1,   230400, 0x6f810d98
-0,         19,         19,        1,   230400, 0xb4f68204
-0,         20,         20,        1,   230400, 0xbd3bb19e
-0,         21,         21,        1,   230400, 0xab27b424
-0,         22,         22,        1,   230400, 0xe5dd675d
-0,         23,         23,        1,   230400, 0x811e45a1
-0,         24,         24,        1,   230400, 0x951011f7
-0,         25,         25,        1,   230400, 0x2f1e2b99
-0,         26,         26,        1,   230400, 0x6657c0d6
-0,         27,         27,        1,   230400, 0xfd29177d
-0,         28,         28,        1,   230400, 0x4b4c01d7
-0,         29,         29,        1,   230400, 0x9af286aa
-0,         30,         30,        1,   230400, 0xc4e9b193
-0,         31,         31,        1,   230400, 0x05dc28ec
-0,         32,         32,        1,   230400, 0x68352119
-0,         33,         33,        1,   230400, 0x0b87e79c
-0,         34,         34,        1,   230400, 0x8358b180
-0,         35,         35,        1,   230400, 0x8debbc9d
-0,         36,         36,        1,   230400, 0x961c58ce
-0,         37,         37,        1,   230400, 0xd8a809c8
-0,         38,         38,        1,   230400, 0x5351789d
-0,         39,         39,        1,   230400, 0xa7ca598c
-0,         40,         40,        1,   230400, 0xc5ce1812
-0,         41,         41,        1,   230400, 0x74496550
-0,         42,         42,        1,   230400, 0x326e366e
-0,         43,         43,        1,   230400, 0x27ae9a92
-0,         44,         44,        1,   230400, 0xadbc8794
-0,         45,         45,        1,   230400, 0x7f3587d8
-0,         46,         46,        1,   230400, 0xf0400ca6
-0,         47,         47,        1,   230400, 0x59a5138e
-0,         48,         48,        1,   230400, 0x456d62a5
-0,         49,         49,        1,   230400, 0xf1a5e5f1
-0,         50,         50,        1,   230400, 0x75c712e4
-0,         51,         51,        1,   230400, 0xd160780a
-0,         52,         52,        1,   230400, 0xc6c23cf0
-0,         53,         53,        1,   230400, 0x0339a2ac
-0,         54,         54,        1,   230400, 0x0e27a2e2
-0,         55,         55,        1,   230400, 0x84976300
-0,         56,         56,        1,   230400, 0xb368f3c4
-0,         57,         57,        1,   230400, 0xa5231fb8
-0,         58,         58,        1,   230400, 0x17c036d4
-0,         59,         59,        1,   230400, 0xfc81a2c0
-0,         60,         60,        1,   230400, 0x99faa403
-0,         61,         61,        1,   230400, 0xff59efd3
-0,         62,         62,        1,   230400, 0xcece1d23
-0,         63,         63,        1,   230400, 0x56c785d9
-0,         64,         64,        1,   230400, 0xe5a9f222
-0,         65,         65,        1,   230400, 0xb80946f8
-0,         66,         66,        1,   230400, 0xf6b642c6
-0,         67,         67,        1,   230400, 0x69573aed
-0,         68,         68,        1,   230400, 0xfb69a1fd
-0,         69,         69,        1,   230400, 0x100b47f4
-0,         70,         70,        1,   230400, 0x6edf9543
-0,         71,         71,        1,   230400, 0x11fdf43c
-0,         72,         72,        1,   230400, 0xd143bf2a
-0,         73,         73,        1,   230400, 0x7ca747c4
-0,         74,         74,        1,   230400, 0xd984bd73
-0,         75,         75,        1,   230400, 0xc5477e8d
-0,         76,         76,        1,   230400, 0xf7d58300
-0,         77,         77,        1,   230400, 0x7a1b9463
-0,         78,         78,        1,   230400, 0x47a29342
-0,         79,         79,        1,   230400, 0xdf437f9d
-0,         80,         80,        1,   230400, 0xf836ef5d
-0,         81,         81,        1,   230400, 0xc98937af
-0,         82,         82,        1,   230400, 0x9258695b
-0,         83,         83,        1,   230400, 0xd4fe179c
-0,         84,         84,        1,   230400, 0x35d524d3
-0,         85,         85,        1,   230400, 0xd9ce5484
-0,         86,         86,        1,   230400, 0xdef776ed
-0,         87,         87,        1,   230400, 0x154c4057
-0,         88,         88,        1,   230400, 0xf5c764f1
-0,         89,         89,        1,   230400, 0x41979b13
-0,         90,         90,        1,   230400, 0xae4e83db
-0,         91,         91,        1,   230400, 0x09fc0f83
-0,         92,         92,        1,   230400, 0x60267fdf
-0,         93,         93,        1,   230400, 0xeaafc525
-0,         94,         94,        1,   230400, 0x80cc35e5
-0,         95,         95,        1,   230400, 0xd82c6164
-0,         96,         96,        1,   230400, 0xd68b8111
-0,         97,         97,        1,   230400, 0x96f874a3
-0,         98,         98,        1,   230400, 0x7fc861c4
-0,         99,         99,        1,   230400, 0xb911f310
-0,        100,        100,        1,   230400, 0x35bbf5aa
-0,        101,        101,        1,   230400, 0xa922b683
-0,        102,        102,        1,   230400, 0xbf6ae353
-0,        103,        103,        1,   230400, 0x6bd3984c
-0,        104,        104,        1,   230400, 0xe51768c0
-0,        105,        105,        1,   230400, 0xee691624
-0,        106,        106,        1,   230400, 0xd546fed7
-0,        107,        107,        1,   230400, 0x98d375e6
-0,        108,        108,        1,   230400, 0x3b9ca990
-0,        109,        109,        1,   230400, 0x27128ad1
-0,        110,        110,        1,   230400, 0x2788e38c
-0,        111,        111,        1,   230400, 0xb0cf3381
-0,        112,        112,        1,   230400, 0x4fc86d39
-0,        113,        113,        1,   230400, 0xf5632fff
-0,        114,        114,        1,   230400, 0x7fa1e6c2
-0,        115,        115,        1,   230400, 0xffeef044
-0,        116,        116,        1,   230400, 0x932af385
-0,        117,        117,        1,   230400, 0x76738428
-0,        118,        118,        1,   230400, 0xf6771ba2
-0,        119,        119,        1,   230400, 0x17e2ff27
+0,          3,          3,        1,   230400, 0xe1b13137
+0,          6,          6,        1,   230400, 0xa7f4d408
+0,          9,          9,        1,   230400, 0x4b86e1d5
+0,         12,         12,        1,   230400, 0xc663af5a
+0,         15,         15,        1,   230400, 0x943b5757
+0,         18,         18,        1,   230400, 0x0d7ee496
+0,         21,         21,        1,   230400, 0x78792de4
+0,         24,         24,        1,   230400, 0xd102fb8d
+0,         27,         27,        1,   230400, 0xf9006139
+0,         30,         30,        1,   230400, 0x216bd87d
+0,         33,         33,        1,   230400, 0x1e4c902c
+0,         36,         36,        1,   230400, 0x5aaa7742
+0,         39,         39,        1,   230400, 0x48699d93
+0,         42,         42,        1,   230400, 0xd1e22a5c
+0,         45,         45,        1,   230400, 0x18929315
+0,         48,         48,        1,   230400, 0x680dd4d3
+0,         51,         51,        1,   230400, 0x4cdbcbcb
+0,         54,         54,        1,   230400, 0x6f810d98
+0,         57,         57,        1,   230400, 0xb4f68204
+0,         60,         60,        1,   230400, 0xbd3bb19e
+0,         63,         63,        1,   230400, 0xab27b424
+0,         66,         66,        1,   230400, 0xe5dd675d
+0,         69,         69,        1,   230400, 0x811e45a1
+0,         72,         72,        1,   230400, 0x951011f7
+0,         75,         75,        1,   230400, 0x2f1e2b99
+0,         78,         78,        1,   230400, 0x6657c0d6
+0,         81,         81,        1,   230400, 0xfd29177d
+0,         84,         84,        1,   230400, 0x4b4c01d7
+0,         87,         87,        1,   230400, 0x9af286aa
+0,         90,         90,        1,   230400, 0xc4e9b193
+0,         93,         93,        1,   230400, 0x05dc28ec
+0,         96,         96,        1,   230400, 0x68352119
+0,         99,         99,        1,   230400, 0x0b87e79c
+0,        102,        102,        1,   230400, 0x8358b180
+0,        105,        105,        1,   230400, 0x8debbc9d
+0,        108,        108,        1,   230400, 0x961c58ce
+0,        111,        111,        1,   230400, 0xd8a809c8
+0,        114,        114,        1,   230400, 0x5351789d
+0,        117,        117,        1,   230400, 0xa7ca598c
+0,        120,        120,        1,   230400, 0xc5ce1812
+0,        123,        123,        1,   230400, 0x74496550
+0,        126,        126,        1,   230400, 0x326e366e
+0,        129,        129,        1,   230400, 0x27ae9a92
+0,        132,        132,        1,   230400, 0xadbc8794
+0,        135,        135,        1,   230400, 0x7f3587d8
+0,        138,        138,        1,   230400, 0xf0400ca6
+0,        141,        141,        1,   230400, 0x59a5138e
+0,        144,        144,        1,   230400, 0x456d62a5
+0,        147,        147,        1,   230400, 0xf1a5e5f1
+0,        150,        150,        1,   230400, 0x75c712e4
+0,        153,        153,        1,   230400, 0xd160780a
+0,        156,        156,        1,   230400, 0xc6c23cf0
+0,        159,        159,        1,   230400, 0x0339a2ac
+0,        162,        162,        1,   230400, 0x0e27a2e2
+0,        165,        165,        1,   230400, 0x84976300
+0,        168,        168,        1,   230400, 0xb368f3c4
+0,        171,        171,        1,   230400, 0xa5231fb8
+0,        174,        174,        1,   230400, 0x17c036d4
+0,        177,        177,        1,   230400, 0xfc81a2c0
+0,        180,        180,        1,   230400, 0x99faa403
+0,        183,        183,        1,   230400, 0xff59efd3
+0,        186,        186,        1,   230400, 0xcece1d23
+0,        189,        189,        1,   230400, 0x56c785d9
+0,        192,        192,        1,   230400, 0xe5a9f222
+0,        195,        195,        1,   230400, 0xb80946f8
+0,        198,        198,        1,   230400, 0xf6b642c6
+0,        201,        201,        1,   230400, 0x69573aed
+0,        204,        204,        1,   230400, 0xfb69a1fd
+0,        207,        207,        1,   230400, 0x100b47f4
+0,        210,        210,        1,   230400, 0x6edf9543
+0,        213,        213,        1,   230400, 0x11fdf43c
+0,        216,        216,        1,   230400, 0xd143bf2a
+0,        219,        219,        1,   230400, 0x7ca747c4
+0,        222,        222,        1,   230400, 0xd984bd73
+0,        225,        225,        1,   230400, 0xc5477e8d
+0,        228,        228,        1,   230400, 0xf7d58300
+0,        231,        231,        1,   230400, 0x7a1b9463
+0,        234,        234,        1,   230400, 0x47a29342
+0,        237,        237,        1,   230400, 0xdf437f9d
+0,        240,        240,        1,   230400, 0xf836ef5d
+0,        243,        243,        1,   230400, 0xc98937af
+0,        246,        246,        1,   230400, 0x9258695b
+0,        249,        249,        1,   230400, 0xd4fe179c
+0,        252,        252,        1,   230400, 0x35d524d3
+0,        255,        255,        1,   230400, 0xd9ce5484
+0,        258,        258,        1,   230400, 0xdef776ed
+0,        261,        261,        1,   230400, 0x154c4057
+0,        264,        264,        1,   230400, 0xf5c764f1
+0,        267,        267,        1,   230400, 0x41979b13
+0,        270,        270,        1,   230400, 0xae4e83db
+0,        273,        273,        1,   230400, 0x09fc0f83
+0,        276,        276,        1,   230400, 0x60267fdf
+0,        279,        279,        1,   230400, 0xeaafc525
+0,        282,        282,        1,   230400, 0x80cc35e5
+0,        285,        285,        1,   230400, 0xd82c6164
+0,        288,        288,        1,   230400, 0xd68b8111
+0,        291,        291,        1,   230400, 0x96f874a3
+0,        294,        294,        1,   230400, 0x7fc861c4
+0,        297,        297,        1,   230400, 0xb911f310
+0,        300,        300,        1,   230400, 0x35bbf5aa
+0,        303,        303,        1,   230400, 0xa922b683
+0,        306,        306,        1,   230400, 0xbf6ae353
+0,        309,        309,        1,   230400, 0x6bd3984c
+0,        312,        312,        1,   230400, 0xe51768c0
+0,        315,        315,        1,   230400, 0xee691624
+0,        318,        318,        1,   230400, 0xd546fed7
+0,        321,        321,        1,   230400, 0x98d375e6
+0,        324,        324,        1,   230400, 0x3b9ca990
+0,        327,        327,        1,   230400, 0x27128ad1
+0,        330,        330,        1,   230400, 0x2788e38c
+0,        333,        333,        1,   230400, 0xb0cf3381
+0,        336,        336,        1,   230400, 0x4fc86d39
+0,        339,        339,        1,   230400, 0xf5632fff
+0,        342,        342,        1,   230400, 0x7fa1e6c2
+0,        345,        345,        1,   230400, 0xffeef044
+0,        348,        348,        1,   230400, 0x932af385
+0,        351,        351,        1,   230400, 0x76738428
+0,        354,        354,        1,   230400, 0xf6771ba2
+0,        357,        357,        1,   230400, 0x17e2ff27
diff --git a/tests/ref/fate/svq1 b/tests/ref/fate/svq1
index 3bcf715..3b26d1f 100644
--- a/tests/ref/fate/svq1
+++ b/tests/ref/fate/svq1
@@ -1,151 +1,151 @@
-#tb 0: 1/15
+#tb 0: 1/600
 0,          0,          0,        1,    21600, 0x7f9389e3
-0,          1,          1,        1,    21600, 0xcebb8896
-0,          2,          2,        1,    21600, 0xef51860a
-0,          3,          3,        1,    21600, 0x88d97e7d
-0,          4,          4,        1,    21600, 0xc7757c88
-0,          5,          5,        1,    21600, 0x2f537ade
-0,          6,          6,        1,    21600, 0xd50a7eff
-0,          7,          7,        1,    21600, 0xdcfb7fc6
-0,          8,          8,        1,    21600, 0x0d608299
-0,          9,          9,        1,    21600, 0x97ca81b4
-0,         10,         10,        1,    21600, 0x791f80e7
-0,         11,         11,        1,    21600, 0x96ae7d33
-0,         12,         12,        1,    21600, 0x4d7474a8
-0,         13,         13,        1,    21600, 0x2ae76f37
-0,         14,         14,        1,    21600, 0x7da76265
-0,         15,         15,        1,    21600, 0x93ae3eb6
-0,         16,         16,        1,    21600, 0xebfd3868
-0,         17,         17,        1,    21600, 0x54f82ffa
-0,         18,         18,        1,    21600, 0x8d5b2ad0
-0,         19,         19,        1,    21600, 0xe67128e6
-0,         20,         20,        1,    21600, 0xb7bf613e
-0,         21,         21,        1,    21600, 0xefd0f51b
-0,         22,         22,        1,    21600, 0x31b7da59
-0,         23,         23,        1,    21600, 0x7a84a8f7
-0,         24,         24,        1,    21600, 0x0351ad27
-0,         25,         25,        1,    21600, 0xed6f434d
-0,         26,         26,        1,    21600, 0x0e771127
-0,         27,         27,        1,    21600, 0x37bf0b95
-0,         28,         28,        1,    21600, 0x30e10a77
-0,         29,         29,        1,    21600, 0x1a48288a
-0,         30,         30,        1,    21600, 0xf43c6770
-0,         31,         31,        1,    21600, 0x3c43ae68
-0,         32,         32,        1,    21600, 0x04dc0949
-0,         33,         33,        1,    21600, 0x7920758d
-0,         34,         34,        1,    21600, 0x6c12bab5
-0,         35,         35,        1,    21600, 0x1ac23706
-0,         36,         36,        1,    21600, 0x7a95cb5f
-0,         37,         37,        1,    21600, 0xf1bfbb46
-0,         38,         38,        1,    21600, 0x773d1d0c
-0,         39,         39,        1,    21600, 0x2e7bea65
-0,         40,         40,        1,    21600, 0xdb1a086f
-0,         41,         41,        1,    21600, 0x5b36b78d
-0,         42,         42,        1,    21600, 0x7b533ca6
-0,         43,         43,        1,    21600, 0x65d75105
-0,         44,         44,        1,    21600, 0xfe6f6207
-0,         45,         45,        1,    21600, 0x44c4ce57
-0,         46,         46,        1,    21600, 0x220f3dae
-0,         47,         47,        1,    21600, 0xb4d20ffb
-0,         48,         48,        1,    21600, 0x8907ad72
-0,         49,         49,        1,    21600, 0xc6418998
-0,         50,         50,        1,    21600, 0x395b6670
-0,         51,         51,        1,    21600, 0x83495b88
-0,         52,         52,        1,    21600, 0x8920d683
-0,         53,         53,        1,    21600, 0xd7fc64ea
-0,         54,         54,        1,    21600, 0x21a3b222
-0,         55,         55,        1,    21600, 0xc11f2dbd
-0,         56,         56,        1,    21600, 0xd1d5495d
-0,         57,         57,        1,    21600, 0x70f2de20
-0,         58,         58,        1,    21600, 0x10adc9a9
-0,         59,         59,        1,    21600, 0xf713c0ec
-0,         60,         60,        1,    21600, 0xa346b3fe
-0,         61,         61,        1,    21600, 0x7945c29b
-0,         62,         62,        1,    21600, 0xb07ceb91
-0,         63,         63,        1,    21600, 0xe1eaf9ef
-0,         64,         64,        1,    21600, 0x6fa915c7
-0,         65,         65,        1,    21600, 0x61952055
-0,         66,         66,        1,    21600, 0x4bca2382
-0,         67,         67,        1,    21600, 0x36161fe2
-0,         68,         68,        1,    21600, 0xf93a28f7
-0,         69,         69,        1,    21600, 0xa02a3d47
-0,         70,         70,        1,    21600, 0x925b3609
-0,         71,         71,        1,    21600, 0x5b6941db
-0,         72,         72,        1,    21600, 0x33154a91
-0,         73,         73,        1,    21600, 0xb1d75c50
-0,         74,         74,        1,    21600, 0x1cb369bd
-0,         75,         75,        1,    21600, 0x3be4eff2
-0,         76,         76,        1,    21600, 0xbb89c301
-0,         77,         77,        1,    21600, 0xc7630d85
-0,         78,         78,        1,    21600, 0xf7441c67
-0,         79,         79,        1,    21600, 0xc23611ef
-0,         80,         80,        1,    21600, 0x840efb21
-0,         81,         81,        1,    21600, 0x7d470a0f
-0,         82,         82,        1,    21600, 0xfe093210
-0,         83,         83,        1,    21600, 0x0f3ea098
-0,         84,         84,        1,    21600, 0xcd72286f
-0,         85,         85,        1,    21600, 0x826f8030
-0,         86,         86,        1,    21600, 0xcda3ace8
-0,         87,         87,        1,    21600, 0x39cb4cd0
-0,         88,         88,        1,    21600, 0xa86a60ac
-0,         89,         89,        1,    21600, 0xcd32ed8e
-0,         90,         90,        1,    21600, 0x769b285d
-0,         91,         91,        1,    21600, 0x10234cd0
-0,         92,         92,        1,    21600, 0x951036b8
-0,         93,         93,        1,    21600, 0xaef248fa
-0,         94,         94,        1,    21600, 0x74e36e84
-0,         95,         95,        1,    21600, 0x3908531b
-0,         96,         96,        1,    21600, 0x342f2a9d
-0,         97,         97,        1,    21600, 0x291d58f3
-0,         98,         98,        1,    21600, 0xcf24b1e5
-0,         99,         99,        1,    21600, 0x3e7c7959
-0,        100,        100,        1,    21600, 0x6517e573
-0,        101,        101,        1,    21600, 0x304cc6db
-0,        102,        102,        1,    21600, 0x272895e4
-0,        103,        103,        1,    21600, 0x52325837
-0,        104,        104,        1,    21600, 0xd01344bd
-0,        105,        105,        1,    21600, 0xd25a370b
-0,        106,        106,        1,    21600, 0x274e0ae9
-0,        107,        107,        1,    21600, 0x6f66138f
-0,        108,        108,        1,    21600, 0xd35a0f60
-0,        109,        109,        1,    21600, 0xe0610863
-0,        110,        110,        1,    21600, 0x920b05fb
-0,        111,        111,        1,    21600, 0x5befe39d
-0,        112,        112,        1,    21600, 0xd167bd58
-0,        113,        113,        1,    21600, 0x653ac504
-0,        114,        114,        1,    21600, 0x8372c6d7
-0,        115,        115,        1,    21600, 0x0302c276
-0,        116,        116,        1,    21600, 0xa176b694
-0,        117,        117,        1,    21600, 0x4c2e935a
-0,        118,        118,        1,    21600, 0xf7ea844e
-0,        119,        119,        1,    21600, 0x76d6c07b
-0,        120,        120,        1,    21600, 0x0a14d610
-0,        121,        121,        1,    21600, 0x0ec9f3f3
-0,        122,        122,        1,    21600, 0xdc90f6ea
-0,        123,        123,        1,    21600, 0xc841f9ef
-0,        124,        124,        1,    21600, 0x7ab5f9b9
-0,        125,        125,        1,    21600, 0xda40f3c2
-0,        126,        126,        1,    21600, 0x0040fb72
-0,        127,        127,        1,    21600, 0x705b0786
-0,        128,        128,        1,    21600, 0x26d5198d
-0,        129,        129,        1,    21600, 0x6f5153ad
-0,        130,        130,        1,    21600, 0x9f26624b
-0,        131,        131,        1,    21600, 0x0d3ea7af
-0,        132,        132,        1,    21600, 0xb957ca79
-0,        133,        133,        1,    21600, 0x03a60612
-0,        134,        134,        1,    21600, 0x3ddc4ff1
-0,        135,        135,        1,    21600, 0x8fe5697f
-0,        136,        136,        1,    21600, 0x3d199b09
-0,        137,        137,        1,    21600, 0x97e2b504
-0,        138,        138,        1,    21600, 0x7563f784
-0,        139,        139,        1,    21600, 0x9a473879
-0,        140,        140,        1,    21600, 0x2e2054e5
-0,        141,        141,        1,    21600, 0x06b3658b
-0,        142,        142,        1,    21600, 0xa37ee249
-0,        143,        143,        1,    21600, 0xa527efa1
-0,        144,        144,        1,    21600, 0x12791532
-0,        145,        145,        1,    21600, 0xc5350145
-0,        146,        146,        1,    21600, 0xcd44f1ac
-0,        147,        147,        1,    21600, 0xe610edfb
-0,        148,        148,        1,    21600, 0x5642f672
-0,        149,        149,        1,    21600, 0xf2bc3e5b
+0,         40,         40,        1,    21600, 0xcebb8896
+0,         80,         80,        1,    21600, 0xef51860a
+0,        120,        120,        1,    21600, 0x88d97e7d
+0,        160,        160,        1,    21600, 0xc7757c88
+0,        200,        200,        1,    21600, 0x2f537ade
+0,        240,        240,        1,    21600, 0xd50a7eff
+0,        280,        280,        1,    21600, 0xdcfb7fc6
+0,        320,        320,        1,    21600, 0x0d608299
+0,        360,        360,        1,    21600, 0x97ca81b4
+0,        400,        400,        1,    21600, 0x791f80e7
+0,        440,        440,        1,    21600, 0x96ae7d33
+0,        480,        480,        1,    21600, 0x4d7474a8
+0,        520,        520,        1,    21600, 0x2ae76f37
+0,        560,        560,        1,    21600, 0x7da76265
+0,        600,        600,        1,    21600, 0x93ae3eb6
+0,        640,        640,        1,    21600, 0xebfd3868
+0,        680,        680,        1,    21600, 0x54f82ffa
+0,        720,        720,        1,    21600, 0x8d5b2ad0
+0,        760,        760,        1,    21600, 0xe67128e6
+0,        800,        800,        1,    21600, 0xb7bf613e
+0,        840,        840,        1,    21600, 0xefd0f51b
+0,        880,        880,        1,    21600, 0x31b7da59
+0,        920,        920,        1,    21600, 0x7a84a8f7
+0,        960,        960,        1,    21600, 0x0351ad27
+0,       1000,       1000,        1,    21600, 0xed6f434d
+0,       1040,       1040,        1,    21600, 0x0e771127
+0,       1080,       1080,        1,    21600, 0x37bf0b95
+0,       1120,       1120,        1,    21600, 0x30e10a77
+0,       1160,       1160,        1,    21600, 0x1a48288a
+0,       1200,       1200,        1,    21600, 0xf43c6770
+0,       1240,       1240,        1,    21600, 0x3c43ae68
+0,       1280,       1280,        1,    21600, 0x04dc0949
+0,       1320,       1320,        1,    21600, 0x7920758d
+0,       1360,       1360,        1,    21600, 0x6c12bab5
+0,       1400,       1400,        1,    21600, 0x1ac23706
+0,       1440,       1440,        1,    21600, 0x7a95cb5f
+0,       1480,       1480,        1,    21600, 0xf1bfbb46
+0,       1520,       1520,        1,    21600, 0x773d1d0c
+0,       1560,       1560,        1,    21600, 0x2e7bea65
+0,       1600,       1600,        1,    21600, 0xdb1a086f
+0,       1640,       1640,        1,    21600, 0x5b36b78d
+0,       1680,       1680,        1,    21600, 0x7b533ca6
+0,       1720,       1720,        1,    21600, 0x65d75105
+0,       1760,       1760,        1,    21600, 0xfe6f6207
+0,       1800,       1800,        1,    21600, 0x44c4ce57
+0,       1840,       1840,        1,    21600, 0x220f3dae
+0,       1880,       1880,        1,    21600, 0xb4d20ffb
+0,       1920,       1920,        1,    21600, 0x8907ad72
+0,       1960,       1960,        1,    21600, 0xc6418998
+0,       2000,       2000,        1,    21600, 0x395b6670
+0,       2040,       2040,        1,    21600, 0x83495b88
+0,       2080,       2080,        1,    21600, 0x8920d683
+0,       2120,       2120,        1,    21600, 0xd7fc64ea
+0,       2160,       2160,        1,    21600, 0x21a3b222
+0,       2200,       2200,        1,    21600, 0xc11f2dbd
+0,       2240,       2240,        1,    21600, 0xd1d5495d
+0,       2280,       2280,        1,    21600, 0x70f2de20
+0,       2320,       2320,        1,    21600, 0x10adc9a9
+0,       2360,       2360,        1,    21600, 0xf713c0ec
+0,       2400,       2400,        1,    21600, 0xa346b3fe
+0,       2440,       2440,        1,    21600, 0x7945c29b
+0,       2480,       2480,        1,    21600, 0xb07ceb91
+0,       2520,       2520,        1,    21600, 0xe1eaf9ef
+0,       2560,       2560,        1,    21600, 0x6fa915c7
+0,       2600,       2600,        1,    21600, 0x61952055
+0,       2640,       2640,        1,    21600, 0x4bca2382
+0,       2680,       2680,        1,    21600, 0x36161fe2
+0,       2720,       2720,        1,    21600, 0xf93a28f7
+0,       2760,       2760,        1,    21600, 0xa02a3d47
+0,       2800,       2800,        1,    21600, 0x925b3609
+0,       2840,       2840,        1,    21600, 0x5b6941db
+0,       2880,       2880,        1,    21600, 0x33154a91
+0,       2920,       2920,        1,    21600, 0xb1d75c50
+0,       2960,       2960,        1,    21600, 0x1cb369bd
+0,       3000,       3000,        1,    21600, 0x3be4eff2
+0,       3040,       3040,        1,    21600, 0xbb89c301
+0,       3080,       3080,        1,    21600, 0xc7630d85
+0,       3120,       3120,        1,    21600, 0xf7441c67
+0,       3160,       3160,        1,    21600, 0xc23611ef
+0,       3200,       3200,        1,    21600, 0x840efb21
+0,       3240,       3240,        1,    21600, 0x7d470a0f
+0,       3280,       3280,        1,    21600, 0xfe093210
+0,       3320,       3320,        1,    21600, 0x0f3ea098
+0,       3360,       3360,        1,    21600, 0xcd72286f
+0,       3400,       3400,        1,    21600, 0x826f8030
+0,       3440,       3440,        1,    21600, 0xcda3ace8
+0,       3480,       3480,        1,    21600, 0x39cb4cd0
+0,       3520,       3520,        1,    21600, 0xa86a60ac
+0,       3560,       3560,        1,    21600, 0xcd32ed8e
+0,       3600,       3600,        1,    21600, 0x769b285d
+0,       3640,       3640,        1,    21600, 0x10234cd0
+0,       3680,       3680,        1,    21600, 0x951036b8
+0,       3720,       3720,        1,    21600, 0xaef248fa
+0,       3760,       3760,        1,    21600, 0x74e36e84
+0,       3800,       3800,        1,    21600, 0x3908531b
+0,       3840,       3840,        1,    21600, 0x342f2a9d
+0,       3880,       3880,        1,    21600, 0x291d58f3
+0,       3920,       3920,        1,    21600, 0xcf24b1e5
+0,       3960,       3960,        1,    21600, 0x3e7c7959
+0,       4000,       4000,        1,    21600, 0x6517e573
+0,       4040,       4040,        1,    21600, 0x304cc6db
+0,       4080,       4080,        1,    21600, 0x272895e4
+0,       4120,       4120,        1,    21600, 0x52325837
+0,       4160,       4160,        1,    21600, 0xd01344bd
+0,       4200,       4200,        1,    21600, 0xd25a370b
+0,       4240,       4240,        1,    21600, 0x274e0ae9
+0,       4280,       4280,        1,    21600, 0x6f66138f
+0,       4320,       4320,        1,    21600, 0xd35a0f60
+0,       4360,       4360,        1,    21600, 0xe0610863
+0,       4400,       4400,        1,    21600, 0x920b05fb
+0,       4440,       4440,        1,    21600, 0x5befe39d
+0,       4480,       4480,        1,    21600, 0xd167bd58
+0,       4520,       4520,        1,    21600, 0x653ac504
+0,       4560,       4560,        1,    21600, 0x8372c6d7
+0,       4600,       4600,        1,    21600, 0x0302c276
+0,       4640,       4640,        1,    21600, 0xa176b694
+0,       4680,       4680,        1,    21600, 0x4c2e935a
+0,       4720,       4720,        1,    21600, 0xf7ea844e
+0,       4760,       4760,        1,    21600, 0x76d6c07b
+0,       4800,       4800,        1,    21600, 0x0a14d610
+0,       4840,       4840,        1,    21600, 0x0ec9f3f3
+0,       4880,       4880,        1,    21600, 0xdc90f6ea
+0,       4920,       4920,        1,    21600, 0xc841f9ef
+0,       4960,       4960,        1,    21600, 0x7ab5f9b9
+0,       5000,       5000,        1,    21600, 0xda40f3c2
+0,       5040,       5040,        1,    21600, 0x0040fb72
+0,       5080,       5080,        1,    21600, 0x705b0786
+0,       5120,       5120,        1,    21600, 0x26d5198d
+0,       5160,       5160,        1,    21600, 0x6f5153ad
+0,       5200,       5200,        1,    21600, 0x9f26624b
+0,       5240,       5240,        1,    21600, 0x0d3ea7af
+0,       5280,       5280,        1,    21600, 0xb957ca79
+0,       5320,       5320,        1,    21600, 0x03a60612
+0,       5360,       5360,        1,    21600, 0x3ddc4ff1
+0,       5400,       5400,        1,    21600, 0x8fe5697f
+0,       5440,       5440,        1,    21600, 0x3d199b09
+0,       5480,       5480,        1,    21600, 0x97e2b504
+0,       5520,       5520,        1,    21600, 0x7563f784
+0,       5560,       5560,        1,    21600, 0x9a473879
+0,       5600,       5600,        1,    21600, 0x2e2054e5
+0,       5640,       5640,        1,    21600, 0x06b3658b
+0,       5680,       5680,        1,    21600, 0xa37ee249
+0,       5720,       5720,        1,    21600, 0xa527efa1
+0,       5760,       5760,        1,    21600, 0x12791532
+0,       5800,       5800,        1,    21600, 0xc5350145
+0,       5840,       5840,        1,    21600, 0xcd44f1ac
+0,       5880,       5880,        1,    21600, 0xe610edfb
+0,       5920,       5920,        1,    21600, 0x5642f672
+0,       5960,       5960,        1,    21600, 0xf2bc3e5b
diff --git a/tests/ref/fate/svq3 b/tests/ref/fate/svq3
index 073d10b..141300a 100644
--- a/tests/ref/fate/svq3
+++ b/tests/ref/fate/svq3
@@ -1,181 +1,181 @@
-#tb 0: 1/30
+#tb 0: 1/600
 0,          0,          0,        1,   115200, 0x2c810465
-0,          1,          1,        1,   115200, 0x010b5765
-0,          2,          2,        1,   115200, 0x2be11a4e
-0,          3,          3,        1,   115200, 0x99445d06
-0,          4,          4,        1,   115200, 0x6b54d83c
-0,          5,          5,        1,   115200, 0x3832b76a
-0,          6,          6,        1,   115200, 0x3832b76a
-0,          7,          7,        1,   115200, 0xe18385db
-0,          8,          8,        1,   115200, 0x847d4bf0
-0,          9,          9,        1,   115200, 0x0d650f50
-0,         10,         10,        1,   115200, 0x4b85c44c
-0,         11,         11,        1,   115200, 0xce1927a6
-0,         12,         12,        1,   115200, 0x89353747
-0,         13,         13,        1,   115200, 0x58da43f2
-0,         14,         14,        1,   115200, 0xee9a4eef
-0,         15,         15,        1,   115200, 0xce9453d9
-0,         16,         16,        1,   115200, 0x804a5eb0
-0,         17,         17,        1,   115200, 0xb3d46605
-0,         18,         18,        1,   115200, 0x45b5668e
-0,         19,         19,        1,   115200, 0xdd0d4c5a
-0,         20,         20,        1,   115200, 0x99101301
-0,         21,         21,        1,   115200, 0xf0c3f272
-0,         22,         22,        1,   115200, 0xea21f8b1
-0,         23,         23,        1,   115200, 0xd8e7fbb1
-0,         24,         24,        1,   115200, 0x89d90aa1
-0,         25,         25,        1,   115200, 0x882e19da
-0,         26,         26,        1,   115200, 0xfc0f2709
-0,         27,         27,        1,   115200, 0x9b732f3f
-0,         28,         28,        1,   115200, 0xec453cda
-0,         29,         29,        1,   115200, 0xa77e4989
-0,         30,         30,        1,   115200, 0xad935834
-0,         31,         31,        1,   115200, 0x3a5a6177
-0,         32,         32,        1,   115200, 0xd3c07999
-0,         33,         33,        1,   115200, 0xfad388dd
-0,         34,         34,        1,   115200, 0xaf6e9520
-0,         35,         35,        1,   115200, 0xdb64a4b3
-0,         36,         36,        1,   115200, 0xc6f9b49e
-0,         37,         37,        1,   115200, 0x4446c315
-0,         38,         38,        1,   115200, 0x660bd01c
-0,         39,         39,        1,   115200, 0x963fdd7d
-0,         40,         40,        1,   115200, 0x8733e7b3
-0,         41,         41,        1,   115200, 0x41aaf1d5
-0,         42,         42,        1,   115200, 0xa803fd81
-0,         43,         43,        1,   115200, 0xe2b4077f
-0,         44,         44,        1,   115200, 0xfe6707cb
-0,         45,         45,        1,   115200, 0x027c122d
-0,         46,         46,        1,   115200, 0xbcb81ea8
-0,         47,         47,        1,   115200, 0xd2ac2405
-0,         48,         48,        1,   115200, 0x3d893006
-0,         49,         49,        1,   115200, 0xbdcc3ba8
-0,         50,         50,        1,   115200, 0x83ed4c6b
-0,         51,         51,        1,   115200, 0x69ee5e7c
-0,         52,         52,        1,   115200, 0xfe317411
-0,         53,         53,        1,   115200, 0x849e84e6
-0,         54,         54,        1,   115200, 0x040f945f
-0,         55,         55,        1,   115200, 0x6481ac89
-0,         56,         56,        1,   115200, 0x8a48be9e
-0,         57,         57,        1,   115200, 0xb162ce94
-0,         58,         58,        1,   115200, 0x178dd69a
-0,         59,         59,        1,   115200, 0x64fdecaa
-0,         60,         60,        1,   115200, 0x4b51297e
-0,         61,         61,        1,   115200, 0x3d39a1ae
-0,         62,         62,        1,   115200, 0x900fd939
-0,         63,         63,        1,   115200, 0x7704fb19
-0,         64,         64,        1,   115200, 0xa426137e
-0,         65,         65,        1,   115200, 0x9a112706
-0,         66,         66,        1,   115200, 0x294931f7
-0,         67,         67,        1,   115200, 0x0d0e4372
-0,         68,         68,        1,   115200, 0x33bd50e4
-0,         69,         69,        1,   115200, 0x9c86e3e2
-0,         70,         70,        1,   115200, 0x714af5d5
-0,         71,         71,        1,   115200, 0xc5f9fcd0
-0,         72,         72,        1,   115200, 0x184602bb
-0,         73,         73,        1,   115200, 0x6958e9e6
-0,         74,         74,        1,   115200, 0x5a214952
-0,         75,         75,        1,   115200, 0x706cca0e
-0,         76,         76,        1,   115200, 0x67689363
-0,         77,         77,        1,   115200, 0x459f410c
-0,         78,         78,        1,   115200, 0xa8f4c365
-0,         79,         79,        1,   115200, 0xf1fc50c5
-0,         80,         80,        1,   115200, 0xc22af545
-0,         81,         81,        1,   115200, 0xd39802a2
-0,         82,         82,        1,   115200, 0xb76c04b6
-0,         83,         83,        1,   115200, 0x7a548db4
-0,         84,         84,        1,   115200, 0x79e56765
-0,         85,         85,        1,   115200, 0x3f273a17
-0,         86,         86,        1,   115200, 0xe04366db
-0,         87,         87,        1,   115200, 0x8e10939b
-0,         88,         88,        1,   115200, 0x49220ea2
-0,         89,         89,        1,   115200, 0x35361889
-0,         90,         90,        1,   115200, 0x9b20bdfa
-0,         91,         91,        1,   115200, 0x5d472eaf
-0,         92,         92,        1,   115200, 0xeda43081
-0,         93,         93,        1,   115200, 0x59bae8b4
-0,         94,         94,        1,   115200, 0xf126d6a4
-0,         95,         95,        1,   115200, 0x18106464
-0,         96,         96,        1,   115200, 0x85530c73
-0,         97,         97,        1,   115200, 0xcef32c78
-0,         98,         98,        1,   115200, 0xfd6233a0
-0,         99,         99,        1,   115200, 0xae9d6fc3
-0,        100,        100,        1,   115200, 0x3d0cce10
-0,        101,        101,        1,   115200, 0xfce5f124
-0,        102,        102,        1,   115200, 0x90b10802
-0,        103,        103,        1,   115200, 0xeea44201
-0,        104,        104,        1,   115200, 0x1cefb56d
-0,        105,        105,        1,   115200, 0xd6daa0b1
-0,        106,        106,        1,   115200, 0xd700cef4
-0,        107,        107,        1,   115200, 0x36dbf58f
-0,        108,        108,        1,   115200, 0xdb20d060
-0,        109,        109,        1,   115200, 0x5ca61fd5
-0,        110,        110,        1,   115200, 0x4f271361
-0,        111,        111,        1,   115200, 0xcaf03743
-0,        112,        112,        1,   115200, 0x520f351a
-0,        113,        113,        1,   115200, 0x40bc7b89
-0,        114,        114,        1,   115200, 0xd0af0b08
-0,        115,        115,        1,   115200, 0x6a45290c
-0,        116,        116,        1,   115200, 0x57210c14
-0,        117,        117,        1,   115200, 0xc1e233f9
-0,        118,        118,        1,   115200, 0x96fdfc54
-0,        119,        119,        1,   115200, 0x43a8359c
-0,        120,        120,        1,   115200, 0xd493bfde
-0,        121,        121,        1,   115200, 0xd5339d13
-0,        122,        122,        1,   115200, 0x7542baa0
-0,        123,        123,        1,   115200, 0x268d2cb9
-0,        124,        124,        1,   115200, 0xaf3888bb
-0,        125,        125,        1,   115200, 0xb82f520a
-0,        126,        126,        1,   115200, 0x0feb2981
-0,        127,        127,        1,   115200, 0x45314b58
-0,        128,        128,        1,   115200, 0xb26a193a
-0,        129,        129,        1,   115200, 0xdfdffc38
-0,        130,        130,        1,   115200, 0xec6a55f5
-0,        131,        131,        1,   115200, 0xf6e35716
-0,        132,        132,        1,   115200, 0x5ce8544e
-0,        133,        133,        1,   115200, 0x3e38ddce
-0,        134,        134,        1,   115200, 0x964a2006
-0,        135,        135,        1,   115200, 0xaba138d6
-0,        136,        136,        1,   115200, 0x2f46949c
-0,        137,        137,        1,   115200, 0xbdbdb587
-0,        138,        138,        1,   115200, 0x1bf11e1d
-0,        139,        139,        1,   115200, 0x2632f558
-0,        140,        140,        1,   115200, 0x0e58078b
-0,        141,        141,        1,   115200, 0x2ab2f9be
-0,        142,        142,        1,   115200, 0x9205f1d8
-0,        143,        143,        1,   115200, 0x6a4bd949
-0,        144,        144,        1,   115200, 0xedc1552f
-0,        145,        145,        1,   115200, 0x0a60974d
-0,        146,        146,        1,   115200, 0xe1a1400e
-0,        147,        147,        1,   115200, 0x45f06952
-0,        148,        148,        1,   115200, 0xc5163125
-0,        149,        149,        1,   115200, 0x151da156
-0,        150,        150,        1,   115200, 0x3f34b048
-0,        151,        151,        1,   115200, 0xcf7c1e5d
-0,        152,        152,        1,   115200, 0xed9c4e1c
-0,        153,        153,        1,   115200, 0x47e06453
-0,        154,        154,        1,   115200, 0xc8ce6f19
-0,        155,        155,        1,   115200, 0xac619619
-0,        156,        156,        1,   115200, 0x64711e2d
-0,        157,        157,        1,   115200, 0x1f502b52
-0,        158,        158,        1,   115200, 0x39592c9d
-0,        159,        159,        1,   115200, 0x7dffb901
-0,        160,        160,        1,   115200, 0xc75fa3ce
-0,        161,        161,        1,   115200, 0x625bc977
-0,        162,        162,        1,   115200, 0x15c7fda3
-0,        163,        163,        1,   115200, 0x6e5d35b5
-0,        164,        164,        1,   115200, 0xf847cf88
-0,        165,        165,        1,   115200, 0xc10867fe
-0,        166,        166,        1,   115200, 0xae07fbfc
-0,        167,        167,        1,   115200, 0xc1571542
-0,        168,        168,        1,   115200, 0x4c7d5602
-0,        169,        169,        1,   115200, 0xbe7045aa
-0,        170,        170,        1,   115200, 0xc8b4835b
-0,        171,        171,        1,   115200, 0xf9b7d427
-0,        172,        172,        1,   115200, 0x7fa7c112
-0,        173,        173,        1,   115200, 0xe0105feb
-0,        174,        174,        1,   115200, 0x70784740
-0,        175,        175,        1,   115200, 0xa6801ef5
-0,        176,        176,        1,   115200, 0x9cf35921
-0,        177,        177,        1,   115200, 0x4d956630
-0,        178,        178,        1,   115200, 0x717a25c1
-0,        179,        179,        1,   115200, 0x8f5e39de
+0,         20,         20,        1,   115200, 0x010b5765
+0,         40,         40,        1,   115200, 0x2be11a4e
+0,         60,         60,        1,   115200, 0x99445d06
+0,         80,         80,        1,   115200, 0x6b54d83c
+0,        100,        100,        1,   115200, 0x3832b76a
+0,        120,        120,        1,   115200, 0x3832b76a
+0,        140,        140,        1,   115200, 0xe18385db
+0,        160,        160,        1,   115200, 0x847d4bf0
+0,        180,        180,        1,   115200, 0x0d650f50
+0,        200,        200,        1,   115200, 0x4b85c44c
+0,        220,        220,        1,   115200, 0xce1927a6
+0,        240,        240,        1,   115200, 0x89353747
+0,        260,        260,        1,   115200, 0x58da43f2
+0,        280,        280,        1,   115200, 0xee9a4eef
+0,        300,        300,        1,   115200, 0xce9453d9
+0,        320,        320,        1,   115200, 0x804a5eb0
+0,        340,        340,        1,   115200, 0xb3d46605
+0,        360,        360,        1,   115200, 0x45b5668e
+0,        380,        380,        1,   115200, 0xdd0d4c5a
+0,        400,        400,        1,   115200, 0x99101301
+0,        420,        420,        1,   115200, 0xf0c3f272
+0,        440,        440,        1,   115200, 0xea21f8b1
+0,        460,        460,        1,   115200, 0xd8e7fbb1
+0,        480,        480,        1,   115200, 0x89d90aa1
+0,        500,        500,        1,   115200, 0x882e19da
+0,        520,        520,        1,   115200, 0xfc0f2709
+0,        540,        540,        1,   115200, 0x9b732f3f
+0,        560,        560,        1,   115200, 0xec453cda
+0,        580,        580,        1,   115200, 0xa77e4989
+0,        600,        600,        1,   115200, 0xad935834
+0,        620,        620,        1,   115200, 0x3a5a6177
+0,        640,        640,        1,   115200, 0xd3c07999
+0,        660,        660,        1,   115200, 0xfad388dd
+0,        680,        680,        1,   115200, 0xaf6e9520
+0,        700,        700,        1,   115200, 0xdb64a4b3
+0,        720,        720,        1,   115200, 0xc6f9b49e
+0,        740,        740,        1,   115200, 0x4446c315
+0,        760,        760,        1,   115200, 0x660bd01c
+0,        780,        780,        1,   115200, 0x963fdd7d
+0,        800,        800,        1,   115200, 0x8733e7b3
+0,        820,        820,        1,   115200, 0x41aaf1d5
+0,        840,        840,        1,   115200, 0xa803fd81
+0,        860,        860,        1,   115200, 0xe2b4077f
+0,        880,        880,        1,   115200, 0xfe6707cb
+0,        900,        900,        1,   115200, 0x027c122d
+0,        920,        920,        1,   115200, 0xbcb81ea8
+0,        940,        940,        1,   115200, 0xd2ac2405
+0,        960,        960,        1,   115200, 0x3d893006
+0,        980,        980,        1,   115200, 0xbdcc3ba8
+0,       1000,       1000,        1,   115200, 0x83ed4c6b
+0,       1020,       1020,        1,   115200, 0x69ee5e7c
+0,       1040,       1040,        1,   115200, 0xfe317411
+0,       1060,       1060,        1,   115200, 0x849e84e6
+0,       1080,       1080,        1,   115200, 0x040f945f
+0,       1100,       1100,        1,   115200, 0x6481ac89
+0,       1120,       1120,        1,   115200, 0x8a48be9e
+0,       1140,       1140,        1,   115200, 0xb162ce94
+0,       1160,       1160,        1,   115200, 0x178dd69a
+0,       1180,       1180,        1,   115200, 0x64fdecaa
+0,       1200,       1200,        1,   115200, 0x4b51297e
+0,       1220,       1220,        1,   115200, 0x3d39a1ae
+0,       1240,       1240,        1,   115200, 0x900fd939
+0,       1260,       1260,        1,   115200, 0x7704fb19
+0,       1280,       1280,        1,   115200, 0xa426137e
+0,       1300,       1300,        1,   115200, 0x9a112706
+0,       1320,       1320,        1,   115200, 0x294931f7
+0,       1340,       1340,        1,   115200, 0x0d0e4372
+0,       1360,       1360,        1,   115200, 0x33bd50e4
+0,       1380,       1380,        1,   115200, 0x9c86e3e2
+0,       1400,       1400,        1,   115200, 0x714af5d5
+0,       1420,       1420,        1,   115200, 0xc5f9fcd0
+0,       1440,       1440,        1,   115200, 0x184602bb
+0,       1460,       1460,        1,   115200, 0x6958e9e6
+0,       1480,       1480,        1,   115200, 0x5a214952
+0,       1500,       1500,        1,   115200, 0x706cca0e
+0,       1520,       1520,        1,   115200, 0x67689363
+0,       1540,       1540,        1,   115200, 0x459f410c
+0,       1560,       1560,        1,   115200, 0xa8f4c365
+0,       1580,       1580,        1,   115200, 0xf1fc50c5
+0,       1600,       1600,        1,   115200, 0xc22af545
+0,       1620,       1620,        1,   115200, 0xd39802a2
+0,       1640,       1640,        1,   115200, 0xb76c04b6
+0,       1660,       1660,        1,   115200, 0x7a548db4
+0,       1680,       1680,        1,   115200, 0x79e56765
+0,       1700,       1700,        1,   115200, 0x3f273a17
+0,       1720,       1720,        1,   115200, 0xe04366db
+0,       1740,       1740,        1,   115200, 0x8e10939b
+0,       1760,       1760,        1,   115200, 0x49220ea2
+0,       1780,       1780,        1,   115200, 0x35361889
+0,       1800,       1800,        1,   115200, 0x9b20bdfa
+0,       1820,       1820,        1,   115200, 0x5d472eaf
+0,       1840,       1840,        1,   115200, 0xeda43081
+0,       1860,       1860,        1,   115200, 0x59bae8b4
+0,       1880,       1880,        1,   115200, 0xf126d6a4
+0,       1900,       1900,        1,   115200, 0x18106464
+0,       1920,       1920,        1,   115200, 0x85530c73
+0,       1940,       1940,        1,   115200, 0xcef32c78
+0,       1960,       1960,        1,   115200, 0xfd6233a0
+0,       1980,       1980,        1,   115200, 0xae9d6fc3
+0,       2000,       2000,        1,   115200, 0x3d0cce10
+0,       2020,       2020,        1,   115200, 0xfce5f124
+0,       2040,       2040,        1,   115200, 0x90b10802
+0,       2060,       2060,        1,   115200, 0xeea44201
+0,       2080,       2080,        1,   115200, 0x1cefb56d
+0,       2100,       2100,        1,   115200, 0xd6daa0b1
+0,       2120,       2120,        1,   115200, 0xd700cef4
+0,       2140,       2140,        1,   115200, 0x36dbf58f
+0,       2160,       2160,        1,   115200, 0xdb20d060
+0,       2180,       2180,        1,   115200, 0x5ca61fd5
+0,       2200,       2200,        1,   115200, 0x4f271361
+0,       2220,       2220,        1,   115200, 0xcaf03743
+0,       2240,       2240,        1,   115200, 0x520f351a
+0,       2260,       2260,        1,   115200, 0x40bc7b89
+0,       2280,       2280,        1,   115200, 0xd0af0b08
+0,       2300,       2300,        1,   115200, 0x6a45290c
+0,       2320,       2320,        1,   115200, 0x57210c14
+0,       2340,       2340,        1,   115200, 0xc1e233f9
+0,       2360,       2360,        1,   115200, 0x96fdfc54
+0,       2380,       2380,        1,   115200, 0x43a8359c
+0,       2400,       2400,        1,   115200, 0xd493bfde
+0,       2420,       2420,        1,   115200, 0xd5339d13
+0,       2440,       2440,        1,   115200, 0x7542baa0
+0,       2460,       2460,        1,   115200, 0x268d2cb9
+0,       2480,       2480,        1,   115200, 0xaf3888bb
+0,       2500,       2500,        1,   115200, 0xb82f520a
+0,       2520,       2520,        1,   115200, 0x0feb2981
+0,       2540,       2540,        1,   115200, 0x45314b58
+0,       2560,       2560,        1,   115200, 0xb26a193a
+0,       2580,       2580,        1,   115200, 0xdfdffc38
+0,       2600,       2600,        1,   115200, 0xec6a55f5
+0,       2620,       2620,        1,   115200, 0xf6e35716
+0,       2640,       2640,        1,   115200, 0x5ce8544e
+0,       2660,       2660,        1,   115200, 0x3e38ddce
+0,       2680,       2680,        1,   115200, 0x964a2006
+0,       2700,       2700,        1,   115200, 0xaba138d6
+0,       2720,       2720,        1,   115200, 0x2f46949c
+0,       2740,       2740,        1,   115200, 0xbdbdb587
+0,       2760,       2760,        1,   115200, 0x1bf11e1d
+0,       2780,       2780,        1,   115200, 0x2632f558
+0,       2800,       2800,        1,   115200, 0x0e58078b
+0,       2820,       2820,        1,   115200, 0x2ab2f9be
+0,       2840,       2840,        1,   115200, 0x9205f1d8
+0,       2860,       2860,        1,   115200, 0x6a4bd949
+0,       2880,       2880,        1,   115200, 0xedc1552f
+0,       2900,       2900,        1,   115200, 0x0a60974d
+0,       2920,       2920,        1,   115200, 0xe1a1400e
+0,       2940,       2940,        1,   115200, 0x45f06952
+0,       2960,       2960,        1,   115200, 0xc5163125
+0,       2980,       2980,        1,   115200, 0x151da156
+0,       3000,       3000,        1,   115200, 0x3f34b048
+0,       3020,       3020,        1,   115200, 0xcf7c1e5d
+0,       3040,       3040,        1,   115200, 0xed9c4e1c
+0,       3060,       3060,        1,   115200, 0x47e06453
+0,       3080,       3080,        1,   115200, 0xc8ce6f19
+0,       3100,       3100,        1,   115200, 0xac619619
+0,       3120,       3120,        1,   115200, 0x64711e2d
+0,       3140,       3140,        1,   115200, 0x1f502b52
+0,       3160,       3160,        1,   115200, 0x39592c9d
+0,       3180,       3180,        1,   115200, 0x7dffb901
+0,       3200,       3200,        1,   115200, 0xc75fa3ce
+0,       3220,       3220,        1,   115200, 0x625bc977
+0,       3240,       3240,        1,   115200, 0x15c7fda3
+0,       3260,       3260,        1,   115200, 0x6e5d35b5
+0,       3280,       3280,        1,   115200, 0xf847cf88
+0,       3300,       3300,        1,   115200, 0xc10867fe
+0,       3320,       3320,        1,   115200, 0xae07fbfc
+0,       3340,       3340,        1,   115200, 0xc1571542
+0,       3360,       3360,        1,   115200, 0x4c7d5602
+0,       3380,       3380,        1,   115200, 0xbe7045aa
+0,       3400,       3400,        1,   115200, 0xc8b4835b
+0,       3420,       3420,        1,   115200, 0xf9b7d427
+0,       3440,       3440,        1,   115200, 0x7fa7c112
+0,       3460,       3460,        1,   115200, 0xe0105feb
+0,       3480,       3480,        1,   115200, 0x70784740
+0,       3500,       3500,        1,   115200, 0xa6801ef5
+0,       3520,       3520,        1,   115200, 0x9cf35921
+0,       3540,       3540,        1,   115200, 0x4d956630
+0,       3560,       3560,        1,   115200, 0x717a25c1
+0,       3580,       3580,        1,   115200, 0x8f5e39de
diff --git a/tests/ref/fate/txd-16bpp b/tests/ref/fate/txd-16bpp
index 9522873..3a23c0b 100644
--- a/tests/ref/fate/txd-16bpp
+++ b/tests/ref/fate/txd-16bpp
@@ -1,12 +1,12 @@
-#tb 0: 1/5
-0,          0,          0,        1,    16384, 0x213f9ea8
-0,          1,          1,        1,    16384, 0x8185fdb1
-0,          2,          2,        1,    16384, 0xf03581d1
-0,          3,          3,        1,    16384, 0x629cd573
-0,          4,          4,        1,    16384, 0xfe7a5b63
-0,          5,          5,        1,    16384, 0x4afc05b2
-0,          6,          6,        1,    16384, 0x074b8515
-0,          7,          7,        1,    16384, 0x17fde900
-0,          8,          8,        1,    16384, 0x831bac76
-0,          9,          9,        1,    16384, 0x2fb579f3
-0,         10,         10,        1,    16384, 0x68762bed
+#tb 0: 1/90000
+0,          0,          0,        0,    16384, 0x213f9ea8
+0,      18000,      18000,        0,    16384, 0x8185fdb1
+0,      36000,      36000,        0,    16384, 0xf03581d1
+0,      54000,      54000,        0,    16384, 0x629cd573
+0,      72000,      72000,        0,    16384, 0xfe7a5b63
+0,      90000,      90000,        0,    16384, 0x4afc05b2
+0,     108000,     108000,        0,    16384, 0x074b8515
+0,     126000,     126000,        0,    16384, 0x17fde900
+0,     144000,     144000,        0,    16384, 0x831bac76
+0,     162000,     162000,        0,    16384, 0x2fb579f3
+0,     180000,     180000,        0,    16384, 0x68762bed
diff --git a/tests/ref/fate/txd-pal8 b/tests/ref/fate/txd-pal8
index 61fee80..3f0aab2 100644
--- a/tests/ref/fate/txd-pal8
+++ b/tests/ref/fate/txd-pal8
@@ -1,2 +1,2 @@
-#tb 0: 1/5
-0,          0,          0,        1,   786432, 0x56654d61
+#tb 0: 1/90000
+0,          0,          0,        0,   786432, 0x56654d61
diff --git a/tests/ref/fate/vc1-ism b/tests/ref/fate/vc1-ism
index 7d3b0ab..e8117ac 100644
--- a/tests/ref/fate/vc1-ism
+++ b/tests/ref/fate/vc1-ism
@@ -1,121 +1,121 @@
-#tb 0: 1/24
-0,          0,          0,        1,    37440, 0xd1bc5235
-0,          2,          2,        1,    37440, 0x158e6167
-0,          3,          3,        1,    37440, 0x0faa4481
-0,          4,          4,        1,    37440, 0x427158c5
-0,          5,          5,        1,    37440, 0x4eb53ac6
-0,          6,          6,        1,    37440, 0x99304eea
-0,          7,          7,        1,    37440, 0xcc554a6f
-0,          8,          8,        1,    37440, 0xabeb6c35
-0,          9,          9,        1,    37440, 0xddfc7e18
-0,         10,         10,        1,    37440, 0xaa79b504
-0,         11,         11,        1,    37440, 0x5cb1c839
-0,         12,         12,        1,    37440, 0x7e36ecca
-0,         13,         13,        1,    37440, 0xf486f425
-0,         14,         14,        1,    37440, 0xf1b4138f
-0,         15,         15,        1,    37440, 0x966f1a49
-0,         16,         16,        1,    37440, 0x5eff21da
-0,         17,         17,        1,    37440, 0x333f39b1
-0,         18,         18,        1,    37440, 0x62e5963e
-0,         19,         19,        1,    37440, 0x26930671
-0,         20,         20,        1,    37440, 0x27b4bb6c
-0,         21,         21,        1,    37440, 0xdbd07766
-0,         22,         22,        1,    37440, 0x04260104
-0,         23,         23,        1,    37440, 0x9b1e078b
-0,         24,         24,        1,    37440, 0xdf4e2474
-0,         25,         25,        1,    37440, 0x57d44986
-0,         26,         26,        1,    37440, 0x8780e34c
-0,         27,         27,        1,    37440, 0xf80c8bc0
-0,         28,         28,        1,    37440, 0x630a7583
-0,         29,         29,        1,    37440, 0x235ae089
-0,         30,         30,        1,    37440, 0x984b8f0e
-0,         31,         31,        1,    37440, 0x865cf592
-0,         32,         32,        1,    37440, 0x70f376f2
-0,         33,         33,        1,    37440, 0x8b30c035
-0,         34,         34,        1,    37440, 0xde772d79
-0,         35,         35,        1,    37440, 0x8e076be5
-0,         36,         36,        1,    37440, 0x3dc2bd9f
-0,         37,         37,        1,    37440, 0xb782eb67
-0,         38,         38,        1,    37440, 0x02025d73
-0,         39,         39,        1,    37440, 0x86bbbce8
-0,         40,         40,        1,    37440, 0xd6554f62
-0,         41,         41,        1,    37440, 0xb831b917
-0,         42,         42,        1,    37440, 0x80643560
-0,         43,         43,        1,    37440, 0x4ecf9afd
-0,         44,         44,        1,    37440, 0x9ce51e0b
-0,         45,         45,        1,    37440, 0x179466cd
-0,         46,         46,        1,    37440, 0x145fc900
-0,         47,         47,        1,    37440, 0xb1b50402
-0,         48,         48,        1,    37440, 0x0a87552a
-0,         49,         49,        1,    37440, 0x8f53821d
-0,         50,         50,        1,    37440, 0x1c07c825
-0,         51,         51,        1,    37440, 0x49dde82f
-0,         52,         52,        1,    37440, 0xb1a32605
-0,         53,         53,        1,    37440, 0x410f3cd5
-0,         54,         54,        1,    37440, 0xff5e6696
-0,         55,         55,        1,    37440, 0x96f678c9
-0,         56,         56,        1,    37440, 0x6c9e9e68
-0,         57,         57,        1,    37440, 0x79a2a655
-0,         58,         58,        1,    37440, 0xf237bd6c
-0,         59,         59,        1,    37440, 0x4051b611
-0,         60,         60,        1,    37440, 0xc7ccc918
-0,         61,         61,        1,    37440, 0xbd02c122
-0,         62,         62,        1,    37440, 0xacb3c881
-0,         63,         63,        1,    37440, 0x2abdb940
-0,         64,         64,        1,    37440, 0x19d5be85
-0,         65,         65,        1,    37440, 0xfa5fb1ba
-0,         66,         66,        1,    37440, 0xdae7a7aa
-0,         67,         67,        1,    37440, 0x6b0f9f69
-0,         68,         68,        1,    37440, 0x353e8201
-0,         69,         69,        1,    37440, 0xa21443aa
-0,         70,         70,        1,    37440, 0x66c8d7e0
-0,         71,         71,        1,    37440, 0xc332068e
-0,         72,         72,        1,    37440, 0x71431b9b
-0,         73,         73,        1,    37440, 0x392f15cb
-0,         74,         74,        1,    37440, 0x95a146bb
-0,         75,         75,        1,    37440, 0x7c51740a
-0,         76,         76,        1,    37440, 0xa3bdd43c
-0,         77,         77,        1,    37440, 0xa079f965
-0,         78,         78,        1,    37440, 0xa95423ea
-0,         79,         79,        1,    37440, 0xd1bd2c67
-0,         80,         80,        1,    37440, 0x6cf82844
-0,         81,         81,        1,    37440, 0xd401e128
-0,         82,         82,        1,    37440, 0x1f7db118
-0,         83,         83,        1,    37440, 0x2e0a65a9
-0,         84,         84,        1,    37440, 0x321c1c40
-0,         85,         85,        1,    37440, 0x95b2a127
-0,         86,         86,        1,    37440, 0xa1471f4b
-0,         87,         87,        1,    37440, 0x29d148c0
-0,         88,         88,        1,    37440, 0x24c07107
-0,         89,         89,        1,    37440, 0x0ead678d
-0,         90,         90,        1,    37440, 0xd0ca6495
-0,         91,         91,        1,    37440, 0x08f935ef
-0,         92,         92,        1,    37440, 0xb5ec3c38
-0,         93,         93,        1,    37440, 0xce371628
-0,         94,         94,        1,    37440, 0x68170812
-0,         95,         95,        1,    37440, 0xe222699e
-0,         96,         96,        1,    37440, 0xd688706c
-0,         97,         97,        1,    37440, 0x81a033f9
-0,         98,         98,        1,    37440, 0x28bd0fbf
-0,         99,         99,        1,    37440, 0xe36db7b2
-0,        100,        100,        1,    37440, 0x30559121
-0,        101,        101,        1,    37440, 0xbf2b5fc8
-0,        102,        102,        1,    37440, 0x4b427672
-0,        103,        103,        1,    37440, 0x0544b0b4
-0,        104,        104,        1,    37440, 0x38a70b06
-0,        105,        105,        1,    37440, 0x4ed62607
-0,        106,        106,        1,    37440, 0x6efe8ea6
-0,        107,        107,        1,    37440, 0x81197e11
-0,        108,        108,        1,    37440, 0xf4060050
-0,        109,        109,        1,    37440, 0xaf205f13
-0,        110,        110,        1,    37440, 0x5fa21382
-0,        111,        111,        1,    37440, 0x8627ad05
-0,        112,        112,        1,    37440, 0xf7130133
-0,        113,        113,        1,    37440, 0x76dea7ba
-0,        114,        114,        1,    37440, 0x1dbae1be
-0,        115,        115,        1,    37440, 0x74a933f7
-0,        116,        116,        1,    37440, 0xbdcd41a3
-0,        117,        117,        1,    37440, 0xf0fe8c1c
-0,        118,        118,        1,    37440, 0xc0036222
-0,        119,        119,        1,    37440, 0x3058385c
-0,        120,        120,        1,    37440, 0x68141016
+#tb 0: 1/10000000
+0,          0,          0,        0,    37440, 0xd1bc5235
+0,     840000,     840000,        0,    37440, 0x158e6167
+0,    1250000,    1250000,        0,    37440, 0x0faa4481
+0,    1670000,    1670000,        0,    37440, 0x427158c5
+0,    2090000,    2090000,        0,    37440, 0x4eb53ac6
+0,    2500000,    2500000,        0,    37440, 0x99304eea
+0,    2920000,    2920000,        0,    37440, 0xcc554a6f
+0,    3340000,    3340000,        0,    37440, 0xabeb6c35
+0,    3750000,    3750000,        0,    37440, 0xddfc7e18
+0,    4170000,    4170000,        0,    37440, 0xaa79b504
+0,    4590000,    4590000,        0,    37440, 0x5cb1c839
+0,    5000000,    5000000,        0,    37440, 0x7e36ecca
+0,    5420000,    5420000,        0,    37440, 0xf486f425
+0,    5840000,    5840000,        0,    37440, 0xf1b4138f
+0,    6250000,    6250000,        0,    37440, 0x966f1a49
+0,    6670000,    6670000,        0,    37440, 0x5eff21da
+0,    7090000,    7090000,        0,    37440, 0x333f39b1
+0,    7500000,    7500000,        0,    37440, 0x62e5963e
+0,    7920000,    7920000,        0,    37440, 0x26930671
+0,    8340000,    8340000,        0,    37440, 0x27b4bb6c
+0,    8750000,    8750000,        0,    37440, 0xdbd07766
+0,    9170000,    9170000,        0,    37440, 0x04260104
+0,    9590000,    9590000,        0,    37440, 0x9b1e078b
+0,   10000000,   10000000,        0,    37440, 0xdf4e2474
+0,   10420000,   10420000,        0,    37440, 0x57d44986
+0,   10840000,   10840000,        0,    37440, 0x8780e34c
+0,   11250000,   11250000,        0,    37440, 0xf80c8bc0
+0,   11670000,   11670000,        0,    37440, 0x630a7583
+0,   12090000,   12090000,        0,    37440, 0x235ae089
+0,   12500000,   12500000,        0,    37440, 0x984b8f0e
+0,   12920000,   12920000,        0,    37440, 0x865cf592
+0,   13340000,   13340000,        0,    37440, 0x70f376f2
+0,   13750000,   13750000,        0,    37440, 0x8b30c035
+0,   14170000,   14170000,        0,    37440, 0xde772d79
+0,   14590000,   14590000,        0,    37440, 0x8e076be5
+0,   15000000,   15000000,        0,    37440, 0x3dc2bd9f
+0,   15420000,   15420000,        0,    37440, 0xb782eb67
+0,   15840000,   15840000,        0,    37440, 0x02025d73
+0,   16250000,   16250000,        0,    37440, 0x86bbbce8
+0,   16670000,   16670000,        0,    37440, 0xd6554f62
+0,   17090000,   17090000,        0,    37440, 0xb831b917
+0,   17500000,   17500000,        0,    37440, 0x80643560
+0,   17920000,   17920000,        0,    37440, 0x4ecf9afd
+0,   18340000,   18340000,        0,    37440, 0x9ce51e0b
+0,   18750000,   18750000,        0,    37440, 0x179466cd
+0,   19170000,   19170000,        0,    37440, 0x145fc900
+0,   19590000,   19590000,        0,    37440, 0xb1b50402
+0,   20000000,   20000000,        0,    37440, 0x0a87552a
+0,   20420000,   20420000,        0,    37440, 0x8f53821d
+0,   20840000,   20840000,        0,    37440, 0x1c07c825
+0,   21250000,   21250000,        0,    37440, 0x49dde82f
+0,   21670000,   21670000,        0,    37440, 0xb1a32605
+0,   22090000,   22090000,        0,    37440, 0x410f3cd5
+0,   22500000,   22500000,        0,    37440, 0xff5e6696
+0,   22920000,   22920000,        0,    37440, 0x96f678c9
+0,   23340000,   23340000,        0,    37440, 0x6c9e9e68
+0,   23750000,   23750000,        0,    37440, 0x79a2a655
+0,   24170000,   24170000,        0,    37440, 0xf237bd6c
+0,   24590000,   24590000,        0,    37440, 0x4051b611
+0,   25000000,   25000000,        0,    37440, 0xc7ccc918
+0,   25420000,   25420000,        0,    37440, 0xbd02c122
+0,   25840000,   25840000,        0,    37440, 0xacb3c881
+0,   26250000,   26250000,        0,    37440, 0x2abdb940
+0,   26670000,   26670000,        0,    37440, 0x19d5be85
+0,   27090000,   27090000,        0,    37440, 0xfa5fb1ba
+0,   27500000,   27500000,        0,    37440, 0xdae7a7aa
+0,   27920000,   27920000,        0,    37440, 0x6b0f9f69
+0,   28340000,   28340000,        0,    37440, 0x353e8201
+0,   28750000,   28750000,        0,    37440, 0xa21443aa
+0,   29170000,   29170000,        0,    37440, 0x66c8d7e0
+0,   29590000,   29590000,        0,    37440, 0xc332068e
+0,   30000000,   30000000,        0,    37440, 0x71431b9b
+0,   30420000,   30420000,        0,    37440, 0x392f15cb
+0,   30840000,   30840000,        0,    37440, 0x95a146bb
+0,   31250000,   31250000,        0,    37440, 0x7c51740a
+0,   31670000,   31670000,        0,    37440, 0xa3bdd43c
+0,   32090000,   32090000,        0,    37440, 0xa079f965
+0,   32500000,   32500000,        0,    37440, 0xa95423ea
+0,   32920000,   32920000,        0,    37440, 0xd1bd2c67
+0,   33340000,   33340000,        0,    37440, 0x6cf82844
+0,   33750000,   33750000,        0,    37440, 0xd401e128
+0,   34170000,   34170000,        0,    37440, 0x1f7db118
+0,   34590000,   34590000,        0,    37440, 0x2e0a65a9
+0,   35000000,   35000000,        0,    37440, 0x321c1c40
+0,   35420000,   35420000,        0,    37440, 0x95b2a127
+0,   35840000,   35840000,        0,    37440, 0xa1471f4b
+0,   36250000,   36250000,        0,    37440, 0x29d148c0
+0,   36670000,   36670000,        0,    37440, 0x24c07107
+0,   37090000,   37090000,        0,    37440, 0x0ead678d
+0,   37500000,   37500000,        0,    37440, 0xd0ca6495
+0,   37920000,   37920000,        0,    37440, 0x08f935ef
+0,   38340000,   38340000,        0,    37440, 0xb5ec3c38
+0,   38750000,   38750000,        0,    37440, 0xce371628
+0,   39170000,   39170000,        0,    37440, 0x68170812
+0,   39590000,   39590000,        0,    37440, 0xe222699e
+0,   40000000,   40000000,        0,    37440, 0xd688706c
+0,   40420000,   40420000,        0,    37440, 0x81a033f9
+0,   40840000,   40840000,        0,    37440, 0x28bd0fbf
+0,   41250000,   41250000,        0,    37440, 0xe36db7b2
+0,   41670000,   41670000,        0,    37440, 0x30559121
+0,   42090000,   42090000,        0,    37440, 0xbf2b5fc8
+0,   42500000,   42500000,        0,    37440, 0x4b427672
+0,   42920000,   42920000,        0,    37440, 0x0544b0b4
+0,   43340000,   43340000,        0,    37440, 0x38a70b06
+0,   43750000,   43750000,        0,    37440, 0x4ed62607
+0,   44170000,   44170000,        0,    37440, 0x6efe8ea6
+0,   44590000,   44590000,        0,    37440, 0x81197e11
+0,   45000000,   45000000,        0,    37440, 0xf4060050
+0,   45420000,   45420000,        0,    37440, 0xaf205f13
+0,   45840000,   45840000,        0,    37440, 0x5fa21382
+0,   46250000,   46250000,        0,    37440, 0x8627ad05
+0,   46670000,   46670000,        0,    37440, 0xf7130133
+0,   47090000,   47090000,        0,    37440, 0x76dea7ba
+0,   47500000,   47500000,        0,    37440, 0x1dbae1be
+0,   47920000,   47920000,        0,    37440, 0x74a933f7
+0,   48340000,   48340000,        0,    37440, 0xbdcd41a3
+0,   48750000,   48750000,        0,    37440, 0xf0fe8c1c
+0,   49170000,   49170000,        0,    37440, 0xc0036222
+0,   49590000,   49590000,        0,    37440, 0x3058385c
+0,   50006672,   50006672,        0,    37440, 0x68141016
diff --git a/tests/ref/fate/vp3-coeff-level64 b/tests/ref/fate/vp3-coeff-level64
index 4bfafaf..d6abb62 100644
--- a/tests/ref/fate/vp3-coeff-level64
+++ b/tests/ref/fate/vp3-coeff-level64
@@ -1,9 +1,9 @@
-#tb 0: 1/15
-0,          0,          0,        1,  4617600, 0x4ba6df50
-0,          1,          1,        1,  4617600, 0x419fdeaf
-0,          2,          2,        1,  4617600, 0xeb2edced
-0,          3,          3,        1,  4617600, 0xa2bb3a1a
-0,          4,          4,        1,  4617600, 0x411cfb36
-0,          5,          5,        1,  4617600, 0xb2dc22ed
-0,          6,          6,        1,  4617600, 0x236d23b5
-0,          7,          7,        1,  4617600, 0x7fef275e
+#tb 0: 1/1000
+0,          0,          0,        0,  4617600, 0x4ba6df50
+0,         66,         66,        0,  4617600, 0x419fdeaf
+0,        132,        132,        0,  4617600, 0xeb2edced
+0,        198,        198,        0,  4617600, 0xa2bb3a1a
+0,        264,        264,        0,  4617600, 0x411cfb36
+0,        330,        330,        0,  4617600, 0xb2dc22ed
+0,        396,        396,        0,  4617600, 0x236d23b5
+0,        462,        462,        0,  4617600, 0x7fef275e
diff --git a/tests/ref/fate/vp6a b/tests/ref/fate/vp6a
index de0518b..6ce8486 100644
--- a/tests/ref/fate/vp6a
+++ b/tests/ref/fate/vp6a
@@ -1,94 +1,94 @@
-#tb 0: 1/4
-0,          0,          0,        1,   135000, 0x9dceed6d
-0,          1,          1,        1,   135000, 0xcb87787f
-0,          2,          2,        1,   135000, 0xdb4361ce
-0,          3,          3,        1,   135000, 0xb8fd81c2
-0,          4,          4,        1,   135000, 0xbf86a7af
-0,          5,          5,        1,   135000, 0x2e7787e3
-0,          6,          6,        1,   135000, 0x6cec6ebd
-0,          7,          7,        1,   135000, 0xa4d08c07
-0,          8,          8,        1,   135000, 0x1be48faf
-0,          9,          9,        1,   135000, 0xf3cd8ede
-0,         10,         10,        1,   135000, 0x33ec8a49
-0,         11,         11,        1,   135000, 0x11e887ec
-0,         12,         12,        1,   135000, 0x3e215c25
-0,         13,         13,        1,   135000, 0x1a2cb3f8
-0,         14,         14,        1,   135000, 0x7fb0e48a
-0,         15,         15,        1,   135000, 0x749f3738
-0,         16,         16,        1,   135000, 0x686e78e9
-0,         17,         17,        1,   135000, 0x29515bc7
-0,         18,         18,        1,   135000, 0x987126bd
-0,         19,         19,        1,   135000, 0xdf77bb13
-0,         20,         20,        1,   135000, 0x5fb1468a
-0,         21,         21,        1,   135000, 0x06ea50ea
-0,         22,         22,        1,   135000, 0x7bd9c715
-0,         23,         23,        1,   135000, 0xdd6e6831
-0,         24,         24,        1,   135000, 0x0ee3760f
-0,         25,         25,        1,   135000, 0xc7984dc8
-0,         26,         26,        1,   135000, 0x7e385bff
-0,         27,         27,        1,   135000, 0xae155ab9
-0,         28,         28,        1,   135000, 0xc05ee8f7
-0,         29,         29,        1,   135000, 0x93de3392
-0,         30,         30,        1,   135000, 0xfe45b38b
-0,         31,         31,        1,   135000, 0xeb5ed72c
-0,         32,         32,        1,   135000, 0x0794cb57
-0,         33,         33,        1,   135000, 0x2578c6e5
-0,         34,         34,        1,   135000, 0x78486707
-0,         35,         35,        1,   135000, 0x41e1f0e6
-0,         36,         36,        1,   135000, 0x4508eb76
-0,         37,         37,        1,   135000, 0xd8c087f3
-0,         38,         38,        1,   135000, 0x1a8db89a
-0,         39,         39,        1,   135000, 0x6dbd90c6
-0,         40,         40,        1,   135000, 0x0845e400
-0,         41,         41,        1,   135000, 0xe8b02fc2
-0,         42,         42,        1,   135000, 0x8007d813
-0,         43,         43,        1,   135000, 0xdfb04e69
-0,         44,         44,        1,   135000, 0x5746cf71
-0,         45,         45,        1,   135000, 0xe510299f
-0,         46,         46,        1,   135000, 0xeea0c829
-0,         47,         47,        1,   135000, 0x7c0578ab
-0,         48,         48,        1,   135000, 0xb1569ce9
-0,         49,         49,        1,   135000, 0x6c233986
-0,         50,         50,        1,   135000, 0x95b77f3d
-0,         51,         51,        1,   135000, 0xfc368d80
-0,         52,         52,        1,   135000, 0x5c73b064
-0,         53,         53,        1,   135000, 0x2206da8d
-0,         54,         54,        1,   135000, 0x62bb599e
-0,         55,         55,        1,   135000, 0x15a68991
-0,         56,         56,        1,   135000, 0x5f5eb810
-0,         57,         57,        1,   135000, 0x85a9634a
-0,         58,         58,        1,   135000, 0xf24b5c1a
-0,         59,         59,        1,   135000, 0x38034850
-0,         60,         60,        1,   135000, 0x48fd3599
-0,         61,         61,        1,   135000, 0xb9d62408
-0,         62,         62,        1,   135000, 0xaf202a21
-0,         63,         63,        1,   135000, 0x341aa582
-0,         64,         64,        1,   135000, 0x90cdc9bb
-0,         65,         65,        1,   135000, 0x0b52f319
-0,         66,         66,        1,   135000, 0xce61aa5e
-0,         67,         67,        1,   135000, 0x988acb45
-0,         68,         68,        1,   135000, 0xcd353664
-0,         69,         69,        1,   135000, 0xa80c8ce9
-0,         70,         70,        1,   135000, 0x15dce784
-0,         71,         71,        1,   135000, 0x16bd4519
-0,         72,         72,        1,   135000, 0x571712f3
-0,         73,         73,        1,   135000, 0x6b109f1e
-0,         74,         74,        1,   135000, 0x8e4c19aa
-0,         75,         75,        1,   135000, 0x4132bd4c
-0,         76,         76,        1,   135000, 0x5babafe2
-0,         77,         77,        1,   135000, 0xddef6313
-0,         78,         78,        1,   135000, 0x76d6b48b
-0,         79,         79,        1,   135000, 0x929e7702
-0,         80,         80,        1,   135000, 0x33f5e4a1
-0,         81,         81,        1,   135000, 0xdb7041bf
-0,         82,         82,        1,   135000, 0xbc761e04
-0,         83,         83,        1,   135000, 0x0b2a81e6
-0,         84,         84,        1,   135000, 0xf6fd20ea
-0,         85,         85,        1,   135000, 0x1894a26c
-0,         86,         86,        1,   135000, 0xb25e216f
-0,         87,         87,        1,   135000, 0x83bb02ee
-0,         88,         88,        1,   135000, 0x6952a3c3
-0,         89,         89,        1,   135000, 0x372184d6
-0,         90,         90,        1,   135000, 0x2ac47afe
-0,         91,         91,        1,   135000, 0x14c33a35
-0,         92,         92,        1,   135000, 0xdc08470e
+#tb 0: 1/1000
+0,          0,          0,        0,   135000, 0x9dceed6d
+0,        249,        249,        0,   135000, 0xcb87787f
+0,        499,        499,        0,   135000, 0xdb4361ce
+0,        749,        749,        0,   135000, 0xb8fd81c2
+0,       1000,       1000,        0,   135000, 0xbf86a7af
+0,       1249,       1249,        0,   135000, 0x2e7787e3
+0,       1499,       1499,        0,   135000, 0x6cec6ebd
+0,       1749,       1749,        0,   135000, 0xa4d08c07
+0,       2000,       2000,        0,   135000, 0x1be48faf
+0,       2249,       2249,        0,   135000, 0xf3cd8ede
+0,       2499,       2499,        0,   135000, 0x33ec8a49
+0,       2749,       2749,        0,   135000, 0x11e887ec
+0,       3000,       3000,        0,   135000, 0x3e215c25
+0,       3249,       3249,        0,   135000, 0x1a2cb3f8
+0,       3499,       3499,        0,   135000, 0x7fb0e48a
+0,       3749,       3749,        0,   135000, 0x749f3738
+0,       4000,       4000,        0,   135000, 0x686e78e9
+0,       4249,       4249,        0,   135000, 0x29515bc7
+0,       4499,       4499,        0,   135000, 0x987126bd
+0,       4749,       4749,        0,   135000, 0xdf77bb13
+0,       5000,       5000,        0,   135000, 0x5fb1468a
+0,       5249,       5249,        0,   135000, 0x06ea50ea
+0,       5499,       5499,        0,   135000, 0x7bd9c715
+0,       5749,       5749,        0,   135000, 0xdd6e6831
+0,       6000,       6000,        0,   135000, 0x0ee3760f
+0,       6249,       6249,        0,   135000, 0xc7984dc8
+0,       6499,       6499,        0,   135000, 0x7e385bff
+0,       6749,       6749,        0,   135000, 0xae155ab9
+0,       7000,       7000,        0,   135000, 0xc05ee8f7
+0,       7249,       7249,        0,   135000, 0x93de3392
+0,       7499,       7499,        0,   135000, 0xfe45b38b
+0,       7749,       7749,        0,   135000, 0xeb5ed72c
+0,       8000,       8000,        0,   135000, 0x0794cb57
+0,       8249,       8249,        0,   135000, 0x2578c6e5
+0,       8499,       8499,        0,   135000, 0x78486707
+0,       8749,       8749,        0,   135000, 0x41e1f0e6
+0,       9000,       9000,        0,   135000, 0x4508eb76
+0,       9249,       9249,        0,   135000, 0xd8c087f3
+0,       9499,       9499,        0,   135000, 0x1a8db89a
+0,       9749,       9749,        0,   135000, 0x6dbd90c6
+0,      10000,      10000,        0,   135000, 0x0845e400
+0,      10249,      10249,        0,   135000, 0xe8b02fc2
+0,      10499,      10499,        0,   135000, 0x8007d813
+0,      10749,      10749,        0,   135000, 0xdfb04e69
+0,      11000,      11000,        0,   135000, 0x5746cf71
+0,      11249,      11249,        0,   135000, 0xe510299f
+0,      11499,      11499,        0,   135000, 0xeea0c829
+0,      11749,      11749,        0,   135000, 0x7c0578ab
+0,      12000,      12000,        0,   135000, 0xb1569ce9
+0,      12249,      12249,        0,   135000, 0x6c233986
+0,      12499,      12499,        0,   135000, 0x95b77f3d
+0,      12749,      12749,        0,   135000, 0xfc368d80
+0,      13000,      13000,        0,   135000, 0x5c73b064
+0,      13249,      13249,        0,   135000, 0x2206da8d
+0,      13499,      13499,        0,   135000, 0x62bb599e
+0,      13749,      13749,        0,   135000, 0x15a68991
+0,      14000,      14000,        0,   135000, 0x5f5eb810
+0,      14249,      14249,        0,   135000, 0x85a9634a
+0,      14499,      14499,        0,   135000, 0xf24b5c1a
+0,      14749,      14749,        0,   135000, 0x38034850
+0,      15000,      15000,        0,   135000, 0x48fd3599
+0,      15249,      15249,        0,   135000, 0xb9d62408
+0,      15499,      15499,        0,   135000, 0xaf202a21
+0,      15749,      15749,        0,   135000, 0x341aa582
+0,      16000,      16000,        0,   135000, 0x90cdc9bb
+0,      16249,      16249,        0,   135000, 0x0b52f319
+0,      16499,      16499,        0,   135000, 0xce61aa5e
+0,      16749,      16749,        0,   135000, 0x988acb45
+0,      17000,      17000,        0,   135000, 0xcd353664
+0,      17249,      17249,        0,   135000, 0xa80c8ce9
+0,      17499,      17499,        0,   135000, 0x15dce784
+0,      17749,      17749,        0,   135000, 0x16bd4519
+0,      18000,      18000,        0,   135000, 0x571712f3
+0,      18249,      18249,        0,   135000, 0x6b109f1e
+0,      18499,      18499,        0,   135000, 0x8e4c19aa
+0,      18749,      18749,        0,   135000, 0x4132bd4c
+0,      19000,      19000,        0,   135000, 0x5babafe2
+0,      19249,      19249,        0,   135000, 0xddef6313
+0,      19499,      19499,        0,   135000, 0x76d6b48b
+0,      19749,      19749,        0,   135000, 0x929e7702
+0,      20000,      20000,        0,   135000, 0x33f5e4a1
+0,      20249,      20249,        0,   135000, 0xdb7041bf
+0,      20499,      20499,        0,   135000, 0xbc761e04
+0,      20749,      20749,        0,   135000, 0x0b2a81e6
+0,      21000,      21000,        0,   135000, 0xf6fd20ea
+0,      21249,      21249,        0,   135000, 0x1894a26c
+0,      21499,      21499,        0,   135000, 0xb25e216f
+0,      21749,      21749,        0,   135000, 0x83bb02ee
+0,      22000,      22000,        0,   135000, 0x6952a3c3
+0,      22249,      22249,        0,   135000, 0x372184d6
+0,      22499,      22499,        0,   135000, 0x2ac47afe
+0,      22749,      22749,        0,   135000, 0x14c33a35
+0,      23000,      23000,        0,   135000, 0xdc08470e
diff --git a/tests/ref/fate/vp6f b/tests/ref/fate/vp6f
index edb555d..8795042 100644
--- a/tests/ref/fate/vp6f
+++ b/tests/ref/fate/vp6f
@@ -1,175 +1,175 @@
-#tb 0: 1/10
-0,          0,          0,        1,    13440, 0x7cb0a22f
-0,          1,          1,        1,    13440, 0xdfcea6ba
-0,          2,          2,        1,    13440, 0x59b2a5da
-0,          3,          3,        1,    13440, 0x12f1b2d8
-0,          4,          4,        1,    13440, 0x280fb9f6
-0,          5,          5,        1,    13440, 0x7bace8b3
-0,          6,          6,        1,    13440, 0x4ec91480
-0,          7,          7,        1,    13440, 0xa8010450
-0,          8,          8,        1,    13440, 0x61d8fc46
-0,          9,          9,        1,    13440, 0x242bb24e
-0,         10,         10,        1,    13440, 0x88397a36
-0,         11,         11,        1,    13440, 0x10e15726
-0,         12,         12,        1,    13440, 0x3018438c
-0,         13,         13,        1,    13440, 0xbbb94c21
-0,         14,         14,        1,    13440, 0xfc3e5e2b
-0,         15,         15,        1,    13440, 0xeaa69354
-0,         16,         16,        1,    13440, 0x96f1cc01
-0,         17,         17,        1,    13440, 0x333fdaff
-0,         18,         18,        1,    13440, 0xb5230ed2
-0,         19,         19,        1,    13440, 0x59383446
-0,         20,         20,        1,    13440, 0x954939e6
-0,         21,         21,        1,    13440, 0x53813d2f
-0,         22,         22,        1,    13440, 0x3ca53600
-0,         23,         23,        1,    13440, 0x7b30227a
-0,         24,         24,        1,    13440, 0x5145bbfe
-0,         25,         25,        1,    13440, 0xa0979632
-0,         26,         26,        1,    13440, 0x08026e21
-0,         27,         27,        1,    13440, 0x3f456d1e
-0,         28,         28,        1,    13440, 0x7d036b62
-0,         29,         29,        1,    13440, 0x508085fb
-0,         30,         30,        1,    13440, 0x251dc193
-0,         31,         31,        1,    13440, 0xf3121c9b
-0,         32,         32,        1,    13440, 0xf5da772e
-0,         33,         33,        1,    13440, 0x8179ccf7
-0,         34,         34,        1,    13440, 0xd57ceeb3
-0,         35,         35,        1,    13440, 0xc8f2169c
-0,         36,         36,        1,    13440, 0xbf8296c3
-0,         37,         37,        1,    13440, 0xee1927d0
-0,         38,         38,        1,    13440, 0xdd84e8d1
-0,         39,         39,        1,    13440, 0x7be57be2
-0,         40,         40,        1,    13440, 0xae353f91
-0,         41,         41,        1,    13440, 0x3ae927f2
-0,         42,         42,        1,    13440, 0x417227c6
-0,         43,         43,        1,    13440, 0x32572bea
-0,         44,         44,        1,    13440, 0x8b9e4839
-0,         45,         45,        1,    13440, 0xad669441
-0,         46,         46,        1,    13440, 0xc9de99a6
-0,         47,         47,        1,    13440, 0xb3ffb88b
-0,         48,         48,        1,    13440, 0xb321b8a0
-0,         49,         49,        1,    13440, 0x2efdbf53
-0,         50,         50,        1,    13440, 0x9b7aa566
-0,         51,         51,        1,    13440, 0x563c8d60
-0,         52,         52,        1,    13440, 0xe3848ee8
-0,         53,         53,        1,    13440, 0xa84b8f1d
-0,         54,         54,        1,    13440, 0x52da9f9f
-0,         55,         55,        1,    13440, 0x2ed56d97
-0,         56,         56,        1,    13440, 0x4e8534c2
-0,         57,         57,        1,    13440, 0x318900a6
-0,         58,         58,        1,    13440, 0xda96de39
-0,         59,         59,        1,    13440, 0xaae7ac0b
-0,         60,         60,        1,    13440, 0x7533ad99
-0,         61,         61,        1,    13440, 0x4e70c2c9
-0,         62,         62,        1,    13440, 0x9ce5e3fa
-0,         63,         63,        1,    13440, 0xc788fbbc
-0,         64,         64,        1,    13440, 0xd36604a9
-0,         65,         65,        1,    13440, 0x246221a4
-0,         66,         66,        1,    13440, 0x290c5c2b
-0,         67,         67,        1,    13440, 0xde6c68ec
-0,         68,         68,        1,    13440, 0x56248dbf
-0,         69,         69,        1,    13440, 0x5b898cbd
-0,         70,         70,        1,    13440, 0x090574b9
-0,         71,         71,        1,    13440, 0x8df2814a
-0,         72,         72,        1,    13440, 0xd4a6b285
-0,         73,         73,        1,    13440, 0xa016e921
-0,         74,         74,        1,    13440, 0x7f93fdc1
-0,         75,         75,        1,    13440, 0xfd0dee6f
-0,         76,         76,        1,    13440, 0xef04ce0e
-0,         77,         77,        1,    13440, 0x7560bee3
-0,         78,         78,        1,    13440, 0x5a8cdc85
-0,         79,         79,        1,    13440, 0x4788f7bc
-0,         80,         80,        1,    13440, 0xc001e34d
-0,         81,         81,        1,    13440, 0xc687eb74
-0,         82,         82,        1,    13440, 0xbf20feba
-0,         83,         83,        1,    13440, 0xd32647a8
-0,         84,         84,        1,    13440, 0xe69a955a
-0,         85,         85,        1,    13440, 0x1b56951f
-0,         86,         86,        1,    13440, 0xd1977378
-0,         87,         87,        1,    13440, 0x1620357d
-0,         88,         88,        1,    13440, 0x2596116f
-0,         89,         89,        1,    13440, 0x7473feca
-0,         90,         90,        1,    13440, 0x7f92bb47
-0,         91,         91,        1,    13440, 0x6866a683
-0,         92,         92,        1,    13440, 0xe9b08d7e
-0,         93,         93,        1,    13440, 0xa3fd7546
-0,         94,         94,        1,    13440, 0xa4416522
-0,         95,         95,        1,    13440, 0xd8f5572e
-0,         96,         96,        1,    13440, 0xf5746dbd
-0,         97,         97,        1,    13440, 0x256a87c6
-0,         98,         98,        1,    13440, 0x722aa2c8
-0,         99,         99,        1,    13440, 0xb26de5f5
-0,        100,        100,        1,    13440, 0x117f0841
-0,        101,        101,        1,    13440, 0xda2d192c
-0,        102,        102,        1,    13440, 0xb022442d
-0,        103,        103,        1,    13440, 0xbc4044f2
-0,        104,        104,        1,    13440, 0x68b330da
-0,        105,        105,        1,    13440, 0xc07228cf
-0,        106,        106,        1,    13440, 0xaa3f3d44
-0,        107,        107,        1,    13440, 0x25867aad
-0,        108,        108,        1,    13440, 0xa3ecb432
-0,        109,        109,        1,    13440, 0x93ccdcbb
-0,        110,        110,        1,    13440, 0x8302fa4f
-0,        111,        111,        1,    13440, 0x2f960f33
-0,        112,        112,        1,    13440, 0x15d41d14
-0,        113,        113,        1,    13440, 0x636529d0
-0,        114,        114,        1,    13440, 0x11035be5
-0,        115,        115,        1,    13440, 0x9b6e9167
-0,        116,        116,        1,    13440, 0x7b01adc7
-0,        117,        117,        1,    13440, 0xa237e05d
-0,        118,        118,        1,    13440, 0xd2f4f134
-0,        119,        119,        1,    13440, 0x2052d368
-0,        120,        120,        1,    13440, 0x08f7ae0d
-0,        121,        121,        1,    13440, 0xa89185bc
-0,        122,        122,        1,    13440, 0xfa628236
-0,        123,        123,        1,    13440, 0xdf79848b
-0,        124,        124,        1,    13440, 0xd19a906f
-0,        125,        125,        1,    13440, 0x219f9324
-0,        126,        126,        1,    13440, 0x46509b6d
-0,        127,        127,        1,    13440, 0xc5d9a568
-0,        128,        128,        1,    13440, 0xb21aaaa8
-0,        129,        129,        1,    13440, 0x925a97ed
-0,        130,        130,        1,    13440, 0xc5e3557f
-0,        131,        131,        1,    13440, 0x7c57155a
-0,        132,        132,        1,    13440, 0x6b26d005
-0,        133,        133,        1,    13440, 0xfdc7b369
-0,        134,        134,        1,    13440, 0x99919fc2
-0,        135,        135,        1,    13440, 0xcfe889e4
-0,        136,        136,        1,    13440, 0xd1196856
-0,        137,        137,        1,    13440, 0xec8348c6
-0,        138,        138,        1,    13440, 0x5ede0d9a
-0,        139,        139,        1,    13440, 0x198ef66e
-0,        140,        140,        1,    13440, 0x62fcefdf
-0,        141,        141,        1,    13440, 0x7791f415
-0,        142,        142,        1,    13440, 0xfbdb0029
-0,        143,        143,        1,    13440, 0xdab12b01
-0,        144,        144,        1,    13440, 0x646b2d5f
-0,        145,        145,        1,    13440, 0x5410f52e
-0,        146,        146,        1,    13440, 0x7186eef8
-0,        147,        147,        1,    13440, 0xca251ef6
-0,        148,        148,        1,    13440, 0x757c3b43
-0,        149,        149,        1,    13440, 0x59ff4982
-0,        150,        150,        1,    13440, 0xbe8ff084
-0,        151,        151,        1,    13440, 0xc85a9e38
-0,        152,        152,        1,    13440, 0x541b9a19
-0,        153,        153,        1,    13440, 0x274893c9
-0,        154,        154,        1,    13440, 0x7634b5d2
-0,        155,        155,        1,    13440, 0x1bd8e10c
-0,        156,        156,        1,    13440, 0xa661dfb1
-0,        157,        157,        1,    13440, 0x9d01bf92
-0,        158,        158,        1,    13440, 0xcb1eb220
-0,        159,        159,        1,    13440, 0x0ce27d25
-0,        160,        160,        1,    13440, 0x523b594f
-0,        161,        161,        1,    13440, 0xf0a04c4f
-0,        162,        162,        1,    13440, 0x0f0ffc3d
-0,        163,        163,        1,    13440, 0xb0d8b778
-0,        164,        164,        1,    13440, 0x5137a642
-0,        165,        165,        1,    13440, 0xd213a552
-0,        166,        166,        1,    13440, 0xc2fbc9b1
-0,        167,        167,        1,    13440, 0xfc2ee379
-0,        168,        168,        1,    13440, 0xfb80f737
-0,        169,        169,        1,    13440, 0xd6cb2447
-0,        170,        170,        1,    13440, 0x124b606d
-0,        171,        171,        1,    13440, 0xf788a066
-0,        172,        172,        1,    13440, 0xa16eed6e
-0,        173,        173,        1,    13440, 0x73ff0f82
+#tb 0: 1/1000
+0,          0,          0,        0,    13440, 0x7cb0a22f
+0,        100,        100,        0,    13440, 0xdfcea6ba
+0,        200,        200,        0,    13440, 0x59b2a5da
+0,        300,        300,        0,    13440, 0x12f1b2d8
+0,        400,        400,        0,    13440, 0x280fb9f6
+0,        500,        500,        0,    13440, 0x7bace8b3
+0,        600,        600,        0,    13440, 0x4ec91480
+0,        700,        700,        0,    13440, 0xa8010450
+0,        800,        800,        0,    13440, 0x61d8fc46
+0,        900,        900,        0,    13440, 0x242bb24e
+0,       1000,       1000,        0,    13440, 0x88397a36
+0,       1100,       1100,        0,    13440, 0x10e15726
+0,       1200,       1200,        0,    13440, 0x3018438c
+0,       1300,       1300,        0,    13440, 0xbbb94c21
+0,       1400,       1400,        0,    13440, 0xfc3e5e2b
+0,       1500,       1500,        0,    13440, 0xeaa69354
+0,       1600,       1600,        0,    13440, 0x96f1cc01
+0,       1700,       1700,        0,    13440, 0x333fdaff
+0,       1800,       1800,        0,    13440, 0xb5230ed2
+0,       1900,       1900,        0,    13440, 0x59383446
+0,       2000,       2000,        0,    13440, 0x954939e6
+0,       2100,       2100,        0,    13440, 0x53813d2f
+0,       2200,       2200,        0,    13440, 0x3ca53600
+0,       2300,       2300,        0,    13440, 0x7b30227a
+0,       2400,       2400,        0,    13440, 0x5145bbfe
+0,       2500,       2500,        0,    13440, 0xa0979632
+0,       2600,       2600,        0,    13440, 0x08026e21
+0,       2700,       2700,        0,    13440, 0x3f456d1e
+0,       2800,       2800,        0,    13440, 0x7d036b62
+0,       2900,       2900,        0,    13440, 0x508085fb
+0,       3000,       3000,        0,    13440, 0x251dc193
+0,       3100,       3100,        0,    13440, 0xf3121c9b
+0,       3200,       3200,        0,    13440, 0xf5da772e
+0,       3300,       3300,        0,    13440, 0x8179ccf7
+0,       3400,       3400,        0,    13440, 0xd57ceeb3
+0,       3500,       3500,        0,    13440, 0xc8f2169c
+0,       3600,       3600,        0,    13440, 0xbf8296c3
+0,       3700,       3700,        0,    13440, 0xee1927d0
+0,       3800,       3800,        0,    13440, 0xdd84e8d1
+0,       3900,       3900,        0,    13440, 0x7be57be2
+0,       4000,       4000,        0,    13440, 0xae353f91
+0,       4100,       4100,        0,    13440, 0x3ae927f2
+0,       4200,       4200,        0,    13440, 0x417227c6
+0,       4300,       4300,        0,    13440, 0x32572bea
+0,       4400,       4400,        0,    13440, 0x8b9e4839
+0,       4500,       4500,        0,    13440, 0xad669441
+0,       4600,       4600,        0,    13440, 0xc9de99a6
+0,       4700,       4700,        0,    13440, 0xb3ffb88b
+0,       4800,       4800,        0,    13440, 0xb321b8a0
+0,       4900,       4900,        0,    13440, 0x2efdbf53
+0,       5000,       5000,        0,    13440, 0x9b7aa566
+0,       5100,       5100,        0,    13440, 0x563c8d60
+0,       5200,       5200,        0,    13440, 0xe3848ee8
+0,       5300,       5300,        0,    13440, 0xa84b8f1d
+0,       5400,       5400,        0,    13440, 0x52da9f9f
+0,       5500,       5500,        0,    13440, 0x2ed56d97
+0,       5600,       5600,        0,    13440, 0x4e8534c2
+0,       5700,       5700,        0,    13440, 0x318900a6
+0,       5800,       5800,        0,    13440, 0xda96de39
+0,       5900,       5900,        0,    13440, 0xaae7ac0b
+0,       6000,       6000,        0,    13440, 0x7533ad99
+0,       6100,       6100,        0,    13440, 0x4e70c2c9
+0,       6200,       6200,        0,    13440, 0x9ce5e3fa
+0,       6300,       6300,        0,    13440, 0xc788fbbc
+0,       6400,       6400,        0,    13440, 0xd36604a9
+0,       6500,       6500,        0,    13440, 0x246221a4
+0,       6600,       6600,        0,    13440, 0x290c5c2b
+0,       6700,       6700,        0,    13440, 0xde6c68ec
+0,       6800,       6800,        0,    13440, 0x56248dbf
+0,       6900,       6900,        0,    13440, 0x5b898cbd
+0,       7000,       7000,        0,    13440, 0x090574b9
+0,       7100,       7100,        0,    13440, 0x8df2814a
+0,       7200,       7200,        0,    13440, 0xd4a6b285
+0,       7300,       7300,        0,    13440, 0xa016e921
+0,       7400,       7400,        0,    13440, 0x7f93fdc1
+0,       7500,       7500,        0,    13440, 0xfd0dee6f
+0,       7600,       7600,        0,    13440, 0xef04ce0e
+0,       7700,       7700,        0,    13440, 0x7560bee3
+0,       7800,       7800,        0,    13440, 0x5a8cdc85
+0,       7900,       7900,        0,    13440, 0x4788f7bc
+0,       8000,       8000,        0,    13440, 0xc001e34d
+0,       8100,       8100,        0,    13440, 0xc687eb74
+0,       8200,       8200,        0,    13440, 0xbf20feba
+0,       8300,       8300,        0,    13440, 0xd32647a8
+0,       8400,       8400,        0,    13440, 0xe69a955a
+0,       8500,       8500,        0,    13440, 0x1b56951f
+0,       8600,       8600,        0,    13440, 0xd1977378
+0,       8700,       8700,        0,    13440, 0x1620357d
+0,       8800,       8800,        0,    13440, 0x2596116f
+0,       8900,       8900,        0,    13440, 0x7473feca
+0,       9000,       9000,        0,    13440, 0x7f92bb47
+0,       9100,       9100,        0,    13440, 0x6866a683
+0,       9200,       9200,        0,    13440, 0xe9b08d7e
+0,       9300,       9300,        0,    13440, 0xa3fd7546
+0,       9400,       9400,        0,    13440, 0xa4416522
+0,       9500,       9500,        0,    13440, 0xd8f5572e
+0,       9600,       9600,        0,    13440, 0xf5746dbd
+0,       9700,       9700,        0,    13440, 0x256a87c6
+0,       9800,       9800,        0,    13440, 0x722aa2c8
+0,       9900,       9900,        0,    13440, 0xb26de5f5
+0,      10000,      10000,        0,    13440, 0x117f0841
+0,      10100,      10100,        0,    13440, 0xda2d192c
+0,      10200,      10200,        0,    13440, 0xb022442d
+0,      10300,      10300,        0,    13440, 0xbc4044f2
+0,      10400,      10400,        0,    13440, 0x68b330da
+0,      10500,      10500,        0,    13440, 0xc07228cf
+0,      10600,      10600,        0,    13440, 0xaa3f3d44
+0,      10700,      10700,        0,    13440, 0x25867aad
+0,      10800,      10800,        0,    13440, 0xa3ecb432
+0,      10900,      10900,        0,    13440, 0x93ccdcbb
+0,      11000,      11000,        0,    13440, 0x8302fa4f
+0,      11100,      11100,        0,    13440, 0x2f960f33
+0,      11200,      11200,        0,    13440, 0x15d41d14
+0,      11300,      11300,        0,    13440, 0x636529d0
+0,      11400,      11400,        0,    13440, 0x11035be5
+0,      11500,      11500,        0,    13440, 0x9b6e9167
+0,      11600,      11600,        0,    13440, 0x7b01adc7
+0,      11700,      11700,        0,    13440, 0xa237e05d
+0,      11800,      11800,        0,    13440, 0xd2f4f134
+0,      11900,      11900,        0,    13440, 0x2052d368
+0,      12000,      12000,        0,    13440, 0x08f7ae0d
+0,      12100,      12100,        0,    13440, 0xa89185bc
+0,      12200,      12200,        0,    13440, 0xfa628236
+0,      12300,      12300,        0,    13440, 0xdf79848b
+0,      12400,      12400,        0,    13440, 0xd19a906f
+0,      12500,      12500,        0,    13440, 0x219f9324
+0,      12600,      12600,        0,    13440, 0x46509b6d
+0,      12700,      12700,        0,    13440, 0xc5d9a568
+0,      12800,      12800,        0,    13440, 0xb21aaaa8
+0,      12900,      12900,        0,    13440, 0x925a97ed
+0,      13000,      13000,        0,    13440, 0xc5e3557f
+0,      13100,      13100,        0,    13440, 0x7c57155a
+0,      13200,      13200,        0,    13440, 0x6b26d005
+0,      13300,      13300,        0,    13440, 0xfdc7b369
+0,      13400,      13400,        0,    13440, 0x99919fc2
+0,      13500,      13500,        0,    13440, 0xcfe889e4
+0,      13600,      13600,        0,    13440, 0xd1196856
+0,      13700,      13700,        0,    13440, 0xec8348c6
+0,      13800,      13800,        0,    13440, 0x5ede0d9a
+0,      13900,      13900,        0,    13440, 0x198ef66e
+0,      14000,      14000,        0,    13440, 0x62fcefdf
+0,      14100,      14100,        0,    13440, 0x7791f415
+0,      14200,      14200,        0,    13440, 0xfbdb0029
+0,      14300,      14300,        0,    13440, 0xdab12b01
+0,      14400,      14400,        0,    13440, 0x646b2d5f
+0,      14500,      14500,        0,    13440, 0x5410f52e
+0,      14600,      14600,        0,    13440, 0x7186eef8
+0,      14700,      14700,        0,    13440, 0xca251ef6
+0,      14800,      14800,        0,    13440, 0x757c3b43
+0,      14900,      14900,        0,    13440, 0x59ff4982
+0,      15000,      15000,        0,    13440, 0xbe8ff084
+0,      15100,      15100,        0,    13440, 0xc85a9e38
+0,      15200,      15200,        0,    13440, 0x541b9a19
+0,      15300,      15300,        0,    13440, 0x274893c9
+0,      15400,      15400,        0,    13440, 0x7634b5d2
+0,      15500,      15500,        0,    13440, 0x1bd8e10c
+0,      15600,      15600,        0,    13440, 0xa661dfb1
+0,      15700,      15700,        0,    13440, 0x9d01bf92
+0,      15800,      15800,        0,    13440, 0xcb1eb220
+0,      15900,      15900,        0,    13440, 0x0ce27d25
+0,      16000,      16000,        0,    13440, 0x523b594f
+0,      16100,      16100,        0,    13440, 0xf0a04c4f
+0,      16200,      16200,        0,    13440, 0x0f0ffc3d
+0,      16300,      16300,        0,    13440, 0xb0d8b778
+0,      16400,      16400,        0,    13440, 0x5137a642
+0,      16500,      16500,        0,    13440, 0xd213a552
+0,      16600,      16600,        0,    13440, 0xc2fbc9b1
+0,      16700,      16700,        0,    13440, 0xfc2ee379
+0,      16800,      16800,        0,    13440, 0xfb80f737
+0,      16900,      16900,        0,    13440, 0xd6cb2447
+0,      17000,      17000,        0,    13440, 0x124b606d
+0,      17100,      17100,        0,    13440, 0xf788a066
+0,      17200,      17200,        0,    13440, 0xa16eed6e
+0,      17300,      17300,        0,    13440, 0x73ff0f82
diff --git a/tests/ref/fate/wmv8-drm b/tests/ref/fate/wmv8-drm
index 9b522ae..c2a6dd5 100644
--- a/tests/ref/fate/wmv8-drm
+++ b/tests/ref/fate/wmv8-drm
@@ -1,131 +1,131 @@
-#tb 0: 1/24
-0,          0,          0,        1,    84480, 0x7760a00b
-0,         29,         29,        1,    84480, 0xfe39a1db
-0,         30,         30,        1,    84480, 0xd71961b4
-0,         31,         31,        1,    84480, 0xc80dedba
-0,         32,         32,        1,    84480, 0x34d8b538
-0,         33,         33,        1,    84480, 0x1a86b8e5
-0,         34,         34,        1,    84480, 0xabf7c25d
-0,         35,         35,        1,    84480, 0x912600ee
-0,         36,         36,        1,    84480, 0x7ee7c70b
-0,         37,         37,        1,    84480, 0x09c5b0d1
-0,         38,         38,        1,    84480, 0x6dbe6c0c
-0,         39,         39,        1,    84480, 0x0fe0a120
-0,         40,         40,        1,    84480, 0x2352d3a2
-0,         41,         41,        1,    84480, 0xb22ce92e
-0,         42,         42,        1,    84480, 0x31db0099
-0,         43,         43,        1,    84480, 0xad2dd73a
-0,         44,         44,        1,    84480, 0xb9af8e20
-0,         45,         45,        1,    84480, 0x7b956549
-0,         46,         46,        1,    84480, 0x3f774b87
-0,         47,         47,        1,    84480, 0x824a23a3
-0,         48,         48,        1,    84480, 0x4469a8d8
-0,         49,         49,        1,    84480, 0xc80c7a0a
-0,         50,         50,        1,    84480, 0xcf958549
-0,         51,         51,        1,    84480, 0x449746e3
-0,         52,         52,        1,    84480, 0xbac66a82
-0,         53,         53,        1,    84480, 0x99e85855
-0,         54,         54,        1,    84480, 0xa4a17d17
-0,         55,         55,        1,    84480, 0xe29c7587
-0,         56,         56,        1,    84480, 0x551de592
-0,         57,         57,        1,    84480, 0xe0877bce
-0,         58,         58,        1,    84480, 0x9660eb35
-0,         59,         59,        1,    84480, 0x0a34b644
-0,         60,         60,        1,    84480, 0x352919f0
-0,         61,         61,        1,    84480, 0xef56ce27
-0,         62,         62,        1,    84480, 0x030fe862
-0,         63,         63,        1,    84480, 0x2eba33e2
-0,         64,         64,        1,    84480, 0x242de401
-0,         65,         65,        1,    84480, 0xbadd61ca
-0,         66,         66,        1,    84480, 0x2060465b
-0,         67,         67,        1,    84480, 0x256e6965
-0,         68,         68,        1,    84480, 0x243b7084
-0,         69,         69,        1,    84480, 0x8b3c0b47
-0,         70,         70,        1,    84480, 0xc174a9af
-0,         71,         71,        1,    84480, 0xb6d48686
-0,         72,         72,        1,    84480, 0xa3dd1871
-0,         73,         73,        1,    84480, 0x04cdcaf7
-0,         74,         74,        1,    84480, 0x55f89c94
-0,         75,         75,        1,    84480, 0xda657032
-0,         76,         76,        1,    84480, 0x38ba7698
-0,         77,         77,        1,    84480, 0x4d03a7f2
-0,         78,         78,        1,    84480, 0x115d9035
-0,         79,         79,        1,    84480, 0x24c6acc6
-0,         80,         80,        1,    84480, 0xdd2bbcae
-0,         81,         81,        1,    84480, 0xb4fee0b9
-0,         82,         82,        1,    84480, 0xc51c14e0
-0,         83,         83,        1,    84480, 0xfb7737de
-0,         84,         84,        1,    84480, 0x38675fb0
-0,         85,         85,        1,    84480, 0x4752c710
-0,         86,         86,        1,    84480, 0xfeb7491b
-0,         87,         87,        1,    84480, 0xaa248122
-0,         88,         88,        1,    84480, 0x9a4af87c
-0,         89,         89,        1,    84480, 0xedcf09df
-0,         90,         90,        1,    84480, 0x563a05df
-0,         91,         91,        1,    84480, 0x0dde1e03
-0,         92,         92,        1,    84480, 0xd8f0ff65
-0,         93,         93,        1,    84480, 0xbeb9ae1a
-0,         94,         94,        1,    84480, 0x416d1468
-0,         95,         95,        1,    84480, 0x66c87d4c
-0,         96,         96,        1,    84480, 0xa67c0774
-0,         97,         97,        1,    84480, 0xd8f8aec1
-0,         98,         98,        1,    84480, 0xadfa502b
-0,         99,         99,        1,    84480, 0x50bf20e4
-0,        100,        100,        1,    84480, 0xbcb3d8cc
-0,        101,        101,        1,    84480, 0xa54677d7
-0,        102,        102,        1,    84480, 0x3566042d
-0,        103,        103,        1,    84480, 0x4c9eed57
-0,        104,        104,        1,    84480, 0xc3b90e58
-0,        105,        105,        1,    84480, 0x3c042bfa
-0,        106,        106,        1,    84480, 0x19f8e890
-0,        107,        107,        1,    84480, 0xd3dacfb9
-0,        108,        108,        1,    84480, 0x2365fc6f
-0,        109,        109,        1,    84480, 0xa2c19d00
-0,        110,        110,        1,    84480, 0xce94336f
-0,        111,        111,        1,    84480, 0xfa9bcf14
-0,        118,        118,        1,    84480, 0x24d6a243
-0,        119,        119,        1,    84480, 0xae1c8854
-0,        120,        120,        1,    84480, 0xbb8968bf
-0,        121,        121,        1,    84480, 0x6f923623
-0,        122,        122,        1,    84480, 0x22e98029
-0,        123,        123,        1,    84480, 0x8ac33af3
-0,        124,        124,        1,    84480, 0x05947b6e
-0,        125,        125,        1,    84480, 0xfc35661a
-0,        126,        126,        1,    84480, 0x0e6b6e47
-0,        127,        127,        1,    84480, 0x82c764bb
-0,        128,        128,        1,    84480, 0x57a36833
-0,        129,        129,        1,    84480, 0xc8dd690a
-0,        130,        130,        1,    84480, 0x02c47232
-0,        131,        131,        1,    84480, 0x6645715d
-0,        132,        132,        1,    84480, 0xc64860f7
-0,        133,        133,        1,    84480, 0x4f5614b3
-0,        134,        134,        1,    84480, 0xa70842ca
-0,        135,        135,        1,    84480, 0x379d8458
-0,        136,        136,        1,    84480, 0xa14701cf
-0,        137,        137,        1,    84480, 0xad1aa2b2
-0,        138,        138,        1,    84480, 0xee28f320
-0,        139,        139,        1,    84480, 0x505801e9
-0,        140,        140,        1,    84480, 0x7947233b
-0,        141,        141,        1,    84480, 0x3ce72a9d
-0,        142,        142,        1,    84480, 0xa6834e64
-0,        143,        143,        1,    84480, 0xfebf4d70
-0,        144,        144,        1,    84480, 0x4a0775e2
-0,        145,        145,        1,    84480, 0x9d7e945b
-0,        146,        146,        1,    84480, 0xaa9eadd9
-0,        147,        147,        1,    84480, 0xaa85c9b1
-0,        148,        148,        1,    84480, 0xa005edaf
-0,        149,        149,        1,    84480, 0x7fc4e5cc
-0,        150,        150,        1,    84480, 0xb0f6e8d1
-0,        151,        151,        1,    84480, 0x9ef9f330
-0,        152,        152,        1,    84480, 0xbe14ff1f
-0,        153,        153,        1,    84480, 0xd494048c
-0,        154,        154,        1,    84480, 0x046166a7
-0,        155,        155,        1,    84480, 0x052a09b2
-0,        156,        156,        1,    84480, 0x71fff4ab
-0,        157,        157,        1,    84480, 0xb9684e41
-0,        158,        158,        1,    84480, 0x1ddce068
-0,        159,        159,        1,    84480, 0xb9de300e
-0,        160,        160,        1,    84480, 0x13962590
-0,        161,        161,        1,    84480, 0xde79482f
-0,        162,        162,        1,    84480, 0x7d1ca064
-0,        163,        163,        1,    84480, 0x2676a064
+#tb 0: 1/1000
+0,          0,          0,        0,    84480, 0x7760a00b
+0,       1208,       1208,        0,    84480, 0xfe39a1db
+0,       1250,       1250,        0,    84480, 0xd71961b4
+0,       1291,       1291,        0,    84480, 0xc80dedba
+0,       1333,       1333,        0,    84480, 0x34d8b538
+0,       1375,       1375,        0,    84480, 0x1a86b8e5
+0,       1416,       1416,        0,    84480, 0xabf7c25d
+0,       1458,       1458,        0,    84480, 0x912600ee
+0,       1500,       1500,        0,    84480, 0x7ee7c70b
+0,       1541,       1541,        0,    84480, 0x09c5b0d1
+0,       1583,       1583,        0,    84480, 0x6dbe6c0c
+0,       1625,       1625,        0,    84480, 0x0fe0a120
+0,       1666,       1666,        0,    84480, 0x2352d3a2
+0,       1708,       1708,        0,    84480, 0xb22ce92e
+0,       1750,       1750,        0,    84480, 0x31db0099
+0,       1791,       1791,        0,    84480, 0xad2dd73a
+0,       1833,       1833,        0,    84480, 0xb9af8e20
+0,       1875,       1875,        0,    84480, 0x7b956549
+0,       1916,       1916,        0,    84480, 0x3f774b87
+0,       1958,       1958,        0,    84480, 0x824a23a3
+0,       2000,       2000,        0,    84480, 0x4469a8d8
+0,       2041,       2041,        0,    84480, 0xc80c7a0a
+0,       2083,       2083,        0,    84480, 0xcf958549
+0,       2125,       2125,        0,    84480, 0x449746e3
+0,       2166,       2166,        0,    84480, 0xbac66a82
+0,       2208,       2208,        0,    84480, 0x99e85855
+0,       2250,       2250,        0,    84480, 0xa4a17d17
+0,       2291,       2291,        0,    84480, 0xe29c7587
+0,       2333,       2333,        0,    84480, 0x551de592
+0,       2375,       2375,        0,    84480, 0xe0877bce
+0,       2416,       2416,        0,    84480, 0x9660eb35
+0,       2458,       2458,        0,    84480, 0x0a34b644
+0,       2500,       2500,        0,    84480, 0x352919f0
+0,       2541,       2541,        0,    84480, 0xef56ce27
+0,       2583,       2583,        0,    84480, 0x030fe862
+0,       2625,       2625,        0,    84480, 0x2eba33e2
+0,       2666,       2666,        0,    84480, 0x242de401
+0,       2708,       2708,        0,    84480, 0xbadd61ca
+0,       2750,       2750,        0,    84480, 0x2060465b
+0,       2791,       2791,        0,    84480, 0x256e6965
+0,       2833,       2833,        0,    84480, 0x243b7084
+0,       2875,       2875,        0,    84480, 0x8b3c0b47
+0,       2916,       2916,        0,    84480, 0xc174a9af
+0,       2958,       2958,        0,    84480, 0xb6d48686
+0,       3000,       3000,        0,    84480, 0xa3dd1871
+0,       3041,       3041,        0,    84480, 0x04cdcaf7
+0,       3083,       3083,        0,    84480, 0x55f89c94
+0,       3125,       3125,        0,    84480, 0xda657032
+0,       3166,       3166,        0,    84480, 0x38ba7698
+0,       3208,       3208,        0,    84480, 0x4d03a7f2
+0,       3250,       3250,        0,    84480, 0x115d9035
+0,       3291,       3291,        0,    84480, 0x24c6acc6
+0,       3333,       3333,        0,    84480, 0xdd2bbcae
+0,       3375,       3375,        0,    84480, 0xb4fee0b9
+0,       3416,       3416,        0,    84480, 0xc51c14e0
+0,       3458,       3458,        0,    84480, 0xfb7737de
+0,       3500,       3500,        0,    84480, 0x38675fb0
+0,       3541,       3541,        0,    84480, 0x4752c710
+0,       3583,       3583,        0,    84480, 0xfeb7491b
+0,       3625,       3625,        0,    84480, 0xaa248122
+0,       3666,       3666,        0,    84480, 0x9a4af87c
+0,       3708,       3708,        0,    84480, 0xedcf09df
+0,       3750,       3750,        0,    84480, 0x563a05df
+0,       3791,       3791,        0,    84480, 0x0dde1e03
+0,       3833,       3833,        0,    84480, 0xd8f0ff65
+0,       3875,       3875,        0,    84480, 0xbeb9ae1a
+0,       3916,       3916,        0,    84480, 0x416d1468
+0,       3958,       3958,        0,    84480, 0x66c87d4c
+0,       4000,       4000,        0,    84480, 0xa67c0774
+0,       4041,       4041,        0,    84480, 0xd8f8aec1
+0,       4083,       4083,        0,    84480, 0xadfa502b
+0,       4125,       4125,        0,    84480, 0x50bf20e4
+0,       4166,       4166,        0,    84480, 0xbcb3d8cc
+0,       4208,       4208,        0,    84480, 0xa54677d7
+0,       4250,       4250,        0,    84480, 0x3566042d
+0,       4291,       4291,        0,    84480, 0x4c9eed57
+0,       4333,       4333,        0,    84480, 0xc3b90e58
+0,       4375,       4375,        0,    84480, 0x3c042bfa
+0,       4416,       4416,        0,    84480, 0x19f8e890
+0,       4458,       4458,        0,    84480, 0xd3dacfb9
+0,       4500,       4500,        0,    84480, 0x2365fc6f
+0,       4541,       4541,        0,    84480, 0xa2c19d00
+0,       4583,       4583,        0,    84480, 0xce94336f
+0,       4625,       4625,        0,    84480, 0xfa9bcf14
+0,       4916,       4916,        0,    84480, 0x24d6a243
+0,       4958,       4958,        0,    84480, 0xae1c8854
+0,       5000,       5000,        0,    84480, 0xbb8968bf
+0,       5041,       5041,        0,    84480, 0x6f923623
+0,       5083,       5083,        0,    84480, 0x22e98029
+0,       5125,       5125,        0,    84480, 0x8ac33af3
+0,       5166,       5166,        0,    84480, 0x05947b6e
+0,       5208,       5208,        0,    84480, 0xfc35661a
+0,       5250,       5250,        0,    84480, 0x0e6b6e47
+0,       5291,       5291,        0,    84480, 0x82c764bb
+0,       5333,       5333,        0,    84480, 0x57a36833
+0,       5375,       5375,        0,    84480, 0xc8dd690a
+0,       5416,       5416,        0,    84480, 0x02c47232
+0,       5458,       5458,        0,    84480, 0x6645715d
+0,       5500,       5500,        0,    84480, 0xc64860f7
+0,       5541,       5541,        0,    84480, 0x4f5614b3
+0,       5583,       5583,        0,    84480, 0xa70842ca
+0,       5625,       5625,        0,    84480, 0x379d8458
+0,       5666,       5666,        0,    84480, 0xa14701cf
+0,       5708,       5708,        0,    84480, 0xad1aa2b2
+0,       5750,       5750,        0,    84480, 0xee28f320
+0,       5791,       5791,        0,    84480, 0x505801e9
+0,       5833,       5833,        0,    84480, 0x7947233b
+0,       5875,       5875,        0,    84480, 0x3ce72a9d
+0,       5916,       5916,        0,    84480, 0xa6834e64
+0,       5958,       5958,        0,    84480, 0xfebf4d70
+0,       6000,       6000,        0,    84480, 0x4a0775e2
+0,       6041,       6041,        0,    84480, 0x9d7e945b
+0,       6083,       6083,        0,    84480, 0xaa9eadd9
+0,       6125,       6125,        0,    84480, 0xaa85c9b1
+0,       6166,       6166,        0,    84480, 0xa005edaf
+0,       6208,       6208,        0,    84480, 0x7fc4e5cc
+0,       6250,       6250,        0,    84480, 0xb0f6e8d1
+0,       6291,       6291,        0,    84480, 0x9ef9f330
+0,       6333,       6333,        0,    84480, 0xbe14ff1f
+0,       6375,       6375,        0,    84480, 0xd494048c
+0,       6416,       6416,        0,    84480, 0x046166a7
+0,       6458,       6458,        0,    84480, 0x052a09b2
+0,       6500,       6500,        0,    84480, 0x71fff4ab
+0,       6541,       6541,        0,    84480, 0xb9684e41
+0,       6583,       6583,        0,    84480, 0x1ddce068
+0,       6625,       6625,        0,    84480, 0xb9de300e
+0,       6666,       6666,        0,    84480, 0x13962590
+0,       6708,       6708,        0,    84480, 0xde79482f
+0,       6750,       6750,        0,    84480, 0x7d1ca064
+0,       6791,       6791,        0,    84480, 0x2676a064



More information about the ffmpeg-cvslog mailing list