summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile40
-rw-r--r--tests/asynth1.swbin0 -> 1058400 bytes
-rw-r--r--tests/audiogen.c8
-rw-r--r--tests/base64.c8
-rwxr-xr-xtests/codec-regression.sh82
-rwxr-xr-xtests/copycooker.sh30
-rwxr-xr-xtests/fate-run.sh14
-rwxr-xr-xtests/fate-update.sh55
-rw-r--r--tests/fate-valgrind.supp31
-rwxr-xr-xtests/fate.sh2
-rw-r--r--tests/fate/audio.mak13
-rw-r--r--tests/fate/demux.mak67
-rw-r--r--tests/fate/ea.mak15
-rw-r--r--tests/fate/h264.mak366
-rw-r--r--tests/fate/image.mak16
-rw-r--r--tests/fate/libavutil.mak25
-rw-r--r--tests/fate/lossless-audio.mak14
-rw-r--r--tests/fate/lossless-video.mak16
-rw-r--r--tests/fate/mapchan.mak14
-rw-r--r--tests/fate/microsoft.mak14
-rw-r--r--tests/fate/prores.mak10
-rw-r--r--tests/fate/qt.mak35
-rw-r--r--tests/fate/real.mak17
-rw-r--r--tests/fate/screen.mak15
-rw-r--r--tests/fate/video.mak114
-rw-r--r--tests/fate/voice.mak13
-rw-r--r--tests/fate/vqf.mak7
-rw-r--r--tests/fate_config.sh.template25
-rwxr-xr-xtests/ffserver-regression.sh39
-rw-r--r--tests/ffserver.conf307
-rw-r--r--tests/ffserver.regression.ref10
-rwxr-xr-xtests/lavf-regression.sh72
-rwxr-xr-xtests/lavfi-regression.sh33
-rw-r--r--tests/ref/acodec/alac4
-rw-r--r--tests/ref/acodec/flac4
-rw-r--r--tests/ref/acodec/g7228
-rw-r--r--tests/ref/acodec/g723_14
-rw-r--r--tests/ref/acodec/g7266
-rw-r--r--tests/ref/acodec/pcm_s16be4
-rw-r--r--tests/ref/acodec/pcm_s24be4
-rw-r--r--tests/ref/acodec/pcm_s24daud6
-rw-r--r--tests/ref/acodec/pcm_s32be4
-rw-r--r--tests/ref/acodec/pcm_s84
-rw-r--r--tests/ref/fate/4xm-130
-rw-r--r--tests/ref/fate/4xm-2320
-rw-r--r--tests/ref/fate/8bps24
-rw-r--r--tests/ref/fate/aasc1
-rw-r--r--tests/ref/fate/adpcm-ea-mad-ea-r1194
-rw-r--r--tests/ref/fate/adpcm-ea-tqi54
-rw-r--r--tests/ref/fate/armovie-escape124200
-rw-r--r--tests/ref/fate/bethsoft-vid142
-rw-r--r--tests/ref/fate/cdxl-bitline-ham622
-rw-r--r--tests/ref/fate/cdxl-ham634
-rw-r--r--tests/ref/fate/cdxl-ham84
-rw-r--r--tests/ref/fate/cdxl-pal824
-rw-r--r--tests/ref/fate/cdxl-pal8-small94
-rw-r--r--tests/ref/fate/cljr72
-rw-r--r--tests/ref/fate/creatureshock-avs114
-rw-r--r--tests/ref/fate/cvid-palette114
-rw-r--r--tests/ref/fate/cvid-partial1
-rw-r--r--tests/ref/fate/dfa150
-rw-r--r--tests/ref/fate/dfa1016
-rw-r--r--tests/ref/fate/dfa1118
-rw-r--r--tests/ref/fate/dfa234
-rw-r--r--tests/ref/fate/dfa320
-rw-r--r--tests/ref/fate/dfa427
-rw-r--r--tests/ref/fate/dfa530
-rw-r--r--tests/ref/fate/dfa624
-rw-r--r--tests/ref/fate/dfa724
-rw-r--r--tests/ref/fate/dfa872
-rw-r--r--tests/ref/fate/dfa912
-rw-r--r--tests/ref/fate/ea-cmv388
-rw-r--r--tests/ref/fate/ea-mad-pcm-planar302
-rw-r--r--tests/ref/fate/ea-tgq558
-rw-r--r--tests/ref/fate/eval33
-rw-r--r--tests/ref/fate/flic-af11-palette-change232
-rw-r--r--tests/ref/fate/flic-magiccarpet80
-rw-r--r--tests/ref/fate/fraps-v28
-rw-r--r--tests/ref/fate/fraps-v32
-rw-r--r--tests/ref/fate/g729-01000
-rw-r--r--tests/ref/fate/g729-11000
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_fld0_full60
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_picaff0_full60
-rw-r--r--tests/ref/fate/h264-conformance-cabref3_sand_d100
-rw-r--r--tests/ref/fate/h264-conformance-cafi1_sva_c66
-rw-r--r--tests/ref/fate/h264-conformance-cama1_vtc_c8
-rw-r--r--tests/ref/fate/h264-conformance-cama2_vtc_b8
-rw-r--r--tests/ref/fate/h264-conformance-cama3_vtc_b8
-rw-r--r--tests/ref/fate/h264-conformance-capa1_toshiba_b180
-rw-r--r--tests/ref/fate/h264-conformance-capama3_sand_f100
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b60
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b60
-rw-r--r--tests/ref/fate/h264-conformance-cvfi1_sony_d34
-rw-r--r--tests/ref/fate/h264-conformance-cvfi1_sva_c14
-rw-r--r--tests/ref/fate/h264-conformance-cvfi2_sony_h34
-rw-r--r--tests/ref/fate/h264-conformance-cvfi2_sva_c26
-rw-r--r--tests/ref/fate/h264-conformance-cvmapaqp3_sony_e16
-rw-r--r--tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b60
-rw-r--r--tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b60
-rw-r--r--tests/ref/fate/h264-conformance-cvnlfi1_sony_c34
-rw-r--r--tests/ref/fate/h264-conformance-cvnlfi2_sony_h34
-rw-r--r--tests/ref/fate/h264-conformance-cvpa1_toshiba_b180
-rw-r--r--tests/ref/fate/h264-conformance-fi1_sony_e34
-rw-r--r--tests/ref/fate/h264-conformance-frext-bcrm_freh10200
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh11200
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh4200
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh6200
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh7_b200
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext2_panasonic_b30
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext4_panasonic_a20
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b20
-rw-r--r--tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b6
-rw-r--r--tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b6
-rw-r--r--tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a6
-rw-r--r--tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a6
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c600
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c600
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b600
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a600
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a600
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a11
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a11
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a11
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a11
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a11
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a11
-rw-r--r--tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a11
-rw-r--r--tests/ref/fate/h264-conformance-mr3_tandberg_b582
-rw-r--r--tests/ref/fate/h264-conformance-mr6_bt_b120
-rw-r--r--tests/ref/fate/h264-conformance-mr7_bt_b100
-rw-r--r--tests/ref/fate/h264-conformance-mr8_bt_b116
-rw-r--r--tests/ref/fate/h264-conformance-mr9_bt_b96
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_field_1_b30
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_field_2_b30
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_field_3_b30
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_paff_1r230
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_paff_2r30
-rw-r--r--tests/ref/fate/h264-lossless20
-rw-r--r--tests/ref/fate/idroq-video-encode2
-rw-r--r--tests/ref/fate/iff-fibonacci2
-rw-r--r--tests/ref/fate/indeo380
-rw-r--r--tests/ref/fate/interplay-mve-16bit102
-rw-r--r--tests/ref/fate/interplay-mve-8bit222
-rw-r--r--tests/ref/fate/iv8-demux8
-rw-r--r--tests/ref/fate/mapchan-6ch-extract-22
-rw-r--r--tests/ref/fate/mapchan-6ch-extract-2-downmix-mono1
-rw-r--r--tests/ref/fate/mapchan-silent-mono1
-rw-r--r--tests/ref/fate/mjpegb22
-rw-r--r--tests/ref/fate/motionpixels220
-rw-r--r--tests/ref/fate/mpeg2-field-enc64
-rw-r--r--tests/ref/fate/msvideo1-16bit60
-rw-r--r--tests/ref/fate/mtv78
-rw-r--r--tests/ref/fate/nuv20
-rw-r--r--tests/ref/fate/pictor2
-rw-r--r--tests/ref/fate/prores-4226
-rw-r--r--tests/ref/fate/prores-422_hq6
-rw-r--r--tests/ref/fate/prores-422_lt6
-rw-r--r--tests/ref/fate/prores-422_proxy6
-rw-r--r--tests/ref/fate/prores-alpha6
-rw-r--r--tests/ref/fate/ptx2
-rw-r--r--tests/ref/fate/pva-demux53
-rw-r--r--tests/ref/fate/qtrle-16bit168
-rw-r--r--tests/ref/fate/qtrle-1bit78
-rw-r--r--tests/ref/fate/qtrle-24bit68
-rw-r--r--tests/ref/fate/qtrle-2bit78
-rw-r--r--tests/ref/fate/qtrle-32bit54
-rw-r--r--tests/ref/fate/qtrle-4bit78
-rw-r--r--tests/ref/fate/qtrle-8bit334
-rw-r--r--tests/ref/fate/quickdraw4
-rw-r--r--tests/ref/fate/random_seed1
-rw-r--r--tests/ref/fate/real-rv40481
-rw-r--r--tests/ref/fate/rpza62
-rw-r--r--tests/ref/fate/rv30220
-rw-r--r--tests/ref/fate/smc240
-rw-r--r--tests/ref/fate/svq1300
-rw-r--r--tests/ref/fate/svq3360
-rw-r--r--tests/ref/fate/targa-conformance-CCM82
-rw-r--r--tests/ref/fate/targa-conformance-UCM82
-rw-r--r--tests/ref/fate/truemotion1-15210
-rw-r--r--tests/ref/fate/truemotion1-241
-rw-r--r--tests/ref/fate/tscc-15bit450
-rw-r--r--tests/ref/fate/txd-16bpp24
-rw-r--r--tests/ref/fate/txd-pal84
-rw-r--r--tests/ref/fate/v2102
-rw-r--r--tests/ref/fate/vc1-ism242
-rw-r--r--tests/ref/fate/vmnc-16bit384
-rw-r--r--tests/ref/fate/vp3-coeff-level6418
-rw-r--r--tests/ref/fate/vp51
-rw-r--r--tests/ref/fate/vp6a188
-rw-r--r--tests/ref/fate/vp6f350
-rw-r--r--tests/ref/fate/vp8-sign-bias3
-rw-r--r--tests/ref/fate/vqa-cc68
-rw-r--r--tests/ref/fate/wmv8-drm262
-rw-r--r--tests/ref/fate/wmv8-x8intra473
-rw-r--r--tests/ref/fate/wtv-demux2
-rw-r--r--tests/ref/fate/yop14
-rw-r--r--tests/ref/fate/zerocodec39
-rw-r--r--tests/ref/fate/zmbv-8bit1
-rw-r--r--tests/ref/lavf-fate/ogg_vp33
-rw-r--r--tests/ref/lavf/asf6
-rw-r--r--tests/ref/lavf/avi6
-rw-r--r--tests/ref/lavf/caf3
-rw-r--r--tests/ref/lavf/dv_fmt10
-rw-r--r--tests/ref/lavf/ffm4
-rw-r--r--tests/ref/lavf/flv_fmt4
-rw-r--r--tests/ref/lavf/gxf10
-rw-r--r--tests/ref/lavf/ismv9
-rw-r--r--tests/ref/lavf/mkv6
-rw-r--r--tests/ref/lavf/mov10
-rw-r--r--tests/ref/lavf/mpg10
-rw-r--r--tests/ref/lavf/mxf8
-rw-r--r--tests/ref/lavf/mxf_d104
-rw-r--r--tests/ref/lavf/nut6
-rw-r--r--tests/ref/lavf/ogg6
-rw-r--r--tests/ref/lavf/pixfmt14
-rw-r--r--tests/ref/lavf/png6
-rw-r--r--tests/ref/lavf/rm4
-rw-r--r--tests/ref/lavf/ts6
-rw-r--r--tests/ref/lavf/wtv3
-rw-r--r--tests/ref/lavf/xwd6
-rw-r--r--tests/ref/lavfi/drawbox1
-rw-r--r--tests/ref/lavfi/fade1
-rw-r--r--tests/ref/lavfi/life1
-rw-r--r--tests/ref/lavfi/overlay1
-rw-r--r--tests/ref/lavfi/pad1
-rw-r--r--tests/ref/lavfi/pixdesc21
-rw-r--r--tests/ref/lavfi/pixfmts_copy22
-rw-r--r--tests/ref/lavfi/pixfmts_crop9
-rw-r--r--tests/ref/lavfi/pixfmts_hflip9
-rw-r--r--tests/ref/lavfi/pixfmts_null22
-rw-r--r--tests/ref/lavfi/pixfmts_scale62
-rw-r--r--tests/ref/lavfi/pixfmts_vflip22
-rw-r--r--tests/ref/lavfi/pp1
-rw-r--r--tests/ref/lavfi/pp21
-rw-r--r--tests/ref/lavfi/pp31
-rw-r--r--tests/ref/lavfi/pp41
-rw-r--r--tests/ref/lavfi/pp51
-rw-r--r--tests/ref/lavfi/pp61
-rw-r--r--tests/ref/lavfi/select1
-rw-r--r--tests/ref/lavfi/setdar1
-rw-r--r--tests/ref/lavfi/setsar1
-rw-r--r--tests/ref/lavfi/testsrc1
-rw-r--r--tests/ref/lavfi/thumbnail1
-rw-r--r--tests/ref/lavfi/transpose1
-rw-r--r--tests/ref/lavfi/unsharp1
-rw-r--r--tests/ref/seek/dnxhd_720p_dnxhd24
-rw-r--r--tests/ref/seek/dnxhd_720p_rd_dnxhd24
-rw-r--r--tests/ref/seek/dv411_dv54
-rw-r--r--tests/ref/seek/dv50_dv54
-rw-r--r--tests/ref/seek/dv_dv54
-rw-r--r--tests/ref/seek/flac_flac46
-rw-r--r--tests/ref/seek/lavf_asf60
-rw-r--r--tests/ref/seek/lavf_avi36
-rw-r--r--tests/ref/seek/lavf_dv54
-rw-r--r--tests/ref/seek/lavf_ffm8
-rw-r--r--tests/ref/seek/lavf_flv36
-rw-r--r--tests/ref/seek/lavf_mkv59
-rw-r--r--tests/ref/seek/lavf_mpg12
-rw-r--r--tests/ref/seek/lavf_nut54
-rw-r--r--tests/ref/seek/lavf_ogg2
-rw-r--r--tests/ref/seek/lavf_rm54
-rw-r--r--tests/ref/seek/lavf_ts42
-rw-r--r--tests/ref/seek/lavf_wtv41
-rw-r--r--tests/ref/seek/mp2_mp214
-rw-r--r--tests/ref/seek/mpeg1_mpg24
-rw-r--r--tests/ref/seek/mpeg1b_mpg26
-rw-r--r--tests/ref/seek/mpeg2_422_mpg26
-rw-r--r--tests/ref/seek/mpeg2_idct_int_mpg24
-rw-r--r--tests/ref/seek/mpeg2i_mpg24
-rw-r--r--tests/ref/seek/mpeg2ivlc_qprd_mpg26
-rw-r--r--tests/ref/seek/mpeg2reuse_mpg46
-rw-r--r--tests/ref/seek/mpeg2thread_mpg26
-rw-r--r--tests/ref/seek/mpeg2threadivlc_mpg26
-rw-r--r--tests/ref/vsynth1/amv/vsynth1-amv4
-rw-r--r--tests/ref/vsynth1/cljr6
-rw-r--r--tests/ref/vsynth1/dnxhd_1080i4
-rw-r--r--tests/ref/vsynth1/dv4
-rw-r--r--tests/ref/vsynth1/dv502
-rw-r--r--tests/ref/vsynth1/dv_4112
-rw-r--r--tests/ref/vsynth1/error2
-rw-r--r--tests/ref/vsynth1/ffvhuff2
-rw-r--r--tests/ref/vsynth1/flashsv4
-rw-r--r--tests/ref/vsynth1/flashsv26
-rw-r--r--tests/ref/vsynth1/huffyuv2
-rw-r--r--tests/ref/vsynth1/jpeg20004
-rw-r--r--tests/ref/vsynth1/jpegls4
-rw-r--r--tests/ref/vsynth1/mpeg2thread2
-rw-r--r--tests/ref/vsynth1/mpeg2thread_ilace4
-rw-r--r--tests/ref/vsynth1/mpeg44
-rw-r--r--tests/ref/vsynth1/mpng4
-rw-r--r--tests/ref/vsynth1/msvideo14
-rw-r--r--tests/ref/vsynth1/prores8
-rw-r--r--tests/ref/vsynth1/prores_kostya4
-rw-r--r--tests/ref/vsynth1/qtrle8
-rw-r--r--tests/ref/vsynth1/qtrlegray4
-rw-r--r--tests/ref/vsynth1/r2104
-rw-r--r--tests/ref/vsynth1/rgb4
-rw-r--r--tests/ref/vsynth1/svq14
-rw-r--r--tests/ref/vsynth1/v3084
-rw-r--r--tests/ref/vsynth1/y41p4
-rw-r--r--tests/ref/vsynth1/yuv2
-rw-r--r--tests/ref/vsynth1/yuv44
-rw-r--r--tests/ref/vsynth1/zlib4
-rw-r--r--tests/ref/vsynth1/zmbv3
-rw-r--r--tests/ref/vsynth2/amv/vsynth2-amv4
-rw-r--r--tests/ref/vsynth2/cljr6
-rw-r--r--tests/ref/vsynth2/dnxhd_1080i4
-rw-r--r--tests/ref/vsynth2/dv4
-rw-r--r--tests/ref/vsynth2/dv502
-rw-r--r--tests/ref/vsynth2/dv_4112
-rw-r--r--tests/ref/vsynth2/error2
-rw-r--r--tests/ref/vsynth2/ffvhuff2
-rw-r--r--tests/ref/vsynth2/flashsv4
-rw-r--r--tests/ref/vsynth2/flashsv26
-rw-r--r--tests/ref/vsynth2/huffyuv2
-rw-r--r--tests/ref/vsynth2/jpeg20004
-rw-r--r--tests/ref/vsynth2/jpegls4
-rw-r--r--tests/ref/vsynth2/mpeg2thread2
-rw-r--r--tests/ref/vsynth2/mpeg2thread_ilace4
-rw-r--r--tests/ref/vsynth2/mpeg44
-rw-r--r--tests/ref/vsynth2/mpng4
-rw-r--r--tests/ref/vsynth2/msvideo14
-rw-r--r--tests/ref/vsynth2/prores8
-rw-r--r--tests/ref/vsynth2/prores_kostya4
-rw-r--r--tests/ref/vsynth2/qtrle8
-rw-r--r--tests/ref/vsynth2/qtrlegray4
-rw-r--r--tests/ref/vsynth2/r2104
-rw-r--r--tests/ref/vsynth2/rgb4
-rw-r--r--tests/ref/vsynth2/svq14
-rw-r--r--tests/ref/vsynth2/v3084
-rw-r--r--tests/ref/vsynth2/y41p4
-rw-r--r--tests/ref/vsynth2/yuv2
-rw-r--r--tests/ref/vsynth2/yuv44
-rw-r--r--tests/ref/vsynth2/zlib4
-rw-r--r--tests/ref/vsynth2/zmbv3
-rwxr-xr-xtests/regression-funcs.sh11
-rw-r--r--tests/rotozoom.c12
-rw-r--r--tests/tiny_psnr.c23
-rw-r--r--tests/videogen.c8
339 files changed, 12567 insertions, 8811 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 4c21a6a5a4..b5e0568b10 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,9 +1,18 @@
+FFSERVER_REFFILE = $(SRC_PATH)/tests/ffserver.regression.ref
+
AREF = fate-acodec-aref
VREF = fate-vsynth1-vref fate-vsynth2-vref
REFS = $(AREF) $(VREF)
-$(VREF): avconv$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
-$(AREF): avconv$(EXESUF) tests/data/asynth1.sw
+$(VREF): ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
+$(AREF): ffmpeg$(EXESUF) tests/data/asynth1.sw
+
+ffservertest: ffserver$(EXESUF) tests/vsynth1/00.pgm tests/data/asynth1.sw
+ @echo
+ @echo "Unfortunately ffserver is broken and therefore its regression"
+ @echo "test fails randomly. Treat the results accordingly."
+ @echo
+ $(SRC_PATH)/tests/ffserver-regression.sh $(FFSERVER_REFFILE) $(SRC_PATH)/tests/ffserver.conf
OBJDIRS += tests/data tests/vsynth1 tests/vsynth2
@@ -19,7 +28,15 @@ tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF) | tests/data
tests/data/asynth-16000-1.sw: tests/audiogen$(HOSTEXESUF) | tests/data
$(M)./$< $@ 16000 1
-tests/data/asynth%.sw tests/vsynth%/00.pgm: TAG = GEN
+tests/data/mapchan-6ch.sw: tests/audiogen$(HOSTEXESUF)
+ @mkdir -p tests/data
+ $(M)./$< $@ 22050 6
+
+tests/data/mapchan-mono.sw: tests/audiogen$(HOSTEXESUF)
+ @mkdir -p tests/data
+ $(M)./$< $@ 22050 1
+
+tests/data/%.sw tests/vsynth%/00.pgm: TAG = GEN
include $(SRC_PATH)/tests/fate/aac.mak
include $(SRC_PATH)/tests/fate/ac3.mak
@@ -41,6 +58,7 @@ include $(SRC_PATH)/tests/fate/image.mak
include $(SRC_PATH)/tests/fate/indeo.mak
include $(SRC_PATH)/tests/fate/libavcodec.mak
include $(SRC_PATH)/tests/fate/libavutil.mak
+include $(SRC_PATH)/tests/fate/mapchan.mak
include $(SRC_PATH)/tests/fate/lossless-audio.mak
include $(SRC_PATH)/tests/fate/lossless-video.mak
include $(SRC_PATH)/tests/fate/microsoft.mak
@@ -65,6 +83,7 @@ FATE_ACODEC = $(ACODEC_TESTS:%=fate-acodec-%)
FATE_VSYNTH1 = $(VCODEC_TESTS:%=fate-vsynth1-%)
FATE_VSYNTH2 = $(VCODEC_TESTS:%=fate-vsynth2-%)
FATE_VCODEC = $(FATE_VSYNTH1) $(FATE_VSYNTH2)
+FATE_LAVF_FATE = $(LAVF_FATE_TESTS:%=fate-lavf-fate-%)
FATE_LAVF = $(LAVF_TESTS:%=fate-lavf-%)
FATE_LAVFI = $(LAVFI_TESTS:%=fate-lavfi-%)
FATE_SEEK = $(SEEK_TESTS:seek_%=fate-seek-%)
@@ -88,6 +107,7 @@ $(FATE_SEEK): fate-codec fate-lavf libavformat/seek-test$(EXESUF)
$(FATE_ACODEC): CMD = codectest acodec
$(FATE_VSYNTH1): CMD = codectest vsynth1
$(FATE_VSYNTH2): CMD = codectest vsynth2
+$(FATE_LAVF_FATE): CMD = lavffatetest
$(FATE_LAVF): CMD = lavftest
$(FATE_LAVFI): CMD = lavfitest
$(FATE_SEEK): CMD = seektest
@@ -95,15 +115,19 @@ $(FATE_SEEK): CMD = seektest
fate-codec: fate-acodec fate-vcodec
fate-acodec: $(FATE_ACODEC)
fate-vcodec: $(FATE_VCODEC)
+fate-lavf-fate: $(FATE_LAVF_FATE)
fate-lavf: $(FATE_LAVF)
fate-lavfi: $(FATE_LAVFI)
fate-seek: $(FATE_SEEK)
ifdef SAMPLES
+FATE += $(FATE_LAVF_FATE)
FATE += $(FATE_TESTS) $(FATE_TESTS-yes)
fate-rsync:
- rsync -vaLW rsync://fate-suite.libav.org/fate-suite/ $(SAMPLES)
+ rsync -vaLW --timeout=60 --contimeout=60 rsync://fate.ffmpeg.org/fate-suite/ $(SAMPLES)
else
+fate::
+ @echo "warning: only a subset of the fate tests will be run because SAMPLES is not specified"
fate-rsync:
@echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
$(FATE_TESTS):
@@ -112,9 +136,11 @@ endif
FATE_UTILS = base64 tiny_psnr
-fate: $(FATE)
+TOOL = ffmpeg
+
+fate:: $(FATE)
-$(FATE): avconv$(EXESUF) $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
+$(FATE): $(TOOL)$(EXESUF) $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
@echo "TEST $(@:fate-%=%)"
$(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)'
@@ -124,7 +150,7 @@ fate-list:
clean:: testclean
testclean:
- $(RM) -r tests/vsynth1 tests/vsynth2 tests/data
+ $(RM) -r tests/vsynth1 tests/vsynth2 tests/data tools/lavfi-showfiltfmts$(EXESUF)
$(RM) $(CLEANSUFFIXES:%=tests/%)
$(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
diff --git a/tests/asynth1.sw b/tests/asynth1.sw
new file mode 100644
index 0000000000..adda4d5757
--- /dev/null
+++ b/tests/asynth1.sw
Binary files differ
diff --git a/tests/audiogen.c b/tests/audiogen.c
index c4d73aa86f..776fdf9316 100644
--- a/tests/audiogen.c
+++ b/tests/audiogen.c
@@ -4,20 +4,20 @@
*
* Copyright (c) 2002 Fabrice Bellard
*
- * This file is part of Libav.
+ * This file is part of FFmpeg.
*
- * Libav is free software; you can redistribute it and/or
+ * FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * Libav is distributed in the hope that it will be useful,
+ * FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with Libav; if not, write to the Free Software
+ * License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
diff --git a/tests/base64.c b/tests/base64.c
index 6462d9aa7a..5035ad96a7 100644
--- a/tests/base64.c
+++ b/tests/base64.c
@@ -1,18 +1,18 @@
/*
- * This file is part of Libav.
+ * This file is part of FFmpeg.
*
- * Libav is free software; you can redistribute it and/or
+ * FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * Libav is distributed in the hope that it will be useful,
+ * FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with Libav; if not, write to the Free Software
+ * License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
index f3932d4c29..ae1ea1be43 100755
--- a/tests/codec-regression.sh
+++ b/tests/codec-regression.sh
@@ -70,6 +70,11 @@ if [ -n "$do_mpeg2thread_ilace" ]; then
# mpeg2 encoding interlaced using intra vlc
do_video_encoding mpeg2threadivlc.mpg "-qscale 10 -vcodec mpeg2video -f mpeg1video -bf 2 -flags +ildct+ilme -intra_vlc 1 -threads 2 -slices 2"
do_video_decoding
+
+# mpeg2 encoding interlaced
+file=${outfile}mpeg2reuse.mpg
+do_avconv $file $DEC_OPTS -me_threshold 256 -i ${target_path}/${outfile}mpeg2thread.mpg $ENC_OPTS -same_quant -me_threshold 256 -mb_threshold 1024 -vcodec mpeg2video -f mpeg1video -bf 2 -flags +ildct+ilme -threads 4
+do_video_decoding
fi
if [ -n "$do_msmpeg4v2" ] ; then
@@ -82,6 +87,11 @@ do_video_encoding msmpeg4.avi "-qscale 10 -an -vcodec msmpeg4"
do_video_decoding
fi
+if [ -n "$do_msvideo1" ] ; then
+do_video_encoding msvideo1.avi "-an -vcodec msvideo1"
+do_video_decoding "" "-pix_fmt yuv420p"
+fi
+
if [ -n "$do_wmv1" ] ; then
do_video_encoding wmv1.avi "-qscale 10 -an -vcodec wmv1"
do_video_decoding
@@ -117,6 +127,11 @@ do_video_encoding huffyuv.avi "-an -vcodec huffyuv -pix_fmt yuv422p -sws_flags n
do_video_decoding "" "-strict -2 -pix_fmt yuv420p -sws_flags neighbor+bitexact"
fi
+if [ -n "$do_amv" ] ; then
+do_video_encoding amv.avi "-an -vcodec amv"
+do_video_decoding
+fi
+
if [ -n "$do_rc" ] ; then
do_video_encoding mpeg4-rc.avi "-b 400k -bf 2 -an -vcodec mpeg4"
do_video_decoding
@@ -167,6 +182,11 @@ do_video_encoding mjpeg.avi "-qscale 9 -an -vcodec mjpeg -pix_fmt yuvj420p"
do_video_decoding "" "-pix_fmt yuv420p"
fi
+if [ -n "$do_jpeg2000" ] ; then
+do_video_encoding jpeg2000.avi "-qscale 7 -an -vcodec j2k -strict experimental -pix_fmt rgb24"
+do_video_decoding "-vcodec j2k -strict experimental" "-pix_fmt yuv420p"
+fi
+
if [ -n "$do_ljpeg" ] ; then
do_video_encoding ljpeg.avi "-an -vcodec ljpeg -strict -1"
do_video_decoding
@@ -258,8 +278,18 @@ do_video_encoding dnxhd-720p-10bit.dnxhd "-s hd720 -b 90M -pix_fmt yuv422p10 -vf
do_video_decoding "" "-s cif -pix_fmt yuv420p"
fi
+if [ -n "$do_mpng" ] ; then
+do_video_encoding mpng.avi "-an -vcodec png"
+do_video_decoding "" "-pix_fmt yuv420p"
+fi
+
if [ -n "$do_prores" ] ; then
-do_video_encoding prores.mov "-vcodec prores -profile hq"
+do_video_encoding prores.mov "-vcodec prores"
+do_video_decoding "" "-pix_fmt yuv420p"
+fi
+
+if [ -n "$do_prores_kostya" ] ; then
+do_video_encoding prores_kostya.mov "-vcodec prores_kostya -profile hq"
do_video_decoding "" "-pix_fmt yuv420p"
fi
@@ -273,6 +303,12 @@ do_video_encoding flashsv.flv "-an -vcodec flashsv -sws_flags neighbor+full_chro
do_video_decoding "" "-pix_fmt yuv420p -sws_flags area+accurate_rnd+bitexact"
fi
+if [ -n "$do_flashsv2" ] ; then
+do_video_encoding flashsv2.flv "-an -vcodec flashsv2 -sws_flags neighbor+full_chroma_int+accurate_rnd+bitexact -strict experimental -compression_level 0"
+do_video_encoding flashsv2I.flv "-an -vcodec flashsv2 -sws_flags neighbor+full_chroma_int+accurate_rnd+bitexact -strict experimental -g 1"
+do_video_decoding "" "-pix_fmt yuv420p -sws_flags area+accurate_rnd+bitexact"
+fi
+
if [ -n "$do_roq" ] ; then
do_video_encoding roqav.roq "-vframes 5"
do_video_decoding "" "-pix_fmt yuv420p"
@@ -283,21 +319,58 @@ do_video_encoding qtrle.mov "-an -vcodec qtrle"
do_video_decoding "" "-pix_fmt yuv420p"
fi
+if [ -n "$do_qtrlegray" ] ; then
+do_video_encoding qtrlegray.mov "-an -vcodec qtrle -pix_fmt gray"
+do_video_decoding "" "-pix_fmt yuv420p"
+fi
+
if [ -n "$do_rgb" ] ; then
do_video_encoding rgb.avi "-an -vcodec rawvideo -pix_fmt bgr24"
do_video_decoding "" "-pix_fmt yuv420p"
fi
+if [ -n "$do_r210" ] ; then
+do_video_encoding r210.avi "-an -c:v r210"
+do_video_decoding "" "-pix_fmt yuv420p"
+fi
+
if [ -n "$do_v210" ] ; then
do_video_encoding v210.avi "-an -c:v v210"
do_video_decoding "" "-pix_fmt yuv420p"
fi
+if [ -n "$do_v308" ] ; then
+do_video_encoding v308.avi "-an -c:v v308"
+do_video_decoding "" "-pix_fmt yuv420p"
+fi
+
if [ -n "$do_yuv" ] ; then
do_video_encoding yuv.avi "-an -vcodec rawvideo -pix_fmt yuv420p"
do_video_decoding "" "-pix_fmt yuv420p"
fi
+if [ -n "$do_yuv4" ] ; then
+do_video_encoding yuv4.avi "-an -c:v yuv4"
+do_video_decoding
+fi
+
+if [ -n "$do_y41p" ] ; then
+do_video_encoding y41p.avi "-an -c:v y41p"
+do_video_decoding
+fi
+
+if [ -n "$do_zlib" ] ; then
+do_video_encoding zlib.avi "-an -vcodec zlib"
+do_video_decoding "" "-pix_fmt yuv420p"
+fi
+
+if [ -n "$do_zmbv" ] ; then
+# default level of 9 leads to different results with
+# different zlib versions, and even with 0 md5 differs
+do_video_encoding_nomd5 zmbv.avi "-an -vcodec zmbv -compression_level 0"
+do_video_decoding "" "-pix_fmt yuv420p"
+fi
+
if [ -n "$do_mp2" ] ; then
do_audio_encoding mp2.mp2
do_audio_decoding
@@ -311,13 +384,18 @@ do_audio_encoding ac3.ac3 "-vn -acodec ac3_fixed"
#$tiny_psnr $pcm_dst $pcm_ref 2 1024
fi
+if [ -n "$do_g723_1" ] ; then
+do_audio_encoding g723_1.tco "-b:a 6.3k -ac 1 -ar 8000 -acodec g723_1"
+do_audio_decoding
+fi
+
if [ -n "$do_g722" ] ; then
do_audio_encoding g722.wav "-b 64k -ac 1 -ar 16000 -acodec g722"
do_audio_decoding
fi
if [ -n "$do_g726" ] ; then
-do_audio_encoding g726.wav "-b 32k -ac 1 -ar 8000 -acodec g726"
+do_audio_encoding g726.wav "-b:a 32k -ac 1 -ar 8000 -acodec g726"
do_audio_decoding
fi
diff --git a/tests/copycooker.sh b/tests/copycooker.sh
new file mode 100755
index 0000000000..4b5811dcf6
--- /dev/null
+++ b/tests/copycooker.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+datadir="tests/data"
+
+logfile="$datadir/copy.regression"
+reffile="$1"
+
+list=$(grep -oh ' ./tests/data/.*' tests/ref/{acodec,lavf,vsynth1}/*| sort)
+rm -f $logfile
+for i in $list ; do
+ echo ---------------- >> $logfile
+ echo $i >> $logfile
+ ./ffmpeg_g -flags +bitexact -i $i -acodec copy -vcodec copy -y first.nut
+ ./ffmpeg_g -flags +bitexact -i first.nut -acodec copy -vcodec copy -y second.nut
+ cmp first.nut second.nut >> $logfile
+ md5sum first.nut >> $logfile
+done
+
+if diff -u -w "$reffile" "$logfile" ; then
+ echo
+ echo copy regression test: success
+ exit 0
+else
+ echo
+ echo copy regression test: error
+ exit 1
+fi
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index b19f0aeba4..e9863af01c 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -61,7 +61,7 @@ run(){
}
avconv(){
- run avconv -nostats -threads $threads -thread_type $thread_type -cpuflags $cpuflags "$@"
+ run ffmpeg -nostats -threads $threads -thread_type $thread_type -cpuflags $cpuflags "$@"
}
framecrc(){
@@ -97,13 +97,17 @@ enc_dec_pcm(){
regtest(){
t="${test#$2-}"
ref=${base}/ref/$2/$t
- ${base}/${1}-regression.sh $t $2 $3 "$target_exec" "$target_path" "$threads" "$thread_type" "$cpuflags"
+ ${base}/${1}-regression.sh $t $2 $3 "$target_exec" "$target_path" "$threads" "$thread_type" "$cpuflags" "$samples"
}
codectest(){
regtest codec $1 tests/$1
}
+lavffatetest(){
+ regtest lavf lavf-fate tests/vsynth1
+}
+
lavftest(){
regtest lavf lavf tests/vsynth1
}
@@ -156,5 +160,9 @@ fi
echo "${test}:${sig:-$err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile
-test $err = 0 && rm -f $outfile $errfile $cmpfile $cleanfiles
+if test $err = 0; then
+ rm -f $outfile $errfile $cmpfile $cleanfiles
+else
+ echo "Test $test failed. Look at $errfile for details."
+fi
exit $err
diff --git a/tests/fate-update.sh b/tests/fate-update.sh
new file mode 100755
index 0000000000..6b4668fc03
--- /dev/null
+++ b/tests/fate-update.sh
@@ -0,0 +1,55 @@
+#! /bin/sh
+
+set -e
+
+base=$(dirname $0)
+ref="${base}/ref/fate"
+
+FATE_DB_URL="http://fate.multimedia.cx/fate-tests.sqlite.bz2"
+FATE_DB=$(mktemp fate-db.XXXXXX)
+SQL_TESTS='SELECT id,short_name,command FROM test_spec WHERE active=1 ORDER BY short_name'
+
+do_sql(){
+ sqlite3 -noheader -separator ' ' "$FATE_DB" "$@"
+}
+
+wget -q -O - "$FATE_DB_URL" | bunzip2 > "$FATE_DB"
+mkdir -p "$ref"
+exec 3>"$base/fate.mak"
+
+do_sql "$SQL_TESTS" | while read id name command; do
+ case "$name" in
+ 00-full-regression|ffmpeg-help|binsize-*) continue ;;
+ esac
+ case "$command" in
+ {MD5}*)
+ command="${command#*ffmpeg}"; command="${command% -}"
+ command="md5 $command"
+ ;;
+ {*}*) continue ;;
+ *-f\ framecrc\ -)
+ command="${command#*ffmpeg}"; command="${command% -f *}"
+ command="framecrc $command"
+ ;;
+ *-f\ framemd5\ -)
+ command="${command#*ffmpeg}"; command="${command% -f *}"
+ command="framemd5 $command"
+ ;;
+ *-f\ crc\ -)
+ command="${command#*ffmpeg}"; command="${command% -f *}"
+ command="crc $command"
+ ;;
+ *)
+ echo "Unhandled command '$command'"
+ exit 1
+ ;;
+ esac
+ command=$(echo "$command" | sed 's/\$SAMPLES_PATH/$(SAMPLES)/g')
+ command=$(echo "$command" | sed 's/ *$//')
+ do_sql "SELECT expected_stdout FROM test_spec WHERE id=$id" | awk '/./{print}' > "$ref/$name"
+ printf "FATE_TESTS += fate-${name}\n" >&3
+ printf "fate-${name}: CMD = %s\n" "$command" >&3
+done
+
+exec 3<&-
+rm -f "$FATE_DB"
diff --git a/tests/fate-valgrind.supp b/tests/fate-valgrind.supp
new file mode 100644
index 0000000000..db72c54b7f
--- /dev/null
+++ b/tests/fate-valgrind.supp
@@ -0,0 +1,31 @@
+# seems fixed in newer versions
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577135
+{
+ zlib-inflate
+ Memcheck:Cond
+ fun:inflateReset2
+ fun:inflateInit2_
+}
+# libc overreads on purpose
+# http://sourceware.org/bugzilla/show_bug.cgi?id=12424
+{
+ eval-strtod
+ Memcheck:Addr8
+ fun:__GI___strncasecmp_l
+ fun:____strtod_l_internal
+ fun:av_strtod
+}
+{
+ eval-strtod
+ Memcheck:Value8
+ fun:__GI___strncasecmp_l
+ fun:____strtod_l_internal
+ fun:av_strtod
+}
+{
+ eval-strtod
+ Memcheck:Cond
+ fun:__GI___strncasecmp_l
+ fun:____strtod_l_internal
+ fun:av_strtod
+}
diff --git a/tests/fate.sh b/tests/fate.sh
index e04c8710d7..a7b15cd1b0 100755
--- a/tests/fate.sh
+++ b/tests/fate.sh
@@ -41,7 +41,7 @@ update()(
configure()(
cd ${build} || return
- ${src}/configure \
+ ${shell} ${src}/configure \
--prefix="${inst}" \
--samples="${samples}" \
--enable-gpl \
diff --git a/tests/fate/audio.mak b/tests/fate/audio.mak
index 32bf75774b..f694cb9bc3 100644
--- a/tests/fate/audio.mak
+++ b/tests/fate/audio.mak
@@ -10,23 +10,26 @@ fate-binkaudio-rdft: CMP = oneoff
fate-binkaudio-rdft: REF = $(SAMPLES)/bink/binkaudio_rdft.pcm
fate-binkaudio-rdft: FUZZ = 2
-FATE_TESTS += $(FATE_BINKAUDIO)
+FATE_AUDIO += $(FATE_BINKAUDIO)
fate-binkaudio: $(FATE_BINKAUDIO)
-FATE_TESTS += fate-dts
+FATE_AUDIO += fate-dts
fate-dts: CMD = pcm -i $(SAMPLES)/dts/dts.ts
fate-dts: CMP = oneoff
fate-dts: REF = $(SAMPLES)/dts/dts.pcm
-FATE_TESTS += fate-imc
+FATE_AUDIO += fate-imc
fate-imc: CMD = pcm -i $(SAMPLES)/imc/imc.avi
fate-imc: CMP = oneoff
fate-imc: REF = $(SAMPLES)/imc/imc.pcm
-FATE_TESTS += fate-nellymoser
+FATE_AUDIO += fate-nellymoser
fate-nellymoser: CMD = pcm -i $(SAMPLES)/nellymoser/nellymoser.flv
fate-nellymoser: CMP = oneoff
fate-nellymoser: REF = $(SAMPLES)/nellymoser/nellymoser.pcm
-FATE_TESTS += fate-ws_snd
+FATE_AUDIO += fate-ws_snd
fate-ws_snd: CMD = md5 -i $(SAMPLES)/vqa/ws_snd.vqa -f s16le
+
+FATE_TESTS += $(FATE_AUDIO)
+fate-audio: $(FATE_AUDIO) \ No newline at end of file
diff --git a/tests/fate/demux.mak b/tests/fate/demux.mak
index 0f83c8dfce..5e5c8e14fc 100644
--- a/tests/fate/demux.mak
+++ b/tests/fate/demux.mak
@@ -1,92 +1,95 @@
-FATE_TESTS += fate-adts-demux
+FATE_DEMUX += fate-adts-demux
fate-adts-demux: CMD = crc -i $(SAMPLES)/aac/ct_faac-adts.aac -acodec copy
-FATE_TESTS += fate-aea-demux
+FATE_DEMUX += fate-aea-demux
fate-aea-demux: CMD = crc -i $(SAMPLES)/aea/chirp.aea -acodec copy
-FATE_TESTS += fate-bink-demux
+FATE_DEMUX += fate-bink-demux
fate-bink-demux: CMD = crc -i $(SAMPLES)/bink/Snd0a7d9b58.dee -vn -acodec copy
-FATE_TESTS += fate-bmv
+FATE_DEMUX += fate-bmv
fate-bmv: CMD = framecrc -i $(SAMPLES)/bmv/SURFING-partial.BMV -pix_fmt rgb24
-FATE_TESTS += fate-caf
+FATE_DEMUX += fate-caf
fate-caf: CMD = crc -i $(SAMPLES)/caf/caf-pcm16.caf
-FATE_TESTS += fate-cdxl-demux
+FATE_DEMUX += fate-cdxl-demux
fate-cdxl-demux: CMD = framecrc -i $(SAMPLES)/cdxl/mirage.cdxl -vcodec copy -acodec copy
-FATE_TESTS += fate-cryo-apc
+FATE_DEMUX += fate-cryo-apc
fate-cryo-apc: CMD = md5 -i $(SAMPLES)/cryo-apc/cine007.APC -f s16le
-FATE_TESTS += fate-d-cinema-demux
+FATE_DEMUX += fate-d-cinema-demux
fate-d-cinema-demux: CMD = framecrc -i $(SAMPLES)/d-cinema/THX_Science_FLT_1920-partial.302 -acodec copy -pix_fmt rgb24
-FATE_TESTS += fate-funcom-iss
+FATE_DEMUX += fate-funcom-iss
fate-funcom-iss: CMD = md5 -i $(SAMPLES)/funcom-iss/0004010100.iss -f s16le
-FATE_TESTS += fate-interplay-mve-16bit
+FATE_DEMUX += fate-interplay-mve-16bit
fate-interplay-mve-16bit: CMD = framecrc -i $(SAMPLES)/interplay-mve/descent3-level5-16bit-partial.mve -pix_fmt rgb24
-FATE_TESTS += fate-interplay-mve-8bit
+FATE_DEMUX += fate-interplay-mve-8bit
fate-interplay-mve-8bit: CMD = framecrc -i $(SAMPLES)/interplay-mve/interplay-logo-2MB.mve -pix_fmt rgb24
-FATE_TESTS += fate-iv8-demux
+FATE_DEMUX += fate-iv8-demux
fate-iv8-demux: CMD = framecrc -i $(SAMPLES)/iv8/zzz-partial.mpg -vcodec copy
-FATE_TESTS += fate-lmlm4-demux
+FATE_DEMUX += fate-lmlm4-demux
fate-lmlm4-demux: CMD = framecrc -i $(SAMPLES)/lmlm4/LMLM4_CIFat30fps.divx -t 3 -acodec copy -vcodec copy
-FATE_TESTS += fate-maxis-xa
+FATE_DEMUX += fate-maxis-xa
fate-maxis-xa: CMD = framecrc -i $(SAMPLES)/maxis-xa/SC2KBUG.XA -frames:a 30 -c:a copy
-FATE_TESTS += fate-mtv
+FATE_DEMUX += fate-mtv
fate-mtv: CMD = framecrc -i $(SAMPLES)/mtv/comedian_auto-partial.mtv -acodec copy -pix_fmt rgb24
-FATE_TESTS += fate-mxf-demux
+FATE_DEMUX += fate-mxf-demux
fate-mxf-demux: CMD = framecrc -i $(SAMPLES)/mxf/C0023S01.mxf -acodec copy -vcodec copy
-FATE_TESTS += fate-nc-demux
+FATE_DEMUX += fate-nc-demux
fate-nc-demux: CMD = framecrc -i $(SAMPLES)/nc-camera/nc-sample-partial -vcodec copy
-FATE_TESTS += fate-nsv-demux
+FATE_DEMUX += fate-nsv-demux
fate-nsv-demux: CMD = framecrc -i $(SAMPLES)/nsv/witchblade-51kbps.nsv -t 6 -vcodec copy -acodec copy
-FATE_TESTS += fate-oma-demux
+FATE_DEMUX += fate-oma-demux
fate-oma-demux: CMD = crc -i $(SAMPLES)/oma/01-Untitled-partial.oma -acodec copy
-FATE_TESTS += fate-psx-str
+FATE_DEMUX += fate-psx-str
fate-psx-str: CMD = framecrc -i $(SAMPLES)/psx-str/descent-partial.str
-FATE_TESTS += fate-psx-str-v3-mdec
+FATE_DEMUX += fate-psx-str-v3-mdec
fate-psx-str-v3-mdec: CMD = framecrc -i $(SAMPLES)/psx-str/abc000_cut.str -an
-FATE_TESTS += fate-pva-demux
-fate-pva-demux: CMD = framecrc -idct simple -i $(SAMPLES)/pva/PVA_test-partial.pva -t 0.6 -acodec copy -vn
+FATE_DEMUX += fate-pva-demux
+fate-pva-demux: CMD = framecrc -idct simple -i $(SAMPLES)/pva/PVA_test-partial.pva -t 0.6 -acodec copy
-FATE_TESTS += fate-qcp-demux
+FATE_DEMUX += fate-qcp-demux
fate-qcp-demux: CMD = crc -i $(SAMPLES)/qcp/0036580847.QCP -acodec copy
-FATE_TESTS += fate-redcode-demux
+FATE_DEMUX += fate-redcode-demux
fate-redcode-demux: CMD = framecrc -i $(SAMPLES)/r3d/4MB-sample.r3d -vcodec copy -acodec copy
-FATE_TESTS += fate-sierra-vmd
+FATE_DEMUX += fate-sierra-vmd
fate-sierra-vmd: CMD = framecrc -i $(SAMPLES)/vmd/12.vmd -pix_fmt rgb24
-FATE_TESTS += fate-siff
+FATE_DEMUX += fate-siff
fate-siff: CMD = framecrc -i $(SAMPLES)/SIFF/INTRO_B.VB -t 3 -pix_fmt rgb24
-FATE_TESTS += fate-smjpeg
+FATE_DEMUX += fate-smjpeg
fate-smjpeg: CMD = framecrc -i $(SAMPLES)/smjpeg/scenwin.mjpg -vcodec copy
-FATE_TESTS += fate-westwood-aud
+FATE_DEMUX += fate-westwood-aud
fate-westwood-aud: CMD = md5 -i $(SAMPLES)/westwood-aud/excellent.aud -f s16le
-FATE_TESTS += fate-wtv-demux
+FATE_DEMUX += fate-wtv-demux
fate-wtv-demux: CMD = framecrc -i $(SAMPLES)/wtv/law-and-order-partial.wtv -vcodec copy -acodec copy
-FATE_TESTS += fate-xmv-demux
+FATE_DEMUX += fate-xmv-demux
fate-xmv-demux: CMD = framecrc -i $(SAMPLES)/xmv/logos1p.fmv -vcodec copy -acodec copy
-FATE_TESTS += fate-xwma-demux
+FATE_DEMUX += fate-xwma-demux
fate-xwma-demux: CMD = crc -i $(SAMPLES)/xwma/ergon.xwma -acodec copy
+
+FATE_TESTS += $(FATE_DEMUX)
+fate-demux: $(FATE_DEMUX)
diff --git a/tests/fate/ea.mak b/tests/fate/ea.mak
index 0c91de5141..20d9404c88 100644
--- a/tests/fate/ea.mak
+++ b/tests/fate/ea.mak
@@ -1,17 +1,20 @@
-FATE_TESTS += fate-ea-cdata
+FATE_EA += fate-ea-cdata
fate-ea-cdata: CMD = md5 -i $(SAMPLES)/ea-cdata/166b084d.46410f77.0009b440.24be960c.cdata -f s16le
-FATE_TESTS += fate-ea-cmv
+FATE_EA += fate-ea-cmv
fate-ea-cmv: CMD = framecrc -i $(SAMPLES)/ea-cmv/TITLE.CMV -pix_fmt rgb24
-FATE_TESTS += fate-ea-dct
+FATE_EA += fate-ea-dct
fate-ea-dct: CMD = framecrc -idct simple -i $(SAMPLES)/ea-dct/NFS2Esprit-partial.dct
-FATE_TESTS += fate-ea-tgq
+FATE_EA += fate-ea-tgq
fate-ea-tgq: CMD = framecrc -i $(SAMPLES)/ea-tgq/v27.tgq -an
-FATE_TESTS += fate-ea-tgv-ima-ea-eacs
+FATE_EA += fate-ea-tgv-ima-ea-eacs
fate-ea-tgv-ima-ea-eacs: CMD = framecrc -i $(SAMPLES)/ea-tgv/INTRO8K-partial.TGV -pix_fmt rgb24
-FATE_TESTS += fate-ea-tgv-ima-ea-sead
+FATE_EA += fate-ea-tgv-ima-ea-sead
fate-ea-tgv-ima-ea-sead: CMD = framecrc -i $(SAMPLES)/ea-tgv/INTEL_S.TGV -pix_fmt rgb24
+
+FATE_TESTS += $(FATE_EA)
+fate-ea: $(FATE_EA)
diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
index 4d77617fc3..0765f66e43 100644
--- a/tests/fate/h264.mak
+++ b/tests/fate/h264.mak
@@ -113,6 +113,10 @@ FATE_H264 = aud_mw_e \
frext-hcafr3_hhi_a \
frext-hcafr4_hhi_a \
frext-hcamff1_hhi_b \
+ frext-hi422fr10_sony_b \
+ frext-hi422fr13_sony_b \
+ frext-hi422fr1_sony_a \
+ frext-hi422fr6_sony_a \
frext-hpca_brcm_c \
frext-hpcadq_brcm_b \
frext-hpcafl_bcrm_c \
@@ -134,6 +138,13 @@ FATE_H264 = aud_mw_e \
frext-pph10i5_panasonic_a \
frext-pph10i6_panasonic_a \
frext-pph10i7_panasonic_a \
+ frext-pph422i1_panasonic_a \
+ frext-pph422i2_panasonic_a \
+ frext-pph422i3_panasonic_a \
+ frext-pph422i4_panasonic_a \
+ frext-pph422i5_panasonic_a \
+ frext-pph422i6_panasonic_a \
+ frext-pph422i7_panasonic_a \
hcbp2_hhi_a \
hcmp1_hhi_a \
ls_sva_d \
@@ -180,178 +191,189 @@ FATE_H264 := $(FATE_H264:%=fate-h264-conformance-%) \
FATE_TESTS += $(FATE_H264)
fate-h264: $(FATE_H264)
-fate-h264-conformance-aud_mw_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/AUD_MW_E.264
-fate-h264-conformance-ba1_ft_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/BA1_FT_C.264
-fate-h264-conformance-ba1_sony_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/BA1_Sony_D.jsv
-fate-h264-conformance-ba2_sony_f: CMD = framecrc -i $(SAMPLES)/h264-conformance/BA2_Sony_F.jsv
-fate-h264-conformance-ba3_sva_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/BA3_SVA_C.264
-fate-h264-conformance-ba_mw_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/BA_MW_D.264
-fate-h264-conformance-bamq1_jvc_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/BAMQ1_JVC_C.264
-fate-h264-conformance-bamq2_jvc_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/BAMQ2_JVC_C.264
-fate-h264-conformance-banm_mw_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/BANM_MW_D.264
-fate-h264-conformance-basqp1_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/BASQP1_Sony_C.jsv
-fate-h264-conformance-caba1_sony_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABA1_Sony_D.jsv
-fate-h264-conformance-caba1_sva_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABA1_SVA_B.264
-fate-h264-conformance-caba2_sony_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABA2_Sony_E.jsv
-fate-h264-conformance-caba2_sva_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABA2_SVA_B.264
-fate-h264-conformance-caba3_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABA3_Sony_C.jsv
-fate-h264-conformance-caba3_sva_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABA3_SVA_B.264
-fate-h264-conformance-caba3_toshiba_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABA3_TOSHIBA_E.264
-fate-h264-conformance-cabac_mot_fld0_full: CMD = framecrc -i $(SAMPLES)/h264-conformance/camp_mot_fld0_full.26l
-fate-h264-conformance-cabac_mot_frm0_full: CMD = framecrc -i $(SAMPLES)/h264-conformance/camp_mot_frm0_full.26l
-fate-h264-conformance-cabac_mot_mbaff0_full: CMD = framecrc -i $(SAMPLES)/h264-conformance/camp_mot_mbaff0_full.26l
-fate-h264-conformance-cabac_mot_picaff0_full: CMD = framecrc -i $(SAMPLES)/h264-conformance/camp_mot_picaff0_full.26l
-fate-h264-conformance-cabaci3_sony_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABACI3_Sony_B.jsv
-fate-h264-conformance-cabast3_sony_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABAST3_Sony_E.jsv
-fate-h264-conformance-cabastbr3_sony_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABASTBR3_Sony_B.jsv
-fate-h264-conformance-cabref3_sand_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/CABREF3_Sand_D.264
-fate-h264-conformance-cacqp3_sony_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/CACQP3_Sony_D.jsv
-fate-h264-conformance-cafi1_sva_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAFI1_SVA_C.264
-fate-h264-conformance-cama1_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMA1_Sony_C.jsv
-fate-h264-conformance-cama1_toshiba_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMA1_TOSHIBA_B.264
-fate-h264-conformance-cama1_vtc_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/cama1_vtc_c.avc
-fate-h264-conformance-cama2_vtc_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/cama2_vtc_b.avc
-fate-h264-conformance-cama3_sand_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMA3_Sand_E.264
-fate-h264-conformance-cama3_vtc_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/cama3_vtc_b.avc
-fate-h264-conformance-camaci3_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMACI3_Sony_C.jsv
-fate-h264-conformance-camanl1_toshiba_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMANL1_TOSHIBA_B.264
-fate-h264-conformance-camanl2_toshiba_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMANL2_TOSHIBA_B.264
-fate-h264-conformance-camanl3_sand_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMANL3_Sand_E.264
-fate-h264-conformance-camasl3_sony_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMASL3_Sony_B.jsv
-fate-h264-conformance-camp_mot_mbaff_l30: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMP_MOT_MBAFF_L30.26l
-fate-h264-conformance-camp_mot_mbaff_l31: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAMP_MOT_MBAFF_L31.26l
-fate-h264-conformance-canl1_sony_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANL1_Sony_E.jsv
-fate-h264-conformance-canl1_sva_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANL1_SVA_B.264
-fate-h264-conformance-canl1_toshiba_g: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANL1_TOSHIBA_G.264
-fate-h264-conformance-canl2_sony_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANL2_Sony_E.jsv
-fate-h264-conformance-canl2_sva_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANL2_SVA_B.264
-fate-h264-conformance-canl3_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANL3_Sony_C.jsv
-fate-h264-conformance-canl3_sva_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANL3_SVA_B.264
-fate-h264-conformance-canl4_sva_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANL4_SVA_B.264
-fate-h264-conformance-canlma2_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANLMA2_Sony_C.jsv
-fate-h264-conformance-canlma3_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CANLMA3_Sony_C.jsv
-fate-h264-conformance-capa1_toshiba_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAPA1_TOSHIBA_B.264
-fate-h264-conformance-capama3_sand_f: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAPAMA3_Sand_F.264
-fate-h264-conformance-capcm1_sand_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAPCM1_Sand_E.264
-fate-h264-conformance-capcmnl1_sand_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAPCMNL1_Sand_E.264
-fate-h264-conformance-capm3_sony_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAPM3_Sony_D.jsv
-fate-h264-conformance-caqp1_sony_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAQP1_Sony_B.jsv
-fate-h264-conformance-cavlc_mot_fld0_full_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/cvmp_mot_fld0_full_B.26l
-fate-h264-conformance-cavlc_mot_frm0_full_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/cvmp_mot_frm0_full_B.26l
-fate-h264-conformance-cavlc_mot_mbaff0_full_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/cvmp_mot_mbaff0_full_B.26l
-fate-h264-conformance-cavlc_mot_picaff0_full_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/cvmp_mot_picaff0_full_B.26l
-fate-h264-conformance-cawp1_toshiba_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAWP1_TOSHIBA_E.264
-fate-h264-conformance-cawp5_toshiba_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CAWP5_TOSHIBA_E.264
-fate-h264-conformance-ci1_ft_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CI1_FT_B.264
-fate-h264-conformance-ci_mw_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/CI_MW_D.264
-fate-h264-conformance-cvbs3_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVBS3_Sony_C.jsv
-fate-h264-conformance-cvcanlma2_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVCANLMA2_Sony_C.jsv
-fate-h264-conformance-cvfi1_sony_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVFI1_Sony_D.jsv
-fate-h264-conformance-cvfi1_sva_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVFI1_SVA_C.264
-fate-h264-conformance-cvfi2_sony_h: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVFI2_Sony_H.jsv
-fate-h264-conformance-cvfi2_sva_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVFI2_SVA_C.264
-fate-h264-conformance-cvma1_sony_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVMA1_Sony_D.jsv
-fate-h264-conformance-cvma1_toshiba_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVMA1_TOSHIBA_B.264
-fate-h264-conformance-cvmanl1_toshiba_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVMANL1_TOSHIBA_B.264
-fate-h264-conformance-cvmanl2_toshiba_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVMANL2_TOSHIBA_B.264
-fate-h264-conformance-cvmapaqp3_sony_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVMAPAQP3_Sony_E.jsv
-fate-h264-conformance-cvmaqp2_sony_g: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVMAQP2_Sony_G.jsv
-fate-h264-conformance-cvmaqp3_sony_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVMAQP3_Sony_D.jsv
-fate-h264-conformance-cvmp_mot_fld_l30_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVMP_MOT_FLD_L30_B.26l
-fate-h264-conformance-cvmp_mot_frm_l31_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVMP_MOT_FRM_L31_B.26l
-fate-h264-conformance-cvnlfi1_sony_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVNLFI1_Sony_C.jsv
-fate-h264-conformance-cvnlfi2_sony_h: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVNLFI2_Sony_H.jsv
-fate-h264-conformance-cvpa1_toshiba_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVPA1_TOSHIBA_B.264
-fate-h264-conformance-cvpcmnl1_sva_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVPCMNL1_SVA_C.264
-fate-h264-conformance-cvpcmnl2_sva_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVPCMNL2_SVA_C.264
-fate-h264-conformance-cvwp1_toshiba_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVWP1_TOSHIBA_E.264
-fate-h264-conformance-cvwp2_toshiba_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVWP2_TOSHIBA_E.264
-fate-h264-conformance-cvwp3_toshiba_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVWP3_TOSHIBA_E.264
-fate-h264-conformance-cvwp5_toshiba_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/CVWP5_TOSHIBA_E.264
-fate-h264-conformance-fi1_sony_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/FI1_Sony_E.jsv
-fate-h264-conformance-frext-alphaconformanceg: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/test8b43.264
-fate-h264-conformance-frext-bcrm_freh10: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/freh10.264 -vsync 0
-fate-h264-conformance-frext-brcm_freh11: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/freh11.264 -vsync 0
-fate-h264-conformance-frext-brcm_freh3: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/freh3.264
-fate-h264-conformance-frext-brcm_freh4: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/freh4.264 -vsync 0
-fate-h264-conformance-frext-brcm_freh5: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/freh5.264
-fate-h264-conformance-frext-brcm_freh8: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/freh8.264
-fate-h264-conformance-frext-brcm_freh9: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/freh9.264
-fate-h264-conformance-frext-freh12_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/Freh12_B.264
-fate-h264-conformance-frext-freh1_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/Freh1_B.264
-fate-h264-conformance-frext-freh2_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/Freh2_B.264
-fate-h264-conformance-frext-freh6: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/freh6.264 -vsync 0
-fate-h264-conformance-frext-freh7_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/Freh7_B.264 -vsync 0
-fate-h264-conformance-frext-frext01_jvc_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/FREXT01_JVC_D.264
-fate-h264-conformance-frext-frext02_jvc_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/FREXT02_JVC_C.264
-fate-h264-conformance-frext-frext1_panasonic_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/FRExt1_Panasonic.avc
-fate-h264-conformance-frext-frext2_panasonic_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/FRExt2_Panasonic.avc -vsync 0
-fate-h264-conformance-frext-frext3_panasonic_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/FRExt3_Panasonic.avc
-fate-h264-conformance-frext-frext4_panasonic_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/FRExt4_Panasonic.avc
-fate-h264-conformance-frext-frext_mmco4_sony_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/FRExt_MMCO4_Sony_B.264
-fate-h264-conformance-frext-hcaff1_hhi_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HCAFF1_HHI.264
-fate-h264-conformance-frext-hcafr1_hhi_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HCAFR1_HHI.264
-fate-h264-conformance-frext-hcafr2_hhi_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HCAFR2_HHI.264
-fate-h264-conformance-frext-hcafr3_hhi_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HCAFR3_HHI.264
-fate-h264-conformance-frext-hcafr4_hhi_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HCAFR4_HHI.264
-fate-h264-conformance-frext-hcamff1_hhi_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HCAMFF1_HHI.264
-fate-h264-conformance-frext-hpca_brcm_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCA_BRCM_C.264
-fate-h264-conformance-frext-hpcadq_brcm_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCADQ_BRCM_B.264
-fate-h264-conformance-frext-hpcafl_bcrm_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCAFL_BRCM_C.264 -vsync 0
-fate-h264-conformance-frext-hpcaflnl_bcrm_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCAFLNL_BRCM_C.264 -vsync 0
-fate-h264-conformance-frext-hpcalq_brcm_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCALQ_BRCM_B.264
-fate-h264-conformance-frext-hpcamapalq_bcrm_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCAMAPALQ_BRCM_B.264 -vsync 0
-fate-h264-conformance-frext-hpcamolq_brcm_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCAMOLQ_BRCM_B.264
-fate-h264-conformance-frext-hpcanl_brcm_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCANL_BRCM_C.264
-fate-h264-conformance-frext-hpcaq2lq_brcm_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCAQ2LQ_BRCM_B.264
-fate-h264-conformance-frext-hpcv_brcm_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCV_BRCM_A.264
-fate-h264-conformance-frext-hpcvfl_bcrm_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCVFL_BRCM_A.264 -vsync 0
-fate-h264-conformance-frext-hpcvflnl_bcrm_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCVFLNL_BRCM_A.264 -vsync 0
-fate-h264-conformance-frext-hpcvmolq_brcm_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCVMOLQ_BRCM_B.264
-fate-h264-conformance-frext-hpcvnl_brcm_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/HPCVNL_BRCM_A.264
-fate-h264-conformance-frext-pph10i1_panasonic_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/PPH10I1_Panasonic_A.264 -pix_fmt yuv420p10le
-fate-h264-conformance-frext-pph10i2_panasonic_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/PPH10I2_Panasonic_A.264 -pix_fmt yuv420p10le
-fate-h264-conformance-frext-pph10i3_panasonic_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/PPH10I3_Panasonic_A.264 -pix_fmt yuv420p10le
-fate-h264-conformance-frext-pph10i4_panasonic_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/PPH10I4_Panasonic_A.264 -pix_fmt yuv420p10le
-fate-h264-conformance-frext-pph10i5_panasonic_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/PPH10I5_Panasonic_A.264 -pix_fmt yuv420p10le
-fate-h264-conformance-frext-pph10i6_panasonic_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/PPH10I6_Panasonic_A.264 -pix_fmt yuv420p10le
-fate-h264-conformance-frext-pph10i7_panasonic_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/FRext/PPH10I7_Panasonic_A.264 -pix_fmt yuv420p10le
-fate-h264-conformance-hcbp2_hhi_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/HCBP2_HHI_A.264
-fate-h264-conformance-hcmp1_hhi_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/HCMP1_HHI_A.264
-fate-h264-conformance-ls_sva_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/LS_SVA_D.264
-fate-h264-conformance-midr_mw_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/MIDR_MW_D.264
-fate-h264-conformance-mps_mw_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/MPS_MW_A.264
-fate-h264-conformance-mr1_bt_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/MR1_BT_A.h264
-fate-h264-conformance-mr1_mw_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/MR1_MW_A.264
-fate-h264-conformance-mr2_mw_a: CMD = framecrc -i $(SAMPLES)/h264-conformance/MR2_MW_A.264
-fate-h264-conformance-mr2_tandberg_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/MR2_TANDBERG_E.264
-fate-h264-conformance-mr3_tandberg_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/MR3_TANDBERG_B.264
-fate-h264-conformance-mr4_tandberg_c: CMD = framecrc -strict 1 -i $(SAMPLES)/h264-conformance/MR4_TANDBERG_C.264
-fate-h264-conformance-mr5_tandberg_c: CMD = framecrc -strict 1 -i $(SAMPLES)/h264-conformance/MR5_TANDBERG_C.264
-fate-h264-conformance-mr6_bt_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/MR6_BT_B.h264
-fate-h264-conformance-mr7_bt_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/MR7_BT_B.h264
-fate-h264-conformance-mr8_bt_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/MR8_BT_B.h264
-fate-h264-conformance-mr9_bt_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/MR9_BT_B.h264
-fate-h264-conformance-mv1_brcm_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/src19td.IBP.264
-fate-h264-conformance-nl1_sony_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/NL1_Sony_D.jsv
-fate-h264-conformance-nl2_sony_h: CMD = framecrc -i $(SAMPLES)/h264-conformance/NL2_Sony_H.jsv
-fate-h264-conformance-nl3_sva_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/NL3_SVA_E.264
-fate-h264-conformance-nlmq1_jvc_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/NLMQ1_JVC_C.264
-fate-h264-conformance-nlmq2_jvc_c: CMD = framecrc -i $(SAMPLES)/h264-conformance/NLMQ2_JVC_C.264
-fate-h264-conformance-nrf_mw_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/NRF_MW_E.264
-fate-h264-conformance-sharp_mp_field_1_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/Sharp_MP_Field_1_B.jvt
-fate-h264-conformance-sharp_mp_field_2_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/Sharp_MP_Field_2_B.jvt
-fate-h264-conformance-sharp_mp_field_3_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/Sharp_MP_Field_3_B.jvt
-fate-h264-conformance-sharp_mp_paff_1r2: CMD = framecrc -i $(SAMPLES)/h264-conformance/Sharp_MP_PAFF_1r2.jvt
-fate-h264-conformance-sharp_mp_paff_2r: CMD = framecrc -i $(SAMPLES)/h264-conformance/Sharp_MP_PAFF_2.jvt
-fate-h264-conformance-sl1_sva_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/SL1_SVA_B.264
-fate-h264-conformance-sva_ba1_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/SVA_BA1_B.264
-fate-h264-conformance-sva_ba2_d: CMD = framecrc -i $(SAMPLES)/h264-conformance/SVA_BA2_D.264
-fate-h264-conformance-sva_base_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/SVA_Base_B.264
-fate-h264-conformance-sva_cl1_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/SVA_CL1_E.264
-fate-h264-conformance-sva_fm1_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/SVA_FM1_E.264
-fate-h264-conformance-sva_nl1_b: CMD = framecrc -i $(SAMPLES)/h264-conformance/SVA_NL1_B.264
-fate-h264-conformance-sva_nl2_e: CMD = framecrc -i $(SAMPLES)/h264-conformance/SVA_NL2_E.264
+fate-h264-conformance-aud_mw_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/AUD_MW_E.264
+fate-h264-conformance-ba1_ft_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/BA1_FT_C.264
+fate-h264-conformance-ba1_sony_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/BA1_Sony_D.jsv
+fate-h264-conformance-ba2_sony_f: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/BA2_Sony_F.jsv
+fate-h264-conformance-ba3_sva_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/BA3_SVA_C.264
+fate-h264-conformance-ba_mw_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/BA_MW_D.264
+fate-h264-conformance-bamq1_jvc_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/BAMQ1_JVC_C.264
+fate-h264-conformance-bamq2_jvc_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/BAMQ2_JVC_C.264
+fate-h264-conformance-banm_mw_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/BANM_MW_D.264
+fate-h264-conformance-basqp1_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/BASQP1_Sony_C.jsv
+fate-h264-conformance-caba1_sony_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABA1_Sony_D.jsv
+fate-h264-conformance-caba1_sva_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABA1_SVA_B.264
+fate-h264-conformance-caba2_sony_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABA2_Sony_E.jsv
+fate-h264-conformance-caba2_sva_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABA2_SVA_B.264
+fate-h264-conformance-caba3_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABA3_Sony_C.jsv
+fate-h264-conformance-caba3_sva_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABA3_SVA_B.264
+fate-h264-conformance-caba3_toshiba_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABA3_TOSHIBA_E.264
+fate-h264-conformance-cabac_mot_fld0_full: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/camp_mot_fld0_full.26l
+fate-h264-conformance-cabac_mot_frm0_full: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/camp_mot_frm0_full.26l
+fate-h264-conformance-cabac_mot_mbaff0_full: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/camp_mot_mbaff0_full.26l
+fate-h264-conformance-cabac_mot_picaff0_full: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/camp_mot_picaff0_full.26l
+fate-h264-conformance-cabaci3_sony_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABACI3_Sony_B.jsv
+fate-h264-conformance-cabast3_sony_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABAST3_Sony_E.jsv
+fate-h264-conformance-cabastbr3_sony_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABASTBR3_Sony_B.jsv
+fate-h264-conformance-cabref3_sand_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CABREF3_Sand_D.264
+fate-h264-conformance-cacqp3_sony_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CACQP3_Sony_D.jsv
+fate-h264-conformance-cafi1_sva_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAFI1_SVA_C.264
+fate-h264-conformance-cama1_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMA1_Sony_C.jsv
+fate-h264-conformance-cama1_toshiba_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMA1_TOSHIBA_B.264
+fate-h264-conformance-cama1_vtc_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/cama1_vtc_c.avc
+fate-h264-conformance-cama2_vtc_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/cama2_vtc_b.avc
+fate-h264-conformance-cama3_sand_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMA3_Sand_E.264
+fate-h264-conformance-cama3_vtc_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/cama3_vtc_b.avc
+fate-h264-conformance-camaci3_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMACI3_Sony_C.jsv
+fate-h264-conformance-camanl1_toshiba_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMANL1_TOSHIBA_B.264
+fate-h264-conformance-camanl2_toshiba_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMANL2_TOSHIBA_B.264
+fate-h264-conformance-camanl3_sand_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMANL3_Sand_E.264
+fate-h264-conformance-camasl3_sony_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMASL3_Sony_B.jsv
+fate-h264-conformance-camp_mot_mbaff_l30: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMP_MOT_MBAFF_L30.26l
+fate-h264-conformance-camp_mot_mbaff_l31: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAMP_MOT_MBAFF_L31.26l
+fate-h264-conformance-canl1_sony_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANL1_Sony_E.jsv
+fate-h264-conformance-canl1_sva_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANL1_SVA_B.264
+fate-h264-conformance-canl1_toshiba_g: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANL1_TOSHIBA_G.264
+fate-h264-conformance-canl2_sony_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANL2_Sony_E.jsv
+fate-h264-conformance-canl2_sva_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANL2_SVA_B.264
+fate-h264-conformance-canl3_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANL3_Sony_C.jsv
+fate-h264-conformance-canl3_sva_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANL3_SVA_B.264
+fate-h264-conformance-canl4_sva_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANL4_SVA_B.264
+fate-h264-conformance-canlma2_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANLMA2_Sony_C.jsv
+fate-h264-conformance-canlma3_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CANLMA3_Sony_C.jsv
+fate-h264-conformance-capa1_toshiba_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAPA1_TOSHIBA_B.264
+fate-h264-conformance-capama3_sand_f: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAPAMA3_Sand_F.264
+fate-h264-conformance-capcm1_sand_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAPCM1_Sand_E.264
+fate-h264-conformance-capcmnl1_sand_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAPCMNL1_Sand_E.264
+fate-h264-conformance-capm3_sony_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAPM3_Sony_D.jsv
+fate-h264-conformance-caqp1_sony_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAQP1_Sony_B.jsv
+fate-h264-conformance-cavlc_mot_fld0_full_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/cvmp_mot_fld0_full_B.26l
+fate-h264-conformance-cavlc_mot_frm0_full_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/cvmp_mot_frm0_full_B.26l
+fate-h264-conformance-cavlc_mot_mbaff0_full_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/cvmp_mot_mbaff0_full_B.26l
+fate-h264-conformance-cavlc_mot_picaff0_full_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/cvmp_mot_picaff0_full_B.26l
+fate-h264-conformance-cawp1_toshiba_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAWP1_TOSHIBA_E.264
+fate-h264-conformance-cawp5_toshiba_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CAWP5_TOSHIBA_E.264
+fate-h264-conformance-ci1_ft_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CI1_FT_B.264
+fate-h264-conformance-ci_mw_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CI_MW_D.264
+fate-h264-conformance-cvbs3_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVBS3_Sony_C.jsv
+fate-h264-conformance-cvcanlma2_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVCANLMA2_Sony_C.jsv
+fate-h264-conformance-cvfi1_sony_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVFI1_Sony_D.jsv
+fate-h264-conformance-cvfi1_sva_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVFI1_SVA_C.264
+fate-h264-conformance-cvfi2_sony_h: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVFI2_Sony_H.jsv
+fate-h264-conformance-cvfi2_sva_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVFI2_SVA_C.264
+fate-h264-conformance-cvma1_sony_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVMA1_Sony_D.jsv
+fate-h264-conformance-cvma1_toshiba_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVMA1_TOSHIBA_B.264
+fate-h264-conformance-cvmanl1_toshiba_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVMANL1_TOSHIBA_B.264
+fate-h264-conformance-cvmanl2_toshiba_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVMANL2_TOSHIBA_B.264
+fate-h264-conformance-cvmapaqp3_sony_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVMAPAQP3_Sony_E.jsv
+fate-h264-conformance-cvmaqp2_sony_g: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVMAQP2_Sony_G.jsv
+fate-h264-conformance-cvmaqp3_sony_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVMAQP3_Sony_D.jsv
+fate-h264-conformance-cvmp_mot_fld_l30_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVMP_MOT_FLD_L30_B.26l
+fate-h264-conformance-cvmp_mot_frm_l31_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVMP_MOT_FRM_L31_B.26l
+fate-h264-conformance-cvnlfi1_sony_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVNLFI1_Sony_C.jsv
+fate-h264-conformance-cvnlfi2_sony_h: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVNLFI2_Sony_H.jsv
+fate-h264-conformance-cvpa1_toshiba_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVPA1_TOSHIBA_B.264
+fate-h264-conformance-cvpcmnl1_sva_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVPCMNL1_SVA_C.264
+fate-h264-conformance-cvpcmnl2_sva_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVPCMNL2_SVA_C.264
+fate-h264-conformance-cvwp1_toshiba_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVWP1_TOSHIBA_E.264
+fate-h264-conformance-cvwp2_toshiba_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVWP2_TOSHIBA_E.264
+fate-h264-conformance-cvwp3_toshiba_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVWP3_TOSHIBA_E.264
+fate-h264-conformance-cvwp5_toshiba_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/CVWP5_TOSHIBA_E.264
+fate-h264-conformance-fi1_sony_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FI1_Sony_E.jsv
+fate-h264-conformance-frext-alphaconformanceg: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/test8b43.264
+fate-h264-conformance-frext-bcrm_freh10: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/freh10.264 -vsync drop
+fate-h264-conformance-frext-brcm_freh11: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/freh11.264 -vsync drop
+fate-h264-conformance-frext-brcm_freh3: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/freh3.264
+fate-h264-conformance-frext-brcm_freh4: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/freh4.264 -vsync drop
+fate-h264-conformance-frext-brcm_freh5: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/freh5.264
+fate-h264-conformance-frext-brcm_freh8: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/freh8.264
+fate-h264-conformance-frext-brcm_freh9: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/freh9.264
+fate-h264-conformance-frext-freh12_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/Freh12_B.264
+fate-h264-conformance-frext-freh1_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/Freh1_B.264
+fate-h264-conformance-frext-freh2_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/Freh2_B.264
+fate-h264-conformance-frext-freh6: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/freh6.264 -vsync drop
+fate-h264-conformance-frext-freh7_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/Freh7_B.264 -vsync drop
+fate-h264-conformance-frext-frext01_jvc_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/FREXT01_JVC_D.264
+fate-h264-conformance-frext-frext02_jvc_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/FREXT02_JVC_C.264
+fate-h264-conformance-frext-frext1_panasonic_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/FRExt1_Panasonic.avc
+fate-h264-conformance-frext-frext2_panasonic_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/FRExt2_Panasonic.avc -vsync 0
+fate-h264-conformance-frext-frext3_panasonic_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/FRExt3_Panasonic.avc
+fate-h264-conformance-frext-frext4_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/FRExt4_Panasonic.avc
+fate-h264-conformance-frext-frext_mmco4_sony_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/FRExt_MMCO4_Sony_B.264
+fate-h264-conformance-frext-hcaff1_hhi_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HCAFF1_HHI.264
+fate-h264-conformance-frext-hcafr1_hhi_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HCAFR1_HHI.264
+fate-h264-conformance-frext-hcafr2_hhi_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HCAFR2_HHI.264
+fate-h264-conformance-frext-hcafr3_hhi_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HCAFR3_HHI.264
+fate-h264-conformance-frext-hcafr4_hhi_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HCAFR4_HHI.264
+fate-h264-conformance-frext-hcamff1_hhi_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HCAMFF1_HHI.264
+fate-h264-conformance-frext-hi422fr10_sony_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/Hi422FR10_SONY_B.264
+fate-h264-conformance-frext-hi422fr13_sony_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/Hi422FR13_SONY_B.264 -pix_fmt yuv422p10le
+fate-h264-conformance-frext-hi422fr1_sony_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/Hi422FR1_SONY_A.jsv
+fate-h264-conformance-frext-hi422fr6_sony_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/Hi422FR6_SONY_A.jsv -pix_fmt yuv422p10le
+fate-h264-conformance-frext-hpca_brcm_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCA_BRCM_C.264
+fate-h264-conformance-frext-hpcadq_brcm_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCADQ_BRCM_B.264
+fate-h264-conformance-frext-hpcafl_bcrm_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCAFL_BRCM_C.264 -vsync drop
+fate-h264-conformance-frext-hpcaflnl_bcrm_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCAFLNL_BRCM_C.264 -vsync drop
+fate-h264-conformance-frext-hpcalq_brcm_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCALQ_BRCM_B.264
+fate-h264-conformance-frext-hpcamapalq_bcrm_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCAMAPALQ_BRCM_B.264 -vsync 0
+fate-h264-conformance-frext-hpcamolq_brcm_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCAMOLQ_BRCM_B.264
+fate-h264-conformance-frext-hpcanl_brcm_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCANL_BRCM_C.264
+fate-h264-conformance-frext-hpcaq2lq_brcm_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCAQ2LQ_BRCM_B.264
+fate-h264-conformance-frext-hpcv_brcm_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCV_BRCM_A.264
+fate-h264-conformance-frext-hpcvfl_bcrm_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCVFL_BRCM_A.264 -vsync drop
+fate-h264-conformance-frext-hpcvflnl_bcrm_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCVFLNL_BRCM_A.264 -vsync drop
+fate-h264-conformance-frext-hpcvmolq_brcm_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCVMOLQ_BRCM_B.264
+fate-h264-conformance-frext-hpcvnl_brcm_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/HPCVNL_BRCM_A.264
+fate-h264-conformance-frext-pph10i1_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH10I1_Panasonic_A.264 -pix_fmt yuv420p10le
+fate-h264-conformance-frext-pph10i2_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH10I2_Panasonic_A.264 -pix_fmt yuv420p10le
+fate-h264-conformance-frext-pph10i3_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH10I3_Panasonic_A.264 -pix_fmt yuv420p10le
+fate-h264-conformance-frext-pph10i4_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH10I4_Panasonic_A.264 -pix_fmt yuv420p10le
+fate-h264-conformance-frext-pph10i5_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH10I5_Panasonic_A.264 -pix_fmt yuv420p10le
+fate-h264-conformance-frext-pph10i6_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH10I6_Panasonic_A.264 -pix_fmt yuv420p10le
+fate-h264-conformance-frext-pph10i7_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH10I7_Panasonic_A.264 -pix_fmt yuv420p10le
+fate-h264-conformance-frext-pph422i1_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH422I1_Panasonic_A.264 -pix_fmt yuv422p10le
+fate-h264-conformance-frext-pph422i2_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH422I2_Panasonic_A.264 -pix_fmt yuv422p10le
+fate-h264-conformance-frext-pph422i3_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH422I3_Panasonic_A.264 -pix_fmt yuv422p10le
+fate-h264-conformance-frext-pph422i4_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH422I4_Panasonic_A.264 -pix_fmt yuv422p10le
+fate-h264-conformance-frext-pph422i5_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH422I5_Panasonic_A.264 -pix_fmt yuv422p10le
+fate-h264-conformance-frext-pph422i6_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH422I6_Panasonic_A.264 -pix_fmt yuv422p10le
+fate-h264-conformance-frext-pph422i7_panasonic_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/FRext/PPH422I7_Panasonic_A.264 -pix_fmt yuv422p10le
+fate-h264-conformance-hcbp2_hhi_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/HCBP2_HHI_A.264
+fate-h264-conformance-hcmp1_hhi_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/HCMP1_HHI_A.264
+fate-h264-conformance-ls_sva_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/LS_SVA_D.264
+fate-h264-conformance-midr_mw_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MIDR_MW_D.264
+fate-h264-conformance-mps_mw_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MPS_MW_A.264
+fate-h264-conformance-mr1_bt_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MR1_BT_A.h264
+fate-h264-conformance-mr1_mw_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MR1_MW_A.264
+fate-h264-conformance-mr2_mw_a: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MR2_MW_A.264
+fate-h264-conformance-mr2_tandberg_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MR2_TANDBERG_E.264
+fate-h264-conformance-mr3_tandberg_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MR3_TANDBERG_B.264
+fate-h264-conformance-mr4_tandberg_c: CMD = framecrc -vsync drop -strict 1 -i $(SAMPLES)/h264-conformance/MR4_TANDBERG_C.264
+fate-h264-conformance-mr5_tandberg_c: CMD = framecrc -vsync drop -strict 1 -i $(SAMPLES)/h264-conformance/MR5_TANDBERG_C.264
+fate-h264-conformance-mr6_bt_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MR6_BT_B.h264
+fate-h264-conformance-mr7_bt_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MR7_BT_B.h264
+fate-h264-conformance-mr8_bt_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MR8_BT_B.h264
+fate-h264-conformance-mr9_bt_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/MR9_BT_B.h264
+fate-h264-conformance-mv1_brcm_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/src19td.IBP.264
+fate-h264-conformance-nl1_sony_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/NL1_Sony_D.jsv
+fate-h264-conformance-nl2_sony_h: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/NL2_Sony_H.jsv
+fate-h264-conformance-nl3_sva_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/NL3_SVA_E.264
+fate-h264-conformance-nlmq1_jvc_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/NLMQ1_JVC_C.264
+fate-h264-conformance-nlmq2_jvc_c: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/NLMQ2_JVC_C.264
+fate-h264-conformance-nrf_mw_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/NRF_MW_E.264
+fate-h264-conformance-sharp_mp_field_1_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/Sharp_MP_Field_1_B.jvt
+fate-h264-conformance-sharp_mp_field_2_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/Sharp_MP_Field_2_B.jvt
+fate-h264-conformance-sharp_mp_field_3_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/Sharp_MP_Field_3_B.jvt
+fate-h264-conformance-sharp_mp_paff_1r2: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/Sharp_MP_PAFF_1r2.jvt
+fate-h264-conformance-sharp_mp_paff_2r: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/Sharp_MP_PAFF_2.jvt
+fate-h264-conformance-sl1_sva_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/SL1_SVA_B.264
+fate-h264-conformance-sva_ba1_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/SVA_BA1_B.264
+fate-h264-conformance-sva_ba2_d: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/SVA_BA2_D.264
+fate-h264-conformance-sva_base_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/SVA_Base_B.264
+fate-h264-conformance-sva_cl1_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/SVA_CL1_E.264
+fate-h264-conformance-sva_fm1_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/SVA_FM1_E.264
+fate-h264-conformance-sva_nl1_b: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/SVA_NL1_B.264
+fate-h264-conformance-sva_nl2_e: CMD = framecrc -vsync drop -i $(SAMPLES)/h264-conformance/SVA_NL2_E.264
fate-h264-interlace-crop: CMD = framecrc -i $(SAMPLES)/h264/interlaced_crop.mp4 -vframes 3
fate-h264-lossless: CMD = framecrc -i $(SAMPLES)/h264/lossless.h264
diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index dc78302e63..60c6cb26ef 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -1,10 +1,10 @@
-FATE_TESTS += fate-dpx
+FATE_IMAGE += fate-dpx
fate-dpx: CMD = framecrc -i $(SAMPLES)/dpx/lighthouse_rgb48.dpx
-FATE_TESTS += fate-pictor
+FATE_IMAGE += fate-pictor
fate-pictor: CMD = framecrc -i $(SAMPLES)/pictor/MFISH.PIC -pix_fmt rgb24
-FATE_TESTS += fate-ptx
+FATE_IMAGE += fate-ptx
fate-ptx: CMD = framecrc -i $(SAMPLES)/ptx/_113kw_pic.ptx -pix_fmt rgb24
FATE_SUNRASTER += fate-sunraster-1bit-raw
@@ -28,7 +28,7 @@ fate-sunraster-24bit-raw: CMD = framecrc -i $(SAMPLES)/sunraster/lena-24bit-raw.
FATE_SUNRASTER += fate-sunraster-24bit-rle
fate-sunraster-24bit-rle: CMD = framecrc -i $(SAMPLES)/sunraster/lena-24bit-rle.sun
-FATE_TESTS += $(FATE_SUNRASTER)
+FATE_IMAGE += $(FATE_SUNRASTER)
fate-sunraster: $(FATE_SUNRASTER)
FATE_TARGA = CBW8 \
@@ -45,7 +45,7 @@ FATE_TARGA = CBW8 \
FATE_TARGA := $(FATE_TARGA:%=fate-targa-conformance-%) \
fate-targa-top-to-bottom
-FATE_TESTS += $(FATE_TARGA)
+FATE_IMAGE += $(FATE_TARGA)
fate-targa: $(FATE_TARGA)
fate-targa-conformance-CBW8: CMD = framecrc -i $(SAMPLES)/targa-conformance/CBW8.TGA
@@ -67,5 +67,9 @@ fate-tiff-fax-g3: CMD = framecrc -i $(SAMPLES)/CCITT_fax/G31D.TIF
FATE_TIFF += fate-tiff-fax-g3s
fate-tiff-fax-g3s: CMD = framecrc -i $(SAMPLES)/CCITT_fax/G31DS.TIF
-FATE_TESTS += $(FATE_TIFF)
+FATE_IMAGE += $(FATE_TIFF)
fate-tiff: $(FATE_TIFF)
+
+FATE_TESTS += $(FATE_IMAGE)
+fate-image: $(FATE_IMAGE)
+
diff --git a/tests/fate/libavutil.mak b/tests/fate/libavutil.mak
index a65b724305..37dc99e469 100644
--- a/tests/fate/libavutil.mak
+++ b/tests/fate/libavutil.mak
@@ -1,38 +1,45 @@
-FATE_TESTS += fate-adler32
+FATE_LIBAVUTIL += fate-adler32
fate-adler32: libavutil/adler32-test$(EXESUF)
fate-adler32: CMD = run libavutil/adler32-test
fate-adler32: REF = /dev/null
-FATE_TESTS += fate-aes
+FATE_LIBAVUTIL += fate-aes
fate-aes: libavutil/aes-test$(EXESUF)
fate-aes: CMD = run libavutil/aes-test
fate-aes: REF = /dev/null
-FATE_TESTS += fate-base64
+FATE_LIBAVUTIL += fate-base64
fate-base64: libavutil/base64-test$(EXESUF)
fate-base64: CMD = run libavutil/base64-test
-FATE_TESTS += fate-crc
+FATE_LIBAVUTIL += fate-crc
fate-crc: libavutil/crc-test$(EXESUF)
fate-crc: CMD = run libavutil/crc-test
-FATE_TESTS += fate-des
+FATE_LIBAVUTIL += fate-des
fate-des: libavutil/des-test$(EXESUF)
fate-des: CMD = run libavutil/des-test
fate-des: REF = /dev/null
-FATE_TESTS += fate-eval
+FATE_LIBAVUTIL += fate-eval
fate-eval: libavutil/eval-test$(EXESUF)
fate-eval: CMD = run libavutil/eval-test
-FATE_TESTS += fate-fifo
+FATE_LIBAVUTIL += fate-fifo
fate-fifo: libavutil/fifo-test$(EXESUF)
fate-fifo: CMD = run libavutil/fifo-test
-FATE_TESTS += fate-md5
+FATE_LIBAVUTIL += fate-md5
fate-md5: libavutil/md5-test$(EXESUF)
fate-md5: CMD = run libavutil/md5-test
-FATE_TESTS += fate-sha
+FATE_LIBAVUTIL += fate-random_seed
+fate-random_seed: libavutil/random_seed-test$(EXESUF)
+fate-random_seed: CMD = run libavutil/random_seed-test
+
+FATE_LIBAVUTIL += fate-sha
fate-sha: libavutil/sha-test$(EXESUF)
fate-sha: CMD = run libavutil/sha-test
+
+FATE_TESTS += $(FATE_LIBAVUTIL)
+fate-libavutil: $(FATE_LIBAVUTIL)
diff --git a/tests/fate/lossless-audio.mak b/tests/fate/lossless-audio.mak
index f35d659264..0c33671afa 100644
--- a/tests/fate/lossless-audio.mak
+++ b/tests/fate/lossless-audio.mak
@@ -1,14 +1,18 @@
-FATE_TESTS += fate-lossless-alac
+FATE_LOSSLESS_AUDIO += fate-lossless-alac
fate-lossless-alac: CMD = md5 -i $(SAMPLES)/lossless-audio/inside.m4a -f s16le
-FATE_TESTS += fate-lossless-meridianaudio
+FATE_LOSSLESS_AUDIO += fate-lossless-meridianaudio
fate-lossless-meridianaudio: CMD = md5 -i $(SAMPLES)/lossless-audio/luckynight-partial.mlp -f s16le
-FATE_TESTS += fate-lossless-monkeysaudio
+FATE_LOSSLESS_AUDIO += fate-lossless-monkeysaudio
fate-lossless-monkeysaudio: CMD = md5 -i $(SAMPLES)/lossless-audio/luckynight-partial.ape -f s16le
-FATE_TESTS += fate-lossless-shorten
+FATE_LOSSLESS_AUDIO += fate-lossless-shorten
fate-lossless-shorten: CMD = md5 -i $(SAMPLES)/lossless-audio/luckynight-partial.shn -f s16le
-FATE_TESTS += fate-lossless-tta
+FATE_LOSSLESS_AUDIO += fate-lossless-tta
fate-lossless-tta: CMD = crc -i $(SAMPLES)/lossless-audio/inside.tta
+
+FATE_TESTS += $(FATE_LOSSLESS_AUDIO)
+fate-lossless-audio: $(FATE_LOSSLESS_AUDIO)
+
diff --git a/tests/fate/lossless-video.mak b/tests/fate/lossless-video.mak
index d87abc522a..bf2df177de 100644
--- a/tests/fate/lossless-video.mak
+++ b/tests/fate/lossless-video.mak
@@ -4,17 +4,23 @@ fate-loco-rgb: CMD = framecrc -i $(SAMPLES)/loco/pig-loco-rgb.avi
FATE_LOCO += fate-loco-yuy2
fate-loco-yuy2: CMD = framecrc -i $(SAMPLES)/loco/pig-loco-0.avi
-FATE_TESTS += $(FATE_LOCO)
+FATE_LOSSLESS_VIDEO += $(FATE_LOCO)
fate-loco: $(FATE_LOCO)
-FATE_TESTS += fate-msrle-8bit
+FATE_LOSSLESS_VIDEO += fate-msrle-8bit
fate-msrle-8bit: CMD = framecrc -i $(SAMPLES)/msrle/Search-RLE.avi -pix_fmt rgb24
-FATE_TESTS += fate-mszh
+FATE_LOSSLESS_VIDEO += fate-mszh
fate-mszh: CMD = framecrc -i $(SAMPLES)/lcl/mszh-1frame.avi
-FATE_TESTS += fate-vble
+FATE_LOSSLESS_VIDEO += fate-vble
fate-vble: CMD = framecrc -i $(SAMPLES)/vble/flowers-partial-2MB.avi
-FATE_TESTS += fate-zlib
+FATE_LOSSLESS_VIDEO += fate-zlib
fate-zlib: CMD = framecrc -i $(SAMPLES)/lcl/zlib-1frame.avi
+
+FATE_LOSSLESS_VIDEO += fate-zerocodec
+fate-zerocodec: CMD = framecrc -i $(SAMPLES)/zerocodec/sample-zeco.avi
+
+FATE_TESTS += $(FATE_LOSSLESS_VIDEO)
+fate-lossless-video: $(FATE_LOSSLESS_VIDEO)
diff --git a/tests/fate/mapchan.mak b/tests/fate/mapchan.mak
new file mode 100644
index 0000000000..ebc7ee36ea
--- /dev/null
+++ b/tests/fate/mapchan.mak
@@ -0,0 +1,14 @@
+FATE_MAPCHAN += fate-mapchan-6ch-extract-2
+fate-mapchan-6ch-extract-2: tests/data/mapchan-6ch.sw
+fate-mapchan-6ch-extract-2: CMD = avconv -ar 22050 -ac 6 -f s16le -i $(TARGET_PATH)/tests/data/mapchan-6ch.sw -map_channel 0.0.0 -f wav md5: -map_channel 0.0.1 -f wav md5:
+
+FATE_MAPCHAN += fate-mapchan-6ch-extract-2-downmix-mono
+fate-mapchan-6ch-extract-2-downmix-mono: tests/data/mapchan-6ch.sw
+fate-mapchan-6ch-extract-2-downmix-mono: CMD = md5 -ar 22050 -ac 6 -f s16le -i $(TARGET_PATH)/tests/data/mapchan-6ch.sw -map_channel 0.0.1 -map_channel 0.0.0 -ac 1 -f wav
+
+FATE_MAPCHAN += fate-mapchan-silent-mono
+fate-mapchan-silent-mono: tests/data/mapchan-mono.sw
+fate-mapchan-silent-mono: CMD = md5 -ar 22050 -ac 1 -f s16le -i $(TARGET_PATH)/tests/data/mapchan-mono.sw -map_channel -1 -map_channel 0.0.0 -f wav
+
+FATE_TESTS += $(FATE_MAPCHAN)
+fate-mapchan: $(FATE_MAPCHAN)
diff --git a/tests/fate/microsoft.mak b/tests/fate/microsoft.mak
index 5bc27b8855..16ba798e1d 100644
--- a/tests/fate/microsoft.mak
+++ b/tests/fate/microsoft.mak
@@ -1,4 +1,4 @@
-FATE_TESTS += fate-msmpeg4v1
+FATE_MICROSOFT += fate-msmpeg4v1
fate-msmpeg4v1: CMD = framecrc -flags +bitexact -dct fastint -idct simple -i $(SAMPLES)/msmpeg4v1/mpg4.avi -an
FATE_MSVIDEO1 += fate-msvideo1-16bit
@@ -7,7 +7,7 @@ fate-msvideo1-16bit: CMD = framecrc -i $(SAMPLES)/cram/clock-cram16.avi -pix_fmt
FATE_MSVIDEO1 += fate-msvideo1-8bit
fate-msvideo1-8bit: CMD = framecrc -i $(SAMPLES)/cram/skating.avi -t 1 -pix_fmt rgb24
-FATE_TESTS += $(FATE_MSVIDEO1)
+FATE_MICROSOFT += $(FATE_MSVIDEO1)
fate-msvideo1: $(FATE_MSVIDEO1)
FATE_WMV8_DRM += fate-wmv8-drm
@@ -17,7 +17,10 @@ fate-wmv8-drm: CMD = framecrc -cryptokey 137381538c84c068111902a59c5cf6c340247c3
FATE_WMV8_DRM += fate-wmv8-drm-nodec
fate-wmv8-drm-nodec: CMD = framecrc -cryptokey 137381538c84c068111902a59c5cf6c340247c39 -i $(SAMPLES)/wmv8/wmv_drm.wmv -acodec copy -vcodec copy
-FATE_TESTS += $(FATE_WMV8_DRM)
+#FATE_MICROSOFT += fate-wmv8-x8intra
+#fate-wmv8-x8intra: CMD = framecrc -flags +bitexact -idct 19 -i $(SAMPLES)/wmv8/wmv8_x8intra.wmv -an
+
+FATE_MICROSOFT += $(FATE_WMV8_DRM)
fate-wmv8_drm: $(FATE_WMV8_DRM)
FATE_VC1 += fate-vc1_sa00040
@@ -35,5 +38,8 @@ fate-vc1_sa20021: CMD = framecrc -i $(SAMPLES)/vc1/SA20021.vc1
FATE_VC1 += fate-vc1-ism
fate-vc1-ism: CMD = framecrc -i $(SAMPLES)/isom/vc1-wmapro.ism -an
-FATE_TESTS += $(FATE_VC1)
+FATE_MICROSOFT += $(FATE_VC1)
fate-vc1: $(FATE_VC1)
+
+FATE_TESTS += $(FATE_MICROSOFT)
+fate-microsoft: $(FATE_MICROSOFT)
diff --git a/tests/fate/prores.mak b/tests/fate/prores.mak
index fb6f6cb8cc..d211d3f4ae 100644
--- a/tests/fate/prores.mak
+++ b/tests/fate/prores.mak
@@ -7,8 +7,8 @@ FATE_PRORES = fate-prores-422 \
FATE_TESTS += $(FATE_PRORES)
fate-prores: $(FATE_PRORES)
-fate-prores-422: CMD = framecrc -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_422.mov -pix_fmt yuv422p10le
-fate-prores-422_hq: CMD = framecrc -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_422_HQ.mov -pix_fmt yuv422p10le
-fate-prores-422_lt: CMD = framecrc -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_422_LT.mov -pix_fmt yuv422p10le
-fate-prores-422_proxy: CMD = framecrc -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_422_Proxy.mov -pix_fmt yuv422p10le
-fate-prores-alpha: CMD = framecrc -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_with_Alpha.mov -pix_fmt yuv444p10le
+fate-prores-422: CMD = framecrc -flags +bitexact -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_422.mov -pix_fmt yuv422p10le
+fate-prores-422_hq: CMD = framecrc -flags +bitexact -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_422_HQ.mov -pix_fmt yuv422p10le
+fate-prores-422_lt: CMD = framecrc -flags +bitexact -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_422_LT.mov -pix_fmt yuv422p10le
+fate-prores-422_proxy: CMD = framecrc -flags +bitexact -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_422_Proxy.mov -pix_fmt yuv422p10le
+fate-prores-alpha: CMD = framecrc -flags +bitexact -i $(SAMPLES)/prores/Sequence_1-Apple_ProRes_with_Alpha.mov -pix_fmt yuv444p10le
diff --git a/tests/fate/qt.mak b/tests/fate/qt.mak
index 9b25306ad0..0afa401d7c 100644
--- a/tests/fate/qt.mak
+++ b/tests/fate/qt.mak
@@ -1,50 +1,53 @@
-FATE_TESTS += fate-8bps
+FATE_QT += fate-8bps
fate-8bps: CMD = framecrc -i $(SAMPLES)/8bps/full9iron-partial.mov -pix_fmt rgb24
-FATE_TESTS += fate-qdm2
+FATE_QT += fate-qdm2
fate-qdm2: CMD = pcm -i $(SAMPLES)/qt-surge-suite/surge-2-16-B-QDM2.mov
fate-qdm2: CMP = oneoff
fate-qdm2: REF = $(SAMPLES)/qt-surge-suite/surge-2-16-B-QDM2.pcm
fate-qdm2: FUZZ = 2
-FATE_TESTS += fate-qt-alaw-mono
+FATE_QT += fate-qt-alaw-mono
fate-qt-alaw-mono: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-1-16-B-alaw.mov -f s16le
-FATE_TESTS += fate-qt-alaw-stereo
+FATE_QT += fate-qt-alaw-stereo
fate-qt-alaw-stereo: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-2-16-B-alaw.mov -f s16le
-FATE_TESTS += fate-qt-ima4-mono
+FATE_QT += fate-qt-ima4-mono
fate-qt-ima4-mono: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-1-16-B-ima4.mov -f s16le
-FATE_TESTS += fate-qt-ima4-stereo
+FATE_QT += fate-qt-ima4-stereo
fate-qt-ima4-stereo: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-2-16-B-ima4.mov -f s16le
-FATE_TESTS += fate-qt-mac3-mono
+FATE_QT += fate-qt-mac3-mono
fate-qt-mac3-mono: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-1-8-MAC3.mov -f s16le
-FATE_TESTS += fate-qt-mac3-stereo
+FATE_QT += fate-qt-mac3-stereo
fate-qt-mac3-stereo: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-2-8-MAC3.mov -f s16le
-FATE_TESTS += fate-qt-mac6-mono
+FATE_QT += fate-qt-mac6-mono
fate-qt-mac6-mono: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-1-8-MAC6.mov -f s16le
-FATE_TESTS += fate-qt-mac6-stereo
+FATE_QT += fate-qt-mac6-stereo
fate-qt-mac6-stereo: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-2-8-MAC6.mov -f s16le
-FATE_TESTS += fate-qt-ulaw-mono
+FATE_QT += fate-qt-ulaw-mono
fate-qt-ulaw-mono: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-1-16-B-ulaw.mov -f s16le
-FATE_TESTS += fate-qt-ulaw-stereo
+FATE_QT += fate-qt-ulaw-stereo
fate-qt-ulaw-stereo: CMD = md5 -i $(SAMPLES)/qt-surge-suite/surge-2-16-B-ulaw.mov -f s16le
-FATE_TESTS += fate-quickdraw
+FATE_QT += fate-quickdraw
fate-quickdraw: CMD = framecrc -i $(SAMPLES)/quickdraw/Airplane.mov -pix_fmt rgb24
-FATE_TESTS += fate-rpza
+FATE_QT += fate-rpza
fate-rpza: CMD = framecrc -i $(SAMPLES)/rpza/rpza2.mov -t 2 -pix_fmt rgb24
-FATE_TESTS += fate-svq1
+FATE_QT += fate-svq1
fate-svq1: CMD = framecrc -i $(SAMPLES)/svq1/marymary-shackles.mov -an -t 10
-FATE_TESTS += fate-svq3
+FATE_QT += fate-svq3
fate-svq3: CMD = framecrc -i $(SAMPLES)/svq3/Vertical400kbit.sorenson3.mov -t 6 -an
+
+FATE_TESTS += $(FATE_QT)
+fate-qt: $(FATE_QT)
diff --git a/tests/fate/real.mak b/tests/fate/real.mak
index f0e4917b6a..84fed45b09 100644
--- a/tests/fate/real.mak
+++ b/tests/fate/real.mak
@@ -1,22 +1,22 @@
-FATE_TESTS += fate-real-14_4
+FATE_REAL += fate-real-14_4
fate-real-14_4: CMD = md5 -i $(SAMPLES)/real/ra3_in_rm_file.rm -f s16le
-FATE_TESTS += fate-ra-288
+FATE_REAL += fate-ra-288
fate-ra-288: CMD = pcm -i $(SAMPLES)/real/ra_288.rm
fate-ra-288: CMP = oneoff
fate-ra-288: REF = $(SAMPLES)/real/ra_288.pcm
fate-ra-288: FUZZ = 2
-FATE_TESTS += fate-ra-cook
+FATE_REAL += fate-ra-cook
fate-ra-cook: CMD = pcm -i $(SAMPLES)/real/ra_cook.rm
fate-ra-cook: CMP = oneoff
fate-ra-cook: REF = $(SAMPLES)/real/ra_cook.pcm
-FATE_TESTS += fate-rv30
+FATE_REAL += fate-rv30
fate-rv30: CMD = framecrc -flags +bitexact -dct fastint -idct simple -i $(SAMPLES)/real/rv30.rm -an
-FATE_TESTS += fate-real-rv40
-fate-real-rv40: CMD = framecrc -i $(SAMPLES)/real/spygames-2MB.rmvb -t 10 -an -vsync 0
+FATE_REAL += fate-real-rv40
+fate-real-rv40: CMD = framecrc -i $(SAMPLES)/real/spygames-2MB.rmvb -t 10 -an
FATE_SIPR += fate-sipr-5k0
fate-sipr-5k0: CMD = pcm -i $(SAMPLES)/sipr/sipr_5k0.rm
@@ -38,5 +38,8 @@ fate-sipr-16k: CMD = pcm -i $(SAMPLES)/sipr/sipr_16k.rm
fate-sipr-16k: CMP = oneoff
fate-sipr-16k: REF = $(SAMPLES)/sipr/sipr_16k.pcm
-FATE_TESTS += $(FATE_SIPR)
+FATE_REAL += $(FATE_SIPR)
fate-sipr: $(FATE_SIPR)
+
+FATE_TESTS += $(FATE_REAL)
+fate-real: $(FATE_REAL)
diff --git a/tests/fate/screen.mak b/tests/fate/screen.mak
index e6762ab6f9..1cc519dff8 100644
--- a/tests/fate/screen.mak
+++ b/tests/fate/screen.mak
@@ -1,8 +1,8 @@
# FIXME dropped frames in this test because of coarse timebase
-FATE_TESTS += fate-cscd
+FATE_SCREEN += fate-cscd
fate-cscd: CMD = framecrc -i $(SAMPLES)/CSCD/sample_video.avi -an -pix_fmt rgb24
-FATE_TESTS += fate-dxtory
+FATE_SCREEN += fate-dxtory
fate-dxtory: CMD = framecrc -i $(SAMPLES)/dxtory/dxtory_mic.avi
FATE_FRAPS += fate-fraps-v0
@@ -23,7 +23,7 @@ fate-fraps-v4: CMD = framecrc -i $(SAMPLES)/fraps/WoW_2006-11-03_14-58-17-19-nos
FATE_FRAPS += fate-fraps-v5
fate-fraps-v5: CMD = framecrc -i $(SAMPLES)/fraps/fraps-v5-bouncing-balls-partial.avi
-FATE_TESTS += $(FATE_FRAPS)
+FATE_SCREEN += $(FATE_FRAPS)
fate-fraps: $(FATE_FRAPS)
FATE_TSCC += fate-tscc-15bit
@@ -32,7 +32,7 @@ fate-tscc-15bit: CMD = framecrc -i $(SAMPLES)/tscc/oneminute.avi -t 15 -pix_fmt
FATE_TSCC += fate-tscc-32bit
fate-tscc-32bit: CMD = framecrc -i $(SAMPLES)/tscc/2004-12-17-uebung9-partial.avi -pix_fmt rgb24 -an
-FATE_TESTS += $(FATE_TSCC)
+FATE_SCREEN += $(FATE_TSCC)
fate-tscc: $(FATE_TSCC)
FATE_VMNC += fate-vmnc-16bit
@@ -41,7 +41,7 @@ fate-vmnc-16bit: CMD = framecrc -i $(SAMPLES)/VMnc/test.avi -pix_fmt rgb24
FATE_VMNC += fate-vmnc-32bit
fate-vmnc-32bit: CMD = framecrc -i $(SAMPLES)/VMnc/VS2k5DebugDemo-01-partial.avi -pix_fmt rgb24
-FATE_TESTS += $(FATE_VMNC)
+FATE_SCREEN += $(FATE_VMNC)
fate-vmnc: $(FATE_VMNC)
FATE_ZMBV += fate-zmbv-8bit
@@ -56,5 +56,8 @@ fate-zmbv-16bit: CMD = framecrc -i $(SAMPLES)/zmbv/zmbv_16bit.avi -pix_fmt rgb24
FATE_ZMBV += fate-zmbv-32bit
fate-zmbv-32bit: CMD = framecrc -i $(SAMPLES)/zmbv/zmbv_32bit.avi -pix_fmt rgb24 -t 25
-FATE_TESTS += $(FATE_ZMBV)
+FATE_SCREEN += $(FATE_ZMBV)
fate-zmbv: $(FATE_ZMBV)
+
+FATE_TESTS += $(FATE_SCREEN)
+fate-screen: $(FATE_SCREEN)
diff --git a/tests/fate/video.mak b/tests/fate/video.mak
index 5c53c11fca..02aa39598c 100644
--- a/tests/fate/video.mak
+++ b/tests/fate/video.mak
@@ -4,49 +4,49 @@ fate-4xm-1: CMD = framecrc -i $(SAMPLES)/4xm/version1.4xm -pix_fmt rgb24 -an
FATE_4XM += fate-4xm-2
fate-4xm-2: CMD = framecrc -i $(SAMPLES)/4xm/version2.4xm -pix_fmt rgb24 -an
-FATE_TESTS += $(FATE_4XM)
+FATE_VIDEO += $(FATE_4XM)
fate-4xm: $(FATE_4XM)
-FATE_TESTS += fate-aasc
+FATE_VIDEO += fate-aasc
fate-aasc: CMD = framecrc -i $(SAMPLES)/aasc/AASC-1.5MB.AVI -pix_fmt rgb24
-FATE_TESTS += fate-alg-mm
+FATE_VIDEO += fate-alg-mm
fate-alg-mm: CMD = framecrc -i $(SAMPLES)/alg-mm/ibmlogo.mm -an -pix_fmt rgb24
-FATE_TESTS += fate-amv
+FATE_VIDEO += fate-amv
fate-amv: CMD = framecrc -idct simple -i $(SAMPLES)/amv/MTV_high_res_320x240_sample_Penguin_Joke_MTV_from_WMV.amv -t 10
-FATE_TESTS += fate-ansi
+FATE_VIDEO += fate-ansi
fate-ansi: CMD = framecrc -chars_per_frame 44100 -i $(SAMPLES)/ansi/TRE-IOM5.ANS -pix_fmt rgb24
-FATE_TESTS += fate-armovie-escape124
+FATE_VIDEO += fate-armovie-escape124
fate-armovie-escape124: CMD = framecrc -i $(SAMPLES)/rpl/ESCAPE.RPL -pix_fmt rgb24
-FATE_TESTS += fate-auravision-v1
+FATE_VIDEO += fate-auravision-v1
fate-auravision-v1: CMD = framecrc -i $(SAMPLES)/auravision/SOUVIDEO.AVI -an
-FATE_TESTS += fate-auravision-v2
+FATE_VIDEO += fate-auravision-v2
fate-auravision-v2: CMD = framecrc -i $(SAMPLES)/auravision/salma-hayek-in-ugly-betty-partial-avi -an
-FATE_TESTS += fate-bethsoft-vid
+FATE_VIDEO += fate-bethsoft-vid
fate-bethsoft-vid: CMD = framecrc -i $(SAMPLES)/bethsoft-vid/ANIM0001.VID -t 5 -pix_fmt rgb24
-FATE_TESTS += fate-bfi
+FATE_VIDEO += fate-bfi
fate-bfi: CMD = framecrc -i $(SAMPLES)/bfi/2287.bfi -pix_fmt rgb24
-FATE_TESTS += fate-bink-video
+FATE_VIDEO += fate-bink-video
fate-bink-video: CMD = framecrc -i $(SAMPLES)/bink/hol2br.bik
-FATE_TESTS += fate-cdgraphics
+FATE_VIDEO += fate-cdgraphics
fate-cdgraphics: CMD = framecrc -i $(SAMPLES)/cdgraphics/BrotherJohn.cdg -pix_fmt rgb24 -t 1
-FATE_TESTS += fate-cljr
+FATE_VIDEO += fate-cljr
fate-cljr: CMD = framecrc -i $(SAMPLES)/cljr/testcljr-partial.avi
-FATE_TESTS += fate-corepng
+FATE_VIDEO += fate-corepng
fate-corepng: CMD = framecrc -i $(SAMPLES)/png1/corepng-partial.avi
-FATE_TESTS += fate-creatureshock-avs
+FATE_VIDEO += fate-creatureshock-avs
fate-creatureshock-avs: CMD = framecrc -i $(SAMPLES)/creatureshock-avs/OUTATIME.AVS -pix_fmt rgb24
FATE_CVID += fate-cvid-partial
@@ -58,19 +58,19 @@ fate-cvid-palette: CMD = framecrc -i $(SAMPLES)/cvid/catfight-cvid-pal8-partial.
FATE_CVID += fate-cvid-grayscale
fate-cvid-grayscale: CMD = framecrc -i $(SAMPLES)/cvid/pcitva15.avi -an
-FATE_TESTS += $(FATE_CVID)
+FATE_VIDEO += $(FATE_CVID)
fate-cvid: $(FATE_CVID)
-FATE_TESTS += fate-cyberia-c93
+FATE_VIDEO += fate-cyberia-c93
fate-cyberia-c93: CMD = framecrc -i $(SAMPLES)/cyberia-c93/intro1.c93 -t 3 -pix_fmt rgb24
-FATE_TESTS += fate-cyuv
+FATE_VIDEO += fate-cyuv
fate-cyuv: CMD = framecrc -i $(SAMPLES)/cyuv/cyuv.avi
-FATE_TESTS += fate-delphine-cin
+FATE_VIDEO += fate-delphine-cin
fate-delphine-cin: CMD = framecrc -i $(SAMPLES)/delphine-cin/LOGO-partial.CIN -pix_fmt rgb24
-FATE_TESTS += fate-deluxepaint-anm
+FATE_VIDEO += fate-deluxepaint-anm
fate-deluxepaint-anm: CMD = framecrc -i $(SAMPLES)/deluxepaint-anm/INTRO1.ANM -pix_fmt rgb24
FATE_TRUEMOTION1 += fate-truemotion1-15
@@ -79,10 +79,10 @@ fate-truemotion1-15: CMD = framecrc -i $(SAMPLES)/duck/phant2-940.duk -pix_fmt r
FATE_TRUEMOTION1 += fate-truemotion1-24
fate-truemotion1-24: CMD = framecrc -i $(SAMPLES)/duck/sonic3dblast_intro-partial.avi -pix_fmt rgb24
-FATE_TESTS += $(FATE_TRUEMOTION1)
+FATE_VIDEO += $(FATE_TRUEMOTION1)
fate-truemotion1: $(FATE_TRUEMOTION1)
-FATE_TESTS += fate-truemotion2
+FATE_VIDEO += fate-truemotion2
fate-truemotion2: CMD = framecrc -i $(SAMPLES)/duck/tm20.avi
FATE_DXA += fate-dxa-feeble
@@ -91,7 +91,7 @@ fate-dxa-feeble: CMD = framecrc -i $(SAMPLES)/dxa/meetsquid.dxa -t 2 -pix_fmt rg
FATE_DXA += fate-dxa-scummvm
fate-dxa-scummvm: CMD = framecrc -i $(SAMPLES)/dxa/scummvm.dxa -pix_fmt rgb24
-FATE_TESTS += $(FATE_DXA)
+FATE_VIDEO += $(FATE_DXA)
fate-dxa: $(FATE_DXA)
FATE_FLIC += fate-flic-af11-palette-change
@@ -103,16 +103,16 @@ fate-flic-af12: CMD = framecrc -i $(SAMPLES)/fli/jj00c2.fli -pix_fmt rgb24
FATE_FLIC += fate-flic-magiccarpet
fate-flic-magiccarpet: CMD = framecrc -i $(SAMPLES)/fli/intel.dat -pix_fmt rgb24
-FATE_TESTS += $(FATE_FLIC)
+FATE_VIDEO += $(FATE_FLIC)
fate-flic: $(FATE_FLIC)
-FATE_TESTS += fate-frwu
+FATE_VIDEO += fate-frwu
fate-frwu: CMD = framecrc -i $(SAMPLES)/frwu/frwu.avi
-FATE_TESTS += fate-id-cin-video
+FATE_VIDEO += fate-id-cin-video
fate-id-cin-video: CMD = framecrc -i $(SAMPLES)/idcin/idlog-2MB.cin -pix_fmt rgb24
-FATE_TESTS-$(CONFIG_AVFILTER) += fate-idroq-video-encode
+FATE_VIDEO-$(CONFIG_AVFILTER) += fate-idroq-video-encode
fate-idroq-video-encode: CMD = md5 -f image2 -vcodec pgmyuv -i $(SAMPLES)/ffmpeg-synthetic/vsynth1/%02d.pgm -sws_flags +bitexact -vf pad=512:512:80:112 -f RoQ -t 0.2
FATE_IFF += fate-iff-byterun1
@@ -124,53 +124,52 @@ fate-iff-fibonacci: CMD = md5 -i $(SAMPLES)/iff/dasboot-in-compressed -f s16le
FATE_IFF += fate-iff-ilbm
fate-iff-ilbm: CMD = framecrc -i $(SAMPLES)/iff/lms-matriks.ilbm -pix_fmt rgb24
-FATE_TESTS += $(FATE_IFF)
+FATE_VIDEO += $(FATE_IFF)
fate-iff: $(FATE_IFF)
-FATE_TESTS += fate-kmvc
+FATE_VIDEO += fate-kmvc
fate-kmvc: CMD = framecrc -i $(SAMPLES)/KMVC/LOGO1.AVI -an -t 3 -pix_fmt rgb24
-FATE_TESTS += fate-mimic
+FATE_VIDEO += fate-mimic
fate-mimic: CMD = framecrc -idct simple -i $(SAMPLES)/mimic/mimic2-womanloveffmpeg.cam
-FATE_TESTS += fate-mjpegb
+FATE_VIDEO += fate-mjpegb
fate-mjpegb: CMD = framecrc -idct simple -flags +bitexact -i $(SAMPLES)/mjpegb/mjpegb_part.mov -an
-FATE_TESTS += fate-motionpixels
+FATE_VIDEO += fate-motionpixels
fate-motionpixels: CMD = framecrc -i $(SAMPLES)/motion-pixels/INTRO-partial.MVI -an -pix_fmt rgb24 -vframes 111
-FATE_TESTS += fate-mpeg2-field-enc
+FATE_VIDEO += fate-mpeg2-field-enc
fate-mpeg2-field-enc: CMD = framecrc -flags +bitexact -dct fastint -idct simple -i $(SAMPLES)/mpeg2/mpeg2_field_encoding.ts -an
-# FIXME dropped frames in this test because of coarse timebase
-FATE_TESTS += fate-nuv
+FATE_VIDEO += fate-nuv
fate-nuv: CMD = framecrc -idct simple -i $(SAMPLES)/nuv/Today.nuv -an
-FATE_TESTS += fate-qpeg
+FATE_VIDEO += fate-qpeg
fate-qpeg: CMD = framecrc -i $(SAMPLES)/qpeg/Clock.avi -an -pix_fmt rgb24
-FATE_TESTS += fate-r210
+FATE_VIDEO += fate-r210
fate-r210: CMD = framecrc -i $(SAMPLES)/r210/r210.avi -pix_fmt rgb48le
-FATE_TESTS += fate-rl2
+FATE_VIDEO += fate-rl2
fate-rl2: CMD = framecrc -i $(SAMPLES)/rl2/Z4915300.RL2 -pix_fmt rgb24 -an
-FATE_TESTS += fate-smacker
+FATE_VIDEO += fate-smacker
fate-smacker: CMD = framecrc -i $(SAMPLES)/smacker/wetlogo.smk -pix_fmt rgb24
-FATE_TESTS += fate-smc
+FATE_VIDEO += fate-smc
fate-smc: CMD = framecrc -i $(SAMPLES)/smc/cass_schi.qt -pix_fmt rgb24
-FATE_TESTS += fate-sp5x
+FATE_VIDEO += fate-sp5x
fate-sp5x: CMD = framecrc -idct simple -i $(SAMPLES)/sp5x/sp5x_problem.avi
-FATE_TESTS += fate-sub-srt
+FATE_VIDEO += fate-sub-srt
fate-sub-srt: CMD = md5 -i $(SAMPLES)/sub/SubRip_capability_tester.srt -f ass
-FATE_TESTS += fate-tiertex-seq
+FATE_VIDEO += fate-tiertex-seq
fate-tiertex-seq: CMD = framecrc -i $(SAMPLES)/tiertex-seq/Gameover.seq -pix_fmt rgb24
-FATE_TESTS += fate-tmv
+FATE_VIDEO += fate-tmv
fate-tmv: CMD = framecrc -i $(SAMPLES)/tmv/pop-partial.tmv -pix_fmt rgb24
FATE_TXD += fate-txd-16bpp
@@ -179,39 +178,42 @@ fate-txd-16bpp: CMD = framecrc -i $(SAMPLES)/txd/misc.txd -pix_fmt bgra -an
FATE_TXD += fate-txd-pal8
fate-txd-pal8: CMD = framecrc -i $(SAMPLES)/txd/outro.txd -pix_fmt rgb24 -an
-FATE_TESTS += $(FATE_TXD)
+FATE_VIDEO += $(FATE_TXD)
fate-txd: $(FATE_TXD)
-FATE_TESTS += fate-ulti
+FATE_VIDEO += fate-ulti
fate-ulti: CMD = framecrc -i $(SAMPLES)/ulti/hit12w.avi -an
-FATE_TESTS += fate-v210
+FATE_VIDEO += fate-v210
fate-v210: CMD = framecrc -i $(SAMPLES)/v210/v210_720p-partial.avi -pix_fmt yuv422p16be -an
-FATE_TESTS += fate-v410dec
+FATE_VIDEO += fate-v410dec
fate-v410dec: CMD = framecrc -i $(SAMPLES)/v410/lenav410.mov -pix_fmt yuv444p10le
-FATE_TESTS += fate-v410enc
+FATE_VIDEO += fate-v410enc
fate-v410enc: tests/vsynth1/00.pgm
fate-v410enc: CMD = md5 -f image2 -vcodec pgmyuv -i $(TARGET_PATH)/tests/vsynth1/%02d.pgm -flags +bitexact -vcodec v410 -f avi
-FATE_TESTS += fate-vcr1
+FATE_VIDEO += fate-vcr1
fate-vcr1: CMD = framecrc -i $(SAMPLES)/vcr1/VCR1test.avi -an
-FATE_TESTS += fate-videoxl
+FATE_VIDEO += fate-videoxl
fate-videoxl: CMD = framecrc -i $(SAMPLES)/vixl/pig-vixl.avi
-FATE_TESTS += fate-vqa-cc
+FATE_VIDEO += fate-vqa-cc
fate-vqa-cc: CMD = framecrc -i $(SAMPLES)/vqa/cc-demo1-partial.vqa -pix_fmt rgb24
-FATE_TESTS += fate-wc3movie-xan
+FATE_VIDEO += fate-wc3movie-xan
fate-wc3movie-xan: CMD = framecrc -i $(SAMPLES)/wc3movie/SC_32-part.MVE -pix_fmt rgb24
-FATE_TESTS += fate-wnv1
+FATE_VIDEO += fate-wnv1
fate-wnv1: CMD = framecrc -i $(SAMPLES)/wnv1/wnv1-codec.avi -an
-FATE_TESTS += fate-yop
+FATE_VIDEO += fate-yop
fate-yop: CMD = framecrc -i $(SAMPLES)/yop/test1.yop -pix_fmt rgb24 -an
-FATE_TESTS += fate-xxan-wc4
+FATE_VIDEO += fate-xxan-wc4
fate-xxan-wc4: CMD = framecrc -i $(SAMPLES)/wc4-xan/wc4trailer-partial.avi -an
+
+FATE_TESTS += $(FATE_VIDEO)
+fate-video: $(FATE_VIDEO)
diff --git a/tests/fate/voice.mak b/tests/fate/voice.mak
index 834b0ffc1f..b9bf8e1e51 100644
--- a/tests/fate/voice.mak
+++ b/tests/fate/voice.mak
@@ -1,7 +1,7 @@
-FATE_TESTS += fate-g722dec-1
+FATE_VOICE += fate-g722dec-1
fate-g722dec-1: CMD = framecrc -i $(SAMPLES)/g722/conf-adminmenu-162.g722
-FATE_TESTS += fate-g722enc
+FATE_VOICE += fate-g722enc
fate-g722enc: tests/data/asynth-16000-1.sw
fate-g722enc: CMD = md5 -ar 16000 -ac 1 -f s16le -i $(TARGET_PATH)/tests/data/asynth-16000-1.sw -acodec g722 -ac 1 -f g722
@@ -11,15 +11,18 @@ fate-gsm-ms: CMD = framecrc -i $(SAMPLES)/gsm/ciao.wav
FATE_GSM += fate-gsm-toast
fate-gsm-toast: CMD = framecrc -i $(SAMPLES)/gsm/sample-gsm-8000.mov -t 10
-FATE_TESTS += $(FATE_GSM)
+FATE_VOICE += $(FATE_GSM)
fate-gsm: $(FATE_GSM)
-FATE_TESTS += fate-qcelp
+FATE_VOICE += fate-qcelp
fate-qcelp: CMD = pcm -i $(SAMPLES)/qcp/0036580847.QCP
fate-qcelp: CMP = oneoff
fate-qcelp: REF = $(SAMPLES)/qcp/0036580847.pcm
-FATE_TESTS += fate-truespeech
+FATE_VOICE += fate-truespeech
fate-truespeech: CMD = pcm -i $(SAMPLES)/truespeech/a6.wav
fate-truespeech: CMP = oneoff
fate-truespeech: REF = $(SAMPLES)/truespeech/a6.pcm
+
+FATE_TESTS += $(FATE_VOICE)
+fate-voice: $(FATE_VOICE)
diff --git a/tests/fate/vqf.mak b/tests/fate/vqf.mak
index 846b1404bb..04c531de0f 100644
--- a/tests/fate/vqf.mak
+++ b/tests/fate/vqf.mak
@@ -1,7 +1,10 @@
-FATE_TESTS += fate-twinvq
+FATE_VQF += fate-twinvq
fate-twinvq: CMD = pcm -i $(SAMPLES)/vqf/achterba.vqf
fate-twinvq: CMP = oneoff
fate-twinvq: REF = $(SAMPLES)/vqf/achterba.pcm
-FATE_TESTS += fate-vqf-demux
+FATE_VQF += fate-vqf-demux
fate-vqf-demux: CMD = md5 -i $(SAMPLES)/vqf/achterba.vqf -acodec copy -f framecrc
+
+FATE_TESTS += $(FATE_VQF)
+fate-vqf: $(FATE_VQF)
diff --git a/tests/fate_config.sh.template b/tests/fate_config.sh.template
new file mode 100644
index 0000000000..f7bd625429
--- /dev/null
+++ b/tests/fate_config.sh.template
@@ -0,0 +1,25 @@
+slot= # some unique identifier
+repo=git://source.ffmpeg.org/ffmpeg.git # the source repository
+samples= # path to samples directory
+workdir= # directory in which to do all the work
+#fate_recv="ssh -T fate@fate.ffmpeg.org" # command to submit report
+comment= # optional description
+
+# the following are optional and map to configure options
+arch=
+cpu=
+cross_prefix=
+cc=
+target_os=
+sysroot=
+target_exec=
+target_path=
+extra_cflags=
+extra_ldflags=
+extra_libs=
+extra_conf= # extra configure options not covered above
+
+#make= # name of GNU make if not 'make'
+makeopts= # extra options passed to 'make'
+#tar= # command to create a tar archive from its arguments on stdout,
+ # defaults to 'tar c'
diff --git a/tests/ffserver-regression.sh b/tests/ffserver-regression.sh
new file mode 100755
index 0000000000..11e4a5419e
--- /dev/null
+++ b/tests/ffserver-regression.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf
+#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_.asf>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf
+
+. $(dirname $0)/md5.sh
+
+FILES=$(sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' $2 | grep -v html)
+
+rm -f tests/feed1.ffm
+./ffserver -d -f "$2" 2> /dev/null &
+FFSERVER_PID=$!
+echo "Waiting for feeds to startup..."
+sleep 2
+(
+ cd tests/data || exit $?
+ rm -f ff-* ffserver.regression
+ WGET_OPTIONS="--user-agent=NSPlayer -q --proxy=off -e verbose=off -e server_response=off"
+ for file in $FILES; do
+ if [ $(expr $file : "a-*") != 0 ]; then
+ wget $WGET_OPTIONS -O - http://localhost:9999/$file > ff-$file
+ else
+ wget $WGET_OPTIONS -O - http://localhost:9999/$file?date=19700101T000000Z | dd bs=1 count=20000 > ff-$file 2>/dev/null
+ fi
+ do_md5sum ff-$file >>ffserver.regression
+ done
+)
+kill $FFSERVER_PID
+wait > /dev/null 2>&1
+rm -f tests/feed1.ffm
+if diff -u "$1" tests/data/ffserver.regression; then
+ echo
+ echo Server regression test succeeded.
+ exit 0
+else
+ echo
+ echo Server regression test: Error.
+ exit 1
+fi
diff --git a/tests/ffserver.conf b/tests/ffserver.conf
new file mode 100644
index 0000000000..1e6994aa1c
--- /dev/null
+++ b/tests/ffserver.conf
@@ -0,0 +1,307 @@
+#
+# This is a test configuration file. You can invoke it with
+# ../ffserver -f ffserver.conf
+# when in the tests directory and once the vsynth1 subdirectory
+# has been populated. Then point your browser at http://whatever:9999/teststat.html
+# and you can look at the streams
+#
+
+#
+# Port on which the server is listening. You must select a different
+# port from your standard http web server if it is running on the same
+# computer.
+
+Port 9999
+RTSPPort 9990
+
+# Address on which the server is bound. Only useful if you have
+# several network interfaces.
+
+BindAddress 0.0.0.0
+
+# Number of simultaneous requests that can be handled. Since FFServer
+# is very fast, this limit is determined mainly by your Internet
+# connection speed.
+
+MaxClients 1000
+
+MaxBandwidth 100000
+
+# Access Log file (uses standard Apache log file format)
+# '-' is the standard output
+
+CustomLog -
+
+##################################################################
+# Definition of the live feeds. Each live feed contains one video
+# and/or audio sequence coming from an ffmpeg encoder or another
+# ffserver. This sequence may be encoded simultaneously with several
+# codecs at several resolutions.
+
+<Feed feed1.ffm>
+
+# You must use 'ffmpeg' to send a live feed to ffserver. In this
+# example, you can type:
+#
+# ffmpeg http://localhost:8090/feed1.ffm
+
+# ffserver can also do time shifting. It means that it can stream any
+# previously recorded live stream. The request should contain:
+# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
+# a path where the feed is stored on disk. You also specify the
+# maximum size of the feed (100M bytes here). Default:
+# File=/tmp/feed_name.ffm FileMaxSize=5M
+
+File tests/feed1.ffm
+FileMaxSize 100M
+
+# Fire up ffmpeg pointing at this stream
+
+Launch ./ffmpeg -v 0 -y -f pgmyuv -i tests/vsynth1/%02d.pgm
+
+ACL allow localhost
+</Feed>
+
+##################################################################
+# Now you can define each stream which will be generated from the
+# original audio and video stream. Each format has a filename (here
+# 'test128.mpg'). FFServer will send this stream when answering a
+# request containing this filename.
+
+<Stream test_h.avi>
+Feed feed1.ffm
+Format avi
+#
+BitExact
+DctFastint
+IdctSimple
+VideoFrameRate 10
+VideoSize 352x288
+VideoBitRate 100
+VideoGopSize 30
+NoAudio
+
+PreRoll 10
+StartSendOnKey
+MaxTime 100
+
+</Stream>
+
+<Stream test_l.avi>
+Feed feed1.ffm
+Format avi
+#
+BitExact
+DctFastint
+IdctSimple
+VideoFrameRate 2
+VideoSize 320x240
+VideoBitRate 40
+VideoGopSize 20
+NoAudio
+
+PreRoll 20
+StartSendOnKey
+MaxTime 100
+
+</Stream>
+
+#<Stream test_h.mpg>
+#Feed feed1.ffm
+#
+#VideoFrameRate 10
+#VideoSize 352x288
+#VideoBitRate 100
+#VideoGopSize 30
+#NoAudio
+
+#PreRoll 10
+#StartSendOnKey
+#MaxTime 100
+#
+#</Stream>
+#
+#<Stream test_l.mpg>
+#Feed feed1.ffm
+##
+#VideoFrameRate 2
+#VideoSize 320x240
+#VideoBitRate 40
+#VideoGopSize 20
+#NoAudio
+#
+#PreRoll 20
+#StartSendOnKey
+#MaxTime 100
+#
+#</Stream>
+#
+<Stream test.swf>
+Feed feed1.ffm
+#
+BitExact
+DctFastint
+IdctSimple
+Qscale 10
+VideoFrameRate 10
+VideoSize 352x288
+VideoBitRate 100
+VideoGopSize 30
+NoAudio
+
+PreRoll 10
+StartSendOnKey
+MaxTime 100
+
+</Stream>
+
+<Stream test_h.asf>
+Feed feed1.ffm
+Format asf
+#
+BitExact
+DctFastint
+IdctSimple
+Qscale 10
+VideoFrameRate 10
+VideoSize 320x240
+VideoBitRate 100
+VideoGopSize 30
+NoAudio
+
+PreRoll 10
+StartSendOnKey
+MaxTime 100
+
+Title "Test data stream"
+
+</Stream>
+
+<Stream test_l.asf>
+Feed feed1.ffm
+Format asf
+#
+BitExact
+DctFastint
+IdctSimple
+Qscale 10
+VideoFrameRate 2
+VideoSize 320x240
+VideoBitRate 40
+VideoGopSize 20
+NoAudio
+
+PreRoll 20
+StartSendOnKey
+MaxTime 100
+
+Title "Test data stream"
+
+</Stream>
+
+<Stream test_h.rm>
+
+Feed feed1.ffm
+Format rm
+
+BitExact
+DctFastint
+IdctSimple
+Qscale 10
+VideoBitRate 100
+VideoFrameRate 10
+VideoGopSize 30
+VideoSize 320x240
+NoAudio
+
+PreRoll 10
+StartSendOnKey
+MaxTime 100
+
+</Stream>
+
+<Stream test_l.rm>
+
+Feed feed1.ffm
+Format rm
+
+BitExact
+DctFastint
+IdctSimple
+Qscale 10
+VideoBitRate 40
+VideoFrameRate 2
+VideoGopSize 20
+VideoSize 320x240
+NoAudio
+
+PreRoll 20
+StartSendOnKey
+MaxTime 100
+
+</Stream>
+
+
+<Stream test.jpg>
+
+Feed feed1.ffm
+Format jpeg
+Strict -1
+
+BitExact
+DctFastint
+IdctSimple
+VideoFrameRate 1
+VideoSize 352x288
+NoAudio
+
+PreRoll 2
+
+</Stream>
+
+<Stream test_small.jpg>
+
+Feed feed1.ffm
+Format jpeg
+Strict -1
+
+BitExact
+DctFastint
+IdctSimple
+VideoFrameRate 1
+VideoSize 160x128
+NoAudio
+
+PreRoll 2
+
+</Stream>
+
+<Stream test.mjpg>
+
+Feed feed1.ffm
+Format mpjpeg
+Strict -1
+
+BitExact
+DctFastint
+IdctSimple
+VideoFrameRate 1
+VideoSize 320x240
+NoAudio
+StartSendOnKey
+
+PreRoll 1
+MaxTime 100
+
+</Stream>
+
+
+##################################################################
+# Special stream : server status
+
+<Stream teststat.html>
+
+Format status
+
+</Stream>
+
diff --git a/tests/ffserver.regression.ref b/tests/ffserver.regression.ref
new file mode 100644
index 0000000000..9fc749763b
--- /dev/null
+++ b/tests/ffserver.regression.ref
@@ -0,0 +1,10 @@
+18c4ba0e8e7adb781216e38de61c2e39 ff-test_h.avi
+f84767c7af61f360f4b443c2c73f322f ff-test_l.avi
+d976848a9e4d5d8fc2659e4841cdece5 ff-test.swf
+28fd87d5075b9b011aad57292f271a04 ff-test_h.asf
+a31ccd3aba2551e60b9fb1c156fca2f8 ff-test_l.asf
+3279d3ed0ef2d1347b5eda84db2cf3e6 ff-test_h.rm
+440231fe3cf0849887390b4d67d6894a ff-test_l.rm
+e0dc91430660c619e97b5c82e0f398fc ff-test.jpg
+0d6c98fc8a4f00560fe34e94e26880a9 ff-test_small.jpg
+e2a315d7ac0576279f8b4d917999615a ff-test.mjpg
diff --git a/tests/lavf-regression.sh b/tests/lavf-regression.sh
index c779bbd887..f0fcac3511 100755
--- a/tests/lavf-regression.sh
+++ b/tests/lavf-regression.sh
@@ -11,6 +11,16 @@ set -e
eval do_$test=y
+ENC_OPTS="$ENC_OPTS -metadata title=lavftest"
+
+do_lavf_fate()
+{
+ file=${outfile}lavf.$1
+ input="${samples}/$2"
+ do_avconv $file $DEC_OPTS -i "$input" $ENC_OPTS -vcodec copy -acodec copy
+ do_avconv_crc $file $DEC_OPTS -i $target_path/$file $3
+}
+
do_lavf()
{
file=${outfile}lavf.$1
@@ -18,6 +28,16 @@ do_lavf()
do_avconv_crc $file $DEC_OPTS -i $target_path/$file $3
}
+do_lavf_timecode_nodrop() { do_lavf $1 "$2 -timecode 02:56:14:13"; }
+do_lavf_timecode_drop() { do_lavf $1 "$2 -timecode 02:56:14.13 -r 30000/1001"; }
+
+do_lavf_timecode()
+{
+ do_lavf_timecode_nodrop "$@"
+ do_lavf_timecode_drop "$@"
+ do_lavf "$@"
+}
+
do_streamed_images()
{
file=${outfile}${1}pipe.$1
@@ -44,26 +64,26 @@ do_audio_only()
}
if [ -n "$do_avi" ] ; then
-do_lavf avi "-acodec mp2"
+do_lavf avi "-acodec mp2 -ab 64k"
fi
if [ -n "$do_asf" ] ; then
-do_lavf asf "-acodec mp2" "-r 25"
+do_lavf asf "-acodec mp2 -ab 64k" "-r 25"
fi
if [ -n "$do_rm" ] ; then
file=${outfile}lavf.rm
-do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $DEC_OPTS -ar 44100 -f s16le -i $pcm_src $ENC_OPTS -t 1 -qscale 10 -acodec ac3_fixed -b:a 64k
+do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $DEC_OPTS -ar 44100 -f s16le -i $pcm_src $ENC_OPTS -t 1 -qscale 10 -acodec ac3_fixed -ab 64k
# broken
#do_avconv_crc $file -i $target_path/$file
fi
if [ -n "$do_mpg" ] ; then
-do_lavf mpg
+do_lavf_timecode mpg "-ab 64k"
fi
if [ -n "$do_mxf" ] ; then
-do_lavf mxf "-ar 48000 -bf 2 -timecode_frame_start 264363"
+do_lavf_timecode mxf "-ar 48000 -bf 2"
fi
if [ -n "$do_mxf_d10" ]; then
@@ -71,7 +91,7 @@ do_lavf mxf_d10 "-ar 48000 -ac 2 -r 25 -s 720x576 -vf pad=720:608:0:32 -vcodec m
fi
if [ -n "$do_ts" ] ; then
-do_lavf ts "-mpegts_transport_stream_id 42"
+do_lavf ts "-ab 64k -mpegts_transport_stream_id 42"
fi
if [ -n "$do_swf" ] ; then
@@ -79,7 +99,7 @@ do_lavf swf -an
fi
if [ -n "$do_ffm" ] ; then
-do_lavf ffm
+do_lavf ffm "-ab 64k"
fi
if [ -n "$do_flv_fmt" ] ; then
@@ -87,23 +107,41 @@ do_lavf flv -an
fi
if [ -n "$do_mov" ] ; then
-do_lavf mov "-acodec pcm_alaw -c:v mpeg4"
+do_lavf_timecode mov "-acodec pcm_alaw -vcodec mpeg4"
+fi
+
+if [ -n "$do_ismv" ] ; then
+do_lavf_timecode ismv "-an -vcodec mpeg4"
fi
if [ -n "$do_dv_fmt" ] ; then
+do_lavf_timecode_nodrop dv "-ar 48000 -r 25 -s pal -ac 2"
+do_lavf_timecode_drop dv "-ar 48000 -pix_fmt yuv411p -s ntsc -ac 2"
do_lavf dv "-ar 48000 -r 25 -s pal -ac 2"
fi
if [ -n "$do_gxf" ] ; then
+do_lavf_timecode_nodrop gxf "-ar 48000 -r 25 -s pal -ac 1"
+do_lavf_timecode_drop gxf "-ar 48000 -s ntsc -ac 1"
do_lavf gxf "-ar 48000 -r 25 -s pal -ac 1"
fi
if [ -n "$do_nut" ] ; then
-do_lavf nut "-acodec mp2"
+do_lavf nut "-acodec mp2 -ab 64k"
fi
if [ -n "$do_mkv" ] ; then
-do_lavf mkv "-c:a mp2 -c:v mpeg4"
+do_lavf mkv "-acodec mp2 -ab 64k -vcodec mpeg4"
+fi
+
+if [ -n "$do_ogg_vp3" ] ; then
+# -idct simple causes different results on different systems
+DEC_OPTS="$DEC_OPTS -idct auto"
+do_lavf_fate ogg "vp3/coeff_level64.mkv"
+fi
+
+if [ -n "$do_wtv" ] ; then
+do_lavf wtv "-acodec mp2"
fi
@@ -149,6 +187,8 @@ fi
if [ -n "$do_png" ] ; then
do_image_formats png
+do_image_formats png "-pix_fmt gray16be"
+do_image_formats png "-pix_fmt rgb48be"
fi
if [ -n "$do_bmp" ] ; then
@@ -179,14 +219,14 @@ if [ -n "$do_pcx" ] ; then
do_image_formats pcx
fi
-if [ -n "$do_xwd" ] ; then
-do_image_formats xwd
-fi
-
if [ -n "$do_dpx" ] ; then
do_image_formats dpx
fi
+if [ -n "$do_xwd" ] ; then
+do_image_formats xwd
+fi
+
if [ -n "$do_sunrast" ] ; then
do_image_formats sun
fi
@@ -237,6 +277,10 @@ if [ -n "$do_sox" ] ; then
do_audio_only sox
fi
+if [ -n "$do_caf" ] ; then
+do_audio_only caf
+fi
+
# pix_fmt conversions
if [ -n "$do_pixfmt" ] ; then
diff --git a/tests/lavfi-regression.sh b/tests/lavfi-regression.sh
index f8c0c4e75b..79210e5607 100755
--- a/tests/lavfi-regression.sh
+++ b/tests/lavfi-regression.sh
@@ -32,9 +32,25 @@ do_lavfi "crop" "crop=iw-100:ih-100:100:100"
do_lavfi "crop_scale" "crop=iw-100:ih-100:100:100,scale=400:-1"
do_lavfi "crop_scale_vflip" "null,null,crop=iw-200:ih-200:200:200,crop=iw-20:ih-20:20:20,scale=200:200,scale=250:250,vflip,vflip,null,scale=200:200,crop=iw-100:ih-100:100:100,vflip,scale=200:200,null,vflip,crop=iw-100:ih-100:100:100,null"
do_lavfi "crop_vflip" "crop=iw-100:ih-100:100:100,vflip"
+do_lavfi "drawbox" "drawbox=224:24:88:72:#FF8010@0.5"
+do_lavfi "fade" "fade=in:5:15,fade=out:30:15"
do_lavfi "null" "null"
+do_lavfi "overlay" "split[m],scale=88:72,pad=96:80:4:4[o2];[m]fifo,[o2]overlay=240:16"
+do_lavfi "pad" "pad=iw*1.5:ih*1.5:iw*0.3:ih*0.2"
+do_lavfi "pp" "mp=pp=be/de/tn/l5/al"
+do_lavfi "pp2" "mp=pp=be/fq:16/fa/lb"
+do_lavfi "pp3" "mp=pp=be/fq:8/ac/li"
+do_lavfi "pp4" "mp=pp=be/ci"
+do_lavfi "pp5" "mp=pp=md"
+do_lavfi "pp6" "mp=pp=be/fd"
do_lavfi "scale200" "scale=200:200"
do_lavfi "scale500" "scale=500:500"
+do_lavfi "select" "select=not(eq(mod(n\,2)\,0)+eq(mod(n\,3)\,0))"
+do_lavfi "setdar" "setdar=16/9"
+do_lavfi "setsar" "setsar=16/11"
+do_lavfi "thumbnail" "thumbnail=10"
+do_lavfi "transpose" "transpose"
+do_lavfi "unsharp" "unsharp=10:10:-1.5:10:10:-1.5"
do_lavfi "vflip" "vflip"
do_lavfi "vflip_crop" "vflip,crop=iw-100:ih-100:100:100"
do_lavfi "vflip_vflip" "vflip,vflip"
@@ -50,9 +66,9 @@ do_lavfi_pixfmts(){
# exclude pixel formats which are not supported as input
$avconv -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^\..\.' | cut -d' ' -f2 | sort >$exclude_fmts
- $showfiltfmts scale | awk -F '[ \r]' '/^OUTPUT/{ print $3 }' | sort | comm -23 - $exclude_fmts >$out_fmts
+ $showfiltfmts scale | awk -F '[ \r]' '/^OUTPUT/{ fmt=substr($3, 5); print fmt }' | sort | comm -23 - $exclude_fmts >$out_fmts
- pix_fmts=$($showfiltfmts $filter | awk -F '[ \r]' '/^INPUT/{ print $3 }' | sort | comm -12 - $out_fmts)
+ pix_fmts=$($showfiltfmts $filter $filter_args | awk -F '[ \r]' '/^INPUT/{ fmt=substr($3, 5); print fmt }' | sort | comm -12 - $out_fmts)
for pix_fmt in $pix_fmts; do
do_video_filter $pix_fmt "slicify=random,format=$pix_fmt,$filter=$filter_args" -pix_fmt $pix_fmt
done
@@ -76,6 +92,19 @@ if [ -n "$do_pixdesc" ]; then
done
fi
+do_lavfi_lavd() {
+ label=$1
+ graph=$2
+ shift 2
+ [ $test = $label ] || return 0
+ printf '%-20s' $label
+ run_avconv $DEC_OPTS -f lavfi -i $graph \
+ $ENC_OPTS -vcodec rawvideo $* -f nut md5:
+}
+
+do_lavfi_lavd "life" "life=s=40x40:r=5:seed=42:mold=64" -t 2
+do_lavfi_lavd "testsrc" "testsrc=r=7:n=2:d=10"
+
# TODO: add tests for
# direct rendering,
# chains with feedback loops
diff --git a/tests/ref/acodec/alac b/tests/ref/acodec/alac
index 02752cf31d..3d98f279fb 100644
--- a/tests/ref/acodec/alac
+++ b/tests/ref/acodec/alac
@@ -1,4 +1,4 @@
-b9e78aa8b8774a63d187380a47201a37 *./tests/data/acodec/alac.m4a
-389154 ./tests/data/acodec/alac.m4a
+acaed80b0b5bbec7ee9dc0899166a6e2 *./tests/data/acodec/alac.m4a
+388910 ./tests/data/acodec/alac.m4a
64151e4bcc2b717aa5a8454d424d6a1f *./tests/data/alac.acodec.out.wav
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/tests/ref/acodec/flac b/tests/ref/acodec/flac
index cc5c173918..992a4e387b 100644
--- a/tests/ref/acodec/flac
+++ b/tests/ref/acodec/flac
@@ -1,4 +1,4 @@
-f582b59cc68adfcb3342dcfd7e020b71 *./tests/data/acodec/flac.flac
-361581 ./tests/data/acodec/flac.flac
+151eef9097f944726968bec48649f00a *./tests/data/acodec/flac.flac
+361582 ./tests/data/acodec/flac.flac
64151e4bcc2b717aa5a8454d424d6a1f *./tests/data/flac.acodec.out.wav
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/tests/ref/acodec/g722 b/tests/ref/acodec/g722
index 0e2f7e75b0..1e766d8455 100644
--- a/tests/ref/acodec/g722
+++ b/tests/ref/acodec/g722
@@ -1,4 +1,4 @@
-7b0492eee76b04b710990235f97a0bf2 *./tests/data/acodec/g722.wav
- 48053 ./tests/data/acodec/g722.wav
-b5568e0e3930ff563824156e8e1015f0 *./tests/data/g722.acodec.out.wav
-stddev: 8939.44 PSNR: 17.30 MAXDIFF:40370 bytes: 191980/ 1058400
+d1a10c4d35f752f60798114a156be3a8 *./tests/data/acodec/g722.wav
+48053 ./tests/data/acodec/g722.wav
+8dafe5b74ccd5f08fed2fb2a69c5475f *./tests/data/g722.acodec.out.wav
+stddev: 8939.47 PSNR: 17.30 MAXDIFF:40370 bytes: 191980/ 1058400
diff --git a/tests/ref/acodec/g723_1 b/tests/ref/acodec/g723_1
new file mode 100644
index 0000000000..57b80dd258
--- /dev/null
+++ b/tests/ref/acodec/g723_1
@@ -0,0 +1,4 @@
+5815887898457847a7717fbe60d9cfb6 *./tests/data/acodec/g723_1.tco
+4800 ./tests/data/acodec/g723_1.tco
+5d706e32b8e8fa991f2b1a309ea5e917 *./tests/data/g723_1.acodec.out.wav
+stddev: 8507.20 PSNR: 17.73 MAXDIFF:26473 bytes: 96000/ 1058400
diff --git a/tests/ref/acodec/g726 b/tests/ref/acodec/g726
index 9abed4b3bc..c519ac297e 100644
--- a/tests/ref/acodec/g726
+++ b/tests/ref/acodec/g726
@@ -1,4 +1,4 @@
-64bfac75bd371304b704be5b3dbcd04a *./tests/data/acodec/g726.wav
+331fcf91f4483b508059d0933af97987 *./tests/data/acodec/g726.wav
24054 ./tests/data/acodec/g726.wav
-79523adfec05760931fda877e1eaf7b4 *./tests/data/g726.acodec.out.wav
-stddev: 8554.55 PSNR: 17.69 MAXDIFF:29353 bytes: 95984/ 1058400
+fac563ba7947d8fc42b4af048707c145 *./tests/data/g726.acodec.out.wav
+stddev: 8553.69 PSNR: 17.69 MAXDIFF:29353 bytes: 95984/ 1058400
diff --git a/tests/ref/acodec/pcm_s16be b/tests/ref/acodec/pcm_s16be
index f7666660fa..967876fc73 100644
--- a/tests/ref/acodec/pcm_s16be
+++ b/tests/ref/acodec/pcm_s16be
@@ -1,4 +1,4 @@
-53c9eb319c778e7ce137667f62384994 *./tests/data/acodec/pcm_s16be.mov
-1060073 ./tests/data/acodec/pcm_s16be.mov
+a874f5c08b8d104a6bbf41b21454180d *./tests/data/acodec/pcm_s16be.mov
+1059045 ./tests/data/acodec/pcm_s16be.mov
64151e4bcc2b717aa5a8454d424d6a1f *./tests/data/pcm_s16be.acodec.out.wav
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/tests/ref/acodec/pcm_s24be b/tests/ref/acodec/pcm_s24be
index b9fada7e76..26f0cc73d8 100644
--- a/tests/ref/acodec/pcm_s24be
+++ b/tests/ref/acodec/pcm_s24be
@@ -1,4 +1,4 @@
-af8acd2f08e4bbebe7f4bea4d6f59dd6 *./tests/data/acodec/pcm_s24be.mov
-1589273 ./tests/data/acodec/pcm_s24be.mov
+833d4afd907139af7106a5642a9c23d3 *./tests/data/acodec/pcm_s24be.mov
+1588245 ./tests/data/acodec/pcm_s24be.mov
64151e4bcc2b717aa5a8454d424d6a1f *./tests/data/pcm_s24be.acodec.out.wav
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/tests/ref/acodec/pcm_s24daud b/tests/ref/acodec/pcm_s24daud
index eab6f8d28e..62c4421908 100644
--- a/tests/ref/acodec/pcm_s24daud
+++ b/tests/ref/acodec/pcm_s24daud
@@ -1,4 +1,4 @@
-8168a5c1343553ef027541830f2cb879 *./tests/data/acodec/pcm_s24daud.302
+1b75d5198ae789ab3c48f7024e08f4a9 *./tests/data/acodec/pcm_s24daud.302
10368730 ./tests/data/acodec/pcm_s24daud.302
-f552afadfdfcd6348a07095da6382de5 *./tests/data/pcm_s24daud.acodec.out.wav
-stddev: 9416.28 PSNR: 16.85 MAXDIFF:42744 bytes: 6911796/ 1058400
+4708f86529c594e29404603c64bb208c *./tests/data/pcm_s24daud.acodec.out.wav
+stddev: 8967.92 PSNR: 17.28 MAXDIFF:42548 bytes: 6911796/ 1058400
diff --git a/tests/ref/acodec/pcm_s32be b/tests/ref/acodec/pcm_s32be
index d6e5205832..1e495a68d9 100644
--- a/tests/ref/acodec/pcm_s32be
+++ b/tests/ref/acodec/pcm_s32be
@@ -1,4 +1,4 @@
-63f0e22b4f7c5d61d75047d85f140d52 *./tests/data/acodec/pcm_s32be.mov
-2118473 ./tests/data/acodec/pcm_s32be.mov
+c02c96e37b321f2c978968e3a102c669 *./tests/data/acodec/pcm_s32be.mov
+2117449 ./tests/data/acodec/pcm_s32be.mov
64151e4bcc2b717aa5a8454d424d6a1f *./tests/data/pcm_s32be.acodec.out.wav
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/tests/ref/acodec/pcm_s8 b/tests/ref/acodec/pcm_s8
index 3b550d2916..4877a77489 100644
--- a/tests/ref/acodec/pcm_s8
+++ b/tests/ref/acodec/pcm_s8
@@ -1,4 +1,4 @@
-4b3013a3f3c328ecdb617cd88b3fe836 *./tests/data/acodec/pcm_s8.mov
-530873 ./tests/data/acodec/pcm_s8.mov
+111d465266385298fde83005402ac171 *./tests/data/acodec/pcm_s8.mov
+529829 ./tests/data/acodec/pcm_s8.mov
651d4eb8d98dfcdda96ae6c43d8f156b *./tests/data/pcm_s8.acodec.out.wav
stddev: 147.89 PSNR: 52.93 MAXDIFF: 255 bytes: 1058400/ 1058400
diff --git a/tests/ref/fate/4xm-1 b/tests/ref/fate/4xm-1
index d38a47a1ad..37371aac66 100644
--- a/tests/ref/fate/4xm-1
+++ b/tests/ref/fate/4xm-1
@@ -1,16 +1,16 @@
#tb 0: 1/15
-0, 0, 0, 1, 921600, 0xd08f97c7
-0, 1, 1, 1, 921600, 0xc433a85b
-0, 2, 2, 1, 921600, 0x7ffeee42
-0, 3, 3, 1, 921600, 0xc0ad9f52
-0, 4, 4, 1, 921600, 0xb0235112
-0, 5, 5, 1, 921600, 0xcbdd9805
-0, 6, 6, 1, 921600, 0x5468bdb9
-0, 7, 7, 1, 921600, 0x2f0c63fd
-0, 8, 8, 1, 921600, 0xf1de04f0
-0, 9, 9, 1, 921600, 0x95709ce2
-0, 10, 10, 1, 921600, 0x69037c4a
-0, 11, 11, 1, 921600, 0x513f8a98
-0, 12, 12, 1, 921600, 0x55b82fa1
-0, 13, 13, 1, 921600, 0x5c8ace28
-0, 14, 14, 1, 921600, 0xb019770a
+0, 0, 0, 1, 921600, 0xd82e4d57
+0, 1, 1, 1, 921600, 0x83f2349c
+0, 2, 2, 1, 921600, 0x70d87db0
+0, 3, 3, 1, 921600, 0x66d27b93
+0, 4, 4, 1, 921600, 0xb730941c
+0, 5, 5, 1, 921600, 0x15da4934
+0, 6, 6, 1, 921600, 0x1953968a
+0, 7, 7, 1, 921600, 0xf0d730a0
+0, 8, 8, 1, 921600, 0x35a7d30c
+0, 9, 9, 1, 921600, 0x33667f62
+0, 10, 10, 1, 921600, 0xf4707f6b
+0, 11, 11, 1, 921600, 0xaac6c392
+0, 12, 12, 1, 921600, 0x68397d16
+0, 13, 13, 1, 921600, 0xb2aa0450
+0, 14, 14, 1, 921600, 0xba25c62e
diff --git a/tests/ref/fate/4xm-2 b/tests/ref/fate/4xm-2
index 35b0797439..cf71357810 100644
--- a/tests/ref/fate/4xm-2
+++ b/tests/ref/fate/4xm-2
@@ -6,153 +6,153 @@
0, 4, 4, 1, 80640, 0x3a942680
0, 5, 5, 1, 80640, 0x3a942680
0, 6, 6, 1, 80640, 0x3a942680
-0, 7, 7, 1, 80640, 0x1956ebfc
-0, 8, 8, 1, 80640, 0x61686290
-0, 9, 9, 1, 80640, 0x7e2c2753
-0, 10, 10, 1, 80640, 0x63e5e14f
-0, 11, 11, 1, 80640, 0xa775947a
-0, 12, 12, 1, 80640, 0x4b91b93d
-0, 13, 13, 1, 80640, 0x83345f32
-0, 14, 14, 1, 80640, 0x5d3a3374
-0, 15, 15, 1, 80640, 0x164808c5
-0, 16, 16, 1, 80640, 0xfd0189af
-0, 17, 17, 1, 80640, 0x062f9389
-0, 18, 18, 1, 80640, 0xe4dcaff8
-0, 19, 19, 1, 80640, 0xb2d9ec51
-0, 20, 20, 1, 80640, 0x3b4d5331
-0, 21, 21, 1, 80640, 0xfcbd8da1
-0, 22, 22, 1, 80640, 0xa0732142
-0, 23, 23, 1, 80640, 0x6438df5f
-0, 24, 24, 1, 80640, 0x614302fa
-0, 25, 25, 1, 80640, 0x53edf986
-0, 26, 26, 1, 80640, 0x6dfe13f0
-0, 27, 27, 1, 80640, 0x0b2194c3
-0, 28, 28, 1, 80640, 0xe0436945
-0, 29, 29, 1, 80640, 0x8d8ba77f
-0, 30, 30, 1, 80640, 0x9c723388
-0, 31, 31, 1, 80640, 0x336bd2a2
-0, 32, 32, 1, 80640, 0x5905fd0b
-0, 33, 33, 1, 80640, 0x2ca368bb
-0, 34, 34, 1, 80640, 0x38c1e5ec
-0, 35, 35, 1, 80640, 0xe439a194
-0, 36, 36, 1, 80640, 0xe7a19a64
-0, 37, 37, 1, 80640, 0xbe7f9094
-0, 38, 38, 1, 80640, 0x0b2cbec9
-0, 39, 39, 1, 80640, 0x8050bf7d
-0, 40, 40, 1, 80640, 0x4e9d4e78
-0, 41, 41, 1, 80640, 0xaa7bb85d
-0, 42, 42, 1, 80640, 0x6e42b1a6
-0, 43, 43, 1, 80640, 0x27043fe0
-0, 44, 44, 1, 80640, 0xe04bd5e6
-0, 45, 45, 1, 80640, 0xd60762d6
-0, 46, 46, 1, 80640, 0x2729df8f
-0, 47, 47, 1, 80640, 0x1b62c4f7
-0, 48, 48, 1, 80640, 0xe6b5d2f7
-0, 49, 49, 1, 80640, 0xf5885096
-0, 50, 50, 1, 80640, 0xe7625cf6
-0, 51, 51, 1, 80640, 0xed804de6
-0, 52, 52, 1, 80640, 0x3f92728e
-0, 53, 53, 1, 80640, 0x353e4b0d
-0, 54, 54, 1, 80640, 0x70b0228c
-0, 55, 55, 1, 80640, 0x851bd554
-0, 56, 56, 1, 80640, 0x594f22eb
-0, 57, 57, 1, 80640, 0xa2267c0b
-0, 58, 58, 1, 80640, 0xdc0fbafb
-0, 59, 59, 1, 80640, 0xd596b763
-0, 60, 60, 1, 80640, 0x3b9c4b1b
-0, 61, 61, 1, 80640, 0x218ac4b4
-0, 62, 62, 1, 80640, 0x4af393a4
-0, 63, 63, 1, 80640, 0x66c098c5
-0, 64, 64, 1, 80640, 0x7cc91e86
-0, 65, 65, 1, 80640, 0xba282a2e
-0, 66, 66, 1, 80640, 0x50932be6
-0, 67, 67, 1, 80640, 0x6531386e
-0, 68, 68, 1, 80640, 0x2616235f
-0, 69, 69, 1, 80640, 0x27aad18a
-0, 70, 70, 1, 80640, 0x67491df3
-0, 71, 71, 1, 80640, 0x167028f1
-0, 72, 72, 1, 80640, 0xa4229420
-0, 73, 73, 1, 80640, 0x77eaed07
-0, 74, 74, 1, 80640, 0xbdf7d8e8
-0, 75, 75, 1, 80640, 0xc2ac8545
-0, 76, 76, 1, 80640, 0xf3fe64ec
-0, 77, 77, 1, 80640, 0x66451d43
-0, 78, 78, 1, 80640, 0x1af2f05e
-0, 79, 79, 1, 80640, 0x2a63c2c4
-0, 80, 80, 1, 80640, 0xe4e07a0f
-0, 81, 81, 1, 80640, 0x598e8b11
-0, 82, 82, 1, 80640, 0xb2ebb868
-0, 83, 83, 1, 80640, 0xa4b6bb8a
-0, 84, 84, 1, 80640, 0x5037e910
-0, 85, 85, 1, 80640, 0x0c55f6c0
-0, 86, 86, 1, 80640, 0x3f4704f7
-0, 87, 87, 1, 80640, 0xa6a8e810
-0, 88, 88, 1, 80640, 0xedbfcfb0
-0, 89, 89, 1, 80640, 0xe568caa0
-0, 90, 90, 1, 80640, 0xdf21cc20
-0, 91, 91, 1, 80640, 0xb66cd4a8
-0, 92, 92, 1, 80640, 0xcd26c9c8
-0, 93, 93, 1, 80640, 0x5fe8d598
-0, 94, 94, 1, 80640, 0xed0dc9c8
-0, 95, 95, 1, 80640, 0x8313d288
-0, 96, 96, 1, 80640, 0x9ccdd4a0
-0, 97, 97, 1, 80640, 0x66ffe970
-0, 98, 98, 1, 80640, 0xf68ad1c8
-0, 99, 99, 1, 80640, 0xd570f658
-0, 100, 100, 1, 80640, 0x8c39d998
-0, 101, 101, 1, 80640, 0xe18fe5e0
-0, 102, 102, 1, 80640, 0xbbe7e340
-0, 103, 103, 1, 80640, 0x9a90d470
-0, 104, 104, 1, 80640, 0xd2bbced0
-0, 105, 105, 1, 80640, 0xbbf9dce0
-0, 106, 106, 1, 80640, 0x4ff7c888
-0, 107, 107, 1, 80640, 0xc2e7e1f0
-0, 108, 108, 1, 80640, 0x2104e3b0
-0, 109, 109, 1, 80640, 0xaef5e8f0
-0, 110, 110, 1, 80640, 0xc477e890
-0, 111, 111, 1, 80640, 0xb12df778
-0, 112, 112, 1, 80640, 0xd2115720
-0, 113, 113, 1, 80640, 0x620b6538
-0, 114, 114, 1, 80640, 0x894a8db8
-0, 115, 115, 1, 80640, 0x8da3bcb0
-0, 116, 116, 1, 80640, 0x96be8930
-0, 117, 117, 1, 80640, 0xe69dc1f0
-0, 118, 118, 1, 80640, 0x42b8d4e0
-0, 119, 119, 1, 80640, 0x0a8da4f0
-0, 120, 120, 1, 80640, 0x245fd3d8
-0, 121, 121, 1, 80640, 0x3fd1e858
-0, 122, 122, 1, 80640, 0xe2c299f0
-0, 123, 123, 1, 80640, 0xda1cddd0
-0, 124, 124, 1, 80640, 0xf126e498
-0, 125, 125, 1, 80640, 0xc85ab920
-0, 126, 126, 1, 80640, 0x52f39de8
-0, 127, 127, 1, 80640, 0xd0daac60
-0, 128, 128, 1, 80640, 0xef323347
-0, 129, 129, 1, 80640, 0xcc063317
-0, 130, 130, 1, 80640, 0xb6f53057
-0, 131, 131, 1, 80640, 0x5fe53b07
-0, 132, 132, 1, 80640, 0x63183d7f
-0, 133, 133, 1, 80640, 0x91a44bbf
-0, 134, 134, 1, 80640, 0xa433480f
-0, 135, 135, 1, 80640, 0xe90652ef
-0, 136, 136, 1, 80640, 0xe96e35bf
-0, 137, 137, 1, 80640, 0x84ff2ccf
-0, 138, 138, 1, 80640, 0x930f2b07
-0, 139, 139, 1, 80640, 0x5a1228d7
-0, 140, 140, 1, 80640, 0x29f226ef
-0, 141, 141, 1, 80640, 0xd35136df
-0, 142, 142, 1, 80640, 0x0e2d407f
-0, 143, 143, 1, 80640, 0x34a93267
-0, 144, 144, 1, 80640, 0x7ae82af7
-0, 145, 145, 1, 80640, 0xb20c2477
-0, 146, 146, 1, 80640, 0xa104218f
-0, 147, 147, 1, 80640, 0xcb1121e7
-0, 148, 148, 1, 80640, 0xaca04751
-0, 149, 149, 1, 80640, 0x3a51c704
-0, 150, 150, 1, 80640, 0xfa632e3d
-0, 151, 151, 1, 80640, 0x61c9407c
-0, 152, 152, 1, 80640, 0xe9a08dd9
-0, 153, 153, 1, 80640, 0xebf3c623
+0, 7, 7, 1, 80640, 0xa731901a
+0, 8, 8, 1, 80640, 0x0a1e5b3d
+0, 9, 9, 1, 80640, 0x2c66418f
+0, 10, 10, 1, 80640, 0xaaf8575a
+0, 11, 11, 1, 80640, 0x2d1a60b1
+0, 12, 12, 1, 80640, 0x646d6e66
+0, 13, 13, 1, 80640, 0x090de107
+0, 14, 14, 1, 80640, 0x90991f6c
+0, 15, 15, 1, 80640, 0xda862969
+0, 16, 16, 1, 80640, 0x5434e1ec
+0, 17, 17, 1, 80640, 0x4e981ce7
+0, 18, 18, 1, 80640, 0x97eb4000
+0, 19, 19, 1, 80640, 0xbfb375b0
+0, 20, 20, 1, 80640, 0x1529d95d
+0, 21, 21, 1, 80640, 0x2c0015af
+0, 22, 22, 1, 80640, 0x63779ce1
+0, 23, 23, 1, 80640, 0x3f2b3949
+0, 24, 24, 1, 80640, 0xe3cf3be4
+0, 25, 25, 1, 80640, 0x54451a22
+0, 26, 26, 1, 80640, 0xc2901d91
+0, 27, 27, 1, 80640, 0x312f8b7e
+0, 28, 28, 1, 80640, 0x99734f4e
+0, 29, 29, 1, 80640, 0xe50b8391
+0, 30, 30, 1, 80640, 0x7c6b04e4
+0, 31, 31, 1, 80640, 0x04989996
+0, 32, 32, 1, 80640, 0x30c3c00f
+0, 33, 33, 1, 80640, 0x77172ba4
+0, 34, 34, 1, 80640, 0x1257a596
+0, 35, 35, 1, 80640, 0x657e5fa8
+0, 36, 36, 1, 80640, 0xe66958ef
+0, 37, 37, 1, 80640, 0xbf7f4f0a
+0, 38, 38, 1, 80640, 0x588ac70e
+0, 39, 39, 1, 80640, 0xb1a91c4b
+0, 40, 40, 1, 80640, 0x5b73de24
+0, 41, 41, 1, 80640, 0xa3c15e73
+0, 42, 42, 1, 80640, 0x7326196b
+0, 43, 43, 1, 80640, 0x1aa52b88
+0, 44, 44, 1, 80640, 0x0029f511
+0, 45, 45, 1, 80640, 0x2398433a
+0, 46, 46, 1, 80640, 0xef9ab870
+0, 47, 47, 1, 80640, 0xb1ac9b79
+0, 48, 48, 1, 80640, 0x1cc2ab3b
+0, 49, 49, 1, 80640, 0x41362b53
+0, 50, 50, 1, 80640, 0x81e33811
+0, 51, 51, 1, 80640, 0x621d285a
+0, 52, 52, 1, 80640, 0x84e84c24
+0, 53, 53, 1, 80640, 0xbb8c2939
+0, 54, 54, 1, 80640, 0x6c6905a8
+0, 55, 55, 1, 80640, 0xc60bbaf0
+0, 56, 56, 1, 80640, 0xc80d08c8
+0, 57, 57, 1, 80640, 0xc5646343
+0, 58, 58, 1, 80640, 0x3df7a287
+0, 59, 59, 1, 80640, 0x628e9f78
+0, 60, 60, 1, 80640, 0x58f93044
+0, 61, 61, 1, 80640, 0x8ee3a59f
+0, 62, 62, 1, 80640, 0xaa297416
+0, 63, 63, 1, 80640, 0x7bbd7307
+0, 64, 64, 1, 80640, 0x12dbee42
+0, 65, 65, 1, 80640, 0xaea5fb22
+0, 66, 66, 1, 80640, 0x9405fd0b
+0, 67, 67, 1, 80640, 0x59400b6f
+0, 68, 68, 1, 80640, 0x70beeba0
+0, 69, 69, 1, 80640, 0xdc0681ae
+0, 70, 70, 1, 80640, 0xe4a3c803
+0, 71, 71, 1, 80640, 0x3424c568
+0, 72, 72, 1, 80640, 0xeb72838d
+0, 73, 73, 1, 80640, 0x671fbff3
+0, 74, 74, 1, 80640, 0xa4b849bd
+0, 75, 75, 1, 80640, 0xf4c2be6f
+0, 76, 76, 1, 80640, 0xb91988fd
+0, 77, 77, 1, 80640, 0xd0e5bf3a
+0, 78, 78, 1, 80640, 0x78c2b0bc
+0, 79, 79, 1, 80640, 0xcf2deb74
+0, 80, 80, 1, 80640, 0x84a9081b
+0, 81, 81, 1, 80640, 0x9931e9b1
+0, 82, 82, 1, 80640, 0x1ce6b59d
+0, 83, 83, 1, 80640, 0x24a31152
+0, 84, 84, 1, 80640, 0x206f4677
+0, 85, 85, 1, 80640, 0x507755ab
+0, 86, 86, 1, 80640, 0xc4b5643a
+0, 87, 87, 1, 80640, 0x197445f7
+0, 88, 88, 1, 80640, 0x53232d2a
+0, 89, 89, 1, 80640, 0x33ae27d4
+0, 90, 90, 1, 80640, 0x77bb2925
+0, 91, 91, 1, 80640, 0xb0d53220
+0, 92, 92, 1, 80640, 0xacdb26fc
+0, 93, 93, 1, 80640, 0xa83d32e1
+0, 94, 94, 1, 80640, 0xe2002717
+0, 95, 95, 1, 80640, 0xb1722fed
+0, 96, 96, 1, 80640, 0xa7de3206
+0, 97, 97, 1, 80640, 0x68f94780
+0, 98, 98, 1, 80640, 0x2bcc2f28
+0, 99, 99, 1, 80640, 0xaf9354e5
+0, 100, 100, 1, 80640, 0x45b4375c
+0, 101, 101, 1, 80640, 0x60e043ee
+0, 102, 102, 1, 80640, 0x9ed5411e
+0, 103, 103, 1, 80640, 0xbae131ce
+0, 104, 104, 1, 80640, 0x33be2be6
+0, 105, 105, 1, 80640, 0xdadb3a4c
+0, 106, 106, 1, 80640, 0xe9e72559
+0, 107, 107, 1, 80640, 0x9fe93f8c
+0, 108, 108, 1, 80640, 0xc20b413a
+0, 109, 109, 1, 80640, 0x02c74699
+0, 110, 110, 1, 80640, 0x1b284634
+0, 111, 111, 1, 80640, 0xb7ea559e
+0, 112, 112, 1, 80640, 0x62e3b0e1
+0, 113, 113, 1, 80640, 0x8b6bbf68
+0, 114, 114, 1, 80640, 0x04d2e8d8
+0, 115, 115, 1, 80640, 0xc6961955
+0, 116, 116, 1, 80640, 0xf318e461
+0, 117, 117, 1, 80640, 0x55231e8f
+0, 118, 118, 1, 80640, 0x772f325e
+0, 119, 119, 1, 80640, 0x31480120
+0, 120, 120, 1, 80640, 0x5eda30fe
+0, 121, 121, 1, 80640, 0x5c534632
+0, 122, 122, 1, 80640, 0xaca0f5c9
+0, 123, 123, 1, 80640, 0x9ec83b5a
+0, 124, 124, 1, 80640, 0x65944233
+0, 125, 125, 1, 80640, 0xbf7e15f0
+0, 126, 126, 1, 80640, 0xf985f9b7
+0, 127, 127, 1, 80640, 0x0e7a0887
+0, 128, 128, 1, 80640, 0xee33931b
+0, 129, 129, 1, 80640, 0xea6b92f8
+0, 130, 130, 1, 80640, 0xde559025
+0, 131, 131, 1, 80640, 0x970c9af6
+0, 132, 132, 1, 80640, 0x6a579d8a
+0, 133, 133, 1, 80640, 0x7053ac0c
+0, 134, 134, 1, 80640, 0x6d6ca81b
+0, 135, 135, 1, 80640, 0x6ffdb338
+0, 136, 136, 1, 80640, 0x402f953f
+0, 137, 137, 1, 80640, 0x24358c04
+0, 138, 138, 1, 80640, 0x26298a25
+0, 139, 139, 1, 80640, 0xbc0487e7
+0, 140, 140, 1, 80640, 0xf8c885fd
+0, 141, 141, 1, 80640, 0x98a79695
+0, 142, 142, 1, 80640, 0x846aa04b
+0, 143, 143, 1, 80640, 0x22ba919b
+0, 144, 144, 1, 80640, 0xcba08a11
+0, 145, 145, 1, 80640, 0xfba0836c
+0, 146, 146, 1, 80640, 0xb7ff8059
+0, 147, 147, 1, 80640, 0xb15080bb
+0, 148, 148, 1, 80640, 0x42627aed
+0, 149, 149, 1, 80640, 0xd045d485
+0, 150, 150, 1, 80640, 0xf22e7545
+0, 151, 151, 1, 80640, 0xe24a41fc
+0, 152, 152, 1, 80640, 0x854696ac
+0, 153, 153, 1, 80640, 0x6722f8f2
0, 154, 154, 1, 80640, 0x00000000
0, 155, 155, 1, 80640, 0x0f412500
0, 156, 156, 1, 80640, 0x0f412500
@@ -160,16 +160,16 @@
0, 158, 158, 1, 80640, 0xb6634270
0, 159, 159, 1, 80640, 0x9e43a4a0
0, 160, 160, 1, 80640, 0x136ab60b
-0, 161, 161, 1, 80640, 0x6ce3254e
-0, 162, 162, 1, 80640, 0xf4340d15
-0, 163, 163, 1, 80640, 0x73861114
-0, 164, 164, 1, 80640, 0x36b300d3
-0, 165, 165, 1, 80640, 0x2ddde523
-0, 166, 166, 1, 80640, 0xfdd79c02
-0, 167, 167, 1, 80640, 0xe6cc4fe9
-0, 168, 168, 1, 80640, 0x5b13e2b9
-0, 169, 169, 1, 80640, 0x0d588e70
-0, 170, 170, 1, 80640, 0xc6e4023f
-0, 171, 171, 1, 80640, 0xf54c496f
-0, 172, 172, 1, 80640, 0xa315a5cf
-0, 173, 173, 1, 80640, 0x2d2ac9c7
+0, 161, 161, 1, 80640, 0xe43625dc
+0, 162, 162, 1, 80640, 0xc2eb0f8c
+0, 163, 163, 1, 80640, 0x99af167d
+0, 164, 164, 1, 80640, 0xd9cb0a37
+0, 165, 165, 1, 80640, 0x1f2cf2ce
+0, 166, 166, 1, 80640, 0x00eeae7f
+0, 167, 167, 1, 80640, 0xcc1d666c
+0, 168, 168, 1, 80640, 0x77d6fcc9
+0, 169, 169, 1, 80640, 0x58c8acc6
+0, 170, 170, 1, 80640, 0xd026238d
+0, 171, 171, 1, 80640, 0xfefb6c9b
+0, 172, 172, 1, 80640, 0xa9a5cb36
+0, 173, 173, 1, 80640, 0xc845f000
diff --git a/tests/ref/fate/8bps b/tests/ref/fate/8bps
index 869d38c275..9db94301e0 100644
--- a/tests/ref/fate/8bps
+++ b/tests/ref/fate/8bps
@@ -1,36 +1,36 @@
-#tb 0: 1/125
+#tb 0: 2/25
#tb 1: 1/22050
0, 0, 0, 1, 259200, 0x7e91df07
1, 0, 0, 1024, 2048, 0x3d042426
1, 1024, 1024, 1024, 2048, 0x5bcae456
-0, 10, 10, 1, 259200, 0x7e91df07
+0, 1, 1, 1, 259200, 0x7e91df07
1, 2048, 2048, 1024, 2048, 0xb6043655
1, 3072, 3072, 1024, 2048, 0x6fdaffad
-0, 20, 20, 1, 259200, 0xc468c119
+0, 2, 2, 1, 259200, 0xc468c119
1, 4096, 4096, 1024, 2048, 0xf86700cb
1, 5120, 5120, 1024, 2048, 0x045e46c1
-0, 30, 30, 1, 259200, 0x0e058930
+0, 3, 3, 1, 259200, 0x0e058930
1, 6144, 6144, 1024, 2048, 0x000df0e5
-0, 40, 40, 1, 259200, 0xa0261310
+0, 4, 4, 1, 259200, 0xa0261310
1, 7168, 7168, 1024, 2048, 0x8f5f12fb
1, 8192, 8192, 1024, 2048, 0xd516f6b0
-0, 50, 50, 1, 259200, 0x78ca9aba
+0, 5, 5, 1, 259200, 0x78ca9aba
1, 9216, 9216, 1024, 2048, 0xa1fe2bd3
1, 10240, 10240, 1024, 2048, 0x3647087a
-0, 60, 60, 1, 259200, 0x4971f7b3
+0, 6, 6, 1, 259200, 0x4971f7b3
1, 11264, 11264, 1024, 2048, 0xd2ee584e
1, 12288, 12288, 1024, 2048, 0xf132088c
-0, 70, 70, 1, 259200, 0x7dc2cff7
+0, 7, 7, 1, 259200, 0x7dc2cff7
1, 13312, 13312, 1024, 2048, 0x1efc0eb1
-0, 80, 80, 1, 259200, 0x8cbc53d5
+0, 8, 8, 1, 259200, 0x8cbc53d5
1, 14336, 14336, 1024, 2048, 0xeb73f402
1, 15360, 15360, 1024, 2048, 0x75cb3d20
-0, 90, 90, 1, 259200, 0xcccd77e3
+0, 9, 9, 1, 259200, 0xcccd77e3
1, 16384, 16384, 1024, 2048, 0x85a501b6
1, 17408, 17408, 1024, 2048, 0xa4eb312d
-0, 100, 100, 1, 259200, 0x6b3e0fb3
+0, 10, 10, 1, 259200, 0x6b3e0fb3
1, 18432, 18432, 1024, 2048, 0xf0aaf8c7
-0, 110, 110, 1, 259200, 0x281dd175
+0, 11, 11, 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/aasc b/tests/ref/fate/aasc
index b991635715..80d5bf27d0 100644
--- a/tests/ref/fate/aasc
+++ b/tests/ref/fate/aasc
@@ -22,3 +22,4 @@
0, 20, 20, 1, 168000, 0x646fa087
0, 21, 21, 1, 168000, 0x404450a2
0, 22, 22, 1, 168000, 0x5214c456
+0, 23, 23, 1, 168000, 0xaef602d3
diff --git a/tests/ref/fate/adpcm-ea-mad-ea-r1 b/tests/ref/fate/adpcm-ea-mad-ea-r1
index 7e8a995992..01c7262b85 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: 1/90000
+#tb 0: 33/1000
#tb 1: 1/48000
-0, 0, 0, 0, 535680, 0x889c32cf
+0, 0, 0, 1, 535680, 0x889c32cf
1, 0, 0, 1624, 6496, 0x00000000
-0, 2970, 2970, 0, 535680, 0x0b1ef044
+0, 1, 1, 1, 535680, 0x0b1ef044
1, 1624, 1624, 1596, 6384, 0x00000000
-0, 5940, 5940, 0, 535680, 0xa7d0818b
+0, 2, 2, 1, 535680, 0xa7d0818b
1, 3220, 3220, 1596, 6384, 0x00000000
-0, 8910, 8910, 0, 535680, 0xf392e4e1
+0, 3, 3, 1, 535680, 0xf392e4e1
1, 4816, 4816, 1596, 6384, 0x00000000
-0, 11880, 11880, 0, 535680, 0x08480c69
+0, 4, 4, 1, 535680, 0x08480c69
1, 6412, 6412, 1596, 6384, 0x00000000
-0, 14850, 14850, 0, 535680, 0x2b8af1ed
+0, 5, 5, 1, 535680, 0x2b8af1ed
1, 8008, 8008, 1624, 6496, 0xe2034d04
-0, 17820, 17820, 0, 535680, 0x0d58e062
+0, 6, 6, 1, 535680, 0x0d58e062
1, 9632, 9632, 1596, 6384, 0x089c9157
-0, 20790, 20790, 0, 535680, 0xd140ced0
+0, 7, 7, 1, 535680, 0xd140ced0
1, 11228, 11228, 1596, 6384, 0xeed5743c
-0, 23760, 23760, 0, 535680, 0xbd0e6652
+0, 8, 8, 1, 535680, 0xbd0e6652
1, 12824, 12824, 1596, 6384, 0x71de6b34
-0, 26730, 26730, 0, 535680, 0xdc2f2a6b
+0, 9, 9, 1, 535680, 0xdc2f2a6b
1, 14420, 14420, 1596, 6384, 0xc0d67710
-0, 29700, 29700, 0, 535680, 0x97c31a38
+0, 10, 10, 1, 535680, 0x97c31a38
1, 16016, 16016, 1624, 6496, 0x35786490
-0, 32670, 32670, 0, 535680, 0x1a2bdf38
+0, 11, 11, 1, 535680, 0x1a2bdf38
1, 17640, 17640, 1596, 6384, 0xdf1c99a2
-0, 35640, 35640, 0, 535680, 0xb3af3ac4
+0, 12, 12, 1, 535680, 0xb3af3ac4
1, 19236, 19236, 1596, 6384, 0xca9591ad
-0, 38610, 38610, 0, 535680, 0x07a52577
+0, 13, 13, 1, 535680, 0x07a52577
1, 20832, 20832, 1596, 6384, 0x6f0d9c3d
-0, 41580, 41580, 0, 535680, 0x78407368
+0, 14, 14, 1, 535680, 0x78407368
1, 22428, 22428, 1596, 6384, 0xfacbbaee
-0, 44550, 44550, 0, 535680, 0xd2a9efc3
+0, 15, 15, 1, 535680, 0xd2a9efc3
1, 24024, 24024, 1624, 6496, 0x927fb136
-0, 47520, 47520, 0, 535680, 0x36df2f29
+0, 16, 16, 1, 535680, 0x36df2f29
1, 25648, 25648, 1596, 6384, 0x9d4f2572
-0, 50490, 50490, 0, 535680, 0x9821d8f7
+0, 17, 17, 1, 535680, 0x9821d8f7
1, 27244, 27244, 1596, 6384, 0x2a3c6d08
-0, 53460, 53460, 0, 535680, 0xf64321aa
+0, 18, 18, 1, 535680, 0xf64321aa
1, 28840, 28840, 1596, 6384, 0x4282b1e0
-0, 56430, 56430, 0, 535680, 0x53e4d9aa
+0, 19, 19, 1, 535680, 0x53e4d9aa
1, 30436, 30436, 1596, 6384, 0xc4a77b9f
-0, 59400, 59400, 0, 535680, 0xdbd6f853
+0, 20, 20, 1, 535680, 0xdbd6f853
1, 32032, 32032, 1624, 6496, 0x2af6a14f
-0, 62370, 62370, 0, 535680, 0x5d40cf8b
+0, 21, 21, 1, 535680, 0x5d40cf8b
1, 33656, 33656, 1596, 6384, 0x4d734169
-0, 65340, 65340, 0, 535680, 0xe624af9d
+0, 22, 22, 1, 535680, 0xe624af9d
1, 35252, 35252, 1596, 6384, 0xb91b5865
-0, 68310, 68310, 0, 535680, 0xd9dbb4cd
+0, 23, 23, 1, 535680, 0xd9dbb4cd
1, 36848, 36848, 1596, 6384, 0x9dce2417
-0, 71280, 71280, 0, 535680, 0xf14e72ec
+0, 24, 24, 1, 535680, 0xf14e72ec
1, 38444, 38444, 1596, 6384, 0xb7c4e1ce
-0, 74250, 74250, 0, 535680, 0xb35c18f6
+0, 25, 25, 1, 535680, 0xb35c18f6
1, 40040, 40040, 1624, 6496, 0xef0dc07a
-0, 77220, 77220, 0, 535680, 0xc96d7757
+0, 26, 26, 1, 535680, 0xc96d7757
1, 41664, 41664, 1596, 6384, 0x4ad21d10
-0, 80190, 80190, 0, 535680, 0xdfb937df
+0, 27, 27, 1, 535680, 0xdfb937df
1, 43260, 43260, 1596, 6384, 0xcfe14682
-0, 83160, 83160, 0, 535680, 0x40cd71d7
+0, 28, 28, 1, 535680, 0x40cd71d7
1, 44856, 44856, 1596, 6384, 0x07be48eb
-0, 86130, 86130, 0, 535680, 0x15e176d6
+0, 29, 29, 1, 535680, 0x15e176d6
1, 46452, 46452, 1596, 6384, 0x09de3498
-0, 89100, 89100, 0, 535680, 0x7f891b24
+0, 30, 30, 1, 535680, 0x7f891b24
1, 48048, 48048, 1624, 6496, 0xab2e9686
-0, 92070, 92070, 0, 535680, 0xb87a8c32
+0, 31, 31, 1, 535680, 0xb87a8c32
1, 49672, 49672, 1596, 6384, 0x3aba3ccc
-0, 95040, 95040, 0, 535680, 0x0c01541f
+0, 32, 32, 1, 535680, 0x0c01541f
1, 51268, 51268, 1596, 6384, 0x0a905ec3
-0, 98010, 98010, 0, 535680, 0x9eee99b3
+0, 33, 33, 1, 535680, 0x9eee99b3
1, 52864, 52864, 1596, 6384, 0x76a93ce4
-0, 100980, 100980, 0, 535680, 0xd65eb689
+0, 34, 34, 1, 535680, 0xd65eb689
1, 54460, 54460, 1596, 6384, 0xa99063a4
-0, 103950, 103950, 0, 535680, 0x6e733cfa
+0, 35, 35, 1, 535680, 0x6e733cfa
1, 56056, 56056, 1624, 6496, 0xc16bb88d
-0, 106920, 106920, 0, 535680, 0xac536670
+0, 36, 36, 1, 535680, 0xac536670
1, 57680, 57680, 1596, 6384, 0x650379bf
-0, 109890, 109890, 0, 535680, 0x002275b8
+0, 37, 37, 1, 535680, 0x002275b8
1, 59276, 59276, 1596, 6384, 0x4e0749fe
-0, 112860, 112860, 0, 535680, 0x6a5385cb
+0, 38, 38, 1, 535680, 0x6a5385cb
1, 60872, 60872, 1596, 6384, 0x778e8d12
-0, 115830, 115830, 0, 535680, 0xd129ade3
+0, 39, 39, 1, 535680, 0xd129ade3
1, 62468, 62468, 1596, 6384, 0x9fa8c494
-0, 118800, 118800, 0, 535680, 0x32cab5d7
+0, 40, 40, 1, 535680, 0x32cab5d7
1, 64064, 64064, 1624, 6496, 0x61d5bead
-0, 121770, 121770, 0, 535680, 0x08be1c8f
+0, 41, 41, 1, 535680, 0x08be1c8f
1, 65688, 65688, 1596, 6384, 0x4da9bc3c
-0, 124740, 124740, 0, 535680, 0x59e1fba0
+0, 42, 42, 1, 535680, 0x59e1fba0
1, 67284, 67284, 1596, 6384, 0xa72b6f93
-0, 127710, 127710, 0, 535680, 0x138aee3a
+0, 43, 43, 1, 535680, 0x138aee3a
1, 68880, 68880, 1596, 6384, 0x811f5f77
-0, 130680, 130680, 0, 535680, 0x4cfbcd5e
+0, 44, 44, 1, 535680, 0x4cfbcd5e
1, 70476, 70476, 1596, 6384, 0x83ea5e3d
-0, 133650, 133650, 0, 535680, 0xf6cf0fb4
+0, 45, 45, 1, 535680, 0xf6cf0fb4
1, 72072, 72072, 1624, 6496, 0x78bab460
-0, 136620, 136620, 0, 535680, 0xb13a06de
+0, 46, 46, 1, 535680, 0xb13a06de
1, 73696, 73696, 1596, 6384, 0xc9a07432
-0, 139590, 139590, 0, 535680, 0x59176f00
+0, 47, 47, 1, 535680, 0x59176f00
1, 75292, 75292, 1596, 6384, 0x4b4f2a34
-0, 142560, 142560, 0, 535680, 0xf84b4ca3
+0, 48, 48, 1, 535680, 0xf84b4ca3
1, 76888, 76888, 1596, 6384, 0x4d707a53
-0, 145530, 145530, 0, 535680, 0x7fd09f73
+0, 49, 49, 1, 535680, 0x7fd09f73
1, 78484, 78484, 1596, 6384, 0x703efb60
-0, 148500, 148500, 0, 535680, 0x3be383b8
+0, 50, 50, 1, 535680, 0x3be383b8
1, 80080, 80080, 1624, 6496, 0x319a77bb
-0, 151470, 151470, 0, 535680, 0xa7118e51
+0, 51, 51, 1, 535680, 0xa7118e51
1, 81704, 81704, 1596, 6384, 0xbdfd82ec
-0, 154440, 154440, 0, 535680, 0xbd83120c
+0, 52, 52, 1, 535680, 0xbd83120c
1, 83300, 83300, 1596, 6384, 0x413c3503
-0, 157410, 157410, 0, 535680, 0x3bc9d256
+0, 53, 53, 1, 535680, 0x3bc9d256
1, 84896, 84896, 1596, 6384, 0xe6e666b3
-0, 160380, 160380, 0, 535680, 0xb6c87f87
+0, 54, 54, 1, 535680, 0xb6c87f87
1, 86492, 86492, 1596, 6384, 0xa09c7342
-0, 163350, 163350, 0, 535680, 0xe80d110a
+0, 55, 55, 1, 535680, 0xe80d110a
1, 88088, 88088, 1624, 6496, 0x60cba846
-0, 166320, 166320, 0, 535680, 0xb3a83362
+0, 56, 56, 1, 535680, 0xb3a83362
1, 89712, 89712, 1596, 6384, 0x0ba34308
-0, 169290, 169290, 0, 535680, 0xfb39eb52
+0, 57, 57, 1, 535680, 0xfb39eb52
1, 91308, 91308, 1596, 6384, 0xdc3a65f0
-0, 172260, 172260, 0, 535680, 0xbf6e1220
+0, 58, 58, 1, 535680, 0xbf6e1220
1, 92904, 92904, 1596, 6384, 0x1ebf9dc4
-0, 175230, 175230, 0, 535680, 0x9ecdfbae
+0, 59, 59, 1, 535680, 0x9ecdfbae
1, 94500, 94500, 1596, 6384, 0xbbcb1449
-0, 178200, 178200, 0, 535680, 0x069a65f5
+0, 60, 60, 1, 535680, 0x069a65f5
1, 96096, 96096, 1624, 6496, 0x926574eb
-0, 181170, 181170, 0, 535680, 0x206e372c
+0, 61, 61, 1, 535680, 0x206e372c
1, 97720, 97720, 1596, 6384, 0xb4da92f1
-0, 184140, 184140, 0, 535680, 0x58c83dd4
+0, 62, 62, 1, 535680, 0x58c83dd4
1, 99316, 99316, 1596, 6384, 0xdbbd21e0
-0, 187110, 187110, 0, 535680, 0xc3562b03
+0, 63, 63, 1, 535680, 0xc3562b03
1, 100912, 100912, 1596, 6384, 0x08510eff
-0, 190080, 190080, 0, 535680, 0xd1ed85a0
+0, 64, 64, 1, 535680, 0xd1ed85a0
1, 102508, 102508, 1596, 6384, 0x9534b7ca
-0, 193050, 193050, 0, 535680, 0xb6205f4b
+0, 65, 65, 1, 535680, 0xb6205f4b
1, 104104, 104104, 1624, 6496, 0x50a5ed30
-0, 196020, 196020, 0, 535680, 0xaedf8bfa
+0, 66, 66, 1, 535680, 0xaedf8bfa
1, 105728, 105728, 1596, 6384, 0xf5ac2f7c
-0, 198990, 198990, 0, 535680, 0xa48d5dea
+0, 67, 67, 1, 535680, 0xa48d5dea
1, 107324, 107324, 1596, 6384, 0x4fe1fa55
-0, 201960, 201960, 0, 535680, 0xff82e7c1
+0, 68, 68, 1, 535680, 0xff82e7c1
1, 108920, 108920, 1596, 6384, 0xd61c4c05
-0, 204930, 204930, 0, 535680, 0xc9560222
+0, 69, 69, 1, 535680, 0xc9560222
1, 110516, 110516, 1596, 6384, 0x56d11b45
-0, 207900, 207900, 0, 535680, 0x0fafa549
+0, 70, 70, 1, 535680, 0x0fafa549
1, 112112, 112112, 1624, 6496, 0x3906084b
-0, 210870, 210870, 0, 535680, 0x8d556ccb
+0, 71, 71, 1, 535680, 0x8d556ccb
1, 113736, 113736, 1596, 6384, 0x1ef31fed
-0, 213840, 213840, 0, 535680, 0x802aac1f
+0, 72, 72, 1, 535680, 0x802aac1f
1, 115332, 115332, 1596, 6384, 0x58ed82f5
-0, 216810, 216810, 0, 535680, 0x7d0fa168
+0, 73, 73, 1, 535680, 0x7d0fa168
1, 116928, 116928, 1596, 6384, 0xb31ccd1f
-0, 219780, 219780, 0, 535680, 0x1a9255c9
+0, 74, 74, 1, 535680, 0x1a9255c9
1, 118524, 118524, 1596, 6384, 0xfb648285
-0, 222750, 222750, 0, 535680, 0xb4ec7e35
+0, 75, 75, 1, 535680, 0xb4ec7e35
1, 120120, 120120, 1624, 6496, 0xfae2950b
-0, 225720, 225720, 0, 535680, 0x48fac072
+0, 76, 76, 1, 535680, 0x48fac072
1, 121744, 121744, 1596, 6384, 0xe28c8357
-0, 228690, 228690, 0, 535680, 0x1e260135
+0, 77, 77, 1, 535680, 0x1e260135
1, 123340, 123340, 1596, 6384, 0xda718e60
-0, 231660, 231660, 0, 535680, 0xce4d5079
+0, 78, 78, 1, 535680, 0xce4d5079
1, 124936, 124936, 1596, 6384, 0x27516999
-0, 234630, 234630, 0, 535680, 0x13e5e4ed
+0, 79, 79, 1, 535680, 0x13e5e4ed
1, 126532, 126532, 1596, 6384, 0x0ba07921
-0, 237600, 237600, 0, 535680, 0x592305ec
+0, 80, 80, 1, 535680, 0x592305ec
1, 128128, 128128, 1624, 6496, 0xcfbecfab
-0, 240570, 240570, 0, 535680, 0x9e227508
+0, 81, 81, 1, 535680, 0x9e227508
1, 129752, 129752, 1596, 6384, 0xae4cedcd
-0, 243540, 243540, 0, 535680, 0x1d37e5ea
+0, 82, 82, 1, 535680, 0x1d37e5ea
1, 131348, 131348, 1596, 6384, 0x917b4707
-0, 246510, 246510, 0, 535680, 0x7eae7692
+0, 83, 83, 1, 535680, 0x7eae7692
1, 132944, 132944, 1596, 6384, 0x8671b28e
-0, 249480, 249480, 0, 535680, 0xf452e4b9
+0, 84, 84, 1, 535680, 0xf452e4b9
1, 134540, 134540, 1596, 6384, 0x9a1238fa
-0, 252450, 252450, 0, 535680, 0x1460e7e9
+0, 85, 85, 1, 535680, 0x1460e7e9
1, 136136, 136136, 1624, 6496, 0x23b8f8ca
-0, 255420, 255420, 0, 535680, 0xc6d8a638
+0, 86, 86, 1, 535680, 0xc6d8a638
1, 137760, 137760, 1596, 6384, 0x3903bcd6
-0, 258390, 258390, 0, 535680, 0x854f5fb0
+0, 87, 87, 1, 535680, 0x854f5fb0
1, 139356, 139356, 1596, 6384, 0x0532b267
-0, 261360, 261360, 0, 535680, 0x854f5fb0
+0, 88, 88, 1, 535680, 0x854f5fb0
1, 140952, 140952, 1596, 6384, 0xde931220
-0, 264330, 264330, 0, 535680, 0x70a02d87
+0, 89, 89, 1, 535680, 0x70a02d87
1, 142548, 142548, 1596, 6384, 0x4ed70a80
-0, 267300, 267300, 0, 535680, 0x9a4ad464
-0, 270270, 270270, 0, 535680, 0x9a4ad464
+0, 90, 90, 1, 535680, 0x9a4ad464
+0, 91, 91, 1, 535680, 0x9a4ad464
1, 144144, 144144, 1624, 6496, 0x4a52d5a1
-0, 273240, 273240, 0, 535680, 0x9a4ad464
+0, 92, 92, 1, 535680, 0x9a4ad464
1, 145768, 145768, 1596, 6384, 0xc1be5760
-0, 276210, 276210, 0, 535680, 0x9a4ad464
+0, 93, 93, 1, 535680, 0x9a4ad464
1, 147364, 147364, 1596, 6384, 0x790d69ba
-0, 279180, 279180, 0, 535680, 0x9a4ad464
+0, 94, 94, 1, 535680, 0x9a4ad464
1, 148960, 148960, 1596, 6384, 0x9d73e6cf
-0, 282150, 282150, 0, 535680, 0x9a4ad464
+0, 95, 95, 1, 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 9f09003bf3..fc6fe149a1 100644
--- a/tests/ref/fate/adpcm-ea-tqi
+++ b/tests/ref/fate/adpcm-ea-tqi
@@ -1,53 +1,53 @@
-#tb 0: 1/90000
+#tb 0: 1/15
#tb 1: 1/22050
-0, 0, 0, 0, 115200, 0x375ec573
+0, 0, 0, 1, 115200, 0x375ec573
1, 0, 0, 1484, 5936, 0x00000000
-0, 6000, 6000, 0, 115200, 0x375ec573
+0, 1, 1, 1, 115200, 0x375ec573
1, 1484, 1484, 1456, 5824, 0x00000000
-0, 12000, 12000, 0, 115200, 0x375ec573
+0, 2, 2, 1, 115200, 0x375ec573
1, 2940, 2940, 1484, 5936, 0x00000000
-0, 18000, 18000, 0, 115200, 0x375ec573
+0, 3, 3, 1, 115200, 0x375ec573
1, 4424, 4424, 1456, 5824, 0x00000000
-0, 24000, 24000, 0, 115200, 0x375ec573
+0, 4, 4, 1, 115200, 0x375ec573
1, 5880, 5880, 1484, 5936, 0x00000000
-0, 30000, 30000, 0, 115200, 0x375ec573
+0, 5, 5, 1, 115200, 0x375ec573
1, 7364, 7364, 1456, 5824, 0x00000000
-0, 36000, 36000, 0, 115200, 0x375ec573
+0, 6, 6, 1, 115200, 0x375ec573
1, 8820, 8820, 1484, 5936, 0x00000000
-0, 42000, 42000, 0, 115200, 0x375ec573
+0, 7, 7, 1, 115200, 0x375ec573
1, 10304, 10304, 1456, 5824, 0x0f06f5bb
-0, 48000, 48000, 0, 115200, 0x0b4d31bf
+0, 8, 8, 1, 115200, 0x0b4d31bf
1, 11760, 11760, 1484, 5936, 0xb0dbfc46
-0, 54000, 54000, 0, 115200, 0xdd724598
+0, 9, 9, 1, 115200, 0xdd724598
1, 13244, 13244, 1456, 5824, 0x9daa9f9c
-0, 60000, 60000, 0, 115200, 0xc3077e75
+0, 10, 10, 1, 115200, 0xc3077e75
1, 14700, 14700, 1484, 5936, 0x61400d2f
-0, 66000, 66000, 0, 115200, 0xbf70778a
+0, 11, 11, 1, 115200, 0xbf70778a
1, 16184, 16184, 1456, 5824, 0x34a5b0e3
-0, 72000, 72000, 0, 115200, 0x117eb766
+0, 12, 12, 1, 115200, 0x117eb766
1, 17640, 17640, 1484, 5936, 0x6e546f72
-0, 78000, 78000, 0, 115200, 0x4617fbad
+0, 13, 13, 1, 115200, 0x4617fbad
1, 19124, 19124, 1456, 5824, 0x4f093b35
-0, 84000, 84000, 0, 115200, 0x5f5b02d2
+0, 14, 14, 1, 115200, 0x5f5b02d2
1, 20580, 20580, 1484, 5936, 0x95b5b599
-0, 90000, 90000, 0, 115200, 0x2a9c5325
+0, 15, 15, 1, 115200, 0x2a9c5325
1, 22064, 22064, 1456, 5824, 0x75e15e60
-0, 96000, 96000, 0, 115200, 0x14a89e2a
+0, 16, 16, 1, 115200, 0x14a89e2a
1, 23520, 23520, 1484, 5936, 0xd1077d39
-0, 102000, 102000, 0, 115200, 0xe69aa994
+0, 17, 17, 1, 115200, 0xe69aa994
1, 25004, 25004, 1456, 5824, 0x956e21ca
-0, 108000, 108000, 0, 115200, 0xfbacf589
+0, 18, 18, 1, 115200, 0xfbacf589
1, 26460, 26460, 1484, 5936, 0x33bac234
-0, 114000, 114000, 0, 115200, 0x1d714c6e
+0, 19, 19, 1, 115200, 0x1d714c6e
1, 27944, 27944, 1456, 5824, 0x5df37824
-0, 120000, 120000, 0, 115200, 0x6eff66cb
+0, 20, 20, 1, 115200, 0x6eff66cb
1, 29400, 29400, 1484, 5936, 0xc174af24
-0, 126000, 126000, 0, 115200, 0xee21c1cb
+0, 21, 21, 1, 115200, 0xee21c1cb
1, 30884, 30884, 1456, 5824, 0xe5dc2159
-0, 132000, 132000, 0, 115200, 0xce714ada
+0, 22, 22, 1, 115200, 0xce714ada
1, 32340, 32340, 1484, 5936, 0x63ffc8b1
-0, 138000, 138000, 0, 115200, 0xf89d56c3
+0, 23, 23, 1, 115200, 0xf89d56c3
1, 33824, 33824, 1456, 5824, 0xefe4c365
-0, 144000, 144000, 0, 115200, 0x65fd5e60
+0, 24, 24, 1, 115200, 0x65fd5e60
1, 35280, 35280, 1484, 5936, 0x2174304d
-0, 150000, 150000, 0, 115200, 0x0c256424
+0, 25, 25, 1, 115200, 0x0c256424
diff --git a/tests/ref/fate/armovie-escape124 b/tests/ref/fate/armovie-escape124
index c686327c9e..83614c263d 100644
--- a/tests/ref/fate/armovie-escape124
+++ b/tests/ref/fate/armovie-escape124
@@ -1,106 +1,106 @@
#tb 0: 1/25
#tb 1: 1/44100
-0, 0, 0, 1, 230400, 0x5288d70f
+0, 0, 0, 1, 230400, 0xd133e177
1, 0, 0, 44100, 176400, 0xdd61578c
-0, 1, 1, 1, 230400, 0x2d3c1066
-0, 2, 2, 1, 230400, 0x89eb5b4a
-0, 3, 3, 1, 230400, 0x24c2d2e7
-0, 4, 4, 1, 230400, 0x9271cb38
-0, 5, 5, 1, 230400, 0xc74a5009
-0, 6, 6, 1, 230400, 0x61d70705
-0, 7, 7, 1, 230400, 0x6bb2c252
-0, 8, 8, 1, 230400, 0x6b3ac910
-0, 9, 9, 1, 230400, 0x44071f28
-0, 10, 10, 1, 230400, 0x8abd00fe
-0, 11, 11, 1, 230400, 0xcbe3395d
-0, 12, 12, 1, 230400, 0x603e7b7a
-0, 13, 13, 1, 230400, 0x2ca8865b
-0, 14, 14, 1, 230400, 0x11b4c665
-0, 15, 15, 1, 230400, 0x3f19787c
-0, 16, 16, 1, 230400, 0x651d24b6
-0, 17, 17, 1, 230400, 0x325d05af
-0, 18, 18, 1, 230400, 0x4f89d8a8
-0, 19, 19, 1, 230400, 0xb07647f0
-0, 20, 20, 1, 230400, 0x71141237
-0, 21, 21, 1, 230400, 0xa848a2d2
-0, 22, 22, 1, 230400, 0x3fbe4b58
-0, 23, 23, 1, 230400, 0xa1e235a0
-0, 24, 24, 1, 230400, 0x9bcf607a
-0, 25, 25, 1, 230400, 0x3302e9eb
+0, 1, 1, 1, 230400, 0xe3501bb2
+0, 2, 2, 1, 230400, 0x44da84f0
+0, 3, 3, 1, 230400, 0xe0fd17ed
+0, 4, 4, 1, 230400, 0xef4e08c7
+0, 5, 5, 1, 230400, 0xf52f82b5
+0, 6, 6, 1, 230400, 0x05eb186c
+0, 7, 7, 1, 230400, 0x0653f05d
+0, 8, 8, 1, 230400, 0xde1a0735
+0, 9, 9, 1, 230400, 0x6045576e
+0, 10, 10, 1, 230400, 0xac9444c4
+0, 11, 11, 1, 230400, 0x5f7f82fb
+0, 12, 12, 1, 230400, 0xaf4718ce
+0, 13, 13, 1, 230400, 0x117d5787
+0, 14, 14, 1, 230400, 0x319ac1f5
+0, 15, 15, 1, 230400, 0xd05cb30a
+0, 16, 16, 1, 230400, 0x96107c72
+0, 17, 17, 1, 230400, 0x73ff0a30
+0, 18, 18, 1, 230400, 0x865d0f3e
+0, 19, 19, 1, 230400, 0x3384ad55
+0, 20, 20, 1, 230400, 0x6694b2ea
+0, 21, 21, 1, 230400, 0x324f5cb8
+0, 22, 22, 1, 230400, 0x2de7c12f
+0, 23, 23, 1, 230400, 0x57fedb1a
+0, 24, 24, 1, 230400, 0xf46f2abf
+0, 25, 25, 1, 230400, 0xe5fead9b
1, 44100, 44100, 44100, 176400, 0x0b9e6d67
-0, 26, 26, 1, 230400, 0xd731ba90
-0, 27, 27, 1, 230400, 0x821eedcf
-0, 28, 28, 1, 230400, 0xd068a93d
-0, 29, 29, 1, 230400, 0x2811d46e
-0, 30, 30, 1, 230400, 0xd9740446
-0, 31, 31, 1, 230400, 0x1bce0df6
-0, 32, 32, 1, 230400, 0x44bc60ad
-0, 33, 33, 1, 230400, 0xf56f6200
-0, 34, 34, 1, 230400, 0x874a2264
-0, 35, 35, 1, 230400, 0xaa155c0e
-0, 36, 36, 1, 230400, 0x595392d4
-0, 37, 37, 1, 230400, 0x58dc57de
-0, 38, 38, 1, 230400, 0x1c06733e
-0, 39, 39, 1, 230400, 0x6807b1db
-0, 40, 40, 1, 230400, 0x3fedff87
-0, 41, 41, 1, 230400, 0x3e38cc13
-0, 42, 42, 1, 230400, 0x6685ec35
-0, 43, 43, 1, 230400, 0x6c0742fd
-0, 44, 44, 1, 230400, 0x8108f83c
-0, 45, 45, 1, 230400, 0xc0e217c8
-0, 46, 46, 1, 230400, 0xb22ca65d
-0, 47, 47, 1, 230400, 0xd54cec93
-0, 48, 48, 1, 230400, 0xd9d61de3
-0, 49, 49, 1, 230400, 0x7e0f9675
-0, 50, 50, 1, 230400, 0x9869f5b7
+0, 26, 26, 1, 230400, 0x65764edb
+0, 27, 27, 1, 230400, 0xeabdcf53
+0, 28, 28, 1, 230400, 0xaeb659fc
+0, 29, 29, 1, 230400, 0x5ec97eb1
+0, 30, 30, 1, 230400, 0x2482abae
+0, 31, 31, 1, 230400, 0x297fb0c8
+0, 32, 32, 1, 230400, 0x57a52a3d
+0, 33, 33, 1, 230400, 0x44040e98
+0, 34, 34, 1, 230400, 0xa150e542
+0, 35, 35, 1, 230400, 0x0a1e1296
+0, 36, 36, 1, 230400, 0xf1085864
+0, 37, 37, 1, 230400, 0xe7a13b40
+0, 38, 38, 1, 230400, 0x759d384d
+0, 39, 39, 1, 230400, 0x72e08991
+0, 40, 40, 1, 230400, 0x10a4bbc9
+0, 41, 41, 1, 230400, 0xb258ac16
+0, 42, 42, 1, 230400, 0xde06facb
+0, 43, 43, 1, 230400, 0x94284e11
+0, 44, 44, 1, 230400, 0xedf23092
+0, 45, 45, 1, 230400, 0xc2be6319
+0, 46, 46, 1, 230400, 0x103a0b7b
+0, 47, 47, 1, 230400, 0x3415888b
+0, 48, 48, 1, 230400, 0x5ecaac75
+0, 49, 49, 1, 230400, 0xb9ba503e
+0, 50, 50, 1, 230400, 0xb20ccf57
1, 88200, 88200, 44100, 176400, 0x2793fad7
-0, 51, 51, 1, 230400, 0x22f33400
-0, 52, 52, 1, 230400, 0x31b999bd
-0, 53, 53, 1, 230400, 0x36c23878
-0, 54, 54, 1, 230400, 0x06093a30
-0, 55, 55, 1, 230400, 0x213f1718
-0, 56, 56, 1, 230400, 0x83683006
-0, 57, 57, 1, 230400, 0x0bfcec36
-0, 58, 58, 1, 230400, 0x01b77825
-0, 59, 59, 1, 230400, 0x650a5ea2
-0, 60, 60, 1, 230400, 0xd8b2c559
-0, 61, 61, 1, 230400, 0xb012eb10
-0, 62, 62, 1, 230400, 0x135d53a4
-0, 63, 63, 1, 230400, 0x98dd0712
-0, 64, 64, 1, 230400, 0x75240ac0
-0, 65, 65, 1, 230400, 0xa16769d5
-0, 66, 66, 1, 230400, 0x3e08cda3
-0, 67, 67, 1, 230400, 0xcd20d561
-0, 68, 68, 1, 230400, 0x3531577d
-0, 69, 69, 1, 230400, 0x65ff4c82
-0, 70, 70, 1, 230400, 0x8fd4a580
-0, 71, 71, 1, 230400, 0x3cf7af4c
-0, 72, 72, 1, 230400, 0xda7a9202
-0, 73, 73, 1, 230400, 0x4bebc138
-0, 74, 74, 1, 230400, 0x5517e685
-0, 75, 75, 1, 230400, 0x95f6c7a3
+0, 51, 51, 1, 230400, 0x0dba31ed
+0, 52, 52, 1, 230400, 0x91c5e7d4
+0, 53, 53, 1, 230400, 0x09ac954b
+0, 54, 54, 1, 230400, 0xe9c3d563
+0, 55, 55, 1, 230400, 0xf46eef67
+0, 56, 56, 1, 230400, 0x117f4b80
+0, 57, 57, 1, 230400, 0x61714860
+0, 58, 58, 1, 230400, 0x5c7112d0
+0, 59, 59, 1, 230400, 0xd42c51e7
+0, 60, 60, 1, 230400, 0x425f0c99
+0, 61, 61, 1, 230400, 0x4c398834
+0, 62, 62, 1, 230400, 0x237f89c2
+0, 63, 63, 1, 230400, 0xd2e29b05
+0, 64, 64, 1, 230400, 0x204a054b
+0, 65, 65, 1, 230400, 0x25a9faf7
+0, 66, 66, 1, 230400, 0x83f6c1a8
+0, 67, 67, 1, 230400, 0xe48321b9
+0, 68, 68, 1, 230400, 0x714c1005
+0, 69, 69, 1, 230400, 0x36cc58e9
+0, 70, 70, 1, 230400, 0x5e9ffdd9
+0, 71, 71, 1, 230400, 0x582b55dc
+0, 72, 72, 1, 230400, 0x139a7f39
+0, 73, 73, 1, 230400, 0xefb5f998
+0, 74, 74, 1, 230400, 0xeb736da8
+0, 75, 75, 1, 230400, 0x488f9847
1, 132300, 132300, 44100, 176400, 0xe2649a4a
-0, 76, 76, 1, 230400, 0x9849ebf9
-0, 77, 77, 1, 230400, 0xd77e1c7d
-0, 78, 78, 1, 230400, 0x4dc6c923
-0, 79, 79, 1, 230400, 0x7ce817c8
-0, 80, 80, 1, 230400, 0xafb4acde
-0, 81, 81, 1, 230400, 0xd0030b2c
-0, 82, 82, 1, 230400, 0xb3acb77c
-0, 83, 83, 1, 230400, 0x4d32b61c
-0, 84, 84, 1, 230400, 0x2436a915
-0, 85, 85, 1, 230400, 0xa6fd831f
-0, 86, 86, 1, 230400, 0x6c6edfca
-0, 87, 87, 1, 230400, 0x4b30d72e
-0, 88, 88, 1, 230400, 0x59f46a8a
-0, 89, 89, 1, 230400, 0xa2d0435f
-0, 90, 90, 1, 230400, 0x463872c4
-0, 91, 91, 1, 230400, 0x1d7e870a
-0, 92, 92, 1, 230400, 0x74f4e530
-0, 93, 93, 1, 230400, 0xbc61053d
-0, 94, 94, 1, 230400, 0x5fb238dc
-0, 95, 95, 1, 230400, 0x14a29d83
-0, 96, 96, 1, 230400, 0x3fd1d09b
-0, 97, 97, 1, 230400, 0x098afc13
-0, 98, 98, 1, 230400, 0x9bd12a62
-0, 99, 99, 1, 230400, 0x7bf71419
+0, 76, 76, 1, 230400, 0x6ab20741
+0, 77, 77, 1, 230400, 0xa73686f0
+0, 78, 78, 1, 230400, 0x67878643
+0, 79, 79, 1, 230400, 0x83bb241b
+0, 80, 80, 1, 230400, 0xe6b70660
+0, 81, 81, 1, 230400, 0x87f5aca3
+0, 82, 82, 1, 230400, 0x29c79bc3
+0, 83, 83, 1, 230400, 0xcadbd70b
+0, 84, 84, 1, 230400, 0x8cdcfdee
+0, 85, 85, 1, 230400, 0x90aa0442
+0, 86, 86, 1, 230400, 0xa68e87b7
+0, 87, 87, 1, 230400, 0xa2c49e58
+0, 88, 88, 1, 230400, 0x9a9a4c55
+0, 89, 89, 1, 230400, 0x06b53aed
+0, 90, 90, 1, 230400, 0x79e1808a
+0, 91, 91, 1, 230400, 0x3e53a411
+0, 92, 92, 1, 230400, 0xfebc13ca
+0, 93, 93, 1, 230400, 0x1f1f443b
+0, 94, 94, 1, 230400, 0xd0db806a
+0, 95, 95, 1, 230400, 0x6f2aee94
+0, 96, 96, 1, 230400, 0xe8cc23ba
+0, 97, 97, 1, 230400, 0x2edf510b
+0, 98, 98, 1, 230400, 0x87118129
+0, 99, 99, 1, 230400, 0x1dd1709a
diff --git a/tests/ref/fate/bethsoft-vid b/tests/ref/fate/bethsoft-vid
index a4c049e4ec..19674270a4 100644
--- a/tests/ref/fate/bethsoft-vid
+++ b/tests/ref/fate/bethsoft-vid
@@ -1,144 +1,144 @@
-#tb 0: 185/11111
+#tb 0: 1/14
#tb 1: 1/11111
0, 0, 0, 1, 192000, 0x00000000
1, 0, 0, 740, 1480, 0x00000000
-0, 4, 4, 1, 192000, 0x01a6cf45
1, 740, 740, 740, 1480, 0x20a92bd4
-0, 8, 8, 1, 192000, 0xd07d57e9
+0, 1, 1, 1, 192000, 0x5a5acf57
1, 1480, 1480, 925, 1850, 0xa9e48a74
-0, 13, 13, 1, 192000, 0x3cb1dff5
+0, 2, 2, 1, 192000, 0xbd055cf1
+0, 3, 3, 1, 192000, 0x28b1eefc
1, 2405, 2405, 740, 1480, 0x23ecd018
-0, 17, 17, 1, 192000, 0xd1aaa8fb
1, 3145, 3145, 740, 1480, 0x206bb915
-0, 21, 21, 1, 192000, 0x75f526cd
+0, 4, 4, 1, 192000, 0x0636bacd
1, 3885, 3885, 925, 1850, 0xb0e10e75
-0, 26, 26, 1, 192000, 0x0f673577
+0, 5, 5, 1, 192000, 0xbfd33cbd
+0, 6, 6, 1, 192000, 0x0bd150ef
1, 4810, 4810, 740, 1480, 0x8d9baedd
-0, 30, 30, 1, 192000, 0x897b6781
1, 5550, 5550, 740, 1480, 0xb802aae1
-0, 34, 34, 1, 192000, 0x81e6b7f7
+0, 7, 7, 1, 192000, 0x780d891e
1, 6290, 6290, 740, 1480, 0xecd7b5cc
-0, 38, 38, 1, 192000, 0x1f45ce61
+0, 8, 8, 1, 192000, 0xacf5e205
1, 7030, 7030, 925, 1850, 0x16861355
-0, 43, 43, 1, 192000, 0x5a0772a6
+0, 9, 9, 1, 192000, 0x37c900dc
+0, 10, 10, 1, 192000, 0x4ee6add7
1, 7955, 7955, 740, 1480, 0xa51690bd
-0, 47, 47, 1, 192000, 0xf78732b3
1, 8695, 8695, 740, 1480, 0xdd0b90d1
-0, 51, 51, 1, 192000, 0x8427f9e5
+0, 11, 11, 1, 192000, 0x1844783a
1, 9435, 9435, 925, 1850, 0x3ce6e333
-0, 56, 56, 1, 192000, 0x40473f11
+0, 12, 12, 1, 192000, 0x7bf84848
+0, 13, 13, 1, 192000, 0x1ec296bc
1, 10360, 10360, 740, 1480, 0xf8ce8ea3
-0, 60, 60, 1, 192000, 0x173ceebe
1, 11100, 11100, 740, 1480, 0xda4597af
-0, 64, 64, 1, 192000, 0x136b9516
+0, 14, 14, 1, 192000, 0xbaeb5292
1, 11840, 11840, 740, 1480, 0x918f7cb3
-0, 68, 68, 1, 192000, 0x138d11ae
+0, 15, 15, 1, 192000, 0xcb18038d
1, 12580, 12580, 925, 1850, 0xca6edb15
-0, 73, 73, 1, 192000, 0x063dbff3
+0, 16, 16, 1, 192000, 0xb3cc8b65
+0, 17, 17, 1, 192000, 0x6f164685
1, 13505, 13505, 740, 1480, 0xba279597
-0, 77, 77, 1, 192000, 0x5280852f
1, 14245, 14245, 740, 1480, 0xc5a38a9e
-0, 81, 81, 1, 192000, 0x99943a8f
+0, 18, 18, 1, 192000, 0x304917c9
1, 14985, 14985, 925, 1850, 0x8147eef5
-0, 86, 86, 1, 192000, 0x0330a728
+0, 19, 19, 1, 192000, 0x8269daa1
+0, 20, 20, 1, 192000, 0x04d3500d
1, 15910, 15910, 740, 1480, 0xce2c7cb5
-0, 90, 90, 1, 192000, 0x5d35467d
1, 16650, 16650, 740, 1480, 0x4282819f
-0, 94, 94, 1, 192000, 0xfd436343
+0, 21, 21, 1, 192000, 0x9788f7a5
1, 17390, 17390, 740, 1480, 0xbdbb8da6
-0, 98, 98, 1, 192000, 0xc323fcfe
+0, 22, 22, 1, 192000, 0x05351c98
1, 18130, 18130, 925, 1850, 0xdbbeea10
-0, 103, 103, 1, 192000, 0x2a1530a0
+0, 23, 23, 1, 192000, 0xcc8bba97
+0, 24, 24, 1, 192000, 0x76caf27b
1, 19055, 19055, 740, 1480, 0xbe6a77c2
-0, 107, 107, 1, 192000, 0xbd43bb60
1, 19795, 19795, 740, 1480, 0xa85c75b2
-0, 111, 111, 1, 192000, 0xa47f5eab
+0, 25, 25, 1, 192000, 0x28648040
1, 20535, 20535, 925, 1850, 0xa45bde21
-0, 116, 116, 1, 192000, 0xff17f5f7
+0, 26, 26, 1, 192000, 0x99ea251f
+0, 27, 27, 1, 192000, 0x20e7bf4d
1, 21460, 21460, 740, 1480, 0x84aa7895
-0, 120, 120, 1, 192000, 0xb4140b55
1, 22200, 22200, 740, 1480, 0x147f7d9f
-0, 124, 124, 1, 192000, 0xb8782cc4
+0, 28, 28, 1, 192000, 0x046ed625
1, 22940, 22940, 740, 1480, 0xc8e77b85
-0, 128, 128, 1, 192000, 0x92975b8b
+0, 29, 29, 1, 192000, 0x1613fb12
1, 23680, 23680, 925, 1850, 0x10d4d81b
-0, 133, 133, 1, 192000, 0xf42a64d6
+0, 30, 30, 1, 192000, 0xd8b52d16
+0, 31, 31, 1, 192000, 0x31443aa9
1, 24605, 24605, 740, 1480, 0xb4ae8bb1
-0, 137, 137, 1, 192000, 0x2cc7077d
1, 25345, 25345, 740, 1480, 0x3ef782a5
-0, 141, 141, 1, 192000, 0x00080cc8
+0, 32, 32, 1, 192000, 0xd426de3d
1, 26085, 26085, 925, 1850, 0xdeebda14
-0, 146, 146, 1, 192000, 0x584b48f3
+0, 33, 33, 1, 192000, 0xb2bce77b
+0, 34, 34, 1, 192000, 0x25a52805
1, 27010, 27010, 740, 1480, 0x4c7e7bbb
-0, 150, 150, 1, 192000, 0xd68f57da
1, 27750, 27750, 740, 1480, 0x0e0e9198
-0, 154, 154, 1, 192000, 0x60158422
+0, 35, 35, 1, 192000, 0x04f03a87
1, 28490, 28490, 740, 1480, 0x5c1f819f
-0, 158, 158, 1, 192000, 0xd7fb89e6
+0, 36, 36, 1, 192000, 0x41d56889
1, 29230, 29230, 925, 1850, 0x0e4cf6ff
-0, 163, 163, 1, 192000, 0x97f1c76a
+0, 37, 37, 1, 192000, 0x3d4d6de9
1, 30155, 30155, 740, 1480, 0x374388a7
-0, 167, 167, 1, 192000, 0x46c4bb9e
+0, 38, 38, 1, 192000, 0xa7a2abfe
1, 30895, 30895, 740, 1480, 0xed729389
-0, 171, 171, 1, 192000, 0xd32f9b66
+0, 39, 39, 1, 192000, 0x663e9fca
1, 31635, 31635, 925, 1850, 0xe0f1e43f
-0, 176, 176, 1, 192000, 0x74f43886
+0, 40, 40, 1, 192000, 0x29a67f86
+0, 41, 41, 1, 192000, 0x51531bb0
1, 32560, 32560, 740, 1480, 0x3b27839a
-0, 180, 180, 1, 192000, 0x3c4e47df
1, 33300, 33300, 740, 1480, 0xe6287e94
-0, 184, 184, 1, 192000, 0xb5ac0a58
+0, 42, 42, 1, 192000, 0xd993277e
1, 34040, 34040, 740, 1480, 0x7e0d84b5
-0, 188, 188, 1, 192000, 0xcc572b31
+0, 43, 43, 1, 192000, 0x4873e583
1, 34780, 34780, 925, 1850, 0xf08bebf7
-0, 193, 193, 1, 192000, 0xb1739d26
+0, 44, 44, 1, 192000, 0x06df053b
1, 35705, 35705, 740, 1480, 0x94cf73a0
-0, 197, 197, 1, 192000, 0x73da5473
+0, 45, 45, 1, 192000, 0x044f7698
1, 36445, 36445, 740, 1480, 0xfef384ae
-0, 201, 201, 1, 192000, 0x5f79f5bc
+0, 46, 46, 1, 192000, 0xc2302a45
1, 37185, 37185, 925, 1850, 0x3b93e0f7
-0, 206, 206, 1, 192000, 0x0affc0a0
+0, 47, 47, 1, 192000, 0xbdfec8ee
+0, 48, 48, 1, 192000, 0x3b739286
1, 38110, 38110, 740, 1480, 0x28d27bae
-0, 210, 210, 1, 192000, 0x2b4d5c1c
1, 38850, 38850, 740, 1480, 0x94d57da5
-0, 214, 214, 1, 192000, 0x309b41bc
+0, 49, 49, 1, 192000, 0x3ca82cd6
1, 39590, 39590, 740, 1480, 0xc9327db5
-0, 218, 218, 1, 192000, 0xd42b6424
+0, 50, 50, 1, 192000, 0x25af10f2
1, 40330, 40330, 925, 1850, 0xe781f604
-0, 223, 223, 1, 192000, 0x4795c948
+0, 51, 51, 1, 192000, 0x09ce32bf
1, 41255, 41255, 740, 1480, 0x752f8c5b
-0, 227, 227, 1, 192000, 0xbc1a3a8b
+0, 52, 52, 1, 192000, 0xdab399c2
1, 41995, 41995, 740, 1480, 0x30068032
-0, 231, 231, 1, 192000, 0x16529c5b
+0, 53, 53, 1, 192000, 0x77400d93
1, 42735, 42735, 925, 1850, 0x7895023e
-0, 236, 236, 1, 192000, 0x6b1b31ba
+0, 54, 54, 1, 192000, 0x5e8e6fe7
+0, 55, 55, 1, 192000, 0x277506c9
1, 43660, 43660, 740, 1480, 0xa1e0a6e1
-0, 240, 240, 1, 192000, 0x569182ce
1, 44400, 44400, 740, 1480, 0x6af4b500
-0, 244, 244, 1, 192000, 0xe6ea9866
+0, 56, 56, 1, 192000, 0xe91b59ac
1, 45140, 45140, 740, 1480, 0xc26ea4c7
-0, 248, 248, 1, 192000, 0x102c6076
+0, 57, 57, 1, 192000, 0xc2aa6e19
1, 45880, 45880, 925, 1850, 0x16a72419
-0, 253, 253, 1, 192000, 0xb29f527a
+0, 58, 58, 1, 192000, 0x12c63645
1, 46805, 46805, 740, 1480, 0x1794aacc
-0, 257, 257, 1, 192000, 0x040b4eee
+0, 59, 59, 1, 192000, 0xa39f27d6
1, 47545, 47545, 740, 1480, 0x2ecad8d0
-0, 261, 261, 1, 192000, 0x92574f4a
+0, 60, 60, 1, 192000, 0x20c32512
1, 48285, 48285, 925, 1850, 0x2e645e07
-0, 266, 266, 1, 192000, 0x1e8acdce
+0, 61, 61, 1, 192000, 0x385a26a0
+0, 62, 62, 1, 192000, 0x2566a70c
1, 49210, 49210, 740, 1480, 0x1c54dfe7
-0, 270, 270, 1, 192000, 0x1becf516
1, 49950, 49950, 740, 1480, 0xbd35feec
-0, 274, 274, 1, 192000, 0xb62e9776
+0, 63, 63, 1, 192000, 0x7105cfb9
1, 50690, 50690, 740, 1480, 0x419403d6
-0, 278, 278, 1, 192000, 0xed37a08e
+0, 64, 64, 1, 192000, 0x725671a2
1, 51430, 51430, 925, 1850, 0x78699d2a
-0, 283, 283, 1, 192000, 0xc0719912
+0, 65, 65, 1, 192000, 0x3ff2782a
1, 52355, 52355, 740, 1480, 0x74ec68e0
-0, 287, 287, 1, 192000, 0x24cf7a7e
+0, 66, 66, 1, 192000, 0xdc0571c3
1, 53095, 53095, 740, 1480, 0x76af64d9
-0, 291, 291, 1, 192000, 0x0307f62f
+0, 67, 67, 1, 192000, 0x4a6a5405
1, 53835, 53835, 925, 1850, 0x5a303d1a
-0, 296, 296, 1, 192000, 0x79b7417b
+0, 68, 68, 1, 192000, 0x3ec3cce1
1, 54760, 54760, 537, 1074, 0x142ce7ba
+0, 69, 69, 1, 192000, 0x159313a8
1, 55297, 55297, 925, 1850, 0x7ff682f7
-0, 300, 300, 1, 192000, 0x468d8db4
+0, 70, 70, 1, 192000, 0x8e685d68
diff --git a/tests/ref/fate/cdxl-bitline-ham6 b/tests/ref/fate/cdxl-bitline-ham6
index e4071a9955..8060f06024 100644
--- a/tests/ref/fate/cdxl-bitline-ham6
+++ b/tests/ref/fate/cdxl-bitline-ham6
@@ -1,11 +1,11 @@
-#tb 0: 1/11025
-0, 0, 0, 0, 63180, 0xcda82c16
-0, 220, 220, 0, 63180, 0xa6097bf9
-0, 440, 440, 0, 63180, 0x4c2fb091
-0, 660, 660, 0, 63180, 0xc597db00
-0, 880, 880, 0, 63180, 0xfa581ccd
-0, 1100, 1100, 0, 63180, 0x3e51498f
-0, 1320, 1320, 0, 63180, 0xe3495396
-0, 1540, 1540, 0, 63180, 0x425f5f02
-0, 1760, 1760, 0, 63180, 0x6077465f
-0, 1980, 1980, 0, 63180, 0x923ba29c
+#tb 0: 12/601
+0, 0, 0, 1, 63180, 0xcda82c16
+0, 1, 1, 1, 63180, 0xa6097bf9
+0, 2, 2, 1, 63180, 0x4c2fb091
+0, 3, 3, 1, 63180, 0xc597db00
+0, 4, 4, 1, 63180, 0xfa581ccd
+0, 5, 5, 1, 63180, 0x3e51498f
+0, 6, 6, 1, 63180, 0xe3495396
+0, 7, 7, 1, 63180, 0x425f5f02
+0, 8, 8, 1, 63180, 0x6077465f
+0, 9, 9, 1, 63180, 0x923ba29c
diff --git a/tests/ref/fate/cdxl-ham6 b/tests/ref/fate/cdxl-ham6
index 25886b2518..6426d45014 100644
--- a/tests/ref/fate/cdxl-ham6
+++ b/tests/ref/fate/cdxl-ham6
@@ -1,17 +1,17 @@
-#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
+#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
diff --git a/tests/ref/fate/cdxl-ham8 b/tests/ref/fate/cdxl-ham8
index 356ad1be19..269f1f30cf 100644
--- a/tests/ref/fate/cdxl-ham8
+++ b/tests/ref/fate/cdxl-ham8
@@ -1,2 +1,2 @@
-#tb 0: 1/11025
-0, 0, 0, 0, 67584, 0xce0cade5
+#tb 0: 3/158
+0, 0, 0, 1, 67584, 0xce0cade5
diff --git a/tests/ref/fate/cdxl-pal8 b/tests/ref/fate/cdxl-pal8
index f5c319af58..82d4d634c7 100644
--- a/tests/ref/fate/cdxl-pal8
+++ b/tests/ref/fate/cdxl-pal8
@@ -1,12 +1,12 @@
-#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
+#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
diff --git a/tests/ref/fate/cdxl-pal8-small b/tests/ref/fate/cdxl-pal8-small
index d285e9a190..f7a1a465ab 100644
--- a/tests/ref/fate/cdxl-pal8-small
+++ b/tests/ref/fate/cdxl-pal8-small
@@ -1,47 +1,47 @@
-#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
+#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
diff --git a/tests/ref/fate/cljr b/tests/ref/fate/cljr
index f73c8c0b34..584254154a 100644
--- a/tests/ref/fate/cljr
+++ b/tests/ref/fate/cljr
@@ -1,37 +1,37 @@
#tb 0: 3521/100000
-0, 0, 0, 1, 64800, 0x44a1c47c
-0, 1, 1, 1, 64800, 0x649cc3a4
-0, 2, 2, 1, 64800, 0xcab1b88c
-0, 3, 3, 1, 64800, 0xf56cb788
-0, 4, 4, 1, 64800, 0x5336b618
-0, 5, 5, 1, 64800, 0x2704b438
-0, 6, 6, 1, 64800, 0x04c7b8e4
-0, 7, 7, 1, 64800, 0x3185b288
-0, 8, 8, 1, 64800, 0xa537c410
-0, 9, 9, 1, 64800, 0x6495c0f8
-0, 10, 10, 1, 64800, 0x06a1ca14
-0, 11, 11, 1, 64800, 0x69cdd2a0
-0, 12, 12, 1, 64800, 0x4ad2d828
-0, 13, 13, 1, 64800, 0x9604dea4
-0, 14, 14, 1, 64800, 0x1c00e430
-0, 15, 15, 1, 64800, 0x9afeefe0
-0, 16, 16, 1, 64800, 0xc13fdd78
-0, 17, 17, 1, 64800, 0x8438da7c
-0, 18, 18, 1, 64800, 0xa0ead278
-0, 19, 19, 1, 64800, 0xbeced2d8
-0, 20, 20, 1, 64800, 0x85bbd7dc
-0, 21, 21, 1, 64800, 0xbe59ce34
-0, 22, 22, 1, 64800, 0xd76ecccc
-0, 23, 23, 1, 64800, 0xe182b474
-0, 24, 24, 1, 64800, 0x916cc394
-0, 25, 25, 1, 64800, 0x7efebd14
-0, 26, 26, 1, 64800, 0x8d28c9f0
-0, 27, 27, 1, 64800, 0x00a1c960
-0, 28, 28, 1, 64800, 0xc164c400
-0, 29, 29, 1, 64800, 0xfd4dc544
-0, 30, 30, 1, 64800, 0x01bfbe38
-0, 31, 31, 1, 64800, 0xff11b5d0
-0, 32, 32, 1, 64800, 0x4876bb20
-0, 33, 33, 1, 64800, 0x756ecb04
-0, 34, 34, 1, 64800, 0x3b8cd540
-0, 35, 35, 1, 64800, 0x063ed444
+0, 0, 0, 1, 64800, 0x63132a60
+0, 1, 1, 1, 64800, 0xb3c729a3
+0, 2, 2, 1, 64800, 0xa27b1e0e
+0, 3, 3, 1, 64800, 0xb9131d00
+0, 4, 4, 1, 64800, 0xaf9a1bae
+0, 5, 5, 1, 64800, 0x11e319c5
+0, 6, 6, 1, 64800, 0xee6e1e6b
+0, 7, 7, 1, 64800, 0x418417e9
+0, 8, 8, 1, 64800, 0x339d29f4
+0, 9, 9, 1, 64800, 0x198926c4
+0, 10, 10, 1, 64800, 0x439a3044
+0, 11, 11, 1, 64800, 0x0a4e38e1
+0, 12, 12, 1, 64800, 0x6e043e7e
+0, 13, 13, 1, 64800, 0xde434533
+0, 14, 14, 1, 64800, 0xb58a4ad1
+0, 15, 15, 1, 64800, 0xaa105710
+0, 16, 16, 1, 64800, 0x1723440c
+0, 17, 17, 1, 64800, 0x3b064116
+0, 18, 18, 1, 64800, 0x853f38e4
+0, 19, 19, 1, 64800, 0x52f53917
+0, 20, 20, 1, 64800, 0xea363e5a
+0, 21, 21, 1, 64800, 0x4d0a344e
+0, 22, 22, 1, 64800, 0xe49232fc
+0, 23, 23, 1, 64800, 0x747b1a02
+0, 24, 24, 1, 64800, 0xbaa82992
+0, 25, 25, 1, 64800, 0x8e9322db
+0, 26, 26, 1, 64800, 0x029a2fcf
+0, 27, 27, 1, 64800, 0xb9a62f6a
+0, 28, 28, 1, 64800, 0x553329fe
+0, 29, 29, 1, 64800, 0x9a052b5b
+0, 30, 30, 1, 64800, 0xe2ff2404
+0, 31, 31, 1, 64800, 0xaacd1b59
+0, 32, 32, 1, 64800, 0x17d820de
+0, 33, 33, 1, 64800, 0x1c9e312c
+0, 34, 34, 1, 64800, 0x84df3b99
+0, 35, 35, 1, 64800, 0xf7d13aa1
diff --git a/tests/ref/fate/creatureshock-avs b/tests/ref/fate/creatureshock-avs
index 979baf61bb..4c721d8594 100644
--- a/tests/ref/fate/creatureshock-avs
+++ b/tests/ref/fate/creatureshock-avs
@@ -1,94 +1,94 @@
-#tb 0: 1/90000
+#tb 0: 1/15
#tb 1: 1/22222
-0, 0, 0, 0, 188892, 0xcb5be3dd
+0, 0, 0, 1, 188892, 0x9f47a5ec
1, 0, 0, 8186, 16372, 0xfaaab59d
-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
+0, 1, 1, 1, 188892, 0xdece0269
+0, 2, 2, 1, 188892, 0xd097e86e
+0, 3, 3, 1, 188892, 0x1cf2de83
+0, 4, 4, 1, 188892, 0xb664fd10
+0, 5, 5, 1, 188892, 0xc654f4c1
1, 8186, 8186, 2014, 4028, 0xc2daed72
-0, 36000, 36000, 0, 188892, 0xb31f03b4
+0, 6, 6, 1, 188892, 0x5adac3ff
1, 10200, 10200, 2743, 5486, 0xf7fd794d
-0, 42000, 42000, 0, 188892, 0xacb2d3f9
-0, 48000, 48000, 0, 188892, 0x7d77ecbd
+0, 7, 7, 1, 188892, 0x5928954e
+0, 8, 8, 1, 188892, 0x5e4cad6c
1, 12943, 12943, 2895, 5790, 0xfd5a369f
-0, 54000, 54000, 0, 188892, 0x7faa2f6c
-0, 60000, 60000, 0, 188892, 0x28f4fdf1
+0, 9, 9, 1, 188892, 0xbbb5f11b
+0, 10, 10, 1, 188892, 0xcb6bbdee
1, 15838, 15838, 534, 1068, 0x0b602cd0
-0, 66000, 66000, 0, 188892, 0x4b53f3b9
+0, 11, 11, 1, 188892, 0xa5b3b316
1, 16372, 16372, 2454, 4908, 0xfe870aad
-0, 72000, 72000, 0, 188892, 0x1f09bb29
+0, 12, 12, 1, 188892, 0x9bf87b5d
1, 18826, 18826, 3031, 6062, 0x8a4d6e0f
-0, 78000, 78000, 0, 188892, 0x3afcc11d
-0, 84000, 84000, 0, 188892, 0x6b918e49
+0, 13, 13, 1, 188892, 0xcc3981be
+0, 14, 14, 1, 188892, 0x2eb44dfa
1, 21857, 21857, 2701, 5402, 0x71fd352f
-0, 90000, 90000, 0, 188892, 0x9630a04d
-0, 96000, 96000, 0, 188892, 0x9381b4c1
+0, 15, 15, 1, 188892, 0x11c861b9
+0, 16, 16, 1, 188892, 0x7c1b767b
1, 24558, 24558, 272, 544, 0xeb766d34
1, 24830, 24830, 2953, 5906, 0x47ac7e08
-0, 102000, 102000, 0, 188892, 0xa7dea7e5
-0, 108000, 108000, 0, 188892, 0xd277c41d
+0, 17, 17, 1, 188892, 0x5078694c
+0, 18, 18, 1, 188892, 0xa24485c2
1, 27783, 27783, 2958, 5916, 0x0d26eb56
-0, 114000, 114000, 0, 188892, 0xafa2a6c9
-0, 120000, 120000, 0, 188892, 0x13a38839
+0, 19, 19, 1, 188892, 0xc8016946
+0, 20, 20, 1, 188892, 0x71e3493b
1, 30741, 30741, 2003, 4006, 0x9941c71a
-0, 126000, 126000, 0, 188892, 0xcd5e5a6d
-0, 132000, 132000, 0, 188892, 0xe7da71e9
+0, 21, 21, 1, 188892, 0xa9771a0d
+0, 22, 22, 1, 188892, 0x98be33fd
1, 32744, 32744, 1050, 2100, 0xc9a2ee36
1, 33794, 33794, 2947, 5894, 0xd2ba4eaa
-0, 138000, 138000, 0, 188892, 0x06928add
-0, 144000, 144000, 0, 188892, 0x4a108eb9
+0, 23, 23, 1, 188892, 0x193e4cda
+0, 24, 24, 1, 188892, 0x3b444fd1
1, 36741, 36741, 3045, 6090, 0xf43e73d0
-0, 150000, 150000, 0, 188892, 0xea2598f5
-0, 156000, 156000, 0, 188892, 0x17ed6839
+0, 25, 25, 1, 188892, 0x8bfe594c
+0, 26, 26, 1, 188892, 0xaab8267b
1, 39786, 39786, 1144, 2288, 0x5a8b7aa0
-0, 162000, 162000, 0, 188892, 0x9de6ab65
+0, 27, 27, 1, 188892, 0x03206c55
1, 40930, 40930, 1925, 3850, 0x7f66eb2c
-0, 168000, 168000, 0, 188892, 0xb4ee326f
+0, 28, 28, 1, 188892, 0x8ed7ea7d
1, 42855, 42855, 2898, 5796, 0xc5cf3ee8
-0, 174000, 174000, 0, 188892, 0x3f85095b
-0, 180000, 180000, 0, 188892, 0xaab7e331
+0, 29, 29, 1, 188892, 0x2a1bc3e1
+0, 30, 30, 1, 188892, 0xa6a12aa7
1, 45753, 45753, 3021, 6042, 0xed80136d
-0, 186000, 186000, 0, 188892, 0xc2a079e1
-0, 192000, 192000, 0, 188892, 0x612080c2
+0, 31, 31, 1, 188892, 0xa96ca4fa
+0, 32, 32, 1, 188892, 0x3e3a6d70
1, 48774, 48774, 342, 684, 0xc42bd137
-0, 198000, 198000, 0, 188892, 0xa7232d47
+0, 33, 33, 1, 188892, 0x47e173dd
1, 49116, 49116, 2718, 5436, 0xb7f8a6fd
-0, 204000, 204000, 0, 188892, 0xc053297d
+0, 34, 34, 1, 188892, 0xfcf183ba
1, 51834, 51834, 3049, 6098, 0xee6354a2
-0, 210000, 210000, 0, 188892, 0x1ecc3bfe
-0, 216000, 216000, 0, 188892, 0xcc4ac803
-0, 222000, 222000, 0, 188892, 0x4b90047b
+0, 35, 35, 1, 188892, 0xf051be46
+0, 36, 36, 1, 188892, 0x8aa6b100
+0, 37, 37, 1, 188892, 0x36c86b01
1, 54883, 54883, 2419, 4838, 0x129e61d0
-0, 228000, 228000, 0, 188892, 0xd863b643
+0, 38, 38, 1, 188892, 0x15ae396e
1, 57302, 57302, 537, 1074, 0x9da90634
-0, 234000, 234000, 0, 188892, 0x93a25fb1
+0, 39, 39, 1, 188892, 0xc876eabf
1, 57839, 57839, 3042, 6084, 0x8ffed952
-0, 240000, 240000, 0, 188892, 0xf969e131
-0, 246000, 246000, 0, 188892, 0x73bd2469
+0, 40, 40, 1, 188892, 0xc5c65fae
+0, 41, 41, 1, 188892, 0x4feec932
1, 60881, 60881, 3019, 6038, 0xa07b4276
-0, 252000, 252000, 0, 188892, 0x265a9ce2
-0, 258000, 258000, 0, 188892, 0xd59ccd39
+0, 42, 42, 1, 188892, 0x21374e88
+0, 43, 43, 1, 188892, 0x52e689f1
1, 63900, 63900, 1588, 3176, 0xebef63c1
-0, 264000, 264000, 0, 188892, 0xe50fc068
+0, 44, 44, 1, 188892, 0x9e2492e8
1, 65488, 65488, 1397, 2794, 0xbe1000db
-0, 270000, 270000, 0, 188892, 0x83113a86
+0, 45, 45, 1, 188892, 0xac841247
1, 66885, 66885, 3010, 6020, 0xd8e34961
-0, 276000, 276000, 0, 188892, 0xa0203504
-0, 282000, 282000, 0, 188892, 0x9e2d518c
+0, 46, 46, 1, 188892, 0x8467aab2
+0, 47, 47, 1, 188892, 0x552b6029
1, 69895, 69895, 3010, 6020, 0xc07cf461
-0, 288000, 288000, 0, 188892, 0x5f610e66
-0, 294000, 294000, 0, 188892, 0x9b77f900
+0, 48, 48, 1, 188892, 0x836eb46e
+0, 49, 49, 1, 188892, 0x93eb9f1b
1, 72905, 72905, 769, 1538, 0xc975ae02
1, 73674, 73674, 2115, 4230, 0x0827111b
-0, 300000, 300000, 0, 188892, 0xaaf279c2
-0, 306000, 306000, 0, 188892, 0x4ac97cc2
+0, 50, 50, 1, 188892, 0xa3661fdd
+0, 51, 51, 1, 188892, 0x433d22dd
1, 75789, 75789, 3042, 6084, 0x2cf0a407
-0, 312000, 312000, 0, 188892, 0xddd91642
-0, 318000, 318000, 0, 188892, 0x4f32dcd1
+0, 52, 52, 1, 188892, 0xd64dbc4e
+0, 53, 53, 1, 188892, 0x4a2aa0e3
1, 78831, 78831, 2914, 5828, 0x12750279
-0, 324000, 324000, 0, 188892, 0xdc126b42
-0, 330000, 330000, 0, 188892, 0x00000000
+0, 54, 54, 1, 188892, 0xd98e4d4b
+0, 55, 55, 1, 188892, 0x00000000
1, 81745, 81745, 115, 230, 0xc9c03f3b
1, 81860, 81860, 384, 768, 0x6137a04d
diff --git a/tests/ref/fate/cvid-palette b/tests/ref/fate/cvid-palette
index 5fcbc5153c..49de1c1a05 100644
--- a/tests/ref/fate/cvid-palette
+++ b/tests/ref/fate/cvid-palette
@@ -1,57 +1,57 @@
-#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
+#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
diff --git a/tests/ref/fate/cvid-partial b/tests/ref/fate/cvid-partial
index 71596b4e8a..907ef4a5d2 100644
--- a/tests/ref/fate/cvid-partial
+++ b/tests/ref/fate/cvid-partial
@@ -77,3 +77,4 @@
0, 75, 75, 1, 112400, 0xe4394f1f
0, 76, 76, 1, 112400, 0x8ca8649f
0, 77, 77, 1, 112400, 0x804d44eb
+0, 78, 78, 1, 112400, 0x3864488b
diff --git a/tests/ref/fate/dfa1 b/tests/ref/fate/dfa1
index 92a7ccecea..7bc5bf1e48 100644
--- a/tests/ref/fate/dfa1
+++ b/tests/ref/fate/dfa1
@@ -1,26 +1,26 @@
#tb 0: 16/125
-0, 0, 0, 1, 921600, 0x2e2b3ca4
-0, 1, 1, 1, 921600, 0x0ff7a368
-0, 2, 2, 1, 921600, 0xf5f0dc50
-0, 3, 3, 1, 921600, 0x56cb0c9d
-0, 4, 4, 1, 921600, 0xb253228f
-0, 5, 5, 1, 921600, 0xefd3419e
-0, 6, 6, 1, 921600, 0x708c0ce7
-0, 7, 7, 1, 921600, 0x0b3a7f6d
-0, 8, 8, 1, 921600, 0x72db4eac
-0, 9, 9, 1, 921600, 0x94328111
-0, 10, 10, 1, 921600, 0x95f7b2f0
-0, 11, 11, 1, 921600, 0xdc3c9655
-0, 12, 12, 1, 921600, 0xfe03dec6
-0, 13, 13, 1, 921600, 0x2551dffb
-0, 14, 14, 1, 921600, 0xe8b37d9e
-0, 15, 15, 1, 921600, 0xad93508b
-0, 16, 16, 1, 921600, 0x5a1c4890
-0, 17, 17, 1, 921600, 0x6f972fb4
-0, 18, 18, 1, 921600, 0xa1d5ff95
-0, 19, 19, 1, 921600, 0x7bc5d07c
-0, 20, 20, 1, 921600, 0xc0311e4e
-0, 21, 21, 1, 921600, 0x5b02cc48
-0, 22, 22, 1, 921600, 0x8db4d5fa
-0, 23, 23, 1, 921600, 0x31aae769
-0, 24, 24, 1, 921600, 0xab62b9a7
+0, 0, 0, 1, 921600, 0xb69faa34
+0, 1, 1, 1, 921600, 0x38680829
+0, 2, 2, 1, 921600, 0xa7263c5a
+0, 3, 3, 1, 921600, 0xa784626a
+0, 4, 4, 1, 921600, 0xb4c47212
+0, 5, 5, 1, 921600, 0xd17285ea
+0, 6, 6, 1, 921600, 0xe9b33902
+0, 7, 7, 1, 921600, 0x215ea693
+0, 8, 8, 1, 921600, 0xe2ab6c7a
+0, 9, 9, 1, 921600, 0xf2867624
+0, 10, 10, 1, 921600, 0x607d78c1
+0, 11, 11, 1, 921600, 0x6e743bb7
+0, 12, 12, 1, 921600, 0x1fbf8f5a
+0, 13, 13, 1, 921600, 0xac6c912e
+0, 14, 14, 1, 921600, 0x556933bc
+0, 15, 15, 1, 921600, 0xda4c242b
+0, 16, 16, 1, 921600, 0xa6b32f83
+0, 17, 17, 1, 921600, 0x1ecc2996
+0, 18, 18, 1, 921600, 0xf1c3fc0f
+0, 19, 19, 1, 921600, 0x3f1db909
+0, 20, 20, 1, 921600, 0x7582fb93
+0, 21, 21, 1, 921600, 0x102ba261
+0, 22, 22, 1, 921600, 0xfbcf9de0
+0, 23, 23, 1, 921600, 0xe9ecb4d9
+0, 24, 24, 1, 921600, 0x7ee36a42
diff --git a/tests/ref/fate/dfa10 b/tests/ref/fate/dfa10
index a140e5c391..a799f03b22 100644
--- a/tests/ref/fate/dfa10
+++ b/tests/ref/fate/dfa10
@@ -1,9 +1,9 @@
#tb 0: 71/1000
-0, 0, 0, 1, 192000, 0xbabcbd55
-0, 1, 1, 1, 192000, 0xf00a5683
-0, 2, 2, 1, 192000, 0xcce90589
-0, 3, 3, 1, 192000, 0x8545631f
-0, 4, 4, 1, 192000, 0xd3ab654c
-0, 5, 5, 1, 192000, 0x5e0dda12
-0, 6, 6, 1, 192000, 0x7e94b053
-0, 7, 7, 1, 192000, 0x8027e68b
+0, 0, 0, 1, 192000, 0x7384f9b2
+0, 1, 1, 1, 192000, 0xd1f61c71
+0, 2, 2, 1, 192000, 0x0c6937d1
+0, 3, 3, 1, 192000, 0x56459a3a
+0, 4, 4, 1, 192000, 0x6d011790
+0, 5, 5, 1, 192000, 0xb5347ce8
+0, 6, 6, 1, 192000, 0xcd422568
+0, 7, 7, 1, 192000, 0xde4fef2d
diff --git a/tests/ref/fate/dfa11 b/tests/ref/fate/dfa11
index 3990d24cfc..30b4b71032 100644
--- a/tests/ref/fate/dfa11
+++ b/tests/ref/fate/dfa11
@@ -1,10 +1,10 @@
#tb 0: 71/1000
-0, 0, 0, 1, 192000, 0x8b8bd8de
-0, 1, 1, 1, 192000, 0xdac26ec2
-0, 2, 2, 1, 192000, 0x0fc01c28
-0, 3, 3, 1, 192000, 0x1251eef7
-0, 4, 4, 1, 192000, 0x89eced0e
-0, 5, 5, 1, 192000, 0x4943d821
-0, 6, 6, 1, 192000, 0x49258ec9
-0, 7, 7, 1, 192000, 0x9afd5881
-0, 8, 8, 1, 192000, 0xb322b901
+0, 0, 0, 1, 192000, 0x4269d703
+0, 1, 1, 1, 192000, 0xdf8667e7
+0, 2, 2, 1, 192000, 0x450026ad
+0, 3, 3, 1, 192000, 0x2528ea52
+0, 4, 4, 1, 192000, 0x83bcd1ec
+0, 5, 5, 1, 192000, 0x88d5ba27
+0, 6, 6, 1, 192000, 0x44424577
+0, 7, 7, 1, 192000, 0xd93f12a3
+0, 8, 8, 1, 192000, 0xcd625f3e
diff --git a/tests/ref/fate/dfa2 b/tests/ref/fate/dfa2
index a050c97d44..cc4b454fa9 100644
--- a/tests/ref/fate/dfa2
+++ b/tests/ref/fate/dfa2
@@ -1,18 +1,18 @@
#tb 0: 71/1000
-0, 0, 0, 1, 921600, 0x713f2da1
-0, 1, 1, 1, 921600, 0x9e772ec9
-0, 2, 2, 1, 921600, 0x9420310f
-0, 3, 3, 1, 921600, 0xd68f294f
-0, 4, 4, 1, 921600, 0xe25a1bcf
-0, 5, 5, 1, 921600, 0x32f903ec
-0, 6, 6, 1, 921600, 0xdb290b1c
-0, 7, 7, 1, 921600, 0x0b0d1b0f
-0, 8, 8, 1, 921600, 0x58430921
-0, 9, 9, 1, 921600, 0xe65dd39e
-0, 10, 10, 1, 921600, 0x146b3068
-0, 11, 11, 1, 921600, 0x6e1e7f78
-0, 12, 12, 1, 921600, 0x0166e01c
-0, 13, 13, 1, 921600, 0x83b86b56
-0, 14, 14, 1, 921600, 0xd52a1697
-0, 15, 15, 1, 921600, 0x5b38adc8
-0, 16, 16, 1, 921600, 0x457f6cea
+0, 0, 0, 1, 921600, 0x8a5d15df
+0, 1, 1, 1, 921600, 0x92c01362
+0, 2, 2, 1, 921600, 0xe1a31643
+0, 3, 3, 1, 921600, 0x37a90fe2
+0, 4, 4, 1, 921600, 0x74410783
+0, 5, 5, 1, 921600, 0xecf4ef1a
+0, 6, 6, 1, 921600, 0x4d7ff3d4
+0, 7, 7, 1, 921600, 0xac820317
+0, 8, 8, 1, 921600, 0xbe5ff56e
+0, 9, 9, 1, 921600, 0x8e59c329
+0, 10, 10, 1, 921600, 0x73bf23f3
+0, 11, 11, 1, 921600, 0xb90c780f
+0, 12, 12, 1, 921600, 0xfbd9dc32
+0, 13, 13, 1, 921600, 0x30586821
+0, 14, 14, 1, 921600, 0x6695195b
+0, 15, 15, 1, 921600, 0xc449aa85
+0, 16, 16, 1, 921600, 0xca6a391c
diff --git a/tests/ref/fate/dfa3 b/tests/ref/fate/dfa3
index 8c91faaa4b..9b170ec69b 100644
--- a/tests/ref/fate/dfa3
+++ b/tests/ref/fate/dfa3
@@ -1,11 +1,11 @@
#tb 0: 1/10
-0, 0, 0, 1, 192000, 0x10380cf0
-0, 1, 1, 1, 192000, 0x1d74af4c
-0, 2, 2, 1, 192000, 0xd665492d
-0, 3, 3, 1, 192000, 0xbf544565
-0, 4, 4, 1, 192000, 0xf8a33b00
-0, 5, 5, 1, 192000, 0x7d08bbad
-0, 6, 6, 1, 192000, 0x10685a90
-0, 7, 7, 1, 192000, 0x0a1a9ef6
-0, 8, 8, 1, 192000, 0x3e967980
-0, 9, 9, 1, 192000, 0x9849f751
+0, 0, 0, 1, 192000, 0x236a1b54
+0, 1, 1, 1, 192000, 0xfb438b68
+0, 2, 2, 1, 192000, 0xde504563
+0, 3, 3, 1, 192000, 0xfaf88e05
+0, 4, 4, 1, 192000, 0xe15de5af
+0, 5, 5, 1, 192000, 0x641fcca4
+0, 6, 6, 1, 192000, 0x74899cb6
+0, 7, 7, 1, 192000, 0x93fdb1b4
+0, 8, 8, 1, 192000, 0x58d83456
+0, 9, 9, 1, 192000, 0x7d3012ac
diff --git a/tests/ref/fate/dfa4 b/tests/ref/fate/dfa4
index 67b5722b2a..0e0dc020a4 100644
--- a/tests/ref/fate/dfa4
+++ b/tests/ref/fate/dfa4
@@ -1,14 +1,15 @@
#tb 0: 71/500
-0, 1, 1, 1, 921600, 0xe6309638
-0, 2, 2, 1, 921600, 0xa99a7665
-0, 3, 3, 1, 921600, 0x172ccfbb
-0, 4, 4, 1, 921600, 0xcf676571
-0, 5, 5, 1, 921600, 0x6a5077f2
-0, 6, 6, 1, 921600, 0x6a5077f2
-0, 7, 7, 1, 921600, 0x6a5077f2
-0, 8, 8, 1, 921600, 0x6a5077f2
-0, 9, 9, 1, 921600, 0x6a5077f2
-0, 10, 10, 1, 921600, 0x6a5077f2
-0, 11, 11, 1, 921600, 0xb83db404
-0, 12, 12, 1, 921600, 0x997ceb90
-0, 13, 13, 1, 921600, 0xd707157c
+0, 0, 0, 1, 921600, 0x00000000
+0, 1, 1, 1, 921600, 0xd9e060e3
+0, 2, 2, 1, 921600, 0x15e28dc7
+0, 3, 3, 1, 921600, 0x78e8bfbc
+0, 4, 4, 1, 921600, 0xe9407075
+0, 5, 5, 1, 921600, 0xab818b8a
+0, 6, 6, 1, 921600, 0xab818b8a
+0, 7, 7, 1, 921600, 0xab818b8a
+0, 8, 8, 1, 921600, 0xab818b8a
+0, 9, 9, 1, 921600, 0xab818b8a
+0, 10, 10, 1, 921600, 0xab818b8a
+0, 11, 11, 1, 921600, 0xad5ad11c
+0, 12, 12, 1, 921600, 0xe6e50f8c
+0, 13, 13, 1, 921600, 0x9f127099
diff --git a/tests/ref/fate/dfa5 b/tests/ref/fate/dfa5
index b9f7727e58..3be3c5269a 100644
--- a/tests/ref/fate/dfa5
+++ b/tests/ref/fate/dfa5
@@ -1,16 +1,16 @@
#tb 0: 1/10
-0, 0, 0, 1, 192000, 0xc0941c10
-0, 1, 1, 1, 192000, 0xe2fe3ae5
-0, 2, 2, 1, 192000, 0x4a352d98
-0, 3, 3, 1, 192000, 0x7b78e0bb
-0, 4, 4, 1, 192000, 0x855c6675
-0, 5, 5, 1, 192000, 0xf443dad6
-0, 6, 6, 1, 192000, 0xe7e2a2e1
-0, 7, 7, 1, 192000, 0xa9009c58
-0, 8, 8, 1, 192000, 0x551855ab
-0, 9, 9, 1, 192000, 0x253908c7
-0, 10, 10, 1, 192000, 0x616213c4
-0, 11, 11, 1, 192000, 0xa381c3b1
-0, 12, 12, 1, 192000, 0xa2d64152
-0, 13, 13, 1, 192000, 0x34ed0f72
-0, 14, 14, 1, 192000, 0x05be63b4
+0, 0, 0, 1, 192000, 0x9754890f
+0, 1, 1, 1, 192000, 0x01668965
+0, 2, 2, 1, 192000, 0xbd1b5e12
+0, 3, 3, 1, 192000, 0x2e97fb9f
+0, 4, 4, 1, 192000, 0xf8b452e2
+0, 5, 5, 1, 192000, 0xc6859449
+0, 6, 6, 1, 192000, 0x910844f7
+0, 7, 7, 1, 192000, 0x99443581
+0, 8, 8, 1, 192000, 0xec52d1e5
+0, 9, 9, 1, 192000, 0x2fc66c35
+0, 10, 10, 1, 192000, 0xd9af7379
+0, 11, 11, 1, 192000, 0x947a26ef
+0, 12, 12, 1, 192000, 0x7b77ab28
+0, 13, 13, 1, 192000, 0x2507637e
+0, 14, 14, 1, 192000, 0x6ce8c0ea
diff --git a/tests/ref/fate/dfa6 b/tests/ref/fate/dfa6
index 92ed259369..535f98b346 100644
--- a/tests/ref/fate/dfa6
+++ b/tests/ref/fate/dfa6
@@ -1,13 +1,13 @@
#tb 0: 71/1000
-0, 0, 0, 1, 192000, 0x69f6a5f6
-0, 1, 1, 1, 192000, 0xc741d0a6
-0, 2, 2, 1, 192000, 0xba31e7a4
-0, 3, 3, 1, 192000, 0x7dc45080
-0, 4, 4, 1, 192000, 0x1c91dad5
-0, 5, 5, 1, 192000, 0x564b69b1
-0, 6, 6, 1, 192000, 0xdd9d9ae8
-0, 7, 7, 1, 192000, 0x605c05e1
-0, 8, 8, 1, 192000, 0xa5341ddb
-0, 9, 9, 1, 192000, 0x1ebff8ba
-0, 10, 10, 1, 192000, 0x240df237
-0, 11, 11, 1, 192000, 0xac641867
+0, 0, 0, 1, 192000, 0xb718dc63
+0, 1, 1, 1, 192000, 0x2efb7b89
+0, 2, 2, 1, 192000, 0x70827047
+0, 3, 3, 1, 192000, 0x61e1fd2f
+0, 4, 4, 1, 192000, 0x06f8bccd
+0, 5, 5, 1, 192000, 0xf0362404
+0, 6, 6, 1, 192000, 0xc00fc1b8
+0, 7, 7, 1, 192000, 0x94265476
+0, 8, 8, 1, 192000, 0x4b50ad23
+0, 9, 9, 1, 192000, 0x4d578b60
+0, 10, 10, 1, 192000, 0xfb14b875
+0, 11, 11, 1, 192000, 0x81682338
diff --git a/tests/ref/fate/dfa7 b/tests/ref/fate/dfa7
index 7dd40f2bc0..28122c5287 100644
--- a/tests/ref/fate/dfa7
+++ b/tests/ref/fate/dfa7
@@ -1,13 +1,13 @@
#tb 0: 71/1000
-0, 0, 0, 1, 7866, 0xa0056fdb
-0, 1, 1, 1, 7866, 0xed906c7a
-0, 2, 2, 1, 7866, 0x1c6e6f7d
-0, 3, 3, 1, 7866, 0xa2c460f7
-0, 4, 4, 1, 7866, 0xcf2166d4
-0, 5, 5, 1, 7866, 0xea545432
-0, 6, 6, 1, 7866, 0x604a5a9e
-0, 7, 7, 1, 7866, 0xbbc95c89
-0, 8, 8, 1, 7866, 0x80b16b5b
-0, 9, 9, 1, 7866, 0x9a1660ae
-0, 10, 10, 1, 7866, 0x6f886b10
-0, 11, 11, 1, 7866, 0xad8b5c99
+0, 0, 0, 1, 7866, 0xab73dae7
+0, 1, 1, 1, 7866, 0x100adec8
+0, 2, 2, 1, 7866, 0x1a20ddfa
+0, 3, 3, 1, 7866, 0xc358cd16
+0, 4, 4, 1, 7866, 0xee0bd20e
+0, 5, 5, 1, 7866, 0xef26bef9
+0, 6, 6, 1, 7866, 0xa9d0c755
+0, 7, 7, 1, 7866, 0x6c11cc7c
+0, 8, 8, 1, 7866, 0x4d6ed988
+0, 9, 9, 1, 7866, 0x9965cf24
+0, 10, 10, 1, 7866, 0x9a12db24
+0, 11, 11, 1, 7866, 0x2e85cfeb
diff --git a/tests/ref/fate/dfa8 b/tests/ref/fate/dfa8
index 39dde05465..866260a10c 100644
--- a/tests/ref/fate/dfa8
+++ b/tests/ref/fate/dfa8
@@ -1,37 +1,37 @@
#tb 0: 71/1000
-0, 0, 0, 1, 134724, 0x2ab217de
-0, 1, 1, 1, 134724, 0xbf240f9a
-0, 2, 2, 1, 134724, 0x020a6010
-0, 3, 3, 1, 134724, 0x9a5f9374
-0, 4, 4, 1, 134724, 0x1e93a7e9
-0, 5, 5, 1, 134724, 0x9e4a4c55
-0, 6, 6, 1, 134724, 0x8f9d1bab
-0, 7, 7, 1, 134724, 0xb26ac45b
-0, 8, 8, 1, 134724, 0xc08706d2
-0, 9, 9, 1, 134724, 0x0806b031
-0, 10, 10, 1, 134724, 0x234dbb33
-0, 11, 11, 1, 134724, 0xe4cbfb2f
-0, 12, 12, 1, 134724, 0xf603f3fd
-0, 13, 13, 1, 134724, 0x205669d1
-0, 14, 14, 1, 134724, 0x7ddbb5e3
-0, 15, 15, 1, 134724, 0x8dfbb45a
-0, 16, 16, 1, 134724, 0x9632f681
-0, 17, 17, 1, 134724, 0x259e462c
-0, 18, 18, 1, 134724, 0x14f2bac1
-0, 19, 19, 1, 134724, 0xac3de7ed
-0, 20, 20, 1, 134724, 0x6b8af396
-0, 21, 21, 1, 134724, 0xd1e4bc1c
-0, 22, 22, 1, 134724, 0x716d1c73
-0, 23, 23, 1, 134724, 0x610956c8
-0, 24, 24, 1, 134724, 0x89ff8e86
-0, 25, 25, 1, 134724, 0xc3ea6b6f
-0, 26, 26, 1, 134724, 0x886688ef
-0, 27, 27, 1, 134724, 0xe60fc8c1
-0, 28, 28, 1, 134724, 0x22bd3131
-0, 29, 29, 1, 134724, 0xb1d74561
-0, 30, 30, 1, 134724, 0x61b069bc
-0, 31, 31, 1, 134724, 0x50b665c1
-0, 32, 32, 1, 134724, 0x027e5144
-0, 33, 33, 1, 134724, 0xfe0c31b4
-0, 34, 34, 1, 134724, 0x1e7a1f2d
-0, 35, 35, 1, 134724, 0x48bff03d
+0, 0, 0, 1, 134724, 0x53784ca9
+0, 1, 1, 1, 134724, 0x14c345b7
+0, 2, 2, 1, 134724, 0xe0d0dd51
+0, 3, 3, 1, 134724, 0xd53b5610
+0, 4, 4, 1, 134724, 0x7cbb8d47
+0, 5, 5, 1, 134724, 0x875d67c4
+0, 6, 6, 1, 134724, 0x9811c085
+0, 7, 7, 1, 134724, 0x25f6d228
+0, 8, 8, 1, 134724, 0x349495a0
+0, 9, 9, 1, 134724, 0xd0d75311
+0, 10, 10, 1, 134724, 0xb49cdfbb
+0, 11, 11, 1, 134724, 0x9fa69518
+0, 12, 12, 1, 134724, 0x28a1f58c
+0, 13, 13, 1, 134724, 0xb8dab657
+0, 14, 14, 1, 134724, 0x8c7e3b3b
+0, 15, 15, 1, 134724, 0x37268acf
+0, 16, 16, 1, 134724, 0xcce8ca02
+0, 17, 17, 1, 134724, 0xe0fd0c28
+0, 18, 18, 1, 134724, 0x5bdac906
+0, 19, 19, 1, 134724, 0xdd850bf0
+0, 20, 20, 1, 134724, 0x2002a228
+0, 21, 21, 1, 134724, 0x633617ea
+0, 22, 22, 1, 134724, 0x2a3ef337
+0, 23, 23, 1, 134724, 0x507886c3
+0, 24, 24, 1, 134724, 0x51c0f07b
+0, 25, 25, 1, 134724, 0x5e73dce1
+0, 26, 26, 1, 134724, 0x26acc6f0
+0, 27, 27, 1, 134724, 0x360c4349
+0, 28, 28, 1, 134724, 0xc7dbabd4
+0, 29, 29, 1, 134724, 0x671bbf66
+0, 30, 30, 1, 134724, 0x4d44df79
+0, 31, 31, 1, 134724, 0x69eade5b
+0, 32, 32, 1, 134724, 0x2b1bca82
+0, 33, 33, 1, 134724, 0x8b16af47
+0, 34, 34, 1, 134724, 0xb59fa1bd
+0, 35, 35, 1, 134724, 0x2ec17c24
diff --git a/tests/ref/fate/dfa9 b/tests/ref/fate/dfa9
index cf24e3e212..99eb3f678d 100644
--- a/tests/ref/fate/dfa9
+++ b/tests/ref/fate/dfa9
@@ -1,7 +1,7 @@
#tb 0: 71/1000
-0, 0, 0, 1, 228150, 0x188c6d9b
-0, 1, 1, 1, 228150, 0x658dbf2f
-0, 2, 2, 1, 228150, 0xc09a4b2e
-0, 3, 3, 1, 228150, 0x8777bc7d
-0, 4, 4, 1, 228150, 0xa388f0ce
-0, 5, 5, 1, 228150, 0x4e06666e
+0, 0, 0, 1, 228150, 0xde68df49
+0, 1, 1, 1, 228150, 0x8e12bcaf
+0, 2, 2, 1, 228150, 0x851b04f7
+0, 3, 3, 1, 228150, 0x7e5e0950
+0, 4, 4, 1, 228150, 0x1d92219f
+0, 5, 5, 1, 228150, 0x93caa693
diff --git a/tests/ref/fate/ea-cmv b/tests/ref/fate/ea-cmv
index 18f2b3ae15..8f9049e907 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
+0, 0, 0, 1, 120000, 0x34ac91d2
+0, 1, 1, 1, 120000, 0x17150729
+0, 2, 2, 1, 120000, 0xc3f510bb
+0, 3, 3, 1, 120000, 0xb3b14a3b
+0, 4, 4, 1, 120000, 0x26a7f3d1
+0, 5, 5, 1, 120000, 0xd161af6f
+0, 6, 6, 1, 120000, 0x459fc92d
+0, 7, 7, 1, 120000, 0x05c3fa94
+0, 8, 8, 1, 120000, 0x6630cd8c
+0, 9, 9, 1, 120000, 0x60cd39d4
+0, 10, 10, 1, 120000, 0xc8854d1c
+0, 11, 11, 1, 120000, 0xe55e8e6d
+0, 12, 12, 1, 120000, 0xbeab201f
+0, 13, 13, 1, 120000, 0x70744b0b
+0, 14, 14, 1, 120000, 0x80dea5d0
+0, 15, 15, 1, 120000, 0x769bfa1c
+0, 16, 16, 1, 120000, 0x04e25bbe
+0, 17, 17, 1, 120000, 0x48abc5a5
+0, 18, 18, 1, 120000, 0xda5c4e2a
+0, 19, 19, 1, 120000, 0x8de96d38
+0, 20, 20, 1, 120000, 0xe96418b0
+0, 21, 21, 1, 120000, 0x1c2f272b
+0, 22, 22, 1, 120000, 0x4b755804
+0, 23, 23, 1, 120000, 0xc92f96fd
+0, 24, 24, 1, 120000, 0x69e90ebb
+0, 25, 25, 1, 120000, 0x78d4bd1a
+0, 26, 26, 1, 120000, 0xaf2edf55
+0, 27, 27, 1, 120000, 0x94161c78
+0, 28, 28, 1, 120000, 0x1109094d
+0, 29, 29, 1, 120000, 0xc61b0392
+0, 30, 30, 1, 120000, 0xc157d003
+0, 31, 31, 1, 120000, 0xf2747e7b
+0, 32, 32, 1, 120000, 0xa36299c2
+0, 33, 33, 1, 120000, 0x49bc788c
+0, 34, 34, 1, 120000, 0x3bee336e
+0, 35, 35, 1, 120000, 0xa316b9d1
+0, 36, 36, 1, 120000, 0x5cc32e9c
+0, 37, 37, 1, 120000, 0x9f7eca16
+0, 38, 38, 1, 120000, 0x958e2988
+0, 39, 39, 1, 120000, 0xebcba2f1
+0, 40, 40, 1, 120000, 0x281f1e60
+0, 41, 41, 1, 120000, 0x82256c4d
+0, 42, 42, 1, 120000, 0xddc8be56
+0, 43, 43, 1, 120000, 0x64ff2ed0
+0, 44, 44, 1, 120000, 0x3e63ab02
+0, 45, 45, 1, 120000, 0x43f78b37
+0, 46, 46, 1, 120000, 0xb7cc62d4
+0, 47, 47, 1, 120000, 0x694f1764
+0, 48, 48, 1, 120000, 0x2264c483
+0, 49, 49, 1, 120000, 0xb6680b4a
+0, 50, 50, 1, 120000, 0x2a92626a
+0, 51, 51, 1, 120000, 0x8da02509
+0, 52, 52, 1, 120000, 0xa976c382
+0, 53, 53, 1, 120000, 0x749e822b
+0, 54, 54, 1, 120000, 0xe9e7fc8c
+0, 55, 55, 1, 120000, 0xfdc05a0c
+0, 56, 56, 1, 120000, 0x7d5a856d
+0, 57, 57, 1, 120000, 0xcc344937
+0, 58, 58, 1, 120000, 0x9d90bc67
+0, 59, 59, 1, 120000, 0x3f527712
+0, 60, 60, 1, 120000, 0xf0f57f97
+0, 61, 61, 1, 120000, 0xc29535cd
+0, 62, 62, 1, 120000, 0x9a64598b
+0, 63, 63, 1, 120000, 0x0d1ddf7c
+0, 64, 64, 1, 120000, 0xb580ec24
+0, 65, 65, 1, 120000, 0xf0db5bbc
+0, 66, 66, 1, 120000, 0x6b980b61
+0, 67, 67, 1, 120000, 0xc29f30b5
+0, 68, 68, 1, 120000, 0xaf2c4bcd
+0, 69, 69, 1, 120000, 0x1e725645
+0, 70, 70, 1, 120000, 0x295c4c96
+0, 71, 71, 1, 120000, 0x7ea121a2
+0, 72, 72, 1, 120000, 0xdb9e9cec
+0, 73, 73, 1, 120000, 0x1da47c80
+0, 74, 74, 1, 120000, 0x9d0c1345
+0, 75, 75, 1, 120000, 0x88058527
+0, 76, 76, 1, 120000, 0x46766aed
+0, 77, 77, 1, 120000, 0xba520bd3
+0, 78, 78, 1, 120000, 0x7fb6373c
+0, 79, 79, 1, 120000, 0x05a86f4d
+0, 80, 80, 1, 120000, 0x7fb47cbd
+0, 81, 81, 1, 120000, 0x6814d8ca
+0, 82, 82, 1, 120000, 0x9c13acb8
+0, 83, 83, 1, 120000, 0xad0edbfe
+0, 84, 84, 1, 120000, 0x352fde81
+0, 85, 85, 1, 120000, 0xa654b386
+0, 86, 86, 1, 120000, 0xd3b3dc72
+0, 87, 87, 1, 120000, 0x01572668
+0, 88, 88, 1, 120000, 0x30189e03
+0, 89, 89, 1, 120000, 0x26126d30
+0, 90, 90, 1, 120000, 0x4f376c7d
+0, 91, 91, 1, 120000, 0xd3667bcf
+0, 92, 92, 1, 120000, 0x0b46b3d5
+0, 93, 93, 1, 120000, 0x893415ef
+0, 94, 94, 1, 120000, 0x99a78749
+0, 95, 95, 1, 120000, 0x6da0d8e9
+0, 96, 96, 1, 120000, 0x22d8ceb6
+0, 97, 97, 1, 120000, 0x67ef9be8
+0, 98, 98, 1, 120000, 0xb696fb53
+0, 99, 99, 1, 120000, 0x70339dab
+0, 100, 100, 1, 120000, 0xc1876efa
+0, 101, 101, 1, 120000, 0x80e78c92
+0, 102, 102, 1, 120000, 0x18d2f2ac
+0, 103, 103, 1, 120000, 0x28be9ae4
+0, 104, 104, 1, 120000, 0xc3c2c190
+0, 105, 105, 1, 120000, 0xd6a859d8
+0, 106, 106, 1, 120000, 0x40b9046d
+0, 107, 107, 1, 120000, 0x7f8d5999
+0, 108, 108, 1, 120000, 0x89724027
+0, 109, 109, 1, 120000, 0x4c15c988
+0, 110, 110, 1, 120000, 0x812ebe08
+0, 111, 111, 1, 120000, 0x273ef8e2
+0, 112, 112, 1, 120000, 0xe029de06
+0, 113, 113, 1, 120000, 0x5846127c
+0, 114, 114, 1, 120000, 0x6c5df8e3
+0, 115, 115, 1, 120000, 0x7424919f
+0, 116, 116, 1, 120000, 0xa8313015
+0, 117, 117, 1, 120000, 0x28878ab4
+0, 118, 118, 1, 120000, 0x126d0746
+0, 119, 119, 1, 120000, 0xee3f7138
+0, 120, 120, 1, 120000, 0xd4b2e0a1
+0, 121, 121, 1, 120000, 0x8d60bfff
+0, 122, 122, 1, 120000, 0x701c23d0
+0, 123, 123, 1, 120000, 0x1cbb5654
+0, 124, 124, 1, 120000, 0x0f5853e9
+0, 125, 125, 1, 120000, 0x2a5c3339
+0, 126, 126, 1, 120000, 0x86b00350
+0, 127, 127, 1, 120000, 0xe8cc6931
+0, 128, 128, 1, 120000, 0xf1cad983
+0, 129, 129, 1, 120000, 0xabcd8704
+0, 130, 130, 1, 120000, 0x89592f94
+0, 131, 131, 1, 120000, 0x100486d9
+0, 132, 132, 1, 120000, 0x60ef9e2d
+0, 133, 133, 1, 120000, 0x2485176a
+0, 134, 134, 1, 120000, 0x6b8c360d
+0, 135, 135, 1, 120000, 0xe2e1bf4f
+0, 136, 136, 1, 120000, 0xe17b65c3
+0, 137, 137, 1, 120000, 0x2a42821a
+0, 138, 138, 1, 120000, 0xbe9ddba7
+0, 139, 139, 1, 120000, 0x19f937fe
+0, 140, 140, 1, 120000, 0xb7e0c600
+0, 141, 141, 1, 120000, 0xfbf8c5f6
+0, 142, 142, 1, 120000, 0x93b62f93
+0, 143, 143, 1, 120000, 0xb6ddec93
+0, 144, 144, 1, 120000, 0xa04d031b
+0, 145, 145, 1, 120000, 0x61c986c0
+0, 146, 146, 1, 120000, 0x3516e54a
+0, 147, 147, 1, 120000, 0x3489eb2c
+0, 148, 148, 1, 120000, 0xb75a4827
+0, 149, 149, 1, 120000, 0x76031a80
+0, 150, 150, 1, 120000, 0x867c3969
+0, 151, 151, 1, 120000, 0x9b63a093
+0, 152, 152, 1, 120000, 0xcb253d8a
+0, 153, 153, 1, 120000, 0x354ba3b2
+0, 154, 154, 1, 120000, 0x4d5ead8c
+0, 155, 155, 1, 120000, 0x7b7029ae
+0, 156, 156, 1, 120000, 0x4765ab9d
+0, 157, 157, 1, 120000, 0x747cdee9
+0, 158, 158, 1, 120000, 0x20989b08
+0, 159, 159, 1, 120000, 0x3a957085
+0, 160, 160, 1, 120000, 0xdd49e8ad
+0, 161, 161, 1, 120000, 0x00e89719
+0, 162, 162, 1, 120000, 0x2822aa76
+0, 163, 163, 1, 120000, 0x492388f3
+0, 164, 164, 1, 120000, 0x4dffa6ee
+0, 165, 165, 1, 120000, 0xc382bb83
+0, 166, 166, 1, 120000, 0xb59aaa74
+0, 167, 167, 1, 120000, 0x7c7885d3
+0, 168, 168, 1, 120000, 0xc05ee219
+0, 169, 169, 1, 120000, 0xc3df6b73
+0, 170, 170, 1, 120000, 0x8ae31170
+0, 171, 171, 1, 120000, 0xb979fdce
+0, 172, 172, 1, 120000, 0xb8f9e407
+0, 173, 173, 1, 120000, 0x56675b80
+0, 174, 174, 1, 120000, 0x1aad1ce2
+0, 175, 175, 1, 120000, 0xa050a52b
+0, 176, 176, 1, 120000, 0x49f8c32f
+0, 177, 177, 1, 120000, 0x8e7f4d2c
+0, 178, 178, 1, 120000, 0x5c07f751
+0, 179, 179, 1, 120000, 0x67fa5523
+0, 180, 180, 1, 120000, 0xf38b933a
+0, 181, 181, 1, 120000, 0xb113e202
+0, 182, 182, 1, 120000, 0xb8d99ff4
+0, 183, 183, 1, 120000, 0x15ab6cc6
+0, 184, 184, 1, 120000, 0xd64a51c9
+0, 185, 185, 1, 120000, 0x2088b53c
+0, 186, 186, 1, 120000, 0xdd78d40a
+0, 187, 187, 1, 120000, 0x2fb58848
+0, 188, 188, 1, 120000, 0xf775d36a
+0, 189, 189, 1, 120000, 0xa03987e9
+0, 190, 190, 1, 120000, 0x457322ad
+0, 191, 191, 1, 120000, 0x0f6c3d1c
+0, 192, 192, 1, 120000, 0xbdf2f1a5
+0, 193, 193, 1, 120000, 0x5828ee1d
diff --git a/tests/ref/fate/ea-mad-pcm-planar b/tests/ref/fate/ea-mad-pcm-planar
index 3c767fa6ae..baa846c589 100644
--- a/tests/ref/fate/ea-mad-pcm-planar
+++ b/tests/ref/fate/ea-mad-pcm-planar
@@ -1,294 +1,294 @@
-#tb 0: 1/90000
+#tb 0: 33/1000
#tb 1: 1/44100
-0, 0, 0, 0, 196608, 0x75d22292
+0, 0, 0, 1, 196608, 0x75d22292
1, 0, 0, 1471, 5884, 0x00000000
-0, 2970, 2970, 0, 196608, 0x75d22292
+0, 1, 1, 1, 196608, 0x75d22292
1, 1471, 1471, 1471, 5884, 0x00000000
-0, 5940, 5940, 0, 196608, 0x75d22292
+0, 2, 2, 1, 196608, 0x75d22292
1, 2942, 2942, 1472, 5888, 0x00000000
-0, 8910, 8910, 0, 196608, 0x75d22292
+0, 3, 3, 1, 196608, 0x75d22292
1, 4414, 4414, 1471, 5884, 0x00000000
-0, 11880, 11880, 0, 196608, 0x75d22292
+0, 4, 4, 1, 196608, 0x75d22292
1, 5885, 5885, 1472, 5888, 0x00000000
-0, 14850, 14850, 0, 196608, 0x75d22292
+0, 5, 5, 1, 196608, 0x75d22292
1, 7357, 7357, 1471, 5884, 0x00000000
-0, 17820, 17820, 0, 196608, 0x75d22292
+0, 6, 6, 1, 196608, 0x75d22292
1, 8828, 8828, 1472, 5888, 0x00000000
-0, 20790, 20790, 0, 196608, 0x75d22292
+0, 7, 7, 1, 196608, 0x75d22292
1, 10300, 10300, 1471, 5884, 0x00000000
-0, 23760, 23760, 0, 196608, 0x75d22292
+0, 8, 8, 1, 196608, 0x75d22292
1, 11771, 11771, 1472, 5888, 0x00000000
-0, 26730, 26730, 0, 196608, 0xd3f66981
+0, 9, 9, 1, 196608, 0xd3f66981
1, 13243, 13243, 1471, 5884, 0x00000000
-0, 29700, 29700, 0, 196608, 0xed37c4c3
+0, 10, 10, 1, 196608, 0xed37c4c3
1, 14714, 14714, 1472, 5888, 0x174b2bd4
-0, 32670, 32670, 0, 196608, 0x6ce01dc4
+0, 11, 11, 1, 196608, 0x6ce01dc4
1, 16186, 16186, 1471, 5884, 0xfab9563d
-0, 35640, 35640, 0, 196608, 0x2874fc9a
+0, 12, 12, 1, 196608, 0x2874fc9a
1, 17657, 17657, 1472, 5888, 0x0129a4f5
-0, 38610, 38610, 0, 196608, 0x9b65bbc8
+0, 13, 13, 1, 196608, 0x9b65bbc8
1, 19129, 19129, 1471, 5884, 0xf12b15dd
-0, 41580, 41580, 0, 196608, 0x8f9af811
+0, 14, 14, 1, 196608, 0x8f9af811
1, 20600, 20600, 1472, 5888, 0x60c8c922
-0, 44550, 44550, 0, 196608, 0x04aeb0b0
+0, 15, 15, 1, 196608, 0x04aeb0b0
1, 22072, 22072, 1471, 5884, 0x85693c81
-0, 47520, 47520, 0, 196608, 0x0df037a1
+0, 16, 16, 1, 196608, 0x0df037a1
1, 23543, 23543, 1472, 5888, 0xcefcf0e0
-0, 50490, 50490, 0, 196608, 0xa32c5515
+0, 17, 17, 1, 196608, 0xa32c5515
1, 25015, 25015, 1471, 5884, 0x243974ff
-0, 53460, 53460, 0, 196608, 0xf3b11a1b
+0, 18, 18, 1, 196608, 0xf3b11a1b
1, 26486, 26486, 1471, 5884, 0x9101b901
-0, 56430, 56430, 0, 196608, 0xaf945190
+0, 19, 19, 1, 196608, 0xaf945190
1, 27957, 27957, 1472, 5888, 0xe3c68cb9
-0, 59400, 59400, 0, 196608, 0xabee8b24
+0, 20, 20, 1, 196608, 0xabee8b24
1, 29429, 29429, 1471, 5884, 0x80f2ff5f
-0, 62370, 62370, 0, 196608, 0x1d7b3df0
+0, 21, 21, 1, 196608, 0x1d7b3df0
1, 30900, 30900, 1472, 5888, 0xfc2d19dc
-0, 65340, 65340, 0, 196608, 0x1347d787
+0, 22, 22, 1, 196608, 0x1347d787
1, 32372, 32372, 1471, 5884, 0xb6e0af21
-0, 68310, 68310, 0, 196608, 0x654c4a9b
+0, 23, 23, 1, 196608, 0x654c4a9b
1, 33843, 33843, 1472, 5888, 0x476e74ff
-0, 71280, 71280, 0, 196608, 0xa2a6596a
+0, 24, 24, 1, 196608, 0xa2a6596a
1, 35315, 35315, 1471, 5884, 0x3921bc7f
-0, 74250, 74250, 0, 196608, 0x50d04d8e
+0, 25, 25, 1, 196608, 0x50d04d8e
1, 36786, 36786, 1472, 5888, 0x44180a3f
-0, 77220, 77220, 0, 196608, 0x4f9f9352
+0, 26, 26, 1, 196608, 0x4f9f9352
1, 38258, 38258, 1471, 5884, 0x01b5a119
-0, 80190, 80190, 0, 196608, 0xbb358281
+0, 27, 27, 1, 196608, 0xbb358281
1, 39729, 39729, 1472, 5888, 0xdd7ad621
-0, 83160, 83160, 0, 196608, 0xcd91a50a
+0, 28, 28, 1, 196608, 0xcd91a50a
1, 41201, 41201, 1471, 5884, 0xadabe898
-0, 86130, 86130, 0, 196608, 0xb665bb76
+0, 29, 29, 1, 196608, 0xb665bb76
1, 42672, 42672, 1472, 5888, 0x2141ff8e
-0, 89100, 89100, 0, 196608, 0xec924ee7
+0, 30, 30, 1, 196608, 0xec924ee7
1, 44144, 44144, 1471, 5884, 0xfb5118fb
-0, 92070, 92070, 0, 196608, 0x9c4aa4ad
+0, 31, 31, 1, 196608, 0x9c4aa4ad
1, 45615, 45615, 1472, 5888, 0x06d31461
-0, 95040, 95040, 0, 196608, 0x27ccdf86
+0, 32, 32, 1, 196608, 0x27ccdf86
1, 47087, 47087, 1471, 5884, 0x80ce34c1
-0, 98010, 98010, 0, 196608, 0x93778cc8
+0, 33, 33, 1, 196608, 0x93778cc8
1, 48558, 48558, 1472, 5888, 0x72bf392f
-0, 100980, 100980, 0, 196608, 0x3d68e826
+0, 34, 34, 1, 196608, 0x3d68e826
1, 50030, 50030, 1471, 5884, 0x9d9237cf
-0, 103950, 103950, 0, 196608, 0x9240b751
+0, 35, 35, 1, 196608, 0x9240b751
1, 51501, 51501, 1471, 5884, 0xf5c9ce23
-0, 106920, 106920, 0, 196608, 0xd77ec46b
+0, 36, 36, 1, 196608, 0xd77ec46b
1, 52972, 52972, 1472, 5888, 0x12a05dc5
-0, 109890, 109890, 0, 196608, 0x4a303ef1
+0, 37, 37, 1, 196608, 0x4a303ef1
1, 54444, 54444, 1471, 5884, 0xd3ed5d4b
-0, 112860, 112860, 0, 196608, 0x2508bacf
+0, 38, 38, 1, 196608, 0x2508bacf
1, 55915, 55915, 1472, 5888, 0x06557401
-0, 115830, 115830, 0, 196608, 0xb74cb5bf
+0, 39, 39, 1, 196608, 0xb74cb5bf
1, 57387, 57387, 1471, 5884, 0x53d81662
-0, 118800, 118800, 0, 196608, 0x9c4a9719
+0, 40, 40, 1, 196608, 0x9c4a9719
1, 58858, 58858, 1472, 5888, 0xd7e0d98d
-0, 121770, 121770, 0, 196608, 0xc34a7924
+0, 41, 41, 1, 196608, 0xc34a7924
1, 60330, 60330, 1471, 5884, 0xdf00752e
-0, 124740, 124740, 0, 196608, 0x9d8428bd
+0, 42, 42, 1, 196608, 0x9d8428bd
1, 61801, 61801, 1472, 5888, 0x82f1d7a9
-0, 127710, 127710, 0, 196608, 0x019eebf7
+0, 43, 43, 1, 196608, 0x019eebf7
1, 63273, 63273, 1471, 5884, 0x9cb3aba9
-0, 130680, 130680, 0, 196608, 0x36e58d6b
+0, 44, 44, 1, 196608, 0x36e58d6b
1, 64744, 64744, 1472, 5888, 0xd6f98e91
-0, 133650, 133650, 0, 196608, 0xc7038ceb
+0, 45, 45, 1, 196608, 0xc7038ceb
1, 66216, 66216, 1471, 5884, 0xaa7f7c09
-0, 136620, 136620, 0, 196608, 0xb041fd50
+0, 46, 46, 1, 196608, 0xb041fd50
1, 67687, 67687, 1472, 5888, 0xb97a82a7
-0, 139590, 139590, 0, 196608, 0x76934674
+0, 47, 47, 1, 196608, 0x76934674
1, 69159, 69159, 1471, 5884, 0x375a3d53
-0, 142560, 142560, 0, 196608, 0x22afa88b
+0, 48, 48, 1, 196608, 0x22afa88b
1, 70630, 70630, 1472, 5888, 0xa0a460cb
-0, 145530, 145530, 0, 196608, 0x22158960
+0, 49, 49, 1, 196608, 0x22158960
1, 72102, 72102, 1471, 5884, 0xe05efbab
-0, 148500, 148500, 0, 196608, 0x75ab0895
+0, 50, 50, 1, 196608, 0x75ab0895
1, 73573, 73573, 1472, 5888, 0x95e151f0
-0, 151470, 151470, 0, 196608, 0xcaab6c6d
+0, 51, 51, 1, 196608, 0xcaab6c6d
1, 75045, 75045, 1471, 5884, 0x44ac688d
-0, 154440, 154440, 0, 196608, 0xe64d8b91
+0, 52, 52, 1, 196608, 0xe64d8b91
1, 76516, 76516, 1471, 5884, 0xfc6d929f
-0, 157410, 157410, 0, 196608, 0x1e8aa17a
+0, 53, 53, 1, 196608, 0x1e8aa17a
1, 77987, 77987, 1472, 5888, 0x6406c5f1
-0, 160380, 160380, 0, 196608, 0x7dd94fdb
+0, 54, 54, 1, 196608, 0x7dd94fdb
1, 79459, 79459, 1471, 5884, 0x4ee9e48c
-0, 163350, 163350, 0, 196608, 0xab74566c
+0, 55, 55, 1, 196608, 0xab74566c
1, 80930, 80930, 1472, 5888, 0xd55d43d0
-0, 166320, 166320, 0, 196608, 0xec962966
+0, 56, 56, 1, 196608, 0xec962966
1, 82402, 82402, 1471, 5884, 0xcae69baf
-0, 169290, 169290, 0, 196608, 0xf5bfd751
+0, 57, 57, 1, 196608, 0xf5bfd751
1, 83873, 83873, 1472, 5888, 0x4c01f1f5
-0, 172260, 172260, 0, 196608, 0xc7f46e0e
+0, 58, 58, 1, 196608, 0xc7f46e0e
1, 85345, 85345, 1471, 5884, 0xf7d6dab6
-0, 175230, 175230, 0, 196608, 0xe641f676
+0, 59, 59, 1, 196608, 0xe641f676
1, 86816, 86816, 1472, 5888, 0x1affdeb5
-0, 178200, 178200, 0, 196608, 0xea7c7b75
+0, 60, 60, 1, 196608, 0xea7c7b75
1, 88288, 88288, 1471, 5884, 0x6db72487
-0, 181170, 181170, 0, 196608, 0x69120371
+0, 61, 61, 1, 196608, 0x69120371
1, 89759, 89759, 1472, 5888, 0x4f344e49
-0, 184140, 184140, 0, 196608, 0xb2319175
+0, 62, 62, 1, 196608, 0xb2319175
1, 91231, 91231, 1471, 5884, 0x2df3827b
-0, 187110, 187110, 0, 196608, 0xd2d73b56
+0, 63, 63, 1, 196608, 0xd2d73b56
1, 92702, 92702, 1472, 5888, 0x1d1fc283
-0, 190080, 190080, 0, 196608, 0x74aafac0
+0, 64, 64, 1, 196608, 0x74aafac0
1, 94174, 94174, 1471, 5884, 0x22eb1dd5
-0, 193050, 193050, 0, 196608, 0x15e8ddbc
+0, 65, 65, 1, 196608, 0x15e8ddbc
1, 95645, 95645, 1472, 5888, 0x734e7093
-0, 196020, 196020, 0, 196608, 0xd4e2c90c
+0, 66, 66, 1, 196608, 0xd4e2c90c
1, 97117, 97117, 1471, 5884, 0x357c9531
-0, 198990, 198990, 0, 196608, 0x86eaf31c
+0, 67, 67, 1, 196608, 0x86eaf31c
1, 98588, 98588, 1472, 5888, 0x108c102d
-0, 201960, 201960, 0, 196608, 0x8004291b
+0, 68, 68, 1, 196608, 0x8004291b
1, 100060, 100060, 1471, 5884, 0x96ad26c6
-0, 204930, 204930, 0, 196608, 0xbbf6954a
+0, 69, 69, 1, 196608, 0xbbf6954a
1, 101531, 101531, 1472, 5888, 0x7bea1996
-0, 207900, 207900, 0, 196608, 0x2f24f0e1
+0, 70, 70, 1, 196608, 0x2f24f0e1
1, 103003, 103003, 1471, 5884, 0x124a1f8e
-0, 210870, 210870, 0, 196608, 0x59d56dfb
+0, 71, 71, 1, 196608, 0x59d56dfb
1, 104474, 104474, 1471, 5884, 0x08d272fb
-0, 213840, 213840, 0, 196608, 0x1377c9cb
+0, 72, 72, 1, 196608, 0x1377c9cb
1, 105945, 105945, 1472, 5888, 0x88832c6b
-0, 216810, 216810, 0, 196608, 0x07582cc3
+0, 73, 73, 1, 196608, 0x07582cc3
1, 107417, 107417, 1471, 5884, 0xedf41493
-0, 219780, 219780, 0, 196608, 0xa5a853fc
+0, 74, 74, 1, 196608, 0xa5a853fc
1, 108888, 108888, 1472, 5888, 0xc4f226d7
-0, 222750, 222750, 0, 196608, 0x3b01856a
+0, 75, 75, 1, 196608, 0x3b01856a
1, 110360, 110360, 1471, 5884, 0x97730397
-0, 225720, 225720, 0, 196608, 0x64927496
+0, 76, 76, 1, 196608, 0x64927496
1, 111831, 111831, 1472, 5888, 0xbc3540e9
-0, 228690, 228690, 0, 196608, 0xf24c6f8a
+0, 77, 77, 1, 196608, 0xf24c6f8a
1, 113303, 113303, 1471, 5884, 0x8adfa135
-0, 231660, 231660, 0, 196608, 0xc92c3c46
+0, 78, 78, 1, 196608, 0xc92c3c46
1, 114774, 114774, 1472, 5888, 0x6d4be121
-0, 234630, 234630, 0, 196608, 0xa50d07fb
+0, 79, 79, 1, 196608, 0xa50d07fb
1, 116246, 116246, 1471, 5884, 0xc3daea85
-0, 237600, 237600, 0, 196608, 0xb1d4a092
+0, 80, 80, 1, 196608, 0xb1d4a092
1, 117717, 117717, 1472, 5888, 0x5498e9f0
-0, 240570, 240570, 0, 196608, 0x20c5526b
+0, 81, 81, 1, 196608, 0x20c5526b
1, 119189, 119189, 1471, 5884, 0xa0eb691f
-0, 243540, 243540, 0, 196608, 0x6127fbbd
+0, 82, 82, 1, 196608, 0x6127fbbd
1, 120660, 120660, 1472, 5888, 0x775c7c59
-0, 246510, 246510, 0, 196608, 0xc168a747
+0, 83, 83, 1, 196608, 0xc168a747
1, 122132, 122132, 1471, 5884, 0x9f108fd1
-0, 249480, 249480, 0, 196608, 0x9c0d3241
+0, 84, 84, 1, 196608, 0x9c0d3241
1, 123603, 123603, 1472, 5888, 0x72d53062
-0, 252450, 252450, 0, 196608, 0x5466dd21
+0, 85, 85, 1, 196608, 0x5466dd21
1, 125075, 125075, 1471, 5884, 0x13a93faa
-0, 255420, 255420, 0, 196608, 0x5bba67cc
+0, 86, 86, 1, 196608, 0x5bba67cc
1, 126546, 126546, 1472, 5888, 0x64773c8e
-0, 258390, 258390, 0, 196608, 0x4c1a1c18
+0, 87, 87, 1, 196608, 0x4c1a1c18
1, 128018, 128018, 1471, 5884, 0xaf696999
-0, 261360, 261360, 0, 196608, 0x22c0a537
+0, 88, 88, 1, 196608, 0x22c0a537
1, 129489, 129489, 1471, 5884, 0xf45e7e81
-0, 264330, 264330, 0, 196608, 0x4ffc5ea6
+0, 89, 89, 1, 196608, 0x4ffc5ea6
1, 130960, 130960, 1472, 5888, 0x00000000
-0, 267300, 267300, 0, 196608, 0x7e8e2395
+0, 90, 90, 1, 196608, 0x7e8e2395
1, 132432, 132432, 1471, 5884, 0x00000000
-0, 270270, 270270, 0, 196608, 0xa3b6f198
-0, 273240, 273240, 0, 196608, 0xf6aac4d1
+0, 91, 91, 1, 196608, 0xa3b6f198
+0, 92, 92, 1, 196608, 0xf6aac4d1
1, 133903, 133903, 1472, 5888, 0x00000000
-0, 276210, 276210, 0, 196608, 0x1a6ea9ee
+0, 93, 93, 1, 196608, 0x1a6ea9ee
1, 135375, 135375, 1471, 5884, 0x00000000
-0, 279180, 279180, 0, 196608, 0xfd729443
+0, 94, 94, 1, 196608, 0xfd729443
1, 136846, 136846, 1472, 5888, 0x00000000
-0, 282150, 282150, 0, 196608, 0xc6a69012
+0, 95, 95, 1, 196608, 0xc6a69012
1, 138318, 138318, 1471, 5884, 0x00000000
-0, 285120, 285120, 0, 196608, 0x576f9270
+0, 96, 96, 1, 196608, 0x576f9270
1, 139789, 139789, 1472, 5888, 0x00000000
-0, 288090, 288090, 0, 196608, 0x0d539fe5
+0, 97, 97, 1, 196608, 0x0d539fe5
1, 141261, 141261, 1471, 5884, 0x00000000
-0, 291060, 291060, 0, 196608, 0x191db7d6
+0, 98, 98, 1, 196608, 0x191db7d6
1, 142732, 142732, 1472, 5888, 0x00000000
-0, 294030, 294030, 0, 196608, 0x80cddedd
+0, 99, 99, 1, 196608, 0x80cddedd
1, 144204, 144204, 1471, 5884, 0x00000000
-0, 297000, 297000, 0, 196608, 0xccf5fd39
+0, 100, 100, 1, 196608, 0xccf5fd39
1, 145675, 145675, 1472, 5888, 0x00000000
-0, 299970, 299970, 0, 196608, 0x521d33b6
+0, 101, 101, 1, 196608, 0x521d33b6
1, 147147, 147147, 1471, 5884, 0x00000000
-0, 302940, 302940, 0, 196608, 0xb75e59ee
+0, 102, 102, 1, 196608, 0xb75e59ee
1, 148618, 148618, 1472, 5888, 0x00000000
-0, 305910, 305910, 0, 196608, 0xbba68972
+0, 103, 103, 1, 196608, 0xbba68972
1, 150090, 150090, 1471, 5884, 0x00000000
-0, 308880, 308880, 0, 196608, 0x368fb86a
+0, 104, 104, 1, 196608, 0x368fb86a
1, 151561, 151561, 1472, 5888, 0x00000000
-0, 311850, 311850, 0, 196608, 0x99e6e94a
+0, 105, 105, 1, 196608, 0x99e6e94a
1, 153033, 153033, 1471, 5884, 0x00000000
-0, 314820, 314820, 0, 196608, 0xe4021296
+0, 106, 106, 1, 196608, 0xe4021296
1, 154504, 154504, 1471, 5884, 0x00000000
-0, 317790, 317790, 0, 196608, 0xbc993b10
+0, 107, 107, 1, 196608, 0xbc993b10
1, 155975, 155975, 1472, 5888, 0x00000000
-0, 320760, 320760, 0, 196608, 0xf2765d22
+0, 108, 108, 1, 196608, 0xf2765d22
1, 157447, 157447, 1471, 5884, 0x00000000
-0, 323730, 323730, 0, 196608, 0xc6257db5
+0, 109, 109, 1, 196608, 0xc6257db5
1, 158918, 158918, 1472, 5888, 0x00000000
-0, 326700, 326700, 0, 196608, 0xa832782f
+0, 110, 110, 1, 196608, 0xa832782f
1, 160390, 160390, 1471, 5884, 0x00000000
-0, 329670, 329670, 0, 196608, 0xa832782f
+0, 111, 111, 1, 196608, 0xa832782f
1, 161861, 161861, 1472, 5888, 0x00000000
-0, 332640, 332640, 0, 196608, 0xa832782f
+0, 112, 112, 1, 196608, 0xa832782f
1, 163333, 163333, 1471, 5884, 0x00000000
-0, 335610, 335610, 0, 196608, 0xa832782f
+0, 113, 113, 1, 196608, 0xa832782f
1, 164804, 164804, 1472, 5888, 0x00000000
-0, 338580, 338580, 0, 196608, 0xa832782f
+0, 114, 114, 1, 196608, 0xa832782f
1, 166276, 166276, 1471, 5884, 0x00000000
-0, 341550, 341550, 0, 196608, 0xa832782f
+0, 115, 115, 1, 196608, 0xa832782f
1, 167747, 167747, 1472, 5888, 0x00000000
-0, 344520, 344520, 0, 196608, 0xa832782f
+0, 116, 116, 1, 196608, 0xa832782f
1, 169219, 169219, 1471, 5884, 0x00000000
-0, 347490, 347490, 0, 196608, 0xa832782f
+0, 117, 117, 1, 196608, 0xa832782f
1, 170690, 170690, 1472, 5888, 0x00000000
-0, 350460, 350460, 0, 196608, 0xa832782f
+0, 118, 118, 1, 196608, 0xa832782f
1, 172162, 172162, 1471, 5884, 0xfe4b2bd4
-0, 353430, 353430, 0, 196608, 0xa832782f
+0, 119, 119, 1, 196608, 0xa832782f
1, 173633, 173633, 1472, 5888, 0x00000000
-0, 356400, 356400, 0, 196608, 0xa832782f
+0, 120, 120, 1, 196608, 0xa832782f
1, 175105, 175105, 1471, 5884, 0x00000000
-0, 359370, 359370, 0, 196608, 0xa832782f
+0, 121, 121, 1, 196608, 0xa832782f
1, 176576, 176576, 1472, 5888, 0x00000000
-0, 362340, 362340, 0, 196608, 0xa832782f
+0, 122, 122, 1, 196608, 0xa832782f
1, 178048, 178048, 1471, 5884, 0x00000000
-0, 365310, 365310, 0, 196608, 0xa832782f
+0, 123, 123, 1, 196608, 0xa832782f
1, 179519, 179519, 1471, 5884, 0x00000000
-0, 368280, 368280, 0, 196608, 0xa832782f
+0, 124, 124, 1, 196608, 0xa832782f
1, 180990, 180990, 1472, 5888, 0x00000000
-0, 371250, 371250, 0, 196608, 0xa832782f
+0, 125, 125, 1, 196608, 0xa832782f
1, 182462, 182462, 1471, 5884, 0x00000000
-0, 374220, 374220, 0, 196608, 0xa832782f
+0, 126, 126, 1, 196608, 0xa832782f
1, 183933, 183933, 1472, 5888, 0x00000000
-0, 377190, 377190, 0, 196608, 0xa832782f
+0, 127, 127, 1, 196608, 0xa832782f
1, 185405, 185405, 1471, 5884, 0x00000000
-0, 380160, 380160, 0, 196608, 0xa832782f
+0, 128, 128, 1, 196608, 0xa832782f
1, 186876, 186876, 1472, 5888, 0x00000000
-0, 383130, 383130, 0, 196608, 0xa832782f
+0, 129, 129, 1, 196608, 0xa832782f
1, 188348, 188348, 1471, 5884, 0x00000000
-0, 386100, 386100, 0, 196608, 0xa832782f
+0, 130, 130, 1, 196608, 0xa832782f
1, 189819, 189819, 1472, 5888, 0x00000000
-0, 389070, 389070, 0, 196608, 0xa832782f
+0, 131, 131, 1, 196608, 0xa832782f
1, 191291, 191291, 1471, 5884, 0x00000000
-0, 392040, 392040, 0, 196608, 0xa832782f
+0, 132, 132, 1, 196608, 0xa832782f
1, 192762, 192762, 1472, 5888, 0x00000000
-0, 395010, 395010, 0, 196608, 0xa832782f
+0, 133, 133, 1, 196608, 0xa832782f
1, 194234, 194234, 1471, 5884, 0x00000000
-0, 397980, 397980, 0, 196608, 0xa832782f
+0, 134, 134, 1, 196608, 0xa832782f
1, 195705, 195705, 1472, 5888, 0x00000000
-0, 400950, 400950, 0, 196608, 0xa832782f
+0, 135, 135, 1, 196608, 0xa832782f
1, 197177, 197177, 1471, 5884, 0x00000000
-0, 403920, 403920, 0, 196608, 0xa832782f
+0, 136, 136, 1, 196608, 0xa832782f
1, 198648, 198648, 1472, 5888, 0x00000000
-0, 406890, 406890, 0, 196608, 0xa832782f
+0, 137, 137, 1, 196608, 0xa832782f
1, 200120, 200120, 1471, 5884, 0x00000000
-0, 409860, 409860, 0, 196608, 0xa832782f
+0, 138, 138, 1, 196608, 0xa832782f
1, 201591, 201591, 1472, 5888, 0x00000000
-0, 412830, 412830, 0, 196608, 0xa832782f
+0, 139, 139, 1, 196608, 0xa832782f
1, 203063, 203063, 1471, 5884, 0x00000000
-0, 415800, 415800, 0, 196608, 0xa832782f
+0, 140, 140, 1, 196608, 0xa832782f
1, 204534, 204534, 1472, 5888, 0x00000000
-0, 418770, 418770, 0, 196608, 0xa832782f
+0, 141, 141, 1, 196608, 0xa832782f
1, 206006, 206006, 1471, 5884, 0x00000000
-0, 421740, 421740, 0, 196608, 0xa832782f
+0, 142, 142, 1, 196608, 0xa832782f
1, 207477, 207477, 1262, 5048, 0x00000000
-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
+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
diff --git a/tests/ref/fate/ea-tgq b/tests/ref/fate/ea-tgq
index edb04fa810..5c0648dbaf 100644
--- a/tests/ref/fate/ea-tgq
+++ b/tests/ref/fate/ea-tgq
@@ -1,279 +1,279 @@
-#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
+#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
diff --git a/tests/ref/fate/eval b/tests/ref/fate/eval
index ef50292024..67b107a930 100644
--- a/tests/ref/fate/eval
+++ b/tests/ref/fate/eval
@@ -148,5 +148,38 @@ Evaluating 'not(NAN)'
Evaluating 'not(0)'
'not(0)' -> 1.000000
+Evaluating 'pow(0,1.23)'
+'pow(0,1.23)' -> 0.000000
+
+Evaluating 'pow(PI,1.23)'
+'pow(PI,1.23)' -> 4.087844
+
+Evaluating 'PI^1.23'
+'PI^1.23' -> 4.087844
+
+Evaluating 'pow(-1,1.23)'
+'pow(-1,1.23)' -> nan
+
+Evaluating 'if(1, 2)'
+'if(1, 2)' -> 2.000000
+
+Evaluating 'ifnot(0, 23)'
+'ifnot(0, 23)' -> 23.000000
+
+Evaluating 'ifnot(1, NaN) + if(0, 1)'
+'ifnot(1, NaN) + if(0, 1)' -> 0.000000
+
+Evaluating 'taylor(1, 1)'
+'taylor(1, 1)' -> 2.718282
+
+Evaluating 'taylor(eq(mod(ld(1),4),1)-eq(mod(ld(1),4),3), PI/2, 1)'
+'taylor(eq(mod(ld(1),4),1)-eq(mod(ld(1),4),3), PI/2, 1)' -> 1.000000
+
+Evaluating 'root(sin(ld(0))-1, 2)'
+'root(sin(ld(0))-1, 2)' -> 1.570796
+
+Evaluating 'root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)'
+'root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)' -> 60.965601
+
12.700000 == 12.7
0.931323 == 0.931322575
diff --git a/tests/ref/fate/flic-af11-palette-change b/tests/ref/fate/flic-af11-palette-change
index 61e6c1d8a0..cd702b622c 100644
--- a/tests/ref/fate/flic-af11-palette-change
+++ b/tests/ref/fate/flic-af11-palette-change
@@ -1,117 +1,117 @@
#tb 0: 1/35
-0, 0, 0, 1, 192000, 0x64da83e8
-0, 1, 1, 1, 192000, 0xf59ccccc
-0, 2, 2, 1, 192000, 0xaaa06c5c
-0, 3, 3, 1, 192000, 0xa98f82c0
-0, 4, 4, 1, 192000, 0x164fbbdc
-0, 5, 5, 1, 192000, 0x0b3abc0c
-0, 6, 6, 1, 192000, 0x47661943
-0, 7, 7, 1, 192000, 0x30711074
-0, 8, 8, 1, 192000, 0x67684a84
-0, 9, 9, 1, 192000, 0x1d9afa70
-0, 10, 10, 1, 192000, 0x4fd28e78
-0, 11, 11, 1, 192000, 0x9bc5c8cc
-0, 12, 12, 1, 192000, 0xcf268b6c
-0, 13, 13, 1, 192000, 0xdfe65fd4
-0, 14, 14, 1, 192000, 0x47e75404
-0, 15, 15, 1, 192000, 0xb3b5b448
-0, 16, 16, 1, 192000, 0x826c94b4
-0, 17, 17, 1, 192000, 0x158e95f8
-0, 18, 18, 1, 192000, 0x576f031f
-0, 19, 19, 1, 192000, 0xea3399e8
-0, 20, 20, 1, 192000, 0x76b1e224
-0, 21, 21, 1, 192000, 0x290073db
-0, 22, 22, 1, 192000, 0x83741abf
-0, 23, 23, 1, 192000, 0x50f9c4ec
-0, 24, 24, 1, 192000, 0x6d8fdac0
-0, 25, 25, 1, 192000, 0xe26e2600
-0, 26, 26, 1, 192000, 0xbeb0e11c
-0, 27, 27, 1, 192000, 0x38282fd4
-0, 28, 28, 1, 192000, 0x13d0b790
-0, 29, 29, 1, 192000, 0x0cf8fca9
-0, 30, 30, 1, 192000, 0x64da83e8
-0, 31, 31, 1, 192000, 0xf59ccccc
-0, 32, 32, 1, 192000, 0xaaa06c5c
-0, 33, 33, 1, 192000, 0xa98f82c0
-0, 34, 34, 1, 192000, 0x164fbbdc
-0, 35, 35, 1, 192000, 0x0b3abc0c
-0, 36, 36, 1, 192000, 0x47661943
-0, 37, 37, 1, 192000, 0x30711074
-0, 38, 38, 1, 192000, 0x67684a84
-0, 39, 39, 1, 192000, 0x1d9afa70
-0, 40, 40, 1, 192000, 0x4fd28e78
-0, 41, 41, 1, 192000, 0x9bc5c8cc
-0, 42, 42, 1, 192000, 0xcf268b6c
-0, 43, 43, 1, 192000, 0xdfe65fd4
-0, 44, 44, 1, 192000, 0x47e75404
-0, 45, 45, 1, 192000, 0xb3b5b448
-0, 46, 46, 1, 192000, 0x826c94b4
-0, 47, 47, 1, 192000, 0x158e95f8
-0, 48, 48, 1, 192000, 0x576f031f
-0, 49, 49, 1, 192000, 0xea3399e8
-0, 50, 50, 1, 192000, 0x76b1e224
-0, 51, 51, 1, 192000, 0x290073db
-0, 52, 52, 1, 192000, 0x83741abf
-0, 53, 53, 1, 192000, 0x50f9c4ec
-0, 54, 54, 1, 192000, 0x6d8fdac0
-0, 55, 55, 1, 192000, 0xe26e2600
-0, 56, 56, 1, 192000, 0xbeb0e11c
-0, 57, 57, 1, 192000, 0x38282fd4
-0, 58, 58, 1, 192000, 0x13d0b790
-0, 59, 59, 1, 192000, 0x0cf8fca9
-0, 60, 60, 1, 192000, 0x64da83e8
-0, 61, 61, 1, 192000, 0xf59ccccc
-0, 62, 62, 1, 192000, 0xaaa06c5c
-0, 63, 63, 1, 192000, 0xa98f82c0
-0, 64, 64, 1, 192000, 0x164fbbdc
-0, 65, 65, 1, 192000, 0x0b3abc0c
-0, 66, 66, 1, 192000, 0x47661943
-0, 67, 67, 1, 192000, 0x30711074
-0, 68, 68, 1, 192000, 0x67684a84
-0, 69, 69, 1, 192000, 0x1d9afa70
-0, 70, 70, 1, 192000, 0x4fd28e78
-0, 71, 71, 1, 192000, 0x9bc5c8cc
-0, 72, 72, 1, 192000, 0xcf268b6c
-0, 73, 73, 1, 192000, 0xdfe65fd4
-0, 74, 74, 1, 192000, 0x47e75404
-0, 75, 75, 1, 192000, 0xb3b5b448
-0, 76, 76, 1, 192000, 0x826c94b4
-0, 77, 77, 1, 192000, 0x158e95f8
-0, 78, 78, 1, 192000, 0x576f031f
-0, 79, 79, 1, 192000, 0xea3399e8
-0, 80, 80, 1, 192000, 0x76b1e224
-0, 81, 81, 1, 192000, 0x290073db
-0, 82, 82, 1, 192000, 0x83741abf
-0, 83, 83, 1, 192000, 0x50f9c4ec
-0, 84, 84, 1, 192000, 0x6d8fdac0
-0, 85, 85, 1, 192000, 0xe26e2600
-0, 86, 86, 1, 192000, 0xbeb0e11c
-0, 87, 87, 1, 192000, 0x38282fd4
-0, 88, 88, 1, 192000, 0x13d0b790
-0, 89, 89, 1, 192000, 0x0cf8fca9
-0, 90, 90, 1, 192000, 0xfcb10883
-0, 91, 91, 1, 192000, 0xfcb10883
-0, 92, 92, 1, 192000, 0xd0ba80c4
-0, 93, 93, 1, 192000, 0xd0ba80c4
-0, 94, 94, 1, 192000, 0x690520d9
-0, 95, 95, 1, 192000, 0x690520d9
-0, 96, 96, 1, 192000, 0x5b621c3f
-0, 97, 97, 1, 192000, 0x5b621c3f
-0, 98, 98, 1, 192000, 0x689e231f
-0, 99, 99, 1, 192000, 0x689e231f
-0, 100, 100, 1, 192000, 0x20653ff2
-0, 101, 101, 1, 192000, 0x20653ff2
-0, 102, 102, 1, 192000, 0xc18b3231
-0, 103, 103, 1, 192000, 0xc18b3231
-0, 104, 104, 1, 192000, 0x6d87ec3d
-0, 105, 105, 1, 192000, 0x6d87ec3d
-0, 106, 106, 1, 192000, 0x1c5b53d6
-0, 107, 107, 1, 192000, 0x1c5b53d6
-0, 108, 108, 1, 192000, 0x152fdf12
-0, 109, 109, 1, 192000, 0xde187291
-0, 110, 110, 1, 192000, 0x167617a5
-0, 111, 111, 1, 192000, 0x5067b8de
-0, 112, 112, 1, 192000, 0xd02ae54e
-0, 113, 113, 1, 192000, 0x0d6e9402
-0, 114, 114, 1, 192000, 0xa8e98616
-0, 115, 115, 1, 192000, 0x04762d1a
+0, 0, 0, 1, 192000, 0x508ff8ac
+0, 1, 1, 1, 192000, 0xef0d4274
+0, 2, 2, 1, 192000, 0x0d50e0dd
+0, 3, 3, 1, 192000, 0xf638f782
+0, 4, 4, 1, 192000, 0x40e4314b
+0, 5, 5, 1, 192000, 0x0ce5318f
+0, 6, 6, 1, 192000, 0x14848fa9
+0, 7, 7, 1, 192000, 0x676f83e1
+0, 8, 8, 1, 192000, 0x5b98bea9
+0, 9, 9, 1, 192000, 0xf5cc709d
+0, 10, 10, 1, 192000, 0x719a0373
+0, 11, 11, 1, 192000, 0xba5a3e74
+0, 12, 12, 1, 192000, 0x34e10051
+0, 13, 13, 1, 192000, 0xb66dd42d
+0, 14, 14, 1, 192000, 0xfb58c833
+0, 15, 15, 1, 192000, 0xa28029a4
+0, 16, 16, 1, 192000, 0x28fa09b3
+0, 17, 17, 1, 192000, 0x676f0b08
+0, 18, 18, 1, 192000, 0x7af97965
+0, 19, 19, 1, 192000, 0x436f0f03
+0, 20, 20, 1, 192000, 0xbaca5814
+0, 21, 21, 1, 192000, 0xca97eb51
+0, 22, 22, 1, 192000, 0x1fc89137
+0, 23, 23, 1, 192000, 0x8af63a74
+0, 24, 24, 1, 192000, 0xca015077
+0, 25, 25, 1, 192000, 0x761599ad
+0, 26, 26, 1, 192000, 0x1ca1570c
+0, 27, 27, 1, 192000, 0x1209a3ac
+0, 28, 28, 1, 192000, 0xf7d92d01
+0, 29, 29, 1, 192000, 0x970d6fea
+0, 30, 30, 1, 192000, 0x508ff8ac
+0, 31, 31, 1, 192000, 0xef0d4274
+0, 32, 32, 1, 192000, 0x0d50e0dd
+0, 33, 33, 1, 192000, 0xf638f782
+0, 34, 34, 1, 192000, 0x40e4314b
+0, 35, 35, 1, 192000, 0x0ce5318f
+0, 36, 36, 1, 192000, 0x14848fa9
+0, 37, 37, 1, 192000, 0x676f83e1
+0, 38, 38, 1, 192000, 0x5b98bea9
+0, 39, 39, 1, 192000, 0xf5cc709d
+0, 40, 40, 1, 192000, 0x719a0373
+0, 41, 41, 1, 192000, 0xba5a3e74
+0, 42, 42, 1, 192000, 0x34e10051
+0, 43, 43, 1, 192000, 0xb66dd42d
+0, 44, 44, 1, 192000, 0xfb58c833
+0, 45, 45, 1, 192000, 0xa28029a4
+0, 46, 46, 1, 192000, 0x28fa09b3
+0, 47, 47, 1, 192000, 0x676f0b08
+0, 48, 48, 1, 192000, 0x7af97965
+0, 49, 49, 1, 192000, 0x436f0f03
+0, 50, 50, 1, 192000, 0xbaca5814
+0, 51, 51, 1, 192000, 0xca97eb51
+0, 52, 52, 1, 192000, 0x1fc89137
+0, 53, 53, 1, 192000, 0x8af63a74
+0, 54, 54, 1, 192000, 0xca015077
+0, 55, 55, 1, 192000, 0x761599ad
+0, 56, 56, 1, 192000, 0x1ca1570c
+0, 57, 57, 1, 192000, 0x1209a3ac
+0, 58, 58, 1, 192000, 0xf7d92d01
+0, 59, 59, 1, 192000, 0x970d6fea
+0, 60, 60, 1, 192000, 0x508ff8ac
+0, 61, 61, 1, 192000, 0xef0d4274
+0, 62, 62, 1, 192000, 0x0d50e0dd
+0, 63, 63, 1, 192000, 0xf638f782
+0, 64, 64, 1, 192000, 0x40e4314b
+0, 65, 65, 1, 192000, 0x0ce5318f
+0, 66, 66, 1, 192000, 0x14848fa9
+0, 67, 67, 1, 192000, 0x676f83e1
+0, 68, 68, 1, 192000, 0x5b98bea9
+0, 69, 69, 1, 192000, 0xf5cc709d
+0, 70, 70, 1, 192000, 0x719a0373
+0, 71, 71, 1, 192000, 0xba5a3e74
+0, 72, 72, 1, 192000, 0x34e10051
+0, 73, 73, 1, 192000, 0xb66dd42d
+0, 74, 74, 1, 192000, 0xfb58c833
+0, 75, 75, 1, 192000, 0xa28029a4
+0, 76, 76, 1, 192000, 0x28fa09b3
+0, 77, 77, 1, 192000, 0x676f0b08
+0, 78, 78, 1, 192000, 0x7af97965
+0, 79, 79, 1, 192000, 0x436f0f03
+0, 80, 80, 1, 192000, 0xbaca5814
+0, 81, 81, 1, 192000, 0xca97eb51
+0, 82, 82, 1, 192000, 0x1fc89137
+0, 83, 83, 1, 192000, 0x8af63a74
+0, 84, 84, 1, 192000, 0xca015077
+0, 85, 85, 1, 192000, 0x761599ad
+0, 86, 86, 1, 192000, 0x1ca1570c
+0, 87, 87, 1, 192000, 0x1209a3ac
+0, 88, 88, 1, 192000, 0xf7d92d01
+0, 89, 89, 1, 192000, 0x970d6fea
+0, 90, 90, 1, 192000, 0x1ff28298
+0, 91, 91, 1, 192000, 0x1ff28298
+0, 92, 92, 1, 192000, 0x407d09ca
+0, 93, 93, 1, 192000, 0x407d09ca
+0, 94, 94, 1, 192000, 0xc743a475
+0, 95, 95, 1, 192000, 0xc743a475
+0, 96, 96, 1, 192000, 0x46bf9f7d
+0, 97, 97, 1, 192000, 0x46bf9f7d
+0, 98, 98, 1, 192000, 0x57ecb2c1
+0, 99, 99, 1, 192000, 0x57ecb2c1
+0, 100, 100, 1, 192000, 0x680fd3bf
+0, 101, 101, 1, 192000, 0x680fd3bf
+0, 102, 102, 1, 192000, 0x8772ca19
+0, 103, 103, 1, 192000, 0x8772ca19
+0, 104, 104, 1, 192000, 0x3cc29bbf
+0, 105, 105, 1, 192000, 0x3cc29bbf
+0, 106, 106, 1, 192000, 0xe745fb3c
+0, 107, 107, 1, 192000, 0xe745fb3c
+0, 108, 108, 1, 192000, 0xc5279397
+0, 109, 109, 1, 192000, 0xcc902b35
+0, 110, 110, 1, 192000, 0x50a7cf32
+0, 111, 111, 1, 192000, 0x23fd6f51
+0, 112, 112, 1, 192000, 0x14fe9c4d
+0, 113, 113, 1, 192000, 0x703249f9
+0, 114, 114, 1, 192000, 0x47b73bce
+0, 115, 115, 1, 192000, 0x13bce1c9
diff --git a/tests/ref/fate/flic-magiccarpet b/tests/ref/fate/flic-magiccarpet
index f0faf1dd41..23a93427db 100644
--- a/tests/ref/fate/flic-magiccarpet
+++ b/tests/ref/fate/flic-magiccarpet
@@ -1,43 +1,43 @@
#tb 0: 1/14
0, 0, 0, 1, 192000, 0x00000000
-0, 1, 1, 1, 192000, 0x9c057d9c
-0, 2, 2, 1, 192000, 0xab1aacaf
-0, 3, 3, 1, 192000, 0x49a1dccd
-0, 4, 4, 1, 192000, 0xebb7e245
-0, 5, 5, 1, 192000, 0x6287759e
-0, 6, 6, 1, 192000, 0xbf007410
-0, 7, 7, 1, 192000, 0x6c72b247
-0, 8, 8, 1, 192000, 0x4c26a8c3
-0, 9, 9, 1, 192000, 0x99f06050
-0, 10, 10, 1, 192000, 0x663f2d23
-0, 11, 11, 1, 192000, 0x813c3a1f
-0, 12, 12, 1, 192000, 0x6d6cfbe7
-0, 13, 13, 1, 192000, 0x7b04163a
-0, 14, 14, 1, 192000, 0x6792e679
-0, 15, 15, 1, 192000, 0x939ac626
-0, 16, 16, 1, 192000, 0xc7a139c0
-0, 17, 17, 1, 192000, 0xcac7ef0c
-0, 18, 18, 1, 192000, 0xf4ec59e0
-0, 19, 19, 1, 192000, 0x56060f59
-0, 20, 20, 1, 192000, 0xf45ecb3b
-0, 21, 21, 1, 192000, 0xe7e634ff
-0, 22, 22, 1, 192000, 0x7ac04aa4
-0, 23, 23, 1, 192000, 0x4eaba5a1
-0, 24, 24, 1, 192000, 0x89b84e25
-0, 25, 25, 1, 192000, 0xc368ec1e
-0, 26, 26, 1, 192000, 0xeeafb59e
-0, 27, 27, 1, 192000, 0x0b630619
-0, 28, 28, 1, 192000, 0x59cb8954
-0, 29, 29, 1, 192000, 0x16b2875f
-0, 30, 30, 1, 192000, 0x524e32bd
-0, 31, 31, 1, 192000, 0x96000ba2
-0, 32, 32, 1, 192000, 0x18ec28af
-0, 33, 33, 1, 192000, 0x2609c56c
-0, 34, 34, 1, 192000, 0xff25bb5a
-0, 35, 35, 1, 192000, 0xb19a8819
-0, 36, 36, 1, 192000, 0xa5ff8727
-0, 37, 37, 1, 192000, 0xe83f6289
-0, 38, 38, 1, 192000, 0xc6cb4903
-0, 39, 39, 1, 192000, 0xa4d93eb5
-0, 40, 40, 1, 192000, 0xec84ef6c
+0, 1, 1, 1, 192000, 0x03567eeb
+0, 2, 2, 1, 192000, 0xe73db12c
+0, 3, 3, 1, 192000, 0x7cefe740
+0, 4, 4, 1, 192000, 0xb769f827
+0, 5, 5, 1, 192000, 0x71669dea
+0, 6, 6, 1, 192000, 0xc203b934
+0, 7, 7, 1, 192000, 0x30671ee2
+0, 8, 8, 1, 192000, 0xaea33a1b
+0, 9, 9, 1, 192000, 0x50f220c3
+0, 10, 10, 1, 192000, 0x1ddd090f
+0, 11, 11, 1, 192000, 0x17ac22a4
+0, 12, 12, 1, 192000, 0x19f9f412
+0, 13, 13, 1, 192000, 0xa2df0e55
+0, 14, 14, 1, 192000, 0x5abcd663
+0, 15, 15, 1, 192000, 0x5b09b38d
+0, 16, 16, 1, 192000, 0x894d1f43
+0, 17, 17, 1, 192000, 0xbc95caaf
+0, 18, 18, 1, 192000, 0xeaca27fc
+0, 19, 19, 1, 192000, 0x49c5ccb4
+0, 20, 20, 1, 192000, 0x8b3e78b0
+0, 21, 21, 1, 192000, 0x1645d3ae
+0, 22, 22, 1, 192000, 0x4407da0f
+0, 23, 23, 1, 192000, 0x7d0826ac
+0, 24, 24, 1, 192000, 0xc17ec1b8
+0, 25, 25, 1, 192000, 0x4a82520d
+0, 26, 26, 1, 192000, 0xa89f0e2f
+0, 27, 27, 1, 192000, 0xd58b537a
+0, 28, 28, 1, 192000, 0x7123dafe
+0, 29, 29, 1, 192000, 0x15d1d065
+0, 30, 30, 1, 192000, 0xa86873f6
+0, 31, 31, 1, 192000, 0x32704a91
+0, 32, 32, 1, 192000, 0xbf2b63d7
+0, 33, 33, 1, 192000, 0xb98e0126
+0, 34, 34, 1, 192000, 0x412a03ee
+0, 35, 35, 1, 192000, 0x601ad161
+0, 36, 36, 1, 192000, 0x01ead407
+0, 37, 37, 1, 192000, 0x75a7bbe5
+0, 38, 38, 1, 192000, 0x155ea759
+0, 39, 39, 1, 192000, 0xe3a0a6aa
+0, 40, 40, 1, 192000, 0x2b5a5770
0, 41, 41, 1, 192000, 0x00000000
diff --git a/tests/ref/fate/fraps-v2 b/tests/ref/fate/fraps-v2
index 1ebfb7c281..06e0024ced 100644
--- a/tests/ref/fate/fraps-v2
+++ b/tests/ref/fate/fraps-v2
@@ -1,11 +1,3 @@
#tb 0: 1/30
0, 0, 0, 1, 1179648, 0x99f80436
-0, 1, 1, 1, 1179648, 0x99f80436
-0, 2, 2, 1, 1179648, 0x99f80436
-0, 3, 3, 1, 1179648, 0x99f80436
-0, 4, 4, 1, 1179648, 0x99f80436
0, 5, 5, 1, 1179648, 0xe8ae7a30
-0, 6, 6, 1, 1179648, 0xe8ae7a30
-0, 7, 7, 1, 1179648, 0xe8ae7a30
-0, 8, 8, 1, 1179648, 0xe8ae7a30
-0, 9, 9, 1, 1179648, 0xe8ae7a30
diff --git a/tests/ref/fate/fraps-v3 b/tests/ref/fate/fraps-v3
index ac8b701767..139ee7e470 100644
--- a/tests/ref/fate/fraps-v3
+++ b/tests/ref/fate/fraps-v3
@@ -3,8 +3,6 @@
0, 1, 1, 1, 589824, 0xcd740f79
0, 2, 2, 1, 589824, 0x16f8f90e
0, 3, 3, 1, 589824, 0x1aaaceba
-0, 4, 4, 1, 589824, 0x1aaaceba
0, 5, 5, 1, 589824, 0x902e8fe4
0, 6, 6, 1, 589824, 0x019a4443
-0, 7, 7, 1, 589824, 0x019a4443
0, 8, 8, 1, 589824, 0x04eff6c6
diff --git a/tests/ref/fate/g729-0 b/tests/ref/fate/g729-0
new file mode 100644
index 0000000000..36c6634fab
--- /dev/null
+++ b/tests/ref/fate/g729-0
@@ -0,0 +1,1000 @@
+0, 0, 160, 0xbb6d5aa0
+0, 900, 160, 0x91563d8d
+0, 1800, 160, 0x10a7535b
+0, 2700, 160, 0xa4f35594
+0, 3600, 160, 0x7f8e54e0
+0, 4500, 160, 0x85275000
+0, 5400, 160, 0x00734c7b
+0, 6300, 160, 0x8a2d544d
+0, 7200, 160, 0x97dc533c
+0, 8100, 160, 0xa7064ec4
+0, 9000, 160, 0xb7984a3c
+0, 9900, 160, 0x28334db6
+0, 10800, 160, 0x5838521f
+0, 11700, 160, 0x2337502c
+0, 12600, 160, 0x4a1e4599
+0, 13500, 160, 0x0d3858a8
+0, 14400, 160, 0xa0974b46
+0, 15300, 160, 0xc3254b93
+0, 16200, 160, 0x42b75231
+0, 17100, 160, 0x93634662
+0, 18000, 160, 0x11674fa1
+0, 18900, 160, 0xf2da5414
+0, 19800, 160, 0x97754dbc
+0, 20700, 160, 0x40a24d94
+0, 21600, 160, 0x26b34ebf
+0, 22500, 160, 0x7730542f
+0, 23400, 160, 0xb45254aa
+0, 24300, 160, 0xd8d752c3
+0, 25200, 160, 0x655c4a81
+0, 26100, 160, 0xa5da4f35
+0, 27000, 160, 0xd43551a1
+0, 27900, 160, 0x72a74e7d
+0, 28800, 160, 0xdb2150b3
+0, 29700, 160, 0x972852a1
+0, 30600, 160, 0xbae14c07
+0, 31500, 160, 0x23b54d57
+0, 32400, 160, 0x2d9650a5
+0, 33300, 160, 0xaf755107
+0, 34200, 160, 0xdb054f0e
+0, 35100, 160, 0x9f084cc0
+0, 36000, 160, 0x64ca5760
+0, 36900, 160, 0x3ea24be2
+0, 37800, 160, 0x93ea503b
+0, 38700, 160, 0xb6694afa
+0, 39600, 160, 0xf94c52e7
+0, 40500, 160, 0x2b7156b8
+0, 41400, 160, 0xbbdf414c
+0, 42300, 160, 0x10cd4ac8
+0, 43200, 160, 0x39885453
+0, 44100, 160, 0xa1505568
+0, 45000, 160, 0x86124ec1
+0, 45900, 160, 0xe2ab5489
+0, 46800, 160, 0x406254bc
+0, 47700, 160, 0x09044629
+0, 48600, 160, 0xb2ed5702
+0, 49500, 160, 0xd9ee5188
+0, 50400, 160, 0x59f7592a
+0, 51300, 160, 0x8f144c08
+0, 52200, 160, 0x90394e61
+0, 53100, 160, 0x79524df7
+0, 54000, 160, 0x58044674
+0, 54900, 160, 0x73b24d90
+0, 55800, 160, 0x80e257a1
+0, 56700, 160, 0xe8ff4caf
+0, 57600, 160, 0x1db84e3e
+0, 58500, 160, 0xd7db59d9
+0, 59400, 160, 0x43244c15
+0, 60300, 160, 0x1f63558f
+0, 61200, 160, 0xf0d851c6
+0, 62100, 160, 0x76484f3a
+0, 63000, 160, 0x5746551e
+0, 63900, 160, 0x83b54cd7
+0, 64800, 160, 0x97f550a1
+0, 65700, 160, 0x77c45340
+0, 66600, 160, 0xfd7b520a
+0, 67500, 160, 0x989a4e13
+0, 68400, 160, 0x9a8551c0
+0, 69300, 160, 0xa0cb4f93
+0, 70200, 160, 0xc568536f
+0, 71100, 160, 0x6fa74a95
+0, 72000, 160, 0xd550568b
+0, 72900, 160, 0xf88f4de5
+0, 73800, 160, 0x91285517
+0, 74700, 160, 0xdb675270
+0, 75600, 160, 0x606c53f9
+0, 76500, 160, 0x43f64601
+0, 77400, 160, 0x28b94b45
+0, 78300, 160, 0x7f2347f5
+0, 79200, 160, 0x84ba55db
+0, 80100, 160, 0x3ca3477c
+0, 81000, 160, 0x57d158ba
+0, 81900, 160, 0x2c3c506d
+0, 82800, 160, 0x59b34e5f
+0, 83700, 160, 0x014f530a
+0, 84600, 160, 0x877f4f76
+0, 85500, 160, 0x97a65c5f
+0, 86400, 160, 0xf643516d
+0, 87300, 160, 0x6ccc5242
+0, 88200, 160, 0x895450bd
+0, 89100, 160, 0xe246570e
+0, 90000, 160, 0xbb9f4a0c
+0, 90900, 160, 0x60e646fe
+0, 91800, 160, 0x546f515b
+0, 92700, 160, 0xc59254f0
+0, 93600, 160, 0xcad6551f
+0, 94500, 160, 0x14e14fac
+0, 95400, 160, 0x3cf94c52
+0, 96300, 160, 0x99b14f45
+0, 97200, 160, 0xfdb14dc7
+0, 98100, 160, 0x48f359e7
+0, 99000, 160, 0x186153e3
+0, 99900, 160, 0x047d4a78
+0, 100800, 160, 0x992f462b
+0, 101700, 160, 0x4a0e504d
+0, 102600, 160, 0x1f245275
+0, 103500, 160, 0x026959a9
+0, 104400, 160, 0x648846e7
+0, 105300, 160, 0xcac94cb3
+0, 106200, 160, 0x55e551a4
+0, 107100, 160, 0x767a5315
+0, 108000, 160, 0xbfde4d2b
+0, 108900, 160, 0x29bf4613
+0, 109800, 160, 0x8a8d5394
+0, 110700, 160, 0x36f94dae
+0, 111600, 160, 0x4cbf50ba
+0, 112500, 160, 0x9af44d8b
+0, 113400, 160, 0x6e8a519e
+0, 114300, 160, 0x496348b7
+0, 115200, 160, 0x95324eb2
+0, 116100, 160, 0x5bfe5118
+0, 117000, 160, 0xa1ff4c88
+0, 117900, 160, 0x86c2500a
+0, 118800, 160, 0xc53353c5
+0, 119700, 160, 0x062f52ee
+0, 120600, 160, 0x11cf522d
+0, 121500, 160, 0x054f5855
+0, 122400, 160, 0x8c4e44e9
+0, 123300, 160, 0x4d514fda
+0, 124200, 160, 0x5726568e
+0, 125100, 160, 0x281859ad
+0, 126000, 160, 0x3f3344f8
+0, 126900, 160, 0x2cbb3ee5
+0, 127800, 160, 0xa075551c
+0, 128700, 160, 0xafb25528
+0, 129600, 160, 0x9221478a
+0, 130500, 160, 0x6cb15634
+0, 131400, 160, 0xb5cf4523
+0, 132300, 160, 0x8a7a4f2c
+0, 133200, 160, 0x278e553d
+0, 134100, 160, 0x49054ad3
+0, 135000, 160, 0x5d7449bb
+0, 135900, 160, 0x67c346a0
+0, 136800, 160, 0x5d915bf8
+0, 137700, 160, 0x671355b2
+0, 138600, 160, 0xdfa84ee6
+0, 139500, 160, 0x4c3552d0
+0, 140400, 160, 0x63a1483c
+0, 141300, 160, 0x14c151ba
+0, 142200, 160, 0xf7434d78
+0, 143100, 160, 0x1c3652c9
+0, 144000, 160, 0x035b51da
+0, 144900, 160, 0x2bf6496b
+0, 145800, 160, 0x50a14f14
+0, 146700, 160, 0x518948f8
+0, 147600, 160, 0x7e784331
+0, 148500, 160, 0x73384dce
+0, 149400, 160, 0x11015066
+0, 150300, 160, 0xacc5525c
+0, 151200, 160, 0xf75a5431
+0, 152100, 160, 0xa78e4b8a
+0, 153000, 160, 0xd07955b0
+0, 153900, 160, 0x63164a03
+0, 154800, 160, 0x952f519e
+0, 155700, 160, 0xe5764f77
+0, 156600, 160, 0xa9255738
+0, 157500, 160, 0x65d64ce5
+0, 158400, 160, 0x8ab7507c
+0, 159300, 160, 0xf5265251
+0, 160200, 160, 0xa6a84d74
+0, 161100, 160, 0xc2594fee
+0, 162000, 160, 0xdfae5056
+0, 162900, 160, 0xa5a74c11
+0, 163800, 160, 0x5fdf4a21
+0, 164700, 160, 0x11014f8d
+0, 165600, 160, 0x08d0553f
+0, 166500, 160, 0x3036520e
+0, 167400, 160, 0xee3a464e
+0, 168300, 160, 0xbfd94949
+0, 169200, 160, 0x21625176
+0, 170100, 160, 0x6c714e8d
+0, 171000, 160, 0x055a4c05
+0, 171900, 160, 0xc7f35347
+0, 172800, 160, 0x82344b60
+0, 173700, 160, 0x99854ce4
+0, 174600, 160, 0x95504ec3
+0, 175500, 160, 0xe245502a
+0, 176400, 160, 0xb0e14a4c
+0, 177300, 160, 0x09835b86
+0, 178200, 160, 0xe9495220
+0, 179100, 160, 0xce9b514f
+0, 180000, 160, 0xbaf85695
+0, 180900, 160, 0x69aa3f1d
+0, 181800, 160, 0xd6a551b8
+0, 182700, 160, 0x4eb956e6
+0, 183600, 160, 0xdd6d4e58
+0, 184500, 160, 0xba1f4814
+0, 185400, 160, 0x4a604f48
+0, 186300, 160, 0xa8995890
+0, 187200, 160, 0x3a80616b
+0, 188100, 160, 0xfb796013
+0, 189000, 160, 0x8eba5c12
+0, 189900, 160, 0xd37859b9
+0, 190800, 160, 0x19a857c8
+0, 191700, 160, 0xec0e5a16
+0, 192600, 160, 0xd5335159
+0, 193500, 160, 0x560f4de7
+0, 194400, 160, 0x06d354c8
+0, 195300, 160, 0xdade5860
+0, 196200, 160, 0x093a512c
+0, 197100, 160, 0xb37b5098
+0, 198000, 160, 0x3eea537c
+0, 198900, 160, 0xf5c94f06
+0, 199800, 160, 0x552c4bb2
+0, 200700, 160, 0xea9a5a79
+0, 201600, 160, 0xd2645494
+0, 202500, 160, 0x5ba958ea
+0, 203400, 160, 0x54b559cf
+0, 204300, 160, 0x86bf5bba
+0, 205200, 160, 0xb89b6149
+0, 206100, 160, 0x1e825314
+0, 207000, 160, 0xf0d250cc
+0, 207900, 160, 0xc7ad53ba
+0, 208800, 160, 0x320c552f
+0, 209700, 160, 0xc62756f7
+0, 210600, 160, 0xa41351f7
+0, 211500, 160, 0x27ed4e78
+0, 212400, 160, 0x8d6047bc
+0, 213300, 160, 0xa45c48d0
+0, 214200, 160, 0x14da5400
+0, 215100, 160, 0x48514dd2
+0, 216000, 160, 0xec395318
+0, 216900, 160, 0xf3c85e4a
+0, 217800, 160, 0x657a63ed
+0, 218700, 160, 0xcc975c4d
+0, 219600, 160, 0x86125dd4
+0, 220500, 160, 0x6a3f6019
+0, 221400, 160, 0x84c05aeb
+0, 222300, 160, 0xe68561f7
+0, 223200, 160, 0x7ec763ae
+0, 224100, 160, 0x91bd5792
+0, 225000, 160, 0xb9365c8e
+0, 225900, 160, 0x42d7587a
+0, 226800, 160, 0x80a45453
+0, 227700, 160, 0x9ecf50c2
+0, 228600, 160, 0xc8de5173
+0, 229500, 160, 0x776952f7
+0, 230400, 160, 0x45f856c0
+0, 231300, 160, 0x729c4d73
+0, 232200, 160, 0xfd364a18
+0, 233100, 160, 0x709e587d
+0, 234000, 160, 0x288240e5
+0, 234900, 160, 0x16a6493f
+0, 235800, 160, 0x76db596f
+0, 236700, 160, 0x16c24a51
+0, 237600, 160, 0xc55b5a8f
+0, 238500, 160, 0x19024a2e
+0, 239400, 160, 0x16514d1b
+0, 240300, 160, 0x48bb5b82
+0, 241200, 160, 0x5a6e4d80
+0, 242100, 160, 0x6d404b0f
+0, 243000, 160, 0x57bc4e4a
+0, 243900, 160, 0xc10c5381
+0, 244800, 160, 0x34bd51d9
+0, 245700, 160, 0x5dcf52b7
+0, 246600, 160, 0xf61f57a7
+0, 247500, 160, 0x4e204934
+0, 248400, 160, 0xe18b4a3f
+0, 249300, 160, 0xb81256e3
+0, 250200, 160, 0x294047b2
+0, 251100, 160, 0x3ad559df
+0, 252000, 160, 0xd28d4d86
+0, 252900, 160, 0x67b75895
+0, 253800, 160, 0x191357b0
+0, 254700, 160, 0x8016556f
+0, 255600, 160, 0x62475c86
+0, 256500, 160, 0x0c975bc9
+0, 257400, 160, 0x901c5909
+0, 258300, 160, 0x9909567d
+0, 259200, 160, 0xce715b99
+0, 260100, 160, 0xae5062b1
+0, 261000, 160, 0x5bd056d6
+0, 261900, 160, 0xe3d3555a
+0, 262800, 160, 0xc4b1555c
+0, 263700, 160, 0x39c95649
+0, 264600, 160, 0x50145d11
+0, 265500, 160, 0xc0ba5307
+0, 266400, 160, 0x182455a3
+0, 267300, 160, 0x36c24e98
+0, 268200, 160, 0x1b5b52d0
+0, 269100, 160, 0xd38352d1
+0, 270000, 160, 0x6a1d5d2a
+0, 270900, 160, 0x50f05c44
+0, 271800, 160, 0xb2365dc1
+0, 272700, 160, 0x10825934
+0, 273600, 160, 0xcb4c61c2
+0, 274500, 160, 0x578252ab
+0, 275400, 160, 0xed99596c
+0, 276300, 160, 0xdfec6305
+0, 277200, 160, 0x97e2550a
+0, 278100, 160, 0xd60a56e1
+0, 279000, 160, 0xb6c4535e
+0, 279900, 160, 0x4d2e536c
+0, 280800, 160, 0xdef85cc7
+0, 281700, 160, 0xee985a98
+0, 282600, 160, 0x006a4cdb
+0, 283500, 160, 0xd06652ad
+0, 284400, 160, 0xeeee4ed6
+0, 285300, 160, 0xcb8b586d
+0, 286200, 160, 0x2ee4556e
+0, 287100, 160, 0x6d924c01
+0, 288000, 160, 0x7ff257cc
+0, 288900, 160, 0x67df5710
+0, 289800, 160, 0x0f704f29
+0, 290700, 160, 0x19dc53a7
+0, 291600, 160, 0xfbf44bc0
+0, 292500, 160, 0x640b5718
+0, 293400, 160, 0x2bfd4b91
+0, 294300, 160, 0xaae049bf
+0, 295200, 160, 0xca3154f6
+0, 296100, 160, 0x36064f2c
+0, 297000, 160, 0x28404919
+0, 297900, 160, 0x9c944fe3
+0, 298800, 160, 0xb4214c82
+0, 299700, 160, 0x442c514d
+0, 300600, 160, 0x44434ea5
+0, 301500, 160, 0x82a05aae
+0, 302400, 160, 0x4b86510d
+0, 303300, 160, 0x46844eab
+0, 304200, 160, 0xe5455deb
+0, 305100, 160, 0x60826550
+0, 306000, 160, 0x3c5a5448
+0, 306900, 160, 0x2db860c9
+0, 307800, 160, 0x4d845b78
+0, 308700, 160, 0x81dc5e23
+0, 309600, 160, 0x78c95932
+0, 310500, 160, 0xb5be57cd
+0, 311400, 160, 0x6fa45c65
+0, 312300, 160, 0x4e085e2a
+0, 313200, 160, 0x50ee530c
+0, 314100, 160, 0x2bb85587
+0, 315000, 160, 0x6d58614e
+0, 315900, 160, 0xcf4c5d69
+0, 316800, 160, 0x3cbf5ffb
+0, 317700, 160, 0x452157d3
+0, 318600, 160, 0x3cb55cd8
+0, 319500, 160, 0x2bba5735
+0, 320400, 160, 0x36a45670
+0, 321300, 160, 0x23b85b8a
+0, 322200, 160, 0x9a255457
+0, 323100, 160, 0x4e6956f3
+0, 324000, 160, 0xa0714edc
+0, 324900, 160, 0x7dee4a3d
+0, 325800, 160, 0x86404bc9
+0, 326700, 160, 0x358c50cd
+0, 327600, 160, 0x9eda47e8
+0, 328500, 160, 0x3cfe522e
+0, 329400, 160, 0xddb95758
+0, 330300, 160, 0x1a434a83
+0, 331200, 160, 0xa8a450bb
+0, 332100, 160, 0x44e7530e
+0, 333000, 160, 0x59b5555a
+0, 333900, 160, 0x65404db1
+0, 334800, 160, 0xcac15945
+0, 335700, 160, 0x38864f17
+0, 336600, 160, 0x61114f30
+0, 337500, 160, 0x195542d8
+0, 338400, 160, 0xacbb4c69
+0, 339300, 160, 0xd0da4ab9
+0, 340200, 160, 0x563d4eb6
+0, 341100, 160, 0xd0ce503c
+0, 342000, 160, 0x8b684e15
+0, 342900, 160, 0x711541d3
+0, 343800, 160, 0xb28b5b9b
+0, 344700, 160, 0x48b145e4
+0, 345600, 160, 0x908f5606
+0, 346500, 160, 0x22c74f02
+0, 347400, 160, 0x87274716
+0, 348300, 160, 0xaa2351e6
+0, 349200, 160, 0x2df5505a
+0, 350100, 160, 0x7999525c
+0, 351000, 160, 0x728a4b73
+0, 351900, 160, 0xa67447ff
+0, 352800, 160, 0x28884a20
+0, 353700, 160, 0x3ffa5840
+0, 354600, 160, 0xd6265047
+0, 355500, 160, 0x2f1553a8
+0, 356400, 160, 0xac0653ec
+0, 357300, 160, 0x35844368
+0, 358200, 160, 0x6e1553ba
+0, 359100, 160, 0xb62a4c88
+0, 360000, 160, 0x88a04ffc
+0, 360900, 160, 0x947e525e
+0, 361800, 160, 0x3dd24f98
+0, 362700, 160, 0x942e542e
+0, 363600, 160, 0xdb985211
+0, 364500, 160, 0x615a5022
+0, 365400, 160, 0x71c04569
+0, 366300, 160, 0xbbbe4f41
+0, 367200, 160, 0x62074e0b
+0, 368100, 160, 0x2c5d56c7
+0, 369000, 160, 0x34344c18
+0, 369900, 160, 0xc57d4c22
+0, 370800, 160, 0xb273560d
+0, 371700, 160, 0x7e985229
+0, 372600, 160, 0x2dd3542d
+0, 373500, 160, 0x39645000
+0, 374400, 160, 0x1b3f4d9e
+0, 375300, 160, 0x0bbf5ed2
+0, 376200, 160, 0xc81f5608
+0, 377100, 160, 0xe82e569e
+0, 378000, 160, 0x34df537d
+0, 378900, 160, 0x53175837
+0, 379800, 160, 0xbb76517f
+0, 380700, 160, 0xd5a25737
+0, 381600, 160, 0x58eb4f3d
+0, 382500, 160, 0x8f6e51d3
+0, 383400, 160, 0x1fd85602
+0, 384300, 160, 0xef2a4ee7
+0, 385200, 160, 0x0e6e58f4
+0, 386100, 160, 0x80345497
+0, 387000, 160, 0x710150a1
+0, 387900, 160, 0x32fb51db
+0, 388800, 160, 0x7efd564c
+0, 389700, 160, 0xf6604f26
+0, 390600, 160, 0xc0954d7e
+0, 391500, 160, 0x27705072
+0, 392400, 160, 0xd26f5958
+0, 393300, 160, 0x2c2552cd
+0, 394200, 160, 0xd14056b1
+0, 395100, 160, 0x11f356d2
+0, 396000, 160, 0x93b35efd
+0, 396900, 160, 0xa6d65ae7
+0, 397800, 160, 0x95015177
+0, 398700, 160, 0x2e6157e8
+0, 399600, 160, 0xb90c5021
+0, 400500, 160, 0xf39155c9
+0, 401400, 160, 0xd6ad544b
+0, 402300, 160, 0x4b8a5b98
+0, 403200, 160, 0x90a94f2d
+0, 404100, 160, 0x46a04f3f
+0, 405000, 160, 0x542b5cd1
+0, 405900, 160, 0xebaa5710
+0, 406800, 160, 0x504854a0
+0, 407700, 160, 0xbd9d53b5
+0, 408600, 160, 0x91524fed
+0, 409500, 160, 0x9b7a582d
+0, 410400, 160, 0xa4f258cf
+0, 411300, 160, 0x46274dda
+0, 412200, 160, 0xc0335ba9
+0, 413100, 160, 0xe59c5c74
+0, 414000, 160, 0xc2ee5ab0
+0, 414900, 160, 0x3e035996
+0, 415800, 160, 0x63e25521
+0, 416700, 160, 0xc09851af
+0, 417600, 160, 0xb8225715
+0, 418500, 160, 0x74355bfb
+0, 419400, 160, 0xf4c75adf
+0, 420300, 160, 0x2f8b56cd
+0, 421200, 160, 0xb4705795
+0, 422100, 160, 0xb4b25506
+0, 423000, 160, 0xaadb54f8
+0, 423900, 160, 0xe6d158aa
+0, 424800, 160, 0xed64614f
+0, 425700, 160, 0x80195732
+0, 426600, 160, 0xa8995f0e
+0, 427500, 160, 0xdc4a520d
+0, 428400, 160, 0x071a5bae
+0, 429300, 160, 0xce1b5ae9
+0, 430200, 160, 0x85e25804
+0, 431100, 160, 0x435e555f
+0, 432000, 160, 0xe4154ef4
+0, 432900, 160, 0xeff857b4
+0, 433800, 160, 0xc9e25868
+0, 434700, 160, 0x6e6961eb
+0, 435600, 160, 0x361e45e6
+0, 436500, 160, 0xf8a94988
+0, 437400, 160, 0x9de758b3
+0, 438300, 160, 0x2e65533e
+0, 439200, 160, 0x3f89422d
+0, 440100, 160, 0x77fd56a5
+0, 441000, 160, 0x91104845
+0, 441900, 160, 0x2eeb5491
+0, 442800, 160, 0x6a5348c4
+0, 443700, 160, 0xe0954882
+0, 444600, 160, 0x7e915761
+0, 445500, 160, 0x2cb5531f
+0, 446400, 160, 0xe1dc4ecd
+0, 447300, 160, 0xbf6b4e61
+0, 448200, 160, 0x3d6b5746
+0, 449100, 160, 0xe8bd5077
+0, 450000, 160, 0xd38d5921
+0, 450900, 160, 0xfc534e38
+0, 451800, 160, 0xd361475b
+0, 452700, 160, 0x4d5152c7
+0, 453600, 160, 0xb6684d11
+0, 454500, 160, 0xd2e25864
+0, 455400, 160, 0x02ec536a
+0, 456300, 160, 0x27ac550e
+0, 457200, 160, 0xe8d44e2d
+0, 458100, 160, 0x520152c8
+0, 459000, 160, 0xace747ea
+0, 459900, 160, 0x773a4ee3
+0, 460800, 160, 0x7dd1559f
+0, 461700, 160, 0x124453a8
+0, 462600, 160, 0x04154991
+0, 463500, 160, 0x3c794d98
+0, 464400, 160, 0x309f4e47
+0, 465300, 160, 0x98c74a48
+0, 466200, 160, 0xd0c34bcc
+0, 467100, 160, 0xfa304e19
+0, 468000, 160, 0x69505201
+0, 468900, 160, 0x2e714ac7
+0, 469800, 160, 0x076654a3
+0, 470700, 160, 0xc6674e27
+0, 471600, 160, 0x1adf4dd9
+0, 472500, 160, 0x4408507e
+0, 473400, 160, 0xd2654d94
+0, 474300, 160, 0x97a65cc0
+0, 475200, 160, 0xb53251f9
+0, 476100, 160, 0xd498584b
+0, 477000, 160, 0x46a058c8
+0, 477900, 160, 0xa2f85cbd
+0, 478800, 160, 0x43b856fb
+0, 479700, 160, 0xdeb957ba
+0, 480600, 160, 0x3064580a
+0, 481500, 160, 0xe86357a5
+0, 482400, 160, 0x9b974d00
+0, 483300, 160, 0x66ee4ff3
+0, 484200, 160, 0x0b9958f7
+0, 485100, 160, 0xc3754d0a
+0, 486000, 160, 0x42314c33
+0, 486900, 160, 0x4550555f
+0, 487800, 160, 0x0f064e4c
+0, 488700, 160, 0xe569596d
+0, 489600, 160, 0x056c4751
+0, 490500, 160, 0xdc1049fc
+0, 491400, 160, 0x63c54a1e
+0, 492300, 160, 0xb402518e
+0, 493200, 160, 0xaf0d4b19
+0, 494100, 160, 0xa22b4c5b
+0, 495000, 160, 0x28084bbf
+0, 495900, 160, 0x10495224
+0, 496800, 160, 0x4cb94993
+0, 497700, 160, 0x17c15457
+0, 498600, 160, 0xbd834d6d
+0, 499500, 160, 0x6ca25235
+0, 500400, 160, 0x84b74f89
+0, 501300, 160, 0xdeef4e76
+0, 502200, 160, 0x6ab05188
+0, 503100, 160, 0xa91c4646
+0, 504000, 160, 0xad574e7d
+0, 504900, 160, 0xba264d69
+0, 505800, 160, 0xd8734dd0
+0, 506700, 160, 0x69f25581
+0, 507600, 160, 0x3b8e4ae9
+0, 508500, 160, 0xb1124607
+0, 509400, 160, 0xd78e4e4f
+0, 510300, 160, 0x05a1504f
+0, 511200, 160, 0x3e705270
+0, 512100, 160, 0x1e144b3b
+0, 513000, 160, 0xbb0b5416
+0, 513900, 160, 0xc26f5b45
+0, 514800, 160, 0x14224ab9
+0, 515700, 160, 0x2bbd4837
+0, 516600, 160, 0xd2bf4e60
+0, 517500, 160, 0xbeec506c
+0, 518400, 160, 0x2cd34d3a
+0, 519300, 160, 0x85134fc6
+0, 520200, 160, 0xdb9a4ac2
+0, 521100, 160, 0x92715256
+0, 522000, 160, 0xff395098
+0, 522900, 160, 0xa5ec560c
+0, 523800, 160, 0xce95534b
+0, 524700, 160, 0xe36f46f1
+0, 525600, 160, 0x45f74a58
+0, 526500, 160, 0x02d05440
+0, 527400, 160, 0xa005529f
+0, 528300, 160, 0xae0f3f22
+0, 529200, 160, 0x3f984eb0
+0, 530100, 160, 0xc5bd5015
+0, 531000, 160, 0xf4504c53
+0, 531900, 160, 0x7f4044c5
+0, 532800, 160, 0x82dd4bab
+0, 533700, 160, 0x7a0d5122
+0, 534600, 160, 0xd0da5271
+0, 535500, 160, 0x67d14e3e
+0, 536400, 160, 0x54564f42
+0, 537300, 160, 0x77df4e0a
+0, 538200, 160, 0x0c4a4f70
+0, 539100, 160, 0xb2944f40
+0, 540000, 160, 0xe57a52de
+0, 540900, 160, 0x7d994ed1
+0, 541800, 160, 0x9dc35763
+0, 542700, 160, 0x8d0a4da9
+0, 543600, 160, 0x0c6449a4
+0, 544500, 160, 0xc73c503a
+0, 545400, 160, 0x52904cbe
+0, 546300, 160, 0x49824c2e
+0, 547200, 160, 0xb7e14e0b
+0, 548100, 160, 0x9745548e
+0, 549000, 160, 0xdafb4c20
+0, 549900, 160, 0x1aa84d67
+0, 550800, 160, 0x64bc5033
+0, 551700, 160, 0x9e2e5a05
+0, 552600, 160, 0x69144bc5
+0, 553500, 160, 0xce1253fa
+0, 554400, 160, 0x359f4c15
+0, 555300, 160, 0xdba74ed0
+0, 556200, 160, 0xea1453b8
+0, 557100, 160, 0xccdf49d3
+0, 558000, 160, 0xeb324750
+0, 558900, 160, 0x62b14ad4
+0, 559800, 160, 0x446e50c0
+0, 560700, 160, 0x111e5151
+0, 561600, 160, 0x6be84f3a
+0, 562500, 160, 0xf5cf4e42
+0, 563400, 160, 0xcc995459
+0, 564300, 160, 0x0faf5172
+0, 565200, 160, 0x31334f66
+0, 566100, 160, 0x20ba52c0
+0, 567000, 160, 0xc7cc4975
+0, 567900, 160, 0x9e7a51ba
+0, 568800, 160, 0x52884ff1
+0, 569700, 160, 0xc7a84cfd
+0, 570600, 160, 0x5ae64c22
+0, 571500, 160, 0x68125a92
+0, 572400, 160, 0x39ed54f1
+0, 573300, 160, 0xfa0a4ad1
+0, 574200, 160, 0xe8c8590c
+0, 575100, 160, 0x5f555576
+0, 576000, 160, 0xaf7a57a1
+0, 576900, 160, 0x858257e9
+0, 577800, 160, 0x1223523e
+0, 578700, 160, 0x446954a1
+0, 579600, 160, 0xfbe952d9
+0, 580500, 160, 0xd56259ff
+0, 581400, 160, 0xc4fa4f44
+0, 582300, 160, 0x77cc57f6
+0, 583200, 160, 0x53d3573d
+0, 584100, 160, 0x085e4ff9
+0, 585000, 160, 0x7a4e5410
+0, 585900, 160, 0xb4ad5794
+0, 586800, 160, 0x71255738
+0, 587700, 160, 0x36724918
+0, 588600, 160, 0x370e5974
+0, 589500, 160, 0xb709596c
+0, 590400, 160, 0x89b05052
+0, 591300, 160, 0x74e550ce
+0, 592200, 160, 0x6e2c5a49
+0, 593100, 160, 0x4dfa5b50
+0, 594000, 160, 0x80764c70
+0, 594900, 160, 0xc1d14fc6
+0, 595800, 160, 0x53e746b3
+0, 596700, 160, 0x728350c0
+0, 597600, 160, 0x9aa6500e
+0, 598500, 160, 0x60985454
+0, 599400, 160, 0xa0c54b6f
+0, 600300, 160, 0xe3b157ea
+0, 601200, 160, 0xce86573b
+0, 602100, 160, 0x9dad5535
+0, 603000, 160, 0xb3094af9
+0, 603900, 160, 0x2d1456ed
+0, 604800, 160, 0x328248b9
+0, 605700, 160, 0x4ffb4f52
+0, 606600, 160, 0x71fe53de
+0, 607500, 160, 0x0d114e92
+0, 608400, 160, 0x37065510
+0, 609300, 160, 0x426c4c07
+0, 610200, 160, 0x58e3528b
+0, 611100, 160, 0x71674484
+0, 612000, 160, 0x45934ee1
+0, 612900, 160, 0x4e914b31
+0, 613800, 160, 0x525b4ec2
+0, 614700, 160, 0x4393563d
+0, 615600, 160, 0xb10154e9
+0, 616500, 160, 0x23b15a4d
+0, 617400, 160, 0x6d995220
+0, 618300, 160, 0xcd2949fd
+0, 619200, 160, 0x67234f75
+0, 620100, 160, 0x00cc4cdb
+0, 621000, 160, 0x97c35574
+0, 621900, 160, 0xc0855753
+0, 622800, 160, 0xf4e650a5
+0, 623700, 160, 0x95b14bc2
+0, 624600, 160, 0x04d948dc
+0, 625500, 160, 0x284d4d02
+0, 626400, 160, 0xfb0d4cd9
+0, 627300, 160, 0x0e515126
+0, 628200, 160, 0xb4055a86
+0, 629100, 160, 0x0bbe4f68
+0, 630000, 160, 0xf1b848af
+0, 630900, 160, 0x7d154853
+0, 631800, 160, 0x78225418
+0, 632700, 160, 0xfb2f523e
+0, 633600, 160, 0xa6d34ea6
+0, 634500, 160, 0xe4264e30
+0, 635400, 160, 0x113750aa
+0, 636300, 160, 0x4073529b
+0, 637200, 160, 0xd1754dda
+0, 638100, 160, 0x1b495413
+0, 639000, 160, 0x29f94cd8
+0, 639900, 160, 0x49004a53
+0, 640800, 160, 0x1fec4de4
+0, 641700, 160, 0x7d6b4670
+0, 642600, 160, 0x626c4c9f
+0, 643500, 160, 0x79265234
+0, 644400, 160, 0xab765b86
+0, 645300, 160, 0xe9ae4d26
+0, 646200, 160, 0xeee1481f
+0, 647100, 160, 0x289d5287
+0, 648000, 160, 0xb5524e8b
+0, 648900, 160, 0x7e715764
+0, 649800, 160, 0xb1b25091
+0, 650700, 160, 0xf1a946f6
+0, 651600, 160, 0x57dc51bd
+0, 652500, 160, 0x4c0b4f14
+0, 653400, 160, 0xdc1f4930
+0, 654300, 160, 0x79d75057
+0, 655200, 160, 0x22bd52df
+0, 656100, 160, 0x963a5562
+0, 657000, 160, 0x7e475303
+0, 657900, 160, 0x2c065494
+0, 658800, 160, 0xb0514720
+0, 659700, 160, 0xbc734849
+0, 660600, 160, 0xf4924e4d
+0, 661500, 160, 0xe50f44c9
+0, 662400, 160, 0x978c4ce8
+0, 663300, 160, 0x302e51c2
+0, 664200, 160, 0x262b4a60
+0, 665100, 160, 0xf95f4e99
+0, 666000, 160, 0x7465504a
+0, 666900, 160, 0xab0e5108
+0, 667800, 160, 0xbec15395
+0, 668700, 160, 0x4f2c5139
+0, 669600, 160, 0x26444deb
+0, 670500, 160, 0xee4c4b15
+0, 671400, 160, 0x8bc350e1
+0, 672300, 160, 0xd0744a5a
+0, 673200, 160, 0xfee64d9d
+0, 674100, 160, 0x234c50b6
+0, 675000, 160, 0x8592482c
+0, 675900, 160, 0x5e8b5308
+0, 676800, 160, 0x4f9848c7
+0, 677700, 160, 0x939d4faa
+0, 678600, 160, 0x797654f1
+0, 679500, 160, 0x15d24d9b
+0, 680400, 160, 0xa6e54bd2
+0, 681300, 160, 0x755e4c90
+0, 682200, 160, 0xcd334bce
+0, 683100, 160, 0xfc1746e9
+0, 684000, 160, 0x81f04dd5
+0, 684900, 160, 0x44b35080
+0, 685800, 160, 0x91e65217
+0, 686700, 160, 0x492150af
+0, 687600, 160, 0xf73e58ec
+0, 688500, 160, 0xf988538a
+0, 689400, 160, 0x0dee4c10
+0, 690300, 160, 0x2c9f4c23
+0, 691200, 160, 0x8c1e4e08
+0, 692100, 160, 0x25bb5286
+0, 693000, 160, 0xd0ed469b
+0, 693900, 160, 0x71eb50e8
+0, 694800, 160, 0x249f4d26
+0, 695700, 160, 0x9662498f
+0, 696600, 160, 0x49ee55e2
+0, 697500, 160, 0x54d9491b
+0, 698400, 160, 0x4c675649
+0, 699300, 160, 0x0e4b4b34
+0, 700200, 160, 0x776f4995
+0, 701100, 160, 0x722656b2
+0, 702000, 160, 0x081d4b6f
+0, 702900, 160, 0xf70746fe
+0, 703800, 160, 0x08b151da
+0, 704700, 160, 0x6b255328
+0, 705600, 160, 0xeb2b586a
+0, 706500, 160, 0x812b4444
+0, 707400, 160, 0x1e16533f
+0, 708300, 160, 0xc1244760
+0, 709200, 160, 0x67584d87
+0, 710100, 160, 0xde8b5726
+0, 711000, 160, 0xe96d4e3e
+0, 711900, 160, 0x41174c98
+0, 712800, 160, 0x4cdd4cd8
+0, 713700, 160, 0xfb724b64
+0, 714600, 160, 0x78f154df
+0, 715500, 160, 0x97e1476d
+0, 716400, 160, 0x6f034e7f
+0, 717300, 160, 0x93b240df
+0, 718200, 160, 0xc4d040e6
+0, 719100, 160, 0xe47744a4
+0, 720000, 160, 0x87a950ff
+0, 720900, 160, 0x7079491b
+0, 721800, 160, 0x89f0491a
+0, 722700, 160, 0x70b8467e
+0, 723600, 160, 0x20945294
+0, 724500, 160, 0x2d5c4919
+0, 725400, 160, 0x1ed44c78
+0, 726300, 160, 0x93d74a5f
+0, 727200, 160, 0x300e490e
+0, 728100, 160, 0x8249558d
+0, 729000, 160, 0x630a4f57
+0, 729900, 160, 0xdd6e475f
+0, 730800, 160, 0xf50941e5
+0, 731700, 160, 0x1fe44bea
+0, 732600, 160, 0x03be5469
+0, 733500, 160, 0x7ece4f4c
+0, 734400, 160, 0x31f953dd
+0, 735300, 160, 0x22a44b7d
+0, 736200, 160, 0x1f5e5562
+0, 737100, 160, 0x771b5688
+0, 738000, 160, 0x7d1c4d45
+0, 738900, 160, 0x6bc45cd0
+0, 739800, 160, 0x8f714c36
+0, 740700, 160, 0xfb1f4c87
+0, 741600, 160, 0x1f8a4b36
+0, 742500, 160, 0xee5c451a
+0, 743400, 160, 0xd56950ac
+0, 744300, 160, 0x529057f6
+0, 745200, 160, 0x336641fd
+0, 746100, 160, 0xa0dd5a66
+0, 747000, 160, 0x5f4b5248
+0, 747900, 160, 0xb6ef49a3
+0, 748800, 160, 0x07705f19
+0, 749700, 160, 0x3fce4bbb
+0, 750600, 160, 0xda395511
+0, 751500, 160, 0x1ecf5145
+0, 752400, 160, 0x88a547ab
+0, 753300, 160, 0x6c6849be
+0, 754200, 160, 0x979c4e97
+0, 755100, 160, 0x171854b3
+0, 756000, 160, 0x9a715283
+0, 756900, 160, 0x064e50ac
+0, 757800, 160, 0xc2fb4e94
+0, 758700, 160, 0x708146f5
+0, 759600, 160, 0x1ca45198
+0, 760500, 160, 0x332d4869
+0, 761400, 160, 0xc2ff4656
+0, 762300, 160, 0x0747552e
+0, 763200, 160, 0x0c3d4ba8
+0, 764100, 160, 0x72934dab
+0, 765000, 160, 0xbb1e5860
+0, 765900, 160, 0x526d4cea
+0, 766800, 160, 0xa4c445d6
+0, 767700, 160, 0x70cd49ba
+0, 768600, 160, 0x008c53a7
+0, 769500, 160, 0xf7174bca
+0, 770400, 160, 0x0bab4936
+0, 771300, 160, 0x59e5564d
+0, 772200, 160, 0x33045087
+0, 773100, 160, 0xde7454f0
+0, 774000, 160, 0x31184cc3
+0, 774900, 160, 0x37984bb3
+0, 775800, 160, 0xf5e052d4
+0, 776700, 160, 0x23ca4b42
+0, 777600, 160, 0xbe2a572b
+0, 778500, 160, 0x9a91538d
+0, 779400, 160, 0x8a994c40
+0, 780300, 160, 0x5dea51ee
+0, 781200, 160, 0x1b53524c
+0, 782100, 160, 0xd9e75227
+0, 783000, 160, 0x58384c3b
+0, 783900, 160, 0x4a1b53b2
+0, 784800, 160, 0xc2a3458a
+0, 785700, 160, 0x7f68502d
+0, 786600, 160, 0x85475559
+0, 787500, 160, 0xd0d25472
+0, 788400, 160, 0x4c0d4bbf
+0, 789300, 160, 0xcad352df
+0, 790200, 160, 0x17904c97
+0, 791100, 160, 0x4e774b8e
+0, 792000, 160, 0x21905952
+0, 792900, 160, 0xc2d950cd
+0, 793800, 160, 0xfdea55e6
+0, 794700, 160, 0x22ca4e37
+0, 795600, 160, 0x1143562a
+0, 796500, 160, 0xe83c583e
+0, 797400, 160, 0xba544b27
+0, 798300, 160, 0x1e8c50e4
+0, 799200, 160, 0xf7ca4d2a
+0, 800100, 160, 0x67764579
+0, 801000, 160, 0x40d74f42
+0, 801900, 160, 0x88e35360
+0, 802800, 160, 0xda3f4f5b
+0, 803700, 160, 0x19c1522f
+0, 804600, 160, 0x93ce4f78
+0, 805500, 160, 0xf65447ba
+0, 806400, 160, 0xc0bc4e5a
+0, 807300, 160, 0x4915572b
+0, 808200, 160, 0x1651460b
+0, 809100, 160, 0xffe552a5
+0, 810000, 160, 0x5bd351ab
+0, 810900, 160, 0xbbd85034
+0, 811800, 160, 0xb9ff505f
+0, 812700, 160, 0xfc104eaf
+0, 813600, 160, 0xdaa74d6c
+0, 814500, 160, 0x34b04d78
+0, 815400, 160, 0x1e924f70
+0, 816300, 160, 0x0d46512d
+0, 817200, 160, 0x0d115950
+0, 818100, 160, 0x62de55a4
+0, 819000, 160, 0x58d652ab
+0, 819900, 160, 0x1776584e
+0, 820800, 160, 0x60175a2b
+0, 821700, 160, 0x4d714c82
+0, 822600, 160, 0xe13c4ce0
+0, 823500, 160, 0x7cd15464
+0, 824400, 160, 0x6c87571a
+0, 825300, 160, 0x1abe4f07
+0, 826200, 160, 0x039d5661
+0, 827100, 160, 0x0eba5909
+0, 828000, 160, 0xa46e51ec
+0, 828900, 160, 0x9be44eb7
+0, 829800, 160, 0xe0634aad
+0, 830700, 160, 0xcd53530b
+0, 831600, 160, 0x12cd482c
+0, 832500, 160, 0x71884634
+0, 833400, 160, 0xd5845743
+0, 834300, 160, 0xacd1502c
+0, 835200, 160, 0x04795031
+0, 836100, 160, 0xf0df54b9
+0, 837000, 160, 0x43aa5155
+0, 837900, 160, 0x316a4988
+0, 838800, 160, 0xfbc64f8a
+0, 839700, 160, 0xda084e8e
+0, 840600, 160, 0x3cc34ce2
+0, 841500, 160, 0xbfc055d8
+0, 842400, 160, 0x20ef4876
+0, 843300, 160, 0x035a5660
+0, 844200, 160, 0xbc7255be
+0, 845100, 160, 0xba514f44
+0, 846000, 160, 0x868c4c9c
+0, 846900, 160, 0x83494f04
+0, 847800, 160, 0xa452521a
+0, 848700, 160, 0x2ed04f65
+0, 849600, 160, 0x2e3e592d
+0, 850500, 160, 0x82bc4763
+0, 851400, 160, 0x339950db
+0, 852300, 160, 0x5bb64eff
+0, 853200, 160, 0x347c4d85
+0, 854100, 160, 0x25e949a3
+0, 855000, 160, 0xbdf649a8
+0, 855900, 160, 0x498650f3
+0, 856800, 160, 0x2a6f4e60
+0, 857700, 160, 0x661e5697
+0, 858600, 160, 0x5d6150ca
+0, 859500, 160, 0xe7c74b8f
+0, 860400, 160, 0x1ae148da
+0, 861300, 160, 0xaeef485d
+0, 862200, 160, 0x105650c6
+0, 863100, 160, 0xc1c45376
+0, 864000, 160, 0x83c55011
+0, 864900, 160, 0x77025597
+0, 865800, 160, 0x324250b7
+0, 866700, 160, 0x5cdc570f
+0, 867600, 160, 0x292e52a1
+0, 868500, 160, 0x8d7a5090
+0, 869400, 160, 0x32fc54e4
+0, 870300, 160, 0x50984e8b
+0, 871200, 160, 0x07f442a0
+0, 872100, 160, 0xc91c4fc3
+0, 873000, 160, 0x06cf53d7
+0, 873900, 160, 0xa66c5923
+0, 874800, 160, 0xc2015120
+0, 875700, 160, 0xedfa50c4
+0, 876600, 160, 0xe4c85fb5
+0, 877500, 160, 0xcd7b4c65
+0, 878400, 160, 0xb22353c1
+0, 879300, 160, 0x298c5996
+0, 880200, 160, 0xefce51db
+0, 881100, 160, 0x6df74ee3
+0, 882000, 160, 0x7c46496b
+0, 882900, 160, 0x910a48a4
+0, 883800, 160, 0xbf504b1e
+0, 884700, 160, 0x096947e8
+0, 885600, 160, 0x4a07629d
+0, 886500, 160, 0x577b43c1
+0, 887400, 160, 0x939e4d6d
+0, 888300, 160, 0x486e48ac
+0, 889200, 160, 0x50064871
+0, 890100, 160, 0x4a255534
+0, 891000, 160, 0xc80d4618
+0, 891900, 160, 0xf18a4780
+0, 892800, 160, 0x1c274dd4
+0, 893700, 160, 0x2f3e4f7c
+0, 894600, 160, 0x44b24cc2
+0, 895500, 160, 0x89b451f4
+0, 896400, 160, 0x06515b65
+0, 897300, 160, 0xc5b857ce
+0, 898200, 160, 0xa47b47a7
+0, 899100, 160, 0xfb375448
diff --git a/tests/ref/fate/g729-1 b/tests/ref/fate/g729-1
new file mode 100644
index 0000000000..6bf05c5efd
--- /dev/null
+++ b/tests/ref/fate/g729-1
@@ -0,0 +1,1000 @@
+0, 0, 160, 0xf7e550f0
+0, 900, 160, 0x42794ea8
+0, 1800, 160, 0xfe023e42
+0, 2700, 160, 0xc1ae40e3
+0, 3600, 160, 0xee6d4bf1
+0, 4500, 160, 0x107451d7
+0, 5400, 160, 0x40cb4ba4
+0, 6300, 160, 0x90504e5e
+0, 7200, 160, 0xf6f3531d
+0, 8100, 160, 0x48664ea0
+0, 9000, 160, 0xa30458e1
+0, 9900, 160, 0x00b74aa2
+0, 10800, 160, 0x95234e49
+0, 11700, 160, 0x9cf24a94
+0, 12600, 160, 0x4f2952f4
+0, 13500, 160, 0x658353db
+0, 14400, 160, 0x98ef4d79
+0, 15300, 160, 0x765d5472
+0, 16200, 160, 0xc6e25262
+0, 17100, 160, 0x33334993
+0, 18000, 160, 0xfa104dc5
+0, 18900, 160, 0x03ee5530
+0, 19800, 160, 0x52c54e0e
+0, 20700, 160, 0xbd744638
+0, 21600, 160, 0x7775519f
+0, 22500, 160, 0xd22f499e
+0, 23400, 160, 0x26af4eec
+0, 24300, 160, 0x37474ed9
+0, 25200, 160, 0x6b19548d
+0, 26100, 160, 0x4a3449b7
+0, 27000, 160, 0x2bed5231
+0, 27900, 160, 0x556d5349
+0, 28800, 160, 0xbb6c5227
+0, 29700, 160, 0xea354b4d
+0, 30600, 160, 0xf35f4b7d
+0, 31500, 160, 0x9dcb4e9d
+0, 32400, 160, 0xc81f5ac2
+0, 33300, 160, 0xfa054cfd
+0, 34200, 160, 0x0c554e62
+0, 35100, 160, 0x7ffa5250
+0, 36000, 160, 0x7e5148ec
+0, 36900, 160, 0x95bc4d69
+0, 37800, 160, 0xf34a5644
+0, 38700, 160, 0xcaa3493d
+0, 39600, 160, 0xa44745dc
+0, 40500, 160, 0x320355c0
+0, 41400, 160, 0xbd1e5670
+0, 42300, 160, 0xfe3250cd
+0, 43200, 160, 0xce7a574c
+0, 44100, 160, 0x09b04f6e
+0, 45000, 160, 0x035759c8
+0, 45900, 160, 0x713458c7
+0, 46800, 160, 0x9a75494b
+0, 47700, 160, 0x99114fef
+0, 48600, 160, 0x129251f0
+0, 49500, 160, 0x4eb845f2
+0, 50400, 160, 0x5d064da5
+0, 51300, 160, 0x5a8e4a34
+0, 52200, 160, 0x5b784608
+0, 53100, 160, 0x1ca7546a
+0, 54000, 160, 0x327e5cbf
+0, 54900, 160, 0xd7ae4bc3
+0, 55800, 160, 0xba3f55b4
+0, 56700, 160, 0x09fe4ca7
+0, 57600, 160, 0x347248ba
+0, 58500, 160, 0xf0bf52ff
+0, 59400, 160, 0x3500507e
+0, 60300, 160, 0x30e65135
+0, 61200, 160, 0x390a5201
+0, 62100, 160, 0xf0dc5bca
+0, 63000, 160, 0x69b94f64
+0, 63900, 160, 0x6ac04cf6
+0, 64800, 160, 0xbc014cf4
+0, 65700, 160, 0x4b564eca
+0, 66600, 160, 0x33e44e85
+0, 67500, 160, 0xe39e5343
+0, 68400, 160, 0xebf64c80
+0, 69300, 160, 0x5a92562b
+0, 70200, 160, 0xe0075c88
+0, 71100, 160, 0x59bd55e8
+0, 72000, 160, 0xe6ca4ef2
+0, 72900, 160, 0xea9a4df2
+0, 73800, 160, 0xf53c4bf6
+0, 74700, 160, 0x977a4f32
+0, 75600, 160, 0xe5894eb2
+0, 76500, 160, 0x956c4c28
+0, 77400, 160, 0xdff74c3d
+0, 78300, 160, 0xace74db7
+0, 79200, 160, 0x00e74ef5
+0, 80100, 160, 0x6633560a
+0, 81000, 160, 0xd63647c5
+0, 81900, 160, 0xff144eef
+0, 82800, 160, 0xc5fe4d51
+0, 83700, 160, 0x5c244c7c
+0, 84600, 160, 0x95be50f1
+0, 85500, 160, 0x74d84b77
+0, 86400, 160, 0x1e965711
+0, 87300, 160, 0x7ae45ad7
+0, 88200, 160, 0xf9cd5920
+0, 89100, 160, 0xf0064ea9
+0, 90000, 160, 0xec645244
+0, 90900, 160, 0x8330539a
+0, 91800, 160, 0x4a5d5023
+0, 92700, 160, 0x706153d7
+0, 93600, 160, 0xd6e0520f
+0, 94500, 160, 0x0bd9586f
+0, 95400, 160, 0xc1554dec
+0, 96300, 160, 0x89be4bde
+0, 97200, 160, 0x0c2a49c0
+0, 98100, 160, 0xc18d498a
+0, 99000, 160, 0xc36147e1
+0, 99900, 160, 0x99de4d4b
+0, 100800, 160, 0x2b9d542b
+0, 101700, 160, 0x062b52c9
+0, 102600, 160, 0x9dcf542e
+0, 103500, 160, 0x641f58b9
+0, 104400, 160, 0x114c51ff
+0, 105300, 160, 0x78e04b0e
+0, 106200, 160, 0xfec74535
+0, 107100, 160, 0x71d54cd3
+0, 108000, 160, 0xee9e5289
+0, 108900, 160, 0x142354d9
+0, 109800, 160, 0x051e4ddc
+0, 110700, 160, 0x358146b8
+0, 111600, 160, 0x4dec58eb
+0, 112500, 160, 0xd0944f04
+0, 113400, 160, 0xdc025a99
+0, 114300, 160, 0x6b355402
+0, 115200, 160, 0x1c0b5a6d
+0, 116100, 160, 0xa3b34bc8
+0, 117000, 160, 0x92604eb7
+0, 117900, 160, 0x6f2f5465
+0, 118800, 160, 0xcb565361
+0, 119700, 160, 0x8bfb50a3
+0, 120600, 160, 0xf9114e99
+0, 121500, 160, 0x11065580
+0, 122400, 160, 0x903550c8
+0, 123300, 160, 0xe7aa3da8
+0, 124200, 160, 0x13f34e01
+0, 125100, 160, 0x4c3b4c0a
+0, 126000, 160, 0x08e64c60
+0, 126900, 160, 0xffcd6176
+0, 127800, 160, 0x09684f13
+0, 128700, 160, 0xd8a646b5
+0, 129600, 160, 0xc07355f0
+0, 130500, 160, 0xe836515b
+0, 131400, 160, 0x935741a5
+0, 132300, 160, 0x68f85160
+0, 133200, 160, 0x669a4ed0
+0, 134100, 160, 0xce9f4883
+0, 135000, 160, 0xd94c42de
+0, 135900, 160, 0xf1874b54
+0, 136800, 160, 0x42da46ce
+0, 137700, 160, 0xe99a4da5
+0, 138600, 160, 0x94934f16
+0, 139500, 160, 0x8571437f
+0, 140400, 160, 0xe4774dc2
+0, 141300, 160, 0x743f4f89
+0, 142200, 160, 0x3b3e50ba
+0, 143100, 160, 0x439355e9
+0, 144000, 160, 0x3e4d5178
+0, 144900, 160, 0x64595524
+0, 145800, 160, 0x42d14702
+0, 146700, 160, 0x051e4b1d
+0, 147600, 160, 0x5db84cee
+0, 148500, 160, 0x4d875136
+0, 149400, 160, 0x33b75996
+0, 150300, 160, 0xd5094d76
+0, 151200, 160, 0x6a7052b7
+0, 152100, 160, 0x77264c8f
+0, 153000, 160, 0xcf7e4ccf
+0, 153900, 160, 0x5f7c568b
+0, 154800, 160, 0x8886578b
+0, 155700, 160, 0xd33a4e52
+0, 156600, 160, 0xeefe5c23
+0, 157500, 160, 0xa9c94e38
+0, 158400, 160, 0x67845aa0
+0, 159300, 160, 0xbe91498f
+0, 160200, 160, 0x843d46e3
+0, 161100, 160, 0xbd215999
+0, 162000, 160, 0x1a2e5f2c
+0, 162900, 160, 0x6a344a63
+0, 163800, 160, 0xd80d5743
+0, 164700, 160, 0x80964879
+0, 165600, 160, 0xaafb5e35
+0, 166500, 160, 0x3b855ff3
+0, 167400, 160, 0x770b51d0
+0, 168300, 160, 0x623a5312
+0, 169200, 160, 0x0c235b56
+0, 170100, 160, 0xc8c25724
+0, 171000, 160, 0xb44650e2
+0, 171900, 160, 0xab964d47
+0, 172800, 160, 0x7aa35107
+0, 173700, 160, 0xf12d4780
+0, 174600, 160, 0x77e64f92
+0, 175500, 160, 0x34ee4fa0
+0, 176400, 160, 0x6701466b
+0, 177300, 160, 0xa79d4b4c
+0, 178200, 160, 0xbb7f557b
+0, 179100, 160, 0xaeb253c4
+0, 180000, 160, 0xe7255029
+0, 180900, 160, 0xa5f1505c
+0, 181800, 160, 0x4ae54f09
+0, 182700, 160, 0x6a2b4bc9
+0, 183600, 160, 0xf8724ea5
+0, 184500, 160, 0x4ab35317
+0, 185400, 160, 0xc8d350fb
+0, 186300, 160, 0x73a74994
+0, 187200, 160, 0x9cd1596d
+0, 188100, 160, 0x5ba16005
+0, 189000, 160, 0xb17e4fcc
+0, 189900, 160, 0x8ac958cd
+0, 190800, 160, 0x7919557f
+0, 191700, 160, 0x0be35121
+0, 192600, 160, 0xf8f752f2
+0, 193500, 160, 0xae894d40
+0, 194400, 160, 0x03d94c10
+0, 195300, 160, 0xf12c4917
+0, 196200, 160, 0x3c94534e
+0, 197100, 160, 0x111d51c3
+0, 198000, 160, 0x0a285304
+0, 198900, 160, 0xc3ac4ab1
+0, 199800, 160, 0x5576579d
+0, 200700, 160, 0x9cd04f10
+0, 201600, 160, 0x38a04bf9
+0, 202500, 160, 0xbd0d4d6d
+0, 203400, 160, 0x4db24510
+0, 204300, 160, 0x968753de
+0, 205200, 160, 0x1fa35c67
+0, 206100, 160, 0xc9c048bc
+0, 207000, 160, 0x221d629e
+0, 207900, 160, 0xbb864b0e
+0, 208800, 160, 0xe2964bcd
+0, 209700, 160, 0x20ff4b23
+0, 210600, 160, 0x01dc53e7
+0, 211500, 160, 0x522b56aa
+0, 212400, 160, 0x1e6a495a
+0, 213300, 160, 0x0dcf5731
+0, 214200, 160, 0x241f448d
+0, 215100, 160, 0xdafa55b6
+0, 216000, 160, 0x40584e43
+0, 216900, 160, 0xb73850ab
+0, 217800, 160, 0x7cff593a
+0, 218700, 160, 0x2796515a
+0, 219600, 160, 0x872c5454
+0, 220500, 160, 0xa13058e7
+0, 221400, 160, 0xd8a65261
+0, 222300, 160, 0x48a75601
+0, 223200, 160, 0xb1e7584c
+0, 224100, 160, 0x29cd53fa
+0, 225000, 160, 0xba514d84
+0, 225900, 160, 0x747f4f99
+0, 226800, 160, 0x5819526e
+0, 227700, 160, 0x10185413
+0, 228600, 160, 0x4d084cdc
+0, 229500, 160, 0x8313530b
+0, 230400, 160, 0xd26c5583
+0, 231300, 160, 0x76d749f9
+0, 232200, 160, 0x7cf847a5
+0, 233100, 160, 0xa642590c
+0, 234000, 160, 0x7fef56f2
+0, 234900, 160, 0xf6ea49b9
+0, 235800, 160, 0x6c654e89
+0, 236700, 160, 0x164f56e9
+0, 237600, 160, 0x84cf6139
+0, 238500, 160, 0x20c753ef
+0, 239400, 160, 0x3f3a485f
+0, 240300, 160, 0xee0c5f4b
+0, 241200, 160, 0x706b5313
+0, 242100, 160, 0x47da5af3
+0, 243000, 160, 0x05504b25
+0, 243900, 160, 0x584e59d8
+0, 244800, 160, 0xe9cc4e37
+0, 245700, 160, 0xf33b518a
+0, 246600, 160, 0xb9ac58b7
+0, 247500, 160, 0xed5c57f0
+0, 248400, 160, 0x4cf1579d
+0, 249300, 160, 0x96f94792
+0, 250200, 160, 0x7c455836
+0, 251100, 160, 0xad6652ce
+0, 252000, 160, 0x1ba95cab
+0, 252900, 160, 0xd86755bb
+0, 253800, 160, 0x2f9e51b4
+0, 254700, 160, 0x084e5119
+0, 255600, 160, 0x54ad5449
+0, 256500, 160, 0xff7c5b86
+0, 257400, 160, 0x29a94fff
+0, 258300, 160, 0x679c55ff
+0, 259200, 160, 0x9a415b81
+0, 260100, 160, 0x3ea5528a
+0, 261000, 160, 0x54e15d3f
+0, 261900, 160, 0x122b5c28
+0, 262800, 160, 0xdc0f4e7f
+0, 263700, 160, 0xdc304acd
+0, 264600, 160, 0xe55e5407
+0, 265500, 160, 0x8d07485f
+0, 266400, 160, 0xdc0b5333
+0, 267300, 160, 0xfaed4a90
+0, 268200, 160, 0xb0625538
+0, 269100, 160, 0x1ef3526b
+0, 270000, 160, 0xb48c48e9
+0, 270900, 160, 0x8c945190
+0, 271800, 160, 0x7f9a58b3
+0, 272700, 160, 0x55735499
+0, 273600, 160, 0xeba34a71
+0, 274500, 160, 0xbaa94a6d
+0, 275400, 160, 0x15ab484f
+0, 276300, 160, 0xdc675509
+0, 277200, 160, 0xc2e94f0e
+0, 278100, 160, 0xd7f348ac
+0, 279000, 160, 0x14884e8f
+0, 279900, 160, 0x2d274a97
+0, 280800, 160, 0x578c5834
+0, 281700, 160, 0x12074dab
+0, 282600, 160, 0x74c55067
+0, 283500, 160, 0x7c904e0f
+0, 284400, 160, 0x81d45735
+0, 285300, 160, 0x766f4d71
+0, 286200, 160, 0x9c915273
+0, 287100, 160, 0xf37f4d04
+0, 288000, 160, 0x1ac74d66
+0, 288900, 160, 0xf9b253ab
+0, 289800, 160, 0x6e0c5bb2
+0, 290700, 160, 0x603d629e
+0, 291600, 160, 0xbb674faf
+0, 292500, 160, 0x5d8d51c6
+0, 293400, 160, 0xae7350b9
+0, 294300, 160, 0xfde859ec
+0, 295200, 160, 0x900d50a4
+0, 296100, 160, 0x003551b2
+0, 297000, 160, 0xf8ae4c9d
+0, 297900, 160, 0x66ea508f
+0, 298800, 160, 0xd45b4c51
+0, 299700, 160, 0xb64451a3
+0, 300600, 160, 0x6d2a5621
+0, 301500, 160, 0x71db4d36
+0, 302400, 160, 0x06704647
+0, 303300, 160, 0x1f124cf9
+0, 304200, 160, 0x10d14b46
+0, 305100, 160, 0x421b59d8
+0, 306000, 160, 0x84ba4cae
+0, 306900, 160, 0x4fba48e1
+0, 307800, 160, 0xec294a6b
+0, 308700, 160, 0x2f1752a7
+0, 309600, 160, 0x8d665570
+0, 310500, 160, 0x586e537d
+0, 311400, 160, 0x18d54a49
+0, 312300, 160, 0xa895566d
+0, 313200, 160, 0xb9b35255
+0, 314100, 160, 0x2e194e1f
+0, 315000, 160, 0x4810594b
+0, 315900, 160, 0xb82557ee
+0, 316800, 160, 0x35d84d67
+0, 317700, 160, 0x5ee95128
+0, 318600, 160, 0x24f05747
+0, 319500, 160, 0x434d53f6
+0, 320400, 160, 0x3c894f3e
+0, 321300, 160, 0x81c34896
+0, 322200, 160, 0x7540543c
+0, 323100, 160, 0x35bc5504
+0, 324000, 160, 0x546943dc
+0, 324900, 160, 0x084d46e9
+0, 325800, 160, 0x983852ba
+0, 326700, 160, 0xefac4e15
+0, 327600, 160, 0xc9294430
+0, 328500, 160, 0xe9e74de1
+0, 329400, 160, 0x4ca1516a
+0, 330300, 160, 0x44014ceb
+0, 331200, 160, 0x1dbc5ad1
+0, 332100, 160, 0x98be4efd
+0, 333000, 160, 0x2dc75c7a
+0, 333900, 160, 0x46275852
+0, 334800, 160, 0x61c15d30
+0, 335700, 160, 0x1f605adc
+0, 336600, 160, 0xf08659ac
+0, 337500, 160, 0xb7656021
+0, 338400, 160, 0x1f4a5a72
+0, 339300, 160, 0xf8175275
+0, 340200, 160, 0xbbf4564d
+0, 341100, 160, 0x6fdc5a7d
+0, 342000, 160, 0x082f5250
+0, 342900, 160, 0x84cb55b5
+0, 343800, 160, 0x0e1a51ba
+0, 344700, 160, 0xa84e52fc
+0, 345600, 160, 0xcb5a55c9
+0, 346500, 160, 0x9ce6570d
+0, 347400, 160, 0x82b253cc
+0, 348300, 160, 0x34c4594b
+0, 349200, 160, 0xff5c5854
+0, 350100, 160, 0xd5da4ea0
+0, 351000, 160, 0xc86e5553
+0, 351900, 160, 0x7ecb55c6
+0, 352800, 160, 0xb08b5338
+0, 353700, 160, 0xd601573c
+0, 354600, 160, 0x93305092
+0, 355500, 160, 0x352d4912
+0, 356400, 160, 0xddba4d29
+0, 357300, 160, 0xc79c50b7
+0, 358200, 160, 0xe67d4e8e
+0, 359100, 160, 0xdbfd4bbc
+0, 360000, 160, 0xb2f746fb
+0, 360900, 160, 0x835b5539
+0, 361800, 160, 0x612049e9
+0, 362700, 160, 0x91a6503c
+0, 363600, 160, 0x762e4f0e
+0, 364500, 160, 0x2b2153f9
+0, 365400, 160, 0xdcfe5804
+0, 366300, 160, 0x79144cae
+0, 367200, 160, 0xd6394d99
+0, 368100, 160, 0x22395292
+0, 369000, 160, 0x50b04fa0
+0, 369900, 160, 0x846b49a5
+0, 370800, 160, 0x1f554dff
+0, 371700, 160, 0x0aa458dd
+0, 372600, 160, 0x62154dde
+0, 373500, 160, 0xe69847ac
+0, 374400, 160, 0x75855425
+0, 375300, 160, 0x49125665
+0, 376200, 160, 0xa8605945
+0, 377100, 160, 0xc02a5083
+0, 378000, 160, 0x6198537c
+0, 378900, 160, 0x90f25711
+0, 379800, 160, 0x32da51f1
+0, 380700, 160, 0x96c3474d
+0, 381600, 160, 0x82ae4579
+0, 382500, 160, 0xbabf5919
+0, 383400, 160, 0x78095772
+0, 384300, 160, 0x46964abb
+0, 385200, 160, 0x5fcb5ba3
+0, 386100, 160, 0x4a775585
+0, 387000, 160, 0xc41f53af
+0, 387900, 160, 0x457251bc
+0, 388800, 160, 0x8f864fb3
+0, 389700, 160, 0x439d526c
+0, 390600, 160, 0x5cf6503f
+0, 391500, 160, 0x90b7534f
+0, 392400, 160, 0xecc45253
+0, 393300, 160, 0x533b4ee3
+0, 394200, 160, 0x4cc44f27
+0, 395100, 160, 0x6ff35096
+0, 396000, 160, 0x141e4a80
+0, 396900, 160, 0x9e075461
+0, 397800, 160, 0xc4b55791
+0, 398700, 160, 0x40955666
+0, 399600, 160, 0x6255462f
+0, 400500, 160, 0x2cec55d6
+0, 401400, 160, 0xd71652e9
+0, 402300, 160, 0xe65e530c
+0, 403200, 160, 0xeeb9556d
+0, 404100, 160, 0x558f523e
+0, 405000, 160, 0x76e14b00
+0, 405900, 160, 0x3f9f4e9b
+0, 406800, 160, 0x0d7b492a
+0, 407700, 160, 0xdd6e51bd
+0, 408600, 160, 0x5ab353b9
+0, 409500, 160, 0x5b934f33
+0, 410400, 160, 0x36bb57a0
+0, 411300, 160, 0x455d54d3
+0, 412200, 160, 0x7e6853d7
+0, 413100, 160, 0xdcb85ed4
+0, 414000, 160, 0x3a8d5860
+0, 414900, 160, 0x5c90558f
+0, 415800, 160, 0x25504d46
+0, 416700, 160, 0x0fc55413
+0, 417600, 160, 0x98545409
+0, 418500, 160, 0x963b550e
+0, 419400, 160, 0x544a569c
+0, 420300, 160, 0x7ab65f77
+0, 421200, 160, 0x14c257e2
+0, 422100, 160, 0x6cac6262
+0, 423000, 160, 0x2f7f5091
+0, 423900, 160, 0xc2655462
+0, 424800, 160, 0xbb4b4744
+0, 425700, 160, 0x4c5f54db
+0, 426600, 160, 0x9e694ab5
+0, 427500, 160, 0xc2c95173
+0, 428400, 160, 0xf4ae553f
+0, 429300, 160, 0xb4c04ed1
+0, 430200, 160, 0xf3095128
+0, 431100, 160, 0x73b04de1
+0, 432000, 160, 0xff4951c7
+0, 432900, 160, 0x28c156bd
+0, 433800, 160, 0x17b652aa
+0, 434700, 160, 0xb9ce528b
+0, 435600, 160, 0x3cc558be
+0, 436500, 160, 0xdf385905
+0, 437400, 160, 0xe2de4fe2
+0, 438300, 160, 0xc2a6582d
+0, 439200, 160, 0xe5715bc9
+0, 440100, 160, 0x741b6416
+0, 441000, 160, 0xf9b1544f
+0, 441900, 160, 0x012e5f01
+0, 442800, 160, 0x5ab65a49
+0, 443700, 160, 0xfe1e5b1a
+0, 444600, 160, 0x370056ef
+0, 445500, 160, 0xfde45ed4
+0, 446400, 160, 0xa34f6053
+0, 447300, 160, 0x31755604
+0, 448200, 160, 0xc3415bfe
+0, 449100, 160, 0xe5dd5b58
+0, 450000, 160, 0xb6cf5295
+0, 450900, 160, 0x3d81538b
+0, 451800, 160, 0xc00255d2
+0, 452700, 160, 0xb0714f71
+0, 453600, 160, 0x9c9756ac
+0, 454500, 160, 0x4de053a0
+0, 455400, 160, 0x6706500c
+0, 456300, 160, 0x34e4511d
+0, 457200, 160, 0xe4224e3e
+0, 458100, 160, 0xdf695529
+0, 459000, 160, 0xeb1f54e0
+0, 459900, 160, 0x2870550e
+0, 460800, 160, 0x08465464
+0, 461700, 160, 0xe34150e6
+0, 462600, 160, 0xb77556e0
+0, 463500, 160, 0xb23e46ab
+0, 464400, 160, 0x83884a7b
+0, 465300, 160, 0xa0284b16
+0, 466200, 160, 0x87b749e1
+0, 467100, 160, 0x4b276444
+0, 468000, 160, 0x92f95091
+0, 468900, 160, 0x2b1056c2
+0, 469800, 160, 0xd5d5590a
+0, 470700, 160, 0x5a454fac
+0, 471600, 160, 0x0ab05b13
+0, 472500, 160, 0xd98e56ca
+0, 473400, 160, 0x183d5892
+0, 474300, 160, 0x8ba951e4
+0, 475200, 160, 0x487054ff
+0, 476100, 160, 0xc0d05562
+0, 477000, 160, 0x166c590f
+0, 477900, 160, 0x3e254cc0
+0, 478800, 160, 0xd2784ab4
+0, 479700, 160, 0x9f7b4ef6
+0, 480600, 160, 0xdd7653b6
+0, 481500, 160, 0x7ae453b7
+0, 482400, 160, 0xff6c50ec
+0, 483300, 160, 0xfa0d51a9
+0, 484200, 160, 0x29ab583b
+0, 485100, 160, 0x671d5437
+0, 486000, 160, 0x6867569f
+0, 486900, 160, 0xdd775e05
+0, 487800, 160, 0xbafa65ed
+0, 488700, 160, 0xd33f5aea
+0, 489600, 160, 0x851455a8
+0, 490500, 160, 0x044c4d45
+0, 491400, 160, 0xcd7c5d84
+0, 492300, 160, 0xd6565e61
+0, 493200, 160, 0x2f345a92
+0, 494100, 160, 0x50e05530
+0, 495000, 160, 0x787f516a
+0, 495900, 160, 0x75cd5ade
+0, 496800, 160, 0x55b558ad
+0, 497700, 160, 0x55255b01
+0, 498600, 160, 0xfc5b5945
+0, 499500, 160, 0x33914e05
+0, 500400, 160, 0x1f4a5c31
+0, 501300, 160, 0x542f4bf2
+0, 502200, 160, 0xd8b2573f
+0, 503100, 160, 0x127758b0
+0, 504000, 160, 0x18dd5a30
+0, 504900, 160, 0xe8ce61c4
+0, 505800, 160, 0x9a225b47
+0, 506700, 160, 0xd4436314
+0, 507600, 160, 0x2bf06310
+0, 508500, 160, 0x0de35e82
+0, 509400, 160, 0x76cb56f2
+0, 510300, 160, 0x65bc569b
+0, 511200, 160, 0x00a45461
+0, 512100, 160, 0xb5c55019
+0, 513000, 160, 0x5eb04b4d
+0, 513900, 160, 0xf1224c39
+0, 514800, 160, 0x4d135288
+0, 515700, 160, 0x9bc34ba7
+0, 516600, 160, 0xbde3510e
+0, 517500, 160, 0xefaf4fa4
+0, 518400, 160, 0x584950e2
+0, 519300, 160, 0x1e844e27
+0, 520200, 160, 0x38634315
+0, 521100, 160, 0x6b9b4a0b
+0, 522000, 160, 0xd491512a
+0, 522900, 160, 0x8624478c
+0, 523800, 160, 0x67ab45c7
+0, 524700, 160, 0xf78e4c53
+0, 525600, 160, 0xb1654f0d
+0, 526500, 160, 0x17bb4e96
+0, 527400, 160, 0xf3165e7c
+0, 528300, 160, 0xf7914633
+0, 529200, 160, 0x3421530f
+0, 530100, 160, 0x492e572c
+0, 531000, 160, 0xa3185319
+0, 531900, 160, 0x92d054c0
+0, 532800, 160, 0x1cc24ce1
+0, 533700, 160, 0x2ebc519e
+0, 534600, 160, 0x946b53e7
+0, 535500, 160, 0xf85c4fe6
+0, 536400, 160, 0x2974534c
+0, 537300, 160, 0xef7e4a28
+0, 538200, 160, 0x01a74c6e
+0, 539100, 160, 0x2a865674
+0, 540000, 160, 0x70474faf
+0, 540900, 160, 0x2df75014
+0, 541800, 160, 0xf1f3574e
+0, 542700, 160, 0x741b5308
+0, 543600, 160, 0xcb34513e
+0, 544500, 160, 0x7b5e50c7
+0, 545400, 160, 0x0165553b
+0, 546300, 160, 0x04b85450
+0, 547200, 160, 0x795d5873
+0, 548100, 160, 0x508859fb
+0, 549000, 160, 0xca09587d
+0, 549900, 160, 0x86a65ac8
+0, 550800, 160, 0x447353fe
+0, 551700, 160, 0x48ca54a5
+0, 552600, 160, 0x1b3e5f3e
+0, 553500, 160, 0x270a5aa2
+0, 554400, 160, 0x48a45c29
+0, 555300, 160, 0xfbf75a0b
+0, 556200, 160, 0xe65161e5
+0, 557100, 160, 0xf47c6701
+0, 558000, 160, 0xc12058bc
+0, 558900, 160, 0xdb17520c
+0, 559800, 160, 0x860455bd
+0, 560700, 160, 0xa02d56de
+0, 561600, 160, 0xf5574c7d
+0, 562500, 160, 0x500e59b3
+0, 563400, 160, 0xf0b75894
+0, 564300, 160, 0x9d454a04
+0, 565200, 160, 0x0b0554a4
+0, 566100, 160, 0x3fc34d98
+0, 567000, 160, 0x538550b8
+0, 567900, 160, 0xd84e495e
+0, 568800, 160, 0x736c4e17
+0, 569700, 160, 0xa59e5607
+0, 570600, 160, 0xe7485609
+0, 571500, 160, 0x20185a67
+0, 572400, 160, 0x9aa5576f
+0, 573300, 160, 0xed8c5d11
+0, 574200, 160, 0xecef5494
+0, 575100, 160, 0x76f75a5c
+0, 576000, 160, 0xa8fa5322
+0, 576900, 160, 0xd1945734
+0, 577800, 160, 0x817f5c82
+0, 578700, 160, 0x40756063
+0, 579600, 160, 0x524454c7
+0, 580500, 160, 0x5a776106
+0, 581400, 160, 0xd16e5d9d
+0, 582300, 160, 0x8522524c
+0, 583200, 160, 0x4a115bb9
+0, 584100, 160, 0xbf5c5c27
+0, 585000, 160, 0x48905da4
+0, 585900, 160, 0x58735040
+0, 586800, 160, 0x48635631
+0, 587700, 160, 0xf1305eaf
+0, 588600, 160, 0xd34451bd
+0, 589500, 160, 0x1a244fcf
+0, 590400, 160, 0xdb995ca0
+0, 591300, 160, 0xe38e52bb
+0, 592200, 160, 0x00715069
+0, 593100, 160, 0x72a95190
+0, 594000, 160, 0xea7d50b7
+0, 594900, 160, 0xb4094a9c
+0, 595800, 160, 0xd5284d79
+0, 596700, 160, 0x3c4349e5
+0, 597600, 160, 0x65d34e92
+0, 598500, 160, 0x67805756
+0, 599400, 160, 0x1b96502f
+0, 600300, 160, 0x395250ae
+0, 601200, 160, 0x4dc74976
+0, 602100, 160, 0x2666486e
+0, 603000, 160, 0x41924d01
+0, 603900, 160, 0x94a845f5
+0, 604800, 160, 0x1b264cf9
+0, 605700, 160, 0x63ea4aab
+0, 606600, 160, 0x9c0d4a82
+0, 607500, 160, 0x02ba4cf6
+0, 608400, 160, 0x9cd54b87
+0, 609300, 160, 0x24624c5b
+0, 610200, 160, 0x14cf54b1
+0, 611100, 160, 0xce54544b
+0, 612000, 160, 0x459b4fc9
+0, 612900, 160, 0xcc2453f1
+0, 613800, 160, 0xa4ab53bc
+0, 614700, 160, 0x92235013
+0, 615600, 160, 0xbfa257b3
+0, 616500, 160, 0xd32d51f5
+0, 617400, 160, 0x7d5d47e6
+0, 618300, 160, 0xe23d43ed
+0, 619200, 160, 0x51d8514f
+0, 620100, 160, 0x0fa04240
+0, 621000, 160, 0x233c4dce
+0, 621900, 160, 0xcd30466f
+0, 622800, 160, 0x4435546a
+0, 623700, 160, 0x3eb6445b
+0, 624600, 160, 0xcaed4ef9
+0, 625500, 160, 0xf0174da8
+0, 626400, 160, 0x60e756a0
+0, 627300, 160, 0x72ba457d
+0, 628200, 160, 0x84ce4f0f
+0, 629100, 160, 0x660d45ae
+0, 630000, 160, 0xac8446e2
+0, 630900, 160, 0xeeb153b4
+0, 631800, 160, 0x6a634c23
+0, 632700, 160, 0x890f4af8
+0, 633600, 160, 0x1d3743a7
+0, 634500, 160, 0xa37e4ee8
+0, 635400, 160, 0xb9334d56
+0, 636300, 160, 0xc1384bef
+0, 637200, 160, 0x52964f6e
+0, 638100, 160, 0xe36e57e2
+0, 639000, 160, 0x62114a53
+0, 639900, 160, 0xb1f855bb
+0, 640800, 160, 0xf0934da0
+0, 641700, 160, 0xb454494a
+0, 642600, 160, 0xb6e04b15
+0, 643500, 160, 0x933e488e
+0, 644400, 160, 0x762d5ce8
+0, 645300, 160, 0x1c4a4f85
+0, 646200, 160, 0xaaa25313
+0, 647100, 160, 0xd3655979
+0, 648000, 160, 0x8ff149e5
+0, 648900, 160, 0x5d5e51fb
+0, 649800, 160, 0x0a354c51
+0, 650700, 160, 0x79ea52ee
+0, 651600, 160, 0x306e5365
+0, 652500, 160, 0x7e03546a
+0, 653400, 160, 0x71575ddf
+0, 654300, 160, 0x08da523d
+0, 655200, 160, 0x2a2152b2
+0, 656100, 160, 0x50e55447
+0, 657000, 160, 0xf3b55758
+0, 657900, 160, 0xc29d5f12
+0, 658800, 160, 0x0c0b5778
+0, 659700, 160, 0x1b07593a
+0, 660600, 160, 0x946f562d
+0, 661500, 160, 0xcdc85636
+0, 662400, 160, 0x2421589b
+0, 663300, 160, 0x8e3b5451
+0, 664200, 160, 0xd565536a
+0, 665100, 160, 0x8d225557
+0, 666000, 160, 0xa0084e44
+0, 666900, 160, 0x85bd5413
+0, 667800, 160, 0xa4be4c3b
+0, 668700, 160, 0x332957c8
+0, 669600, 160, 0x60505225
+0, 670500, 160, 0x3d154eb3
+0, 671400, 160, 0xd85359f4
+0, 672300, 160, 0xf95b4f6b
+0, 673200, 160, 0x8bea5846
+0, 674100, 160, 0x43835a02
+0, 675000, 160, 0x340b5732
+0, 675900, 160, 0x8b6d5005
+0, 676800, 160, 0xa4995aca
+0, 677700, 160, 0x88d34efc
+0, 678600, 160, 0x078e5003
+0, 679500, 160, 0x09964b19
+0, 680400, 160, 0x2eaf5120
+0, 681300, 160, 0x52514d52
+0, 682200, 160, 0x08f84d4c
+0, 683100, 160, 0x4a9b4cc7
+0, 684000, 160, 0x947f4ca6
+0, 684900, 160, 0x086a4f32
+0, 685800, 160, 0x0e0857a6
+0, 686700, 160, 0x38145bf7
+0, 687600, 160, 0xc6e156bf
+0, 688500, 160, 0xb07853b2
+0, 689400, 160, 0xaeda5172
+0, 690300, 160, 0xc4e54d07
+0, 691200, 160, 0x0b075a61
+0, 692100, 160, 0x09f05c1f
+0, 693000, 160, 0xf5415796
+0, 693900, 160, 0xe3be584e
+0, 694800, 160, 0x6e1656f9
+0, 695700, 160, 0xd6d85599
+0, 696600, 160, 0xd9b4502e
+0, 697500, 160, 0x1186598c
+0, 698400, 160, 0x879c543d
+0, 699300, 160, 0x5b2551a3
+0, 700200, 160, 0xcf50528d
+0, 701100, 160, 0x95d059b2
+0, 702000, 160, 0x34ba5515
+0, 702900, 160, 0x7a014ba8
+0, 703800, 160, 0x27725169
+0, 704700, 160, 0x2fd14ca4
+0, 705600, 160, 0xd5ad542a
+0, 706500, 160, 0xddc24d2e
+0, 707400, 160, 0x8a4b48b4
+0, 708300, 160, 0x915e4a29
+0, 709200, 160, 0xd56d4cae
+0, 710100, 160, 0x59594eea
+0, 711000, 160, 0x87085338
+0, 711900, 160, 0xa5ee538f
+0, 712800, 160, 0xf34e5030
+0, 713700, 160, 0x6bef4da7
+0, 714600, 160, 0x05a14c52
+0, 715500, 160, 0x67bc49ce
+0, 716400, 160, 0xb18f4cff
+0, 717300, 160, 0x5d744e6d
+0, 718200, 160, 0xcb7c5973
+0, 719100, 160, 0x6df056f0
+0, 720000, 160, 0xd62c4e00
+0, 720900, 160, 0xa54d4d1e
+0, 721800, 160, 0xdaa250b0
+0, 722700, 160, 0x350e475f
+0, 723600, 160, 0x0e454bb2
+0, 724500, 160, 0xe37949ca
+0, 725400, 160, 0x551453bf
+0, 726300, 160, 0x35d04c27
+0, 727200, 160, 0x6749469d
+0, 728100, 160, 0x544752e9
+0, 729000, 160, 0xf23b4888
+0, 729900, 160, 0x6f0a5519
+0, 730800, 160, 0x808a58df
+0, 731700, 160, 0x8e674c88
+0, 732600, 160, 0xd3ab51f7
+0, 733500, 160, 0x985d500f
+0, 734400, 160, 0x734e52d8
+0, 735300, 160, 0xb0da5227
+0, 736200, 160, 0xcc7d4a21
+0, 737100, 160, 0xb1354baf
+0, 738000, 160, 0xfc8d4f9a
+0, 738900, 160, 0x6f044d82
+0, 739800, 160, 0x41e7546b
+0, 740700, 160, 0x67014682
+0, 741600, 160, 0x5516575b
+0, 742500, 160, 0x26254693
+0, 743400, 160, 0x81ce4af5
+0, 744300, 160, 0x77f152a0
+0, 745200, 160, 0x995a5096
+0, 746100, 160, 0x6114532e
+0, 747000, 160, 0x4df457f3
+0, 747900, 160, 0xbcd94804
+0, 748800, 160, 0x1e544fd2
+0, 749700, 160, 0xa70b5954
+0, 750600, 160, 0x1c77484c
+0, 751500, 160, 0xb07f4c42
+0, 752400, 160, 0x62074f1f
+0, 753300, 160, 0xf3b656a1
+0, 754200, 160, 0x65734ac0
+0, 755100, 160, 0x2a9752cd
+0, 756000, 160, 0x15ff4ef0
+0, 756900, 160, 0xabd4532c
+0, 757800, 160, 0x8a44503a
+0, 758700, 160, 0xbf4250f3
+0, 759600, 160, 0x17594ac5
+0, 760500, 160, 0x7b5e4b24
+0, 761400, 160, 0x24684cb5
+0, 762300, 160, 0xc4d54b42
+0, 763200, 160, 0xd48f58af
+0, 764100, 160, 0x0374593a
+0, 765000, 160, 0x398a5b0d
+0, 765900, 160, 0xf60855e6
+0, 766800, 160, 0x6fbb5587
+0, 767700, 160, 0x44405c2b
+0, 768600, 160, 0xa6345d70
+0, 769500, 160, 0x464557d5
+0, 770400, 160, 0x0c3153ca
+0, 771300, 160, 0x15ec50c4
+0, 772200, 160, 0xd5e559da
+0, 773100, 160, 0x999757b9
+0, 774000, 160, 0x7a5d5754
+0, 774900, 160, 0xf85b5f18
+0, 775800, 160, 0xa66d5c72
+0, 776700, 160, 0xd8f55981
+0, 777600, 160, 0xe6364f64
+0, 778500, 160, 0x528a5785
+0, 779400, 160, 0xdefe5332
+0, 780300, 160, 0x4bc4532e
+0, 781200, 160, 0x505a4eb3
+0, 782100, 160, 0xa28d589d
+0, 783000, 160, 0x092d511f
+0, 783900, 160, 0x3079591e
+0, 784800, 160, 0x2b1d5339
+0, 785700, 160, 0xf8d849d1
+0, 786600, 160, 0xadb056a6
+0, 787500, 160, 0x2ee74c4f
+0, 788400, 160, 0x35c34c9f
+0, 789300, 160, 0xb6ae53d3
+0, 790200, 160, 0x7258534e
+0, 791100, 160, 0xb76d4b1b
+0, 792000, 160, 0x99a14a0f
+0, 792900, 160, 0x88365944
+0, 793800, 160, 0x97cf4aed
+0, 794700, 160, 0x444b56f6
+0, 795600, 160, 0x1d1f4b01
+0, 796500, 160, 0x3dcd417e
+0, 797400, 160, 0xa4985140
+0, 798300, 160, 0x86f94c4d
+0, 799200, 160, 0xc3635436
+0, 800100, 160, 0x198b432b
+0, 801000, 160, 0xae5253e4
+0, 801900, 160, 0x248c4f1a
+0, 802800, 160, 0x787a45df
+0, 803700, 160, 0x5fd44cad
+0, 804600, 160, 0x68be581c
+0, 805500, 160, 0x5ff5531b
+0, 806400, 160, 0x2bcd4aa1
+0, 807300, 160, 0x0d134a7c
+0, 808200, 160, 0x28af5885
+0, 809100, 160, 0xc09f4d65
+0, 810000, 160, 0x7468552d
+0, 810900, 160, 0x82df49ac
+0, 811800, 160, 0xe3725fdc
+0, 812700, 160, 0x0ec74d11
+0, 813600, 160, 0xfc2a5355
+0, 814500, 160, 0x41df4d4f
+0, 815400, 160, 0x4ebe473d
+0, 816300, 160, 0xd8734bf2
+0, 817200, 160, 0x4acd5056
+0, 818100, 160, 0x47805700
+0, 819000, 160, 0xe4f25135
+0, 819900, 160, 0x9f195649
+0, 820800, 160, 0x8b055f64
+0, 821700, 160, 0xc4b751c8
+0, 822600, 160, 0x95e55ba4
+0, 823500, 160, 0xf0955494
+0, 824400, 160, 0xca1a47b9
+0, 825300, 160, 0x9d025711
+0, 826200, 160, 0xf6cb4a0a
+0, 827100, 160, 0xd8385b4d
+0, 828000, 160, 0x7b2852b6
+0, 828900, 160, 0x90a35643
+0, 829800, 160, 0x63105d0a
+0, 830700, 160, 0x55414083
+0, 831600, 160, 0xc94554a9
+0, 832500, 160, 0xa88f4a36
+0, 833400, 160, 0xda5d52bc
+0, 834300, 160, 0x5b3943da
+0, 835200, 160, 0xd2314755
+0, 836100, 160, 0x743c4cdc
+0, 837000, 160, 0x7c3e4dc2
+0, 837900, 160, 0x12644715
+0, 838800, 160, 0x1050480b
+0, 839700, 160, 0x73645906
+0, 840600, 160, 0x28ef4a9e
+0, 841500, 160, 0xf72440bc
+0, 842400, 160, 0x41964bda
+0, 843300, 160, 0x2afb4d9b
+0, 844200, 160, 0xf74b4c5a
+0, 845100, 160, 0xcf165e2e
+0, 846000, 160, 0x3dbb4d06
+0, 846900, 160, 0xbd9755f9
+0, 847800, 160, 0x3248581d
+0, 848700, 160, 0xc00c559d
+0, 849600, 160, 0xff6c4b0a
+0, 850500, 160, 0x154157e3
+0, 851400, 160, 0xb996499c
+0, 852300, 160, 0xe1a059ba
+0, 853200, 160, 0x98015946
+0, 854100, 160, 0x168b4ceb
+0, 855000, 160, 0x567b4f83
+0, 855900, 160, 0x903e52f8
+0, 856800, 160, 0xc0a252dc
+0, 857700, 160, 0x08cb4b70
+0, 858600, 160, 0x3d9a5be6
+0, 859500, 160, 0x904b4907
+0, 860400, 160, 0x738847b1
+0, 861300, 160, 0x10405c19
+0, 862200, 160, 0x8c134f27
+0, 863100, 160, 0xdfe34d7f
+0, 864000, 160, 0x9d0948a8
+0, 864900, 160, 0x67755611
+0, 865800, 160, 0x46734258
+0, 866700, 160, 0x76f449fa
+0, 867600, 160, 0xfad64d30
+0, 868500, 160, 0x7f4357f4
+0, 869400, 160, 0xd20e5079
+0, 870300, 160, 0xdf7857ec
+0, 871200, 160, 0x46ff4891
+0, 872100, 160, 0x1b724ffc
+0, 873000, 160, 0xdf20545a
+0, 873900, 160, 0xeb5254e0
+0, 874800, 160, 0x794b4a96
+0, 875700, 160, 0x86a15147
+0, 876600, 160, 0x30f75504
+0, 877500, 160, 0x39575354
+0, 878400, 160, 0xb6a35351
+0, 879300, 160, 0x9da34c3a
+0, 880200, 160, 0xcf2d5386
+0, 881100, 160, 0xa7f353f6
+0, 882000, 160, 0xa6e34e95
+0, 882900, 160, 0x98174400
+0, 883800, 160, 0x13685641
+0, 884700, 160, 0x99215154
+0, 885600, 160, 0x5be75237
+0, 886500, 160, 0x4cb64942
+0, 887400, 160, 0x15de4e03
+0, 888300, 160, 0x613a4fd5
+0, 889200, 160, 0xc97c4821
+0, 890100, 160, 0xbf1558f2
+0, 891000, 160, 0x651d4cf4
+0, 891900, 160, 0xbee44a56
+0, 892800, 160, 0x6cbd4c20
+0, 893700, 160, 0xcf45493d
+0, 894600, 160, 0x73e74d2a
+0, 895500, 160, 0x6a3256e4
+0, 896400, 160, 0x89ac4a68
+0, 897300, 160, 0x0d2652aa
+0, 898200, 160, 0x56ce4b78
+0, 899100, 160, 0xb7b24bcb
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_fld0_full b/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
index d1093c1262..b131cdaa26 100644
--- a/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
+++ b/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
@@ -1,31 +1,31 @@
#tb 0: 1/25
-0, 2, 2, 1, 518400, 0xbf168f4e
-0, 4, 4, 1, 518400, 0xeda5e54f
-0, 6, 6, 1, 518400, 0xef496d43
-0, 8, 8, 1, 518400, 0x6b68dad5
-0, 10, 10, 1, 518400, 0x9a40a7de
-0, 12, 12, 1, 518400, 0x0c21c018
-0, 14, 14, 1, 518400, 0x4ac5a846
-0, 16, 16, 1, 518400, 0x3a1aa817
-0, 18, 18, 1, 518400, 0xcc4eb434
-0, 20, 20, 1, 518400, 0x4368a3c2
-0, 22, 22, 1, 518400, 0xb923682f
-0, 24, 24, 1, 518400, 0xd95460a8
-0, 26, 26, 1, 518400, 0x8e8518aa
-0, 28, 28, 1, 518400, 0x292a1a80
-0, 30, 30, 1, 518400, 0xbada388e
-0, 32, 32, 1, 518400, 0xa67f63c9
-0, 34, 34, 1, 518400, 0x9fc77e21
-0, 36, 36, 1, 518400, 0xe99dc2ac
-0, 38, 38, 1, 518400, 0x17d7d080
-0, 40, 40, 1, 518400, 0x41760c0b
-0, 42, 42, 1, 518400, 0x3c70f34d
-0, 44, 44, 1, 518400, 0x0d640285
-0, 46, 46, 1, 518400, 0x448893e8
-0, 48, 48, 1, 518400, 0x08194490
-0, 50, 50, 1, 518400, 0xcf227031
-0, 52, 52, 1, 518400, 0x8d94587d
-0, 54, 54, 1, 518400, 0x696fca01
-0, 56, 56, 1, 518400, 0xe0ab234b
-0, 58, 58, 1, 518400, 0x0620153b
-0, 59, 59, 1, 518400, 0xb78c146c
+0, 0, 0, 1, 518400, 0xbf168f4e
+0, 1, 1, 1, 518400, 0xeda5e54f
+0, 2, 2, 1, 518400, 0xef496d43
+0, 3, 3, 1, 518400, 0x6b68dad5
+0, 4, 4, 1, 518400, 0x9a40a7de
+0, 5, 5, 1, 518400, 0x0c21c018
+0, 6, 6, 1, 518400, 0x4ac5a846
+0, 7, 7, 1, 518400, 0x3a1aa817
+0, 8, 8, 1, 518400, 0xcc4eb434
+0, 9, 9, 1, 518400, 0x4368a3c2
+0, 10, 10, 1, 518400, 0xb923682f
+0, 11, 11, 1, 518400, 0xd95460a8
+0, 12, 12, 1, 518400, 0x8e8518aa
+0, 13, 13, 1, 518400, 0x292a1a80
+0, 14, 14, 1, 518400, 0xbada388e
+0, 15, 15, 1, 518400, 0xa67f63c9
+0, 16, 16, 1, 518400, 0x9fc77e21
+0, 17, 17, 1, 518400, 0xe99dc2ac
+0, 18, 18, 1, 518400, 0x17d7d080
+0, 19, 19, 1, 518400, 0x41760c0b
+0, 20, 20, 1, 518400, 0x3c70f34d
+0, 21, 21, 1, 518400, 0x0d640285
+0, 22, 22, 1, 518400, 0x448893e8
+0, 23, 23, 1, 518400, 0x08194490
+0, 24, 24, 1, 518400, 0xcf227031
+0, 25, 25, 1, 518400, 0x8d94587d
+0, 26, 26, 1, 518400, 0x696fca01
+0, 27, 27, 1, 518400, 0xe0ab234b
+0, 28, 28, 1, 518400, 0x0620153b
+0, 29, 29, 1, 518400, 0xb78c146c
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full b/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
index 32210af809..484025e576 100644
--- a/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
+++ b/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
@@ -1,31 +1,31 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0xd8b58a23
-0, 3, 3, 1, 518400, 0xe53b4aba
-0, 4, 4, 1, 518400, 0x6cbca47a
-0, 5, 5, 1, 518400, 0xceb51253
-0, 6, 6, 1, 518400, 0x60cb3cdd
-0, 8, 8, 1, 518400, 0x7b633553
-0, 10, 10, 1, 518400, 0x10c012c9
-0, 12, 12, 1, 518400, 0xa340ee20
-0, 13, 13, 1, 518400, 0x574c22c2
-0, 14, 14, 1, 518400, 0xbcdb1bf7
-0, 15, 15, 1, 518400, 0x57811e9a
-0, 17, 17, 1, 518400, 0xdd4af748
-0, 19, 19, 1, 518400, 0xb931a637
-0, 21, 21, 1, 518400, 0xcef6ce95
-0, 22, 22, 1, 518400, 0xd28c7085
-0, 23, 23, 1, 518400, 0xae9daf53
-0, 24, 24, 1, 518400, 0xca29d819
-0, 26, 26, 1, 518400, 0x3c4bd7eb
-0, 28, 28, 1, 518400, 0x912ee227
-0, 30, 30, 1, 518400, 0xb67d0e27
-0, 31, 31, 1, 518400, 0x8cf7309d
-0, 32, 32, 1, 518400, 0x358ad344
-0, 33, 33, 1, 518400, 0x4462c642
-0, 35, 35, 1, 518400, 0x3bb43428
-0, 37, 37, 1, 518400, 0x12d6f8ca
-0, 39, 39, 1, 518400, 0x003f13aa
-0, 40, 40, 1, 518400, 0x6cd8c432
-0, 41, 41, 1, 518400, 0xee5ff01b
-0, 43, 43, 1, 518400, 0xba0616ee
-0, 44, 44, 1, 518400, 0x37fa7891
+0, 0, 0, 1, 518400, 0xd8b58a23
+0, 1, 1, 1, 518400, 0xe53b4aba
+0, 2, 2, 1, 518400, 0x6cbca47a
+0, 3, 3, 1, 518400, 0xceb51253
+0, 4, 4, 1, 518400, 0x60cb3cdd
+0, 5, 5, 1, 518400, 0x7b633553
+0, 6, 6, 1, 518400, 0x10c012c9
+0, 7, 7, 1, 518400, 0xa340ee20
+0, 8, 8, 1, 518400, 0x574c22c2
+0, 9, 9, 1, 518400, 0xbcdb1bf7
+0, 10, 10, 1, 518400, 0x57811e9a
+0, 11, 11, 1, 518400, 0xdd4af748
+0, 12, 12, 1, 518400, 0xb931a637
+0, 13, 13, 1, 518400, 0xcef6ce95
+0, 14, 14, 1, 518400, 0xd28c7085
+0, 15, 15, 1, 518400, 0xae9daf53
+0, 16, 16, 1, 518400, 0xca29d819
+0, 17, 17, 1, 518400, 0x3c4bd7eb
+0, 18, 18, 1, 518400, 0x912ee227
+0, 19, 19, 1, 518400, 0xb67d0e27
+0, 20, 20, 1, 518400, 0x8cf7309d
+0, 21, 21, 1, 518400, 0x358ad344
+0, 22, 22, 1, 518400, 0x4462c642
+0, 23, 23, 1, 518400, 0x3bb43428
+0, 24, 24, 1, 518400, 0x12d6f8ca
+0, 25, 25, 1, 518400, 0x003f13aa
+0, 26, 26, 1, 518400, 0x6cd8c432
+0, 27, 27, 1, 518400, 0xee5ff01b
+0, 28, 28, 1, 518400, 0xba0616ee
+0, 29, 29, 1, 518400, 0x37fa7891
diff --git a/tests/ref/fate/h264-conformance-cabref3_sand_d b/tests/ref/fate/h264-conformance-cabref3_sand_d
index 247ac2e9be..9e555f6ee6 100644
--- a/tests/ref/fate/h264-conformance-cabref3_sand_d
+++ b/tests/ref/fate/h264-conformance-cabref3_sand_d
@@ -1,51 +1,51 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x2061bbd0
-0, 4, 4, 1, 152064, 0x41adb750
-0, 6, 6, 1, 152064, 0x6e889e90
-0, 8, 8, 1, 152064, 0xbb5e60f5
-0, 10, 10, 1, 152064, 0x5a32eca7
-0, 12, 12, 1, 152064, 0x5cb05e88
-0, 14, 14, 1, 152064, 0x2fff3e6c
-0, 16, 16, 1, 152064, 0xd917c85e
-0, 18, 18, 1, 152064, 0x6eac446f
-0, 20, 20, 1, 152064, 0x238b24b0
-0, 22, 22, 1, 152064, 0x3f3bd44c
-0, 24, 24, 1, 152064, 0x73982bc5
-0, 26, 26, 1, 152064, 0xf6188a82
-0, 28, 28, 1, 152064, 0x818c5b41
-0, 30, 30, 1, 152064, 0x000d1012
-0, 32, 32, 1, 152064, 0xc4a8750e
-0, 34, 34, 1, 152064, 0x1689bb77
-0, 36, 36, 1, 152064, 0x8f52f338
-0, 38, 38, 1, 152064, 0xbf5ee06b
-0, 40, 40, 1, 152064, 0x89508ad7
-0, 42, 42, 1, 152064, 0x2b1986a6
-0, 44, 44, 1, 152064, 0xe6fd6b0e
-0, 46, 46, 1, 152064, 0x883e2e4e
-0, 48, 48, 1, 152064, 0xd133db07
-0, 50, 50, 1, 152064, 0x39b3bb22
-0, 52, 52, 1, 152064, 0x8447410a
-0, 54, 54, 1, 152064, 0x9c66c6e5
-0, 56, 56, 1, 152064, 0x514de9cc
-0, 58, 58, 1, 152064, 0x08d9f1da
-0, 60, 60, 1, 152064, 0x8f10f536
-0, 62, 62, 1, 152064, 0x57d4b27b
-0, 64, 64, 1, 152064, 0x46f56d3c
-0, 66, 66, 1, 152064, 0x5d260230
-0, 68, 68, 1, 152064, 0x4a72aeac
-0, 70, 70, 1, 152064, 0x5cfe187f
-0, 72, 72, 1, 152064, 0x08e55cb2
-0, 74, 74, 1, 152064, 0x4727f34f
-0, 76, 76, 1, 152064, 0xd6a26f1c
-0, 78, 78, 1, 152064, 0xcc1fcf9c
-0, 80, 80, 1, 152064, 0x3681b775
-0, 82, 82, 1, 152064, 0xf580c7d9
-0, 84, 84, 1, 152064, 0xaa6747fb
-0, 86, 86, 1, 152064, 0x2e22f9f9
-0, 88, 88, 1, 152064, 0xb3ee6d81
-0, 90, 90, 1, 152064, 0x930b0145
-0, 92, 92, 1, 152064, 0xae36af99
-0, 94, 94, 1, 152064, 0xeb58fd26
-0, 96, 96, 1, 152064, 0xb9004da3
-0, 98, 98, 1, 152064, 0x2b25e444
-0, 99, 99, 1, 152064, 0xb36927de
+0, 0, 0, 1, 152064, 0x2061bbd0
+0, 1, 1, 1, 152064, 0x41adb750
+0, 2, 2, 1, 152064, 0x6e889e90
+0, 3, 3, 1, 152064, 0xbb5e60f5
+0, 4, 4, 1, 152064, 0x5a32eca7
+0, 5, 5, 1, 152064, 0x5cb05e88
+0, 6, 6, 1, 152064, 0x2fff3e6c
+0, 7, 7, 1, 152064, 0xd917c85e
+0, 8, 8, 1, 152064, 0x6eac446f
+0, 9, 9, 1, 152064, 0x238b24b0
+0, 10, 10, 1, 152064, 0x3f3bd44c
+0, 11, 11, 1, 152064, 0x73982bc5
+0, 12, 12, 1, 152064, 0xf6188a82
+0, 13, 13, 1, 152064, 0x818c5b41
+0, 14, 14, 1, 152064, 0x000d1012
+0, 15, 15, 1, 152064, 0xc4a8750e
+0, 16, 16, 1, 152064, 0x1689bb77
+0, 17, 17, 1, 152064, 0x8f52f338
+0, 18, 18, 1, 152064, 0xbf5ee06b
+0, 19, 19, 1, 152064, 0x89508ad7
+0, 20, 20, 1, 152064, 0x2b1986a6
+0, 21, 21, 1, 152064, 0xe6fd6b0e
+0, 22, 22, 1, 152064, 0x883e2e4e
+0, 23, 23, 1, 152064, 0xd133db07
+0, 24, 24, 1, 152064, 0x39b3bb22
+0, 25, 25, 1, 152064, 0x8447410a
+0, 26, 26, 1, 152064, 0x9c66c6e5
+0, 27, 27, 1, 152064, 0x514de9cc
+0, 28, 28, 1, 152064, 0x08d9f1da
+0, 29, 29, 1, 152064, 0x8f10f536
+0, 30, 30, 1, 152064, 0x57d4b27b
+0, 31, 31, 1, 152064, 0x46f56d3c
+0, 32, 32, 1, 152064, 0x5d260230
+0, 33, 33, 1, 152064, 0x4a72aeac
+0, 34, 34, 1, 152064, 0x5cfe187f
+0, 35, 35, 1, 152064, 0x08e55cb2
+0, 36, 36, 1, 152064, 0x4727f34f
+0, 37, 37, 1, 152064, 0xd6a26f1c
+0, 38, 38, 1, 152064, 0xcc1fcf9c
+0, 39, 39, 1, 152064, 0x3681b775
+0, 40, 40, 1, 152064, 0xf580c7d9
+0, 41, 41, 1, 152064, 0xaa6747fb
+0, 42, 42, 1, 152064, 0x2e22f9f9
+0, 43, 43, 1, 152064, 0xb3ee6d81
+0, 44, 44, 1, 152064, 0x930b0145
+0, 45, 45, 1, 152064, 0xae36af99
+0, 46, 46, 1, 152064, 0xeb58fd26
+0, 47, 47, 1, 152064, 0xb9004da3
+0, 48, 48, 1, 152064, 0x2b25e444
+0, 49, 49, 1, 152064, 0xb36927de
diff --git a/tests/ref/fate/h264-conformance-cafi1_sva_c b/tests/ref/fate/h264-conformance-cafi1_sva_c
index 4be282cbf6..180adf186b 100644
--- a/tests/ref/fate/h264-conformance-cafi1_sva_c
+++ b/tests/ref/fate/h264-conformance-cafi1_sva_c
@@ -1,34 +1,34 @@
#tb 0: 1/25
-0, 2, 2, 1, 518400, 0x47bd73fa
-0, 4, 4, 1, 518400, 0xfe3ea7cc
-0, 6, 6, 1, 518400, 0x9bc549ae
-0, 8, 8, 1, 518400, 0x7bb7f0a1
-0, 10, 10, 1, 518400, 0x328903d4
-0, 12, 12, 1, 518400, 0x96ab366b
-0, 14, 14, 1, 518400, 0xa923eed3
-0, 16, 16, 1, 518400, 0x162b08f6
-0, 18, 18, 1, 518400, 0xe711bd8b
-0, 20, 20, 1, 518400, 0x55e2d4ed
-0, 22, 22, 1, 518400, 0x7dd3107b
-0, 24, 24, 1, 518400, 0x0ed20bcf
-0, 26, 26, 1, 518400, 0x352f5743
-0, 28, 28, 1, 518400, 0x0a3aeb5e
-0, 30, 30, 1, 518400, 0xc458eda3
-0, 32, 32, 1, 518400, 0xe8d5fec5
-0, 34, 34, 1, 518400, 0x18fc6c37
-0, 36, 36, 1, 518400, 0x448add76
-0, 38, 38, 1, 518400, 0x8741ead7
-0, 40, 40, 1, 518400, 0x7008a751
-0, 42, 42, 1, 518400, 0x4ca0633d
-0, 44, 44, 1, 518400, 0x021ab800
-0, 46, 46, 1, 518400, 0xfb91ba57
-0, 48, 48, 1, 518400, 0x90e71dd0
-0, 50, 50, 1, 518400, 0xac859de5
-0, 52, 52, 1, 518400, 0xce9790bd
-0, 54, 54, 1, 518400, 0x010ade8b
-0, 56, 56, 1, 518400, 0xd0b3a399
-0, 58, 58, 1, 518400, 0x6cafcff3
-0, 60, 60, 1, 518400, 0xc32284c0
-0, 62, 62, 1, 518400, 0x1af8f73e
-0, 64, 64, 1, 518400, 0x3babd71e
-0, 65, 65, 1, 518400, 0xd77cb86b
+0, 0, 0, 1, 518400, 0x47bd73fa
+0, 1, 1, 1, 518400, 0xfe3ea7cc
+0, 2, 2, 1, 518400, 0x9bc549ae
+0, 3, 3, 1, 518400, 0x7bb7f0a1
+0, 4, 4, 1, 518400, 0x328903d4
+0, 5, 5, 1, 518400, 0x96ab366b
+0, 6, 6, 1, 518400, 0xa923eed3
+0, 7, 7, 1, 518400, 0x162b08f6
+0, 8, 8, 1, 518400, 0xe711bd8b
+0, 9, 9, 1, 518400, 0x55e2d4ed
+0, 10, 10, 1, 518400, 0x7dd3107b
+0, 11, 11, 1, 518400, 0x0ed20bcf
+0, 12, 12, 1, 518400, 0x352f5743
+0, 13, 13, 1, 518400, 0x0a3aeb5e
+0, 14, 14, 1, 518400, 0xc458eda3
+0, 15, 15, 1, 518400, 0xe8d5fec5
+0, 16, 16, 1, 518400, 0x18fc6c37
+0, 17, 17, 1, 518400, 0x448add76
+0, 18, 18, 1, 518400, 0x8741ead7
+0, 19, 19, 1, 518400, 0x7008a751
+0, 20, 20, 1, 518400, 0x4ca0633d
+0, 21, 21, 1, 518400, 0x021ab800
+0, 22, 22, 1, 518400, 0xfb91ba57
+0, 23, 23, 1, 518400, 0x90e71dd0
+0, 24, 24, 1, 518400, 0xac859de5
+0, 25, 25, 1, 518400, 0xce9790bd
+0, 26, 26, 1, 518400, 0x010ade8b
+0, 27, 27, 1, 518400, 0xd0b3a399
+0, 28, 28, 1, 518400, 0x6cafcff3
+0, 29, 29, 1, 518400, 0xc32284c0
+0, 30, 30, 1, 518400, 0x1af8f73e
+0, 31, 31, 1, 518400, 0x3babd71e
+0, 32, 32, 1, 518400, 0xd77cb86b
diff --git a/tests/ref/fate/h264-conformance-cama1_vtc_c b/tests/ref/fate/h264-conformance-cama1_vtc_c
index b4cc76ef45..eeb66b0e1c 100644
--- a/tests/ref/fate/h264-conformance-cama1_vtc_c
+++ b/tests/ref/fate/h264-conformance-cama1_vtc_c
@@ -1,5 +1,5 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0x41c2ce17
-0, 2, 2, 1, 518400, 0x39f217da
-0, 3, 3, 1, 518400, 0x5a108db9
-0, 4, 4, 1, 518400, 0x20cb214c
+0, 0, 0, 1, 518400, 0x41c2ce17
+0, 1, 1, 1, 518400, 0x39f217da
+0, 2, 2, 1, 518400, 0x5a108db9
+0, 3, 3, 1, 518400, 0x20cb214c
diff --git a/tests/ref/fate/h264-conformance-cama2_vtc_b b/tests/ref/fate/h264-conformance-cama2_vtc_b
index 911f144af6..0dfe6a9ac3 100644
--- a/tests/ref/fate/h264-conformance-cama2_vtc_b
+++ b/tests/ref/fate/h264-conformance-cama2_vtc_b
@@ -1,5 +1,5 @@
#tb 0: 1/25
-0, 1, 1, 1, 622080, 0x004bb93f
-0, 2, 2, 1, 622080, 0xe70e193c
-0, 3, 3, 1, 622080, 0xd394cf17
-0, 4, 4, 1, 622080, 0x9e4cc924
+0, 0, 0, 1, 622080, 0x004bb93f
+0, 1, 1, 1, 622080, 0xe70e193c
+0, 2, 2, 1, 622080, 0xd394cf17
+0, 3, 3, 1, 622080, 0x9e4cc924
diff --git a/tests/ref/fate/h264-conformance-cama3_vtc_b b/tests/ref/fate/h264-conformance-cama3_vtc_b
index 3d912bd2d1..46821c1798 100644
--- a/tests/ref/fate/h264-conformance-cama3_vtc_b
+++ b/tests/ref/fate/h264-conformance-cama3_vtc_b
@@ -1,5 +1,5 @@
#tb 0: 1/25
-0, 1, 1, 1, 622080, 0xf3f0bf86
-0, 2, 2, 1, 622080, 0x6aaf3d42
-0, 3, 3, 1, 622080, 0xe53bcd5d
-0, 4, 4, 1, 622080, 0x8dabca9d
+0, 0, 0, 1, 622080, 0xf3f0bf86
+0, 1, 1, 1, 622080, 0x6aaf3d42
+0, 2, 2, 1, 622080, 0xe53bcd5d
+0, 3, 3, 1, 622080, 0x8dabca9d
diff --git a/tests/ref/fate/h264-conformance-capa1_toshiba_b b/tests/ref/fate/h264-conformance-capa1_toshiba_b
index 0d721ac036..a0336f82e5 100644
--- a/tests/ref/fate/h264-conformance-capa1_toshiba_b
+++ b/tests/ref/fate/h264-conformance-capa1_toshiba_b
@@ -1,91 +1,91 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x4040d2fc
-0, 3, 3, 1, 152064, 0x0d8f9897
-0, 5, 5, 1, 152064, 0xc23321cd
-0, 7, 7, 1, 152064, 0x3c9225eb
-0, 9, 9, 1, 152064, 0x8927006f
-0, 11, 11, 1, 152064, 0xf706a302
-0, 13, 13, 1, 152064, 0x8219c106
-0, 14, 14, 1, 152064, 0x06c990ea
-0, 15, 15, 1, 152064, 0x3a0f1135
-0, 16, 16, 1, 152064, 0x4cff21d3
-0, 17, 17, 1, 152064, 0x6be0e050
-0, 18, 18, 1, 152064, 0x718b6c7b
-0, 19, 19, 1, 152064, 0x24b38713
-0, 20, 20, 1, 152064, 0x500553fb
-0, 22, 22, 1, 152064, 0x531ae610
-0, 23, 23, 1, 152064, 0x46f4ff1b
-0, 25, 25, 1, 152064, 0xe5abe5ff
-0, 26, 26, 1, 152064, 0x97daa351
-0, 28, 28, 1, 152064, 0xfbef0a8f
-0, 30, 30, 1, 152064, 0xbe76134f
-0, 31, 31, 1, 152064, 0xa4bf10ea
-0, 33, 33, 1, 152064, 0xb2fb32af
-0, 35, 35, 1, 152064, 0xd33027a5
-0, 36, 36, 1, 152064, 0x78e20c2b
-0, 38, 38, 1, 152064, 0xefda2d6f
-0, 40, 40, 1, 152064, 0xb99126f0
-0, 41, 41, 1, 152064, 0x89d7e465
-0, 42, 42, 1, 152064, 0x6150ff97
-0, 44, 44, 1, 152064, 0xde03d937
-0, 45, 45, 1, 152064, 0xd90ca874
-0, 47, 47, 1, 152064, 0xb120b294
-0, 48, 48, 1, 152064, 0x644eade4
-0, 50, 50, 1, 152064, 0xd1bb004f
-0, 51, 51, 1, 152064, 0x99806a8b
-0, 52, 52, 1, 152064, 0x8c6b635f
-0, 53, 53, 1, 152064, 0xa269fa8b
-0, 55, 55, 1, 152064, 0xc11c0e64
-0, 56, 56, 1, 152064, 0xac13f5eb
-0, 57, 57, 1, 152064, 0x895799cf
-0, 59, 59, 1, 152064, 0x95a9bea1
-0, 60, 60, 1, 152064, 0xe998dfba
-0, 61, 61, 1, 152064, 0xc72d8460
-0, 63, 63, 1, 152064, 0xd1cb9b9a
-0, 64, 64, 1, 152064, 0xb49aadd3
-0, 65, 65, 1, 152064, 0x8bc38547
-0, 66, 66, 1, 152064, 0x3485984b
-0, 68, 68, 1, 152064, 0xdf305c0a
-0, 69, 69, 1, 152064, 0x6a1ec990
-0, 71, 71, 1, 152064, 0x595e0de4
-0, 73, 73, 1, 152064, 0xe1baf7c4
-0, 74, 74, 1, 152064, 0xf08b9b47
-0, 75, 75, 1, 152064, 0x6532ba6f
-0, 76, 76, 1, 152064, 0x3de67da6
-0, 77, 77, 1, 152064, 0x439ffd04
-0, 78, 78, 1, 152064, 0x6e6c1e97
-0, 79, 79, 1, 152064, 0x8e5aee7a
-0, 81, 81, 1, 152064, 0xd634999a
-0, 83, 83, 1, 152064, 0xadfa9e8b
-0, 84, 84, 1, 152064, 0x1b9090f5
-0, 86, 86, 1, 152064, 0x29094dfc
-0, 88, 88, 1, 152064, 0x56748851
-0, 90, 90, 1, 152064, 0x2316719d
-0, 92, 92, 1, 152064, 0x2ee0060b
-0, 94, 94, 1, 152064, 0x3edb36d4
-0, 96, 96, 1, 152064, 0x9ef437a3
-0, 98, 98, 1, 152064, 0x8d9af72e
-0, 100, 100, 1, 152064, 0xab86389c
-0, 102, 102, 1, 152064, 0xd3b34576
-0, 103, 103, 1, 152064, 0x9e5b04f4
-0, 105, 105, 1, 152064, 0x6a164c17
-0, 106, 106, 1, 152064, 0xcecf20ab
-0, 108, 108, 1, 152064, 0x07c8e273
-0, 110, 110, 1, 152064, 0x9b46fe6a
-0, 112, 112, 1, 152064, 0xc1e8002b
-0, 113, 113, 1, 152064, 0xdebdbe53
-0, 114, 114, 1, 152064, 0x0d2dfd99
-0, 116, 116, 1, 152064, 0xe8ae925f
-0, 117, 117, 1, 152064, 0xe1fe6272
-0, 118, 118, 1, 152064, 0xbb74d5e6
-0, 120, 120, 1, 152064, 0xc7b5d949
-0, 122, 122, 1, 152064, 0x9b15b020
-0, 124, 124, 1, 152064, 0xc8201f44
-0, 126, 126, 1, 152064, 0x30d03303
-0, 128, 128, 1, 152064, 0x9f66fbc2
-0, 130, 130, 1, 152064, 0x482b71ec
-0, 131, 131, 1, 152064, 0x1c9e50bf
-0, 133, 133, 1, 152064, 0x89f247e4
-0, 135, 135, 1, 152064, 0xaa5f9141
-0, 136, 136, 1, 152064, 0xb816aa8c
-0, 137, 137, 1, 152064, 0x3112a619
+0, 0, 0, 1, 152064, 0x4040d2fc
+0, 1, 1, 1, 152064, 0x0d8f9897
+0, 2, 2, 1, 152064, 0xc23321cd
+0, 3, 3, 1, 152064, 0x3c9225eb
+0, 4, 4, 1, 152064, 0x8927006f
+0, 5, 5, 1, 152064, 0xf706a302
+0, 6, 6, 1, 152064, 0x8219c106
+0, 7, 7, 1, 152064, 0x06c990ea
+0, 8, 8, 1, 152064, 0x3a0f1135
+0, 9, 9, 1, 152064, 0x4cff21d3
+0, 10, 10, 1, 152064, 0x6be0e050
+0, 11, 11, 1, 152064, 0x718b6c7b
+0, 12, 12, 1, 152064, 0x24b38713
+0, 13, 13, 1, 152064, 0x500553fb
+0, 14, 14, 1, 152064, 0x531ae610
+0, 15, 15, 1, 152064, 0x46f4ff1b
+0, 16, 16, 1, 152064, 0xe5abe5ff
+0, 17, 17, 1, 152064, 0x97daa351
+0, 18, 18, 1, 152064, 0xfbef0a8f
+0, 19, 19, 1, 152064, 0xbe76134f
+0, 20, 20, 1, 152064, 0xa4bf10ea
+0, 21, 21, 1, 152064, 0xb2fb32af
+0, 22, 22, 1, 152064, 0xd33027a5
+0, 23, 23, 1, 152064, 0x78e20c2b
+0, 24, 24, 1, 152064, 0xefda2d6f
+0, 25, 25, 1, 152064, 0xb99126f0
+0, 26, 26, 1, 152064, 0x89d7e465
+0, 27, 27, 1, 152064, 0x6150ff97
+0, 28, 28, 1, 152064, 0xde03d937
+0, 29, 29, 1, 152064, 0xd90ca874
+0, 30, 30, 1, 152064, 0xb120b294
+0, 31, 31, 1, 152064, 0x644eade4
+0, 32, 32, 1, 152064, 0xd1bb004f
+0, 33, 33, 1, 152064, 0x99806a8b
+0, 34, 34, 1, 152064, 0x8c6b635f
+0, 35, 35, 1, 152064, 0xa269fa8b
+0, 36, 36, 1, 152064, 0xc11c0e64
+0, 37, 37, 1, 152064, 0xac13f5eb
+0, 38, 38, 1, 152064, 0x895799cf
+0, 39, 39, 1, 152064, 0x95a9bea1
+0, 40, 40, 1, 152064, 0xe998dfba
+0, 41, 41, 1, 152064, 0xc72d8460
+0, 42, 42, 1, 152064, 0xd1cb9b9a
+0, 43, 43, 1, 152064, 0xb49aadd3
+0, 44, 44, 1, 152064, 0x8bc38547
+0, 45, 45, 1, 152064, 0x3485984b
+0, 46, 46, 1, 152064, 0xdf305c0a
+0, 47, 47, 1, 152064, 0x6a1ec990
+0, 48, 48, 1, 152064, 0x595e0de4
+0, 49, 49, 1, 152064, 0xe1baf7c4
+0, 50, 50, 1, 152064, 0xf08b9b47
+0, 51, 51, 1, 152064, 0x6532ba6f
+0, 52, 52, 1, 152064, 0x3de67da6
+0, 53, 53, 1, 152064, 0x439ffd04
+0, 54, 54, 1, 152064, 0x6e6c1e97
+0, 55, 55, 1, 152064, 0x8e5aee7a
+0, 56, 56, 1, 152064, 0xd634999a
+0, 57, 57, 1, 152064, 0xadfa9e8b
+0, 58, 58, 1, 152064, 0x1b9090f5
+0, 59, 59, 1, 152064, 0x29094dfc
+0, 60, 60, 1, 152064, 0x56748851
+0, 61, 61, 1, 152064, 0x2316719d
+0, 62, 62, 1, 152064, 0x2ee0060b
+0, 63, 63, 1, 152064, 0x3edb36d4
+0, 64, 64, 1, 152064, 0x9ef437a3
+0, 65, 65, 1, 152064, 0x8d9af72e
+0, 66, 66, 1, 152064, 0xab86389c
+0, 67, 67, 1, 152064, 0xd3b34576
+0, 68, 68, 1, 152064, 0x9e5b04f4
+0, 69, 69, 1, 152064, 0x6a164c17
+0, 70, 70, 1, 152064, 0xcecf20ab
+0, 71, 71, 1, 152064, 0x07c8e273
+0, 72, 72, 1, 152064, 0x9b46fe6a
+0, 73, 73, 1, 152064, 0xc1e8002b
+0, 74, 74, 1, 152064, 0xdebdbe53
+0, 75, 75, 1, 152064, 0x0d2dfd99
+0, 76, 76, 1, 152064, 0xe8ae925f
+0, 77, 77, 1, 152064, 0xe1fe6272
+0, 78, 78, 1, 152064, 0xbb74d5e6
+0, 79, 79, 1, 152064, 0xc7b5d949
+0, 80, 80, 1, 152064, 0x9b15b020
+0, 81, 81, 1, 152064, 0xc8201f44
+0, 82, 82, 1, 152064, 0x30d03303
+0, 83, 83, 1, 152064, 0x9f66fbc2
+0, 84, 84, 1, 152064, 0x482b71ec
+0, 85, 85, 1, 152064, 0x1c9e50bf
+0, 86, 86, 1, 152064, 0x89f247e4
+0, 87, 87, 1, 152064, 0xaa5f9141
+0, 88, 88, 1, 152064, 0xb816aa8c
+0, 89, 89, 1, 152064, 0x3112a619
diff --git a/tests/ref/fate/h264-conformance-capama3_sand_f b/tests/ref/fate/h264-conformance-capama3_sand_f
index 5a84688070..b621b8138d 100644
--- a/tests/ref/fate/h264-conformance-capama3_sand_f
+++ b/tests/ref/fate/h264-conformance-capama3_sand_f
@@ -1,51 +1,51 @@
#tb 0: 1/25
-0, 1, 1, 1, 152064, 0xf772f152
-0, 2, 2, 1, 152064, 0xc416d300
-0, 4, 4, 1, 152064, 0xc2275c94
-0, 6, 6, 1, 152064, 0x1bd35645
-0, 7, 7, 1, 152064, 0x60327bf5
-0, 9, 9, 1, 152064, 0x7f5541bd
-0, 11, 11, 1, 152064, 0x52e5ebad
-0, 12, 12, 1, 152064, 0xb8e5c1f3
-0, 13, 13, 1, 152064, 0x2b4e3653
-0, 14, 14, 1, 152064, 0x9a8f8499
-0, 15, 15, 1, 152064, 0x32d4e9fb
-0, 17, 17, 1, 152064, 0x0bc73d7a
-0, 19, 19, 1, 152064, 0xb58a8b87
-0, 21, 21, 1, 152064, 0xddbc5468
-0, 23, 23, 1, 152064, 0xcfa30b64
-0, 24, 24, 1, 152064, 0xad411f36
-0, 26, 26, 1, 152064, 0x2f8c4d9b
-0, 28, 28, 1, 152064, 0xc8523359
-0, 29, 29, 1, 152064, 0x86be9861
-0, 30, 30, 1, 152064, 0x7518d731
-0, 32, 32, 1, 152064, 0x425fbfab
-0, 34, 34, 1, 152064, 0x4f00250d
-0, 36, 36, 1, 152064, 0x12b40617
-0, 38, 38, 1, 152064, 0x65ff925d
-0, 40, 40, 1, 152064, 0xc76a94c9
-0, 41, 41, 1, 152064, 0x640170d5
-0, 43, 43, 1, 152064, 0xd338a090
-0, 44, 44, 1, 152064, 0xce715174
-0, 46, 46, 1, 152064, 0x7bded195
-0, 48, 48, 1, 152064, 0x09e7d3b9
-0, 50, 50, 1, 152064, 0x651e1518
-0, 51, 51, 1, 152064, 0x03cadc5f
-0, 52, 52, 1, 152064, 0x08906919
-0, 54, 54, 1, 152064, 0x3303ebe0
-0, 56, 56, 1, 152064, 0xa28676c5
-0, 58, 58, 1, 152064, 0x3900ecaf
-0, 60, 60, 1, 152064, 0xeb795a05
-0, 61, 61, 1, 152064, 0x870034df
-0, 63, 63, 1, 152064, 0x69b0527a
-0, 64, 64, 1, 152064, 0xb2b314f9
-0, 66, 66, 1, 152064, 0x1a44ea1a
-0, 67, 67, 1, 152064, 0xe6eaec87
-0, 68, 68, 1, 152064, 0xd9ad818e
-0, 69, 69, 1, 152064, 0x9c7ff76e
-0, 70, 70, 1, 152064, 0x74c45abb
-0, 71, 71, 1, 152064, 0x2f4fa5c6
-0, 73, 73, 1, 152064, 0x19620702
-0, 75, 75, 1, 152064, 0xfc9601f3
-0, 77, 77, 1, 152064, 0x33e0d8e7
-0, 78, 78, 1, 152064, 0xdf7f2a80
+0, 0, 0, 1, 152064, 0xf772f152
+0, 1, 1, 1, 152064, 0xc416d300
+0, 2, 2, 1, 152064, 0xc2275c94
+0, 3, 3, 1, 152064, 0x1bd35645
+0, 4, 4, 1, 152064, 0x60327bf5
+0, 5, 5, 1, 152064, 0x7f5541bd
+0, 6, 6, 1, 152064, 0x52e5ebad
+0, 7, 7, 1, 152064, 0xb8e5c1f3
+0, 8, 8, 1, 152064, 0x2b4e3653
+0, 9, 9, 1, 152064, 0x9a8f8499
+0, 10, 10, 1, 152064, 0x32d4e9fb
+0, 11, 11, 1, 152064, 0x0bc73d7a
+0, 12, 12, 1, 152064, 0xb58a8b87
+0, 13, 13, 1, 152064, 0xddbc5468
+0, 14, 14, 1, 152064, 0xcfa30b64
+0, 15, 15, 1, 152064, 0xad411f36
+0, 16, 16, 1, 152064, 0x2f8c4d9b
+0, 17, 17, 1, 152064, 0xc8523359
+0, 18, 18, 1, 152064, 0x86be9861
+0, 19, 19, 1, 152064, 0x7518d731
+0, 20, 20, 1, 152064, 0x425fbfab
+0, 21, 21, 1, 152064, 0x4f00250d
+0, 22, 22, 1, 152064, 0x12b40617
+0, 23, 23, 1, 152064, 0x65ff925d
+0, 24, 24, 1, 152064, 0xc76a94c9
+0, 25, 25, 1, 152064, 0x640170d5
+0, 26, 26, 1, 152064, 0xd338a090
+0, 27, 27, 1, 152064, 0xce715174
+0, 28, 28, 1, 152064, 0x7bded195
+0, 29, 29, 1, 152064, 0x09e7d3b9
+0, 30, 30, 1, 152064, 0x651e1518
+0, 31, 31, 1, 152064, 0x03cadc5f
+0, 32, 32, 1, 152064, 0x08906919
+0, 33, 33, 1, 152064, 0x3303ebe0
+0, 34, 34, 1, 152064, 0xa28676c5
+0, 35, 35, 1, 152064, 0x3900ecaf
+0, 36, 36, 1, 152064, 0xeb795a05
+0, 37, 37, 1, 152064, 0x870034df
+0, 38, 38, 1, 152064, 0x69b0527a
+0, 39, 39, 1, 152064, 0xb2b314f9
+0, 40, 40, 1, 152064, 0x1a44ea1a
+0, 41, 41, 1, 152064, 0xe6eaec87
+0, 42, 42, 1, 152064, 0xd9ad818e
+0, 43, 43, 1, 152064, 0x9c7ff76e
+0, 44, 44, 1, 152064, 0x74c45abb
+0, 45, 45, 1, 152064, 0x2f4fa5c6
+0, 46, 46, 1, 152064, 0x19620702
+0, 47, 47, 1, 152064, 0xfc9601f3
+0, 48, 48, 1, 152064, 0x33e0d8e7
+0, 49, 49, 1, 152064, 0xdf7f2a80
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
index 71020d94a2..f80c3be2e5 100644
--- a/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
@@ -1,31 +1,31 @@
#tb 0: 1/25
-0, 2, 2, 1, 518400, 0x99d0df36
-0, 4, 4, 1, 518400, 0xa8601c1a
-0, 6, 6, 1, 518400, 0x4a17d235
-0, 8, 8, 1, 518400, 0x75f23abf
-0, 10, 10, 1, 518400, 0x746aad53
-0, 12, 12, 1, 518400, 0xb0b8913e
-0, 14, 14, 1, 518400, 0x60a27f57
-0, 16, 16, 1, 518400, 0xfa227f3e
-0, 18, 18, 1, 518400, 0x7a1e57c2
-0, 20, 20, 1, 518400, 0xcbbaa84f
-0, 22, 22, 1, 518400, 0xf9c1bd13
-0, 24, 24, 1, 518400, 0x9e80caaf
-0, 26, 26, 1, 518400, 0x14cc6928
-0, 28, 28, 1, 518400, 0xca0353ef
-0, 30, 30, 1, 518400, 0xcad65e5f
-0, 32, 32, 1, 518400, 0xd5bc47b3
-0, 34, 34, 1, 518400, 0xa9893d36
-0, 36, 36, 1, 518400, 0x69bd9085
-0, 38, 38, 1, 518400, 0xff33c476
-0, 40, 40, 1, 518400, 0x9538adf7
-0, 42, 42, 1, 518400, 0xd4ff3b62
-0, 44, 44, 1, 518400, 0x021a11fd
-0, 46, 46, 1, 518400, 0x293e6f9f
-0, 48, 48, 1, 518400, 0x5d38e4c3
-0, 50, 50, 1, 518400, 0xd1f4ad49
-0, 52, 52, 1, 518400, 0xf13dd946
-0, 54, 54, 1, 518400, 0x0359e9ff
-0, 56, 56, 1, 518400, 0xb61098ad
-0, 58, 58, 1, 518400, 0xa855b11c
-0, 59, 59, 1, 518400, 0x7fcf9343
+0, 0, 0, 1, 518400, 0x99d0df36
+0, 1, 1, 1, 518400, 0xa8601c1a
+0, 2, 2, 1, 518400, 0x4a17d235
+0, 3, 3, 1, 518400, 0x75f23abf
+0, 4, 4, 1, 518400, 0x746aad53
+0, 5, 5, 1, 518400, 0xb0b8913e
+0, 6, 6, 1, 518400, 0x60a27f57
+0, 7, 7, 1, 518400, 0xfa227f3e
+0, 8, 8, 1, 518400, 0x7a1e57c2
+0, 9, 9, 1, 518400, 0xcbbaa84f
+0, 10, 10, 1, 518400, 0xf9c1bd13
+0, 11, 11, 1, 518400, 0x9e80caaf
+0, 12, 12, 1, 518400, 0x14cc6928
+0, 13, 13, 1, 518400, 0xca0353ef
+0, 14, 14, 1, 518400, 0xcad65e5f
+0, 15, 15, 1, 518400, 0xd5bc47b3
+0, 16, 16, 1, 518400, 0xa9893d36
+0, 17, 17, 1, 518400, 0x69bd9085
+0, 18, 18, 1, 518400, 0xff33c476
+0, 19, 19, 1, 518400, 0x9538adf7
+0, 20, 20, 1, 518400, 0xd4ff3b62
+0, 21, 21, 1, 518400, 0x021a11fd
+0, 22, 22, 1, 518400, 0x293e6f9f
+0, 23, 23, 1, 518400, 0x5d38e4c3
+0, 24, 24, 1, 518400, 0xd1f4ad49
+0, 25, 25, 1, 518400, 0xf13dd946
+0, 26, 26, 1, 518400, 0x0359e9ff
+0, 27, 27, 1, 518400, 0xb61098ad
+0, 28, 28, 1, 518400, 0xa855b11c
+0, 29, 29, 1, 518400, 0x7fcf9343
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
index 98b2461e0e..ed5e02eee6 100644
--- a/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
@@ -1,31 +1,31 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0xf6b83a0e
-0, 3, 3, 1, 518400, 0xc5e8b8ee
-0, 4, 4, 1, 518400, 0xb3bc6e43
-0, 5, 5, 1, 518400, 0x5b08dc73
-0, 6, 6, 1, 518400, 0x4a7f7690
-0, 8, 8, 1, 518400, 0x8a9f4275
-0, 10, 10, 1, 518400, 0xc7cb92fd
-0, 12, 12, 1, 518400, 0xc721e231
-0, 13, 13, 1, 518400, 0xfb31371b
-0, 14, 14, 1, 518400, 0xac57f5d9
-0, 15, 15, 1, 518400, 0x92b7debc
-0, 17, 17, 1, 518400, 0xfe3e533e
-0, 19, 19, 1, 518400, 0x1b3a7a72
-0, 21, 21, 1, 518400, 0x98df2d81
-0, 22, 22, 1, 518400, 0xe0ce9c52
-0, 23, 23, 1, 518400, 0x6a31166d
-0, 24, 24, 1, 518400, 0x64ffd4d2
-0, 26, 26, 1, 518400, 0x3ec062ef
-0, 28, 28, 1, 518400, 0x3480fae1
-0, 30, 30, 1, 518400, 0xa87ae4b7
-0, 31, 31, 1, 518400, 0xd301319f
-0, 32, 32, 1, 518400, 0xa9284989
-0, 33, 33, 1, 518400, 0x3de73b50
-0, 35, 35, 1, 518400, 0x30a79f84
-0, 37, 37, 1, 518400, 0x7d5152d4
-0, 39, 39, 1, 518400, 0x25514095
-0, 40, 40, 1, 518400, 0x1749a05f
-0, 41, 41, 1, 518400, 0x598139a7
-0, 43, 43, 1, 518400, 0x3cece862
-0, 44, 44, 1, 518400, 0xe1c27efe
+0, 0, 0, 1, 518400, 0xf6b83a0e
+0, 1, 1, 1, 518400, 0xc5e8b8ee
+0, 2, 2, 1, 518400, 0xb3bc6e43
+0, 3, 3, 1, 518400, 0x5b08dc73
+0, 4, 4, 1, 518400, 0x4a7f7690
+0, 5, 5, 1, 518400, 0x8a9f4275
+0, 6, 6, 1, 518400, 0xc7cb92fd
+0, 7, 7, 1, 518400, 0xc721e231
+0, 8, 8, 1, 518400, 0xfb31371b
+0, 9, 9, 1, 518400, 0xac57f5d9
+0, 10, 10, 1, 518400, 0x92b7debc
+0, 11, 11, 1, 518400, 0xfe3e533e
+0, 12, 12, 1, 518400, 0x1b3a7a72
+0, 13, 13, 1, 518400, 0x98df2d81
+0, 14, 14, 1, 518400, 0xe0ce9c52
+0, 15, 15, 1, 518400, 0x6a31166d
+0, 16, 16, 1, 518400, 0x64ffd4d2
+0, 17, 17, 1, 518400, 0x3ec062ef
+0, 18, 18, 1, 518400, 0x3480fae1
+0, 19, 19, 1, 518400, 0xa87ae4b7
+0, 20, 20, 1, 518400, 0xd301319f
+0, 21, 21, 1, 518400, 0xa9284989
+0, 22, 22, 1, 518400, 0x3de73b50
+0, 23, 23, 1, 518400, 0x30a79f84
+0, 24, 24, 1, 518400, 0x7d5152d4
+0, 25, 25, 1, 518400, 0x25514095
+0, 26, 26, 1, 518400, 0x1749a05f
+0, 27, 27, 1, 518400, 0x598139a7
+0, 28, 28, 1, 518400, 0x3cece862
+0, 29, 29, 1, 518400, 0xe1c27efe
diff --git a/tests/ref/fate/h264-conformance-cvfi1_sony_d b/tests/ref/fate/h264-conformance-cvfi1_sony_d
index 0c82f32415..195c7d6c96 100644
--- a/tests/ref/fate/h264-conformance-cvfi1_sony_d
+++ b/tests/ref/fate/h264-conformance-cvfi1_sony_d
@@ -1,18 +1,18 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0xd9444d71
-0, 3, 3, 1, 518400, 0x5d8928cd
-0, 5, 5, 1, 518400, 0xea5bc08b
-0, 7, 7, 1, 518400, 0xb4465d31
-0, 9, 9, 1, 518400, 0x983b5dbb
-0, 11, 11, 1, 518400, 0x54936746
-0, 13, 13, 1, 518400, 0x7ae38b02
-0, 15, 15, 1, 518400, 0xc2a0dd83
-0, 17, 17, 1, 518400, 0x61cac7a6
-0, 19, 19, 1, 518400, 0xb0038443
-0, 21, 21, 1, 518400, 0x16514296
-0, 23, 23, 1, 518400, 0xa68dd470
-0, 25, 25, 1, 518400, 0x2572f868
-0, 27, 27, 1, 518400, 0x770a3239
-0, 29, 29, 1, 518400, 0xdd04f6d2
-0, 31, 31, 1, 518400, 0xa5e5d01e
-0, 33, 33, 1, 518400, 0x5fe25c86
+0, 0, 0, 1, 518400, 0xd9444d71
+0, 1, 1, 1, 518400, 0x5d8928cd
+0, 2, 2, 1, 518400, 0xea5bc08b
+0, 3, 3, 1, 518400, 0xb4465d31
+0, 4, 4, 1, 518400, 0x983b5dbb
+0, 5, 5, 1, 518400, 0x54936746
+0, 6, 6, 1, 518400, 0x7ae38b02
+0, 7, 7, 1, 518400, 0xc2a0dd83
+0, 8, 8, 1, 518400, 0x61cac7a6
+0, 9, 9, 1, 518400, 0xb0038443
+0, 10, 10, 1, 518400, 0x16514296
+0, 11, 11, 1, 518400, 0xa68dd470
+0, 12, 12, 1, 518400, 0x2572f868
+0, 13, 13, 1, 518400, 0x770a3239
+0, 14, 14, 1, 518400, 0xdd04f6d2
+0, 15, 15, 1, 518400, 0xa5e5d01e
+0, 16, 16, 1, 518400, 0x5fe25c86
diff --git a/tests/ref/fate/h264-conformance-cvfi1_sva_c b/tests/ref/fate/h264-conformance-cvfi1_sva_c
index aa792f70d2..c19bc0d338 100644
--- a/tests/ref/fate/h264-conformance-cvfi1_sva_c
+++ b/tests/ref/fate/h264-conformance-cvfi1_sva_c
@@ -1,8 +1,8 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0x8f022263
-0, 3, 3, 1, 518400, 0x02692654
-0, 5, 5, 1, 518400, 0x55eff579
-0, 7, 7, 1, 518400, 0x6c1bdf1d
-0, 9, 9, 1, 518400, 0xbbedf5e4
-0, 11, 11, 1, 518400, 0xb90d740d
-0, 13, 13, 1, 518400, 0x81300adb
+0, 0, 0, 1, 518400, 0x8f022263
+0, 1, 1, 1, 518400, 0x02692654
+0, 2, 2, 1, 518400, 0x55eff579
+0, 3, 3, 1, 518400, 0x6c1bdf1d
+0, 4, 4, 1, 518400, 0xbbedf5e4
+0, 5, 5, 1, 518400, 0xb90d740d
+0, 6, 6, 1, 518400, 0x81300adb
diff --git a/tests/ref/fate/h264-conformance-cvfi2_sony_h b/tests/ref/fate/h264-conformance-cvfi2_sony_h
index db7836909c..0914e22951 100644
--- a/tests/ref/fate/h264-conformance-cvfi2_sony_h
+++ b/tests/ref/fate/h264-conformance-cvfi2_sony_h
@@ -1,18 +1,18 @@
#tb 0: 1/25
-0, 3, 3, 1, 518400, 0xd9444d71
-0, 5, 5, 1, 518400, 0x491faf75
-0, 7, 7, 1, 518400, 0xf8b4d15c
-0, 9, 9, 1, 518400, 0x99d9f60c
-0, 11, 11, 1, 518400, 0x46c17a6d
-0, 13, 13, 1, 518400, 0x30b9447d
-0, 15, 15, 1, 518400, 0x135d0c76
-0, 17, 17, 1, 518400, 0x1b831a3c
-0, 19, 19, 1, 518400, 0x5910def8
-0, 21, 21, 1, 518400, 0x8db90147
-0, 23, 23, 1, 518400, 0x6a2b79c7
-0, 25, 25, 1, 518400, 0xc8d302e5
-0, 27, 27, 1, 518400, 0x515bb024
-0, 29, 29, 1, 518400, 0xedf7836c
-0, 31, 31, 1, 518400, 0x7e247b9d
-0, 32, 32, 1, 518400, 0x10c9bb10
-0, 33, 33, 1, 518400, 0xe38e2807
+0, 0, 0, 1, 518400, 0xd9444d71
+0, 1, 1, 1, 518400, 0x491faf75
+0, 2, 2, 1, 518400, 0xf8b4d15c
+0, 3, 3, 1, 518400, 0x99d9f60c
+0, 4, 4, 1, 518400, 0x46c17a6d
+0, 5, 5, 1, 518400, 0x30b9447d
+0, 6, 6, 1, 518400, 0x135d0c76
+0, 7, 7, 1, 518400, 0x1b831a3c
+0, 8, 8, 1, 518400, 0x5910def8
+0, 9, 9, 1, 518400, 0x8db90147
+0, 10, 10, 1, 518400, 0x6a2b79c7
+0, 11, 11, 1, 518400, 0xc8d302e5
+0, 12, 12, 1, 518400, 0x515bb024
+0, 13, 13, 1, 518400, 0xedf7836c
+0, 14, 14, 1, 518400, 0x7e247b9d
+0, 15, 15, 1, 518400, 0x10c9bb10
+0, 16, 16, 1, 518400, 0xe38e2807
diff --git a/tests/ref/fate/h264-conformance-cvfi2_sva_c b/tests/ref/fate/h264-conformance-cvfi2_sva_c
index 063ec13c57..7c3162a7e0 100644
--- a/tests/ref/fate/h264-conformance-cvfi2_sva_c
+++ b/tests/ref/fate/h264-conformance-cvfi2_sva_c
@@ -1,14 +1,14 @@
#tb 0: 1/25
-0, 2, 2, 1, 518400, 0x4073cc0b
-0, 4, 4, 1, 518400, 0x5f599a48
-0, 6, 6, 1, 518400, 0xc6fe555a
-0, 8, 8, 1, 518400, 0xe63ac345
-0, 10, 10, 1, 518400, 0x9b4f0c5c
-0, 12, 12, 1, 518400, 0x98aaba2d
-0, 14, 14, 1, 518400, 0xd629bd09
-0, 16, 16, 1, 518400, 0xe9796c37
-0, 18, 18, 1, 518400, 0xba54d16e
-0, 20, 20, 1, 518400, 0xe396c3eb
-0, 22, 22, 1, 518400, 0x63ee4b81
-0, 24, 24, 1, 518400, 0x68ac6986
-0, 25, 25, 1, 518400, 0xe0d53000
+0, 0, 0, 1, 518400, 0x4073cc0b
+0, 1, 1, 1, 518400, 0x5f599a48
+0, 2, 2, 1, 518400, 0xc6fe555a
+0, 3, 3, 1, 518400, 0xe63ac345
+0, 4, 4, 1, 518400, 0x9b4f0c5c
+0, 5, 5, 1, 518400, 0x98aaba2d
+0, 6, 6, 1, 518400, 0xd629bd09
+0, 7, 7, 1, 518400, 0xe9796c37
+0, 8, 8, 1, 518400, 0xba54d16e
+0, 9, 9, 1, 518400, 0xe396c3eb
+0, 10, 10, 1, 518400, 0x63ee4b81
+0, 11, 11, 1, 518400, 0x68ac6986
+0, 12, 12, 1, 518400, 0xe0d53000
diff --git a/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e b/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
index bf2835641a..094fc9848f 100644
--- a/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
+++ b/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
@@ -1,9 +1,9 @@
#tb 0: 1/25
-0, 2, 2, 1, 518400, 0x80dffda2
-0, 4, 4, 1, 518400, 0x9450183b
-0, 6, 6, 1, 518400, 0x85d429a7
-0, 7, 7, 1, 518400, 0xe1f3b686
-0, 9, 9, 1, 518400, 0x2180c761
-0, 11, 11, 1, 518400, 0x30269c7c
-0, 12, 12, 1, 518400, 0xe9aa575a
-0, 13, 13, 1, 518400, 0x7b815a0a
+0, 0, 0, 1, 518400, 0x80dffda2
+0, 1, 1, 1, 518400, 0x9450183b
+0, 2, 2, 1, 518400, 0x85d429a7
+0, 3, 3, 1, 518400, 0xe1f3b686
+0, 4, 4, 1, 518400, 0x2180c761
+0, 5, 5, 1, 518400, 0x30269c7c
+0, 6, 6, 1, 518400, 0xe9aa575a
+0, 7, 7, 1, 518400, 0x7b815a0a
diff --git a/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b b/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
index 0670058d75..57fa2f7690 100644
--- a/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
+++ b/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
@@ -1,31 +1,31 @@
#tb 0: 1/25
-0, 2, 2, 1, 518400, 0xe9c7643e
-0, 4, 4, 1, 518400, 0xba7456ec
-0, 6, 6, 1, 518400, 0xdeb96749
-0, 8, 8, 1, 518400, 0xa101a986
-0, 10, 10, 1, 518400, 0x3db7baa5
-0, 12, 12, 1, 518400, 0xf3dfcec7
-0, 14, 14, 1, 518400, 0x79b4f537
-0, 16, 16, 1, 518400, 0x9e64fe68
-0, 18, 18, 1, 518400, 0x0e810b53
-0, 20, 20, 1, 518400, 0x20baf3b8
-0, 22, 22, 1, 518400, 0x0a49d341
-0, 24, 24, 1, 518400, 0xa8304ab5
-0, 26, 26, 1, 518400, 0x2600e98f
-0, 28, 28, 1, 518400, 0x9253e3e8
-0, 30, 30, 1, 518400, 0xd6e12783
-0, 32, 32, 1, 518400, 0x6894fc79
-0, 34, 34, 1, 518400, 0xfb60d3e3
-0, 36, 36, 1, 518400, 0x523602be
-0, 38, 38, 1, 518400, 0x4979f409
-0, 40, 40, 1, 518400, 0x50d4e2ab
-0, 42, 42, 1, 518400, 0xa8c2140a
-0, 44, 44, 1, 518400, 0x45c0bc15
-0, 46, 46, 1, 518400, 0xaef78cab
-0, 48, 48, 1, 518400, 0xec539d02
-0, 50, 50, 1, 518400, 0x602585ea
-0, 52, 52, 1, 518400, 0xda263463
-0, 54, 54, 1, 518400, 0xa03d8922
-0, 56, 56, 1, 518400, 0x43ea1c1d
-0, 58, 58, 1, 518400, 0xb1e055a6
-0, 59, 59, 1, 518400, 0x6fff9398
+0, 0, 0, 1, 518400, 0xe9c7643e
+0, 1, 1, 1, 518400, 0xba7456ec
+0, 2, 2, 1, 518400, 0xdeb96749
+0, 3, 3, 1, 518400, 0xa101a986
+0, 4, 4, 1, 518400, 0x3db7baa5
+0, 5, 5, 1, 518400, 0xf3dfcec7
+0, 6, 6, 1, 518400, 0x79b4f537
+0, 7, 7, 1, 518400, 0x9e64fe68
+0, 8, 8, 1, 518400, 0x0e810b53
+0, 9, 9, 1, 518400, 0x20baf3b8
+0, 10, 10, 1, 518400, 0x0a49d341
+0, 11, 11, 1, 518400, 0xa8304ab5
+0, 12, 12, 1, 518400, 0x2600e98f
+0, 13, 13, 1, 518400, 0x9253e3e8
+0, 14, 14, 1, 518400, 0xd6e12783
+0, 15, 15, 1, 518400, 0x6894fc79
+0, 16, 16, 1, 518400, 0xfb60d3e3
+0, 17, 17, 1, 518400, 0x523602be
+0, 18, 18, 1, 518400, 0x4979f409
+0, 19, 19, 1, 518400, 0x50d4e2ab
+0, 20, 20, 1, 518400, 0xa8c2140a
+0, 21, 21, 1, 518400, 0x45c0bc15
+0, 22, 22, 1, 518400, 0xaef78cab
+0, 23, 23, 1, 518400, 0xec539d02
+0, 24, 24, 1, 518400, 0x602585ea
+0, 25, 25, 1, 518400, 0xda263463
+0, 26, 26, 1, 518400, 0xa03d8922
+0, 27, 27, 1, 518400, 0x43ea1c1d
+0, 28, 28, 1, 518400, 0xb1e055a6
+0, 29, 29, 1, 518400, 0x6fff9398
diff --git a/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b b/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
index 7f66ba08e8..bc7e81e36d 100644
--- a/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
+++ b/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
@@ -1,31 +1,31 @@
#tb 0: 1/25
-0, 2, 2, 1, 518400, 0x7b2475e3
-0, 4, 4, 1, 518400, 0xda786a87
-0, 6, 6, 1, 518400, 0xb1dd8108
-0, 8, 8, 1, 518400, 0x760ed65d
-0, 10, 10, 1, 518400, 0x8632d20c
-0, 12, 12, 1, 518400, 0xdd81e625
-0, 14, 14, 1, 518400, 0x853f1c41
-0, 16, 16, 1, 518400, 0x20191585
-0, 18, 18, 1, 518400, 0x0367e357
-0, 20, 20, 1, 518400, 0x60521167
-0, 22, 22, 1, 518400, 0xa887d4cc
-0, 24, 24, 1, 518400, 0x9a450f9e
-0, 26, 26, 1, 518400, 0xe9620841
-0, 28, 28, 1, 518400, 0xb482fb0e
-0, 30, 30, 1, 518400, 0x7b79f670
-0, 32, 32, 1, 518400, 0x9d37f1d1
-0, 34, 34, 1, 518400, 0xe358d323
-0, 36, 36, 1, 518400, 0x62ade59c
-0, 38, 38, 1, 518400, 0xdd78da66
-0, 40, 40, 1, 518400, 0xd97b867b
-0, 42, 42, 1, 518400, 0x8a90cf8c
-0, 44, 44, 1, 518400, 0x9d386610
-0, 46, 46, 1, 518400, 0x2c590f46
-0, 48, 48, 1, 518400, 0x92662861
-0, 50, 50, 1, 518400, 0x6979f563
-0, 52, 52, 1, 518400, 0xdd0fa1b2
-0, 54, 54, 1, 518400, 0xccbf1c1c
-0, 56, 56, 1, 518400, 0x7e358112
-0, 58, 58, 1, 518400, 0xb7c0d89d
-0, 59, 59, 1, 518400, 0xc6b03973
+0, 0, 0, 1, 518400, 0x7b2475e3
+0, 1, 1, 1, 518400, 0xda786a87
+0, 2, 2, 1, 518400, 0xb1dd8108
+0, 3, 3, 1, 518400, 0x760ed65d
+0, 4, 4, 1, 518400, 0x8632d20c
+0, 5, 5, 1, 518400, 0xdd81e625
+0, 6, 6, 1, 518400, 0x853f1c41
+0, 7, 7, 1, 518400, 0x20191585
+0, 8, 8, 1, 518400, 0x0367e357
+0, 9, 9, 1, 518400, 0x60521167
+0, 10, 10, 1, 518400, 0xa887d4cc
+0, 11, 11, 1, 518400, 0x9a450f9e
+0, 12, 12, 1, 518400, 0xe9620841
+0, 13, 13, 1, 518400, 0xb482fb0e
+0, 14, 14, 1, 518400, 0x7b79f670
+0, 15, 15, 1, 518400, 0x9d37f1d1
+0, 16, 16, 1, 518400, 0xe358d323
+0, 17, 17, 1, 518400, 0x62ade59c
+0, 18, 18, 1, 518400, 0xdd78da66
+0, 19, 19, 1, 518400, 0xd97b867b
+0, 20, 20, 1, 518400, 0x8a90cf8c
+0, 21, 21, 1, 518400, 0x9d386610
+0, 22, 22, 1, 518400, 0x2c590f46
+0, 23, 23, 1, 518400, 0x92662861
+0, 24, 24, 1, 518400, 0x6979f563
+0, 25, 25, 1, 518400, 0xdd0fa1b2
+0, 26, 26, 1, 518400, 0xccbf1c1c
+0, 27, 27, 1, 518400, 0x7e358112
+0, 28, 28, 1, 518400, 0xb7c0d89d
+0, 29, 29, 1, 518400, 0xc6b03973
diff --git a/tests/ref/fate/h264-conformance-cvnlfi1_sony_c b/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
index d2a1e13b13..aa3c220fca 100644
--- a/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
+++ b/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
@@ -1,18 +1,18 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0x0fbb4e71
-0, 3, 3, 1, 518400, 0x4b816734
-0, 5, 5, 1, 518400, 0x0c350f19
-0, 7, 7, 1, 518400, 0xda049cb6
-0, 9, 9, 1, 518400, 0x1f3e7bb9
-0, 11, 11, 1, 518400, 0x995cbe66
-0, 13, 13, 1, 518400, 0x07f7e65c
-0, 15, 15, 1, 518400, 0xfcb7487f
-0, 17, 17, 1, 518400, 0xb080f48a
-0, 19, 19, 1, 518400, 0x3ef5b7e4
-0, 21, 21, 1, 518400, 0xa1518e1c
-0, 23, 23, 1, 518400, 0xb36f1cc9
-0, 25, 25, 1, 518400, 0x86ea48af
-0, 27, 27, 1, 518400, 0xe42373b7
-0, 29, 29, 1, 518400, 0xa8435828
-0, 31, 31, 1, 518400, 0xc942ea0e
-0, 33, 33, 1, 518400, 0xcc597514
+0, 0, 0, 1, 518400, 0x0fbb4e71
+0, 1, 1, 1, 518400, 0x4b816734
+0, 2, 2, 1, 518400, 0x0c350f19
+0, 3, 3, 1, 518400, 0xda049cb6
+0, 4, 4, 1, 518400, 0x1f3e7bb9
+0, 5, 5, 1, 518400, 0x995cbe66
+0, 6, 6, 1, 518400, 0x07f7e65c
+0, 7, 7, 1, 518400, 0xfcb7487f
+0, 8, 8, 1, 518400, 0xb080f48a
+0, 9, 9, 1, 518400, 0x3ef5b7e4
+0, 10, 10, 1, 518400, 0xa1518e1c
+0, 11, 11, 1, 518400, 0xb36f1cc9
+0, 12, 12, 1, 518400, 0x86ea48af
+0, 13, 13, 1, 518400, 0xe42373b7
+0, 14, 14, 1, 518400, 0xa8435828
+0, 15, 15, 1, 518400, 0xc942ea0e
+0, 16, 16, 1, 518400, 0xcc597514
diff --git a/tests/ref/fate/h264-conformance-cvnlfi2_sony_h b/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
index 5c4022dbe4..fe2e4d14db 100644
--- a/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
+++ b/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
@@ -1,18 +1,18 @@
#tb 0: 1/25
-0, 3, 3, 1, 518400, 0x0fbb4e71
-0, 5, 5, 1, 518400, 0xc46bec04
-0, 7, 7, 1, 518400, 0xc50ffc1d
-0, 9, 9, 1, 518400, 0x684b07b7
-0, 11, 11, 1, 518400, 0xde799af0
-0, 13, 13, 1, 518400, 0xed497b27
-0, 15, 15, 1, 518400, 0x3e9d1e3a
-0, 17, 17, 1, 518400, 0x154d3c5c
-0, 19, 19, 1, 518400, 0x5257e37c
-0, 21, 21, 1, 518400, 0x6e15139a
-0, 23, 23, 1, 518400, 0x5dc39c59
-0, 25, 25, 1, 518400, 0xe1803100
-0, 27, 27, 1, 518400, 0xb4d4d535
-0, 29, 29, 1, 518400, 0x7a97a25d
-0, 31, 31, 1, 518400, 0xf86b8923
-0, 32, 32, 1, 518400, 0x3355be98
-0, 33, 33, 1, 518400, 0x8f555830
+0, 0, 0, 1, 518400, 0x0fbb4e71
+0, 1, 1, 1, 518400, 0xc46bec04
+0, 2, 2, 1, 518400, 0xc50ffc1d
+0, 3, 3, 1, 518400, 0x684b07b7
+0, 4, 4, 1, 518400, 0xde799af0
+0, 5, 5, 1, 518400, 0xed497b27
+0, 6, 6, 1, 518400, 0x3e9d1e3a
+0, 7, 7, 1, 518400, 0x154d3c5c
+0, 8, 8, 1, 518400, 0x5257e37c
+0, 9, 9, 1, 518400, 0x6e15139a
+0, 10, 10, 1, 518400, 0x5dc39c59
+0, 11, 11, 1, 518400, 0xe1803100
+0, 12, 12, 1, 518400, 0xb4d4d535
+0, 13, 13, 1, 518400, 0x7a97a25d
+0, 14, 14, 1, 518400, 0xf86b8923
+0, 15, 15, 1, 518400, 0x3355be98
+0, 16, 16, 1, 518400, 0x8f555830
diff --git a/tests/ref/fate/h264-conformance-cvpa1_toshiba_b b/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
index 0253e1a781..fd0911bb5f 100644
--- a/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
+++ b/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
@@ -1,91 +1,91 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x128cd77a
-0, 3, 3, 1, 152064, 0x565b9fc1
-0, 5, 5, 1, 152064, 0xbe322679
-0, 7, 7, 1, 152064, 0x0ea4238f
-0, 9, 9, 1, 152064, 0x1e08fb3c
-0, 11, 11, 1, 152064, 0x6da3a93c
-0, 13, 13, 1, 152064, 0x75e5b181
-0, 14, 14, 1, 152064, 0xa0b39334
-0, 15, 15, 1, 152064, 0xa0d10d6d
-0, 16, 16, 1, 152064, 0x33842bcb
-0, 17, 17, 1, 152064, 0x9a74e1e4
-0, 18, 18, 1, 152064, 0xc2037244
-0, 19, 19, 1, 152064, 0x364b8ae4
-0, 20, 20, 1, 152064, 0x18c04971
-0, 22, 22, 1, 152064, 0x7234ecb5
-0, 23, 23, 1, 152064, 0x3719f8bc
-0, 25, 25, 1, 152064, 0x1285ead1
-0, 26, 26, 1, 152064, 0xd3bfab18
-0, 28, 28, 1, 152064, 0x898111e2
-0, 30, 30, 1, 152064, 0x681c15fc
-0, 31, 31, 1, 152064, 0x8e501572
-0, 33, 33, 1, 152064, 0xd7c838be
-0, 35, 35, 1, 152064, 0xede424b2
-0, 36, 36, 1, 152064, 0xcfc20240
-0, 38, 38, 1, 152064, 0x13992e86
-0, 40, 40, 1, 152064, 0x56fb251a
-0, 41, 41, 1, 152064, 0xee9be320
-0, 42, 42, 1, 152064, 0xea650153
-0, 44, 44, 1, 152064, 0x2cb6dabe
-0, 45, 45, 1, 152064, 0xf44fa4b5
-0, 47, 47, 1, 152064, 0xdac2adff
-0, 48, 48, 1, 152064, 0x9e15a1dc
-0, 50, 50, 1, 152064, 0x28d00970
-0, 51, 51, 1, 152064, 0xe4277347
-0, 52, 52, 1, 152064, 0xebd25ad1
-0, 53, 53, 1, 152064, 0x029402da
-0, 55, 55, 1, 152064, 0x1a2311ef
-0, 56, 56, 1, 152064, 0xb86bf96a
-0, 57, 57, 1, 152064, 0x67d7a5b0
-0, 59, 59, 1, 152064, 0x573abc2d
-0, 60, 60, 1, 152064, 0xbe97dec0
-0, 61, 61, 1, 152064, 0x592b91a4
-0, 63, 63, 1, 152064, 0x9adda65e
-0, 64, 64, 1, 152064, 0x0354b2cb
-0, 65, 65, 1, 152064, 0x91e27ff9
-0, 66, 66, 1, 152064, 0x389f8625
-0, 68, 68, 1, 152064, 0x90175850
-0, 69, 69, 1, 152064, 0x2d36c427
-0, 71, 71, 1, 152064, 0xc0dd14ab
-0, 73, 73, 1, 152064, 0xd49bf131
-0, 74, 74, 1, 152064, 0x0d4a9b92
-0, 75, 75, 1, 152064, 0xae9bb2f1
-0, 76, 76, 1, 152064, 0x36847ade
-0, 77, 77, 1, 152064, 0x74810382
-0, 78, 78, 1, 152064, 0xc56d1d9f
-0, 79, 79, 1, 152064, 0xcfefe3ae
-0, 81, 81, 1, 152064, 0xeaa39353
-0, 83, 83, 1, 152064, 0x14289aef
-0, 84, 84, 1, 152064, 0x74ba8f3b
-0, 86, 86, 1, 152064, 0xdcaa518d
-0, 88, 88, 1, 152064, 0x6e4881c2
-0, 90, 90, 1, 152064, 0xa4db767d
-0, 92, 92, 1, 152064, 0x239b0b19
-0, 94, 94, 1, 152064, 0x5d054236
-0, 96, 96, 1, 152064, 0x6f392d7c
-0, 98, 98, 1, 152064, 0x5c2af146
-0, 100, 100, 1, 152064, 0x26b439af
-0, 102, 102, 1, 152064, 0xba7043ab
-0, 103, 103, 1, 152064, 0x0816000c
-0, 105, 105, 1, 152064, 0x3a713c05
-0, 106, 106, 1, 152064, 0xb3111f6d
-0, 108, 108, 1, 152064, 0xdbf8dae2
-0, 110, 110, 1, 152064, 0x09ddf22e
-0, 112, 112, 1, 152064, 0x8871fa7e
-0, 113, 113, 1, 152064, 0x9f5db7a1
-0, 114, 114, 1, 152064, 0xcc38f225
-0, 116, 116, 1, 152064, 0xa1d18df9
-0, 117, 117, 1, 152064, 0x9b1c5d6a
-0, 118, 118, 1, 152064, 0x9f2bc696
-0, 120, 120, 1, 152064, 0xc39bd11a
-0, 122, 122, 1, 152064, 0x4ceca7d0
-0, 124, 124, 1, 152064, 0x63a60f1d
-0, 126, 126, 1, 152064, 0x4cd31f28
-0, 128, 128, 1, 152064, 0x9c9af5d1
-0, 130, 130, 1, 152064, 0x6def65fc
-0, 131, 131, 1, 152064, 0x1011466d
-0, 133, 133, 1, 152064, 0xfeca406d
-0, 135, 135, 1, 152064, 0xd1ca8a1e
-0, 136, 136, 1, 152064, 0x30caa195
-0, 137, 137, 1, 152064, 0x31a09a48
+0, 0, 0, 1, 152064, 0x128cd77a
+0, 1, 1, 1, 152064, 0x565b9fc1
+0, 2, 2, 1, 152064, 0xbe322679
+0, 3, 3, 1, 152064, 0x0ea4238f
+0, 4, 4, 1, 152064, 0x1e08fb3c
+0, 5, 5, 1, 152064, 0x6da3a93c
+0, 6, 6, 1, 152064, 0x75e5b181
+0, 7, 7, 1, 152064, 0xa0b39334
+0, 8, 8, 1, 152064, 0xa0d10d6d
+0, 9, 9, 1, 152064, 0x33842bcb
+0, 10, 10, 1, 152064, 0x9a74e1e4
+0, 11, 11, 1, 152064, 0xc2037244
+0, 12, 12, 1, 152064, 0x364b8ae4
+0, 13, 13, 1, 152064, 0x18c04971
+0, 14, 14, 1, 152064, 0x7234ecb5
+0, 15, 15, 1, 152064, 0x3719f8bc
+0, 16, 16, 1, 152064, 0x1285ead1
+0, 17, 17, 1, 152064, 0xd3bfab18
+0, 18, 18, 1, 152064, 0x898111e2
+0, 19, 19, 1, 152064, 0x681c15fc
+0, 20, 20, 1, 152064, 0x8e501572
+0, 21, 21, 1, 152064, 0xd7c838be
+0, 22, 22, 1, 152064, 0xede424b2
+0, 23, 23, 1, 152064, 0xcfc20240
+0, 24, 24, 1, 152064, 0x13992e86
+0, 25, 25, 1, 152064, 0x56fb251a
+0, 26, 26, 1, 152064, 0xee9be320
+0, 27, 27, 1, 152064, 0xea650153
+0, 28, 28, 1, 152064, 0x2cb6dabe
+0, 29, 29, 1, 152064, 0xf44fa4b5
+0, 30, 30, 1, 152064, 0xdac2adff
+0, 31, 31, 1, 152064, 0x9e15a1dc
+0, 32, 32, 1, 152064, 0x28d00970
+0, 33, 33, 1, 152064, 0xe4277347
+0, 34, 34, 1, 152064, 0xebd25ad1
+0, 35, 35, 1, 152064, 0x029402da
+0, 36, 36, 1, 152064, 0x1a2311ef
+0, 37, 37, 1, 152064, 0xb86bf96a
+0, 38, 38, 1, 152064, 0x67d7a5b0
+0, 39, 39, 1, 152064, 0x573abc2d
+0, 40, 40, 1, 152064, 0xbe97dec0
+0, 41, 41, 1, 152064, 0x592b91a4
+0, 42, 42, 1, 152064, 0x9adda65e
+0, 43, 43, 1, 152064, 0x0354b2cb
+0, 44, 44, 1, 152064, 0x91e27ff9
+0, 45, 45, 1, 152064, 0x389f8625
+0, 46, 46, 1, 152064, 0x90175850
+0, 47, 47, 1, 152064, 0x2d36c427
+0, 48, 48, 1, 152064, 0xc0dd14ab
+0, 49, 49, 1, 152064, 0xd49bf131
+0, 50, 50, 1, 152064, 0x0d4a9b92
+0, 51, 51, 1, 152064, 0xae9bb2f1
+0, 52, 52, 1, 152064, 0x36847ade
+0, 53, 53, 1, 152064, 0x74810382
+0, 54, 54, 1, 152064, 0xc56d1d9f
+0, 55, 55, 1, 152064, 0xcfefe3ae
+0, 56, 56, 1, 152064, 0xeaa39353
+0, 57, 57, 1, 152064, 0x14289aef
+0, 58, 58, 1, 152064, 0x74ba8f3b
+0, 59, 59, 1, 152064, 0xdcaa518d
+0, 60, 60, 1, 152064, 0x6e4881c2
+0, 61, 61, 1, 152064, 0xa4db767d
+0, 62, 62, 1, 152064, 0x239b0b19
+0, 63, 63, 1, 152064, 0x5d054236
+0, 64, 64, 1, 152064, 0x6f392d7c
+0, 65, 65, 1, 152064, 0x5c2af146
+0, 66, 66, 1, 152064, 0x26b439af
+0, 67, 67, 1, 152064, 0xba7043ab
+0, 68, 68, 1, 152064, 0x0816000c
+0, 69, 69, 1, 152064, 0x3a713c05
+0, 70, 70, 1, 152064, 0xb3111f6d
+0, 71, 71, 1, 152064, 0xdbf8dae2
+0, 72, 72, 1, 152064, 0x09ddf22e
+0, 73, 73, 1, 152064, 0x8871fa7e
+0, 74, 74, 1, 152064, 0x9f5db7a1
+0, 75, 75, 1, 152064, 0xcc38f225
+0, 76, 76, 1, 152064, 0xa1d18df9
+0, 77, 77, 1, 152064, 0x9b1c5d6a
+0, 78, 78, 1, 152064, 0x9f2bc696
+0, 79, 79, 1, 152064, 0xc39bd11a
+0, 80, 80, 1, 152064, 0x4ceca7d0
+0, 81, 81, 1, 152064, 0x63a60f1d
+0, 82, 82, 1, 152064, 0x4cd31f28
+0, 83, 83, 1, 152064, 0x9c9af5d1
+0, 84, 84, 1, 152064, 0x6def65fc
+0, 85, 85, 1, 152064, 0x1011466d
+0, 86, 86, 1, 152064, 0xfeca406d
+0, 87, 87, 1, 152064, 0xd1ca8a1e
+0, 88, 88, 1, 152064, 0x30caa195
+0, 89, 89, 1, 152064, 0x31a09a48
diff --git a/tests/ref/fate/h264-conformance-fi1_sony_e b/tests/ref/fate/h264-conformance-fi1_sony_e
index 2e675b9e35..6b5e0dbd52 100644
--- a/tests/ref/fate/h264-conformance-fi1_sony_e
+++ b/tests/ref/fate/h264-conformance-fi1_sony_e
@@ -1,18 +1,18 @@
#tb 0: 1/25
-0, 1, 1, 1, 36864, 0x3d54d3e3
-0, 3, 3, 1, 36864, 0xa9573ef0
-0, 5, 5, 1, 36864, 0x0ea5f263
-0, 7, 7, 1, 36864, 0x5a849fb9
-0, 9, 9, 1, 36864, 0x7ddb1eff
-0, 11, 11, 1, 36864, 0x5e73e3b7
-0, 13, 13, 1, 36864, 0x7d50d329
-0, 15, 15, 1, 36864, 0xf2c2cd27
-0, 17, 17, 1, 36864, 0xdf4f4628
-0, 19, 19, 1, 36864, 0xddd6d5be
-0, 21, 21, 1, 36864, 0xb530e1aa
-0, 23, 23, 1, 36864, 0xeca42470
-0, 25, 25, 1, 36864, 0xa5701caf
-0, 27, 27, 1, 36864, 0x6f5d28fc
-0, 29, 29, 1, 36864, 0xd4ab4ab2
-0, 31, 31, 1, 36864, 0xf2dfcc22
-0, 33, 33, 1, 36864, 0xcaa87e79
+0, 0, 0, 1, 36864, 0x3d54d3e3
+0, 1, 1, 1, 36864, 0xa9573ef0
+0, 2, 2, 1, 36864, 0x0ea5f263
+0, 3, 3, 1, 36864, 0x5a849fb9
+0, 4, 4, 1, 36864, 0x7ddb1eff
+0, 5, 5, 1, 36864, 0x5e73e3b7
+0, 6, 6, 1, 36864, 0x7d50d329
+0, 7, 7, 1, 36864, 0xf2c2cd27
+0, 8, 8, 1, 36864, 0xdf4f4628
+0, 9, 9, 1, 36864, 0xddd6d5be
+0, 10, 10, 1, 36864, 0xb530e1aa
+0, 11, 11, 1, 36864, 0xeca42470
+0, 12, 12, 1, 36864, 0xa5701caf
+0, 13, 13, 1, 36864, 0x6f5d28fc
+0, 14, 14, 1, 36864, 0xd4ab4ab2
+0, 15, 15, 1, 36864, 0xf2dfcc22
+0, 16, 16, 1, 36864, 0xcaa87e79
diff --git a/tests/ref/fate/h264-conformance-frext-bcrm_freh10 b/tests/ref/fate/h264-conformance-frext-bcrm_freh10
index 351d2b7c6c..272a4aa235 100644
--- a/tests/ref/fate/h264-conformance-frext-bcrm_freh10
+++ b/tests/ref/fate/h264-conformance-frext-bcrm_freh10
@@ -1,101 +1,101 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0xbdc2b880
-0, 4, 4, 1, 152064, 0x4ebf93fe
-0, 6, 6, 1, 152064, 0xe30d6871
-0, 8, 8, 1, 152064, 0x04f46b9b
-0, 10, 10, 1, 152064, 0xd7dd219a
-0, 12, 12, 1, 152064, 0x02fc6511
-0, 14, 14, 1, 152064, 0x98868faa
-0, 16, 16, 1, 152064, 0x54b94f92
-0, 18, 18, 1, 152064, 0xe3b6be4b
-0, 20, 20, 1, 152064, 0xf148cf10
-0, 22, 22, 1, 152064, 0xda3239b8
-0, 24, 24, 1, 152064, 0x6c5d7331
-0, 26, 26, 1, 152064, 0x825f1fea
-0, 28, 28, 1, 152064, 0x47791056
-0, 30, 30, 1, 152064, 0xc08e8a58
-0, 32, 32, 1, 152064, 0x020299f3
-0, 34, 34, 1, 152064, 0x0dfd4457
-0, 36, 36, 1, 152064, 0xcf005e68
-0, 38, 38, 1, 152064, 0x1f9e2c32
-0, 40, 40, 1, 152064, 0xa8359324
-0, 42, 42, 1, 152064, 0x4b03752d
-0, 44, 44, 1, 152064, 0xd6281621
-0, 46, 46, 1, 152064, 0xc97ac928
-0, 48, 48, 1, 152064, 0xded90dcd
-0, 50, 50, 1, 152064, 0xd6883255
-0, 52, 52, 1, 152064, 0x6edb4d4f
-0, 54, 54, 1, 152064, 0xd6f93a80
-0, 56, 56, 1, 152064, 0x163d6153
-0, 58, 58, 1, 152064, 0x04b90c06
-0, 60, 60, 1, 152064, 0xee8730c1
-0, 62, 62, 1, 152064, 0xd5f5c669
-0, 64, 64, 1, 152064, 0xcc600b1f
-0, 66, 66, 1, 152064, 0x15ddde03
-0, 68, 68, 1, 152064, 0xd0388dd0
-0, 70, 70, 1, 152064, 0xa292ab7d
-0, 72, 72, 1, 152064, 0xacf584e9
-0, 74, 74, 1, 152064, 0xcef42714
-0, 76, 76, 1, 152064, 0xeb162f35
-0, 78, 78, 1, 152064, 0x0a07de7b
-0, 80, 80, 1, 152064, 0x7ae76c81
-0, 82, 82, 1, 152064, 0x139c8fda
-0, 84, 84, 1, 152064, 0x43724411
-0, 86, 86, 1, 152064, 0x07b2ddea
-0, 88, 88, 1, 152064, 0x831a1cc7
-0, 90, 90, 1, 152064, 0x092f5073
-0, 92, 92, 1, 152064, 0xe5b6d380
-0, 94, 94, 1, 152064, 0xdd30d69e
-0, 96, 96, 1, 152064, 0x887020b2
-0, 98, 98, 1, 152064, 0x84436510
-0, 100, 100, 1, 152064, 0x49f63606
-0, 102, 102, 1, 152064, 0x6b96e959
-0, 104, 104, 1, 152064, 0xc6247cc7
-0, 106, 106, 1, 152064, 0x7a67c532
-0, 108, 108, 1, 152064, 0x93f4c476
-0, 110, 110, 1, 152064, 0x3c119654
-0, 112, 112, 1, 152064, 0xa45f7c72
-0, 114, 114, 1, 152064, 0x2ac50cb0
-0, 116, 116, 1, 152064, 0x9bf16d06
-0, 118, 118, 1, 152064, 0xfa0750d9
-0, 120, 120, 1, 152064, 0x02197630
-0, 122, 122, 1, 152064, 0x6d44f9b5
-0, 124, 124, 1, 152064, 0x86b211f5
-0, 126, 126, 1, 152064, 0xf4fda5d0
-0, 128, 128, 1, 152064, 0x36f840a7
-0, 130, 130, 1, 152064, 0x42412992
-0, 132, 132, 1, 152064, 0xd0c9ba37
-0, 134, 134, 1, 152064, 0xc40eba62
-0, 136, 136, 1, 152064, 0x2d093b53
-0, 138, 138, 1, 152064, 0xee39c69c
-0, 140, 140, 1, 152064, 0xcbbf8968
-0, 142, 142, 1, 152064, 0xfddc1704
-0, 144, 144, 1, 152064, 0x8dc47c61
-0, 146, 146, 1, 152064, 0xf15580bf
-0, 148, 148, 1, 152064, 0x9c71a8b0
-0, 150, 150, 1, 152064, 0x19b90b9f
-0, 152, 152, 1, 152064, 0xb65ae287
-0, 154, 154, 1, 152064, 0xf265693d
-0, 156, 156, 1, 152064, 0x721714a1
-0, 158, 158, 1, 152064, 0x383e8ac5
-0, 160, 160, 1, 152064, 0x02558677
-0, 162, 162, 1, 152064, 0xdaab3cdf
-0, 164, 164, 1, 152064, 0xc939a2f6
-0, 166, 166, 1, 152064, 0x977afa7f
-0, 168, 168, 1, 152064, 0xe5e65f35
-0, 170, 170, 1, 152064, 0x247546fa
-0, 172, 172, 1, 152064, 0x49ff2094
-0, 174, 174, 1, 152064, 0x9fd58cda
-0, 176, 176, 1, 152064, 0x3e31b6e3
-0, 178, 178, 1, 152064, 0x75c6d796
-0, 180, 180, 1, 152064, 0x4ab3e7bb
-0, 182, 182, 1, 152064, 0x393935ea
-0, 184, 184, 1, 152064, 0xc8e62905
-0, 186, 186, 1, 152064, 0xbb149e61
-0, 188, 188, 1, 152064, 0x2553c4c5
-0, 190, 190, 1, 152064, 0x7f82a8b4
-0, 192, 192, 1, 152064, 0x26ef31e6
-0, 194, 194, 1, 152064, 0xf029744a
-0, 196, 196, 1, 152064, 0x0a6f191a
-0, 198, 198, 1, 152064, 0x55808643
-0, 199, 199, 1, 152064, 0x27576172
+0, 0, 0, 1, 152064, 0xbdc2b880
+0, 1, 1, 1, 152064, 0x4ebf93fe
+0, 2, 2, 1, 152064, 0xe30d6871
+0, 3, 3, 1, 152064, 0x04f46b9b
+0, 4, 4, 1, 152064, 0xd7dd219a
+0, 5, 5, 1, 152064, 0x02fc6511
+0, 6, 6, 1, 152064, 0x98868faa
+0, 7, 7, 1, 152064, 0x54b94f92
+0, 8, 8, 1, 152064, 0xe3b6be4b
+0, 9, 9, 1, 152064, 0xf148cf10
+0, 10, 10, 1, 152064, 0xda3239b8
+0, 11, 11, 1, 152064, 0x6c5d7331
+0, 12, 12, 1, 152064, 0x825f1fea
+0, 13, 13, 1, 152064, 0x47791056
+0, 14, 14, 1, 152064, 0xc08e8a58
+0, 15, 15, 1, 152064, 0x020299f3
+0, 16, 16, 1, 152064, 0x0dfd4457
+0, 17, 17, 1, 152064, 0xcf005e68
+0, 18, 18, 1, 152064, 0x1f9e2c32
+0, 19, 19, 1, 152064, 0xa8359324
+0, 20, 20, 1, 152064, 0x4b03752d
+0, 21, 21, 1, 152064, 0xd6281621
+0, 22, 22, 1, 152064, 0xc97ac928
+0, 23, 23, 1, 152064, 0xded90dcd
+0, 24, 24, 1, 152064, 0xd6883255
+0, 25, 25, 1, 152064, 0x6edb4d4f
+0, 26, 26, 1, 152064, 0xd6f93a80
+0, 27, 27, 1, 152064, 0x163d6153
+0, 28, 28, 1, 152064, 0x04b90c06
+0, 29, 29, 1, 152064, 0xee8730c1
+0, 30, 30, 1, 152064, 0xd5f5c669
+0, 31, 31, 1, 152064, 0xcc600b1f
+0, 32, 32, 1, 152064, 0x15ddde03
+0, 33, 33, 1, 152064, 0xd0388dd0
+0, 34, 34, 1, 152064, 0xa292ab7d
+0, 35, 35, 1, 152064, 0xacf584e9
+0, 36, 36, 1, 152064, 0xcef42714
+0, 37, 37, 1, 152064, 0xeb162f35
+0, 38, 38, 1, 152064, 0x0a07de7b
+0, 39, 39, 1, 152064, 0x7ae76c81
+0, 40, 40, 1, 152064, 0x139c8fda
+0, 41, 41, 1, 152064, 0x43724411
+0, 42, 42, 1, 152064, 0x07b2ddea
+0, 43, 43, 1, 152064, 0x831a1cc7
+0, 44, 44, 1, 152064, 0x092f5073
+0, 45, 45, 1, 152064, 0xe5b6d380
+0, 46, 46, 1, 152064, 0xdd30d69e
+0, 47, 47, 1, 152064, 0x887020b2
+0, 48, 48, 1, 152064, 0x84436510
+0, 49, 49, 1, 152064, 0x49f63606
+0, 50, 50, 1, 152064, 0x6b96e959
+0, 51, 51, 1, 152064, 0xc6247cc7
+0, 52, 52, 1, 152064, 0x7a67c532
+0, 53, 53, 1, 152064, 0x93f4c476
+0, 54, 54, 1, 152064, 0x3c119654
+0, 55, 55, 1, 152064, 0xa45f7c72
+0, 56, 56, 1, 152064, 0x2ac50cb0
+0, 57, 57, 1, 152064, 0x9bf16d06
+0, 58, 58, 1, 152064, 0xfa0750d9
+0, 59, 59, 1, 152064, 0x02197630
+0, 60, 60, 1, 152064, 0x6d44f9b5
+0, 61, 61, 1, 152064, 0x86b211f5
+0, 62, 62, 1, 152064, 0xf4fda5d0
+0, 63, 63, 1, 152064, 0x36f840a7
+0, 64, 64, 1, 152064, 0x42412992
+0, 65, 65, 1, 152064, 0xd0c9ba37
+0, 66, 66, 1, 152064, 0xc40eba62
+0, 67, 67, 1, 152064, 0x2d093b53
+0, 68, 68, 1, 152064, 0xee39c69c
+0, 69, 69, 1, 152064, 0xcbbf8968
+0, 70, 70, 1, 152064, 0xfddc1704
+0, 71, 71, 1, 152064, 0x8dc47c61
+0, 72, 72, 1, 152064, 0xf15580bf
+0, 73, 73, 1, 152064, 0x9c71a8b0
+0, 74, 74, 1, 152064, 0x19b90b9f
+0, 75, 75, 1, 152064, 0xb65ae287
+0, 76, 76, 1, 152064, 0xf265693d
+0, 77, 77, 1, 152064, 0x721714a1
+0, 78, 78, 1, 152064, 0x383e8ac5
+0, 79, 79, 1, 152064, 0x02558677
+0, 80, 80, 1, 152064, 0xdaab3cdf
+0, 81, 81, 1, 152064, 0xc939a2f6
+0, 82, 82, 1, 152064, 0x977afa7f
+0, 83, 83, 1, 152064, 0xe5e65f35
+0, 84, 84, 1, 152064, 0x247546fa
+0, 85, 85, 1, 152064, 0x49ff2094
+0, 86, 86, 1, 152064, 0x9fd58cda
+0, 87, 87, 1, 152064, 0x3e31b6e3
+0, 88, 88, 1, 152064, 0x75c6d796
+0, 89, 89, 1, 152064, 0x4ab3e7bb
+0, 90, 90, 1, 152064, 0x393935ea
+0, 91, 91, 1, 152064, 0xc8e62905
+0, 92, 92, 1, 152064, 0xbb149e61
+0, 93, 93, 1, 152064, 0x2553c4c5
+0, 94, 94, 1, 152064, 0x7f82a8b4
+0, 95, 95, 1, 152064, 0x26ef31e6
+0, 96, 96, 1, 152064, 0xf029744a
+0, 97, 97, 1, 152064, 0x0a6f191a
+0, 98, 98, 1, 152064, 0x55808643
+0, 99, 99, 1, 152064, 0x27576172
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh11 b/tests/ref/fate/h264-conformance-frext-brcm_freh11
index c3c2975325..3183c4dd0e 100644
--- a/tests/ref/fate/h264-conformance-frext-brcm_freh11
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh11
@@ -1,101 +1,101 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x9744ac59
-0, 4, 4, 1, 152064, 0x3eba88bf
-0, 6, 6, 1, 152064, 0xd4105c5a
-0, 8, 8, 1, 152064, 0x452966a3
-0, 10, 10, 1, 152064, 0x30071add
-0, 12, 12, 1, 152064, 0x0eb75245
-0, 14, 14, 1, 152064, 0x4daa80fa
-0, 16, 16, 1, 152064, 0xf53a43a1
-0, 18, 18, 1, 152064, 0xa55ab43d
-0, 20, 20, 1, 152064, 0x915ec82e
-0, 22, 22, 1, 152064, 0xadce2f9a
-0, 24, 24, 1, 152064, 0xf7a25715
-0, 26, 26, 1, 152064, 0x90c91c7d
-0, 28, 28, 1, 152064, 0x4f0df4ef
-0, 30, 30, 1, 152064, 0xf6e0783c
-0, 32, 32, 1, 152064, 0x417c8ca8
-0, 34, 34, 1, 152064, 0xd33d29d8
-0, 36, 36, 1, 152064, 0xc9723fa3
-0, 38, 38, 1, 152064, 0x3e4f22f4
-0, 40, 40, 1, 152064, 0xd5aa7bd8
-0, 42, 42, 1, 152064, 0x2a425b54
-0, 44, 44, 1, 152064, 0x2d400788
-0, 46, 46, 1, 152064, 0x12fab3a4
-0, 48, 48, 1, 152064, 0x5544f881
-0, 50, 50, 1, 152064, 0xd0612cc5
-0, 52, 52, 1, 152064, 0x157b3654
-0, 54, 54, 1, 152064, 0x04b61fe0
-0, 56, 56, 1, 152064, 0x897d600a
-0, 58, 58, 1, 152064, 0x0d94fa29
-0, 60, 60, 1, 152064, 0xc0fe249d
-0, 62, 62, 1, 152064, 0x65abc1d6
-0, 64, 64, 1, 152064, 0x2bd5f09d
-0, 66, 66, 1, 152064, 0xd3eebd28
-0, 68, 68, 1, 152064, 0x93458649
-0, 70, 70, 1, 152064, 0x55e793a6
-0, 72, 72, 1, 152064, 0x9fc378ce
-0, 74, 74, 1, 152064, 0x24c32731
-0, 76, 76, 1, 152064, 0x3c321c50
-0, 78, 78, 1, 152064, 0xcef3ca8b
-0, 80, 80, 1, 152064, 0x97116676
-0, 82, 82, 1, 152064, 0x73ae78f6
-0, 84, 84, 1, 152064, 0xdeec219e
-0, 86, 86, 1, 152064, 0xc061d584
-0, 88, 88, 1, 152064, 0xcf47f6c9
-0, 90, 90, 1, 152064, 0x280d3a2d
-0, 92, 92, 1, 152064, 0xb660c846
-0, 94, 94, 1, 152064, 0xe167c588
-0, 96, 96, 1, 152064, 0x08f808de
-0, 98, 98, 1, 152064, 0x9de65c0b
-0, 100, 100, 1, 152064, 0xc52a1937
-0, 102, 102, 1, 152064, 0xf5a4d86f
-0, 104, 104, 1, 152064, 0xbef86d37
-0, 106, 106, 1, 152064, 0xa227b21b
-0, 108, 108, 1, 152064, 0x0601ad35
-0, 110, 110, 1, 152064, 0x15198730
-0, 112, 112, 1, 152064, 0x9af764c6
-0, 114, 114, 1, 152064, 0x1a95e99a
-0, 116, 116, 1, 152064, 0x6bef5aa8
-0, 118, 118, 1, 152064, 0x92f03267
-0, 120, 120, 1, 152064, 0x0a3d56cb
-0, 122, 122, 1, 152064, 0xd9c9f62e
-0, 124, 124, 1, 152064, 0xcd81ea16
-0, 126, 126, 1, 152064, 0x8ed789c0
-0, 128, 128, 1, 152064, 0x5a5e356f
-0, 130, 130, 1, 152064, 0x2f260ebf
-0, 132, 132, 1, 152064, 0xa0379c89
-0, 134, 134, 1, 152064, 0x100cb40c
-0, 136, 136, 1, 152064, 0xaad2220a
-0, 138, 138, 1, 152064, 0xec82aa8d
-0, 140, 140, 1, 152064, 0x91088303
-0, 142, 142, 1, 152064, 0x0cce0e9e
-0, 144, 144, 1, 152064, 0xf3bc716a
-0, 146, 146, 1, 152064, 0x989879c5
-0, 148, 148, 1, 152064, 0x491297a0
-0, 150, 150, 1, 152064, 0xdc16f30d
-0, 152, 152, 1, 152064, 0xb9bfdd57
-0, 154, 154, 1, 152064, 0x5fba59c2
-0, 156, 156, 1, 152064, 0x89c40529
-0, 158, 158, 1, 152064, 0x1b3e7b54
-0, 160, 160, 1, 152064, 0x5d0d7903
-0, 162, 162, 1, 152064, 0x2e3434e1
-0, 164, 164, 1, 152064, 0x1f47a276
-0, 166, 166, 1, 152064, 0xa22de2b1
-0, 168, 168, 1, 152064, 0x77344844
-0, 170, 170, 1, 152064, 0x6a6b3fce
-0, 172, 172, 1, 152064, 0x82660651
-0, 174, 174, 1, 152064, 0x51e67cc9
-0, 176, 176, 1, 152064, 0xb790ae51
-0, 178, 178, 1, 152064, 0x906bc6b6
-0, 180, 180, 1, 152064, 0x55c5dc21
-0, 182, 182, 1, 152064, 0xb51f3004
-0, 184, 184, 1, 152064, 0x68500a25
-0, 186, 186, 1, 152064, 0x5dbc812e
-0, 188, 188, 1, 152064, 0x895eb6ed
-0, 190, 190, 1, 152064, 0x2f5594fc
-0, 192, 192, 1, 152064, 0x04a222a9
-0, 194, 194, 1, 152064, 0x90036f6a
-0, 196, 196, 1, 152064, 0x8b8b064c
-0, 198, 198, 1, 152064, 0xd47c7334
-0, 199, 199, 1, 152064, 0x13f06213
+0, 0, 0, 1, 152064, 0x9744ac59
+0, 1, 1, 1, 152064, 0x3eba88bf
+0, 2, 2, 1, 152064, 0xd4105c5a
+0, 3, 3, 1, 152064, 0x452966a3
+0, 4, 4, 1, 152064, 0x30071add
+0, 5, 5, 1, 152064, 0x0eb75245
+0, 6, 6, 1, 152064, 0x4daa80fa
+0, 7, 7, 1, 152064, 0xf53a43a1
+0, 8, 8, 1, 152064, 0xa55ab43d
+0, 9, 9, 1, 152064, 0x915ec82e
+0, 10, 10, 1, 152064, 0xadce2f9a
+0, 11, 11, 1, 152064, 0xf7a25715
+0, 12, 12, 1, 152064, 0x90c91c7d
+0, 13, 13, 1, 152064, 0x4f0df4ef
+0, 14, 14, 1, 152064, 0xf6e0783c
+0, 15, 15, 1, 152064, 0x417c8ca8
+0, 16, 16, 1, 152064, 0xd33d29d8
+0, 17, 17, 1, 152064, 0xc9723fa3
+0, 18, 18, 1, 152064, 0x3e4f22f4
+0, 19, 19, 1, 152064, 0xd5aa7bd8
+0, 20, 20, 1, 152064, 0x2a425b54
+0, 21, 21, 1, 152064, 0x2d400788
+0, 22, 22, 1, 152064, 0x12fab3a4
+0, 23, 23, 1, 152064, 0x5544f881
+0, 24, 24, 1, 152064, 0xd0612cc5
+0, 25, 25, 1, 152064, 0x157b3654
+0, 26, 26, 1, 152064, 0x04b61fe0
+0, 27, 27, 1, 152064, 0x897d600a
+0, 28, 28, 1, 152064, 0x0d94fa29
+0, 29, 29, 1, 152064, 0xc0fe249d
+0, 30, 30, 1, 152064, 0x65abc1d6
+0, 31, 31, 1, 152064, 0x2bd5f09d
+0, 32, 32, 1, 152064, 0xd3eebd28
+0, 33, 33, 1, 152064, 0x93458649
+0, 34, 34, 1, 152064, 0x55e793a6
+0, 35, 35, 1, 152064, 0x9fc378ce
+0, 36, 36, 1, 152064, 0x24c32731
+0, 37, 37, 1, 152064, 0x3c321c50
+0, 38, 38, 1, 152064, 0xcef3ca8b
+0, 39, 39, 1, 152064, 0x97116676
+0, 40, 40, 1, 152064, 0x73ae78f6
+0, 41, 41, 1, 152064, 0xdeec219e
+0, 42, 42, 1, 152064, 0xc061d584
+0, 43, 43, 1, 152064, 0xcf47f6c9
+0, 44, 44, 1, 152064, 0x280d3a2d
+0, 45, 45, 1, 152064, 0xb660c846
+0, 46, 46, 1, 152064, 0xe167c588
+0, 47, 47, 1, 152064, 0x08f808de
+0, 48, 48, 1, 152064, 0x9de65c0b
+0, 49, 49, 1, 152064, 0xc52a1937
+0, 50, 50, 1, 152064, 0xf5a4d86f
+0, 51, 51, 1, 152064, 0xbef86d37
+0, 52, 52, 1, 152064, 0xa227b21b
+0, 53, 53, 1, 152064, 0x0601ad35
+0, 54, 54, 1, 152064, 0x15198730
+0, 55, 55, 1, 152064, 0x9af764c6
+0, 56, 56, 1, 152064, 0x1a95e99a
+0, 57, 57, 1, 152064, 0x6bef5aa8
+0, 58, 58, 1, 152064, 0x92f03267
+0, 59, 59, 1, 152064, 0x0a3d56cb
+0, 60, 60, 1, 152064, 0xd9c9f62e
+0, 61, 61, 1, 152064, 0xcd81ea16
+0, 62, 62, 1, 152064, 0x8ed789c0
+0, 63, 63, 1, 152064, 0x5a5e356f
+0, 64, 64, 1, 152064, 0x2f260ebf
+0, 65, 65, 1, 152064, 0xa0379c89
+0, 66, 66, 1, 152064, 0x100cb40c
+0, 67, 67, 1, 152064, 0xaad2220a
+0, 68, 68, 1, 152064, 0xec82aa8d
+0, 69, 69, 1, 152064, 0x91088303
+0, 70, 70, 1, 152064, 0x0cce0e9e
+0, 71, 71, 1, 152064, 0xf3bc716a
+0, 72, 72, 1, 152064, 0x989879c5
+0, 73, 73, 1, 152064, 0x491297a0
+0, 74, 74, 1, 152064, 0xdc16f30d
+0, 75, 75, 1, 152064, 0xb9bfdd57
+0, 76, 76, 1, 152064, 0x5fba59c2
+0, 77, 77, 1, 152064, 0x89c40529
+0, 78, 78, 1, 152064, 0x1b3e7b54
+0, 79, 79, 1, 152064, 0x5d0d7903
+0, 80, 80, 1, 152064, 0x2e3434e1
+0, 81, 81, 1, 152064, 0x1f47a276
+0, 82, 82, 1, 152064, 0xa22de2b1
+0, 83, 83, 1, 152064, 0x77344844
+0, 84, 84, 1, 152064, 0x6a6b3fce
+0, 85, 85, 1, 152064, 0x82660651
+0, 86, 86, 1, 152064, 0x51e67cc9
+0, 87, 87, 1, 152064, 0xb790ae51
+0, 88, 88, 1, 152064, 0x906bc6b6
+0, 89, 89, 1, 152064, 0x55c5dc21
+0, 90, 90, 1, 152064, 0xb51f3004
+0, 91, 91, 1, 152064, 0x68500a25
+0, 92, 92, 1, 152064, 0x5dbc812e
+0, 93, 93, 1, 152064, 0x895eb6ed
+0, 94, 94, 1, 152064, 0x2f5594fc
+0, 95, 95, 1, 152064, 0x04a222a9
+0, 96, 96, 1, 152064, 0x90036f6a
+0, 97, 97, 1, 152064, 0x8b8b064c
+0, 98, 98, 1, 152064, 0xd47c7334
+0, 99, 99, 1, 152064, 0x13f06213
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh4 b/tests/ref/fate/h264-conformance-frext-brcm_freh4
index 04c05acbee..ad3a3ec775 100644
--- a/tests/ref/fate/h264-conformance-frext-brcm_freh4
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh4
@@ -1,101 +1,101 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x9744ac59
-0, 4, 4, 1, 152064, 0xe1c69d97
-0, 6, 6, 1, 152064, 0x9ae85f93
-0, 8, 8, 1, 152064, 0x452966a3
-0, 10, 10, 1, 152064, 0xe8192823
-0, 12, 12, 1, 152064, 0x58b764eb
-0, 14, 14, 1, 152064, 0x51b686b1
-0, 16, 16, 1, 152064, 0x4bca5822
-0, 18, 18, 1, 152064, 0x29abc41c
-0, 20, 20, 1, 152064, 0x850ec94f
-0, 22, 22, 1, 152064, 0xac2c34f8
-0, 24, 24, 1, 152064, 0x080c6e67
-0, 26, 26, 1, 152064, 0x5e4e14d2
-0, 28, 28, 1, 152064, 0x978b054c
-0, 30, 30, 1, 152064, 0x861d8c3c
-0, 32, 32, 1, 152064, 0xe0818918
-0, 34, 34, 1, 152064, 0x8b834511
-0, 36, 36, 1, 152064, 0x223f567c
-0, 38, 38, 1, 152064, 0x6d61298d
-0, 40, 40, 1, 152064, 0xfe30826e
-0, 42, 42, 1, 152064, 0x4bad4f98
-0, 44, 44, 1, 152064, 0x69d5fdca
-0, 46, 46, 1, 152064, 0xe45bba1b
-0, 48, 48, 1, 152064, 0xa6d81298
-0, 50, 50, 1, 152064, 0x7f3f2c91
-0, 52, 52, 1, 152064, 0x658754b9
-0, 54, 54, 1, 152064, 0x2c6d3eba
-0, 56, 56, 1, 152064, 0x4500600c
-0, 58, 58, 1, 152064, 0xa745f74b
-0, 60, 60, 1, 152064, 0x2bf21fca
-0, 62, 62, 1, 152064, 0x08b8bdb3
-0, 64, 64, 1, 152064, 0x5a9d0a8b
-0, 66, 66, 1, 152064, 0x3a57d523
-0, 68, 68, 1, 152064, 0x3606826e
-0, 70, 70, 1, 152064, 0x3b91a8fb
-0, 72, 72, 1, 152064, 0x37c28959
-0, 74, 74, 1, 152064, 0xb51d1e75
-0, 76, 76, 1, 152064, 0x13be3f58
-0, 78, 78, 1, 152064, 0x0ed0e7cf
-0, 80, 80, 1, 152064, 0x298560d4
-0, 82, 82, 1, 152064, 0x62b68373
-0, 84, 84, 1, 152064, 0xf8bb4520
-0, 86, 86, 1, 152064, 0x90dfd6af
-0, 88, 88, 1, 152064, 0xf4770d20
-0, 90, 90, 1, 152064, 0x0d9549a0
-0, 92, 92, 1, 152064, 0x004eccb1
-0, 94, 94, 1, 152064, 0x3146d46b
-0, 96, 96, 1, 152064, 0x078d1808
-0, 98, 98, 1, 152064, 0x5d8d60cd
-0, 100, 100, 1, 152064, 0x8ff52dd8
-0, 102, 102, 1, 152064, 0x5aa3ccf7
-0, 104, 104, 1, 152064, 0x5bec6c39
-0, 106, 106, 1, 152064, 0xd44cae9d
-0, 108, 108, 1, 152064, 0xa1b0a151
-0, 110, 110, 1, 152064, 0xe3be7bb2
-0, 112, 112, 1, 152064, 0x50096775
-0, 114, 114, 1, 152064, 0xdffff851
-0, 116, 116, 1, 152064, 0x1d7250eb
-0, 118, 118, 1, 152064, 0x69663ca7
-0, 120, 120, 1, 152064, 0x62f77fc7
-0, 122, 122, 1, 152064, 0xbab8f471
-0, 124, 124, 1, 152064, 0x6af31785
-0, 126, 126, 1, 152064, 0xcbb2a9aa
-0, 128, 128, 1, 152064, 0xc57c32b9
-0, 130, 130, 1, 152064, 0xecbe2ce0
-0, 132, 132, 1, 152064, 0x2fbebf81
-0, 134, 134, 1, 152064, 0xa168af68
-0, 136, 136, 1, 152064, 0x1e5631ac
-0, 138, 138, 1, 152064, 0xe69fc927
-0, 140, 140, 1, 152064, 0x8e5c81d8
-0, 142, 142, 1, 152064, 0x42402010
-0, 144, 144, 1, 152064, 0xd7267482
-0, 146, 146, 1, 152064, 0x64b280df
-0, 148, 148, 1, 152064, 0xc4cbafcc
-0, 150, 150, 1, 152064, 0xcf2f1e8b
-0, 152, 152, 1, 152064, 0x4d6fdb3f
-0, 154, 154, 1, 152064, 0xf22d6fed
-0, 156, 156, 1, 152064, 0x625b167c
-0, 158, 158, 1, 152064, 0x41348089
-0, 160, 160, 1, 152064, 0x6db2779b
-0, 162, 162, 1, 152064, 0xe87030a8
-0, 164, 164, 1, 152064, 0x91b29cdd
-0, 166, 166, 1, 152064, 0xe824f242
-0, 168, 168, 1, 152064, 0xac995380
-0, 170, 170, 1, 152064, 0x7efe361b
-0, 172, 172, 1, 152064, 0xe10c0c26
-0, 174, 174, 1, 152064, 0x93108260
-0, 176, 176, 1, 152064, 0xbf4caed7
-0, 178, 178, 1, 152064, 0xb6a4d826
-0, 180, 180, 1, 152064, 0x78beea4e
-0, 182, 182, 1, 152064, 0xdf612df9
-0, 184, 184, 1, 152064, 0xa9ef2830
-0, 186, 186, 1, 152064, 0x06448895
-0, 188, 188, 1, 152064, 0x332eb6d5
-0, 190, 190, 1, 152064, 0x935ba2c5
-0, 192, 192, 1, 152064, 0x62a22656
-0, 194, 194, 1, 152064, 0x06a670a7
-0, 196, 196, 1, 152064, 0xf60b1af0
-0, 198, 198, 1, 152064, 0x85177c10
-0, 199, 199, 1, 152064, 0x5e4e5c4b
+0, 0, 0, 1, 152064, 0x9744ac59
+0, 1, 1, 1, 152064, 0xe1c69d97
+0, 2, 2, 1, 152064, 0x9ae85f93
+0, 3, 3, 1, 152064, 0x452966a3
+0, 4, 4, 1, 152064, 0xe8192823
+0, 5, 5, 1, 152064, 0x58b764eb
+0, 6, 6, 1, 152064, 0x51b686b1
+0, 7, 7, 1, 152064, 0x4bca5822
+0, 8, 8, 1, 152064, 0x29abc41c
+0, 9, 9, 1, 152064, 0x850ec94f
+0, 10, 10, 1, 152064, 0xac2c34f8
+0, 11, 11, 1, 152064, 0x080c6e67
+0, 12, 12, 1, 152064, 0x5e4e14d2
+0, 13, 13, 1, 152064, 0x978b054c
+0, 14, 14, 1, 152064, 0x861d8c3c
+0, 15, 15, 1, 152064, 0xe0818918
+0, 16, 16, 1, 152064, 0x8b834511
+0, 17, 17, 1, 152064, 0x223f567c
+0, 18, 18, 1, 152064, 0x6d61298d
+0, 19, 19, 1, 152064, 0xfe30826e
+0, 20, 20, 1, 152064, 0x4bad4f98
+0, 21, 21, 1, 152064, 0x69d5fdca
+0, 22, 22, 1, 152064, 0xe45bba1b
+0, 23, 23, 1, 152064, 0xa6d81298
+0, 24, 24, 1, 152064, 0x7f3f2c91
+0, 25, 25, 1, 152064, 0x658754b9
+0, 26, 26, 1, 152064, 0x2c6d3eba
+0, 27, 27, 1, 152064, 0x4500600c
+0, 28, 28, 1, 152064, 0xa745f74b
+0, 29, 29, 1, 152064, 0x2bf21fca
+0, 30, 30, 1, 152064, 0x08b8bdb3
+0, 31, 31, 1, 152064, 0x5a9d0a8b
+0, 32, 32, 1, 152064, 0x3a57d523
+0, 33, 33, 1, 152064, 0x3606826e
+0, 34, 34, 1, 152064, 0x3b91a8fb
+0, 35, 35, 1, 152064, 0x37c28959
+0, 36, 36, 1, 152064, 0xb51d1e75
+0, 37, 37, 1, 152064, 0x13be3f58
+0, 38, 38, 1, 152064, 0x0ed0e7cf
+0, 39, 39, 1, 152064, 0x298560d4
+0, 40, 40, 1, 152064, 0x62b68373
+0, 41, 41, 1, 152064, 0xf8bb4520
+0, 42, 42, 1, 152064, 0x90dfd6af
+0, 43, 43, 1, 152064, 0xf4770d20
+0, 44, 44, 1, 152064, 0x0d9549a0
+0, 45, 45, 1, 152064, 0x004eccb1
+0, 46, 46, 1, 152064, 0x3146d46b
+0, 47, 47, 1, 152064, 0x078d1808
+0, 48, 48, 1, 152064, 0x5d8d60cd
+0, 49, 49, 1, 152064, 0x8ff52dd8
+0, 50, 50, 1, 152064, 0x5aa3ccf7
+0, 51, 51, 1, 152064, 0x5bec6c39
+0, 52, 52, 1, 152064, 0xd44cae9d
+0, 53, 53, 1, 152064, 0xa1b0a151
+0, 54, 54, 1, 152064, 0xe3be7bb2
+0, 55, 55, 1, 152064, 0x50096775
+0, 56, 56, 1, 152064, 0xdffff851
+0, 57, 57, 1, 152064, 0x1d7250eb
+0, 58, 58, 1, 152064, 0x69663ca7
+0, 59, 59, 1, 152064, 0x62f77fc7
+0, 60, 60, 1, 152064, 0xbab8f471
+0, 61, 61, 1, 152064, 0x6af31785
+0, 62, 62, 1, 152064, 0xcbb2a9aa
+0, 63, 63, 1, 152064, 0xc57c32b9
+0, 64, 64, 1, 152064, 0xecbe2ce0
+0, 65, 65, 1, 152064, 0x2fbebf81
+0, 66, 66, 1, 152064, 0xa168af68
+0, 67, 67, 1, 152064, 0x1e5631ac
+0, 68, 68, 1, 152064, 0xe69fc927
+0, 69, 69, 1, 152064, 0x8e5c81d8
+0, 70, 70, 1, 152064, 0x42402010
+0, 71, 71, 1, 152064, 0xd7267482
+0, 72, 72, 1, 152064, 0x64b280df
+0, 73, 73, 1, 152064, 0xc4cbafcc
+0, 74, 74, 1, 152064, 0xcf2f1e8b
+0, 75, 75, 1, 152064, 0x4d6fdb3f
+0, 76, 76, 1, 152064, 0xf22d6fed
+0, 77, 77, 1, 152064, 0x625b167c
+0, 78, 78, 1, 152064, 0x41348089
+0, 79, 79, 1, 152064, 0x6db2779b
+0, 80, 80, 1, 152064, 0xe87030a8
+0, 81, 81, 1, 152064, 0x91b29cdd
+0, 82, 82, 1, 152064, 0xe824f242
+0, 83, 83, 1, 152064, 0xac995380
+0, 84, 84, 1, 152064, 0x7efe361b
+0, 85, 85, 1, 152064, 0xe10c0c26
+0, 86, 86, 1, 152064, 0x93108260
+0, 87, 87, 1, 152064, 0xbf4caed7
+0, 88, 88, 1, 152064, 0xb6a4d826
+0, 89, 89, 1, 152064, 0x78beea4e
+0, 90, 90, 1, 152064, 0xdf612df9
+0, 91, 91, 1, 152064, 0xa9ef2830
+0, 92, 92, 1, 152064, 0x06448895
+0, 93, 93, 1, 152064, 0x332eb6d5
+0, 94, 94, 1, 152064, 0x935ba2c5
+0, 95, 95, 1, 152064, 0x62a22656
+0, 96, 96, 1, 152064, 0x06a670a7
+0, 97, 97, 1, 152064, 0xf60b1af0
+0, 98, 98, 1, 152064, 0x85177c10
+0, 99, 99, 1, 152064, 0x5e4e5c4b
diff --git a/tests/ref/fate/h264-conformance-frext-freh6 b/tests/ref/fate/h264-conformance-frext-freh6
index 2fb085ef5f..c769038cfd 100644
--- a/tests/ref/fate/h264-conformance-frext-freh6
+++ b/tests/ref/fate/h264-conformance-frext-freh6
@@ -1,101 +1,101 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x3b21d6cd
-0, 4, 4, 1, 152064, 0xc32088c6
-0, 6, 6, 1, 152064, 0x65a64cee
-0, 8, 8, 1, 152064, 0x0bd45a5b
-0, 10, 10, 1, 152064, 0xb2210d4d
-0, 12, 12, 1, 152064, 0xf5b15527
-0, 14, 14, 1, 152064, 0x806572ad
-0, 16, 16, 1, 152064, 0x6ecb1fc8
-0, 18, 18, 1, 152064, 0xc25e96d5
-0, 20, 20, 1, 152064, 0x5593b825
-0, 22, 22, 1, 152064, 0xf3be1cff
-0, 24, 24, 1, 152064, 0xa9155072
-0, 26, 26, 1, 152064, 0xd5552e26
-0, 28, 28, 1, 152064, 0x7bf0dbee
-0, 30, 30, 1, 152064, 0x998b4911
-0, 32, 32, 1, 152064, 0xcc71bbe0
-0, 34, 34, 1, 152064, 0x602415b8
-0, 36, 36, 1, 152064, 0xcfff37cf
-0, 38, 38, 1, 152064, 0x7cf824a8
-0, 40, 40, 1, 152064, 0x34816ee5
-0, 42, 42, 1, 152064, 0x1480540c
-0, 44, 44, 1, 152064, 0xc2351aaf
-0, 46, 46, 1, 152064, 0x3b8eac9f
-0, 48, 48, 1, 152064, 0x92a8faf8
-0, 50, 50, 1, 152064, 0x7b6121c8
-0, 52, 52, 1, 152064, 0xe73a3bac
-0, 54, 54, 1, 152064, 0xcd6e1e36
-0, 56, 56, 1, 152064, 0xb24660b1
-0, 58, 58, 1, 152064, 0xa290ec25
-0, 60, 60, 1, 152064, 0x308915ff
-0, 62, 62, 1, 152064, 0x1e8dd4db
-0, 64, 64, 1, 152064, 0x1372f2e0
-0, 66, 66, 1, 152064, 0xa07cc1d0
-0, 68, 68, 1, 152064, 0x34bb872c
-0, 70, 70, 1, 152064, 0x59e6a565
-0, 72, 72, 1, 152064, 0x9a097932
-0, 74, 74, 1, 152064, 0x938f2e20
-0, 76, 76, 1, 152064, 0x59a8157d
-0, 78, 78, 1, 152064, 0x5cacd404
-0, 80, 80, 1, 152064, 0xdad068f5
-0, 82, 82, 1, 152064, 0x7ba67d47
-0, 84, 84, 1, 152064, 0xc2a11e2d
-0, 86, 86, 1, 152064, 0xd37fdef7
-0, 88, 88, 1, 152064, 0x19a3f80a
-0, 90, 90, 1, 152064, 0x7ec7426a
-0, 92, 92, 1, 152064, 0x8ffedb61
-0, 94, 94, 1, 152064, 0x82aebdd0
-0, 96, 96, 1, 152064, 0xdfc920cc
-0, 98, 98, 1, 152064, 0x2a467698
-0, 100, 100, 1, 152064, 0xd08a37d5
-0, 102, 102, 1, 152064, 0xe606e66a
-0, 104, 104, 1, 152064, 0x0e7b8bd8
-0, 106, 106, 1, 152064, 0xf983c732
-0, 108, 108, 1, 152064, 0x9b82c2e7
-0, 110, 110, 1, 152064, 0xa990a47e
-0, 112, 112, 1, 152064, 0x2d5679f1
-0, 114, 114, 1, 152064, 0x7f1c0201
-0, 116, 116, 1, 152064, 0xc38b709d
-0, 118, 118, 1, 152064, 0x040246d8
-0, 120, 120, 1, 152064, 0xbc856021
-0, 122, 122, 1, 152064, 0x81e01a78
-0, 124, 124, 1, 152064, 0xaff1e7f1
-0, 126, 126, 1, 152064, 0x1fee7715
-0, 128, 128, 1, 152064, 0x65053711
-0, 130, 130, 1, 152064, 0x238a0118
-0, 132, 132, 1, 152064, 0x563491b4
-0, 134, 134, 1, 152064, 0x5974a6cc
-0, 136, 136, 1, 152064, 0xd8682c35
-0, 138, 138, 1, 152064, 0x85c49e96
-0, 140, 140, 1, 152064, 0x29486faa
-0, 142, 142, 1, 152064, 0x1a4f0579
-0, 144, 144, 1, 152064, 0x6ab86c2f
-0, 146, 146, 1, 152064, 0x36a36d2b
-0, 148, 148, 1, 152064, 0x3bd77543
-0, 150, 150, 1, 152064, 0x8fbddc41
-0, 152, 152, 1, 152064, 0xccc6e0a5
-0, 154, 154, 1, 152064, 0x00a9539e
-0, 156, 156, 1, 152064, 0x07ba0714
-0, 158, 158, 1, 152064, 0xbab2735d
-0, 160, 160, 1, 152064, 0x79cb5ba0
-0, 162, 162, 1, 152064, 0xdbcc1c92
-0, 164, 164, 1, 152064, 0xffec952c
-0, 166, 166, 1, 152064, 0xc31ac68e
-0, 168, 168, 1, 152064, 0x24293eb9
-0, 170, 170, 1, 152064, 0x7b9b2cb4
-0, 172, 172, 1, 152064, 0x9dd4fe95
-0, 174, 174, 1, 152064, 0xb62e8baf
-0, 176, 176, 1, 152064, 0x9fefc174
-0, 178, 178, 1, 152064, 0xe027c24e
-0, 180, 180, 1, 152064, 0xe38adc70
-0, 182, 182, 1, 152064, 0xc7bf536f
-0, 184, 184, 1, 152064, 0x4448f330
-0, 186, 186, 1, 152064, 0x4dad5339
-0, 188, 188, 1, 152064, 0x48fbab15
-0, 190, 190, 1, 152064, 0xe6c97b2c
-0, 192, 192, 1, 152064, 0x3c3829ee
-0, 194, 194, 1, 152064, 0x927772c0
-0, 196, 196, 1, 152064, 0xbb0f0ef4
-0, 198, 198, 1, 152064, 0xe65780a7
-0, 199, 199, 1, 152064, 0xaf8f6d72
+0, 0, 0, 1, 152064, 0x3b21d6cd
+0, 1, 1, 1, 152064, 0xc32088c6
+0, 2, 2, 1, 152064, 0x65a64cee
+0, 3, 3, 1, 152064, 0x0bd45a5b
+0, 4, 4, 1, 152064, 0xb2210d4d
+0, 5, 5, 1, 152064, 0xf5b15527
+0, 6, 6, 1, 152064, 0x806572ad
+0, 7, 7, 1, 152064, 0x6ecb1fc8
+0, 8, 8, 1, 152064, 0xc25e96d5
+0, 9, 9, 1, 152064, 0x5593b825
+0, 10, 10, 1, 152064, 0xf3be1cff
+0, 11, 11, 1, 152064, 0xa9155072
+0, 12, 12, 1, 152064, 0xd5552e26
+0, 13, 13, 1, 152064, 0x7bf0dbee
+0, 14, 14, 1, 152064, 0x998b4911
+0, 15, 15, 1, 152064, 0xcc71bbe0
+0, 16, 16, 1, 152064, 0x602415b8
+0, 17, 17, 1, 152064, 0xcfff37cf
+0, 18, 18, 1, 152064, 0x7cf824a8
+0, 19, 19, 1, 152064, 0x34816ee5
+0, 20, 20, 1, 152064, 0x1480540c
+0, 21, 21, 1, 152064, 0xc2351aaf
+0, 22, 22, 1, 152064, 0x3b8eac9f
+0, 23, 23, 1, 152064, 0x92a8faf8
+0, 24, 24, 1, 152064, 0x7b6121c8
+0, 25, 25, 1, 152064, 0xe73a3bac
+0, 26, 26, 1, 152064, 0xcd6e1e36
+0, 27, 27, 1, 152064, 0xb24660b1
+0, 28, 28, 1, 152064, 0xa290ec25
+0, 29, 29, 1, 152064, 0x308915ff
+0, 30, 30, 1, 152064, 0x1e8dd4db
+0, 31, 31, 1, 152064, 0x1372f2e0
+0, 32, 32, 1, 152064, 0xa07cc1d0
+0, 33, 33, 1, 152064, 0x34bb872c
+0, 34, 34, 1, 152064, 0x59e6a565
+0, 35, 35, 1, 152064, 0x9a097932
+0, 36, 36, 1, 152064, 0x938f2e20
+0, 37, 37, 1, 152064, 0x59a8157d
+0, 38, 38, 1, 152064, 0x5cacd404
+0, 39, 39, 1, 152064, 0xdad068f5
+0, 40, 40, 1, 152064, 0x7ba67d47
+0, 41, 41, 1, 152064, 0xc2a11e2d
+0, 42, 42, 1, 152064, 0xd37fdef7
+0, 43, 43, 1, 152064, 0x19a3f80a
+0, 44, 44, 1, 152064, 0x7ec7426a
+0, 45, 45, 1, 152064, 0x8ffedb61
+0, 46, 46, 1, 152064, 0x82aebdd0
+0, 47, 47, 1, 152064, 0xdfc920cc
+0, 48, 48, 1, 152064, 0x2a467698
+0, 49, 49, 1, 152064, 0xd08a37d5
+0, 50, 50, 1, 152064, 0xe606e66a
+0, 51, 51, 1, 152064, 0x0e7b8bd8
+0, 52, 52, 1, 152064, 0xf983c732
+0, 53, 53, 1, 152064, 0x9b82c2e7
+0, 54, 54, 1, 152064, 0xa990a47e
+0, 55, 55, 1, 152064, 0x2d5679f1
+0, 56, 56, 1, 152064, 0x7f1c0201
+0, 57, 57, 1, 152064, 0xc38b709d
+0, 58, 58, 1, 152064, 0x040246d8
+0, 59, 59, 1, 152064, 0xbc856021
+0, 60, 60, 1, 152064, 0x81e01a78
+0, 61, 61, 1, 152064, 0xaff1e7f1
+0, 62, 62, 1, 152064, 0x1fee7715
+0, 63, 63, 1, 152064, 0x65053711
+0, 64, 64, 1, 152064, 0x238a0118
+0, 65, 65, 1, 152064, 0x563491b4
+0, 66, 66, 1, 152064, 0x5974a6cc
+0, 67, 67, 1, 152064, 0xd8682c35
+0, 68, 68, 1, 152064, 0x85c49e96
+0, 69, 69, 1, 152064, 0x29486faa
+0, 70, 70, 1, 152064, 0x1a4f0579
+0, 71, 71, 1, 152064, 0x6ab86c2f
+0, 72, 72, 1, 152064, 0x36a36d2b
+0, 73, 73, 1, 152064, 0x3bd77543
+0, 74, 74, 1, 152064, 0x8fbddc41
+0, 75, 75, 1, 152064, 0xccc6e0a5
+0, 76, 76, 1, 152064, 0x00a9539e
+0, 77, 77, 1, 152064, 0x07ba0714
+0, 78, 78, 1, 152064, 0xbab2735d
+0, 79, 79, 1, 152064, 0x79cb5ba0
+0, 80, 80, 1, 152064, 0xdbcc1c92
+0, 81, 81, 1, 152064, 0xffec952c
+0, 82, 82, 1, 152064, 0xc31ac68e
+0, 83, 83, 1, 152064, 0x24293eb9
+0, 84, 84, 1, 152064, 0x7b9b2cb4
+0, 85, 85, 1, 152064, 0x9dd4fe95
+0, 86, 86, 1, 152064, 0xb62e8baf
+0, 87, 87, 1, 152064, 0x9fefc174
+0, 88, 88, 1, 152064, 0xe027c24e
+0, 89, 89, 1, 152064, 0xe38adc70
+0, 90, 90, 1, 152064, 0xc7bf536f
+0, 91, 91, 1, 152064, 0x4448f330
+0, 92, 92, 1, 152064, 0x4dad5339
+0, 93, 93, 1, 152064, 0x48fbab15
+0, 94, 94, 1, 152064, 0xe6c97b2c
+0, 95, 95, 1, 152064, 0x3c3829ee
+0, 96, 96, 1, 152064, 0x927772c0
+0, 97, 97, 1, 152064, 0xbb0f0ef4
+0, 98, 98, 1, 152064, 0xe65780a7
+0, 99, 99, 1, 152064, 0xaf8f6d72
diff --git a/tests/ref/fate/h264-conformance-frext-freh7_b b/tests/ref/fate/h264-conformance-frext-freh7_b
index 9b23f78277..519c34676e 100644
--- a/tests/ref/fate/h264-conformance-frext-freh7_b
+++ b/tests/ref/fate/h264-conformance-frext-freh7_b
@@ -1,101 +1,101 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x89f2e8d5
-0, 4, 4, 1, 152064, 0x35b99397
-0, 6, 6, 1, 152064, 0x6ef46744
-0, 8, 8, 1, 152064, 0xec4d6c1c
-0, 10, 10, 1, 152064, 0xad6e0c70
-0, 12, 12, 1, 152064, 0x2db534b3
-0, 14, 14, 1, 152064, 0xcbd25ddd
-0, 16, 16, 1, 152064, 0xd90708b4
-0, 18, 18, 1, 152064, 0xc2aa52df
-0, 20, 20, 1, 152064, 0xbcfc84dc
-0, 22, 22, 1, 152064, 0xa5a6d269
-0, 24, 24, 1, 152064, 0x27220ce9
-0, 26, 26, 1, 152064, 0xf075ee6d
-0, 28, 28, 1, 152064, 0x9fd3c2ac
-0, 30, 30, 1, 152064, 0xcba24c2d
-0, 32, 32, 1, 152064, 0x41cd9441
-0, 34, 34, 1, 152064, 0x0126efa3
-0, 36, 36, 1, 152064, 0xf62112af
-0, 38, 38, 1, 152064, 0x35aff50f
-0, 40, 40, 1, 152064, 0xcb0b276f
-0, 42, 42, 1, 152064, 0xc7ef0214
-0, 44, 44, 1, 152064, 0x7f78d387
-0, 46, 46, 1, 152064, 0x266c673d
-0, 48, 48, 1, 152064, 0x1d39c073
-0, 50, 50, 1, 152064, 0x6a3ae455
-0, 52, 52, 1, 152064, 0xe4ce0230
-0, 54, 54, 1, 152064, 0x7f95e87b
-0, 56, 56, 1, 152064, 0x7c552236
-0, 58, 58, 1, 152064, 0x24c799b9
-0, 60, 60, 1, 152064, 0x5042d974
-0, 62, 62, 1, 152064, 0xe934a5b8
-0, 64, 64, 1, 152064, 0x6d59c884
-0, 66, 66, 1, 152064, 0xd00f7fdb
-0, 68, 68, 1, 152064, 0x62ac3ebd
-0, 70, 70, 1, 152064, 0xb40a6c25
-0, 72, 72, 1, 152064, 0x8706188c
-0, 74, 74, 1, 152064, 0x7682e339
-0, 76, 76, 1, 152064, 0x1061d943
-0, 78, 78, 1, 152064, 0x50fa684a
-0, 80, 80, 1, 152064, 0xab4b1975
-0, 82, 82, 1, 152064, 0x2d043acb
-0, 84, 84, 1, 152064, 0xe3c2ec0a
-0, 86, 86, 1, 152064, 0xb9bc99dc
-0, 88, 88, 1, 152064, 0x051fb857
-0, 90, 90, 1, 152064, 0x71d1fe52
-0, 92, 92, 1, 152064, 0x4230c694
-0, 94, 94, 1, 152064, 0xb412a137
-0, 96, 96, 1, 152064, 0x2f50f90d
-0, 98, 98, 1, 152064, 0x68a1466f
-0, 100, 100, 1, 152064, 0x77e3f47b
-0, 102, 102, 1, 152064, 0x4d08de2b
-0, 104, 104, 1, 152064, 0x1fc663be
-0, 106, 106, 1, 152064, 0x2c8ba712
-0, 108, 108, 1, 152064, 0xd50d85b9
-0, 110, 110, 1, 152064, 0xe8483437
-0, 112, 112, 1, 152064, 0x4e331e4c
-0, 114, 114, 1, 152064, 0x0f64a7a0
-0, 116, 116, 1, 152064, 0x797b0b8c
-0, 118, 118, 1, 152064, 0x1b91e6d8
-0, 120, 120, 1, 152064, 0xf3a1f3b6
-0, 122, 122, 1, 152064, 0x2b94bd52
-0, 124, 124, 1, 152064, 0x1f30962e
-0, 126, 126, 1, 152064, 0x853321cf
-0, 128, 128, 1, 152064, 0x8266c0ac
-0, 130, 130, 1, 152064, 0x25498be0
-0, 132, 132, 1, 152064, 0x0f653af9
-0, 134, 134, 1, 152064, 0x0a025f7e
-0, 136, 136, 1, 152064, 0x1cfbae04
-0, 138, 138, 1, 152064, 0x3a874757
-0, 140, 140, 1, 152064, 0x2c67006e
-0, 142, 142, 1, 152064, 0x1d409bce
-0, 144, 144, 1, 152064, 0xfe43121f
-0, 146, 146, 1, 152064, 0x43411830
-0, 148, 148, 1, 152064, 0x536d26ca
-0, 150, 150, 1, 152064, 0x9eb873ea
-0, 152, 152, 1, 152064, 0x093f93ec
-0, 154, 154, 1, 152064, 0xdf6f0381
-0, 156, 156, 1, 152064, 0xa9f4b5e5
-0, 158, 158, 1, 152064, 0x08f71ef8
-0, 160, 160, 1, 152064, 0x7a68f820
-0, 162, 162, 1, 152064, 0xae0c73e7
-0, 164, 164, 1, 152064, 0x886ae6c7
-0, 166, 166, 1, 152064, 0x9357f433
-0, 168, 168, 1, 152064, 0xcc335068
-0, 170, 170, 1, 152064, 0x2ea108ab
-0, 172, 172, 1, 152064, 0x06d7dcb0
-0, 174, 174, 1, 152064, 0x81dc81bc
-0, 176, 176, 1, 152064, 0xfb32b626
-0, 178, 178, 1, 152064, 0x2787d1c7
-0, 180, 180, 1, 152064, 0x69e51118
-0, 182, 182, 1, 152064, 0xba15d94d
-0, 184, 184, 1, 152064, 0xc41c09cf
-0, 186, 186, 1, 152064, 0x7e50e12f
-0, 188, 188, 1, 152064, 0x0763ddbe
-0, 190, 190, 1, 152064, 0x8a09bb88
-0, 192, 192, 1, 152064, 0x530752b7
-0, 194, 194, 1, 152064, 0x9b159923
-0, 196, 196, 1, 152064, 0xcbb83ed3
-0, 198, 198, 1, 152064, 0xdeb5ac0e
-0, 199, 199, 1, 152064, 0x189299d4
+0, 0, 0, 1, 152064, 0x89f2e8d5
+0, 1, 1, 1, 152064, 0x35b99397
+0, 2, 2, 1, 152064, 0x6ef46744
+0, 3, 3, 1, 152064, 0xec4d6c1c
+0, 4, 4, 1, 152064, 0xad6e0c70
+0, 5, 5, 1, 152064, 0x2db534b3
+0, 6, 6, 1, 152064, 0xcbd25ddd
+0, 7, 7, 1, 152064, 0xd90708b4
+0, 8, 8, 1, 152064, 0xc2aa52df
+0, 9, 9, 1, 152064, 0xbcfc84dc
+0, 10, 10, 1, 152064, 0xa5a6d269
+0, 11, 11, 1, 152064, 0x27220ce9
+0, 12, 12, 1, 152064, 0xf075ee6d
+0, 13, 13, 1, 152064, 0x9fd3c2ac
+0, 14, 14, 1, 152064, 0xcba24c2d
+0, 15, 15, 1, 152064, 0x41cd9441
+0, 16, 16, 1, 152064, 0x0126efa3
+0, 17, 17, 1, 152064, 0xf62112af
+0, 18, 18, 1, 152064, 0x35aff50f
+0, 19, 19, 1, 152064, 0xcb0b276f
+0, 20, 20, 1, 152064, 0xc7ef0214
+0, 21, 21, 1, 152064, 0x7f78d387
+0, 22, 22, 1, 152064, 0x266c673d
+0, 23, 23, 1, 152064, 0x1d39c073
+0, 24, 24, 1, 152064, 0x6a3ae455
+0, 25, 25, 1, 152064, 0xe4ce0230
+0, 26, 26, 1, 152064, 0x7f95e87b
+0, 27, 27, 1, 152064, 0x7c552236
+0, 28, 28, 1, 152064, 0x24c799b9
+0, 29, 29, 1, 152064, 0x5042d974
+0, 30, 30, 1, 152064, 0xe934a5b8
+0, 31, 31, 1, 152064, 0x6d59c884
+0, 32, 32, 1, 152064, 0xd00f7fdb
+0, 33, 33, 1, 152064, 0x62ac3ebd
+0, 34, 34, 1, 152064, 0xb40a6c25
+0, 35, 35, 1, 152064, 0x8706188c
+0, 36, 36, 1, 152064, 0x7682e339
+0, 37, 37, 1, 152064, 0x1061d943
+0, 38, 38, 1, 152064, 0x50fa684a
+0, 39, 39, 1, 152064, 0xab4b1975
+0, 40, 40, 1, 152064, 0x2d043acb
+0, 41, 41, 1, 152064, 0xe3c2ec0a
+0, 42, 42, 1, 152064, 0xb9bc99dc
+0, 43, 43, 1, 152064, 0x051fb857
+0, 44, 44, 1, 152064, 0x71d1fe52
+0, 45, 45, 1, 152064, 0x4230c694
+0, 46, 46, 1, 152064, 0xb412a137
+0, 47, 47, 1, 152064, 0x2f50f90d
+0, 48, 48, 1, 152064, 0x68a1466f
+0, 49, 49, 1, 152064, 0x77e3f47b
+0, 50, 50, 1, 152064, 0x4d08de2b
+0, 51, 51, 1, 152064, 0x1fc663be
+0, 52, 52, 1, 152064, 0x2c8ba712
+0, 53, 53, 1, 152064, 0xd50d85b9
+0, 54, 54, 1, 152064, 0xe8483437
+0, 55, 55, 1, 152064, 0x4e331e4c
+0, 56, 56, 1, 152064, 0x0f64a7a0
+0, 57, 57, 1, 152064, 0x797b0b8c
+0, 58, 58, 1, 152064, 0x1b91e6d8
+0, 59, 59, 1, 152064, 0xf3a1f3b6
+0, 60, 60, 1, 152064, 0x2b94bd52
+0, 61, 61, 1, 152064, 0x1f30962e
+0, 62, 62, 1, 152064, 0x853321cf
+0, 63, 63, 1, 152064, 0x8266c0ac
+0, 64, 64, 1, 152064, 0x25498be0
+0, 65, 65, 1, 152064, 0x0f653af9
+0, 66, 66, 1, 152064, 0x0a025f7e
+0, 67, 67, 1, 152064, 0x1cfbae04
+0, 68, 68, 1, 152064, 0x3a874757
+0, 69, 69, 1, 152064, 0x2c67006e
+0, 70, 70, 1, 152064, 0x1d409bce
+0, 71, 71, 1, 152064, 0xfe43121f
+0, 72, 72, 1, 152064, 0x43411830
+0, 73, 73, 1, 152064, 0x536d26ca
+0, 74, 74, 1, 152064, 0x9eb873ea
+0, 75, 75, 1, 152064, 0x093f93ec
+0, 76, 76, 1, 152064, 0xdf6f0381
+0, 77, 77, 1, 152064, 0xa9f4b5e5
+0, 78, 78, 1, 152064, 0x08f71ef8
+0, 79, 79, 1, 152064, 0x7a68f820
+0, 80, 80, 1, 152064, 0xae0c73e7
+0, 81, 81, 1, 152064, 0x886ae6c7
+0, 82, 82, 1, 152064, 0x9357f433
+0, 83, 83, 1, 152064, 0xcc335068
+0, 84, 84, 1, 152064, 0x2ea108ab
+0, 85, 85, 1, 152064, 0x06d7dcb0
+0, 86, 86, 1, 152064, 0x81dc81bc
+0, 87, 87, 1, 152064, 0xfb32b626
+0, 88, 88, 1, 152064, 0x2787d1c7
+0, 89, 89, 1, 152064, 0x69e51118
+0, 90, 90, 1, 152064, 0xba15d94d
+0, 91, 91, 1, 152064, 0xc41c09cf
+0, 92, 92, 1, 152064, 0x7e50e12f
+0, 93, 93, 1, 152064, 0x0763ddbe
+0, 94, 94, 1, 152064, 0x8a09bb88
+0, 95, 95, 1, 152064, 0x530752b7
+0, 96, 96, 1, 152064, 0x9b159923
+0, 97, 97, 1, 152064, 0xcbb83ed3
+0, 98, 98, 1, 152064, 0xdeb5ac0e
+0, 99, 99, 1, 152064, 0x189299d4
diff --git a/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b b/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
index 75005ec803..7c53b5c9ee 100644
--- a/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
+++ b/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
@@ -1,16 +1,16 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x0147a2a9
-0, 3, 3, 1, 152064, 0xe2365351
-0, 4, 4, 1, 152064, 0xb5f9daee
-0, 5, 5, 1, 152064, 0xd60818b2
-0, 7, 7, 1, 152064, 0x21b528e5
-0, 8, 8, 1, 152064, 0x9c9dda18
-0, 9, 9, 1, 152064, 0x387fe7de
-0, 11, 11, 1, 152064, 0x8f0c5a1e
-0, 12, 12, 1, 152064, 0x02409694
-0, 14, 14, 1, 152064, 0x2b36a7a7
-0, 15, 15, 1, 152064, 0x3c6d3863
-0, 17, 17, 1, 152064, 0xaa7835e1
-0, 18, 18, 1, 152064, 0x6d105fe7
-0, 20, 20, 1, 152064, 0x9a348732
-0, 21, 21, 1, 152064, 0x96a3af13
+0, 0, 0, 1, 152064, 0x0147a2a9
+0, 1, 1, 1, 152064, 0xe2365351
+0, 2, 2, 1, 152064, 0xb5f9daee
+0, 3, 3, 1, 152064, 0xd60818b2
+0, 4, 4, 1, 152064, 0x21b528e5
+0, 5, 5, 1, 152064, 0x9c9dda18
+0, 6, 6, 1, 152064, 0x387fe7de
+0, 7, 7, 1, 152064, 0x8f0c5a1e
+0, 8, 8, 1, 152064, 0x02409694
+0, 9, 9, 1, 152064, 0x2b36a7a7
+0, 10, 10, 1, 152064, 0x3c6d3863
+0, 11, 11, 1, 152064, 0xaa7835e1
+0, 12, 12, 1, 152064, 0x6d105fe7
+0, 13, 13, 1, 152064, 0x9a348732
+0, 14, 14, 1, 152064, 0x96a3af13
diff --git a/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a b/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
index 0efe2ab51e..c0886e446d 100644
--- a/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
+++ b/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
@@ -1,11 +1,11 @@
#tb 0: 1/25
-0, 1, 1, 1, 152064, 0xd604d440
-0, 3, 3, 1, 152064, 0x08ef262c
-0, 4, 4, 1, 152064, 0x992fca8e
-0, 5, 5, 1, 152064, 0x5a02ee15
-0, 7, 7, 1, 152064, 0xf15d5c66
-0, 9, 9, 1, 152064, 0x360dda12
-0, 10, 10, 1, 152064, 0x18b54985
-0, 12, 12, 1, 152064, 0xf12b6cde
-0, 13, 13, 1, 152064, 0x3b2e63f7
-0, 14, 14, 1, 152064, 0x140abcfd
+0, 0, 0, 1, 152064, 0xd604d440
+0, 1, 1, 1, 152064, 0x08ef262c
+0, 2, 2, 1, 152064, 0x992fca8e
+0, 3, 3, 1, 152064, 0x5a02ee15
+0, 4, 4, 1, 152064, 0xf15d5c66
+0, 5, 5, 1, 152064, 0x360dda12
+0, 6, 6, 1, 152064, 0x18b54985
+0, 7, 7, 1, 152064, 0xf12b6cde
+0, 8, 8, 1, 152064, 0x3b2e63f7
+0, 9, 9, 1, 152064, 0x140abcfd
diff --git a/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b b/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
index e5fc739a06..eb41d46955 100644
--- a/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
+++ b/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
@@ -1,11 +1,11 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0xb055a9bd
-0, 4, 4, 1, 152064, 0x9e1eadb6
-0, 5, 5, 1, 152064, 0x48f117d2
-0, 6, 6, 1, 152064, 0x3e3ff049
-0, 7, 7, 1, 152064, 0x2ff80943
-0, 9, 9, 1, 152064, 0xc5ee16a6
-0, 10, 10, 1, 152064, 0x38c33f28
-0, 11, 11, 1, 152064, 0x3e8444c7
-0, 12, 12, 1, 152064, 0x14ca4ab2
-0, 13, 13, 1, 152064, 0xe20e78f7
+0, 0, 0, 1, 152064, 0xb055a9bd
+0, 1, 1, 1, 152064, 0x9e1eadb6
+0, 2, 2, 1, 152064, 0x48f117d2
+0, 3, 3, 1, 152064, 0x3e3ff049
+0, 4, 4, 1, 152064, 0x2ff80943
+0, 5, 5, 1, 152064, 0xc5ee16a6
+0, 6, 6, 1, 152064, 0x38c33f28
+0, 7, 7, 1, 152064, 0x3e8444c7
+0, 8, 8, 1, 152064, 0x14ca4ab2
+0, 9, 9, 1, 152064, 0xe20e78f7
diff --git a/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b b/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b
new file mode 100644
index 0000000000..244e546cd0
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0, 0, 0, 1, 202752, 0xffa1c502
+0, 1, 1, 1, 202752, 0x51752f3c
+0, 2, 2, 1, 202752, 0xe683991d
+0, 3, 3, 1, 202752, 0xf70200a4
+0, 4, 4, 1, 202752, 0x1a4d63ef
diff --git a/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b b/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b
new file mode 100644
index 0000000000..016abbce76
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0, 0, 0, 1, 405504, 0xe0f40e71
+0, 1, 1, 1, 405504, 0x9bdb5900
+0, 2, 2, 1, 405504, 0x527003ca
+0, 3, 3, 1, 405504, 0x1fbf8ba6
+0, 4, 4, 1, 405504, 0x455e2a4e
diff --git a/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a b/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a
new file mode 100644
index 0000000000..93a3aa4bde
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0, 0, 0, 1, 202752, 0xd5a1e49f
+0, 1, 1, 1, 202752, 0x08352d61
+0, 2, 2, 1, 202752, 0x43f78f47
+0, 3, 3, 1, 202752, 0xfb5910f4
+0, 4, 4, 1, 202752, 0xd98e8739
diff --git a/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a b/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a
new file mode 100644
index 0000000000..4141eeeda8
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0, 0, 0, 1, 405504, 0x049ab58e
+0, 1, 1, 1, 405504, 0x4f6226cb
+0, 2, 2, 1, 405504, 0xaa5fcb44
+0, 3, 3, 1, 405504, 0xbfc09965
+0, 4, 4, 1, 405504, 0xa30acb90
diff --git a/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c b/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
index b2081848db..dbfec436bd 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
+++ b/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
@@ -1,301 +1,301 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x502ec077
-0, 4, 4, 1, 152064, 0x84807243
-0, 6, 6, 1, 152064, 0xd7474a6e
-0, 8, 8, 1, 152064, 0x793469bb
-0, 10, 10, 1, 152064, 0xb7a0faf7
-0, 12, 12, 1, 152064, 0x1d3d3cba
-0, 14, 14, 1, 152064, 0xb62583de
-0, 16, 16, 1, 152064, 0xc8422fb1
-0, 18, 18, 1, 152064, 0x321dc699
-0, 20, 20, 1, 152064, 0x7a34d350
-0, 22, 22, 1, 152064, 0xaa4c302d
-0, 24, 24, 1, 152064, 0x45fa7ab0
-0, 26, 26, 1, 152064, 0xc7262e41
-0, 28, 28, 1, 152064, 0x3550000c
-0, 30, 30, 1, 152064, 0xf4bab54b
-0, 32, 32, 1, 152064, 0xaccf9c1a
-0, 34, 34, 1, 152064, 0x9bee20e9
-0, 36, 36, 1, 152064, 0x47fb7720
-0, 38, 38, 1, 152064, 0x12c63ffb
-0, 40, 40, 1, 152064, 0xfa2b8b4d
-0, 42, 42, 1, 152064, 0x279964bd
-0, 44, 44, 1, 152064, 0xb8b01c7e
-0, 46, 46, 1, 152064, 0x816fa010
-0, 48, 48, 1, 152064, 0x59fe1c8c
-0, 50, 50, 1, 152064, 0x13393fad
-0, 52, 52, 1, 152064, 0x991a50a4
-0, 54, 54, 1, 152064, 0x57df3eb7
-0, 56, 56, 1, 152064, 0x744371df
-0, 58, 58, 1, 152064, 0xe9f6d3ff
-0, 60, 60, 1, 152064, 0xc506fba0
-0, 62, 62, 1, 152064, 0x6295b90e
-0, 64, 64, 1, 152064, 0xa19cee2d
-0, 66, 66, 1, 152064, 0xf8c1b3ca
-0, 68, 68, 1, 152064, 0x69f68ce0
-0, 70, 70, 1, 152064, 0x80558bb6
-0, 72, 72, 1, 152064, 0x27824fa5
-0, 74, 74, 1, 152064, 0x27c929a1
-0, 76, 76, 1, 152064, 0xc0fe06d1
-0, 78, 78, 1, 152064, 0xc52bc58c
-0, 80, 80, 1, 152064, 0x0a5363c7
-0, 82, 82, 1, 152064, 0xd0f45a0d
-0, 84, 84, 1, 152064, 0x274710f9
-0, 86, 86, 1, 152064, 0x89d2d390
-0, 88, 88, 1, 152064, 0x12a9bfb0
-0, 90, 90, 1, 152064, 0x04501a93
-0, 92, 92, 1, 152064, 0xf92cbbf4
-0, 94, 94, 1, 152064, 0xf6d1b27d
-0, 96, 96, 1, 152064, 0xe3e904c3
-0, 98, 98, 1, 152064, 0x58f8516d
-0, 100, 100, 1, 152064, 0x70370c2b
-0, 102, 102, 1, 152064, 0xfeebc88c
-0, 104, 104, 1, 152064, 0x974c6ed6
-0, 106, 106, 1, 152064, 0x401bdcf2
-0, 108, 108, 1, 152064, 0xfe61e278
-0, 110, 110, 1, 152064, 0x96ba8bb9
-0, 112, 112, 1, 152064, 0x988492fd
-0, 114, 114, 1, 152064, 0xd1d913a9
-0, 116, 116, 1, 152064, 0x6bc46f0e
-0, 118, 118, 1, 152064, 0x695ef706
-0, 120, 120, 1, 152064, 0x142045c9
-0, 122, 122, 1, 152064, 0xb390ed87
-0, 124, 124, 1, 152064, 0xb9e6d2e5
-0, 126, 126, 1, 152064, 0xe348797f
-0, 128, 128, 1, 152064, 0x1cbd29d6
-0, 130, 130, 1, 152064, 0xbd7dd694
-0, 132, 132, 1, 152064, 0x516873c3
-0, 134, 134, 1, 152064, 0x27bba182
-0, 136, 136, 1, 152064, 0x7541f920
-0, 138, 138, 1, 152064, 0xfdf67042
-0, 140, 140, 1, 152064, 0x6c3c7896
-0, 142, 142, 1, 152064, 0xed86c467
-0, 144, 144, 1, 152064, 0x4ea83ca2
-0, 146, 146, 1, 152064, 0xa3e6725b
-0, 148, 148, 1, 152064, 0x917f5f16
-0, 150, 150, 1, 152064, 0x8cf2d2e1
-0, 152, 152, 1, 152064, 0x57a8d116
-0, 154, 154, 1, 152064, 0x0db267d4
-0, 156, 156, 1, 152064, 0xce782ac5
-0, 158, 158, 1, 152064, 0x1c9d8518
-0, 160, 160, 1, 152064, 0x47598ac7
-0, 162, 162, 1, 152064, 0xc5033d97
-0, 164, 164, 1, 152064, 0xd7aaa3a4
-0, 166, 166, 1, 152064, 0x078afc96
-0, 168, 168, 1, 152064, 0xc9fe673d
-0, 170, 170, 1, 152064, 0xe9284066
-0, 172, 172, 1, 152064, 0xbc570982
-0, 174, 174, 1, 152064, 0x0aac8574
-0, 176, 176, 1, 152064, 0x098cbeee
-0, 178, 178, 1, 152064, 0x19c36a9d
-0, 180, 180, 1, 152064, 0x8fe4a893
-0, 182, 182, 1, 152064, 0x0b652f17
-0, 184, 184, 1, 152064, 0x10f2e6bf
-0, 186, 186, 1, 152064, 0x7ce5634e
-0, 188, 188, 1, 152064, 0x8fe4ac6c
-0, 190, 190, 1, 152064, 0xcaba749e
-0, 192, 192, 1, 152064, 0x5f8a0d5c
-0, 194, 194, 1, 152064, 0xcaa66bbc
-0, 196, 196, 1, 152064, 0xc87ae617
-0, 198, 198, 1, 152064, 0xe8ef4dd7
-0, 200, 200, 1, 152064, 0xdfca5a07
-0, 202, 202, 1, 152064, 0x5f7eab7d
-0, 204, 204, 1, 152064, 0x8a65ebbb
-0, 206, 206, 1, 152064, 0x4beab4a0
-0, 208, 208, 1, 152064, 0xb5e6ab30
-0, 210, 210, 1, 152064, 0x8fe4f4d4
-0, 212, 212, 1, 152064, 0x95bde1ca
-0, 214, 214, 1, 152064, 0xcc5e3a53
-0, 216, 216, 1, 152064, 0xf09f1dd7
-0, 218, 218, 1, 152064, 0x10179672
-0, 220, 220, 1, 152064, 0x4ad16184
-0, 222, 222, 1, 152064, 0x9efa0e23
-0, 224, 224, 1, 152064, 0x22f59522
-0, 226, 226, 1, 152064, 0x4d38f09d
-0, 228, 228, 1, 152064, 0x4c5ebf56
-0, 230, 230, 1, 152064, 0xb19d5077
-0, 232, 232, 1, 152064, 0xa98576b9
-0, 234, 234, 1, 152064, 0x65324239
-0, 236, 236, 1, 152064, 0x709e4031
-0, 238, 238, 1, 152064, 0xf8e81681
-0, 240, 240, 1, 152064, 0x058514e5
-0, 242, 242, 1, 152064, 0xd1d1c806
-0, 244, 244, 1, 152064, 0x0e4dde57
-0, 246, 246, 1, 152064, 0x49e9c2bb
-0, 248, 248, 1, 152064, 0x01417ce6
-0, 250, 250, 1, 152064, 0xda7ebbf1
-0, 252, 252, 1, 152064, 0xa22906b7
-0, 254, 254, 1, 152064, 0x32e2df87
-0, 256, 256, 1, 152064, 0x69917c8f
-0, 258, 258, 1, 152064, 0xea8ed2cc
-0, 260, 260, 1, 152064, 0x0b8d57f1
-0, 262, 262, 1, 152064, 0x5f683bcd
-0, 264, 264, 1, 152064, 0x5162fe2f
-0, 266, 266, 1, 152064, 0x49c052f8
-0, 268, 268, 1, 152064, 0x990b69ba
-0, 270, 270, 1, 152064, 0xa6d4f99f
-0, 272, 272, 1, 152064, 0xe79ef4da
-0, 274, 274, 1, 152064, 0x5e8a3847
-0, 276, 276, 1, 152064, 0x38b1e75f
-0, 278, 278, 1, 152064, 0xf5c91bed
-0, 280, 280, 1, 152064, 0xd59a6d26
-0, 282, 282, 1, 152064, 0xc361de06
-0, 284, 284, 1, 152064, 0x63ed2229
-0, 286, 286, 1, 152064, 0xb8229205
-0, 288, 288, 1, 152064, 0x7c6619af
-0, 290, 290, 1, 152064, 0x4126b02f
-0, 292, 292, 1, 152064, 0x9250b99b
-0, 294, 294, 1, 152064, 0x589778f9
-0, 296, 296, 1, 152064, 0xed1fa45b
-0, 298, 298, 1, 152064, 0x700b6f32
-0, 300, 300, 1, 152064, 0x0590df55
-0, 302, 302, 1, 152064, 0x3e9c4018
-0, 304, 304, 1, 152064, 0x957b8860
-0, 306, 306, 1, 152064, 0x56161560
-0, 308, 308, 1, 152064, 0xbc43bc3b
-0, 310, 310, 1, 152064, 0x508d8632
-0, 312, 312, 1, 152064, 0xbc5736d8
-0, 314, 314, 1, 152064, 0xed7d3aef
-0, 316, 316, 1, 152064, 0x1dcdda9f
-0, 318, 318, 1, 152064, 0x8ef6d5c9
-0, 320, 320, 1, 152064, 0x15466acc
-0, 322, 322, 1, 152064, 0x45d4cf67
-0, 324, 324, 1, 152064, 0x8c900b9d
-0, 326, 326, 1, 152064, 0x747006e0
-0, 328, 328, 1, 152064, 0xac920a0c
-0, 330, 330, 1, 152064, 0xb8210c27
-0, 332, 332, 1, 152064, 0x7dbb873a
-0, 334, 334, 1, 152064, 0x0d4d7584
-0, 336, 336, 1, 152064, 0xefb3fe60
-0, 338, 338, 1, 152064, 0x905e2644
-0, 340, 340, 1, 152064, 0x7c04e534
-0, 342, 342, 1, 152064, 0x8889972a
-0, 344, 344, 1, 152064, 0x21c7d8ad
-0, 346, 346, 1, 152064, 0x1c641176
-0, 348, 348, 1, 152064, 0xf71489a4
-0, 350, 350, 1, 152064, 0xd7ac5555
-0, 352, 352, 1, 152064, 0xb4609c6d
-0, 354, 354, 1, 152064, 0xf5b2bd5e
-0, 356, 356, 1, 152064, 0x9f43ce57
-0, 358, 358, 1, 152064, 0x77642dd3
-0, 360, 360, 1, 152064, 0x3e79565c
-0, 362, 362, 1, 152064, 0x95f40b8e
-0, 364, 364, 1, 152064, 0x3c8ca4d4
-0, 366, 366, 1, 152064, 0xa02ac497
-0, 368, 368, 1, 152064, 0x4c93b377
-0, 370, 370, 1, 152064, 0x55f5ac68
-0, 372, 372, 1, 152064, 0xf8652eca
-0, 374, 374, 1, 152064, 0x56e94574
-0, 376, 376, 1, 152064, 0x6d8302e1
-0, 378, 378, 1, 152064, 0x29a57061
-0, 380, 380, 1, 152064, 0x24e4cfdc
-0, 382, 382, 1, 152064, 0xf5a5d62a
-0, 384, 384, 1, 152064, 0x998870c1
-0, 386, 386, 1, 152064, 0xa15b1f4e
-0, 388, 388, 1, 152064, 0xb0ccb51f
-0, 390, 390, 1, 152064, 0xeaaf59ab
-0, 392, 392, 1, 152064, 0x7e2b4fe6
-0, 394, 394, 1, 152064, 0x72299fea
-0, 396, 396, 1, 152064, 0x769da8b2
-0, 398, 398, 1, 152064, 0xefad7ef8
-0, 400, 400, 1, 152064, 0x24819983
-0, 402, 402, 1, 152064, 0x2aad32ab
-0, 404, 404, 1, 152064, 0xc80cac79
-0, 406, 406, 1, 152064, 0x1659d628
-0, 408, 408, 1, 152064, 0xef941f66
-0, 410, 410, 1, 152064, 0x0d7fcdb5
-0, 412, 412, 1, 152064, 0x7c1853fa
-0, 414, 414, 1, 152064, 0xb94c4d3c
-0, 416, 416, 1, 152064, 0xc47adfc2
-0, 418, 418, 1, 152064, 0x366a6729
-0, 420, 420, 1, 152064, 0x7eb37b70
-0, 422, 422, 1, 152064, 0xafd54c27
-0, 424, 424, 1, 152064, 0x67b18636
-0, 426, 426, 1, 152064, 0x93b22dcf
-0, 428, 428, 1, 152064, 0xa64991f1
-0, 430, 430, 1, 152064, 0xd32a7102
-0, 432, 432, 1, 152064, 0xff665d1c
-0, 434, 434, 1, 152064, 0xf107cc31
-0, 436, 436, 1, 152064, 0xf5b25652
-0, 438, 438, 1, 152064, 0x8caf783d
-0, 440, 440, 1, 152064, 0x72f3eb00
-0, 442, 442, 1, 152064, 0xb5aea5f8
-0, 444, 444, 1, 152064, 0xee70e870
-0, 446, 446, 1, 152064, 0x7c3a0156
-0, 448, 448, 1, 152064, 0x871b6383
-0, 450, 450, 1, 152064, 0x48d831ff
-0, 452, 452, 1, 152064, 0xca233913
-0, 454, 454, 1, 152064, 0xe14bc5eb
-0, 456, 456, 1, 152064, 0x9b1d27e7
-0, 458, 458, 1, 152064, 0xfb9637f7
-0, 460, 460, 1, 152064, 0x0c022157
-0, 462, 462, 1, 152064, 0x16d35fc9
-0, 464, 464, 1, 152064, 0x6d935f71
-0, 466, 466, 1, 152064, 0xae4066fa
-0, 468, 468, 1, 152064, 0xcef94fdc
-0, 470, 470, 1, 152064, 0xc234edb9
-0, 472, 472, 1, 152064, 0x26a4f2e2
-0, 474, 474, 1, 152064, 0xd29ac23e
-0, 476, 476, 1, 152064, 0xb7604395
-0, 478, 478, 1, 152064, 0x408084f6
-0, 480, 480, 1, 152064, 0x0a02026c
-0, 482, 482, 1, 152064, 0x78b33c7c
-0, 484, 484, 1, 152064, 0xcb02b874
-0, 486, 486, 1, 152064, 0xf566513b
-0, 488, 488, 1, 152064, 0xb34e52b1
-0, 490, 490, 1, 152064, 0xf55ff493
-0, 492, 492, 1, 152064, 0xb0e8282a
-0, 494, 494, 1, 152064, 0xe9510bbe
-0, 496, 496, 1, 152064, 0x292e8c5a
-0, 498, 498, 1, 152064, 0x62b9d2b0
-0, 500, 500, 1, 152064, 0x3a8cc827
-0, 502, 502, 1, 152064, 0x25cc465e
-0, 504, 504, 1, 152064, 0xf2bc32e2
-0, 506, 506, 1, 152064, 0x6141f914
-0, 508, 508, 1, 152064, 0x1171256f
-0, 510, 510, 1, 152064, 0x13cb2ded
-0, 512, 512, 1, 152064, 0x3d4ca557
-0, 514, 514, 1, 152064, 0xf2b9e72e
-0, 516, 516, 1, 152064, 0x03f7547a
-0, 518, 518, 1, 152064, 0xc7302955
-0, 520, 520, 1, 152064, 0xe78a46d3
-0, 522, 522, 1, 152064, 0x3726a270
-0, 524, 524, 1, 152064, 0x2f65722a
-0, 526, 526, 1, 152064, 0x55acce40
-0, 528, 528, 1, 152064, 0xf6fa9db2
-0, 530, 530, 1, 152064, 0x70a36937
-0, 532, 532, 1, 152064, 0x9313742d
-0, 534, 534, 1, 152064, 0x2eb14e53
-0, 536, 536, 1, 152064, 0x3d47c9c3
-0, 538, 538, 1, 152064, 0xd0a90348
-0, 540, 540, 1, 152064, 0x6ad48088
-0, 542, 542, 1, 152064, 0x68e64738
-0, 544, 544, 1, 152064, 0x04c3735a
-0, 546, 546, 1, 152064, 0x51d0593f
-0, 548, 548, 1, 152064, 0x42cf2b48
-0, 550, 550, 1, 152064, 0xa5496a0c
-0, 552, 552, 1, 152064, 0x84c25549
-0, 554, 554, 1, 152064, 0x96691600
-0, 556, 556, 1, 152064, 0x423135db
-0, 558, 558, 1, 152064, 0x8d2e08b6
-0, 560, 560, 1, 152064, 0xaeb4c840
-0, 562, 562, 1, 152064, 0xf3e71780
-0, 564, 564, 1, 152064, 0x8858228b
-0, 566, 566, 1, 152064, 0xf28613f8
-0, 568, 568, 1, 152064, 0xb5327882
-0, 570, 570, 1, 152064, 0xbb60bb85
-0, 572, 572, 1, 152064, 0x345ab1c9
-0, 574, 574, 1, 152064, 0x8aac2cba
-0, 576, 576, 1, 152064, 0x7ce15b4c
-0, 578, 578, 1, 152064, 0xc09c55c0
-0, 580, 580, 1, 152064, 0x8482ddd6
-0, 582, 582, 1, 152064, 0xab222a13
-0, 584, 584, 1, 152064, 0xd39b0dea
-0, 586, 586, 1, 152064, 0x6dab6e06
-0, 588, 588, 1, 152064, 0xec0891bd
-0, 590, 590, 1, 152064, 0x88bd9701
-0, 592, 592, 1, 152064, 0xdf13072a
-0, 594, 594, 1, 152064, 0x23b33081
-0, 596, 596, 1, 152064, 0x63943137
-0, 598, 598, 1, 152064, 0xab6a9052
-0, 599, 599, 1, 152064, 0x05485494
+0, 0, 0, 1, 152064, 0x502ec077
+0, 1, 1, 1, 152064, 0x84807243
+0, 2, 2, 1, 152064, 0xd7474a6e
+0, 3, 3, 1, 152064, 0x793469bb
+0, 4, 4, 1, 152064, 0xb7a0faf7
+0, 5, 5, 1, 152064, 0x1d3d3cba
+0, 6, 6, 1, 152064, 0xb62583de
+0, 7, 7, 1, 152064, 0xc8422fb1
+0, 8, 8, 1, 152064, 0x321dc699
+0, 9, 9, 1, 152064, 0x7a34d350
+0, 10, 10, 1, 152064, 0xaa4c302d
+0, 11, 11, 1, 152064, 0x45fa7ab0
+0, 12, 12, 1, 152064, 0xc7262e41
+0, 13, 13, 1, 152064, 0x3550000c
+0, 14, 14, 1, 152064, 0xf4bab54b
+0, 15, 15, 1, 152064, 0xaccf9c1a
+0, 16, 16, 1, 152064, 0x9bee20e9
+0, 17, 17, 1, 152064, 0x47fb7720
+0, 18, 18, 1, 152064, 0x12c63ffb
+0, 19, 19, 1, 152064, 0xfa2b8b4d
+0, 20, 20, 1, 152064, 0x279964bd
+0, 21, 21, 1, 152064, 0xb8b01c7e
+0, 22, 22, 1, 152064, 0x816fa010
+0, 23, 23, 1, 152064, 0x59fe1c8c
+0, 24, 24, 1, 152064, 0x13393fad
+0, 25, 25, 1, 152064, 0x991a50a4
+0, 26, 26, 1, 152064, 0x57df3eb7
+0, 27, 27, 1, 152064, 0x744371df
+0, 28, 28, 1, 152064, 0xe9f6d3ff
+0, 29, 29, 1, 152064, 0xc506fba0
+0, 30, 30, 1, 152064, 0x6295b90e
+0, 31, 31, 1, 152064, 0xa19cee2d
+0, 32, 32, 1, 152064, 0xf8c1b3ca
+0, 33, 33, 1, 152064, 0x69f68ce0
+0, 34, 34, 1, 152064, 0x80558bb6
+0, 35, 35, 1, 152064, 0x27824fa5
+0, 36, 36, 1, 152064, 0x27c929a1
+0, 37, 37, 1, 152064, 0xc0fe06d1
+0, 38, 38, 1, 152064, 0xc52bc58c
+0, 39, 39, 1, 152064, 0x0a5363c7
+0, 40, 40, 1, 152064, 0xd0f45a0d
+0, 41, 41, 1, 152064, 0x274710f9
+0, 42, 42, 1, 152064, 0x89d2d390
+0, 43, 43, 1, 152064, 0x12a9bfb0
+0, 44, 44, 1, 152064, 0x04501a93
+0, 45, 45, 1, 152064, 0xf92cbbf4
+0, 46, 46, 1, 152064, 0xf6d1b27d
+0, 47, 47, 1, 152064, 0xe3e904c3
+0, 48, 48, 1, 152064, 0x58f8516d
+0, 49, 49, 1, 152064, 0x70370c2b
+0, 50, 50, 1, 152064, 0xfeebc88c
+0, 51, 51, 1, 152064, 0x974c6ed6
+0, 52, 52, 1, 152064, 0x401bdcf2
+0, 53, 53, 1, 152064, 0xfe61e278
+0, 54, 54, 1, 152064, 0x96ba8bb9
+0, 55, 55, 1, 152064, 0x988492fd
+0, 56, 56, 1, 152064, 0xd1d913a9
+0, 57, 57, 1, 152064, 0x6bc46f0e
+0, 58, 58, 1, 152064, 0x695ef706
+0, 59, 59, 1, 152064, 0x142045c9
+0, 60, 60, 1, 152064, 0xb390ed87
+0, 61, 61, 1, 152064, 0xb9e6d2e5
+0, 62, 62, 1, 152064, 0xe348797f
+0, 63, 63, 1, 152064, 0x1cbd29d6
+0, 64, 64, 1, 152064, 0xbd7dd694
+0, 65, 65, 1, 152064, 0x516873c3
+0, 66, 66, 1, 152064, 0x27bba182
+0, 67, 67, 1, 152064, 0x7541f920
+0, 68, 68, 1, 152064, 0xfdf67042
+0, 69, 69, 1, 152064, 0x6c3c7896
+0, 70, 70, 1, 152064, 0xed86c467
+0, 71, 71, 1, 152064, 0x4ea83ca2
+0, 72, 72, 1, 152064, 0xa3e6725b
+0, 73, 73, 1, 152064, 0x917f5f16
+0, 74, 74, 1, 152064, 0x8cf2d2e1
+0, 75, 75, 1, 152064, 0x57a8d116
+0, 76, 76, 1, 152064, 0x0db267d4
+0, 77, 77, 1, 152064, 0xce782ac5
+0, 78, 78, 1, 152064, 0x1c9d8518
+0, 79, 79, 1, 152064, 0x47598ac7
+0, 80, 80, 1, 152064, 0xc5033d97
+0, 81, 81, 1, 152064, 0xd7aaa3a4
+0, 82, 82, 1, 152064, 0x078afc96
+0, 83, 83, 1, 152064, 0xc9fe673d
+0, 84, 84, 1, 152064, 0xe9284066
+0, 85, 85, 1, 152064, 0xbc570982
+0, 86, 86, 1, 152064, 0x0aac8574
+0, 87, 87, 1, 152064, 0x098cbeee
+0, 88, 88, 1, 152064, 0x19c36a9d
+0, 89, 89, 1, 152064, 0x8fe4a893
+0, 90, 90, 1, 152064, 0x0b652f17
+0, 91, 91, 1, 152064, 0x10f2e6bf
+0, 92, 92, 1, 152064, 0x7ce5634e
+0, 93, 93, 1, 152064, 0x8fe4ac6c
+0, 94, 94, 1, 152064, 0xcaba749e
+0, 95, 95, 1, 152064, 0x5f8a0d5c
+0, 96, 96, 1, 152064, 0xcaa66bbc
+0, 97, 97, 1, 152064, 0xc87ae617
+0, 98, 98, 1, 152064, 0xe8ef4dd7
+0, 99, 99, 1, 152064, 0xdfca5a07
+0, 100, 100, 1, 152064, 0x5f7eab7d
+0, 101, 101, 1, 152064, 0x8a65ebbb
+0, 102, 102, 1, 152064, 0x4beab4a0
+0, 103, 103, 1, 152064, 0xb5e6ab30
+0, 104, 104, 1, 152064, 0x8fe4f4d4
+0, 105, 105, 1, 152064, 0x95bde1ca
+0, 106, 106, 1, 152064, 0xcc5e3a53
+0, 107, 107, 1, 152064, 0xf09f1dd7
+0, 108, 108, 1, 152064, 0x10179672
+0, 109, 109, 1, 152064, 0x4ad16184
+0, 110, 110, 1, 152064, 0x9efa0e23
+0, 111, 111, 1, 152064, 0x22f59522
+0, 112, 112, 1, 152064, 0x4d38f09d
+0, 113, 113, 1, 152064, 0x4c5ebf56
+0, 114, 114, 1, 152064, 0xb19d5077
+0, 115, 115, 1, 152064, 0xa98576b9
+0, 116, 116, 1, 152064, 0x65324239
+0, 117, 117, 1, 152064, 0x709e4031
+0, 118, 118, 1, 152064, 0xf8e81681
+0, 119, 119, 1, 152064, 0x058514e5
+0, 120, 120, 1, 152064, 0xd1d1c806
+0, 121, 121, 1, 152064, 0x0e4dde57
+0, 122, 122, 1, 152064, 0x49e9c2bb
+0, 123, 123, 1, 152064, 0x01417ce6
+0, 124, 124, 1, 152064, 0xda7ebbf1
+0, 125, 125, 1, 152064, 0xa22906b7
+0, 126, 126, 1, 152064, 0x32e2df87
+0, 127, 127, 1, 152064, 0x69917c8f
+0, 128, 128, 1, 152064, 0xea8ed2cc
+0, 129, 129, 1, 152064, 0x0b8d57f1
+0, 130, 130, 1, 152064, 0x5f683bcd
+0, 131, 131, 1, 152064, 0x5162fe2f
+0, 132, 132, 1, 152064, 0x49c052f8
+0, 133, 133, 1, 152064, 0x990b69ba
+0, 134, 134, 1, 152064, 0xa6d4f99f
+0, 135, 135, 1, 152064, 0xe79ef4da
+0, 136, 136, 1, 152064, 0x5e8a3847
+0, 137, 137, 1, 152064, 0x38b1e75f
+0, 138, 138, 1, 152064, 0xf5c91bed
+0, 139, 139, 1, 152064, 0xd59a6d26
+0, 140, 140, 1, 152064, 0xc361de06
+0, 141, 141, 1, 152064, 0x63ed2229
+0, 142, 142, 1, 152064, 0xb8229205
+0, 143, 143, 1, 152064, 0x7c6619af
+0, 144, 144, 1, 152064, 0x4126b02f
+0, 145, 145, 1, 152064, 0x9250b99b
+0, 146, 146, 1, 152064, 0x589778f9
+0, 147, 147, 1, 152064, 0xed1fa45b
+0, 148, 148, 1, 152064, 0x700b6f32
+0, 149, 149, 1, 152064, 0x0590df55
+0, 150, 150, 1, 152064, 0x3e9c4018
+0, 151, 151, 1, 152064, 0x957b8860
+0, 152, 152, 1, 152064, 0x56161560
+0, 153, 153, 1, 152064, 0xbc43bc3b
+0, 154, 154, 1, 152064, 0x508d8632
+0, 155, 155, 1, 152064, 0xbc5736d8
+0, 156, 156, 1, 152064, 0xed7d3aef
+0, 157, 157, 1, 152064, 0x1dcdda9f
+0, 158, 158, 1, 152064, 0x8ef6d5c9
+0, 159, 159, 1, 152064, 0x15466acc
+0, 160, 160, 1, 152064, 0x45d4cf67
+0, 161, 161, 1, 152064, 0x8c900b9d
+0, 162, 162, 1, 152064, 0x747006e0
+0, 163, 163, 1, 152064, 0xac920a0c
+0, 164, 164, 1, 152064, 0xb8210c27
+0, 165, 165, 1, 152064, 0x7dbb873a
+0, 166, 166, 1, 152064, 0x0d4d7584
+0, 167, 167, 1, 152064, 0xefb3fe60
+0, 168, 168, 1, 152064, 0x905e2644
+0, 169, 169, 1, 152064, 0x7c04e534
+0, 170, 170, 1, 152064, 0x8889972a
+0, 171, 171, 1, 152064, 0x21c7d8ad
+0, 172, 172, 1, 152064, 0x1c641176
+0, 173, 173, 1, 152064, 0xf71489a4
+0, 174, 174, 1, 152064, 0xd7ac5555
+0, 175, 175, 1, 152064, 0xb4609c6d
+0, 176, 176, 1, 152064, 0xf5b2bd5e
+0, 177, 177, 1, 152064, 0x9f43ce57
+0, 178, 178, 1, 152064, 0x77642dd3
+0, 179, 179, 1, 152064, 0x3e79565c
+0, 180, 180, 1, 152064, 0x95f40b8e
+0, 181, 181, 1, 152064, 0x3c8ca4d4
+0, 182, 182, 1, 152064, 0xa02ac497
+0, 183, 183, 1, 152064, 0x4c93b377
+0, 184, 184, 1, 152064, 0x55f5ac68
+0, 185, 185, 1, 152064, 0xf8652eca
+0, 186, 186, 1, 152064, 0x56e94574
+0, 187, 187, 1, 152064, 0x6d8302e1
+0, 188, 188, 1, 152064, 0x29a57061
+0, 189, 189, 1, 152064, 0x24e4cfdc
+0, 190, 190, 1, 152064, 0xf5a5d62a
+0, 191, 191, 1, 152064, 0x998870c1
+0, 192, 192, 1, 152064, 0xa15b1f4e
+0, 193, 193, 1, 152064, 0xb0ccb51f
+0, 194, 194, 1, 152064, 0xeaaf59ab
+0, 195, 195, 1, 152064, 0x7e2b4fe6
+0, 196, 196, 1, 152064, 0x72299fea
+0, 197, 197, 1, 152064, 0x769da8b2
+0, 198, 198, 1, 152064, 0xefad7ef8
+0, 199, 199, 1, 152064, 0x24819983
+0, 200, 200, 1, 152064, 0x2aad32ab
+0, 201, 201, 1, 152064, 0xc80cac79
+0, 202, 202, 1, 152064, 0x1659d628
+0, 203, 203, 1, 152064, 0xef941f66
+0, 204, 204, 1, 152064, 0x0d7fcdb5
+0, 205, 205, 1, 152064, 0x7c1853fa
+0, 206, 206, 1, 152064, 0xb94c4d3c
+0, 207, 207, 1, 152064, 0xc47adfc2
+0, 208, 208, 1, 152064, 0x366a6729
+0, 209, 209, 1, 152064, 0x7eb37b70
+0, 210, 210, 1, 152064, 0xafd54c27
+0, 211, 211, 1, 152064, 0x67b18636
+0, 212, 212, 1, 152064, 0x93b22dcf
+0, 213, 213, 1, 152064, 0xa64991f1
+0, 214, 214, 1, 152064, 0xd32a7102
+0, 215, 215, 1, 152064, 0xff665d1c
+0, 216, 216, 1, 152064, 0xf107cc31
+0, 217, 217, 1, 152064, 0xf5b25652
+0, 218, 218, 1, 152064, 0x8caf783d
+0, 219, 219, 1, 152064, 0x72f3eb00
+0, 220, 220, 1, 152064, 0xb5aea5f8
+0, 221, 221, 1, 152064, 0xee70e870
+0, 222, 222, 1, 152064, 0x7c3a0156
+0, 223, 223, 1, 152064, 0x871b6383
+0, 224, 224, 1, 152064, 0x48d831ff
+0, 225, 225, 1, 152064, 0xca233913
+0, 226, 226, 1, 152064, 0xe14bc5eb
+0, 227, 227, 1, 152064, 0x9b1d27e7
+0, 228, 228, 1, 152064, 0xfb9637f7
+0, 229, 229, 1, 152064, 0x0c022157
+0, 230, 230, 1, 152064, 0x16d35fc9
+0, 231, 231, 1, 152064, 0x6d935f71
+0, 232, 232, 1, 152064, 0xae4066fa
+0, 233, 233, 1, 152064, 0xcef94fdc
+0, 234, 234, 1, 152064, 0xc234edb9
+0, 235, 235, 1, 152064, 0x26a4f2e2
+0, 236, 236, 1, 152064, 0xd29ac23e
+0, 237, 237, 1, 152064, 0xb7604395
+0, 238, 238, 1, 152064, 0x408084f6
+0, 239, 239, 1, 152064, 0x0a02026c
+0, 240, 240, 1, 152064, 0x78b33c7c
+0, 241, 241, 1, 152064, 0xcb02b874
+0, 242, 242, 1, 152064, 0xf566513b
+0, 243, 243, 1, 152064, 0xb34e52b1
+0, 244, 244, 1, 152064, 0xf55ff493
+0, 245, 245, 1, 152064, 0xb0e8282a
+0, 246, 246, 1, 152064, 0xe9510bbe
+0, 247, 247, 1, 152064, 0x292e8c5a
+0, 248, 248, 1, 152064, 0x62b9d2b0
+0, 249, 249, 1, 152064, 0x3a8cc827
+0, 250, 250, 1, 152064, 0x25cc465e
+0, 251, 251, 1, 152064, 0xf2bc32e2
+0, 252, 252, 1, 152064, 0x6141f914
+0, 253, 253, 1, 152064, 0x1171256f
+0, 254, 254, 1, 152064, 0x13cb2ded
+0, 255, 255, 1, 152064, 0x3d4ca557
+0, 256, 256, 1, 152064, 0xf2b9e72e
+0, 257, 257, 1, 152064, 0x03f7547a
+0, 258, 258, 1, 152064, 0xc7302955
+0, 259, 259, 1, 152064, 0xe78a46d3
+0, 260, 260, 1, 152064, 0x3726a270
+0, 261, 261, 1, 152064, 0x2f65722a
+0, 262, 262, 1, 152064, 0x55acce40
+0, 263, 263, 1, 152064, 0xf6fa9db2
+0, 264, 264, 1, 152064, 0x70a36937
+0, 265, 265, 1, 152064, 0x9313742d
+0, 266, 266, 1, 152064, 0x2eb14e53
+0, 267, 267, 1, 152064, 0x3d47c9c3
+0, 268, 268, 1, 152064, 0xd0a90348
+0, 269, 269, 1, 152064, 0x6ad48088
+0, 270, 270, 1, 152064, 0x68e64738
+0, 271, 271, 1, 152064, 0x04c3735a
+0, 272, 272, 1, 152064, 0x51d0593f
+0, 273, 273, 1, 152064, 0x42cf2b48
+0, 274, 274, 1, 152064, 0xa5496a0c
+0, 275, 275, 1, 152064, 0x84c25549
+0, 276, 276, 1, 152064, 0x96691600
+0, 277, 277, 1, 152064, 0x423135db
+0, 278, 278, 1, 152064, 0x8d2e08b6
+0, 279, 279, 1, 152064, 0xaeb4c840
+0, 280, 280, 1, 152064, 0xf3e71780
+0, 281, 281, 1, 152064, 0x8858228b
+0, 282, 282, 1, 152064, 0xf28613f8
+0, 283, 283, 1, 152064, 0xb5327882
+0, 284, 284, 1, 152064, 0xbb60bb85
+0, 285, 285, 1, 152064, 0x345ab1c9
+0, 286, 286, 1, 152064, 0x8aac2cba
+0, 287, 287, 1, 152064, 0x7ce15b4c
+0, 288, 288, 1, 152064, 0xc09c55c0
+0, 289, 289, 1, 152064, 0x8482ddd6
+0, 290, 290, 1, 152064, 0xab222a13
+0, 291, 291, 1, 152064, 0xd39b0dea
+0, 292, 292, 1, 152064, 0x6dab6e06
+0, 293, 293, 1, 152064, 0xec0891bd
+0, 294, 294, 1, 152064, 0x88bd9701
+0, 295, 295, 1, 152064, 0xdf13072a
+0, 296, 296, 1, 152064, 0x23b33081
+0, 297, 297, 1, 152064, 0x63943137
+0, 298, 298, 1, 152064, 0xab6a9052
+0, 299, 299, 1, 152064, 0x05485494
diff --git a/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c b/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
index aafb2d4c6f..65a366e0cb 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
+++ b/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
@@ -1,301 +1,301 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x3e39c08b
-0, 4, 4, 1, 152064, 0xabc67990
-0, 6, 6, 1, 152064, 0x19614e74
-0, 8, 8, 1, 152064, 0xa3776beb
-0, 10, 10, 1, 152064, 0xcce6ffdf
-0, 12, 12, 1, 152064, 0xb0e94746
-0, 14, 14, 1, 152064, 0xdb1a84ef
-0, 16, 16, 1, 152064, 0xb2624509
-0, 18, 18, 1, 152064, 0x32e2d826
-0, 20, 20, 1, 152064, 0xb3bddf0b
-0, 22, 22, 1, 152064, 0x2e273ce3
-0, 24, 24, 1, 152064, 0x67af7e4d
-0, 26, 26, 1, 152064, 0x505c3261
-0, 28, 28, 1, 152064, 0xa43d015e
-0, 30, 30, 1, 152064, 0xad41c1f6
-0, 32, 32, 1, 152064, 0x633ba55f
-0, 34, 34, 1, 152064, 0xe80634f0
-0, 36, 36, 1, 152064, 0x80a07dc9
-0, 38, 38, 1, 152064, 0x0e7a3bbf
-0, 40, 40, 1, 152064, 0xcb099196
-0, 42, 42, 1, 152064, 0x57c96db5
-0, 44, 44, 1, 152064, 0xccd422fa
-0, 46, 46, 1, 152064, 0x0850b7a7
-0, 48, 48, 1, 152064, 0x30e33156
-0, 50, 50, 1, 152064, 0x34e13f9a
-0, 52, 52, 1, 152064, 0x03d36000
-0, 54, 54, 1, 152064, 0xbf7d49da
-0, 56, 56, 1, 152064, 0x77336d09
-0, 58, 58, 1, 152064, 0xca8be5a9
-0, 60, 60, 1, 152064, 0xe57c0b08
-0, 62, 62, 1, 152064, 0xbe77c093
-0, 64, 64, 1, 152064, 0x6bf1ff05
-0, 66, 66, 1, 152064, 0x9142babf
-0, 68, 68, 1, 152064, 0x08db8e67
-0, 70, 70, 1, 152064, 0x69ac8cb6
-0, 72, 72, 1, 152064, 0xaa3b5c88
-0, 74, 74, 1, 152064, 0x9bd32638
-0, 76, 76, 1, 152064, 0x7972115a
-0, 78, 78, 1, 152064, 0x5c1dd47b
-0, 80, 80, 1, 152064, 0x8a196e02
-0, 82, 82, 1, 152064, 0xa89672bc
-0, 84, 84, 1, 152064, 0x27b220e4
-0, 86, 86, 1, 152064, 0xfa38dc4a
-0, 88, 88, 1, 152064, 0x4784c639
-0, 90, 90, 1, 152064, 0xa5e4229a
-0, 92, 92, 1, 152064, 0xa986bdfc
-0, 94, 94, 1, 152064, 0x2951b47b
-0, 96, 96, 1, 152064, 0x4df404a6
-0, 98, 98, 1, 152064, 0xc75155e8
-0, 100, 100, 1, 152064, 0xfc05248c
-0, 102, 102, 1, 152064, 0x5d53da10
-0, 104, 104, 1, 152064, 0x284376ec
-0, 106, 106, 1, 152064, 0x19fce380
-0, 108, 108, 1, 152064, 0x876be6c9
-0, 110, 110, 1, 152064, 0x39eb8ff9
-0, 112, 112, 1, 152064, 0x289c9543
-0, 114, 114, 1, 152064, 0x24dd2356
-0, 116, 116, 1, 152064, 0x1dc17d3c
-0, 118, 118, 1, 152064, 0xd17c00ac
-0, 120, 120, 1, 152064, 0xc2ad54de
-0, 122, 122, 1, 152064, 0xbe11ee2f
-0, 124, 124, 1, 152064, 0x3db9dc89
-0, 126, 126, 1, 152064, 0xac0d7bc2
-0, 128, 128, 1, 152064, 0x8dab2dde
-0, 130, 130, 1, 152064, 0x566ad225
-0, 132, 132, 1, 152064, 0x587c7853
-0, 134, 134, 1, 152064, 0x601c9c80
-0, 136, 136, 1, 152064, 0x2afaf751
-0, 138, 138, 1, 152064, 0x1c9f7e3a
-0, 140, 140, 1, 152064, 0x899475bf
-0, 142, 142, 1, 152064, 0x0d65c7d9
-0, 144, 144, 1, 152064, 0xafd63d12
-0, 146, 146, 1, 152064, 0x162e62b9
-0, 148, 148, 1, 152064, 0x5c9554be
-0, 150, 150, 1, 152064, 0x35fbdaa2
-0, 152, 152, 1, 152064, 0x6438cbd8
-0, 154, 154, 1, 152064, 0xde0772c9
-0, 156, 156, 1, 152064, 0x79f82854
-0, 158, 158, 1, 152064, 0x86957840
-0, 160, 160, 1, 152064, 0xd9468cbf
-0, 162, 162, 1, 152064, 0x23e74609
-0, 164, 164, 1, 152064, 0x3919a146
-0, 166, 166, 1, 152064, 0xd641078b
-0, 168, 168, 1, 152064, 0x24397220
-0, 170, 170, 1, 152064, 0xe7fc3a7c
-0, 172, 172, 1, 152064, 0x3997154a
-0, 174, 174, 1, 152064, 0x2af3952c
-0, 176, 176, 1, 152064, 0x274ac07a
-0, 178, 178, 1, 152064, 0x288f7b09
-0, 180, 180, 1, 152064, 0xe6f9b022
-0, 182, 182, 1, 152064, 0xf09e2fbb
-0, 184, 184, 1, 152064, 0x7244e477
-0, 186, 186, 1, 152064, 0x0dfc72eb
-0, 188, 188, 1, 152064, 0x0322b21f
-0, 190, 190, 1, 152064, 0x18b08205
-0, 192, 192, 1, 152064, 0x6606153e
-0, 194, 194, 1, 152064, 0x85186272
-0, 196, 196, 1, 152064, 0x3369f064
-0, 198, 198, 1, 152064, 0xbe0d5a44
-0, 200, 200, 1, 152064, 0x320258bb
-0, 202, 202, 1, 152064, 0x4d6fb091
-0, 204, 204, 1, 152064, 0xc9bbf5e7
-0, 206, 206, 1, 152064, 0x0aa1b69b
-0, 208, 208, 1, 152064, 0x85b9ac11
-0, 210, 210, 1, 152064, 0xb25ff818
-0, 212, 212, 1, 152064, 0xa155dc25
-0, 214, 214, 1, 152064, 0xa8e03bfd
-0, 216, 216, 1, 152064, 0x0a862956
-0, 218, 218, 1, 152064, 0x11b49264
-0, 220, 220, 1, 152064, 0xa94e664e
-0, 222, 222, 1, 152064, 0x330e0fa2
-0, 224, 224, 1, 152064, 0xaf3d9518
-0, 226, 226, 1, 152064, 0x0836f2e8
-0, 228, 228, 1, 152064, 0xbf6dc578
-0, 230, 230, 1, 152064, 0x7b524d20
-0, 232, 232, 1, 152064, 0x9ef7677f
-0, 234, 234, 1, 152064, 0xeacf3f34
-0, 236, 236, 1, 152064, 0xfb4e3dbe
-0, 238, 238, 1, 152064, 0xb46e25cb
-0, 240, 240, 1, 152064, 0x363c1603
-0, 242, 242, 1, 152064, 0x263fc542
-0, 244, 244, 1, 152064, 0xf106e548
-0, 246, 246, 1, 152064, 0xde43c56a
-0, 248, 248, 1, 152064, 0xc2c4770a
-0, 250, 250, 1, 152064, 0x122fce19
-0, 252, 252, 1, 152064, 0x3ba01434
-0, 254, 254, 1, 152064, 0x0e8ce5ee
-0, 256, 256, 1, 152064, 0x6ceb82e1
-0, 258, 258, 1, 152064, 0xa23ee21c
-0, 260, 260, 1, 152064, 0xc6d960f9
-0, 262, 262, 1, 152064, 0x0de15258
-0, 264, 264, 1, 152064, 0x187b0333
-0, 266, 266, 1, 152064, 0x92e6582f
-0, 268, 268, 1, 152064, 0xb9586ce0
-0, 270, 270, 1, 152064, 0xefd803b5
-0, 272, 272, 1, 152064, 0x24eafb29
-0, 274, 274, 1, 152064, 0x20c73b14
-0, 276, 276, 1, 152064, 0xbd7ceaaa
-0, 278, 278, 1, 152064, 0x775216c8
-0, 280, 280, 1, 152064, 0xa08971c7
-0, 282, 282, 1, 152064, 0xef0ee865
-0, 284, 284, 1, 152064, 0x9ac61c2f
-0, 286, 286, 1, 152064, 0x52ae8ea9
-0, 288, 288, 1, 152064, 0x06571c14
-0, 290, 290, 1, 152064, 0x6e78ad33
-0, 292, 292, 1, 152064, 0xad01c627
-0, 294, 294, 1, 152064, 0xbfe074d3
-0, 296, 296, 1, 152064, 0x9357a183
-0, 298, 298, 1, 152064, 0x8de7767f
-0, 300, 300, 1, 152064, 0xa5e6e76e
-0, 302, 302, 1, 152064, 0xa6f646fe
-0, 304, 304, 1, 152064, 0x132e99f8
-0, 306, 306, 1, 152064, 0xb79f27de
-0, 308, 308, 1, 152064, 0x36d3cdcf
-0, 310, 310, 1, 152064, 0xdc938336
-0, 312, 312, 1, 152064, 0xacaa3a7f
-0, 314, 314, 1, 152064, 0xc61a37fd
-0, 316, 316, 1, 152064, 0x4fe1ddf0
-0, 318, 318, 1, 152064, 0xc0f7d660
-0, 320, 320, 1, 152064, 0xd72458ea
-0, 322, 322, 1, 152064, 0x6978d123
-0, 324, 324, 1, 152064, 0x64e60ccf
-0, 326, 326, 1, 152064, 0xaa07004c
-0, 328, 328, 1, 152064, 0x07cd1064
-0, 330, 330, 1, 152064, 0xa82320e5
-0, 332, 332, 1, 152064, 0xaedd8d30
-0, 334, 334, 1, 152064, 0x79b082ea
-0, 336, 336, 1, 152064, 0x9ed800ab
-0, 338, 338, 1, 152064, 0xde592bb4
-0, 340, 340, 1, 152064, 0xd966df88
-0, 342, 342, 1, 152064, 0xf921988a
-0, 344, 344, 1, 152064, 0x557ad9ae
-0, 346, 346, 1, 152064, 0xc3f31a9a
-0, 348, 348, 1, 152064, 0x65248561
-0, 350, 350, 1, 152064, 0x63df4aa6
-0, 352, 352, 1, 152064, 0x618da0a9
-0, 354, 354, 1, 152064, 0xe6f1c435
-0, 356, 356, 1, 152064, 0x9f90c38f
-0, 358, 358, 1, 152064, 0xd2853e14
-0, 360, 360, 1, 152064, 0x6e0268a9
-0, 362, 362, 1, 152064, 0x393712d1
-0, 364, 364, 1, 152064, 0x470da25f
-0, 366, 366, 1, 152064, 0xaf55cb3d
-0, 368, 368, 1, 152064, 0x6935b8b9
-0, 370, 370, 1, 152064, 0x5409a15f
-0, 372, 372, 1, 152064, 0x09073fee
-0, 374, 374, 1, 152064, 0xfb274e82
-0, 376, 376, 1, 152064, 0x1a770581
-0, 378, 378, 1, 152064, 0x17277d0d
-0, 380, 380, 1, 152064, 0xd4dcd982
-0, 382, 382, 1, 152064, 0x6b04eaf3
-0, 384, 384, 1, 152064, 0x8a3d822e
-0, 386, 386, 1, 152064, 0x1b971ec9
-0, 388, 388, 1, 152064, 0x14e0c0f6
-0, 390, 390, 1, 152064, 0x00667450
-0, 392, 392, 1, 152064, 0xd2385902
-0, 394, 394, 1, 152064, 0x905da6ab
-0, 396, 396, 1, 152064, 0xa3ffb18b
-0, 398, 398, 1, 152064, 0x10d48b19
-0, 400, 400, 1, 152064, 0xb2c7a3bd
-0, 402, 402, 1, 152064, 0x45593e96
-0, 404, 404, 1, 152064, 0x47a0b60c
-0, 406, 406, 1, 152064, 0x68c6d1b9
-0, 408, 408, 1, 152064, 0xbc881fcc
-0, 410, 410, 1, 152064, 0x422cc6f2
-0, 412, 412, 1, 152064, 0x9b686410
-0, 414, 414, 1, 152064, 0x35dc5e86
-0, 416, 416, 1, 152064, 0x247bedaa
-0, 418, 418, 1, 152064, 0x22b76fd1
-0, 420, 420, 1, 152064, 0x67cc7a75
-0, 422, 422, 1, 152064, 0xa197521e
-0, 424, 424, 1, 152064, 0x428c8662
-0, 426, 426, 1, 152064, 0x33dc2c73
-0, 428, 428, 1, 152064, 0x5b538903
-0, 430, 430, 1, 152064, 0x3c4176b6
-0, 432, 432, 1, 152064, 0x774364ba
-0, 434, 434, 1, 152064, 0xf237d03e
-0, 436, 436, 1, 152064, 0xac8746fb
-0, 438, 438, 1, 152064, 0x6b306a84
-0, 440, 440, 1, 152064, 0xa2ace513
-0, 442, 442, 1, 152064, 0x709c9be7
-0, 444, 444, 1, 152064, 0x2403f373
-0, 446, 446, 1, 152064, 0x147bf717
-0, 448, 448, 1, 152064, 0xe58964c8
-0, 450, 450, 1, 152064, 0xa0da36fc
-0, 452, 452, 1, 152064, 0x1ac1355c
-0, 454, 454, 1, 152064, 0x8a31c9f2
-0, 456, 456, 1, 152064, 0x42ba205c
-0, 458, 458, 1, 152064, 0xa11b3575
-0, 460, 460, 1, 152064, 0xcb35207c
-0, 462, 462, 1, 152064, 0x528f6189
-0, 464, 464, 1, 152064, 0x34f05bd7
-0, 466, 466, 1, 152064, 0x72317356
-0, 468, 468, 1, 152064, 0xaabd5028
-0, 470, 470, 1, 152064, 0x13dbeb7b
-0, 472, 472, 1, 152064, 0x62f1e8a8
-0, 474, 474, 1, 152064, 0x1723bfcd
-0, 476, 476, 1, 152064, 0x5c083c00
-0, 478, 478, 1, 152064, 0x52137894
-0, 480, 480, 1, 152064, 0xef1e082c
-0, 482, 482, 1, 152064, 0x664b3d53
-0, 484, 484, 1, 152064, 0x2eb9b296
-0, 486, 486, 1, 152064, 0xd0ca511e
-0, 488, 488, 1, 152064, 0x012d4724
-0, 490, 490, 1, 152064, 0xa847f5af
-0, 492, 492, 1, 152064, 0x483a2fde
-0, 494, 494, 1, 152064, 0xd1ab0257
-0, 496, 496, 1, 152064, 0x414692c7
-0, 498, 498, 1, 152064, 0x0b79df88
-0, 500, 500, 1, 152064, 0xdaa2c4a3
-0, 502, 502, 1, 152064, 0xd1b44500
-0, 504, 504, 1, 152064, 0xfd3d2cf3
-0, 506, 506, 1, 152064, 0xfdc0f748
-0, 508, 508, 1, 152064, 0xce762a2a
-0, 510, 510, 1, 152064, 0x08b63572
-0, 512, 512, 1, 152064, 0x5a46a38d
-0, 514, 514, 1, 152064, 0x03cee9c0
-0, 516, 516, 1, 152064, 0x9ee45473
-0, 518, 518, 1, 152064, 0x5a432386
-0, 520, 520, 1, 152064, 0x54c83d87
-0, 522, 522, 1, 152064, 0xc9caa1de
-0, 524, 524, 1, 152064, 0xa28367f1
-0, 526, 526, 1, 152064, 0x2607cdf1
-0, 528, 528, 1, 152064, 0x06baa8de
-0, 530, 530, 1, 152064, 0xf5346e32
-0, 532, 532, 1, 152064, 0x6d3e732b
-0, 534, 534, 1, 152064, 0x798c584b
-0, 536, 536, 1, 152064, 0x4076c948
-0, 538, 538, 1, 152064, 0x868cf63a
-0, 540, 540, 1, 152064, 0x23107ac5
-0, 542, 542, 1, 152064, 0x306f3fe2
-0, 544, 544, 1, 152064, 0xbd1d71d6
-0, 546, 546, 1, 152064, 0x1429545f
-0, 548, 548, 1, 152064, 0xaded29aa
-0, 550, 550, 1, 152064, 0x9b455a94
-0, 552, 552, 1, 152064, 0xb3774ce7
-0, 554, 554, 1, 152064, 0x92580986
-0, 556, 556, 1, 152064, 0x0eae2f95
-0, 558, 558, 1, 152064, 0x599208b2
-0, 560, 560, 1, 152064, 0x4804c04c
-0, 562, 562, 1, 152064, 0x5f730e8f
-0, 564, 564, 1, 152064, 0x3e501d1e
-0, 566, 566, 1, 152064, 0x32100740
-0, 568, 568, 1, 152064, 0x62226ff8
-0, 570, 570, 1, 152064, 0x7683b622
-0, 572, 572, 1, 152064, 0xc3e0aec1
-0, 574, 574, 1, 152064, 0xfac12608
-0, 576, 576, 1, 152064, 0xb21a5781
-0, 578, 578, 1, 152064, 0x8f1e4964
-0, 580, 580, 1, 152064, 0x0f62dd6e
-0, 582, 582, 1, 152064, 0xac062ac4
-0, 584, 584, 1, 152064, 0x1b320f7a
-0, 586, 586, 1, 152064, 0x346e7211
-0, 588, 588, 1, 152064, 0xe47592f3
-0, 590, 590, 1, 152064, 0xa3a7919c
-0, 592, 592, 1, 152064, 0xa3580fa6
-0, 594, 594, 1, 152064, 0xc73430c1
-0, 596, 596, 1, 152064, 0x994a2c18
-0, 598, 598, 1, 152064, 0x0b5d8d45
-0, 599, 599, 1, 152064, 0x9eed5109
+0, 0, 0, 1, 152064, 0x3e39c08b
+0, 1, 1, 1, 152064, 0xabc67990
+0, 2, 2, 1, 152064, 0x19614e74
+0, 3, 3, 1, 152064, 0xa3776beb
+0, 4, 4, 1, 152064, 0xcce6ffdf
+0, 5, 5, 1, 152064, 0xb0e94746
+0, 6, 6, 1, 152064, 0xdb1a84ef
+0, 7, 7, 1, 152064, 0xb2624509
+0, 8, 8, 1, 152064, 0x32e2d826
+0, 9, 9, 1, 152064, 0xb3bddf0b
+0, 10, 10, 1, 152064, 0x2e273ce3
+0, 11, 11, 1, 152064, 0x67af7e4d
+0, 12, 12, 1, 152064, 0x505c3261
+0, 13, 13, 1, 152064, 0xa43d015e
+0, 14, 14, 1, 152064, 0xad41c1f6
+0, 15, 15, 1, 152064, 0x633ba55f
+0, 16, 16, 1, 152064, 0xe80634f0
+0, 17, 17, 1, 152064, 0x80a07dc9
+0, 18, 18, 1, 152064, 0x0e7a3bbf
+0, 19, 19, 1, 152064, 0xcb099196
+0, 20, 20, 1, 152064, 0x57c96db5
+0, 21, 21, 1, 152064, 0xccd422fa
+0, 22, 22, 1, 152064, 0x0850b7a7
+0, 23, 23, 1, 152064, 0x30e33156
+0, 24, 24, 1, 152064, 0x34e13f9a
+0, 25, 25, 1, 152064, 0x03d36000
+0, 26, 26, 1, 152064, 0xbf7d49da
+0, 27, 27, 1, 152064, 0x77336d09
+0, 28, 28, 1, 152064, 0xca8be5a9
+0, 29, 29, 1, 152064, 0xe57c0b08
+0, 30, 30, 1, 152064, 0xbe77c093
+0, 31, 31, 1, 152064, 0x6bf1ff05
+0, 32, 32, 1, 152064, 0x9142babf
+0, 33, 33, 1, 152064, 0x08db8e67
+0, 34, 34, 1, 152064, 0x69ac8cb6
+0, 35, 35, 1, 152064, 0xaa3b5c88
+0, 36, 36, 1, 152064, 0x9bd32638
+0, 37, 37, 1, 152064, 0x7972115a
+0, 38, 38, 1, 152064, 0x5c1dd47b
+0, 39, 39, 1, 152064, 0x8a196e02
+0, 40, 40, 1, 152064, 0xa89672bc
+0, 41, 41, 1, 152064, 0x27b220e4
+0, 42, 42, 1, 152064, 0xfa38dc4a
+0, 43, 43, 1, 152064, 0x4784c639
+0, 44, 44, 1, 152064, 0xa5e4229a
+0, 45, 45, 1, 152064, 0xa986bdfc
+0, 46, 46, 1, 152064, 0x2951b47b
+0, 47, 47, 1, 152064, 0x4df404a6
+0, 48, 48, 1, 152064, 0xc75155e8
+0, 49, 49, 1, 152064, 0xfc05248c
+0, 50, 50, 1, 152064, 0x5d53da10
+0, 51, 51, 1, 152064, 0x284376ec
+0, 52, 52, 1, 152064, 0x19fce380
+0, 53, 53, 1, 152064, 0x876be6c9
+0, 54, 54, 1, 152064, 0x39eb8ff9
+0, 55, 55, 1, 152064, 0x289c9543
+0, 56, 56, 1, 152064, 0x24dd2356
+0, 57, 57, 1, 152064, 0x1dc17d3c
+0, 58, 58, 1, 152064, 0xd17c00ac
+0, 59, 59, 1, 152064, 0xc2ad54de
+0, 60, 60, 1, 152064, 0xbe11ee2f
+0, 61, 61, 1, 152064, 0x3db9dc89
+0, 62, 62, 1, 152064, 0xac0d7bc2
+0, 63, 63, 1, 152064, 0x8dab2dde
+0, 64, 64, 1, 152064, 0x566ad225
+0, 65, 65, 1, 152064, 0x587c7853
+0, 66, 66, 1, 152064, 0x601c9c80
+0, 67, 67, 1, 152064, 0x2afaf751
+0, 68, 68, 1, 152064, 0x1c9f7e3a
+0, 69, 69, 1, 152064, 0x899475bf
+0, 70, 70, 1, 152064, 0x0d65c7d9
+0, 71, 71, 1, 152064, 0xafd63d12
+0, 72, 72, 1, 152064, 0x162e62b9
+0, 73, 73, 1, 152064, 0x5c9554be
+0, 74, 74, 1, 152064, 0x35fbdaa2
+0, 75, 75, 1, 152064, 0x6438cbd8
+0, 76, 76, 1, 152064, 0xde0772c9
+0, 77, 77, 1, 152064, 0x79f82854
+0, 78, 78, 1, 152064, 0x86957840
+0, 79, 79, 1, 152064, 0xd9468cbf
+0, 80, 80, 1, 152064, 0x23e74609
+0, 81, 81, 1, 152064, 0x3919a146
+0, 82, 82, 1, 152064, 0xd641078b
+0, 83, 83, 1, 152064, 0x24397220
+0, 84, 84, 1, 152064, 0xe7fc3a7c
+0, 85, 85, 1, 152064, 0x3997154a
+0, 86, 86, 1, 152064, 0x2af3952c
+0, 87, 87, 1, 152064, 0x274ac07a
+0, 88, 88, 1, 152064, 0x288f7b09
+0, 89, 89, 1, 152064, 0xe6f9b022
+0, 90, 90, 1, 152064, 0xf09e2fbb
+0, 91, 91, 1, 152064, 0x7244e477
+0, 92, 92, 1, 152064, 0x0dfc72eb
+0, 93, 93, 1, 152064, 0x0322b21f
+0, 94, 94, 1, 152064, 0x18b08205
+0, 95, 95, 1, 152064, 0x6606153e
+0, 96, 96, 1, 152064, 0x85186272
+0, 97, 97, 1, 152064, 0x3369f064
+0, 98, 98, 1, 152064, 0xbe0d5a44
+0, 99, 99, 1, 152064, 0x320258bb
+0, 100, 100, 1, 152064, 0x4d6fb091
+0, 101, 101, 1, 152064, 0xc9bbf5e7
+0, 102, 102, 1, 152064, 0x0aa1b69b
+0, 103, 103, 1, 152064, 0x85b9ac11
+0, 104, 104, 1, 152064, 0xb25ff818
+0, 105, 105, 1, 152064, 0xa155dc25
+0, 106, 106, 1, 152064, 0xa8e03bfd
+0, 107, 107, 1, 152064, 0x0a862956
+0, 108, 108, 1, 152064, 0x11b49264
+0, 109, 109, 1, 152064, 0xa94e664e
+0, 110, 110, 1, 152064, 0x330e0fa2
+0, 111, 111, 1, 152064, 0xaf3d9518
+0, 112, 112, 1, 152064, 0x0836f2e8
+0, 113, 113, 1, 152064, 0xbf6dc578
+0, 114, 114, 1, 152064, 0x7b524d20
+0, 115, 115, 1, 152064, 0x9ef7677f
+0, 116, 116, 1, 152064, 0xeacf3f34
+0, 117, 117, 1, 152064, 0xfb4e3dbe
+0, 118, 118, 1, 152064, 0xb46e25cb
+0, 119, 119, 1, 152064, 0x363c1603
+0, 120, 120, 1, 152064, 0x263fc542
+0, 121, 121, 1, 152064, 0xf106e548
+0, 122, 122, 1, 152064, 0xde43c56a
+0, 123, 123, 1, 152064, 0xc2c4770a
+0, 124, 124, 1, 152064, 0x122fce19
+0, 125, 125, 1, 152064, 0x3ba01434
+0, 126, 126, 1, 152064, 0x0e8ce5ee
+0, 127, 127, 1, 152064, 0x6ceb82e1
+0, 128, 128, 1, 152064, 0xa23ee21c
+0, 129, 129, 1, 152064, 0xc6d960f9
+0, 130, 130, 1, 152064, 0x0de15258
+0, 131, 131, 1, 152064, 0x187b0333
+0, 132, 132, 1, 152064, 0x92e6582f
+0, 133, 133, 1, 152064, 0xb9586ce0
+0, 134, 134, 1, 152064, 0xefd803b5
+0, 135, 135, 1, 152064, 0x24eafb29
+0, 136, 136, 1, 152064, 0x20c73b14
+0, 137, 137, 1, 152064, 0xbd7ceaaa
+0, 138, 138, 1, 152064, 0x775216c8
+0, 139, 139, 1, 152064, 0xa08971c7
+0, 140, 140, 1, 152064, 0xef0ee865
+0, 141, 141, 1, 152064, 0x9ac61c2f
+0, 142, 142, 1, 152064, 0x52ae8ea9
+0, 143, 143, 1, 152064, 0x06571c14
+0, 144, 144, 1, 152064, 0x6e78ad33
+0, 145, 145, 1, 152064, 0xad01c627
+0, 146, 146, 1, 152064, 0xbfe074d3
+0, 147, 147, 1, 152064, 0x9357a183
+0, 148, 148, 1, 152064, 0x8de7767f
+0, 149, 149, 1, 152064, 0xa5e6e76e
+0, 150, 150, 1, 152064, 0xa6f646fe
+0, 151, 151, 1, 152064, 0x132e99f8
+0, 152, 152, 1, 152064, 0xb79f27de
+0, 153, 153, 1, 152064, 0x36d3cdcf
+0, 154, 154, 1, 152064, 0xdc938336
+0, 155, 155, 1, 152064, 0xacaa3a7f
+0, 156, 156, 1, 152064, 0xc61a37fd
+0, 157, 157, 1, 152064, 0x4fe1ddf0
+0, 158, 158, 1, 152064, 0xc0f7d660
+0, 159, 159, 1, 152064, 0xd72458ea
+0, 160, 160, 1, 152064, 0x6978d123
+0, 161, 161, 1, 152064, 0x64e60ccf
+0, 162, 162, 1, 152064, 0xaa07004c
+0, 163, 163, 1, 152064, 0x07cd1064
+0, 164, 164, 1, 152064, 0xa82320e5
+0, 165, 165, 1, 152064, 0xaedd8d30
+0, 166, 166, 1, 152064, 0x79b082ea
+0, 167, 167, 1, 152064, 0x9ed800ab
+0, 168, 168, 1, 152064, 0xde592bb4
+0, 169, 169, 1, 152064, 0xd966df88
+0, 170, 170, 1, 152064, 0xf921988a
+0, 171, 171, 1, 152064, 0x557ad9ae
+0, 172, 172, 1, 152064, 0xc3f31a9a
+0, 173, 173, 1, 152064, 0x65248561
+0, 174, 174, 1, 152064, 0x63df4aa6
+0, 175, 175, 1, 152064, 0x618da0a9
+0, 176, 176, 1, 152064, 0xe6f1c435
+0, 177, 177, 1, 152064, 0x9f90c38f
+0, 178, 178, 1, 152064, 0xd2853e14
+0, 179, 179, 1, 152064, 0x6e0268a9
+0, 180, 180, 1, 152064, 0x393712d1
+0, 181, 181, 1, 152064, 0x470da25f
+0, 182, 182, 1, 152064, 0xaf55cb3d
+0, 183, 183, 1, 152064, 0x6935b8b9
+0, 184, 184, 1, 152064, 0x5409a15f
+0, 185, 185, 1, 152064, 0x09073fee
+0, 186, 186, 1, 152064, 0xfb274e82
+0, 187, 187, 1, 152064, 0x1a770581
+0, 188, 188, 1, 152064, 0x17277d0d
+0, 189, 189, 1, 152064, 0xd4dcd982
+0, 190, 190, 1, 152064, 0x6b04eaf3
+0, 191, 191, 1, 152064, 0x8a3d822e
+0, 192, 192, 1, 152064, 0x1b971ec9
+0, 193, 193, 1, 152064, 0x14e0c0f6
+0, 194, 194, 1, 152064, 0x00667450
+0, 195, 195, 1, 152064, 0xd2385902
+0, 196, 196, 1, 152064, 0x905da6ab
+0, 197, 197, 1, 152064, 0xa3ffb18b
+0, 198, 198, 1, 152064, 0x10d48b19
+0, 199, 199, 1, 152064, 0xb2c7a3bd
+0, 200, 200, 1, 152064, 0x45593e96
+0, 201, 201, 1, 152064, 0x47a0b60c
+0, 202, 202, 1, 152064, 0x68c6d1b9
+0, 203, 203, 1, 152064, 0xbc881fcc
+0, 204, 204, 1, 152064, 0x422cc6f2
+0, 205, 205, 1, 152064, 0x9b686410
+0, 206, 206, 1, 152064, 0x35dc5e86
+0, 207, 207, 1, 152064, 0x247bedaa
+0, 208, 208, 1, 152064, 0x22b76fd1
+0, 209, 209, 1, 152064, 0x67cc7a75
+0, 210, 210, 1, 152064, 0xa197521e
+0, 211, 211, 1, 152064, 0x428c8662
+0, 212, 212, 1, 152064, 0x33dc2c73
+0, 213, 213, 1, 152064, 0x5b538903
+0, 214, 214, 1, 152064, 0x3c4176b6
+0, 215, 215, 1, 152064, 0x774364ba
+0, 216, 216, 1, 152064, 0xf237d03e
+0, 217, 217, 1, 152064, 0xac8746fb
+0, 218, 218, 1, 152064, 0x6b306a84
+0, 219, 219, 1, 152064, 0xa2ace513
+0, 220, 220, 1, 152064, 0x709c9be7
+0, 221, 221, 1, 152064, 0x2403f373
+0, 222, 222, 1, 152064, 0x147bf717
+0, 223, 223, 1, 152064, 0xe58964c8
+0, 224, 224, 1, 152064, 0xa0da36fc
+0, 225, 225, 1, 152064, 0x1ac1355c
+0, 226, 226, 1, 152064, 0x8a31c9f2
+0, 227, 227, 1, 152064, 0x42ba205c
+0, 228, 228, 1, 152064, 0xa11b3575
+0, 229, 229, 1, 152064, 0xcb35207c
+0, 230, 230, 1, 152064, 0x528f6189
+0, 231, 231, 1, 152064, 0x34f05bd7
+0, 232, 232, 1, 152064, 0x72317356
+0, 233, 233, 1, 152064, 0xaabd5028
+0, 234, 234, 1, 152064, 0x13dbeb7b
+0, 235, 235, 1, 152064, 0x62f1e8a8
+0, 236, 236, 1, 152064, 0x1723bfcd
+0, 237, 237, 1, 152064, 0x5c083c00
+0, 238, 238, 1, 152064, 0x52137894
+0, 239, 239, 1, 152064, 0xef1e082c
+0, 240, 240, 1, 152064, 0x664b3d53
+0, 241, 241, 1, 152064, 0x2eb9b296
+0, 242, 242, 1, 152064, 0xd0ca511e
+0, 243, 243, 1, 152064, 0x012d4724
+0, 244, 244, 1, 152064, 0xa847f5af
+0, 245, 245, 1, 152064, 0x483a2fde
+0, 246, 246, 1, 152064, 0xd1ab0257
+0, 247, 247, 1, 152064, 0x414692c7
+0, 248, 248, 1, 152064, 0x0b79df88
+0, 249, 249, 1, 152064, 0xdaa2c4a3
+0, 250, 250, 1, 152064, 0xd1b44500
+0, 251, 251, 1, 152064, 0xfd3d2cf3
+0, 252, 252, 1, 152064, 0xfdc0f748
+0, 253, 253, 1, 152064, 0xce762a2a
+0, 254, 254, 1, 152064, 0x08b63572
+0, 255, 255, 1, 152064, 0x5a46a38d
+0, 256, 256, 1, 152064, 0x03cee9c0
+0, 257, 257, 1, 152064, 0x9ee45473
+0, 258, 258, 1, 152064, 0x5a432386
+0, 259, 259, 1, 152064, 0x54c83d87
+0, 260, 260, 1, 152064, 0xc9caa1de
+0, 261, 261, 1, 152064, 0xa28367f1
+0, 262, 262, 1, 152064, 0x2607cdf1
+0, 263, 263, 1, 152064, 0x06baa8de
+0, 264, 264, 1, 152064, 0xf5346e32
+0, 265, 265, 1, 152064, 0x6d3e732b
+0, 266, 266, 1, 152064, 0x798c584b
+0, 267, 267, 1, 152064, 0x4076c948
+0, 268, 268, 1, 152064, 0x868cf63a
+0, 269, 269, 1, 152064, 0x23107ac5
+0, 270, 270, 1, 152064, 0x306f3fe2
+0, 271, 271, 1, 152064, 0xbd1d71d6
+0, 272, 272, 1, 152064, 0x1429545f
+0, 273, 273, 1, 152064, 0xaded29aa
+0, 274, 274, 1, 152064, 0x9b455a94
+0, 275, 275, 1, 152064, 0xb3774ce7
+0, 276, 276, 1, 152064, 0x92580986
+0, 277, 277, 1, 152064, 0x0eae2f95
+0, 278, 278, 1, 152064, 0x599208b2
+0, 279, 279, 1, 152064, 0x4804c04c
+0, 280, 280, 1, 152064, 0x5f730e8f
+0, 281, 281, 1, 152064, 0x3e501d1e
+0, 282, 282, 1, 152064, 0x32100740
+0, 283, 283, 1, 152064, 0x62226ff8
+0, 284, 284, 1, 152064, 0x7683b622
+0, 285, 285, 1, 152064, 0xc3e0aec1
+0, 286, 286, 1, 152064, 0xfac12608
+0, 287, 287, 1, 152064, 0xb21a5781
+0, 288, 288, 1, 152064, 0x8f1e4964
+0, 289, 289, 1, 152064, 0x0f62dd6e
+0, 290, 290, 1, 152064, 0xac062ac4
+0, 291, 291, 1, 152064, 0x1b320f7a
+0, 292, 292, 1, 152064, 0x346e7211
+0, 293, 293, 1, 152064, 0xe47592f3
+0, 294, 294, 1, 152064, 0xa3a7919c
+0, 295, 295, 1, 152064, 0xa3580fa6
+0, 296, 296, 1, 152064, 0xc73430c1
+0, 297, 297, 1, 152064, 0x994a2c18
+0, 298, 298, 1, 152064, 0x0b5d8d45
+0, 299, 299, 1, 152064, 0x9eed5109
diff --git a/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b b/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
index 494fafa5a8..a81e91fef8 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
+++ b/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
@@ -1,301 +1,301 @@
#tb 0: 1/25
-0, 1, 1, 1, 152064, 0xf8248ceb
-0, 3, 3, 1, 152064, 0xb6204c81
-0, 4, 4, 1, 152064, 0x22fb1737
-0, 5, 5, 1, 152064, 0xce8c3fd7
-0, 7, 7, 1, 152064, 0xee88cedc
-0, 8, 8, 1, 152064, 0x1d4209ca
-0, 10, 10, 1, 152064, 0x6fb15238
-0, 12, 12, 1, 152064, 0x505200c2
-0, 13, 13, 1, 152064, 0xb73574ba
-0, 14, 14, 1, 152064, 0x0586a097
-0, 16, 16, 1, 152064, 0xed50fe02
-0, 17, 17, 1, 152064, 0x222221ab
-0, 18, 18, 1, 152064, 0x8afefd46
-0, 20, 20, 1, 152064, 0x6832c5cc
-0, 22, 22, 1, 152064, 0xba4c8110
-0, 23, 23, 1, 152064, 0x95c07e1e
-0, 24, 24, 1, 152064, 0xc5d6fde9
-0, 26, 26, 1, 152064, 0xe75a4921
-0, 28, 28, 1, 152064, 0x53b61688
-0, 29, 29, 1, 152064, 0x0335424b
-0, 31, 31, 1, 152064, 0x621742c7
-0, 33, 33, 1, 152064, 0x4f69f41b
-0, 34, 34, 1, 152064, 0x6b3f65d7
-0, 36, 36, 1, 152064, 0x8dfde04f
-0, 37, 37, 1, 152064, 0x30750ff5
-0, 39, 39, 1, 152064, 0xe3d70f3c
-0, 40, 40, 1, 152064, 0x0c1af825
-0, 42, 42, 1, 152064, 0x58a53935
-0, 43, 43, 1, 152064, 0xc63d9e98
-0, 45, 45, 1, 152064, 0xa85fdc48
-0, 46, 46, 1, 152064, 0x01bb9784
-0, 48, 48, 1, 152064, 0xdd5cb509
-0, 49, 49, 1, 152064, 0x29ae7d2b
-0, 51, 51, 1, 152064, 0xdb08593e
-0, 53, 53, 1, 152064, 0x372d5d4e
-0, 55, 55, 1, 152064, 0x31522664
-0, 57, 57, 1, 152064, 0x3f13f335
-0, 58, 58, 1, 152064, 0xfd10c19a
-0, 60, 60, 1, 152064, 0xef728975
-0, 62, 62, 1, 152064, 0x8e79234d
-0, 64, 64, 1, 152064, 0x47022791
-0, 65, 65, 1, 152064, 0x1ef9d297
-0, 66, 66, 1, 152064, 0x77bf9738
-0, 67, 67, 1, 152064, 0xd6bc8f03
-0, 69, 69, 1, 152064, 0x283ded4a
-0, 71, 71, 1, 152064, 0xd87098d1
-0, 72, 72, 1, 152064, 0x300077a2
-0, 73, 73, 1, 152064, 0x30ffbea4
-0, 75, 75, 1, 152064, 0x5dc5356b
-0, 76, 76, 1, 152064, 0x31cce185
-0, 77, 77, 1, 152064, 0x47fc9148
-0, 79, 79, 1, 152064, 0x1641491e
-0, 80, 80, 1, 152064, 0x2184937d
-0, 82, 82, 1, 152064, 0x126eb74a
-0, 83, 83, 1, 152064, 0x25c07593
-0, 84, 84, 1, 152064, 0xb1294e7e
-0, 86, 86, 1, 152064, 0x8b35f45d
-0, 88, 88, 1, 152064, 0x54765025
-0, 89, 89, 1, 152064, 0x1d17e901
-0, 91, 91, 1, 152064, 0xaeab358d
-0, 93, 93, 1, 152064, 0xf682c91f
-0, 94, 94, 1, 152064, 0x0b4c9b06
-0, 95, 95, 1, 152064, 0x45f326dc
-0, 97, 97, 1, 152064, 0x132eeda3
-0, 98, 98, 1, 152064, 0x3c9b8e16
-0, 99, 99, 1, 152064, 0x1be133c1
-0, 100, 100, 1, 152064, 0xfa876720
-0, 102, 102, 1, 152064, 0x1666cdb8
-0, 103, 103, 1, 152064, 0x362f418f
-0, 104, 104, 1, 152064, 0x926b4a96
-0, 105, 105, 1, 152064, 0xee3da1df
-0, 107, 107, 1, 152064, 0xc11f025d
-0, 108, 108, 1, 152064, 0x9ba62c19
-0, 109, 109, 1, 152064, 0x0d66194f
-0, 110, 110, 1, 152064, 0x2fd09340
-0, 111, 111, 1, 152064, 0x3dfb9e4d
-0, 112, 112, 1, 152064, 0xa3192ce6
-0, 113, 113, 1, 152064, 0x6bfce0e1
-0, 114, 114, 1, 152064, 0x3b7c5286
-0, 116, 116, 1, 152064, 0xb52f4bf5
-0, 118, 118, 1, 152064, 0x30870027
-0, 119, 119, 1, 152064, 0x6f8e71c3
-0, 120, 120, 1, 152064, 0x8d41b09a
-0, 121, 121, 1, 152064, 0xc1ff1d05
-0, 122, 122, 1, 152064, 0xca54125c
-0, 123, 123, 1, 152064, 0x3342d823
-0, 125, 125, 1, 152064, 0xcc4a7542
-0, 127, 127, 1, 152064, 0x21fc9a9d
-0, 128, 128, 1, 152064, 0x91587574
-0, 129, 129, 1, 152064, 0x30929cc2
-0, 130, 130, 1, 152064, 0xf07606b7
-0, 132, 132, 1, 152064, 0x0476b876
-0, 134, 134, 1, 152064, 0x213333dc
-0, 135, 135, 1, 152064, 0x87c67597
-0, 137, 137, 1, 152064, 0x05434641
-0, 139, 139, 1, 152064, 0x959eeffc
-0, 140, 140, 1, 152064, 0x92a130b4
-0, 142, 142, 1, 152064, 0x53d0b544
-0, 144, 144, 1, 152064, 0xaf8c233e
-0, 146, 146, 1, 152064, 0xd3d4259a
-0, 148, 148, 1, 152064, 0xa0287753
-0, 149, 149, 1, 152064, 0xfa23972a
-0, 150, 150, 1, 152064, 0xacae756d
-0, 152, 152, 1, 152064, 0xd8b58b5c
-0, 153, 153, 1, 152064, 0x7db2c755
-0, 155, 155, 1, 152064, 0x31e7b79a
-0, 157, 157, 1, 152064, 0xd8660d98
-0, 158, 158, 1, 152064, 0xdcf0d10d
-0, 159, 159, 1, 152064, 0x3e6567e6
-0, 161, 161, 1, 152064, 0xec3530fd
-0, 162, 162, 1, 152064, 0xf686c61a
-0, 163, 163, 1, 152064, 0x6e706804
-0, 165, 165, 1, 152064, 0x5fd4a1a3
-0, 167, 167, 1, 152064, 0xbb3384f7
-0, 168, 168, 1, 152064, 0x8ffb14dd
-0, 170, 170, 1, 152064, 0x01253a73
-0, 172, 172, 1, 152064, 0xf89c15df
-0, 173, 173, 1, 152064, 0xda2b0b4c
-0, 175, 175, 1, 152064, 0xfc9dfcc1
-0, 177, 177, 1, 152064, 0xfef4f0fa
-0, 178, 178, 1, 152064, 0x91669bea
-0, 180, 180, 1, 152064, 0x3664a565
-0, 181, 181, 1, 152064, 0x32dd7923
-0, 182, 182, 1, 152064, 0x26825231
-0, 183, 183, 1, 152064, 0x5f81896e
-0, 185, 185, 1, 152064, 0x0c64ca2f
-0, 186, 186, 1, 152064, 0x488bb665
-0, 188, 188, 1, 152064, 0x4d183a0f
-0, 189, 189, 1, 152064, 0xed169321
-0, 190, 190, 1, 152064, 0xcec22917
-0, 191, 191, 1, 152064, 0xbe04ea6c
-0, 193, 193, 1, 152064, 0x32b8bf9f
-0, 195, 195, 1, 152064, 0x9c7c2e13
-0, 197, 197, 1, 152064, 0x232e3016
-0, 199, 199, 1, 152064, 0x1b76c08e
-0, 201, 201, 1, 152064, 0x7425d821
-0, 202, 202, 1, 152064, 0x0818ff3c
-0, 203, 203, 1, 152064, 0xb4f2c42b
-0, 204, 204, 1, 152064, 0xe029f979
-0, 206, 206, 1, 152064, 0x97c54c2f
-0, 208, 208, 1, 152064, 0xd101c3b5
-0, 209, 209, 1, 152064, 0x5ed1f5d4
-0, 211, 211, 1, 152064, 0xc28264d1
-0, 212, 212, 1, 152064, 0xa162dd31
-0, 213, 213, 1, 152064, 0x2ee872ce
-0, 215, 215, 1, 152064, 0x809a8fce
-0, 216, 216, 1, 152064, 0xcfcc3ef9
-0, 218, 218, 1, 152064, 0xa5be6ce3
-0, 219, 219, 1, 152064, 0xd75930a0
-0, 221, 221, 1, 152064, 0x28acb80f
-0, 223, 223, 1, 152064, 0x223f2152
-0, 225, 225, 1, 152064, 0x0cf070cb
-0, 226, 226, 1, 152064, 0xcc7d011e
-0, 228, 228, 1, 152064, 0xb2c2a63c
-0, 229, 229, 1, 152064, 0x15514caa
-0, 231, 231, 1, 152064, 0x0c6d18ee
-0, 232, 232, 1, 152064, 0x33b4265d
-0, 233, 233, 1, 152064, 0xb4abaaaf
-0, 235, 235, 1, 152064, 0x26a7a856
-0, 236, 236, 1, 152064, 0xc75249cc
-0, 238, 238, 1, 152064, 0x59ccb0e1
-0, 240, 240, 1, 152064, 0xc613f202
-0, 242, 242, 1, 152064, 0xd1c0e171
-0, 243, 243, 1, 152064, 0xa195da2b
-0, 244, 244, 1, 152064, 0xbc7ed475
-0, 245, 245, 1, 152064, 0x99206e2c
-0, 247, 247, 1, 152064, 0x0ef04e03
-0, 249, 249, 1, 152064, 0x68cbc6a1
-0, 250, 250, 1, 152064, 0x2a5304b1
-0, 251, 251, 1, 152064, 0xf017978b
-0, 252, 252, 1, 152064, 0x94f5641a
-0, 254, 254, 1, 152064, 0xd681bd8f
-0, 255, 255, 1, 152064, 0x16e1e3a3
-0, 257, 257, 1, 152064, 0xe4486c7e
-0, 259, 259, 1, 152064, 0xa1bd394e
-0, 260, 260, 1, 152064, 0x49ad5959
-0, 262, 262, 1, 152064, 0x82219b70
-0, 264, 264, 1, 152064, 0x64e2abcf
-0, 266, 266, 1, 152064, 0x6d7d05d8
-0, 268, 268, 1, 152064, 0xd9ac2251
-0, 269, 269, 1, 152064, 0xf477eee5
-0, 271, 271, 1, 152064, 0xb9826a78
-0, 272, 272, 1, 152064, 0x97828a37
-0, 274, 274, 1, 152064, 0x12099b1f
-0, 275, 275, 1, 152064, 0x1ec45fa7
-0, 277, 277, 1, 152064, 0xfd5501c9
-0, 278, 278, 1, 152064, 0x6a8b26a3
-0, 280, 280, 1, 152064, 0xae58ff40
-0, 282, 282, 1, 152064, 0xc0f47aa1
-0, 283, 283, 1, 152064, 0x08bfa548
-0, 284, 284, 1, 152064, 0x7f2ff5ef
-0, 286, 286, 1, 152064, 0x5efa94a3
-0, 288, 288, 1, 152064, 0xf786f970
-0, 290, 290, 1, 152064, 0xab6bc712
-0, 291, 291, 1, 152064, 0x25647bee
-0, 293, 293, 1, 152064, 0x54333ad5
-0, 295, 295, 1, 152064, 0xb3a99413
-0, 296, 296, 1, 152064, 0xe7a78a0d
-0, 298, 298, 1, 152064, 0xa5054abc
-0, 300, 300, 1, 152064, 0xb94896ea
-0, 301, 301, 1, 152064, 0x9f641bca
-0, 303, 303, 1, 152064, 0x7363901c
-0, 304, 304, 1, 152064, 0xd340a000
-0, 305, 305, 1, 152064, 0x0217f413
-0, 306, 306, 1, 152064, 0xbbdba6e6
-0, 307, 307, 1, 152064, 0xabc42617
-0, 309, 309, 1, 152064, 0xa3442925
-0, 311, 311, 1, 152064, 0x7d06c7e9
-0, 312, 312, 1, 152064, 0xa45e32df
-0, 313, 313, 1, 152064, 0xf5ed407f
-0, 315, 315, 1, 152064, 0x5ec235d5
-0, 317, 317, 1, 152064, 0xa5706635
-0, 319, 319, 1, 152064, 0xa44a209b
-0, 321, 321, 1, 152064, 0xf2137e37
-0, 323, 323, 1, 152064, 0x5220508f
-0, 324, 324, 1, 152064, 0xae6b37da
-0, 326, 326, 1, 152064, 0xdf09b6cd
-0, 327, 327, 1, 152064, 0x2d39e1c0
-0, 329, 329, 1, 152064, 0xc8284a76
-0, 331, 331, 1, 152064, 0x7d7bbe76
-0, 332, 332, 1, 152064, 0xcfed7416
-0, 333, 333, 1, 152064, 0x81caaedd
-0, 334, 334, 1, 152064, 0x9dcdd771
-0, 336, 336, 1, 152064, 0x46c1331b
-0, 338, 338, 1, 152064, 0xace60efa
-0, 339, 339, 1, 152064, 0x9e0909f7
-0, 341, 341, 1, 152064, 0x72f5a321
-0, 342, 342, 1, 152064, 0x68f8cdcc
-0, 343, 343, 1, 152064, 0xcc59fdd9
-0, 345, 345, 1, 152064, 0xc0a700c6
-0, 347, 347, 1, 152064, 0xf4254dcf
-0, 348, 348, 1, 152064, 0xc59b46d1
-0, 350, 350, 1, 152064, 0x2e5b2524
-0, 352, 352, 1, 152064, 0x46051293
-0, 353, 353, 1, 152064, 0x3cbcd1cd
-0, 354, 354, 1, 152064, 0x9f308587
-0, 356, 356, 1, 152064, 0x6b91633f
-0, 357, 357, 1, 152064, 0xb7191012
-0, 359, 359, 1, 152064, 0xd2fd030f
-0, 361, 361, 1, 152064, 0x15a0ae2e
-0, 363, 363, 1, 152064, 0xac3920d0
-0, 364, 364, 1, 152064, 0x0eef80aa
-0, 365, 365, 1, 152064, 0x319008f1
-0, 367, 367, 1, 152064, 0x7734450c
-0, 368, 368, 1, 152064, 0xf112df62
-0, 369, 369, 1, 152064, 0x1dd8ffae
-0, 371, 371, 1, 152064, 0x655ef429
-0, 372, 372, 1, 152064, 0x27026213
-0, 374, 374, 1, 152064, 0x5c14b015
-0, 376, 376, 1, 152064, 0x9512abeb
-0, 378, 378, 1, 152064, 0x961812b2
-0, 379, 379, 1, 152064, 0xb8890aea
-0, 380, 380, 1, 152064, 0x4519db9a
-0, 381, 381, 1, 152064, 0xf358034a
-0, 383, 383, 1, 152064, 0x45d9f2ab
-0, 384, 384, 1, 152064, 0xebd47e7d
-0, 385, 385, 1, 152064, 0x15578be9
-0, 387, 387, 1, 152064, 0x1b373b2d
-0, 388, 388, 1, 152064, 0xbbe707e5
-0, 389, 389, 1, 152064, 0x5bf62385
-0, 391, 391, 1, 152064, 0x832e6ef5
-0, 393, 393, 1, 152064, 0x761e5968
-0, 394, 394, 1, 152064, 0x251f984d
-0, 396, 396, 1, 152064, 0xbda48899
-0, 397, 397, 1, 152064, 0x3fd843b9
-0, 399, 399, 1, 152064, 0x00485425
-0, 401, 401, 1, 152064, 0x4e282b39
-0, 403, 403, 1, 152064, 0x2630a8ea
-0, 405, 405, 1, 152064, 0x5ea5c973
-0, 407, 407, 1, 152064, 0xfc436d21
-0, 409, 409, 1, 152064, 0x69852ef5
-0, 411, 411, 1, 152064, 0x44cb5589
-0, 413, 413, 1, 152064, 0x32f32725
-0, 415, 415, 1, 152064, 0x54d50aca
-0, 417, 417, 1, 152064, 0xe7a639bb
-0, 419, 419, 1, 152064, 0x01be2ad5
-0, 421, 421, 1, 152064, 0x5c63eca4
-0, 423, 423, 1, 152064, 0x94e91116
-0, 424, 424, 1, 152064, 0x9a8be637
-0, 425, 425, 1, 152064, 0x165d9a12
-0, 427, 427, 1, 152064, 0x8c25ca0a
-0, 429, 429, 1, 152064, 0x4ee2ed32
-0, 431, 431, 1, 152064, 0x4b2fe0c6
-0, 433, 433, 1, 152064, 0x521e434e
-0, 435, 435, 1, 152064, 0x97679d7e
-0, 437, 437, 1, 152064, 0x886b9506
-0, 438, 438, 1, 152064, 0x4283eda8
-0, 440, 440, 1, 152064, 0xef793c49
-0, 441, 441, 1, 152064, 0x68ac2afe
-0, 443, 443, 1, 152064, 0x3d1ab510
-0, 444, 444, 1, 152064, 0x98d3ec95
-0, 445, 445, 1, 152064, 0x09f7e512
-0, 447, 447, 1, 152064, 0x801355dd
-0, 449, 449, 1, 152064, 0xf2e87a11
-0, 450, 450, 1, 152064, 0x16757601
-0, 451, 451, 1, 152064, 0x3074d74a
-0, 453, 453, 1, 152064, 0xec8c1290
-0, 455, 455, 1, 152064, 0x46fb1877
-0, 456, 456, 1, 152064, 0xf0b662c4
-0, 457, 457, 1, 152064, 0xf8683940
+0, 0, 0, 1, 152064, 0xf8248ceb
+0, 1, 1, 1, 152064, 0xb6204c81
+0, 2, 2, 1, 152064, 0x22fb1737
+0, 3, 3, 1, 152064, 0xce8c3fd7
+0, 4, 4, 1, 152064, 0xee88cedc
+0, 5, 5, 1, 152064, 0x1d4209ca
+0, 6, 6, 1, 152064, 0x6fb15238
+0, 7, 7, 1, 152064, 0x505200c2
+0, 8, 8, 1, 152064, 0xb73574ba
+0, 9, 9, 1, 152064, 0x0586a097
+0, 10, 10, 1, 152064, 0xed50fe02
+0, 11, 11, 1, 152064, 0x222221ab
+0, 12, 12, 1, 152064, 0x8afefd46
+0, 13, 13, 1, 152064, 0x6832c5cc
+0, 14, 14, 1, 152064, 0xba4c8110
+0, 15, 15, 1, 152064, 0x95c07e1e
+0, 16, 16, 1, 152064, 0xc5d6fde9
+0, 17, 17, 1, 152064, 0xe75a4921
+0, 18, 18, 1, 152064, 0x53b61688
+0, 19, 19, 1, 152064, 0x0335424b
+0, 20, 20, 1, 152064, 0x621742c7
+0, 21, 21, 1, 152064, 0x4f69f41b
+0, 22, 22, 1, 152064, 0x6b3f65d7
+0, 23, 23, 1, 152064, 0x8dfde04f
+0, 24, 24, 1, 152064, 0x30750ff5
+0, 25, 25, 1, 152064, 0xe3d70f3c
+0, 26, 26, 1, 152064, 0x0c1af825
+0, 27, 27, 1, 152064, 0x58a53935
+0, 28, 28, 1, 152064, 0xc63d9e98
+0, 29, 29, 1, 152064, 0xa85fdc48
+0, 30, 30, 1, 152064, 0x01bb9784
+0, 31, 31, 1, 152064, 0xdd5cb509
+0, 32, 32, 1, 152064, 0x29ae7d2b
+0, 33, 33, 1, 152064, 0xdb08593e
+0, 34, 34, 1, 152064, 0x372d5d4e
+0, 35, 35, 1, 152064, 0x31522664
+0, 36, 36, 1, 152064, 0x3f13f335
+0, 37, 37, 1, 152064, 0xfd10c19a
+0, 38, 38, 1, 152064, 0xef728975
+0, 39, 39, 1, 152064, 0x8e79234d
+0, 40, 40, 1, 152064, 0x47022791
+0, 41, 41, 1, 152064, 0x1ef9d297
+0, 42, 42, 1, 152064, 0x77bf9738
+0, 43, 43, 1, 152064, 0xd6bc8f03
+0, 44, 44, 1, 152064, 0x283ded4a
+0, 45, 45, 1, 152064, 0xd87098d1
+0, 46, 46, 1, 152064, 0x300077a2
+0, 47, 47, 1, 152064, 0x30ffbea4
+0, 48, 48, 1, 152064, 0x5dc5356b
+0, 49, 49, 1, 152064, 0x31cce185
+0, 50, 50, 1, 152064, 0x47fc9148
+0, 51, 51, 1, 152064, 0x1641491e
+0, 52, 52, 1, 152064, 0x2184937d
+0, 53, 53, 1, 152064, 0x126eb74a
+0, 54, 54, 1, 152064, 0x25c07593
+0, 55, 55, 1, 152064, 0xb1294e7e
+0, 56, 56, 1, 152064, 0x8b35f45d
+0, 57, 57, 1, 152064, 0x54765025
+0, 58, 58, 1, 152064, 0x1d17e901
+0, 59, 59, 1, 152064, 0xaeab358d
+0, 60, 60, 1, 152064, 0xf682c91f
+0, 61, 61, 1, 152064, 0x0b4c9b06
+0, 62, 62, 1, 152064, 0x45f326dc
+0, 63, 63, 1, 152064, 0x132eeda3
+0, 64, 64, 1, 152064, 0x3c9b8e16
+0, 65, 65, 1, 152064, 0x1be133c1
+0, 66, 66, 1, 152064, 0xfa876720
+0, 67, 67, 1, 152064, 0x1666cdb8
+0, 68, 68, 1, 152064, 0x362f418f
+0, 69, 69, 1, 152064, 0x926b4a96
+0, 70, 70, 1, 152064, 0xee3da1df
+0, 71, 71, 1, 152064, 0xc11f025d
+0, 72, 72, 1, 152064, 0x9ba62c19
+0, 73, 73, 1, 152064, 0x0d66194f
+0, 74, 74, 1, 152064, 0x2fd09340
+0, 75, 75, 1, 152064, 0x3dfb9e4d
+0, 76, 76, 1, 152064, 0xa3192ce6
+0, 77, 77, 1, 152064, 0x6bfce0e1
+0, 78, 78, 1, 152064, 0x3b7c5286
+0, 79, 79, 1, 152064, 0xb52f4bf5
+0, 80, 80, 1, 152064, 0x30870027
+0, 81, 81, 1, 152064, 0x6f8e71c3
+0, 82, 82, 1, 152064, 0x8d41b09a
+0, 83, 83, 1, 152064, 0xc1ff1d05
+0, 84, 84, 1, 152064, 0xca54125c
+0, 85, 85, 1, 152064, 0x3342d823
+0, 86, 86, 1, 152064, 0xcc4a7542
+0, 87, 87, 1, 152064, 0x21fc9a9d
+0, 88, 88, 1, 152064, 0x91587574
+0, 89, 89, 1, 152064, 0x30929cc2
+0, 90, 90, 1, 152064, 0xf07606b7
+0, 91, 91, 1, 152064, 0x0476b876
+0, 92, 92, 1, 152064, 0x213333dc
+0, 93, 93, 1, 152064, 0x87c67597
+0, 94, 94, 1, 152064, 0x05434641
+0, 95, 95, 1, 152064, 0x959eeffc
+0, 96, 96, 1, 152064, 0x92a130b4
+0, 97, 97, 1, 152064, 0x53d0b544
+0, 98, 98, 1, 152064, 0xaf8c233e
+0, 99, 99, 1, 152064, 0xd3d4259a
+0, 100, 100, 1, 152064, 0xa0287753
+0, 101, 101, 1, 152064, 0xfa23972a
+0, 102, 102, 1, 152064, 0xacae756d
+0, 103, 103, 1, 152064, 0xd8b58b5c
+0, 104, 104, 1, 152064, 0x7db2c755
+0, 105, 105, 1, 152064, 0x31e7b79a
+0, 106, 106, 1, 152064, 0xd8660d98
+0, 107, 107, 1, 152064, 0xdcf0d10d
+0, 108, 108, 1, 152064, 0x3e6567e6
+0, 109, 109, 1, 152064, 0xec3530fd
+0, 110, 110, 1, 152064, 0xf686c61a
+0, 111, 111, 1, 152064, 0x6e706804
+0, 112, 112, 1, 152064, 0x5fd4a1a3
+0, 113, 113, 1, 152064, 0xbb3384f7
+0, 114, 114, 1, 152064, 0x8ffb14dd
+0, 115, 115, 1, 152064, 0x01253a73
+0, 116, 116, 1, 152064, 0xf89c15df
+0, 117, 117, 1, 152064, 0xda2b0b4c
+0, 118, 118, 1, 152064, 0xfc9dfcc1
+0, 119, 119, 1, 152064, 0xfef4f0fa
+0, 120, 120, 1, 152064, 0x91669bea
+0, 121, 121, 1, 152064, 0x3664a565
+0, 122, 122, 1, 152064, 0x32dd7923
+0, 123, 123, 1, 152064, 0x26825231
+0, 124, 124, 1, 152064, 0x5f81896e
+0, 125, 125, 1, 152064, 0x0c64ca2f
+0, 126, 126, 1, 152064, 0x488bb665
+0, 127, 127, 1, 152064, 0x4d183a0f
+0, 128, 128, 1, 152064, 0xed169321
+0, 129, 129, 1, 152064, 0xcec22917
+0, 130, 130, 1, 152064, 0xbe04ea6c
+0, 131, 131, 1, 152064, 0x32b8bf9f
+0, 132, 132, 1, 152064, 0x9c7c2e13
+0, 133, 133, 1, 152064, 0x232e3016
+0, 134, 134, 1, 152064, 0x1b76c08e
+0, 135, 135, 1, 152064, 0x7425d821
+0, 136, 136, 1, 152064, 0x0818ff3c
+0, 137, 137, 1, 152064, 0xb4f2c42b
+0, 138, 138, 1, 152064, 0xe029f979
+0, 139, 139, 1, 152064, 0x97c54c2f
+0, 140, 140, 1, 152064, 0xd101c3b5
+0, 141, 141, 1, 152064, 0x5ed1f5d4
+0, 142, 142, 1, 152064, 0xc28264d1
+0, 143, 143, 1, 152064, 0xa162dd31
+0, 144, 144, 1, 152064, 0x2ee872ce
+0, 145, 145, 1, 152064, 0x809a8fce
+0, 146, 146, 1, 152064, 0xcfcc3ef9
+0, 147, 147, 1, 152064, 0xa5be6ce3
+0, 148, 148, 1, 152064, 0xd75930a0
+0, 149, 149, 1, 152064, 0x28acb80f
+0, 150, 150, 1, 152064, 0x223f2152
+0, 151, 151, 1, 152064, 0x0cf070cb
+0, 152, 152, 1, 152064, 0xcc7d011e
+0, 153, 153, 1, 152064, 0xb2c2a63c
+0, 154, 154, 1, 152064, 0x15514caa
+0, 155, 155, 1, 152064, 0x0c6d18ee
+0, 156, 156, 1, 152064, 0x33b4265d
+0, 157, 157, 1, 152064, 0xb4abaaaf
+0, 158, 158, 1, 152064, 0x26a7a856
+0, 159, 159, 1, 152064, 0xc75249cc
+0, 160, 160, 1, 152064, 0x59ccb0e1
+0, 161, 161, 1, 152064, 0xc613f202
+0, 162, 162, 1, 152064, 0xd1c0e171
+0, 163, 163, 1, 152064, 0xa195da2b
+0, 164, 164, 1, 152064, 0xbc7ed475
+0, 165, 165, 1, 152064, 0x99206e2c
+0, 166, 166, 1, 152064, 0x0ef04e03
+0, 167, 167, 1, 152064, 0x68cbc6a1
+0, 168, 168, 1, 152064, 0x2a5304b1
+0, 169, 169, 1, 152064, 0xf017978b
+0, 170, 170, 1, 152064, 0x94f5641a
+0, 171, 171, 1, 152064, 0xd681bd8f
+0, 172, 172, 1, 152064, 0x16e1e3a3
+0, 173, 173, 1, 152064, 0xe4486c7e
+0, 174, 174, 1, 152064, 0xa1bd394e
+0, 175, 175, 1, 152064, 0x49ad5959
+0, 176, 176, 1, 152064, 0x82219b70
+0, 177, 177, 1, 152064, 0x64e2abcf
+0, 178, 178, 1, 152064, 0x6d7d05d8
+0, 179, 179, 1, 152064, 0xd9ac2251
+0, 180, 180, 1, 152064, 0xf477eee5
+0, 181, 181, 1, 152064, 0xb9826a78
+0, 182, 182, 1, 152064, 0x97828a37
+0, 183, 183, 1, 152064, 0x12099b1f
+0, 184, 184, 1, 152064, 0x1ec45fa7
+0, 185, 185, 1, 152064, 0xfd5501c9
+0, 186, 186, 1, 152064, 0x6a8b26a3
+0, 187, 187, 1, 152064, 0xae58ff40
+0, 188, 188, 1, 152064, 0xc0f47aa1
+0, 189, 189, 1, 152064, 0x08bfa548
+0, 190, 190, 1, 152064, 0x7f2ff5ef
+0, 191, 191, 1, 152064, 0x5efa94a3
+0, 192, 192, 1, 152064, 0xf786f970
+0, 193, 193, 1, 152064, 0xab6bc712
+0, 194, 194, 1, 152064, 0x25647bee
+0, 195, 195, 1, 152064, 0x54333ad5
+0, 196, 196, 1, 152064, 0xb3a99413
+0, 197, 197, 1, 152064, 0xe7a78a0d
+0, 198, 198, 1, 152064, 0xa5054abc
+0, 199, 199, 1, 152064, 0xb94896ea
+0, 200, 200, 1, 152064, 0x9f641bca
+0, 201, 201, 1, 152064, 0x7363901c
+0, 202, 202, 1, 152064, 0xd340a000
+0, 203, 203, 1, 152064, 0x0217f413
+0, 204, 204, 1, 152064, 0xbbdba6e6
+0, 205, 205, 1, 152064, 0xabc42617
+0, 206, 206, 1, 152064, 0xa3442925
+0, 207, 207, 1, 152064, 0x7d06c7e9
+0, 208, 208, 1, 152064, 0xa45e32df
+0, 209, 209, 1, 152064, 0xf5ed407f
+0, 210, 210, 1, 152064, 0x5ec235d5
+0, 211, 211, 1, 152064, 0xa5706635
+0, 212, 212, 1, 152064, 0xa44a209b
+0, 213, 213, 1, 152064, 0xf2137e37
+0, 214, 214, 1, 152064, 0x5220508f
+0, 215, 215, 1, 152064, 0xae6b37da
+0, 216, 216, 1, 152064, 0xdf09b6cd
+0, 217, 217, 1, 152064, 0x2d39e1c0
+0, 218, 218, 1, 152064, 0xc8284a76
+0, 219, 219, 1, 152064, 0x7d7bbe76
+0, 220, 220, 1, 152064, 0xcfed7416
+0, 221, 221, 1, 152064, 0x81caaedd
+0, 222, 222, 1, 152064, 0x9dcdd771
+0, 223, 223, 1, 152064, 0x46c1331b
+0, 224, 224, 1, 152064, 0xace60efa
+0, 225, 225, 1, 152064, 0x9e0909f7
+0, 226, 226, 1, 152064, 0x72f5a321
+0, 227, 227, 1, 152064, 0x68f8cdcc
+0, 228, 228, 1, 152064, 0xcc59fdd9
+0, 229, 229, 1, 152064, 0xc0a700c6
+0, 230, 230, 1, 152064, 0xf4254dcf
+0, 231, 231, 1, 152064, 0xc59b46d1
+0, 232, 232, 1, 152064, 0x2e5b2524
+0, 233, 233, 1, 152064, 0x46051293
+0, 234, 234, 1, 152064, 0x3cbcd1cd
+0, 235, 235, 1, 152064, 0x9f308587
+0, 236, 236, 1, 152064, 0x6b91633f
+0, 237, 237, 1, 152064, 0xb7191012
+0, 238, 238, 1, 152064, 0xd2fd030f
+0, 239, 239, 1, 152064, 0x15a0ae2e
+0, 240, 240, 1, 152064, 0xac3920d0
+0, 241, 241, 1, 152064, 0x0eef80aa
+0, 242, 242, 1, 152064, 0x319008f1
+0, 243, 243, 1, 152064, 0x7734450c
+0, 244, 244, 1, 152064, 0xf112df62
+0, 245, 245, 1, 152064, 0x1dd8ffae
+0, 246, 246, 1, 152064, 0x655ef429
+0, 247, 247, 1, 152064, 0x27026213
+0, 248, 248, 1, 152064, 0x5c14b015
+0, 249, 249, 1, 152064, 0x9512abeb
+0, 250, 250, 1, 152064, 0x961812b2
+0, 251, 251, 1, 152064, 0xb8890aea
+0, 252, 252, 1, 152064, 0x4519db9a
+0, 253, 253, 1, 152064, 0xf358034a
+0, 254, 254, 1, 152064, 0x45d9f2ab
+0, 255, 255, 1, 152064, 0xebd47e7d
+0, 256, 256, 1, 152064, 0x15578be9
+0, 257, 257, 1, 152064, 0x1b373b2d
+0, 258, 258, 1, 152064, 0xbbe707e5
+0, 259, 259, 1, 152064, 0x5bf62385
+0, 260, 260, 1, 152064, 0x832e6ef5
+0, 261, 261, 1, 152064, 0x761e5968
+0, 262, 262, 1, 152064, 0x251f984d
+0, 263, 263, 1, 152064, 0xbda48899
+0, 264, 264, 1, 152064, 0x3fd843b9
+0, 265, 265, 1, 152064, 0x00485425
+0, 266, 266, 1, 152064, 0x4e282b39
+0, 267, 267, 1, 152064, 0x2630a8ea
+0, 268, 268, 1, 152064, 0x5ea5c973
+0, 269, 269, 1, 152064, 0xfc436d21
+0, 270, 270, 1, 152064, 0x69852ef5
+0, 271, 271, 1, 152064, 0x44cb5589
+0, 272, 272, 1, 152064, 0x32f32725
+0, 273, 273, 1, 152064, 0x54d50aca
+0, 274, 274, 1, 152064, 0xe7a639bb
+0, 275, 275, 1, 152064, 0x01be2ad5
+0, 276, 276, 1, 152064, 0x5c63eca4
+0, 277, 277, 1, 152064, 0x94e91116
+0, 278, 278, 1, 152064, 0x9a8be637
+0, 279, 279, 1, 152064, 0x165d9a12
+0, 280, 280, 1, 152064, 0x8c25ca0a
+0, 281, 281, 1, 152064, 0x4ee2ed32
+0, 282, 282, 1, 152064, 0x4b2fe0c6
+0, 283, 283, 1, 152064, 0x521e434e
+0, 284, 284, 1, 152064, 0x97679d7e
+0, 285, 285, 1, 152064, 0x886b9506
+0, 286, 286, 1, 152064, 0x4283eda8
+0, 287, 287, 1, 152064, 0xef793c49
+0, 288, 288, 1, 152064, 0x68ac2afe
+0, 289, 289, 1, 152064, 0x3d1ab510
+0, 290, 290, 1, 152064, 0x98d3ec95
+0, 291, 291, 1, 152064, 0x09f7e512
+0, 292, 292, 1, 152064, 0x801355dd
+0, 293, 293, 1, 152064, 0xf2e87a11
+0, 294, 294, 1, 152064, 0x16757601
+0, 295, 295, 1, 152064, 0x3074d74a
+0, 296, 296, 1, 152064, 0xec8c1290
+0, 297, 297, 1, 152064, 0x46fb1877
+0, 298, 298, 1, 152064, 0xf0b662c4
+0, 299, 299, 1, 152064, 0xf8683940
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a b/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
index b2081848db..dbfec436bd 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
+++ b/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
@@ -1,301 +1,301 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x502ec077
-0, 4, 4, 1, 152064, 0x84807243
-0, 6, 6, 1, 152064, 0xd7474a6e
-0, 8, 8, 1, 152064, 0x793469bb
-0, 10, 10, 1, 152064, 0xb7a0faf7
-0, 12, 12, 1, 152064, 0x1d3d3cba
-0, 14, 14, 1, 152064, 0xb62583de
-0, 16, 16, 1, 152064, 0xc8422fb1
-0, 18, 18, 1, 152064, 0x321dc699
-0, 20, 20, 1, 152064, 0x7a34d350
-0, 22, 22, 1, 152064, 0xaa4c302d
-0, 24, 24, 1, 152064, 0x45fa7ab0
-0, 26, 26, 1, 152064, 0xc7262e41
-0, 28, 28, 1, 152064, 0x3550000c
-0, 30, 30, 1, 152064, 0xf4bab54b
-0, 32, 32, 1, 152064, 0xaccf9c1a
-0, 34, 34, 1, 152064, 0x9bee20e9
-0, 36, 36, 1, 152064, 0x47fb7720
-0, 38, 38, 1, 152064, 0x12c63ffb
-0, 40, 40, 1, 152064, 0xfa2b8b4d
-0, 42, 42, 1, 152064, 0x279964bd
-0, 44, 44, 1, 152064, 0xb8b01c7e
-0, 46, 46, 1, 152064, 0x816fa010
-0, 48, 48, 1, 152064, 0x59fe1c8c
-0, 50, 50, 1, 152064, 0x13393fad
-0, 52, 52, 1, 152064, 0x991a50a4
-0, 54, 54, 1, 152064, 0x57df3eb7
-0, 56, 56, 1, 152064, 0x744371df
-0, 58, 58, 1, 152064, 0xe9f6d3ff
-0, 60, 60, 1, 152064, 0xc506fba0
-0, 62, 62, 1, 152064, 0x6295b90e
-0, 64, 64, 1, 152064, 0xa19cee2d
-0, 66, 66, 1, 152064, 0xf8c1b3ca
-0, 68, 68, 1, 152064, 0x69f68ce0
-0, 70, 70, 1, 152064, 0x80558bb6
-0, 72, 72, 1, 152064, 0x27824fa5
-0, 74, 74, 1, 152064, 0x27c929a1
-0, 76, 76, 1, 152064, 0xc0fe06d1
-0, 78, 78, 1, 152064, 0xc52bc58c
-0, 80, 80, 1, 152064, 0x0a5363c7
-0, 82, 82, 1, 152064, 0xd0f45a0d
-0, 84, 84, 1, 152064, 0x274710f9
-0, 86, 86, 1, 152064, 0x89d2d390
-0, 88, 88, 1, 152064, 0x12a9bfb0
-0, 90, 90, 1, 152064, 0x04501a93
-0, 92, 92, 1, 152064, 0xf92cbbf4
-0, 94, 94, 1, 152064, 0xf6d1b27d
-0, 96, 96, 1, 152064, 0xe3e904c3
-0, 98, 98, 1, 152064, 0x58f8516d
-0, 100, 100, 1, 152064, 0x70370c2b
-0, 102, 102, 1, 152064, 0xfeebc88c
-0, 104, 104, 1, 152064, 0x974c6ed6
-0, 106, 106, 1, 152064, 0x401bdcf2
-0, 108, 108, 1, 152064, 0xfe61e278
-0, 110, 110, 1, 152064, 0x96ba8bb9
-0, 112, 112, 1, 152064, 0x988492fd
-0, 114, 114, 1, 152064, 0xd1d913a9
-0, 116, 116, 1, 152064, 0x6bc46f0e
-0, 118, 118, 1, 152064, 0x695ef706
-0, 120, 120, 1, 152064, 0x142045c9
-0, 122, 122, 1, 152064, 0xb390ed87
-0, 124, 124, 1, 152064, 0xb9e6d2e5
-0, 126, 126, 1, 152064, 0xe348797f
-0, 128, 128, 1, 152064, 0x1cbd29d6
-0, 130, 130, 1, 152064, 0xbd7dd694
-0, 132, 132, 1, 152064, 0x516873c3
-0, 134, 134, 1, 152064, 0x27bba182
-0, 136, 136, 1, 152064, 0x7541f920
-0, 138, 138, 1, 152064, 0xfdf67042
-0, 140, 140, 1, 152064, 0x6c3c7896
-0, 142, 142, 1, 152064, 0xed86c467
-0, 144, 144, 1, 152064, 0x4ea83ca2
-0, 146, 146, 1, 152064, 0xa3e6725b
-0, 148, 148, 1, 152064, 0x917f5f16
-0, 150, 150, 1, 152064, 0x8cf2d2e1
-0, 152, 152, 1, 152064, 0x57a8d116
-0, 154, 154, 1, 152064, 0x0db267d4
-0, 156, 156, 1, 152064, 0xce782ac5
-0, 158, 158, 1, 152064, 0x1c9d8518
-0, 160, 160, 1, 152064, 0x47598ac7
-0, 162, 162, 1, 152064, 0xc5033d97
-0, 164, 164, 1, 152064, 0xd7aaa3a4
-0, 166, 166, 1, 152064, 0x078afc96
-0, 168, 168, 1, 152064, 0xc9fe673d
-0, 170, 170, 1, 152064, 0xe9284066
-0, 172, 172, 1, 152064, 0xbc570982
-0, 174, 174, 1, 152064, 0x0aac8574
-0, 176, 176, 1, 152064, 0x098cbeee
-0, 178, 178, 1, 152064, 0x19c36a9d
-0, 180, 180, 1, 152064, 0x8fe4a893
-0, 182, 182, 1, 152064, 0x0b652f17
-0, 184, 184, 1, 152064, 0x10f2e6bf
-0, 186, 186, 1, 152064, 0x7ce5634e
-0, 188, 188, 1, 152064, 0x8fe4ac6c
-0, 190, 190, 1, 152064, 0xcaba749e
-0, 192, 192, 1, 152064, 0x5f8a0d5c
-0, 194, 194, 1, 152064, 0xcaa66bbc
-0, 196, 196, 1, 152064, 0xc87ae617
-0, 198, 198, 1, 152064, 0xe8ef4dd7
-0, 200, 200, 1, 152064, 0xdfca5a07
-0, 202, 202, 1, 152064, 0x5f7eab7d
-0, 204, 204, 1, 152064, 0x8a65ebbb
-0, 206, 206, 1, 152064, 0x4beab4a0
-0, 208, 208, 1, 152064, 0xb5e6ab30
-0, 210, 210, 1, 152064, 0x8fe4f4d4
-0, 212, 212, 1, 152064, 0x95bde1ca
-0, 214, 214, 1, 152064, 0xcc5e3a53
-0, 216, 216, 1, 152064, 0xf09f1dd7
-0, 218, 218, 1, 152064, 0x10179672
-0, 220, 220, 1, 152064, 0x4ad16184
-0, 222, 222, 1, 152064, 0x9efa0e23
-0, 224, 224, 1, 152064, 0x22f59522
-0, 226, 226, 1, 152064, 0x4d38f09d
-0, 228, 228, 1, 152064, 0x4c5ebf56
-0, 230, 230, 1, 152064, 0xb19d5077
-0, 232, 232, 1, 152064, 0xa98576b9
-0, 234, 234, 1, 152064, 0x65324239
-0, 236, 236, 1, 152064, 0x709e4031
-0, 238, 238, 1, 152064, 0xf8e81681
-0, 240, 240, 1, 152064, 0x058514e5
-0, 242, 242, 1, 152064, 0xd1d1c806
-0, 244, 244, 1, 152064, 0x0e4dde57
-0, 246, 246, 1, 152064, 0x49e9c2bb
-0, 248, 248, 1, 152064, 0x01417ce6
-0, 250, 250, 1, 152064, 0xda7ebbf1
-0, 252, 252, 1, 152064, 0xa22906b7
-0, 254, 254, 1, 152064, 0x32e2df87
-0, 256, 256, 1, 152064, 0x69917c8f
-0, 258, 258, 1, 152064, 0xea8ed2cc
-0, 260, 260, 1, 152064, 0x0b8d57f1
-0, 262, 262, 1, 152064, 0x5f683bcd
-0, 264, 264, 1, 152064, 0x5162fe2f
-0, 266, 266, 1, 152064, 0x49c052f8
-0, 268, 268, 1, 152064, 0x990b69ba
-0, 270, 270, 1, 152064, 0xa6d4f99f
-0, 272, 272, 1, 152064, 0xe79ef4da
-0, 274, 274, 1, 152064, 0x5e8a3847
-0, 276, 276, 1, 152064, 0x38b1e75f
-0, 278, 278, 1, 152064, 0xf5c91bed
-0, 280, 280, 1, 152064, 0xd59a6d26
-0, 282, 282, 1, 152064, 0xc361de06
-0, 284, 284, 1, 152064, 0x63ed2229
-0, 286, 286, 1, 152064, 0xb8229205
-0, 288, 288, 1, 152064, 0x7c6619af
-0, 290, 290, 1, 152064, 0x4126b02f
-0, 292, 292, 1, 152064, 0x9250b99b
-0, 294, 294, 1, 152064, 0x589778f9
-0, 296, 296, 1, 152064, 0xed1fa45b
-0, 298, 298, 1, 152064, 0x700b6f32
-0, 300, 300, 1, 152064, 0x0590df55
-0, 302, 302, 1, 152064, 0x3e9c4018
-0, 304, 304, 1, 152064, 0x957b8860
-0, 306, 306, 1, 152064, 0x56161560
-0, 308, 308, 1, 152064, 0xbc43bc3b
-0, 310, 310, 1, 152064, 0x508d8632
-0, 312, 312, 1, 152064, 0xbc5736d8
-0, 314, 314, 1, 152064, 0xed7d3aef
-0, 316, 316, 1, 152064, 0x1dcdda9f
-0, 318, 318, 1, 152064, 0x8ef6d5c9
-0, 320, 320, 1, 152064, 0x15466acc
-0, 322, 322, 1, 152064, 0x45d4cf67
-0, 324, 324, 1, 152064, 0x8c900b9d
-0, 326, 326, 1, 152064, 0x747006e0
-0, 328, 328, 1, 152064, 0xac920a0c
-0, 330, 330, 1, 152064, 0xb8210c27
-0, 332, 332, 1, 152064, 0x7dbb873a
-0, 334, 334, 1, 152064, 0x0d4d7584
-0, 336, 336, 1, 152064, 0xefb3fe60
-0, 338, 338, 1, 152064, 0x905e2644
-0, 340, 340, 1, 152064, 0x7c04e534
-0, 342, 342, 1, 152064, 0x8889972a
-0, 344, 344, 1, 152064, 0x21c7d8ad
-0, 346, 346, 1, 152064, 0x1c641176
-0, 348, 348, 1, 152064, 0xf71489a4
-0, 350, 350, 1, 152064, 0xd7ac5555
-0, 352, 352, 1, 152064, 0xb4609c6d
-0, 354, 354, 1, 152064, 0xf5b2bd5e
-0, 356, 356, 1, 152064, 0x9f43ce57
-0, 358, 358, 1, 152064, 0x77642dd3
-0, 360, 360, 1, 152064, 0x3e79565c
-0, 362, 362, 1, 152064, 0x95f40b8e
-0, 364, 364, 1, 152064, 0x3c8ca4d4
-0, 366, 366, 1, 152064, 0xa02ac497
-0, 368, 368, 1, 152064, 0x4c93b377
-0, 370, 370, 1, 152064, 0x55f5ac68
-0, 372, 372, 1, 152064, 0xf8652eca
-0, 374, 374, 1, 152064, 0x56e94574
-0, 376, 376, 1, 152064, 0x6d8302e1
-0, 378, 378, 1, 152064, 0x29a57061
-0, 380, 380, 1, 152064, 0x24e4cfdc
-0, 382, 382, 1, 152064, 0xf5a5d62a
-0, 384, 384, 1, 152064, 0x998870c1
-0, 386, 386, 1, 152064, 0xa15b1f4e
-0, 388, 388, 1, 152064, 0xb0ccb51f
-0, 390, 390, 1, 152064, 0xeaaf59ab
-0, 392, 392, 1, 152064, 0x7e2b4fe6
-0, 394, 394, 1, 152064, 0x72299fea
-0, 396, 396, 1, 152064, 0x769da8b2
-0, 398, 398, 1, 152064, 0xefad7ef8
-0, 400, 400, 1, 152064, 0x24819983
-0, 402, 402, 1, 152064, 0x2aad32ab
-0, 404, 404, 1, 152064, 0xc80cac79
-0, 406, 406, 1, 152064, 0x1659d628
-0, 408, 408, 1, 152064, 0xef941f66
-0, 410, 410, 1, 152064, 0x0d7fcdb5
-0, 412, 412, 1, 152064, 0x7c1853fa
-0, 414, 414, 1, 152064, 0xb94c4d3c
-0, 416, 416, 1, 152064, 0xc47adfc2
-0, 418, 418, 1, 152064, 0x366a6729
-0, 420, 420, 1, 152064, 0x7eb37b70
-0, 422, 422, 1, 152064, 0xafd54c27
-0, 424, 424, 1, 152064, 0x67b18636
-0, 426, 426, 1, 152064, 0x93b22dcf
-0, 428, 428, 1, 152064, 0xa64991f1
-0, 430, 430, 1, 152064, 0xd32a7102
-0, 432, 432, 1, 152064, 0xff665d1c
-0, 434, 434, 1, 152064, 0xf107cc31
-0, 436, 436, 1, 152064, 0xf5b25652
-0, 438, 438, 1, 152064, 0x8caf783d
-0, 440, 440, 1, 152064, 0x72f3eb00
-0, 442, 442, 1, 152064, 0xb5aea5f8
-0, 444, 444, 1, 152064, 0xee70e870
-0, 446, 446, 1, 152064, 0x7c3a0156
-0, 448, 448, 1, 152064, 0x871b6383
-0, 450, 450, 1, 152064, 0x48d831ff
-0, 452, 452, 1, 152064, 0xca233913
-0, 454, 454, 1, 152064, 0xe14bc5eb
-0, 456, 456, 1, 152064, 0x9b1d27e7
-0, 458, 458, 1, 152064, 0xfb9637f7
-0, 460, 460, 1, 152064, 0x0c022157
-0, 462, 462, 1, 152064, 0x16d35fc9
-0, 464, 464, 1, 152064, 0x6d935f71
-0, 466, 466, 1, 152064, 0xae4066fa
-0, 468, 468, 1, 152064, 0xcef94fdc
-0, 470, 470, 1, 152064, 0xc234edb9
-0, 472, 472, 1, 152064, 0x26a4f2e2
-0, 474, 474, 1, 152064, 0xd29ac23e
-0, 476, 476, 1, 152064, 0xb7604395
-0, 478, 478, 1, 152064, 0x408084f6
-0, 480, 480, 1, 152064, 0x0a02026c
-0, 482, 482, 1, 152064, 0x78b33c7c
-0, 484, 484, 1, 152064, 0xcb02b874
-0, 486, 486, 1, 152064, 0xf566513b
-0, 488, 488, 1, 152064, 0xb34e52b1
-0, 490, 490, 1, 152064, 0xf55ff493
-0, 492, 492, 1, 152064, 0xb0e8282a
-0, 494, 494, 1, 152064, 0xe9510bbe
-0, 496, 496, 1, 152064, 0x292e8c5a
-0, 498, 498, 1, 152064, 0x62b9d2b0
-0, 500, 500, 1, 152064, 0x3a8cc827
-0, 502, 502, 1, 152064, 0x25cc465e
-0, 504, 504, 1, 152064, 0xf2bc32e2
-0, 506, 506, 1, 152064, 0x6141f914
-0, 508, 508, 1, 152064, 0x1171256f
-0, 510, 510, 1, 152064, 0x13cb2ded
-0, 512, 512, 1, 152064, 0x3d4ca557
-0, 514, 514, 1, 152064, 0xf2b9e72e
-0, 516, 516, 1, 152064, 0x03f7547a
-0, 518, 518, 1, 152064, 0xc7302955
-0, 520, 520, 1, 152064, 0xe78a46d3
-0, 522, 522, 1, 152064, 0x3726a270
-0, 524, 524, 1, 152064, 0x2f65722a
-0, 526, 526, 1, 152064, 0x55acce40
-0, 528, 528, 1, 152064, 0xf6fa9db2
-0, 530, 530, 1, 152064, 0x70a36937
-0, 532, 532, 1, 152064, 0x9313742d
-0, 534, 534, 1, 152064, 0x2eb14e53
-0, 536, 536, 1, 152064, 0x3d47c9c3
-0, 538, 538, 1, 152064, 0xd0a90348
-0, 540, 540, 1, 152064, 0x6ad48088
-0, 542, 542, 1, 152064, 0x68e64738
-0, 544, 544, 1, 152064, 0x04c3735a
-0, 546, 546, 1, 152064, 0x51d0593f
-0, 548, 548, 1, 152064, 0x42cf2b48
-0, 550, 550, 1, 152064, 0xa5496a0c
-0, 552, 552, 1, 152064, 0x84c25549
-0, 554, 554, 1, 152064, 0x96691600
-0, 556, 556, 1, 152064, 0x423135db
-0, 558, 558, 1, 152064, 0x8d2e08b6
-0, 560, 560, 1, 152064, 0xaeb4c840
-0, 562, 562, 1, 152064, 0xf3e71780
-0, 564, 564, 1, 152064, 0x8858228b
-0, 566, 566, 1, 152064, 0xf28613f8
-0, 568, 568, 1, 152064, 0xb5327882
-0, 570, 570, 1, 152064, 0xbb60bb85
-0, 572, 572, 1, 152064, 0x345ab1c9
-0, 574, 574, 1, 152064, 0x8aac2cba
-0, 576, 576, 1, 152064, 0x7ce15b4c
-0, 578, 578, 1, 152064, 0xc09c55c0
-0, 580, 580, 1, 152064, 0x8482ddd6
-0, 582, 582, 1, 152064, 0xab222a13
-0, 584, 584, 1, 152064, 0xd39b0dea
-0, 586, 586, 1, 152064, 0x6dab6e06
-0, 588, 588, 1, 152064, 0xec0891bd
-0, 590, 590, 1, 152064, 0x88bd9701
-0, 592, 592, 1, 152064, 0xdf13072a
-0, 594, 594, 1, 152064, 0x23b33081
-0, 596, 596, 1, 152064, 0x63943137
-0, 598, 598, 1, 152064, 0xab6a9052
-0, 599, 599, 1, 152064, 0x05485494
+0, 0, 0, 1, 152064, 0x502ec077
+0, 1, 1, 1, 152064, 0x84807243
+0, 2, 2, 1, 152064, 0xd7474a6e
+0, 3, 3, 1, 152064, 0x793469bb
+0, 4, 4, 1, 152064, 0xb7a0faf7
+0, 5, 5, 1, 152064, 0x1d3d3cba
+0, 6, 6, 1, 152064, 0xb62583de
+0, 7, 7, 1, 152064, 0xc8422fb1
+0, 8, 8, 1, 152064, 0x321dc699
+0, 9, 9, 1, 152064, 0x7a34d350
+0, 10, 10, 1, 152064, 0xaa4c302d
+0, 11, 11, 1, 152064, 0x45fa7ab0
+0, 12, 12, 1, 152064, 0xc7262e41
+0, 13, 13, 1, 152064, 0x3550000c
+0, 14, 14, 1, 152064, 0xf4bab54b
+0, 15, 15, 1, 152064, 0xaccf9c1a
+0, 16, 16, 1, 152064, 0x9bee20e9
+0, 17, 17, 1, 152064, 0x47fb7720
+0, 18, 18, 1, 152064, 0x12c63ffb
+0, 19, 19, 1, 152064, 0xfa2b8b4d
+0, 20, 20, 1, 152064, 0x279964bd
+0, 21, 21, 1, 152064, 0xb8b01c7e
+0, 22, 22, 1, 152064, 0x816fa010
+0, 23, 23, 1, 152064, 0x59fe1c8c
+0, 24, 24, 1, 152064, 0x13393fad
+0, 25, 25, 1, 152064, 0x991a50a4
+0, 26, 26, 1, 152064, 0x57df3eb7
+0, 27, 27, 1, 152064, 0x744371df
+0, 28, 28, 1, 152064, 0xe9f6d3ff
+0, 29, 29, 1, 152064, 0xc506fba0
+0, 30, 30, 1, 152064, 0x6295b90e
+0, 31, 31, 1, 152064, 0xa19cee2d
+0, 32, 32, 1, 152064, 0xf8c1b3ca
+0, 33, 33, 1, 152064, 0x69f68ce0
+0, 34, 34, 1, 152064, 0x80558bb6
+0, 35, 35, 1, 152064, 0x27824fa5
+0, 36, 36, 1, 152064, 0x27c929a1
+0, 37, 37, 1, 152064, 0xc0fe06d1
+0, 38, 38, 1, 152064, 0xc52bc58c
+0, 39, 39, 1, 152064, 0x0a5363c7
+0, 40, 40, 1, 152064, 0xd0f45a0d
+0, 41, 41, 1, 152064, 0x274710f9
+0, 42, 42, 1, 152064, 0x89d2d390
+0, 43, 43, 1, 152064, 0x12a9bfb0
+0, 44, 44, 1, 152064, 0x04501a93
+0, 45, 45, 1, 152064, 0xf92cbbf4
+0, 46, 46, 1, 152064, 0xf6d1b27d
+0, 47, 47, 1, 152064, 0xe3e904c3
+0, 48, 48, 1, 152064, 0x58f8516d
+0, 49, 49, 1, 152064, 0x70370c2b
+0, 50, 50, 1, 152064, 0xfeebc88c
+0, 51, 51, 1, 152064, 0x974c6ed6
+0, 52, 52, 1, 152064, 0x401bdcf2
+0, 53, 53, 1, 152064, 0xfe61e278
+0, 54, 54, 1, 152064, 0x96ba8bb9
+0, 55, 55, 1, 152064, 0x988492fd
+0, 56, 56, 1, 152064, 0xd1d913a9
+0, 57, 57, 1, 152064, 0x6bc46f0e
+0, 58, 58, 1, 152064, 0x695ef706
+0, 59, 59, 1, 152064, 0x142045c9
+0, 60, 60, 1, 152064, 0xb390ed87
+0, 61, 61, 1, 152064, 0xb9e6d2e5
+0, 62, 62, 1, 152064, 0xe348797f
+0, 63, 63, 1, 152064, 0x1cbd29d6
+0, 64, 64, 1, 152064, 0xbd7dd694
+0, 65, 65, 1, 152064, 0x516873c3
+0, 66, 66, 1, 152064, 0x27bba182
+0, 67, 67, 1, 152064, 0x7541f920
+0, 68, 68, 1, 152064, 0xfdf67042
+0, 69, 69, 1, 152064, 0x6c3c7896
+0, 70, 70, 1, 152064, 0xed86c467
+0, 71, 71, 1, 152064, 0x4ea83ca2
+0, 72, 72, 1, 152064, 0xa3e6725b
+0, 73, 73, 1, 152064, 0x917f5f16
+0, 74, 74, 1, 152064, 0x8cf2d2e1
+0, 75, 75, 1, 152064, 0x57a8d116
+0, 76, 76, 1, 152064, 0x0db267d4
+0, 77, 77, 1, 152064, 0xce782ac5
+0, 78, 78, 1, 152064, 0x1c9d8518
+0, 79, 79, 1, 152064, 0x47598ac7
+0, 80, 80, 1, 152064, 0xc5033d97
+0, 81, 81, 1, 152064, 0xd7aaa3a4
+0, 82, 82, 1, 152064, 0x078afc96
+0, 83, 83, 1, 152064, 0xc9fe673d
+0, 84, 84, 1, 152064, 0xe9284066
+0, 85, 85, 1, 152064, 0xbc570982
+0, 86, 86, 1, 152064, 0x0aac8574
+0, 87, 87, 1, 152064, 0x098cbeee
+0, 88, 88, 1, 152064, 0x19c36a9d
+0, 89, 89, 1, 152064, 0x8fe4a893
+0, 90, 90, 1, 152064, 0x0b652f17
+0, 91, 91, 1, 152064, 0x10f2e6bf
+0, 92, 92, 1, 152064, 0x7ce5634e
+0, 93, 93, 1, 152064, 0x8fe4ac6c
+0, 94, 94, 1, 152064, 0xcaba749e
+0, 95, 95, 1, 152064, 0x5f8a0d5c
+0, 96, 96, 1, 152064, 0xcaa66bbc
+0, 97, 97, 1, 152064, 0xc87ae617
+0, 98, 98, 1, 152064, 0xe8ef4dd7
+0, 99, 99, 1, 152064, 0xdfca5a07
+0, 100, 100, 1, 152064, 0x5f7eab7d
+0, 101, 101, 1, 152064, 0x8a65ebbb
+0, 102, 102, 1, 152064, 0x4beab4a0
+0, 103, 103, 1, 152064, 0xb5e6ab30
+0, 104, 104, 1, 152064, 0x8fe4f4d4
+0, 105, 105, 1, 152064, 0x95bde1ca
+0, 106, 106, 1, 152064, 0xcc5e3a53
+0, 107, 107, 1, 152064, 0xf09f1dd7
+0, 108, 108, 1, 152064, 0x10179672
+0, 109, 109, 1, 152064, 0x4ad16184
+0, 110, 110, 1, 152064, 0x9efa0e23
+0, 111, 111, 1, 152064, 0x22f59522
+0, 112, 112, 1, 152064, 0x4d38f09d
+0, 113, 113, 1, 152064, 0x4c5ebf56
+0, 114, 114, 1, 152064, 0xb19d5077
+0, 115, 115, 1, 152064, 0xa98576b9
+0, 116, 116, 1, 152064, 0x65324239
+0, 117, 117, 1, 152064, 0x709e4031
+0, 118, 118, 1, 152064, 0xf8e81681
+0, 119, 119, 1, 152064, 0x058514e5
+0, 120, 120, 1, 152064, 0xd1d1c806
+0, 121, 121, 1, 152064, 0x0e4dde57
+0, 122, 122, 1, 152064, 0x49e9c2bb
+0, 123, 123, 1, 152064, 0x01417ce6
+0, 124, 124, 1, 152064, 0xda7ebbf1
+0, 125, 125, 1, 152064, 0xa22906b7
+0, 126, 126, 1, 152064, 0x32e2df87
+0, 127, 127, 1, 152064, 0x69917c8f
+0, 128, 128, 1, 152064, 0xea8ed2cc
+0, 129, 129, 1, 152064, 0x0b8d57f1
+0, 130, 130, 1, 152064, 0x5f683bcd
+0, 131, 131, 1, 152064, 0x5162fe2f
+0, 132, 132, 1, 152064, 0x49c052f8
+0, 133, 133, 1, 152064, 0x990b69ba
+0, 134, 134, 1, 152064, 0xa6d4f99f
+0, 135, 135, 1, 152064, 0xe79ef4da
+0, 136, 136, 1, 152064, 0x5e8a3847
+0, 137, 137, 1, 152064, 0x38b1e75f
+0, 138, 138, 1, 152064, 0xf5c91bed
+0, 139, 139, 1, 152064, 0xd59a6d26
+0, 140, 140, 1, 152064, 0xc361de06
+0, 141, 141, 1, 152064, 0x63ed2229
+0, 142, 142, 1, 152064, 0xb8229205
+0, 143, 143, 1, 152064, 0x7c6619af
+0, 144, 144, 1, 152064, 0x4126b02f
+0, 145, 145, 1, 152064, 0x9250b99b
+0, 146, 146, 1, 152064, 0x589778f9
+0, 147, 147, 1, 152064, 0xed1fa45b
+0, 148, 148, 1, 152064, 0x700b6f32
+0, 149, 149, 1, 152064, 0x0590df55
+0, 150, 150, 1, 152064, 0x3e9c4018
+0, 151, 151, 1, 152064, 0x957b8860
+0, 152, 152, 1, 152064, 0x56161560
+0, 153, 153, 1, 152064, 0xbc43bc3b
+0, 154, 154, 1, 152064, 0x508d8632
+0, 155, 155, 1, 152064, 0xbc5736d8
+0, 156, 156, 1, 152064, 0xed7d3aef
+0, 157, 157, 1, 152064, 0x1dcdda9f
+0, 158, 158, 1, 152064, 0x8ef6d5c9
+0, 159, 159, 1, 152064, 0x15466acc
+0, 160, 160, 1, 152064, 0x45d4cf67
+0, 161, 161, 1, 152064, 0x8c900b9d
+0, 162, 162, 1, 152064, 0x747006e0
+0, 163, 163, 1, 152064, 0xac920a0c
+0, 164, 164, 1, 152064, 0xb8210c27
+0, 165, 165, 1, 152064, 0x7dbb873a
+0, 166, 166, 1, 152064, 0x0d4d7584
+0, 167, 167, 1, 152064, 0xefb3fe60
+0, 168, 168, 1, 152064, 0x905e2644
+0, 169, 169, 1, 152064, 0x7c04e534
+0, 170, 170, 1, 152064, 0x8889972a
+0, 171, 171, 1, 152064, 0x21c7d8ad
+0, 172, 172, 1, 152064, 0x1c641176
+0, 173, 173, 1, 152064, 0xf71489a4
+0, 174, 174, 1, 152064, 0xd7ac5555
+0, 175, 175, 1, 152064, 0xb4609c6d
+0, 176, 176, 1, 152064, 0xf5b2bd5e
+0, 177, 177, 1, 152064, 0x9f43ce57
+0, 178, 178, 1, 152064, 0x77642dd3
+0, 179, 179, 1, 152064, 0x3e79565c
+0, 180, 180, 1, 152064, 0x95f40b8e
+0, 181, 181, 1, 152064, 0x3c8ca4d4
+0, 182, 182, 1, 152064, 0xa02ac497
+0, 183, 183, 1, 152064, 0x4c93b377
+0, 184, 184, 1, 152064, 0x55f5ac68
+0, 185, 185, 1, 152064, 0xf8652eca
+0, 186, 186, 1, 152064, 0x56e94574
+0, 187, 187, 1, 152064, 0x6d8302e1
+0, 188, 188, 1, 152064, 0x29a57061
+0, 189, 189, 1, 152064, 0x24e4cfdc
+0, 190, 190, 1, 152064, 0xf5a5d62a
+0, 191, 191, 1, 152064, 0x998870c1
+0, 192, 192, 1, 152064, 0xa15b1f4e
+0, 193, 193, 1, 152064, 0xb0ccb51f
+0, 194, 194, 1, 152064, 0xeaaf59ab
+0, 195, 195, 1, 152064, 0x7e2b4fe6
+0, 196, 196, 1, 152064, 0x72299fea
+0, 197, 197, 1, 152064, 0x769da8b2
+0, 198, 198, 1, 152064, 0xefad7ef8
+0, 199, 199, 1, 152064, 0x24819983
+0, 200, 200, 1, 152064, 0x2aad32ab
+0, 201, 201, 1, 152064, 0xc80cac79
+0, 202, 202, 1, 152064, 0x1659d628
+0, 203, 203, 1, 152064, 0xef941f66
+0, 204, 204, 1, 152064, 0x0d7fcdb5
+0, 205, 205, 1, 152064, 0x7c1853fa
+0, 206, 206, 1, 152064, 0xb94c4d3c
+0, 207, 207, 1, 152064, 0xc47adfc2
+0, 208, 208, 1, 152064, 0x366a6729
+0, 209, 209, 1, 152064, 0x7eb37b70
+0, 210, 210, 1, 152064, 0xafd54c27
+0, 211, 211, 1, 152064, 0x67b18636
+0, 212, 212, 1, 152064, 0x93b22dcf
+0, 213, 213, 1, 152064, 0xa64991f1
+0, 214, 214, 1, 152064, 0xd32a7102
+0, 215, 215, 1, 152064, 0xff665d1c
+0, 216, 216, 1, 152064, 0xf107cc31
+0, 217, 217, 1, 152064, 0xf5b25652
+0, 218, 218, 1, 152064, 0x8caf783d
+0, 219, 219, 1, 152064, 0x72f3eb00
+0, 220, 220, 1, 152064, 0xb5aea5f8
+0, 221, 221, 1, 152064, 0xee70e870
+0, 222, 222, 1, 152064, 0x7c3a0156
+0, 223, 223, 1, 152064, 0x871b6383
+0, 224, 224, 1, 152064, 0x48d831ff
+0, 225, 225, 1, 152064, 0xca233913
+0, 226, 226, 1, 152064, 0xe14bc5eb
+0, 227, 227, 1, 152064, 0x9b1d27e7
+0, 228, 228, 1, 152064, 0xfb9637f7
+0, 229, 229, 1, 152064, 0x0c022157
+0, 230, 230, 1, 152064, 0x16d35fc9
+0, 231, 231, 1, 152064, 0x6d935f71
+0, 232, 232, 1, 152064, 0xae4066fa
+0, 233, 233, 1, 152064, 0xcef94fdc
+0, 234, 234, 1, 152064, 0xc234edb9
+0, 235, 235, 1, 152064, 0x26a4f2e2
+0, 236, 236, 1, 152064, 0xd29ac23e
+0, 237, 237, 1, 152064, 0xb7604395
+0, 238, 238, 1, 152064, 0x408084f6
+0, 239, 239, 1, 152064, 0x0a02026c
+0, 240, 240, 1, 152064, 0x78b33c7c
+0, 241, 241, 1, 152064, 0xcb02b874
+0, 242, 242, 1, 152064, 0xf566513b
+0, 243, 243, 1, 152064, 0xb34e52b1
+0, 244, 244, 1, 152064, 0xf55ff493
+0, 245, 245, 1, 152064, 0xb0e8282a
+0, 246, 246, 1, 152064, 0xe9510bbe
+0, 247, 247, 1, 152064, 0x292e8c5a
+0, 248, 248, 1, 152064, 0x62b9d2b0
+0, 249, 249, 1, 152064, 0x3a8cc827
+0, 250, 250, 1, 152064, 0x25cc465e
+0, 251, 251, 1, 152064, 0xf2bc32e2
+0, 252, 252, 1, 152064, 0x6141f914
+0, 253, 253, 1, 152064, 0x1171256f
+0, 254, 254, 1, 152064, 0x13cb2ded
+0, 255, 255, 1, 152064, 0x3d4ca557
+0, 256, 256, 1, 152064, 0xf2b9e72e
+0, 257, 257, 1, 152064, 0x03f7547a
+0, 258, 258, 1, 152064, 0xc7302955
+0, 259, 259, 1, 152064, 0xe78a46d3
+0, 260, 260, 1, 152064, 0x3726a270
+0, 261, 261, 1, 152064, 0x2f65722a
+0, 262, 262, 1, 152064, 0x55acce40
+0, 263, 263, 1, 152064, 0xf6fa9db2
+0, 264, 264, 1, 152064, 0x70a36937
+0, 265, 265, 1, 152064, 0x9313742d
+0, 266, 266, 1, 152064, 0x2eb14e53
+0, 267, 267, 1, 152064, 0x3d47c9c3
+0, 268, 268, 1, 152064, 0xd0a90348
+0, 269, 269, 1, 152064, 0x6ad48088
+0, 270, 270, 1, 152064, 0x68e64738
+0, 271, 271, 1, 152064, 0x04c3735a
+0, 272, 272, 1, 152064, 0x51d0593f
+0, 273, 273, 1, 152064, 0x42cf2b48
+0, 274, 274, 1, 152064, 0xa5496a0c
+0, 275, 275, 1, 152064, 0x84c25549
+0, 276, 276, 1, 152064, 0x96691600
+0, 277, 277, 1, 152064, 0x423135db
+0, 278, 278, 1, 152064, 0x8d2e08b6
+0, 279, 279, 1, 152064, 0xaeb4c840
+0, 280, 280, 1, 152064, 0xf3e71780
+0, 281, 281, 1, 152064, 0x8858228b
+0, 282, 282, 1, 152064, 0xf28613f8
+0, 283, 283, 1, 152064, 0xb5327882
+0, 284, 284, 1, 152064, 0xbb60bb85
+0, 285, 285, 1, 152064, 0x345ab1c9
+0, 286, 286, 1, 152064, 0x8aac2cba
+0, 287, 287, 1, 152064, 0x7ce15b4c
+0, 288, 288, 1, 152064, 0xc09c55c0
+0, 289, 289, 1, 152064, 0x8482ddd6
+0, 290, 290, 1, 152064, 0xab222a13
+0, 291, 291, 1, 152064, 0xd39b0dea
+0, 292, 292, 1, 152064, 0x6dab6e06
+0, 293, 293, 1, 152064, 0xec0891bd
+0, 294, 294, 1, 152064, 0x88bd9701
+0, 295, 295, 1, 152064, 0xdf13072a
+0, 296, 296, 1, 152064, 0x23b33081
+0, 297, 297, 1, 152064, 0x63943137
+0, 298, 298, 1, 152064, 0xab6a9052
+0, 299, 299, 1, 152064, 0x05485494
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a b/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
index aafb2d4c6f..65a366e0cb 100644
--- a/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
+++ b/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
@@ -1,301 +1,301 @@
#tb 0: 1/25
-0, 2, 2, 1, 152064, 0x3e39c08b
-0, 4, 4, 1, 152064, 0xabc67990
-0, 6, 6, 1, 152064, 0x19614e74
-0, 8, 8, 1, 152064, 0xa3776beb
-0, 10, 10, 1, 152064, 0xcce6ffdf
-0, 12, 12, 1, 152064, 0xb0e94746
-0, 14, 14, 1, 152064, 0xdb1a84ef
-0, 16, 16, 1, 152064, 0xb2624509
-0, 18, 18, 1, 152064, 0x32e2d826
-0, 20, 20, 1, 152064, 0xb3bddf0b
-0, 22, 22, 1, 152064, 0x2e273ce3
-0, 24, 24, 1, 152064, 0x67af7e4d
-0, 26, 26, 1, 152064, 0x505c3261
-0, 28, 28, 1, 152064, 0xa43d015e
-0, 30, 30, 1, 152064, 0xad41c1f6
-0, 32, 32, 1, 152064, 0x633ba55f
-0, 34, 34, 1, 152064, 0xe80634f0
-0, 36, 36, 1, 152064, 0x80a07dc9
-0, 38, 38, 1, 152064, 0x0e7a3bbf
-0, 40, 40, 1, 152064, 0xcb099196
-0, 42, 42, 1, 152064, 0x57c96db5
-0, 44, 44, 1, 152064, 0xccd422fa
-0, 46, 46, 1, 152064, 0x0850b7a7
-0, 48, 48, 1, 152064, 0x30e33156
-0, 50, 50, 1, 152064, 0x34e13f9a
-0, 52, 52, 1, 152064, 0x03d36000
-0, 54, 54, 1, 152064, 0xbf7d49da
-0, 56, 56, 1, 152064, 0x77336d09
-0, 58, 58, 1, 152064, 0xca8be5a9
-0, 60, 60, 1, 152064, 0xe57c0b08
-0, 62, 62, 1, 152064, 0xbe77c093
-0, 64, 64, 1, 152064, 0x6bf1ff05
-0, 66, 66, 1, 152064, 0x9142babf
-0, 68, 68, 1, 152064, 0x08db8e67
-0, 70, 70, 1, 152064, 0x69ac8cb6
-0, 72, 72, 1, 152064, 0xaa3b5c88
-0, 74, 74, 1, 152064, 0x9bd32638
-0, 76, 76, 1, 152064, 0x7972115a
-0, 78, 78, 1, 152064, 0x5c1dd47b
-0, 80, 80, 1, 152064, 0x8a196e02
-0, 82, 82, 1, 152064, 0xa89672bc
-0, 84, 84, 1, 152064, 0x27b220e4
-0, 86, 86, 1, 152064, 0xfa38dc4a
-0, 88, 88, 1, 152064, 0x4784c639
-0, 90, 90, 1, 152064, 0xa5e4229a
-0, 92, 92, 1, 152064, 0xa986bdfc
-0, 94, 94, 1, 152064, 0x2951b47b
-0, 96, 96, 1, 152064, 0x4df404a6
-0, 98, 98, 1, 152064, 0xc75155e8
-0, 100, 100, 1, 152064, 0xfc05248c
-0, 102, 102, 1, 152064, 0x5d53da10
-0, 104, 104, 1, 152064, 0x284376ec
-0, 106, 106, 1, 152064, 0x19fce380
-0, 108, 108, 1, 152064, 0x876be6c9
-0, 110, 110, 1, 152064, 0x39eb8ff9
-0, 112, 112, 1, 152064, 0x289c9543
-0, 114, 114, 1, 152064, 0x24dd2356
-0, 116, 116, 1, 152064, 0x1dc17d3c
-0, 118, 118, 1, 152064, 0xd17c00ac
-0, 120, 120, 1, 152064, 0xc2ad54de
-0, 122, 122, 1, 152064, 0xbe11ee2f
-0, 124, 124, 1, 152064, 0x3db9dc89
-0, 126, 126, 1, 152064, 0xac0d7bc2
-0, 128, 128, 1, 152064, 0x8dab2dde
-0, 130, 130, 1, 152064, 0x566ad225
-0, 132, 132, 1, 152064, 0x587c7853
-0, 134, 134, 1, 152064, 0x601c9c80
-0, 136, 136, 1, 152064, 0x2afaf751
-0, 138, 138, 1, 152064, 0x1c9f7e3a
-0, 140, 140, 1, 152064, 0x899475bf
-0, 142, 142, 1, 152064, 0x0d65c7d9
-0, 144, 144, 1, 152064, 0xafd63d12
-0, 146, 146, 1, 152064, 0x162e62b9
-0, 148, 148, 1, 152064, 0x5c9554be
-0, 150, 150, 1, 152064, 0x35fbdaa2
-0, 152, 152, 1, 152064, 0x6438cbd8
-0, 154, 154, 1, 152064, 0xde0772c9
-0, 156, 156, 1, 152064, 0x79f82854
-0, 158, 158, 1, 152064, 0x86957840
-0, 160, 160, 1, 152064, 0xd9468cbf
-0, 162, 162, 1, 152064, 0x23e74609
-0, 164, 164, 1, 152064, 0x3919a146
-0, 166, 166, 1, 152064, 0xd641078b
-0, 168, 168, 1, 152064, 0x24397220
-0, 170, 170, 1, 152064, 0xe7fc3a7c
-0, 172, 172, 1, 152064, 0x3997154a
-0, 174, 174, 1, 152064, 0x2af3952c
-0, 176, 176, 1, 152064, 0x274ac07a
-0, 178, 178, 1, 152064, 0x288f7b09
-0, 180, 180, 1, 152064, 0xe6f9b022
-0, 182, 182, 1, 152064, 0xf09e2fbb
-0, 184, 184, 1, 152064, 0x7244e477
-0, 186, 186, 1, 152064, 0x0dfc72eb
-0, 188, 188, 1, 152064, 0x0322b21f
-0, 190, 190, 1, 152064, 0x18b08205
-0, 192, 192, 1, 152064, 0x6606153e
-0, 194, 194, 1, 152064, 0x85186272
-0, 196, 196, 1, 152064, 0x3369f064
-0, 198, 198, 1, 152064, 0xbe0d5a44
-0, 200, 200, 1, 152064, 0x320258bb
-0, 202, 202, 1, 152064, 0x4d6fb091
-0, 204, 204, 1, 152064, 0xc9bbf5e7
-0, 206, 206, 1, 152064, 0x0aa1b69b
-0, 208, 208, 1, 152064, 0x85b9ac11
-0, 210, 210, 1, 152064, 0xb25ff818
-0, 212, 212, 1, 152064, 0xa155dc25
-0, 214, 214, 1, 152064, 0xa8e03bfd
-0, 216, 216, 1, 152064, 0x0a862956
-0, 218, 218, 1, 152064, 0x11b49264
-0, 220, 220, 1, 152064, 0xa94e664e
-0, 222, 222, 1, 152064, 0x330e0fa2
-0, 224, 224, 1, 152064, 0xaf3d9518
-0, 226, 226, 1, 152064, 0x0836f2e8
-0, 228, 228, 1, 152064, 0xbf6dc578
-0, 230, 230, 1, 152064, 0x7b524d20
-0, 232, 232, 1, 152064, 0x9ef7677f
-0, 234, 234, 1, 152064, 0xeacf3f34
-0, 236, 236, 1, 152064, 0xfb4e3dbe
-0, 238, 238, 1, 152064, 0xb46e25cb
-0, 240, 240, 1, 152064, 0x363c1603
-0, 242, 242, 1, 152064, 0x263fc542
-0, 244, 244, 1, 152064, 0xf106e548
-0, 246, 246, 1, 152064, 0xde43c56a
-0, 248, 248, 1, 152064, 0xc2c4770a
-0, 250, 250, 1, 152064, 0x122fce19
-0, 252, 252, 1, 152064, 0x3ba01434
-0, 254, 254, 1, 152064, 0x0e8ce5ee
-0, 256, 256, 1, 152064, 0x6ceb82e1
-0, 258, 258, 1, 152064, 0xa23ee21c
-0, 260, 260, 1, 152064, 0xc6d960f9
-0, 262, 262, 1, 152064, 0x0de15258
-0, 264, 264, 1, 152064, 0x187b0333
-0, 266, 266, 1, 152064, 0x92e6582f
-0, 268, 268, 1, 152064, 0xb9586ce0
-0, 270, 270, 1, 152064, 0xefd803b5
-0, 272, 272, 1, 152064, 0x24eafb29
-0, 274, 274, 1, 152064, 0x20c73b14
-0, 276, 276, 1, 152064, 0xbd7ceaaa
-0, 278, 278, 1, 152064, 0x775216c8
-0, 280, 280, 1, 152064, 0xa08971c7
-0, 282, 282, 1, 152064, 0xef0ee865
-0, 284, 284, 1, 152064, 0x9ac61c2f
-0, 286, 286, 1, 152064, 0x52ae8ea9
-0, 288, 288, 1, 152064, 0x06571c14
-0, 290, 290, 1, 152064, 0x6e78ad33
-0, 292, 292, 1, 152064, 0xad01c627
-0, 294, 294, 1, 152064, 0xbfe074d3
-0, 296, 296, 1, 152064, 0x9357a183
-0, 298, 298, 1, 152064, 0x8de7767f
-0, 300, 300, 1, 152064, 0xa5e6e76e
-0, 302, 302, 1, 152064, 0xa6f646fe
-0, 304, 304, 1, 152064, 0x132e99f8
-0, 306, 306, 1, 152064, 0xb79f27de
-0, 308, 308, 1, 152064, 0x36d3cdcf
-0, 310, 310, 1, 152064, 0xdc938336
-0, 312, 312, 1, 152064, 0xacaa3a7f
-0, 314, 314, 1, 152064, 0xc61a37fd
-0, 316, 316, 1, 152064, 0x4fe1ddf0
-0, 318, 318, 1, 152064, 0xc0f7d660
-0, 320, 320, 1, 152064, 0xd72458ea
-0, 322, 322, 1, 152064, 0x6978d123
-0, 324, 324, 1, 152064, 0x64e60ccf
-0, 326, 326, 1, 152064, 0xaa07004c
-0, 328, 328, 1, 152064, 0x07cd1064
-0, 330, 330, 1, 152064, 0xa82320e5
-0, 332, 332, 1, 152064, 0xaedd8d30
-0, 334, 334, 1, 152064, 0x79b082ea
-0, 336, 336, 1, 152064, 0x9ed800ab
-0, 338, 338, 1, 152064, 0xde592bb4
-0, 340, 340, 1, 152064, 0xd966df88
-0, 342, 342, 1, 152064, 0xf921988a
-0, 344, 344, 1, 152064, 0x557ad9ae
-0, 346, 346, 1, 152064, 0xc3f31a9a
-0, 348, 348, 1, 152064, 0x65248561
-0, 350, 350, 1, 152064, 0x63df4aa6
-0, 352, 352, 1, 152064, 0x618da0a9
-0, 354, 354, 1, 152064, 0xe6f1c435
-0, 356, 356, 1, 152064, 0x9f90c38f
-0, 358, 358, 1, 152064, 0xd2853e14
-0, 360, 360, 1, 152064, 0x6e0268a9
-0, 362, 362, 1, 152064, 0x393712d1
-0, 364, 364, 1, 152064, 0x470da25f
-0, 366, 366, 1, 152064, 0xaf55cb3d
-0, 368, 368, 1, 152064, 0x6935b8b9
-0, 370, 370, 1, 152064, 0x5409a15f
-0, 372, 372, 1, 152064, 0x09073fee
-0, 374, 374, 1, 152064, 0xfb274e82
-0, 376, 376, 1, 152064, 0x1a770581
-0, 378, 378, 1, 152064, 0x17277d0d
-0, 380, 380, 1, 152064, 0xd4dcd982
-0, 382, 382, 1, 152064, 0x6b04eaf3
-0, 384, 384, 1, 152064, 0x8a3d822e
-0, 386, 386, 1, 152064, 0x1b971ec9
-0, 388, 388, 1, 152064, 0x14e0c0f6
-0, 390, 390, 1, 152064, 0x00667450
-0, 392, 392, 1, 152064, 0xd2385902
-0, 394, 394, 1, 152064, 0x905da6ab
-0, 396, 396, 1, 152064, 0xa3ffb18b
-0, 398, 398, 1, 152064, 0x10d48b19
-0, 400, 400, 1, 152064, 0xb2c7a3bd
-0, 402, 402, 1, 152064, 0x45593e96
-0, 404, 404, 1, 152064, 0x47a0b60c
-0, 406, 406, 1, 152064, 0x68c6d1b9
-0, 408, 408, 1, 152064, 0xbc881fcc
-0, 410, 410, 1, 152064, 0x422cc6f2
-0, 412, 412, 1, 152064, 0x9b686410
-0, 414, 414, 1, 152064, 0x35dc5e86
-0, 416, 416, 1, 152064, 0x247bedaa
-0, 418, 418, 1, 152064, 0x22b76fd1
-0, 420, 420, 1, 152064, 0x67cc7a75
-0, 422, 422, 1, 152064, 0xa197521e
-0, 424, 424, 1, 152064, 0x428c8662
-0, 426, 426, 1, 152064, 0x33dc2c73
-0, 428, 428, 1, 152064, 0x5b538903
-0, 430, 430, 1, 152064, 0x3c4176b6
-0, 432, 432, 1, 152064, 0x774364ba
-0, 434, 434, 1, 152064, 0xf237d03e
-0, 436, 436, 1, 152064, 0xac8746fb
-0, 438, 438, 1, 152064, 0x6b306a84
-0, 440, 440, 1, 152064, 0xa2ace513
-0, 442, 442, 1, 152064, 0x709c9be7
-0, 444, 444, 1, 152064, 0x2403f373
-0, 446, 446, 1, 152064, 0x147bf717
-0, 448, 448, 1, 152064, 0xe58964c8
-0, 450, 450, 1, 152064, 0xa0da36fc
-0, 452, 452, 1, 152064, 0x1ac1355c
-0, 454, 454, 1, 152064, 0x8a31c9f2
-0, 456, 456, 1, 152064, 0x42ba205c
-0, 458, 458, 1, 152064, 0xa11b3575
-0, 460, 460, 1, 152064, 0xcb35207c
-0, 462, 462, 1, 152064, 0x528f6189
-0, 464, 464, 1, 152064, 0x34f05bd7
-0, 466, 466, 1, 152064, 0x72317356
-0, 468, 468, 1, 152064, 0xaabd5028
-0, 470, 470, 1, 152064, 0x13dbeb7b
-0, 472, 472, 1, 152064, 0x62f1e8a8
-0, 474, 474, 1, 152064, 0x1723bfcd
-0, 476, 476, 1, 152064, 0x5c083c00
-0, 478, 478, 1, 152064, 0x52137894
-0, 480, 480, 1, 152064, 0xef1e082c
-0, 482, 482, 1, 152064, 0x664b3d53
-0, 484, 484, 1, 152064, 0x2eb9b296
-0, 486, 486, 1, 152064, 0xd0ca511e
-0, 488, 488, 1, 152064, 0x012d4724
-0, 490, 490, 1, 152064, 0xa847f5af
-0, 492, 492, 1, 152064, 0x483a2fde
-0, 494, 494, 1, 152064, 0xd1ab0257
-0, 496, 496, 1, 152064, 0x414692c7
-0, 498, 498, 1, 152064, 0x0b79df88
-0, 500, 500, 1, 152064, 0xdaa2c4a3
-0, 502, 502, 1, 152064, 0xd1b44500
-0, 504, 504, 1, 152064, 0xfd3d2cf3
-0, 506, 506, 1, 152064, 0xfdc0f748
-0, 508, 508, 1, 152064, 0xce762a2a
-0, 510, 510, 1, 152064, 0x08b63572
-0, 512, 512, 1, 152064, 0x5a46a38d
-0, 514, 514, 1, 152064, 0x03cee9c0
-0, 516, 516, 1, 152064, 0x9ee45473
-0, 518, 518, 1, 152064, 0x5a432386
-0, 520, 520, 1, 152064, 0x54c83d87
-0, 522, 522, 1, 152064, 0xc9caa1de
-0, 524, 524, 1, 152064, 0xa28367f1
-0, 526, 526, 1, 152064, 0x2607cdf1
-0, 528, 528, 1, 152064, 0x06baa8de
-0, 530, 530, 1, 152064, 0xf5346e32
-0, 532, 532, 1, 152064, 0x6d3e732b
-0, 534, 534, 1, 152064, 0x798c584b
-0, 536, 536, 1, 152064, 0x4076c948
-0, 538, 538, 1, 152064, 0x868cf63a
-0, 540, 540, 1, 152064, 0x23107ac5
-0, 542, 542, 1, 152064, 0x306f3fe2
-0, 544, 544, 1, 152064, 0xbd1d71d6
-0, 546, 546, 1, 152064, 0x1429545f
-0, 548, 548, 1, 152064, 0xaded29aa
-0, 550, 550, 1, 152064, 0x9b455a94
-0, 552, 552, 1, 152064, 0xb3774ce7
-0, 554, 554, 1, 152064, 0x92580986
-0, 556, 556, 1, 152064, 0x0eae2f95
-0, 558, 558, 1, 152064, 0x599208b2
-0, 560, 560, 1, 152064, 0x4804c04c
-0, 562, 562, 1, 152064, 0x5f730e8f
-0, 564, 564, 1, 152064, 0x3e501d1e
-0, 566, 566, 1, 152064, 0x32100740
-0, 568, 568, 1, 152064, 0x62226ff8
-0, 570, 570, 1, 152064, 0x7683b622
-0, 572, 572, 1, 152064, 0xc3e0aec1
-0, 574, 574, 1, 152064, 0xfac12608
-0, 576, 576, 1, 152064, 0xb21a5781
-0, 578, 578, 1, 152064, 0x8f1e4964
-0, 580, 580, 1, 152064, 0x0f62dd6e
-0, 582, 582, 1, 152064, 0xac062ac4
-0, 584, 584, 1, 152064, 0x1b320f7a
-0, 586, 586, 1, 152064, 0x346e7211
-0, 588, 588, 1, 152064, 0xe47592f3
-0, 590, 590, 1, 152064, 0xa3a7919c
-0, 592, 592, 1, 152064, 0xa3580fa6
-0, 594, 594, 1, 152064, 0xc73430c1
-0, 596, 596, 1, 152064, 0x994a2c18
-0, 598, 598, 1, 152064, 0x0b5d8d45
-0, 599, 599, 1, 152064, 0x9eed5109
+0, 0, 0, 1, 152064, 0x3e39c08b
+0, 1, 1, 1, 152064, 0xabc67990
+0, 2, 2, 1, 152064, 0x19614e74
+0, 3, 3, 1, 152064, 0xa3776beb
+0, 4, 4, 1, 152064, 0xcce6ffdf
+0, 5, 5, 1, 152064, 0xb0e94746
+0, 6, 6, 1, 152064, 0xdb1a84ef
+0, 7, 7, 1, 152064, 0xb2624509
+0, 8, 8, 1, 152064, 0x32e2d826
+0, 9, 9, 1, 152064, 0xb3bddf0b
+0, 10, 10, 1, 152064, 0x2e273ce3
+0, 11, 11, 1, 152064, 0x67af7e4d
+0, 12, 12, 1, 152064, 0x505c3261
+0, 13, 13, 1, 152064, 0xa43d015e
+0, 14, 14, 1, 152064, 0xad41c1f6
+0, 15, 15, 1, 152064, 0x633ba55f
+0, 16, 16, 1, 152064, 0xe80634f0
+0, 17, 17, 1, 152064, 0x80a07dc9
+0, 18, 18, 1, 152064, 0x0e7a3bbf
+0, 19, 19, 1, 152064, 0xcb099196
+0, 20, 20, 1, 152064, 0x57c96db5
+0, 21, 21, 1, 152064, 0xccd422fa
+0, 22, 22, 1, 152064, 0x0850b7a7
+0, 23, 23, 1, 152064, 0x30e33156
+0, 24, 24, 1, 152064, 0x34e13f9a
+0, 25, 25, 1, 152064, 0x03d36000
+0, 26, 26, 1, 152064, 0xbf7d49da
+0, 27, 27, 1, 152064, 0x77336d09
+0, 28, 28, 1, 152064, 0xca8be5a9
+0, 29, 29, 1, 152064, 0xe57c0b08
+0, 30, 30, 1, 152064, 0xbe77c093
+0, 31, 31, 1, 152064, 0x6bf1ff05
+0, 32, 32, 1, 152064, 0x9142babf
+0, 33, 33, 1, 152064, 0x08db8e67
+0, 34, 34, 1, 152064, 0x69ac8cb6
+0, 35, 35, 1, 152064, 0xaa3b5c88
+0, 36, 36, 1, 152064, 0x9bd32638
+0, 37, 37, 1, 152064, 0x7972115a
+0, 38, 38, 1, 152064, 0x5c1dd47b
+0, 39, 39, 1, 152064, 0x8a196e02
+0, 40, 40, 1, 152064, 0xa89672bc
+0, 41, 41, 1, 152064, 0x27b220e4
+0, 42, 42, 1, 152064, 0xfa38dc4a
+0, 43, 43, 1, 152064, 0x4784c639
+0, 44, 44, 1, 152064, 0xa5e4229a
+0, 45, 45, 1, 152064, 0xa986bdfc
+0, 46, 46, 1, 152064, 0x2951b47b
+0, 47, 47, 1, 152064, 0x4df404a6
+0, 48, 48, 1, 152064, 0xc75155e8
+0, 49, 49, 1, 152064, 0xfc05248c
+0, 50, 50, 1, 152064, 0x5d53da10
+0, 51, 51, 1, 152064, 0x284376ec
+0, 52, 52, 1, 152064, 0x19fce380
+0, 53, 53, 1, 152064, 0x876be6c9
+0, 54, 54, 1, 152064, 0x39eb8ff9
+0, 55, 55, 1, 152064, 0x289c9543
+0, 56, 56, 1, 152064, 0x24dd2356
+0, 57, 57, 1, 152064, 0x1dc17d3c
+0, 58, 58, 1, 152064, 0xd17c00ac
+0, 59, 59, 1, 152064, 0xc2ad54de
+0, 60, 60, 1, 152064, 0xbe11ee2f
+0, 61, 61, 1, 152064, 0x3db9dc89
+0, 62, 62, 1, 152064, 0xac0d7bc2
+0, 63, 63, 1, 152064, 0x8dab2dde
+0, 64, 64, 1, 152064, 0x566ad225
+0, 65, 65, 1, 152064, 0x587c7853
+0, 66, 66, 1, 152064, 0x601c9c80
+0, 67, 67, 1, 152064, 0x2afaf751
+0, 68, 68, 1, 152064, 0x1c9f7e3a
+0, 69, 69, 1, 152064, 0x899475bf
+0, 70, 70, 1, 152064, 0x0d65c7d9
+0, 71, 71, 1, 152064, 0xafd63d12
+0, 72, 72, 1, 152064, 0x162e62b9
+0, 73, 73, 1, 152064, 0x5c9554be
+0, 74, 74, 1, 152064, 0x35fbdaa2
+0, 75, 75, 1, 152064, 0x6438cbd8
+0, 76, 76, 1, 152064, 0xde0772c9
+0, 77, 77, 1, 152064, 0x79f82854
+0, 78, 78, 1, 152064, 0x86957840
+0, 79, 79, 1, 152064, 0xd9468cbf
+0, 80, 80, 1, 152064, 0x23e74609
+0, 81, 81, 1, 152064, 0x3919a146
+0, 82, 82, 1, 152064, 0xd641078b
+0, 83, 83, 1, 152064, 0x24397220
+0, 84, 84, 1, 152064, 0xe7fc3a7c
+0, 85, 85, 1, 152064, 0x3997154a
+0, 86, 86, 1, 152064, 0x2af3952c
+0, 87, 87, 1, 152064, 0x274ac07a
+0, 88, 88, 1, 152064, 0x288f7b09
+0, 89, 89, 1, 152064, 0xe6f9b022
+0, 90, 90, 1, 152064, 0xf09e2fbb
+0, 91, 91, 1, 152064, 0x7244e477
+0, 92, 92, 1, 152064, 0x0dfc72eb
+0, 93, 93, 1, 152064, 0x0322b21f
+0, 94, 94, 1, 152064, 0x18b08205
+0, 95, 95, 1, 152064, 0x6606153e
+0, 96, 96, 1, 152064, 0x85186272
+0, 97, 97, 1, 152064, 0x3369f064
+0, 98, 98, 1, 152064, 0xbe0d5a44
+0, 99, 99, 1, 152064, 0x320258bb
+0, 100, 100, 1, 152064, 0x4d6fb091
+0, 101, 101, 1, 152064, 0xc9bbf5e7
+0, 102, 102, 1, 152064, 0x0aa1b69b
+0, 103, 103, 1, 152064, 0x85b9ac11
+0, 104, 104, 1, 152064, 0xb25ff818
+0, 105, 105, 1, 152064, 0xa155dc25
+0, 106, 106, 1, 152064, 0xa8e03bfd
+0, 107, 107, 1, 152064, 0x0a862956
+0, 108, 108, 1, 152064, 0x11b49264
+0, 109, 109, 1, 152064, 0xa94e664e
+0, 110, 110, 1, 152064, 0x330e0fa2
+0, 111, 111, 1, 152064, 0xaf3d9518
+0, 112, 112, 1, 152064, 0x0836f2e8
+0, 113, 113, 1, 152064, 0xbf6dc578
+0, 114, 114, 1, 152064, 0x7b524d20
+0, 115, 115, 1, 152064, 0x9ef7677f
+0, 116, 116, 1, 152064, 0xeacf3f34
+0, 117, 117, 1, 152064, 0xfb4e3dbe
+0, 118, 118, 1, 152064, 0xb46e25cb
+0, 119, 119, 1, 152064, 0x363c1603
+0, 120, 120, 1, 152064, 0x263fc542
+0, 121, 121, 1, 152064, 0xf106e548
+0, 122, 122, 1, 152064, 0xde43c56a
+0, 123, 123, 1, 152064, 0xc2c4770a
+0, 124, 124, 1, 152064, 0x122fce19
+0, 125, 125, 1, 152064, 0x3ba01434
+0, 126, 126, 1, 152064, 0x0e8ce5ee
+0, 127, 127, 1, 152064, 0x6ceb82e1
+0, 128, 128, 1, 152064, 0xa23ee21c
+0, 129, 129, 1, 152064, 0xc6d960f9
+0, 130, 130, 1, 152064, 0x0de15258
+0, 131, 131, 1, 152064, 0x187b0333
+0, 132, 132, 1, 152064, 0x92e6582f
+0, 133, 133, 1, 152064, 0xb9586ce0
+0, 134, 134, 1, 152064, 0xefd803b5
+0, 135, 135, 1, 152064, 0x24eafb29
+0, 136, 136, 1, 152064, 0x20c73b14
+0, 137, 137, 1, 152064, 0xbd7ceaaa
+0, 138, 138, 1, 152064, 0x775216c8
+0, 139, 139, 1, 152064, 0xa08971c7
+0, 140, 140, 1, 152064, 0xef0ee865
+0, 141, 141, 1, 152064, 0x9ac61c2f
+0, 142, 142, 1, 152064, 0x52ae8ea9
+0, 143, 143, 1, 152064, 0x06571c14
+0, 144, 144, 1, 152064, 0x6e78ad33
+0, 145, 145, 1, 152064, 0xad01c627
+0, 146, 146, 1, 152064, 0xbfe074d3
+0, 147, 147, 1, 152064, 0x9357a183
+0, 148, 148, 1, 152064, 0x8de7767f
+0, 149, 149, 1, 152064, 0xa5e6e76e
+0, 150, 150, 1, 152064, 0xa6f646fe
+0, 151, 151, 1, 152064, 0x132e99f8
+0, 152, 152, 1, 152064, 0xb79f27de
+0, 153, 153, 1, 152064, 0x36d3cdcf
+0, 154, 154, 1, 152064, 0xdc938336
+0, 155, 155, 1, 152064, 0xacaa3a7f
+0, 156, 156, 1, 152064, 0xc61a37fd
+0, 157, 157, 1, 152064, 0x4fe1ddf0
+0, 158, 158, 1, 152064, 0xc0f7d660
+0, 159, 159, 1, 152064, 0xd72458ea
+0, 160, 160, 1, 152064, 0x6978d123
+0, 161, 161, 1, 152064, 0x64e60ccf
+0, 162, 162, 1, 152064, 0xaa07004c
+0, 163, 163, 1, 152064, 0x07cd1064
+0, 164, 164, 1, 152064, 0xa82320e5
+0, 165, 165, 1, 152064, 0xaedd8d30
+0, 166, 166, 1, 152064, 0x79b082ea
+0, 167, 167, 1, 152064, 0x9ed800ab
+0, 168, 168, 1, 152064, 0xde592bb4
+0, 169, 169, 1, 152064, 0xd966df88
+0, 170, 170, 1, 152064, 0xf921988a
+0, 171, 171, 1, 152064, 0x557ad9ae
+0, 172, 172, 1, 152064, 0xc3f31a9a
+0, 173, 173, 1, 152064, 0x65248561
+0, 174, 174, 1, 152064, 0x63df4aa6
+0, 175, 175, 1, 152064, 0x618da0a9
+0, 176, 176, 1, 152064, 0xe6f1c435
+0, 177, 177, 1, 152064, 0x9f90c38f
+0, 178, 178, 1, 152064, 0xd2853e14
+0, 179, 179, 1, 152064, 0x6e0268a9
+0, 180, 180, 1, 152064, 0x393712d1
+0, 181, 181, 1, 152064, 0x470da25f
+0, 182, 182, 1, 152064, 0xaf55cb3d
+0, 183, 183, 1, 152064, 0x6935b8b9
+0, 184, 184, 1, 152064, 0x5409a15f
+0, 185, 185, 1, 152064, 0x09073fee
+0, 186, 186, 1, 152064, 0xfb274e82
+0, 187, 187, 1, 152064, 0x1a770581
+0, 188, 188, 1, 152064, 0x17277d0d
+0, 189, 189, 1, 152064, 0xd4dcd982
+0, 190, 190, 1, 152064, 0x6b04eaf3
+0, 191, 191, 1, 152064, 0x8a3d822e
+0, 192, 192, 1, 152064, 0x1b971ec9
+0, 193, 193, 1, 152064, 0x14e0c0f6
+0, 194, 194, 1, 152064, 0x00667450
+0, 195, 195, 1, 152064, 0xd2385902
+0, 196, 196, 1, 152064, 0x905da6ab
+0, 197, 197, 1, 152064, 0xa3ffb18b
+0, 198, 198, 1, 152064, 0x10d48b19
+0, 199, 199, 1, 152064, 0xb2c7a3bd
+0, 200, 200, 1, 152064, 0x45593e96
+0, 201, 201, 1, 152064, 0x47a0b60c
+0, 202, 202, 1, 152064, 0x68c6d1b9
+0, 203, 203, 1, 152064, 0xbc881fcc
+0, 204, 204, 1, 152064, 0x422cc6f2
+0, 205, 205, 1, 152064, 0x9b686410
+0, 206, 206, 1, 152064, 0x35dc5e86
+0, 207, 207, 1, 152064, 0x247bedaa
+0, 208, 208, 1, 152064, 0x22b76fd1
+0, 209, 209, 1, 152064, 0x67cc7a75
+0, 210, 210, 1, 152064, 0xa197521e
+0, 211, 211, 1, 152064, 0x428c8662
+0, 212, 212, 1, 152064, 0x33dc2c73
+0, 213, 213, 1, 152064, 0x5b538903
+0, 214, 214, 1, 152064, 0x3c4176b6
+0, 215, 215, 1, 152064, 0x774364ba
+0, 216, 216, 1, 152064, 0xf237d03e
+0, 217, 217, 1, 152064, 0xac8746fb
+0, 218, 218, 1, 152064, 0x6b306a84
+0, 219, 219, 1, 152064, 0xa2ace513
+0, 220, 220, 1, 152064, 0x709c9be7
+0, 221, 221, 1, 152064, 0x2403f373
+0, 222, 222, 1, 152064, 0x147bf717
+0, 223, 223, 1, 152064, 0xe58964c8
+0, 224, 224, 1, 152064, 0xa0da36fc
+0, 225, 225, 1, 152064, 0x1ac1355c
+0, 226, 226, 1, 152064, 0x8a31c9f2
+0, 227, 227, 1, 152064, 0x42ba205c
+0, 228, 228, 1, 152064, 0xa11b3575
+0, 229, 229, 1, 152064, 0xcb35207c
+0, 230, 230, 1, 152064, 0x528f6189
+0, 231, 231, 1, 152064, 0x34f05bd7
+0, 232, 232, 1, 152064, 0x72317356
+0, 233, 233, 1, 152064, 0xaabd5028
+0, 234, 234, 1, 152064, 0x13dbeb7b
+0, 235, 235, 1, 152064, 0x62f1e8a8
+0, 236, 236, 1, 152064, 0x1723bfcd
+0, 237, 237, 1, 152064, 0x5c083c00
+0, 238, 238, 1, 152064, 0x52137894
+0, 239, 239, 1, 152064, 0xef1e082c
+0, 240, 240, 1, 152064, 0x664b3d53
+0, 241, 241, 1, 152064, 0x2eb9b296
+0, 242, 242, 1, 152064, 0xd0ca511e
+0, 243, 243, 1, 152064, 0x012d4724
+0, 244, 244, 1, 152064, 0xa847f5af
+0, 245, 245, 1, 152064, 0x483a2fde
+0, 246, 246, 1, 152064, 0xd1ab0257
+0, 247, 247, 1, 152064, 0x414692c7
+0, 248, 248, 1, 152064, 0x0b79df88
+0, 249, 249, 1, 152064, 0xdaa2c4a3
+0, 250, 250, 1, 152064, 0xd1b44500
+0, 251, 251, 1, 152064, 0xfd3d2cf3
+0, 252, 252, 1, 152064, 0xfdc0f748
+0, 253, 253, 1, 152064, 0xce762a2a
+0, 254, 254, 1, 152064, 0x08b63572
+0, 255, 255, 1, 152064, 0x5a46a38d
+0, 256, 256, 1, 152064, 0x03cee9c0
+0, 257, 257, 1, 152064, 0x9ee45473
+0, 258, 258, 1, 152064, 0x5a432386
+0, 259, 259, 1, 152064, 0x54c83d87
+0, 260, 260, 1, 152064, 0xc9caa1de
+0, 261, 261, 1, 152064, 0xa28367f1
+0, 262, 262, 1, 152064, 0x2607cdf1
+0, 263, 263, 1, 152064, 0x06baa8de
+0, 264, 264, 1, 152064, 0xf5346e32
+0, 265, 265, 1, 152064, 0x6d3e732b
+0, 266, 266, 1, 152064, 0x798c584b
+0, 267, 267, 1, 152064, 0x4076c948
+0, 268, 268, 1, 152064, 0x868cf63a
+0, 269, 269, 1, 152064, 0x23107ac5
+0, 270, 270, 1, 152064, 0x306f3fe2
+0, 271, 271, 1, 152064, 0xbd1d71d6
+0, 272, 272, 1, 152064, 0x1429545f
+0, 273, 273, 1, 152064, 0xaded29aa
+0, 274, 274, 1, 152064, 0x9b455a94
+0, 275, 275, 1, 152064, 0xb3774ce7
+0, 276, 276, 1, 152064, 0x92580986
+0, 277, 277, 1, 152064, 0x0eae2f95
+0, 278, 278, 1, 152064, 0x599208b2
+0, 279, 279, 1, 152064, 0x4804c04c
+0, 280, 280, 1, 152064, 0x5f730e8f
+0, 281, 281, 1, 152064, 0x3e501d1e
+0, 282, 282, 1, 152064, 0x32100740
+0, 283, 283, 1, 152064, 0x62226ff8
+0, 284, 284, 1, 152064, 0x7683b622
+0, 285, 285, 1, 152064, 0xc3e0aec1
+0, 286, 286, 1, 152064, 0xfac12608
+0, 287, 287, 1, 152064, 0xb21a5781
+0, 288, 288, 1, 152064, 0x8f1e4964
+0, 289, 289, 1, 152064, 0x0f62dd6e
+0, 290, 290, 1, 152064, 0xac062ac4
+0, 291, 291, 1, 152064, 0x1b320f7a
+0, 292, 292, 1, 152064, 0x346e7211
+0, 293, 293, 1, 152064, 0xe47592f3
+0, 294, 294, 1, 152064, 0xa3a7919c
+0, 295, 295, 1, 152064, 0xa3580fa6
+0, 296, 296, 1, 152064, 0xc73430c1
+0, 297, 297, 1, 152064, 0x994a2c18
+0, 298, 298, 1, 152064, 0x0b5d8d45
+0, 299, 299, 1, 152064, 0x9eed5109
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a
new file mode 100644
index 0000000000..0957654b9c
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3686400, 0x1f9b5bee
+0, 1, 1, 1, 3686400, 0x657c3609
+0, 2, 2, 1, 3686400, 0x75753934
+0, 3, 3, 1, 3686400, 0xf434d8e1
+0, 4, 4, 1, 3686400, 0x40679c77
+0, 5, 5, 1, 3686400, 0x5734d8db
+0, 6, 6, 1, 3686400, 0x4a3d8269
+0, 7, 7, 1, 3686400, 0xd20b6cf6
+0, 8, 8, 1, 3686400, 0x31956bca
+0, 9, 9, 1, 3686400, 0xd28d9758
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a
new file mode 100644
index 0000000000..79e69ebacc
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3686400, 0x8b3ff360
+0, 1, 1, 1, 3686400, 0x422dead1
+0, 2, 2, 1, 3686400, 0xbdd0e431
+0, 3, 3, 1, 3686400, 0x1e3cc216
+0, 4, 4, 1, 3686400, 0x1a80b718
+0, 5, 5, 1, 3686400, 0xc7e3c0a2
+0, 6, 6, 1, 3686400, 0xffc99142
+0, 7, 7, 1, 3686400, 0x8b3bdf1e
+0, 8, 8, 1, 3686400, 0xff1bccfb
+0, 9, 9, 1, 3686400, 0x781fc45b
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a
new file mode 100644
index 0000000000..fc4cc50a40
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3686400, 0x97c36ae3
+0, 1, 1, 1, 3686400, 0x6a0aa629
+0, 2, 2, 1, 3686400, 0xc658d722
+0, 3, 3, 1, 3686400, 0x713bc774
+0, 4, 4, 1, 3686400, 0x8d0b3afe
+0, 5, 5, 1, 3686400, 0x62bf24cd
+0, 6, 6, 1, 3686400, 0x77e80436
+0, 7, 7, 1, 3686400, 0x4f258e07
+0, 8, 8, 1, 3686400, 0x8426bc53
+0, 9, 9, 1, 3686400, 0xd33b58c8
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a
new file mode 100644
index 0000000000..0aae9fedcb
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 8294400, 0xf50992f3
+0, 1, 1, 1, 8294400, 0xd34cdf98
+0, 2, 2, 1, 8294400, 0x76bced00
+0, 3, 3, 1, 8294400, 0xf9ffd9b1
+0, 4, 4, 1, 8294400, 0x303231aa
+0, 5, 5, 1, 8294400, 0x0ca57c6a
+0, 6, 6, 1, 8294400, 0xaa056bd5
+0, 7, 7, 1, 8294400, 0x785c9a12
+0, 8, 8, 1, 8294400, 0xe535750e
+0, 9, 9, 1, 8294400, 0x78fd76bb
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a
new file mode 100644
index 0000000000..c74483cbb2
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 8294400, 0x96d051a1
+0, 1, 1, 1, 8294400, 0xf3c2974e
+0, 2, 2, 1, 8294400, 0xb18f3ed0
+0, 3, 3, 1, 8294400, 0xb5ba9998
+0, 4, 4, 1, 8294400, 0x96327a34
+0, 5, 5, 1, 8294400, 0xe24d7b61
+0, 6, 6, 1, 8294400, 0xc45d5a16
+0, 7, 7, 1, 8294400, 0x13b4a537
+0, 8, 8, 1, 8294400, 0xa81dae90
+0, 9, 9, 1, 8294400, 0x2820bbe9
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a
new file mode 100644
index 0000000000..26d41d4cf7
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 8294400, 0x1b2f1079
+0, 1, 1, 1, 8294400, 0x6646f91c
+0, 2, 2, 1, 8294400, 0x17dc9f51
+0, 3, 3, 1, 8294400, 0x4aad9b3a
+0, 4, 4, 1, 8294400, 0x8a422d34
+0, 5, 5, 1, 8294400, 0x8fd76d87
+0, 6, 6, 1, 8294400, 0xc7c75f18
+0, 7, 7, 1, 8294400, 0x4a1c2643
+0, 8, 8, 1, 8294400, 0xfe225709
+0, 9, 9, 1, 8294400, 0x032ad2e5
diff --git a/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a b/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a
new file mode 100644
index 0000000000..3f9bfed903
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 8294400, 0xaa37ceea
+0, 1, 1, 1, 8294400, 0xa7546d5c
+0, 2, 2, 1, 8294400, 0xf2abaace
+0, 3, 3, 1, 8294400, 0x36f4d47e
+0, 4, 4, 1, 8294400, 0x1cdf917d
+0, 5, 5, 1, 8294400, 0xa9377ba3
+0, 6, 6, 1, 8294400, 0x21c9db51
+0, 7, 7, 1, 8294400, 0x07d7936e
+0, 8, 8, 1, 8294400, 0x7878ab94
+0, 9, 9, 1, 8294400, 0x77e40921
diff --git a/tests/ref/fate/h264-conformance-mr3_tandberg_b b/tests/ref/fate/h264-conformance-mr3_tandberg_b
index 6e0c83ac89..ee8014ef36 100644
--- a/tests/ref/fate/h264-conformance-mr3_tandberg_b
+++ b/tests/ref/fate/h264-conformance-mr3_tandberg_b
@@ -8,294 +8,294 @@
0, 6, 6, 1, 38016, 0x7cc17319
0, 7, 7, 1, 38016, 0x0f7e8cab
0, 8, 8, 1, 38016, 0x1876abee
-0, 10, 10, 1, 38016, 0xda748c2f
-0, 11, 11, 1, 38016, 0x7b4dbff0
-0, 12, 12, 1, 38016, 0xd4a1b24a
-0, 13, 13, 1, 38016, 0x714cb4cc
-0, 14, 14, 1, 38016, 0x2c6d80f0
-0, 15, 15, 1, 38016, 0x92266151
-0, 16, 16, 1, 38016, 0x6b766a23
-0, 17, 17, 1, 38016, 0xb24f7efe
-0, 18, 18, 1, 38016, 0x8410838e
-0, 19, 19, 1, 38016, 0x67fe872a
-0, 20, 20, 1, 38016, 0x55b49d36
-0, 21, 21, 1, 38016, 0x7a1c9c41
-0, 22, 22, 1, 38016, 0xb4818e0e
-0, 23, 23, 1, 38016, 0x25f6683c
-0, 24, 24, 1, 38016, 0xe4d141a4
-0, 25, 25, 1, 38016, 0x808216ad
-0, 26, 26, 1, 38016, 0x2acf0baf
-0, 27, 27, 1, 38016, 0xf3de13c4
-0, 28, 28, 1, 38016, 0x5f412187
-0, 29, 29, 1, 38016, 0xb31a340a
-0, 30, 30, 1, 38016, 0x019d42d1
-0, 31, 31, 1, 38016, 0xeeb94b9b
-0, 32, 32, 1, 38016, 0xef55472e
-0, 33, 33, 1, 38016, 0xdb5e3697
-0, 34, 34, 1, 38016, 0x8565303e
-0, 35, 35, 1, 38016, 0x5f9c2c1b
-0, 36, 36, 1, 38016, 0xeb3d27f4
-0, 37, 37, 1, 38016, 0x9a43282d
-0, 38, 38, 1, 38016, 0xe04720c6
-0, 39, 39, 1, 38016, 0x19cc0eba
-0, 40, 40, 1, 38016, 0x218efeb6
-0, 41, 41, 1, 38016, 0x7733f491
-0, 42, 42, 1, 38016, 0x7f3bede9
-0, 43, 43, 1, 38016, 0x49c5ec0d
-0, 44, 44, 1, 38016, 0x803cf19e
-0, 45, 45, 1, 38016, 0x31de0d3f
-0, 46, 46, 1, 38016, 0xa7e30426
-0, 47, 47, 1, 38016, 0xba37f068
-0, 48, 48, 1, 38016, 0x2842bdf8
-0, 49, 49, 1, 38016, 0x76df97dc
-0, 50, 50, 1, 38016, 0xf3246d26
-0, 51, 51, 1, 38016, 0x0a384d72
-0, 52, 52, 1, 38016, 0x40964f41
-0, 53, 53, 1, 38016, 0x46364324
-0, 54, 54, 1, 38016, 0x7cbf3db4
-0, 55, 55, 1, 38016, 0x7a223bec
-0, 56, 56, 1, 38016, 0x458651c1
-0, 57, 57, 1, 38016, 0xb82d7e3c
-0, 58, 58, 1, 38016, 0x0f50a55d
-0, 59, 59, 1, 38016, 0xc306cae4
-0, 60, 60, 1, 38016, 0x9d6ddfcb
-0, 61, 61, 1, 38016, 0xb602e8e9
-0, 62, 62, 1, 38016, 0xbf0ae386
-0, 63, 63, 1, 38016, 0x0a8bd46e
-0, 64, 64, 1, 38016, 0xd437c5c1
-0, 65, 65, 1, 38016, 0xd61d9959
-0, 66, 66, 1, 38016, 0x70639b56
-0, 67, 67, 1, 38016, 0x36fd407b
-0, 68, 68, 1, 38016, 0x58ce3ddd
-0, 69, 69, 1, 38016, 0x86cc1d8c
-0, 70, 70, 1, 38016, 0xee422dc2
-0, 71, 71, 1, 38016, 0xab475639
-0, 72, 72, 1, 38016, 0xc1327ad8
-0, 73, 73, 1, 38016, 0x63d196d4
-0, 74, 74, 1, 38016, 0x1aba8ebd
-0, 75, 75, 1, 38016, 0x74a269ac
-0, 76, 76, 1, 38016, 0x267f3563
-0, 77, 77, 1, 38016, 0xa18ff180
-0, 78, 78, 1, 38016, 0x70c9c9fd
-0, 79, 79, 1, 38016, 0xa6c59f9c
-0, 80, 80, 1, 38016, 0xd7cd8927
-0, 81, 81, 1, 38016, 0xd30b7345
-0, 82, 82, 1, 38016, 0x679a4dda
-0, 83, 83, 1, 38016, 0xeb0562de
-0, 84, 84, 1, 38016, 0xdd7d6cdb
-0, 85, 85, 1, 38016, 0xd6e26b73
-0, 86, 86, 1, 38016, 0xa65a860f
-0, 87, 87, 1, 38016, 0xae95c71e
-0, 88, 88, 1, 38016, 0x1a89ca86
-0, 89, 89, 1, 38016, 0xa33ecee6
-0, 90, 90, 1, 38016, 0x821da6cb
-0, 91, 91, 1, 38016, 0xf0e1612f
-0, 92, 92, 1, 38016, 0x67b8516b
-0, 93, 93, 1, 38016, 0x62f965bc
-0, 94, 94, 1, 38016, 0xd1917aa6
-0, 95, 95, 1, 38016, 0xe72db54d
-0, 96, 96, 1, 38016, 0x9b64e721
-0, 97, 97, 1, 38016, 0xa819efda
-0, 98, 98, 1, 38016, 0xeacfdacb
-0, 99, 99, 1, 38016, 0x52f235e1
-0, 100, 100, 1, 38016, 0x2b512cb8
-0, 101, 101, 1, 38016, 0xaac73fb3
-0, 102, 102, 1, 38016, 0x7d2d504f
-0, 103, 103, 1, 38016, 0x396d503a
-0, 104, 104, 1, 38016, 0x97905235
-0, 105, 105, 1, 38016, 0xf0056693
-0, 106, 106, 1, 38016, 0x728a6a9e
-0, 107, 107, 1, 38016, 0x0eed7824
-0, 108, 108, 1, 38016, 0x59506237
-0, 109, 109, 1, 38016, 0xd4304c93
-0, 110, 110, 1, 38016, 0x7e663ee8
-0, 111, 111, 1, 38016, 0x0ebc2d11
-0, 112, 112, 1, 38016, 0x52db2112
-0, 113, 113, 1, 38016, 0x74aa1815
-0, 114, 114, 1, 38016, 0x57a60dc6
-0, 115, 115, 1, 38016, 0x86e9fa32
-0, 116, 116, 1, 38016, 0x67e8ff09
-0, 117, 117, 1, 38016, 0x26e8f7ea
-0, 118, 118, 1, 38016, 0x183dff56
-0, 119, 119, 1, 38016, 0xa470af8d
-0, 120, 120, 1, 38016, 0xe017d594
-0, 121, 121, 1, 38016, 0xb899d48b
-0, 122, 122, 1, 38016, 0x0d3bc5f7
-0, 123, 123, 1, 38016, 0xd68bbb0d
-0, 124, 124, 1, 38016, 0x8bf5b4cb
-0, 125, 125, 1, 38016, 0x6bfcaa47
-0, 126, 126, 1, 38016, 0x29a9b01b
-0, 127, 127, 1, 38016, 0xcdedbdb7
-0, 128, 128, 1, 38016, 0xdb5ad9c3
-0, 129, 129, 1, 38016, 0x468aeef6
-0, 130, 130, 1, 38016, 0xdc2b143e
-0, 131, 131, 1, 38016, 0x6776277c
-0, 132, 132, 1, 38016, 0xb78d5294
-0, 133, 133, 1, 38016, 0x1dfb63ab
-0, 134, 134, 1, 38016, 0xbd1f99bc
-0, 135, 135, 1, 38016, 0xde16b89a
-0, 136, 136, 1, 38016, 0xbf46edca
-0, 137, 137, 1, 38016, 0x6306e8c4
-0, 138, 138, 1, 38016, 0x7b09d224
-0, 139, 139, 1, 38016, 0xfea1aff6
-0, 140, 140, 1, 38016, 0x183686b0
-0, 141, 141, 1, 38016, 0x665a61ff
-0, 142, 142, 1, 38016, 0xc8af42d1
-0, 143, 143, 1, 38016, 0xe2326bc1
-0, 144, 144, 1, 38016, 0x56dbde82
-0, 145, 145, 1, 38016, 0xa0254f97
-0, 146, 146, 1, 38016, 0x3b74a0b4
-0, 147, 147, 1, 38016, 0x9aee9b7f
-0, 148, 148, 1, 38016, 0xd94b6133
-0, 149, 149, 1, 38016, 0x5819f795
-0, 150, 150, 1, 38016, 0xc45a8c02
-0, 151, 151, 1, 38016, 0x2f9204a0
-0, 152, 152, 1, 38016, 0xbe09e051
-0, 153, 153, 1, 38016, 0xb542badd
-0, 154, 154, 1, 38016, 0x23bd9e00
-0, 155, 155, 1, 38016, 0x4f338d3d
-0, 156, 156, 1, 38016, 0x8c91e8f3
-0, 157, 157, 1, 38016, 0xa7347d57
-0, 158, 158, 1, 38016, 0x6d91de4d
-0, 159, 159, 1, 38016, 0x3443d936
-0, 160, 160, 1, 38016, 0x9d25b4e2
-0, 161, 161, 1, 38016, 0xd93cd4b3
-0, 162, 162, 1, 38016, 0xa1c9e9a0
-0, 163, 163, 1, 38016, 0x1482f220
-0, 164, 164, 1, 38016, 0x1295f270
-0, 165, 165, 1, 38016, 0x399ae9da
-0, 166, 166, 1, 38016, 0x85dcdf28
-0, 167, 167, 1, 38016, 0x4207b9e5
-0, 168, 168, 1, 38016, 0xad1c9d75
-0, 169, 169, 1, 38016, 0x4a266c14
-0, 170, 170, 1, 38016, 0x3afc4508
-0, 171, 171, 1, 38016, 0x2b1b2385
-0, 172, 172, 1, 38016, 0x738f005f
-0, 173, 173, 1, 38016, 0xfec3d833
-0, 174, 174, 1, 38016, 0x3f7f6ae9
-0, 175, 175, 1, 38016, 0xd8551823
-0, 176, 176, 1, 38016, 0x6df03570
-0, 177, 177, 1, 38016, 0x767c3054
-0, 178, 178, 1, 38016, 0x89bd342c
-0, 179, 179, 1, 38016, 0x77ba806c
-0, 180, 180, 1, 38016, 0x1c98005c
-0, 181, 181, 1, 38016, 0xa13ce2a3
-0, 182, 182, 1, 38016, 0x1be59915
-0, 183, 183, 1, 38016, 0x279c6027
-0, 184, 184, 1, 38016, 0x96ac11a2
-0, 185, 185, 1, 38016, 0x3ae95131
-0, 186, 186, 1, 38016, 0xae19f7fe
-0, 187, 187, 1, 38016, 0xcde4efe6
-0, 188, 188, 1, 38016, 0x5ecc3f7a
-0, 189, 189, 1, 38016, 0x79645152
-0, 190, 190, 1, 38016, 0x1ee2e89f
-0, 191, 191, 1, 38016, 0x91d34bb4
-0, 192, 192, 1, 38016, 0xf019d464
-0, 193, 193, 1, 38016, 0x8eb07205
-0, 194, 194, 1, 38016, 0x5399bb5b
-0, 195, 195, 1, 38016, 0x61f0c77a
-0, 196, 196, 1, 38016, 0xb2bd8726
-0, 197, 197, 1, 38016, 0x47b89243
-0, 198, 198, 1, 38016, 0xebfe4d76
-0, 199, 199, 1, 38016, 0xe8f87d91
-0, 200, 200, 1, 38016, 0x5e9fb239
-0, 201, 201, 1, 38016, 0x357ca1f8
-0, 202, 202, 1, 38016, 0x757d2e02
-0, 203, 203, 1, 38016, 0x40672e7c
-0, 204, 204, 1, 38016, 0xd966abca
-0, 205, 205, 1, 38016, 0xe98d0d47
-0, 206, 206, 1, 38016, 0x341babf5
-0, 207, 207, 1, 38016, 0xd12d5a0c
-0, 208, 208, 1, 38016, 0xea2f99ab
-0, 209, 209, 1, 38016, 0x14bce88e
-0, 210, 210, 1, 38016, 0xe4bda9e8
-0, 211, 211, 1, 38016, 0x2c57ec89
-0, 212, 212, 1, 38016, 0x28bbb83e
-0, 213, 213, 1, 38016, 0xf8444b54
-0, 214, 214, 1, 38016, 0x3aba03cd
-0, 215, 215, 1, 38016, 0x373daa20
-0, 216, 216, 1, 38016, 0x69586597
-0, 217, 217, 1, 38016, 0xc0c70d53
-0, 218, 218, 1, 38016, 0x76a5df5a
-0, 219, 219, 1, 38016, 0x1afde8f0
-0, 220, 220, 1, 38016, 0x9638285a
-0, 221, 221, 1, 38016, 0x9f0686c0
-0, 222, 222, 1, 38016, 0xc65b2238
-0, 223, 223, 1, 38016, 0x0d61b610
-0, 224, 224, 1, 38016, 0x78e14e1f
-0, 225, 225, 1, 38016, 0xcf80ac4a
-0, 226, 226, 1, 38016, 0xe094083d
-0, 227, 227, 1, 38016, 0xee5e612e
-0, 228, 228, 1, 38016, 0x51cdad9d
-0, 229, 229, 1, 38016, 0xae41100e
-0, 230, 230, 1, 38016, 0x77558f58
-0, 231, 231, 1, 38016, 0xb9503b95
-0, 232, 232, 1, 38016, 0xb71dffeb
-0, 233, 233, 1, 38016, 0x1872e3e6
-0, 234, 234, 1, 38016, 0x29c3d252
-0, 235, 235, 1, 38016, 0x1c77c6ec
-0, 236, 236, 1, 38016, 0x26feb194
-0, 237, 237, 1, 38016, 0x3307c3c4
-0, 238, 238, 1, 38016, 0x8e5a8080
-0, 239, 239, 1, 38016, 0x933472f7
-0, 240, 240, 1, 38016, 0xd4768d84
-0, 241, 241, 1, 38016, 0x3324485f
-0, 242, 242, 1, 38016, 0xd50af078
-0, 243, 243, 1, 38016, 0x53820752
-0, 244, 244, 1, 38016, 0xbe7f1c47
-0, 245, 245, 1, 38016, 0xe43d3a34
-0, 246, 246, 1, 38016, 0x57194b82
-0, 247, 247, 1, 38016, 0x68a052ed
-0, 248, 248, 1, 38016, 0x5c898052
-0, 249, 249, 1, 38016, 0x7104a6ad
-0, 250, 250, 1, 38016, 0x1676b5e8
-0, 251, 251, 1, 38016, 0xe1cfd375
-0, 252, 252, 1, 38016, 0x16fede04
-0, 253, 253, 1, 38016, 0xca49dd4a
-0, 254, 254, 1, 38016, 0x7b98d9d1
-0, 255, 255, 1, 38016, 0x4020d210
-0, 256, 256, 1, 38016, 0x62c5d1e4
-0, 257, 257, 1, 38016, 0x756abdb4
-0, 258, 258, 1, 38016, 0x558fb00f
-0, 259, 259, 1, 38016, 0x4ab0b1f1
-0, 260, 260, 1, 38016, 0x7c9fb0c2
-0, 261, 261, 1, 38016, 0xcecfbdd0
-0, 262, 262, 1, 38016, 0x70e6d174
-0, 263, 263, 1, 38016, 0x83d7ddde
-0, 264, 264, 1, 38016, 0xbbcde2d9
-0, 265, 265, 1, 38016, 0xc89eeaef
-0, 266, 266, 1, 38016, 0x8565e15c
-0, 267, 267, 1, 38016, 0x28e0db24
-0, 268, 268, 1, 38016, 0x1d9dd334
-0, 269, 269, 1, 38016, 0xce02c452
-0, 270, 270, 1, 38016, 0xe29dbd0c
-0, 271, 271, 1, 38016, 0x4aa3b638
-0, 272, 272, 1, 38016, 0x5533c135
-0, 273, 273, 1, 38016, 0x6c57b65f
-0, 274, 274, 1, 38016, 0x23d3b851
-0, 275, 275, 1, 38016, 0xd8cbb960
-0, 276, 276, 1, 38016, 0x02edb916
-0, 277, 277, 1, 38016, 0xa622bd42
-0, 278, 278, 1, 38016, 0x4ba5be1c
-0, 279, 279, 1, 38016, 0xe69bb625
-0, 280, 280, 1, 38016, 0xbca5b292
-0, 281, 281, 1, 38016, 0xde38b1c8
-0, 282, 282, 1, 38016, 0xe9e3b617
-0, 283, 283, 1, 38016, 0x216cc574
-0, 284, 284, 1, 38016, 0x3780c5ad
-0, 285, 285, 1, 38016, 0x5531e3f9
-0, 286, 286, 1, 38016, 0xe2c5f5d4
-0, 287, 287, 1, 38016, 0x24cefc6e
-0, 288, 288, 1, 38016, 0xa3ce003d
-0, 289, 289, 1, 38016, 0x42d01c9e
-0, 290, 290, 1, 38016, 0xbfc13689
-0, 291, 291, 1, 38016, 0x122647a9
-0, 292, 292, 1, 38016, 0xe45254da
-0, 293, 293, 1, 38016, 0xad955b0c
-0, 294, 294, 1, 38016, 0x4b086abb
-0, 295, 295, 1, 38016, 0xd4857b8c
-0, 296, 296, 1, 38016, 0xa71594ce
-0, 297, 297, 1, 38016, 0x04e4a73d
-0, 298, 298, 1, 38016, 0x295abf63
-0, 299, 299, 1, 38016, 0xbe4ed5dd
-0, 300, 300, 1, 38016, 0x087bcf64
+0, 9, 9, 1, 38016, 0xda748c2f
+0, 10, 10, 1, 38016, 0x7b4dbff0
+0, 11, 11, 1, 38016, 0xd4a1b24a
+0, 12, 12, 1, 38016, 0x714cb4cc
+0, 13, 13, 1, 38016, 0x2c6d80f0
+0, 14, 14, 1, 38016, 0x92266151
+0, 15, 15, 1, 38016, 0x6b766a23
+0, 16, 16, 1, 38016, 0xb24f7efe
+0, 17, 17, 1, 38016, 0x8410838e
+0, 18, 18, 1, 38016, 0x67fe872a
+0, 19, 19, 1, 38016, 0x55b49d36
+0, 20, 20, 1, 38016, 0x7a1c9c41
+0, 21, 21, 1, 38016, 0xb4818e0e
+0, 22, 22, 1, 38016, 0x25f6683c
+0, 23, 23, 1, 38016, 0xe4d141a4
+0, 24, 24, 1, 38016, 0x808216ad
+0, 25, 25, 1, 38016, 0x2acf0baf
+0, 26, 26, 1, 38016, 0xf3de13c4
+0, 27, 27, 1, 38016, 0x5f412187
+0, 28, 28, 1, 38016, 0xb31a340a
+0, 29, 29, 1, 38016, 0x019d42d1
+0, 30, 30, 1, 38016, 0xeeb94b9b
+0, 31, 31, 1, 38016, 0xef55472e
+0, 32, 32, 1, 38016, 0xdb5e3697
+0, 33, 33, 1, 38016, 0x8565303e
+0, 34, 34, 1, 38016, 0x5f9c2c1b
+0, 35, 35, 1, 38016, 0xeb3d27f4
+0, 36, 36, 1, 38016, 0x9a43282d
+0, 37, 37, 1, 38016, 0xe04720c6
+0, 38, 38, 1, 38016, 0x19cc0eba
+0, 39, 39, 1, 38016, 0x218efeb6
+0, 40, 40, 1, 38016, 0x7733f491
+0, 41, 41, 1, 38016, 0x7f3bede9
+0, 42, 42, 1, 38016, 0x49c5ec0d
+0, 43, 43, 1, 38016, 0x803cf19e
+0, 44, 44, 1, 38016, 0x31de0d3f
+0, 45, 45, 1, 38016, 0xa7e30426
+0, 46, 46, 1, 38016, 0xba37f068
+0, 47, 47, 1, 38016, 0x2842bdf8
+0, 48, 48, 1, 38016, 0x76df97dc
+0, 49, 49, 1, 38016, 0xf3246d26
+0, 50, 50, 1, 38016, 0x0a384d72
+0, 51, 51, 1, 38016, 0x40964f41
+0, 52, 52, 1, 38016, 0x46364324
+0, 53, 53, 1, 38016, 0x7cbf3db4
+0, 54, 54, 1, 38016, 0x7a223bec
+0, 55, 55, 1, 38016, 0x458651c1
+0, 56, 56, 1, 38016, 0xb82d7e3c
+0, 57, 57, 1, 38016, 0x0f50a55d
+0, 58, 58, 1, 38016, 0xc306cae4
+0, 59, 59, 1, 38016, 0x9d6ddfcb
+0, 60, 60, 1, 38016, 0xb602e8e9
+0, 61, 61, 1, 38016, 0xbf0ae386
+0, 62, 62, 1, 38016, 0x0a8bd46e
+0, 63, 63, 1, 38016, 0xd437c5c1
+0, 64, 64, 1, 38016, 0xd61d9959
+0, 65, 65, 1, 38016, 0x70639b56
+0, 66, 66, 1, 38016, 0x36fd407b
+0, 67, 67, 1, 38016, 0x58ce3ddd
+0, 68, 68, 1, 38016, 0x86cc1d8c
+0, 69, 69, 1, 38016, 0xee422dc2
+0, 70, 70, 1, 38016, 0xab475639
+0, 71, 71, 1, 38016, 0xc1327ad8
+0, 72, 72, 1, 38016, 0x63d196d4
+0, 73, 73, 1, 38016, 0x1aba8ebd
+0, 74, 74, 1, 38016, 0x74a269ac
+0, 75, 75, 1, 38016, 0x267f3563
+0, 76, 76, 1, 38016, 0xa18ff180
+0, 77, 77, 1, 38016, 0x70c9c9fd
+0, 78, 78, 1, 38016, 0xa6c59f9c
+0, 79, 79, 1, 38016, 0xd7cd8927
+0, 80, 80, 1, 38016, 0xd30b7345
+0, 81, 81, 1, 38016, 0x679a4dda
+0, 82, 82, 1, 38016, 0xeb0562de
+0, 83, 83, 1, 38016, 0xdd7d6cdb
+0, 84, 84, 1, 38016, 0xd6e26b73
+0, 85, 85, 1, 38016, 0xa65a860f
+0, 86, 86, 1, 38016, 0xae95c71e
+0, 87, 87, 1, 38016, 0x1a89ca86
+0, 88, 88, 1, 38016, 0xa33ecee6
+0, 89, 89, 1, 38016, 0x821da6cb
+0, 90, 90, 1, 38016, 0xf0e1612f
+0, 91, 91, 1, 38016, 0x67b8516b
+0, 92, 92, 1, 38016, 0x62f965bc
+0, 93, 93, 1, 38016, 0xd1917aa6
+0, 94, 94, 1, 38016, 0xe72db54d
+0, 95, 95, 1, 38016, 0x9b64e721
+0, 96, 96, 1, 38016, 0xa819efda
+0, 97, 97, 1, 38016, 0xeacfdacb
+0, 98, 98, 1, 38016, 0x52f235e1
+0, 99, 99, 1, 38016, 0x2b512cb8
+0, 100, 100, 1, 38016, 0xaac73fb3
+0, 101, 101, 1, 38016, 0x7d2d504f
+0, 102, 102, 1, 38016, 0x396d503a
+0, 103, 103, 1, 38016, 0x97905235
+0, 104, 104, 1, 38016, 0xf0056693
+0, 105, 105, 1, 38016, 0x728a6a9e
+0, 106, 106, 1, 38016, 0x0eed7824
+0, 107, 107, 1, 38016, 0x59506237
+0, 108, 108, 1, 38016, 0xd4304c93
+0, 109, 109, 1, 38016, 0x7e663ee8
+0, 110, 110, 1, 38016, 0x0ebc2d11
+0, 111, 111, 1, 38016, 0x52db2112
+0, 112, 112, 1, 38016, 0x74aa1815
+0, 113, 113, 1, 38016, 0x57a60dc6
+0, 114, 114, 1, 38016, 0x86e9fa32
+0, 115, 115, 1, 38016, 0x67e8ff09
+0, 116, 116, 1, 38016, 0x26e8f7ea
+0, 117, 117, 1, 38016, 0x183dff56
+0, 118, 118, 1, 38016, 0xa470af8d
+0, 119, 119, 1, 38016, 0xe017d594
+0, 120, 120, 1, 38016, 0xb899d48b
+0, 121, 121, 1, 38016, 0x0d3bc5f7
+0, 122, 122, 1, 38016, 0xd68bbb0d
+0, 123, 123, 1, 38016, 0x8bf5b4cb
+0, 124, 124, 1, 38016, 0x6bfcaa47
+0, 125, 125, 1, 38016, 0x29a9b01b
+0, 126, 126, 1, 38016, 0xcdedbdb7
+0, 127, 127, 1, 38016, 0xdb5ad9c3
+0, 128, 128, 1, 38016, 0x468aeef6
+0, 129, 129, 1, 38016, 0xdc2b143e
+0, 130, 130, 1, 38016, 0x6776277c
+0, 131, 131, 1, 38016, 0xb78d5294
+0, 132, 132, 1, 38016, 0x1dfb63ab
+0, 133, 133, 1, 38016, 0xbd1f99bc
+0, 134, 134, 1, 38016, 0xde16b89a
+0, 135, 135, 1, 38016, 0xbf46edca
+0, 136, 136, 1, 38016, 0x6306e8c4
+0, 137, 137, 1, 38016, 0x7b09d224
+0, 138, 138, 1, 38016, 0xfea1aff6
+0, 139, 139, 1, 38016, 0x183686b0
+0, 140, 140, 1, 38016, 0x665a61ff
+0, 141, 141, 1, 38016, 0xc8af42d1
+0, 142, 142, 1, 38016, 0xe2326bc1
+0, 143, 143, 1, 38016, 0x56dbde82
+0, 144, 144, 1, 38016, 0xa0254f97
+0, 145, 145, 1, 38016, 0x3b74a0b4
+0, 146, 146, 1, 38016, 0x9aee9b7f
+0, 147, 147, 1, 38016, 0xd94b6133
+0, 148, 148, 1, 38016, 0x5819f795
+0, 149, 149, 1, 38016, 0xc45a8c02
+0, 150, 150, 1, 38016, 0x2f9204a0
+0, 151, 151, 1, 38016, 0xbe09e051
+0, 152, 152, 1, 38016, 0xb542badd
+0, 153, 153, 1, 38016, 0x23bd9e00
+0, 154, 154, 1, 38016, 0x4f338d3d
+0, 155, 155, 1, 38016, 0x8c91e8f3
+0, 156, 156, 1, 38016, 0xa7347d57
+0, 157, 157, 1, 38016, 0x6d91de4d
+0, 158, 158, 1, 38016, 0x3443d936
+0, 159, 159, 1, 38016, 0x9d25b4e2
+0, 160, 160, 1, 38016, 0xd93cd4b3
+0, 161, 161, 1, 38016, 0xa1c9e9a0
+0, 162, 162, 1, 38016, 0x1482f220
+0, 163, 163, 1, 38016, 0x1295f270
+0, 164, 164, 1, 38016, 0x399ae9da
+0, 165, 165, 1, 38016, 0x85dcdf28
+0, 166, 166, 1, 38016, 0x4207b9e5
+0, 167, 167, 1, 38016, 0xad1c9d75
+0, 168, 168, 1, 38016, 0x4a266c14
+0, 169, 169, 1, 38016, 0x3afc4508
+0, 170, 170, 1, 38016, 0x2b1b2385
+0, 171, 171, 1, 38016, 0x738f005f
+0, 172, 172, 1, 38016, 0xfec3d833
+0, 173, 173, 1, 38016, 0x3f7f6ae9
+0, 174, 174, 1, 38016, 0xd8551823
+0, 175, 175, 1, 38016, 0x6df03570
+0, 176, 176, 1, 38016, 0x767c3054
+0, 177, 177, 1, 38016, 0x89bd342c
+0, 178, 178, 1, 38016, 0x77ba806c
+0, 179, 179, 1, 38016, 0x1c98005c
+0, 180, 180, 1, 38016, 0xa13ce2a3
+0, 181, 181, 1, 38016, 0x1be59915
+0, 182, 182, 1, 38016, 0x279c6027
+0, 183, 183, 1, 38016, 0x96ac11a2
+0, 184, 184, 1, 38016, 0x3ae95131
+0, 185, 185, 1, 38016, 0xae19f7fe
+0, 186, 186, 1, 38016, 0xcde4efe6
+0, 187, 187, 1, 38016, 0x5ecc3f7a
+0, 188, 188, 1, 38016, 0x79645152
+0, 189, 189, 1, 38016, 0x1ee2e89f
+0, 190, 190, 1, 38016, 0x91d34bb4
+0, 191, 191, 1, 38016, 0xf019d464
+0, 192, 192, 1, 38016, 0x8eb07205
+0, 193, 193, 1, 38016, 0x5399bb5b
+0, 194, 194, 1, 38016, 0x61f0c77a
+0, 195, 195, 1, 38016, 0xb2bd8726
+0, 196, 196, 1, 38016, 0x47b89243
+0, 197, 197, 1, 38016, 0xebfe4d76
+0, 198, 198, 1, 38016, 0xe8f87d91
+0, 199, 199, 1, 38016, 0x5e9fb239
+0, 200, 200, 1, 38016, 0x357ca1f8
+0, 201, 201, 1, 38016, 0x757d2e02
+0, 202, 202, 1, 38016, 0x40672e7c
+0, 203, 203, 1, 38016, 0xd966abca
+0, 204, 204, 1, 38016, 0xe98d0d47
+0, 205, 205, 1, 38016, 0x341babf5
+0, 206, 206, 1, 38016, 0xd12d5a0c
+0, 207, 207, 1, 38016, 0xea2f99ab
+0, 208, 208, 1, 38016, 0x14bce88e
+0, 209, 209, 1, 38016, 0xe4bda9e8
+0, 210, 210, 1, 38016, 0x2c57ec89
+0, 211, 211, 1, 38016, 0x28bbb83e
+0, 212, 212, 1, 38016, 0xf8444b54
+0, 213, 213, 1, 38016, 0x3aba03cd
+0, 214, 214, 1, 38016, 0x373daa20
+0, 215, 215, 1, 38016, 0x69586597
+0, 216, 216, 1, 38016, 0xc0c70d53
+0, 217, 217, 1, 38016, 0x76a5df5a
+0, 218, 218, 1, 38016, 0x1afde8f0
+0, 219, 219, 1, 38016, 0x9638285a
+0, 220, 220, 1, 38016, 0x9f0686c0
+0, 221, 221, 1, 38016, 0xc65b2238
+0, 222, 222, 1, 38016, 0x0d61b610
+0, 223, 223, 1, 38016, 0x78e14e1f
+0, 224, 224, 1, 38016, 0xcf80ac4a
+0, 225, 225, 1, 38016, 0xe094083d
+0, 226, 226, 1, 38016, 0xee5e612e
+0, 227, 227, 1, 38016, 0x51cdad9d
+0, 228, 228, 1, 38016, 0xae41100e
+0, 229, 229, 1, 38016, 0x77558f58
+0, 230, 230, 1, 38016, 0xb9503b95
+0, 231, 231, 1, 38016, 0xb71dffeb
+0, 232, 232, 1, 38016, 0x1872e3e6
+0, 233, 233, 1, 38016, 0x29c3d252
+0, 234, 234, 1, 38016, 0x1c77c6ec
+0, 235, 235, 1, 38016, 0x26feb194
+0, 236, 236, 1, 38016, 0x3307c3c4
+0, 237, 237, 1, 38016, 0x8e5a8080
+0, 238, 238, 1, 38016, 0x933472f7
+0, 239, 239, 1, 38016, 0xd4768d84
+0, 240, 240, 1, 38016, 0x3324485f
+0, 241, 241, 1, 38016, 0xd50af078
+0, 242, 242, 1, 38016, 0x53820752
+0, 243, 243, 1, 38016, 0xbe7f1c47
+0, 244, 244, 1, 38016, 0xe43d3a34
+0, 245, 245, 1, 38016, 0x57194b82
+0, 246, 246, 1, 38016, 0x68a052ed
+0, 247, 247, 1, 38016, 0x5c898052
+0, 248, 248, 1, 38016, 0x7104a6ad
+0, 249, 249, 1, 38016, 0x1676b5e8
+0, 250, 250, 1, 38016, 0xe1cfd375
+0, 251, 251, 1, 38016, 0x16fede04
+0, 252, 252, 1, 38016, 0xca49dd4a
+0, 253, 253, 1, 38016, 0x7b98d9d1
+0, 254, 254, 1, 38016, 0x4020d210
+0, 255, 255, 1, 38016, 0x62c5d1e4
+0, 256, 256, 1, 38016, 0x756abdb4
+0, 257, 257, 1, 38016, 0x558fb00f
+0, 258, 258, 1, 38016, 0x4ab0b1f1
+0, 259, 259, 1, 38016, 0x7c9fb0c2
+0, 260, 260, 1, 38016, 0xcecfbdd0
+0, 261, 261, 1, 38016, 0x70e6d174
+0, 262, 262, 1, 38016, 0x83d7ddde
+0, 263, 263, 1, 38016, 0xbbcde2d9
+0, 264, 264, 1, 38016, 0xc89eeaef
+0, 265, 265, 1, 38016, 0x8565e15c
+0, 266, 266, 1, 38016, 0x28e0db24
+0, 267, 267, 1, 38016, 0x1d9dd334
+0, 268, 268, 1, 38016, 0xce02c452
+0, 269, 269, 1, 38016, 0xe29dbd0c
+0, 270, 270, 1, 38016, 0x4aa3b638
+0, 271, 271, 1, 38016, 0x5533c135
+0, 272, 272, 1, 38016, 0x6c57b65f
+0, 273, 273, 1, 38016, 0x23d3b851
+0, 274, 274, 1, 38016, 0xd8cbb960
+0, 275, 275, 1, 38016, 0x02edb916
+0, 276, 276, 1, 38016, 0xa622bd42
+0, 277, 277, 1, 38016, 0x4ba5be1c
+0, 278, 278, 1, 38016, 0xe69bb625
+0, 279, 279, 1, 38016, 0xbca5b292
+0, 280, 280, 1, 38016, 0xde38b1c8
+0, 281, 281, 1, 38016, 0xe9e3b617
+0, 282, 282, 1, 38016, 0x216cc574
+0, 283, 283, 1, 38016, 0x3780c5ad
+0, 284, 284, 1, 38016, 0x5531e3f9
+0, 285, 285, 1, 38016, 0xe2c5f5d4
+0, 286, 286, 1, 38016, 0x24cefc6e
+0, 287, 287, 1, 38016, 0xa3ce003d
+0, 288, 288, 1, 38016, 0x42d01c9e
+0, 289, 289, 1, 38016, 0xbfc13689
+0, 290, 290, 1, 38016, 0x122647a9
+0, 291, 291, 1, 38016, 0xe45254da
+0, 292, 292, 1, 38016, 0xad955b0c
+0, 293, 293, 1, 38016, 0x4b086abb
+0, 294, 294, 1, 38016, 0xd4857b8c
+0, 295, 295, 1, 38016, 0xa71594ce
+0, 296, 296, 1, 38016, 0x04e4a73d
+0, 297, 297, 1, 38016, 0x295abf63
+0, 298, 298, 1, 38016, 0xbe4ed5dd
+0, 299, 299, 1, 38016, 0x087bcf64
diff --git a/tests/ref/fate/h264-conformance-mr6_bt_b b/tests/ref/fate/h264-conformance-mr6_bt_b
index 4a46efe3e5..3b02506562 100644
--- a/tests/ref/fate/h264-conformance-mr6_bt_b
+++ b/tests/ref/fate/h264-conformance-mr6_bt_b
@@ -1,61 +1,61 @@
#tb 0: 1/25
-0, 1, 1, 1, 36864, 0x954464be
-0, 3, 3, 1, 36864, 0xace1d90b
-0, 5, 5, 1, 36864, 0x8f149f03
-0, 7, 7, 1, 36864, 0xea9b21eb
-0, 9, 9, 1, 36864, 0xb51d9fe3
-0, 11, 11, 1, 36864, 0x61bd11d7
-0, 13, 13, 1, 36864, 0x9d36980f
-0, 15, 15, 1, 36864, 0xa4192c5e
-0, 17, 17, 1, 36864, 0x11006433
-0, 19, 19, 1, 36864, 0x4a243e46
-0, 21, 21, 1, 36864, 0x1807b5e8
-0, 23, 23, 1, 36864, 0xbe37743c
-0, 25, 25, 1, 36864, 0x82491319
-0, 27, 27, 1, 36864, 0x006e9914
-0, 29, 29, 1, 36864, 0xa5261884
-0, 31, 31, 1, 36864, 0x2030c9d6
-0, 33, 33, 1, 36864, 0xc80eb1ce
-0, 35, 35, 1, 36864, 0x4d559791
-0, 37, 37, 1, 36864, 0xf5f900ee
-0, 39, 39, 1, 36864, 0x2cc9c0d7
-0, 41, 41, 1, 36864, 0x5ba14186
-0, 43, 43, 1, 36864, 0x47a46865
-0, 45, 45, 1, 36864, 0x5ba180b7
-0, 47, 47, 1, 36864, 0xc67c4876
-0, 49, 49, 1, 36864, 0x4311d75d
-0, 51, 51, 1, 36864, 0x56edb851
-0, 53, 53, 1, 36864, 0x7e5aa3e0
-0, 55, 55, 1, 36864, 0x8df8283a
-0, 57, 57, 1, 36864, 0xb8583ddf
-0, 59, 59, 1, 36864, 0xf33fb779
-0, 61, 61, 1, 36864, 0xe9942ddc
-0, 63, 63, 1, 36864, 0x2bc5f7fa
-0, 65, 65, 1, 36864, 0xc7b66c65
-0, 67, 67, 1, 36864, 0x1a524319
-0, 69, 69, 1, 36864, 0xf60c6141
-0, 71, 71, 1, 36864, 0x113f41f2
-0, 73, 73, 1, 36864, 0xad191a31
-0, 75, 75, 1, 36864, 0x3898264a
-0, 77, 77, 1, 36864, 0x3c2f34a4
-0, 79, 79, 1, 36864, 0xd0fc76aa
-0, 81, 81, 1, 36864, 0x2870b546
-0, 83, 83, 1, 36864, 0x7d326fb4
-0, 85, 85, 1, 36864, 0xd7ed14e1
-0, 87, 87, 1, 36864, 0x205174aa
-0, 89, 89, 1, 36864, 0xa3a88be9
-0, 91, 91, 1, 36864, 0xd6f01751
-0, 93, 93, 1, 36864, 0x5420bb80
-0, 95, 95, 1, 36864, 0xe14518f9
-0, 97, 97, 1, 36864, 0x931db61e
-0, 99, 99, 1, 36864, 0x052ecfae
-0, 101, 101, 1, 36864, 0x29b1b0f5
-0, 103, 103, 1, 36864, 0xa3057117
-0, 105, 105, 1, 36864, 0x954464be
-0, 107, 107, 1, 36864, 0xace1d90b
-0, 109, 109, 1, 36864, 0x8f149f03
-0, 111, 111, 1, 36864, 0x485722c5
-0, 113, 113, 1, 36864, 0x534b18f9
-0, 115, 115, 1, 36864, 0xc893a0a6
-0, 117, 117, 1, 36864, 0x8b04e1dd
-0, 119, 119, 1, 36864, 0xaf536964
+0, 0, 0, 1, 36864, 0x954464be
+0, 1, 1, 1, 36864, 0xace1d90b
+0, 2, 2, 1, 36864, 0x8f149f03
+0, 3, 3, 1, 36864, 0xea9b21eb
+0, 4, 4, 1, 36864, 0xb51d9fe3
+0, 5, 5, 1, 36864, 0x61bd11d7
+0, 6, 6, 1, 36864, 0x9d36980f
+0, 7, 7, 1, 36864, 0xa4192c5e
+0, 8, 8, 1, 36864, 0x11006433
+0, 9, 9, 1, 36864, 0x4a243e46
+0, 10, 10, 1, 36864, 0x1807b5e8
+0, 11, 11, 1, 36864, 0xbe37743c
+0, 12, 12, 1, 36864, 0x82491319
+0, 13, 13, 1, 36864, 0x006e9914
+0, 14, 14, 1, 36864, 0xa5261884
+0, 15, 15, 1, 36864, 0x2030c9d6
+0, 16, 16, 1, 36864, 0xc80eb1ce
+0, 17, 17, 1, 36864, 0x4d559791
+0, 18, 18, 1, 36864, 0xf5f900ee
+0, 19, 19, 1, 36864, 0x2cc9c0d7
+0, 20, 20, 1, 36864, 0x5ba14186
+0, 21, 21, 1, 36864, 0x47a46865
+0, 22, 22, 1, 36864, 0x5ba180b7
+0, 23, 23, 1, 36864, 0xc67c4876
+0, 24, 24, 1, 36864, 0x4311d75d
+0, 25, 25, 1, 36864, 0x56edb851
+0, 26, 26, 1, 36864, 0x7e5aa3e0
+0, 27, 27, 1, 36864, 0x8df8283a
+0, 28, 28, 1, 36864, 0xb8583ddf
+0, 29, 29, 1, 36864, 0xf33fb779
+0, 30, 30, 1, 36864, 0xe9942ddc
+0, 31, 31, 1, 36864, 0x2bc5f7fa
+0, 32, 32, 1, 36864, 0xc7b66c65
+0, 33, 33, 1, 36864, 0x1a524319
+0, 34, 34, 1, 36864, 0xf60c6141
+0, 35, 35, 1, 36864, 0x113f41f2
+0, 36, 36, 1, 36864, 0xad191a31
+0, 37, 37, 1, 36864, 0x3898264a
+0, 38, 38, 1, 36864, 0x3c2f34a4
+0, 39, 39, 1, 36864, 0xd0fc76aa
+0, 40, 40, 1, 36864, 0x2870b546
+0, 41, 41, 1, 36864, 0x7d326fb4
+0, 42, 42, 1, 36864, 0xd7ed14e1
+0, 43, 43, 1, 36864, 0x205174aa
+0, 44, 44, 1, 36864, 0xa3a88be9
+0, 45, 45, 1, 36864, 0xd6f01751
+0, 46, 46, 1, 36864, 0x5420bb80
+0, 47, 47, 1, 36864, 0xe14518f9
+0, 48, 48, 1, 36864, 0x931db61e
+0, 49, 49, 1, 36864, 0x052ecfae
+0, 50, 50, 1, 36864, 0x29b1b0f5
+0, 51, 51, 1, 36864, 0xa3057117
+0, 52, 52, 1, 36864, 0x954464be
+0, 53, 53, 1, 36864, 0xace1d90b
+0, 54, 54, 1, 36864, 0x8f149f03
+0, 55, 55, 1, 36864, 0x485722c5
+0, 56, 56, 1, 36864, 0x534b18f9
+0, 57, 57, 1, 36864, 0xc893a0a6
+0, 58, 58, 1, 36864, 0x8b04e1dd
+0, 59, 59, 1, 36864, 0xaf536964
diff --git a/tests/ref/fate/h264-conformance-mr7_bt_b b/tests/ref/fate/h264-conformance-mr7_bt_b
index f1e561e097..25b7054fa8 100644
--- a/tests/ref/fate/h264-conformance-mr7_bt_b
+++ b/tests/ref/fate/h264-conformance-mr7_bt_b
@@ -9,53 +9,53 @@
0, 7, 7, 1, 36864, 0xf2f324dd
0, 8, 8, 1, 36864, 0x592b5a01
0, 9, 9, 1, 36864, 0x4c2f2d91
-0, 11, 11, 1, 36864, 0x8baeb610
-0, 13, 13, 1, 36864, 0x86d47617
-0, 14, 14, 1, 36864, 0xf11011cc
-0, 15, 15, 1, 36864, 0xe56a9daa
-0, 16, 16, 1, 36864, 0xd57119d6
-0, 17, 17, 1, 36864, 0xe28fcde7
-0, 18, 18, 1, 36864, 0x9aeeba86
-0, 19, 19, 1, 36864, 0xa518a7c5
-0, 20, 20, 1, 36864, 0x9af410be
-0, 22, 22, 1, 36864, 0x1fedd12f
-0, 23, 23, 1, 36864, 0xa8032e03
-0, 24, 24, 1, 36864, 0x579e6274
-0, 25, 25, 1, 36864, 0x99846ef6
-0, 26, 26, 1, 36864, 0xb5ad3ca7
-0, 27, 27, 1, 36864, 0x7845cb90
-0, 28, 28, 1, 36864, 0x569fae24
-0, 29, 29, 1, 36864, 0x8a3c9f98
-0, 30, 30, 1, 36864, 0x0b7722af
-0, 31, 31, 1, 36864, 0x699c2dd8
-0, 32, 32, 1, 36864, 0xd477af13
-0, 33, 33, 1, 36864, 0x17b62d7c
-0, 34, 34, 1, 36864, 0xb1ecf6a7
-0, 35, 35, 1, 36864, 0xf9c17e4c
-0, 36, 36, 1, 36864, 0xe7c44618
-0, 37, 37, 1, 36864, 0x7e23654e
-0, 38, 38, 1, 36864, 0xd8a0457c
-0, 39, 39, 1, 36864, 0x57e11df1
-0, 40, 40, 1, 36864, 0xd54d2a43
-0, 41, 41, 1, 36864, 0xc6f03950
-0, 42, 42, 1, 36864, 0x687e750e
-0, 44, 44, 1, 36864, 0x2870b546
-0, 46, 46, 1, 36864, 0xda0370d0
-0, 47, 47, 1, 36864, 0x5a2e0bff
-0, 49, 49, 1, 36864, 0xe1f07533
-0, 50, 50, 1, 36864, 0x3de892b9
-0, 51, 51, 1, 36864, 0xe5c31505
-0, 52, 52, 1, 36864, 0x96b8c082
-0, 53, 53, 1, 36864, 0x55391423
-0, 54, 54, 1, 36864, 0xc285bd71
-0, 55, 55, 1, 36864, 0xf702d9f3
-0, 56, 56, 1, 36864, 0x7afbadf8
-0, 57, 57, 1, 36864, 0xd9b568f7
-0, 58, 58, 1, 36864, 0x579e6274
-0, 59, 59, 1, 36864, 0x8650c61c
-0, 60, 60, 1, 36864, 0xbc359647
-0, 61, 61, 1, 36864, 0x5522328c
-0, 62, 62, 1, 36864, 0x02821fd6
-0, 63, 63, 1, 36864, 0xb4ee9562
-0, 64, 64, 1, 36864, 0xcefedb68
-0, 65, 65, 1, 36864, 0xd959782e
+0, 10, 10, 1, 36864, 0x8baeb610
+0, 11, 11, 1, 36864, 0x86d47617
+0, 12, 12, 1, 36864, 0xf11011cc
+0, 13, 13, 1, 36864, 0xe56a9daa
+0, 14, 14, 1, 36864, 0xd57119d6
+0, 15, 15, 1, 36864, 0xe28fcde7
+0, 16, 16, 1, 36864, 0x9aeeba86
+0, 17, 17, 1, 36864, 0xa518a7c5
+0, 18, 18, 1, 36864, 0x9af410be
+0, 19, 19, 1, 36864, 0x1fedd12f
+0, 20, 20, 1, 36864, 0xa8032e03
+0, 21, 21, 1, 36864, 0x579e6274
+0, 22, 22, 1, 36864, 0x99846ef6
+0, 23, 23, 1, 36864, 0xb5ad3ca7
+0, 24, 24, 1, 36864, 0x7845cb90
+0, 25, 25, 1, 36864, 0x569fae24
+0, 26, 26, 1, 36864, 0x8a3c9f98
+0, 27, 27, 1, 36864, 0x0b7722af
+0, 28, 28, 1, 36864, 0x699c2dd8
+0, 29, 29, 1, 36864, 0xd477af13
+0, 30, 30, 1, 36864, 0x17b62d7c
+0, 31, 31, 1, 36864, 0xb1ecf6a7
+0, 32, 32, 1, 36864, 0xf9c17e4c
+0, 33, 33, 1, 36864, 0xe7c44618
+0, 34, 34, 1, 36864, 0x7e23654e
+0, 35, 35, 1, 36864, 0xd8a0457c
+0, 36, 36, 1, 36864, 0x57e11df1
+0, 37, 37, 1, 36864, 0xd54d2a43
+0, 38, 38, 1, 36864, 0xc6f03950
+0, 39, 39, 1, 36864, 0x687e750e
+0, 40, 40, 1, 36864, 0x2870b546
+0, 41, 41, 1, 36864, 0xda0370d0
+0, 42, 42, 1, 36864, 0x5a2e0bff
+0, 43, 43, 1, 36864, 0xe1f07533
+0, 44, 44, 1, 36864, 0x3de892b9
+0, 45, 45, 1, 36864, 0xe5c31505
+0, 46, 46, 1, 36864, 0x96b8c082
+0, 47, 47, 1, 36864, 0x55391423
+0, 48, 48, 1, 36864, 0xc285bd71
+0, 49, 49, 1, 36864, 0xf702d9f3
+0, 50, 50, 1, 36864, 0x7afbadf8
+0, 51, 51, 1, 36864, 0xd9b568f7
+0, 52, 52, 1, 36864, 0x579e6274
+0, 53, 53, 1, 36864, 0x8650c61c
+0, 54, 54, 1, 36864, 0xbc359647
+0, 55, 55, 1, 36864, 0x5522328c
+0, 56, 56, 1, 36864, 0x02821fd6
+0, 57, 57, 1, 36864, 0xb4ee9562
+0, 58, 58, 1, 36864, 0xcefedb68
+0, 59, 59, 1, 36864, 0xd959782e
diff --git a/tests/ref/fate/h264-conformance-mr8_bt_b b/tests/ref/fate/h264-conformance-mr8_bt_b
index 8b299ecef1..220acf1e5f 100644
--- a/tests/ref/fate/h264-conformance-mr8_bt_b
+++ b/tests/ref/fate/h264-conformance-mr8_bt_b
@@ -1,59 +1,59 @@
#tb 0: 1/25
-0, 2, 2, 1, 36864, 0x36df68f4
-0, 4, 4, 1, 36864, 0x52d4c6d9
-0, 6, 6, 1, 36864, 0xad16b0be
-0, 8, 8, 1, 36864, 0xf8c72556
-0, 10, 10, 1, 36864, 0x70aaad30
-0, 12, 12, 1, 36864, 0x53cffd5e
-0, 14, 14, 1, 36864, 0xb3fa8abc
-0, 16, 16, 1, 36864, 0x9c894009
-0, 18, 18, 1, 36864, 0xfbc08050
-0, 20, 20, 1, 36864, 0x9d5b2d65
-0, 22, 22, 1, 36864, 0x3bd8bb5d
-0, 24, 24, 1, 36864, 0x8d976ecf
-0, 26, 26, 1, 36864, 0x25010368
-0, 28, 28, 1, 36864, 0xb6e6a11c
-0, 30, 30, 1, 36864, 0x595a3967
-0, 32, 32, 1, 36864, 0x4fbcb9a8
-0, 34, 34, 1, 36864, 0xc7c5c16b
-0, 36, 36, 1, 36864, 0x661ae1eb
-0, 38, 38, 1, 36864, 0x169f04a7
-0, 40, 40, 1, 36864, 0xd124c93a
-0, 42, 42, 1, 36864, 0x3f642dba
-0, 44, 44, 1, 36864, 0xe7ad6956
-0, 46, 46, 1, 36864, 0x47dc76d3
-0, 48, 48, 1, 36864, 0x496a3917
-0, 50, 50, 1, 36864, 0xa976d5f3
-0, 52, 52, 1, 36864, 0x507bb685
-0, 54, 54, 1, 36864, 0x2f61ac12
-0, 56, 56, 1, 36864, 0x527818d8
-0, 58, 58, 1, 36864, 0xa4983396
-0, 60, 60, 1, 36864, 0x3ec9b07b
-0, 62, 62, 1, 36864, 0x7db52d99
-0, 64, 64, 1, 36864, 0xe974fd00
-0, 66, 66, 1, 36864, 0x9c677a4f
-0, 68, 68, 1, 36864, 0x108f3a05
-0, 70, 70, 1, 36864, 0x23a56ba2
-0, 72, 72, 1, 36864, 0x4c8d47e8
-0, 74, 74, 1, 36864, 0x9e0b0f09
-0, 76, 76, 1, 36864, 0x4d262b16
-0, 78, 78, 1, 36864, 0x6122402e
-0, 80, 80, 1, 36864, 0xed037036
-0, 82, 82, 1, 36864, 0x62b3ba08
-0, 84, 84, 1, 36864, 0x7f876930
-0, 86, 86, 1, 36864, 0x4a6c0983
-0, 88, 88, 1, 36864, 0xf9787086
-0, 90, 90, 1, 36864, 0x01d1b1b5
-0, 92, 92, 1, 36864, 0xc1622655
-0, 94, 94, 1, 36864, 0x27e8e0f7
-0, 96, 96, 1, 36864, 0xc1622655
-0, 98, 98, 1, 36864, 0x12c2b7e9
-0, 100, 100, 1, 36864, 0xd752d2ef
-0, 102, 102, 1, 36864, 0xcbb1c3a7
-0, 104, 104, 1, 36864, 0x18c56fba
-0, 106, 106, 1, 36864, 0xb1b3771c
-0, 108, 108, 1, 36864, 0x284ef3c4
-0, 110, 110, 1, 36864, 0xda6eb5a0
-0, 112, 112, 1, 36864, 0x17ad337c
-0, 114, 114, 1, 36864, 0xe2801e4f
-0, 115, 115, 1, 36864, 0x6c33bd17
+0, 0, 0, 1, 36864, 0x36df68f4
+0, 1, 1, 1, 36864, 0x52d4c6d9
+0, 2, 2, 1, 36864, 0xad16b0be
+0, 3, 3, 1, 36864, 0xf8c72556
+0, 4, 4, 1, 36864, 0x70aaad30
+0, 5, 5, 1, 36864, 0x53cffd5e
+0, 6, 6, 1, 36864, 0xb3fa8abc
+0, 7, 7, 1, 36864, 0x9c894009
+0, 8, 8, 1, 36864, 0xfbc08050
+0, 9, 9, 1, 36864, 0x9d5b2d65
+0, 10, 10, 1, 36864, 0x3bd8bb5d
+0, 11, 11, 1, 36864, 0x8d976ecf
+0, 12, 12, 1, 36864, 0x25010368
+0, 13, 13, 1, 36864, 0xb6e6a11c
+0, 14, 14, 1, 36864, 0x595a3967
+0, 15, 15, 1, 36864, 0x4fbcb9a8
+0, 16, 16, 1, 36864, 0xc7c5c16b
+0, 17, 17, 1, 36864, 0x661ae1eb
+0, 18, 18, 1, 36864, 0x169f04a7
+0, 19, 19, 1, 36864, 0xd124c93a
+0, 20, 20, 1, 36864, 0x3f642dba
+0, 21, 21, 1, 36864, 0xe7ad6956
+0, 22, 22, 1, 36864, 0x47dc76d3
+0, 23, 23, 1, 36864, 0x496a3917
+0, 24, 24, 1, 36864, 0xa976d5f3
+0, 25, 25, 1, 36864, 0x507bb685
+0, 26, 26, 1, 36864, 0x2f61ac12
+0, 27, 27, 1, 36864, 0x527818d8
+0, 28, 28, 1, 36864, 0xa4983396
+0, 29, 29, 1, 36864, 0x3ec9b07b
+0, 30, 30, 1, 36864, 0x7db52d99
+0, 31, 31, 1, 36864, 0xe974fd00
+0, 32, 32, 1, 36864, 0x9c677a4f
+0, 33, 33, 1, 36864, 0x108f3a05
+0, 34, 34, 1, 36864, 0x23a56ba2
+0, 35, 35, 1, 36864, 0x4c8d47e8
+0, 36, 36, 1, 36864, 0x9e0b0f09
+0, 37, 37, 1, 36864, 0x4d262b16
+0, 38, 38, 1, 36864, 0x6122402e
+0, 39, 39, 1, 36864, 0xed037036
+0, 40, 40, 1, 36864, 0x62b3ba08
+0, 41, 41, 1, 36864, 0x7f876930
+0, 42, 42, 1, 36864, 0x4a6c0983
+0, 43, 43, 1, 36864, 0xf9787086
+0, 44, 44, 1, 36864, 0x01d1b1b5
+0, 45, 45, 1, 36864, 0xc1622655
+0, 46, 46, 1, 36864, 0x27e8e0f7
+0, 47, 47, 1, 36864, 0xc1622655
+0, 48, 48, 1, 36864, 0x12c2b7e9
+0, 49, 49, 1, 36864, 0xd752d2ef
+0, 50, 50, 1, 36864, 0xcbb1c3a7
+0, 51, 51, 1, 36864, 0x18c56fba
+0, 52, 52, 1, 36864, 0xb1b3771c
+0, 53, 53, 1, 36864, 0x284ef3c4
+0, 54, 54, 1, 36864, 0xda6eb5a0
+0, 55, 55, 1, 36864, 0x17ad337c
+0, 56, 56, 1, 36864, 0xe2801e4f
+0, 57, 57, 1, 36864, 0x6c33bd17
diff --git a/tests/ref/fate/h264-conformance-mr9_bt_b b/tests/ref/fate/h264-conformance-mr9_bt_b
index efc25d41ee..3744802a6a 100644
--- a/tests/ref/fate/h264-conformance-mr9_bt_b
+++ b/tests/ref/fate/h264-conformance-mr9_bt_b
@@ -9,51 +9,51 @@
0, 7, 7, 1, 36864, 0x75122807
0, 8, 8, 1, 36864, 0x27036a2b
0, 9, 9, 1, 36864, 0x00072654
-0, 11, 11, 1, 36864, 0x49fab4fd
-0, 13, 13, 1, 36864, 0x975a7545
-0, 14, 14, 1, 36864, 0x9b080a2f
-0, 15, 15, 1, 36864, 0x78db960e
-0, 16, 16, 1, 36864, 0xd7a928d4
-0, 17, 17, 1, 36864, 0x0a83ba1b
-0, 18, 18, 1, 36864, 0xad6bb30c
-0, 19, 19, 1, 36864, 0xf6addb0d
-0, 20, 20, 1, 36864, 0x00540a0a
-0, 22, 22, 1, 36864, 0x049cc748
-0, 23, 23, 1, 36864, 0x5b1e2291
-0, 24, 24, 1, 36864, 0x2367706e
-0, 25, 25, 1, 36864, 0x88ef6b11
-0, 26, 26, 1, 36864, 0x85b73230
-0, 27, 27, 1, 36864, 0xe46cd522
-0, 28, 28, 1, 36864, 0x98489c05
-0, 29, 29, 1, 36864, 0x7e439564
-0, 30, 30, 1, 36864, 0x71330799
-0, 31, 31, 1, 36864, 0x81a6239e
-0, 32, 32, 1, 36864, 0x8005a302
-0, 33, 33, 1, 36864, 0xdf132e3f
-0, 34, 34, 1, 36864, 0x2a1d00de
-0, 35, 35, 1, 36864, 0x7bb57e14
-0, 36, 36, 1, 36864, 0xf2a637cf
-0, 37, 37, 1, 36864, 0xae6f6916
-0, 38, 38, 1, 36864, 0x2f1d4763
-0, 39, 39, 1, 36864, 0xa4e1145e
-0, 40, 40, 1, 36864, 0xc1644392
-0, 41, 41, 1, 36864, 0x21853537
-0, 42, 42, 1, 36864, 0x0bc45bac
-0, 44, 44, 1, 36864, 0x84ccb8ee
-0, 46, 46, 1, 36864, 0x65de651c
-0, 47, 47, 1, 36864, 0x33ff027e
-0, 49, 49, 1, 36864, 0xefe47056
-0, 50, 50, 1, 36864, 0x8952b47c
-0, 51, 51, 1, 36864, 0x78730fcf
-0, 52, 52, 1, 36864, 0x14bae79f
-0, 53, 53, 1, 36864, 0x53230fbe
-0, 54, 54, 1, 36864, 0x15b0b245
-0, 55, 55, 1, 36864, 0x45fbd155
-0, 56, 56, 1, 36864, 0x41cfbac4
-0, 57, 57, 1, 36864, 0x0d635d61
-0, 58, 58, 1, 36864, 0x55aa8d3c
-0, 59, 59, 1, 36864, 0x8f02fbaf
-0, 60, 60, 1, 36864, 0xb17fac3f
-0, 61, 61, 1, 36864, 0xc12627f9
-0, 62, 62, 1, 36864, 0xa5971e4a
-0, 63, 63, 1, 36864, 0x3677abfe
+0, 10, 10, 1, 36864, 0x49fab4fd
+0, 11, 11, 1, 36864, 0x975a7545
+0, 12, 12, 1, 36864, 0x9b080a2f
+0, 13, 13, 1, 36864, 0x78db960e
+0, 14, 14, 1, 36864, 0xd7a928d4
+0, 15, 15, 1, 36864, 0x0a83ba1b
+0, 16, 16, 1, 36864, 0xad6bb30c
+0, 17, 17, 1, 36864, 0xf6addb0d
+0, 18, 18, 1, 36864, 0x00540a0a
+0, 19, 19, 1, 36864, 0x049cc748
+0, 20, 20, 1, 36864, 0x5b1e2291
+0, 21, 21, 1, 36864, 0x2367706e
+0, 22, 22, 1, 36864, 0x88ef6b11
+0, 23, 23, 1, 36864, 0x85b73230
+0, 24, 24, 1, 36864, 0xe46cd522
+0, 25, 25, 1, 36864, 0x98489c05
+0, 26, 26, 1, 36864, 0x7e439564
+0, 27, 27, 1, 36864, 0x71330799
+0, 28, 28, 1, 36864, 0x81a6239e
+0, 29, 29, 1, 36864, 0x8005a302
+0, 30, 30, 1, 36864, 0xdf132e3f
+0, 31, 31, 1, 36864, 0x2a1d00de
+0, 32, 32, 1, 36864, 0x7bb57e14
+0, 33, 33, 1, 36864, 0xf2a637cf
+0, 34, 34, 1, 36864, 0xae6f6916
+0, 35, 35, 1, 36864, 0x2f1d4763
+0, 36, 36, 1, 36864, 0xa4e1145e
+0, 37, 37, 1, 36864, 0xc1644392
+0, 38, 38, 1, 36864, 0x21853537
+0, 39, 39, 1, 36864, 0x0bc45bac
+0, 40, 40, 1, 36864, 0x84ccb8ee
+0, 41, 41, 1, 36864, 0x65de651c
+0, 42, 42, 1, 36864, 0x33ff027e
+0, 43, 43, 1, 36864, 0xefe47056
+0, 44, 44, 1, 36864, 0x8952b47c
+0, 45, 45, 1, 36864, 0x78730fcf
+0, 46, 46, 1, 36864, 0x14bae79f
+0, 47, 47, 1, 36864, 0x53230fbe
+0, 48, 48, 1, 36864, 0x15b0b245
+0, 49, 49, 1, 36864, 0x45fbd155
+0, 50, 50, 1, 36864, 0x41cfbac4
+0, 51, 51, 1, 36864, 0x0d635d61
+0, 52, 52, 1, 36864, 0x55aa8d3c
+0, 53, 53, 1, 36864, 0x8f02fbaf
+0, 54, 54, 1, 36864, 0xb17fac3f
+0, 55, 55, 1, 36864, 0xc12627f9
+0, 56, 56, 1, 36864, 0xa5971e4a
+0, 57, 57, 1, 36864, 0x3677abfe
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_field_1_b b/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
index 93e006453a..8512102bb3 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
+++ b/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
@@ -1,16 +1,16 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0xc93c7c47
-0, 3, 3, 1, 518400, 0xa3f2e502
-0, 5, 5, 1, 518400, 0xb98920a4
-0, 7, 7, 1, 518400, 0xad098ec1
-0, 9, 9, 1, 518400, 0x3009b7aa
-0, 11, 11, 1, 518400, 0xcf514018
-0, 13, 13, 1, 518400, 0xd869038d
-0, 15, 15, 1, 518400, 0x3ce5e188
-0, 17, 17, 1, 518400, 0x029b4c14
-0, 19, 19, 1, 518400, 0xd2224afc
-0, 21, 21, 1, 518400, 0xbbca027c
-0, 23, 23, 1, 518400, 0x1f3fa0ac
-0, 25, 25, 1, 518400, 0x823b0125
-0, 27, 27, 1, 518400, 0xaaa27cfb
-0, 29, 29, 1, 518400, 0x5e926a4a
+0, 0, 0, 1, 518400, 0xc93c7c47
+0, 1, 1, 1, 518400, 0xa3f2e502
+0, 2, 2, 1, 518400, 0xb98920a4
+0, 3, 3, 1, 518400, 0xad098ec1
+0, 4, 4, 1, 518400, 0x3009b7aa
+0, 5, 5, 1, 518400, 0xcf514018
+0, 6, 6, 1, 518400, 0xd869038d
+0, 7, 7, 1, 518400, 0x3ce5e188
+0, 8, 8, 1, 518400, 0x029b4c14
+0, 9, 9, 1, 518400, 0xd2224afc
+0, 10, 10, 1, 518400, 0xbbca027c
+0, 11, 11, 1, 518400, 0x1f3fa0ac
+0, 12, 12, 1, 518400, 0x823b0125
+0, 13, 13, 1, 518400, 0xaaa27cfb
+0, 14, 14, 1, 518400, 0x5e926a4a
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_field_2_b b/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
index eddd8c85ea..5808141891 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
+++ b/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
@@ -1,16 +1,16 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0xc93c7c47
-0, 3, 3, 1, 518400, 0xf0c4b44a
-0, 5, 5, 1, 518400, 0x3f5dc91c
-0, 7, 7, 1, 518400, 0x03dc8453
-0, 9, 9, 1, 518400, 0x5e5227af
-0, 11, 11, 1, 518400, 0x9e7136af
-0, 13, 13, 1, 518400, 0x963a2e3a
-0, 15, 15, 1, 518400, 0xa544be6c
-0, 17, 17, 1, 518400, 0xefa1f63a
-0, 19, 19, 1, 518400, 0x62155ff1
-0, 21, 21, 1, 518400, 0x253eb857
-0, 23, 23, 1, 518400, 0x73530327
-0, 25, 25, 1, 518400, 0x8920c9a3
-0, 27, 27, 1, 518400, 0x4bdd038c
-0, 29, 29, 1, 518400, 0xea6016dd
+0, 0, 0, 1, 518400, 0xc93c7c47
+0, 1, 1, 1, 518400, 0xf0c4b44a
+0, 2, 2, 1, 518400, 0x3f5dc91c
+0, 3, 3, 1, 518400, 0x03dc8453
+0, 4, 4, 1, 518400, 0x5e5227af
+0, 5, 5, 1, 518400, 0x9e7136af
+0, 6, 6, 1, 518400, 0x963a2e3a
+0, 7, 7, 1, 518400, 0xa544be6c
+0, 8, 8, 1, 518400, 0xefa1f63a
+0, 9, 9, 1, 518400, 0x62155ff1
+0, 10, 10, 1, 518400, 0x253eb857
+0, 11, 11, 1, 518400, 0x73530327
+0, 12, 12, 1, 518400, 0x8920c9a3
+0, 13, 13, 1, 518400, 0x4bdd038c
+0, 14, 14, 1, 518400, 0xea6016dd
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_field_3_b b/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
index 09096a0ee9..a572030f02 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
+++ b/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
@@ -1,16 +1,16 @@
#tb 0: 1/25
-0, 2, 2, 1, 518400, 0xc93c7c47
-0, 4, 4, 1, 518400, 0x7112ac25
-0, 6, 6, 1, 518400, 0x28bc28d2
-0, 8, 8, 1, 518400, 0x6fc36875
-0, 10, 10, 1, 518400, 0x3de99be0
-0, 12, 12, 1, 518400, 0x97125499
-0, 14, 14, 1, 518400, 0xb96fca3a
-0, 16, 16, 1, 518400, 0x1ec56c0f
-0, 18, 18, 1, 518400, 0xc65901d0
-0, 20, 20, 1, 518400, 0x2baa1bfa
-0, 22, 22, 1, 518400, 0x244fc6b7
-0, 24, 24, 1, 518400, 0xc3536383
-0, 26, 26, 1, 518400, 0xbcf40d5a
-0, 28, 28, 1, 518400, 0x955f4734
-0, 29, 29, 1, 518400, 0xe1b0275e
+0, 0, 0, 1, 518400, 0xc93c7c47
+0, 1, 1, 1, 518400, 0x7112ac25
+0, 2, 2, 1, 518400, 0x28bc28d2
+0, 3, 3, 1, 518400, 0x6fc36875
+0, 4, 4, 1, 518400, 0x3de99be0
+0, 5, 5, 1, 518400, 0x97125499
+0, 6, 6, 1, 518400, 0xb96fca3a
+0, 7, 7, 1, 518400, 0x1ec56c0f
+0, 8, 8, 1, 518400, 0xc65901d0
+0, 9, 9, 1, 518400, 0x2baa1bfa
+0, 10, 10, 1, 518400, 0x244fc6b7
+0, 11, 11, 1, 518400, 0xc3536383
+0, 12, 12, 1, 518400, 0xbcf40d5a
+0, 13, 13, 1, 518400, 0x955f4734
+0, 14, 14, 1, 518400, 0xe1b0275e
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2 b/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
index 2847e3fb02..d1a347ff26 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
+++ b/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
@@ -1,16 +1,16 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0xc93c7c47
-0, 2, 2, 1, 518400, 0xfb452a9c
-0, 4, 4, 1, 518400, 0x2f7a35bd
-0, 6, 6, 1, 518400, 0xe63e30b9
-0, 8, 8, 1, 518400, 0x39628205
-0, 9, 9, 1, 518400, 0x17fa1ea4
-0, 10, 10, 1, 518400, 0xd5ee83e2
-0, 11, 11, 1, 518400, 0x611ee98d
-0, 13, 13, 1, 518400, 0x07c1eeb8
-0, 15, 15, 1, 518400, 0x9dff3418
-0, 17, 17, 1, 518400, 0x87cd2f56
-0, 18, 18, 1, 518400, 0x88675628
-0, 20, 20, 1, 518400, 0x9bb8c9a0
-0, 21, 21, 1, 518400, 0xe6c1df00
-0, 22, 22, 1, 518400, 0xfcaab7a7
+0, 0, 0, 1, 518400, 0xc93c7c47
+0, 1, 1, 1, 518400, 0xfb452a9c
+0, 2, 2, 1, 518400, 0x2f7a35bd
+0, 3, 3, 1, 518400, 0xe63e30b9
+0, 4, 4, 1, 518400, 0x39628205
+0, 5, 5, 1, 518400, 0x17fa1ea4
+0, 6, 6, 1, 518400, 0xd5ee83e2
+0, 7, 7, 1, 518400, 0x611ee98d
+0, 8, 8, 1, 518400, 0x07c1eeb8
+0, 9, 9, 1, 518400, 0x9dff3418
+0, 10, 10, 1, 518400, 0x87cd2f56
+0, 11, 11, 1, 518400, 0x88675628
+0, 12, 12, 1, 518400, 0x9bb8c9a0
+0, 13, 13, 1, 518400, 0xe6c1df00
+0, 14, 14, 1, 518400, 0xfcaab7a7
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_paff_2r b/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
index 22bf8e2f52..f2bf06f6ff 100644
--- a/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
+++ b/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
@@ -1,16 +1,16 @@
#tb 0: 1/25
-0, 1, 1, 1, 518400, 0xc93c7c47
-0, 2, 2, 1, 518400, 0xfb452a9c
-0, 4, 4, 1, 518400, 0x2f7a35bd
-0, 6, 6, 1, 518400, 0xe63e30b9
-0, 8, 8, 1, 518400, 0x39628205
-0, 9, 9, 1, 518400, 0x17fa1ea4
-0, 10, 10, 1, 518400, 0xd5ee83e2
-0, 11, 11, 1, 518400, 0x4fd6d5c9
-0, 13, 13, 1, 518400, 0x8703c999
-0, 15, 15, 1, 518400, 0x1a87e2d3
-0, 17, 17, 1, 518400, 0xa27fc4d0
-0, 18, 18, 1, 518400, 0x6effab5d
-0, 20, 20, 1, 518400, 0x51ea02c9
-0, 21, 21, 1, 518400, 0xbcf84c88
-0, 22, 22, 1, 518400, 0x1d41076b
+0, 0, 0, 1, 518400, 0xc93c7c47
+0, 1, 1, 1, 518400, 0xfb452a9c
+0, 2, 2, 1, 518400, 0x2f7a35bd
+0, 3, 3, 1, 518400, 0xe63e30b9
+0, 4, 4, 1, 518400, 0x39628205
+0, 5, 5, 1, 518400, 0x17fa1ea4
+0, 6, 6, 1, 518400, 0xd5ee83e2
+0, 7, 7, 1, 518400, 0x4fd6d5c9
+0, 8, 8, 1, 518400, 0x8703c999
+0, 9, 9, 1, 518400, 0x1a87e2d3
+0, 10, 10, 1, 518400, 0xa27fc4d0
+0, 11, 11, 1, 518400, 0x6effab5d
+0, 12, 12, 1, 518400, 0x51ea02c9
+0, 13, 13, 1, 518400, 0xbcf84c88
+0, 14, 14, 1, 518400, 0x1d41076b
diff --git a/tests/ref/fate/h264-lossless b/tests/ref/fate/h264-lossless
index 11cc4d0898..44cb13ba24 100644
--- a/tests/ref/fate/h264-lossless
+++ b/tests/ref/fate/h264-lossless
@@ -1,11 +1,11 @@
-#tb 0: 1/25
+#tb 0: 83333/5000000
0, 0, 0, 1, 460800, 0x7731dd2f
-0, 1, 1, 1, 460800, 0x944b8c64
-0, 2, 2, 1, 460800, 0xbe833041
-0, 3, 3, 1, 460800, 0xbe95d96a
-0, 4, 4, 1, 460800, 0xfe7ea5e6
-0, 5, 5, 1, 460800, 0x381743c7
-0, 6, 6, 1, 460800, 0x63fcc2e9
-0, 7, 7, 1, 460800, 0x79574960
-0, 8, 8, 1, 460800, 0xdab9e18a
-0, 9, 9, 1, 460800, 0xd88e8fe8
+0, 2, 2, 1, 460800, 0x944b8c64
+0, 3, 3, 1, 460800, 0xbe833041
+0, 4, 4, 1, 460800, 0xbe95d96a
+0, 5, 5, 1, 460800, 0xfe7ea5e6
+0, 6, 6, 1, 460800, 0x381743c7
+0, 7, 7, 1, 460800, 0x63fcc2e9
+0, 8, 8, 1, 460800, 0x79574960
+0, 9, 9, 1, 460800, 0xdab9e18a
+0, 10, 10, 1, 460800, 0xd88e8fe8
diff --git a/tests/ref/fate/idroq-video-encode b/tests/ref/fate/idroq-video-encode
index f243a0d43b..4c89de8b63 100644
--- a/tests/ref/fate/idroq-video-encode
+++ b/tests/ref/fate/idroq-video-encode
@@ -1 +1 @@
-72e5b060ff0ab8855da22f33a6e04bff
+75df9ce475c1b185fc3dbc219596edd3
diff --git a/tests/ref/fate/iff-fibonacci b/tests/ref/fate/iff-fibonacci
index e452f31e6c..947f78e964 100644
--- a/tests/ref/fate/iff-fibonacci
+++ b/tests/ref/fate/iff-fibonacci
@@ -1 +1 @@
-e968a853779bb6438339e3b8d69d8d24
+e76b025238a6a27968f8644f4ccc3207
diff --git a/tests/ref/fate/indeo3 b/tests/ref/fate/indeo3
index e294f70bb8..0f5564928f 100644
--- a/tests/ref/fate/indeo3
+++ b/tests/ref/fate/indeo3
@@ -1,41 +1,41 @@
-#tb 0: 1/600
+#tb 0: 1/10
0, 0, 0, 1, 21600, 0x845098fc
-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
+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
diff --git a/tests/ref/fate/interplay-mve-16bit b/tests/ref/fate/interplay-mve-16bit
index 35dc14be90..86a1911df5 100644
--- a/tests/ref/fate/interplay-mve-16bit
+++ b/tests/ref/fate/interplay-mve-16bit
@@ -1,105 +1,105 @@
-#tb 0: 1/1000000
+#tb 0: 417/12500
#tb 1: 1/44100
-0, 0, 0, 0, 614400, 0x00000000
+0, 0, 0, 1, 614400, 0x00000000
1, 0, 0, 1447, 5788, 0x916d2db8
1, 1447, 1447, 1472, 5888, 0xc65cb069
-0, 33360, 33360, 0, 614400, 0x00000000
+0, 1, 1, 1, 614400, 0x00000000
1, 2919, 2919, 1472, 5888, 0xd8ec1acc
-0, 66720, 66720, 0, 614400, 0xa17ea4ec
+0, 2, 2, 1, 614400, 0x3c4ce011
1, 4391, 4391, 1472, 5888, 0xb22af0d6
-0, 100080, 100080, 0, 614400, 0x4fd207fb
+0, 3, 3, 1, 614400, 0x16e83922
1, 5863, 5863, 1472, 5888, 0x86bb50d9
-0, 133440, 133440, 0, 614400, 0xd7a510fb
+0, 4, 4, 1, 614400, 0x657a3d4d
1, 7335, 7335, 1472, 5888, 0x7674d923
-0, 166800, 166800, 0, 614400, 0xe901e2f4
+0, 5, 5, 1, 614400, 0x933a08b0
1, 8807, 8807, 1472, 5888, 0xb97c5500
-0, 200160, 200160, 0, 614400, 0x4ac5d3c4
+0, 6, 6, 1, 614400, 0xfcd5f76e
1, 10279, 10279, 1472, 5888, 0xecea1249
-0, 233520, 233520, 0, 614400, 0x32e3e99c
+0, 7, 7, 1, 614400, 0xd0990cf8
1, 11751, 11751, 1472, 5888, 0x0f4fea81
-0, 266880, 266880, 0, 614400, 0x7a2ff20c
+0, 8, 8, 1, 614400, 0x02131686
1, 13223, 13223, 1472, 5888, 0x997914d8
-0, 300240, 300240, 0, 614400, 0x59941193
+0, 9, 9, 1, 614400, 0x4cf53656
1, 14695, 14695, 1472, 5888, 0xd012f03a
-0, 333600, 333600, 0, 614400, 0x92773a2b
+0, 10, 10, 1, 614400, 0x7d1960c0
1, 16167, 16167, 1472, 5888, 0x03fd5248
-0, 366960, 366960, 0, 614400, 0x4cd14313
+0, 11, 11, 1, 614400, 0x5d9f696f
1, 17639, 17639, 1472, 5888, 0x3041a288
-0, 400320, 400320, 0, 614400, 0x2a093fa3
+0, 12, 12, 1, 614400, 0x54e06663
1, 19111, 19111, 1472, 5888, 0xe6105de1
-0, 433680, 433680, 0, 614400, 0xf68b8463
+0, 13, 13, 1, 614400, 0x4c1eade1
1, 20583, 20583, 1472, 5888, 0xaa38c7bd
-0, 467040, 467040, 0, 614400, 0xa9e1969b
+0, 14, 14, 1, 614400, 0x4bd3bfff
1, 22055, 22055, 1472, 5888, 0xbfff702c
-0, 500400, 500400, 0, 614400, 0x461996bb
+0, 15, 15, 1, 614400, 0xab86c041
1, 23527, 23527, 1472, 5888, 0xbe4319a3
-0, 533760, 533760, 0, 614400, 0xae58d053
+0, 16, 16, 1, 614400, 0xbb2bfbf4
1, 24999, 24999, 1472, 5888, 0x2e89d262
-0, 567120, 567120, 0, 614400, 0x7693015a
+0, 17, 17, 1, 614400, 0x43822e15
1, 26471, 26471, 1472, 5888, 0x10992b9c
-0, 600480, 600480, 0, 614400, 0x0b3507fa
+0, 18, 18, 1, 614400, 0x835e352c
1, 27943, 27943, 1472, 5888, 0x972904bf
-0, 633840, 633840, 0, 614400, 0xff5c2492
+0, 19, 19, 1, 614400, 0x72cc538f
1, 29415, 29415, 1472, 5888, 0x0093501c
-0, 667200, 667200, 0, 614400, 0x636e3e32
+0, 20, 20, 1, 614400, 0x20bb6e30
1, 30887, 30887, 1472, 5888, 0x8994ad0e
-0, 700560, 700560, 0, 614400, 0x1acd6d0a
+0, 21, 21, 1, 614400, 0xfb079f52
1, 32359, 32359, 1472, 5888, 0x9db37d21
-0, 733920, 733920, 0, 614400, 0x67039232
+0, 22, 22, 1, 614400, 0x759bc4d6
1, 33831, 33831, 1472, 5888, 0xa8c7300f
-0, 767280, 767280, 0, 614400, 0x8ab9c75a
+0, 23, 23, 1, 614400, 0xd116fc3b
1, 35303, 35303, 1472, 5888, 0x1b7073b5
-0, 800640, 800640, 0, 614400, 0xe824bbe2
+0, 24, 24, 1, 614400, 0x5c06efd2
1, 36775, 36775, 1472, 5888, 0x56ad7f7b
-0, 834000, 834000, 0, 614400, 0x5133e9ea
+0, 25, 25, 1, 614400, 0x61641ecd
1, 38247, 38247, 1472, 5888, 0x9706a8fb
-0, 867360, 867360, 0, 614400, 0xcecf1249
+0, 26, 26, 1, 614400, 0x6c8d48a0
1, 39719, 39719, 1472, 5888, 0x16c9420e
-0, 900720, 900720, 0, 614400, 0xe6d928c1
+0, 27, 27, 1, 614400, 0x64725eed
1, 41191, 41191, 1472, 5888, 0x3e11be0a
-0, 934080, 934080, 0, 614400, 0x8da46ff1
+0, 28, 28, 1, 614400, 0x88f9a8ca
1, 42663, 42663, 1472, 5888, 0x3e534a32
-0, 967440, 967440, 0, 614400, 0x1c778319
+0, 29, 29, 1, 614400, 0xcf1cbcd9
1, 44135, 44135, 1447, 5788, 0x0ffae5f4
-0, 1000800, 1000800, 0, 614400, 0x35a19451
+0, 30, 30, 1, 614400, 0x75a3ce24
1, 45582, 45582, 1472, 5888, 0xc2018f82
-0, 1034160, 1034160, 0, 614400, 0x5145d1b9
+0, 31, 31, 1, 614400, 0x3bf80ce7
1, 47054, 47054, 1472, 5888, 0x2a11f529
-0, 1067520, 1067520, 0, 614400, 0x146ee231
+0, 32, 32, 1, 614400, 0xd4011d7c
1, 48526, 48526, 1472, 5888, 0xec282167
-0, 1100880, 1100880, 0, 614400, 0xd9b33380
+0, 33, 33, 1, 614400, 0xd569716b
1, 49998, 49998, 1472, 5888, 0xd61b5a05
-0, 1134240, 1134240, 0, 614400, 0x8b112ef8
+0, 34, 34, 1, 614400, 0xfd626b6b
1, 51470, 51470, 1472, 5888, 0x61de2741
-0, 1167600, 1167600, 0, 614400, 0xb9e79ab0
+0, 35, 35, 1, 614400, 0xc856dbaf
1, 52942, 52942, 1472, 5888, 0x17aaff8c
-0, 1200960, 1200960, 0, 614400, 0x62d3a498
+0, 36, 36, 1, 614400, 0x0e56e68e
1, 54414, 54414, 1472, 5888, 0xd40cd7a6
-0, 1234320, 1234320, 0, 614400, 0xaeaaaa58
+0, 37, 37, 1, 614400, 0x5b29ecc9
1, 55886, 55886, 1472, 5888, 0x840840d4
-0, 1267680, 1267680, 0, 614400, 0x8922c440
+0, 38, 38, 1, 614400, 0xe83c0804
1, 57358, 57358, 1472, 5888, 0x7c97ddcf
-0, 1301040, 1301040, 0, 614400, 0xd62ef758
+0, 39, 39, 1, 614400, 0xebdd3d61
1, 58830, 58830, 1472, 5888, 0xed9150f7
-0, 1334400, 1334400, 0, 614400, 0x2a53149f
+0, 40, 40, 1, 614400, 0x7f4c5b56
1, 60302, 60302, 1472, 5888, 0xbccf973e
-0, 1367760, 1367760, 0, 614400, 0x13da47df
+0, 41, 41, 1, 614400, 0xb4019155
1, 61774, 61774, 1472, 5888, 0x74bda5ea
-0, 1401120, 1401120, 0, 614400, 0x27c05c3f
+0, 42, 42, 1, 614400, 0xffdda515
1, 63246, 63246, 1472, 5888, 0xd083892a
-0, 1434480, 1434480, 0, 614400, 0x41ff7ca7
+0, 43, 43, 1, 614400, 0x5271c695
1, 64718, 64718, 1472, 5888, 0x16e444b2
-0, 1467840, 1467840, 0, 614400, 0x6b0e8a07
+0, 44, 44, 1, 614400, 0x8526d3c1
1, 66190, 66190, 1472, 5888, 0x68a9cedb
-0, 1501200, 1501200, 0, 614400, 0xa200ad9f
+0, 45, 45, 1, 614400, 0x5accf7a6
1, 67662, 67662, 1472, 5888, 0x80849f36
-0, 1534560, 1534560, 0, 614400, 0x9da7cc77
+0, 46, 46, 1, 614400, 0x959017aa
1, 69134, 69134, 1472, 5888, 0x63cb7df9
-0, 1567920, 1567920, 0, 614400, 0x2f5703be
+0, 47, 47, 1, 614400, 0x22f450f6
1, 70606, 70606, 1472, 5888, 0xf90f754d
-0, 1601280, 1601280, 0, 614400, 0x91c720f6
+0, 48, 48, 1, 614400, 0x2e3d6f37
1, 72078, 72078, 1472, 5888, 0x9c2c867d
-0, 1634640, 1634640, 0, 614400, 0x927a882e
+0, 49, 49, 1, 614400, 0x0db9d89f
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 33630e9122..4af7bd307f 100644
--- a/tests/ref/fate/interplay-mve-8bit
+++ b/tests/ref/fate/interplay-mve-8bit
@@ -1,225 +1,225 @@
-#tb 0: 1/1000000
+#tb 0: 8341/125000
#tb 1: 1/22050
-0, 0, 0, 0, 414720, 0xa5cd50ca
+0, 0, 0, 1, 414720, 0x2580d574
1, 0, 0, 1462, 5848, 0xea04292b
1, 1462, 1462, 1472, 5888, 0x0e59e942
-0, 66728, 66728, 0, 414720, 0x3facd321
+0, 1, 1, 1, 414720, 0x97f55cd3
1, 2934, 2934, 1472, 5888, 0x56d480f6
-0, 133456, 133456, 0, 414720, 0x849e6d4b
+0, 2, 2, 1, 414720, 0x9408fb63
1, 4406, 4406, 1472, 5888, 0xcb560b22
-0, 200184, 200184, 0, 414720, 0xe649363f
+0, 3, 3, 1, 414720, 0x7e53c155
1, 5878, 5878, 1472, 5888, 0xca26865b
-0, 266912, 266912, 0, 414720, 0x5bbd7b14
+0, 4, 4, 1, 414720, 0xd8570262
1, 7350, 7350, 1472, 5888, 0xa434392f
-0, 333640, 333640, 0, 414720, 0xe246ab51
+0, 5, 5, 1, 414720, 0x9dc72ed5
1, 8822, 8822, 1472, 5888, 0xa0615fe4
-0, 400368, 400368, 0, 414720, 0x5721b22e
+0, 6, 6, 1, 414720, 0xf7d33211
1, 10294, 10294, 1472, 5888, 0x85b241cd
-0, 467096, 467096, 0, 414720, 0xe391e107
+0, 7, 7, 1, 414720, 0x95935e3b
1, 11766, 11766, 1472, 5888, 0x2c417a43
-0, 533824, 533824, 0, 414720, 0x04d851ff
+0, 8, 8, 1, 414720, 0x62b1cdc5
1, 13238, 13238, 1472, 5888, 0x2d5ed665
-0, 600552, 600552, 0, 414720, 0x8d80d580
+0, 9, 9, 1, 414720, 0x971f500a
1, 14710, 14710, 1472, 5888, 0x37267a2d
-0, 667280, 667280, 0, 414720, 0x5a24b0bc
+0, 10, 10, 1, 414720, 0x05f82b6c
1, 16182, 16182, 1472, 5888, 0x1f803c67
-0, 734008, 734008, 0, 414720, 0x06cd6960
+0, 11, 11, 1, 414720, 0x7713e3cb
1, 17654, 17654, 1472, 5888, 0xfb7940ef
-0, 800736, 800736, 0, 414720, 0xf5ca48b4
+0, 12, 12, 1, 414720, 0x3170c2f0
1, 19126, 19126, 1472, 5888, 0x1a5371e8
-0, 867464, 867464, 0, 414720, 0x24700f94
+0, 13, 13, 1, 414720, 0x8d818956
1, 20598, 20598, 1472, 5888, 0x37e29b21
-0, 934192, 934192, 0, 414720, 0xb0bfe451
+0, 14, 14, 1, 414720, 0x16775d71
1, 22070, 22070, 1462, 5848, 0x70065769
-0, 1000920, 1000920, 0, 414720, 0x00e9f3d1
+0, 15, 15, 1, 414720, 0x63016ce1
1, 23532, 23532, 1472, 5888, 0xaf624f3d
-0, 1067648, 1067648, 0, 414720, 0x0efbffd1
+0, 16, 16, 1, 414720, 0x2f94792c
1, 25004, 25004, 1472, 5888, 0x8f5e5b57
-0, 1134376, 1134376, 0, 414720, 0x2ecdfc8d
+0, 17, 17, 1, 414720, 0x37f67725
1, 26476, 26476, 1472, 5888, 0x93545968
-0, 1201104, 1201104, 0, 414720, 0x94b531fc
+0, 18, 18, 1, 414720, 0xeb95adb1
1, 27948, 27948, 1472, 5888, 0x915f268f
-0, 1267832, 1267832, 0, 414720, 0x2c2579f8
+0, 19, 19, 1, 414720, 0xbf32f6df
1, 29420, 29420, 1472, 5888, 0x9cd48ac4
-0, 1334560, 1334560, 0, 414720, 0x6c7ecfb8
+0, 20, 20, 1, 414720, 0x242f4d09
1, 30892, 30892, 1472, 5888, 0x812c8e13
-0, 1401288, 1401288, 0, 414720, 0x08982527
+0, 21, 21, 1, 414720, 0x28a2a3b9
1, 32364, 32364, 1472, 5888, 0xe794a2a7
-0, 1468016, 1468016, 0, 414720, 0x5c0161b3
+0, 22, 22, 1, 414720, 0x895de0a6
1, 33836, 33836, 1472, 5888, 0x4a056e4b
-0, 1534744, 1534744, 0, 414720, 0x453ce413
+0, 23, 23, 1, 414720, 0xd3b46447
1, 35308, 35308, 1472, 5888, 0xa3589992
-0, 1601472, 1601472, 0, 414720, 0x634e36b2
+0, 24, 24, 1, 414720, 0x3bbfb7d1
1, 36780, 36780, 1472, 5888, 0x19ea7ec5
-0, 1668200, 1668200, 0, 414720, 0x401a683a
+0, 25, 25, 1, 414720, 0x0a5ee9ad
1, 38252, 38252, 1472, 5888, 0x422d5097
-0, 1734928, 1734928, 0, 414720, 0x3c5f442e
+0, 26, 26, 1, 414720, 0xaabac502
1, 39724, 39724, 1472, 5888, 0xc9fd963f
-0, 1801656, 1801656, 0, 414720, 0x075ef787
+0, 27, 27, 1, 414720, 0x0951779d
1, 41196, 41196, 1472, 5888, 0xc556a5ea
-0, 1868384, 1868384, 0, 414720, 0x8501a04f
+0, 28, 28, 1, 414720, 0x150e2073
1, 42668, 42668, 1472, 5888, 0x51557e0f
-0, 1935112, 1935112, 0, 414720, 0x3620093b
+0, 29, 29, 1, 414720, 0xb86d87ae
1, 44140, 44140, 1462, 5848, 0x4903ad21
-0, 2001840, 2001840, 0, 414720, 0xa42d9480
+0, 30, 30, 1, 414720, 0x135411da
1, 45602, 45602, 1472, 5888, 0xb1c85e85
-0, 2068568, 2068568, 0, 414720, 0x09b150b4
+0, 31, 31, 1, 414720, 0x9c8fcda5
1, 47074, 47074, 1472, 5888, 0x68963d65
-0, 2135296, 2135296, 0, 414720, 0xcad407f0
+0, 32, 32, 1, 414720, 0xb7ba838e
1, 48546, 48546, 1472, 5888, 0x62a3124e
-0, 2202024, 2202024, 0, 414720, 0x69e5eecd
+0, 33, 33, 1, 414720, 0x7ef869e1
1, 50018, 50018, 1472, 5888, 0x4ff1878f
-0, 2268752, 2268752, 0, 414720, 0xb92ad2d9
+0, 34, 34, 1, 414720, 0xf9764d47
1, 51490, 51490, 1472, 5888, 0x8b09ac18
-0, 2335480, 2335480, 0, 414720, 0xc78eaf29
+0, 35, 35, 1, 414720, 0xe6c72872
1, 52962, 52962, 1472, 5888, 0x67d85338
-0, 2402208, 2402208, 0, 414720, 0x47c3fa91
+0, 36, 36, 1, 414720, 0xb95b73b8
1, 54434, 54434, 1472, 5888, 0x82eca0a6
-0, 2468936, 2468936, 0, 414720, 0x8847b7b8
+0, 37, 37, 1, 414720, 0xa19e3221
1, 55906, 55906, 1472, 5888, 0x81a17eb8
-0, 2535664, 2535664, 0, 414720, 0x864cab2f
+0, 38, 38, 1, 414720, 0xc0be27cd
1, 57378, 57378, 1472, 5888, 0x7108478c
-0, 2602392, 2602392, 0, 414720, 0x78d653e2
+0, 39, 39, 1, 414720, 0xe97cd1a9
1, 58850, 58850, 1472, 5888, 0xbfc18b09
-0, 2669120, 2669120, 0, 414720, 0xda15cbd2
+0, 40, 40, 1, 414720, 0xb6524a34
1, 60322, 60322, 1472, 5888, 0xad93711f
-0, 2735848, 2735848, 0, 414720, 0xdf9ce28a
+0, 41, 41, 1, 414720, 0x61a1607b
1, 61794, 61794, 1472, 5888, 0xf8d25e39
-0, 2802576, 2802576, 0, 414720, 0xe88c49ca
+0, 42, 42, 1, 414720, 0x1dd9c606
1, 63266, 63266, 1472, 5888, 0x41edd04e
-0, 2869304, 2869304, 0, 414720, 0xd6bcbc07
+0, 43, 43, 1, 414720, 0xe2e736fa
1, 64738, 64738, 1472, 5888, 0xa6557ee2
-0, 2936032, 2936032, 0, 414720, 0xf0b4a7bf
+0, 44, 44, 1, 414720, 0x25b922d9
1, 66210, 66210, 1462, 5848, 0xc14d5456
-0, 3002760, 3002760, 0, 414720, 0x74f9bfbf
+0, 45, 45, 1, 414720, 0xbc023b36
1, 67672, 67672, 1472, 5888, 0x20a7821f
-0, 3069488, 3069488, 0, 414720, 0x904ce103
+0, 46, 46, 1, 414720, 0x39bb5cdf
1, 69144, 69144, 1472, 5888, 0x9f1a8f9d
-0, 3136216, 3136216, 0, 414720, 0xca877e4a
+0, 47, 47, 1, 414720, 0xf83bfc4f
1, 70616, 70616, 1472, 5888, 0x2f3c6cc8
-0, 3202944, 3202944, 0, 414720, 0x588effd6
+0, 48, 48, 1, 414720, 0x3eae7f36
1, 72088, 72088, 1472, 5888, 0x757c894a
-0, 3269672, 3269672, 0, 414720, 0x6dff8b71
+0, 49, 49, 1, 414720, 0x8cf80c32
1, 73560, 73560, 1472, 5888, 0x483e98bb
-0, 3336400, 3336400, 0, 414720, 0xbeaae788
+0, 50, 50, 1, 414720, 0xbc576c03
1, 75032, 75032, 1472, 5888, 0x84289c75
-0, 3403128, 3403128, 0, 414720, 0x1a4d1242
+0, 51, 51, 1, 414720, 0x28b79ab1
1, 76504, 76504, 1472, 5888, 0xf79d5a91
-0, 3469856, 3469856, 0, 414720, 0x4ae98ea0
+0, 52, 52, 1, 414720, 0x15da1138
1, 77976, 77976, 1472, 5888, 0x395b5228
-0, 3536584, 3536584, 0, 414720, 0x41ed6d22
+0, 53, 53, 1, 414720, 0x345ff676
1, 79448, 79448, 1472, 5888, 0x9c937a14
-0, 3603312, 3603312, 0, 414720, 0x486e70aa
+0, 54, 54, 1, 414720, 0x0108f909
1, 80920, 80920, 1472, 5888, 0x40c169cf
-0, 3670040, 3670040, 0, 414720, 0xfddc103e
+0, 55, 55, 1, 414720, 0x57459616
1, 82392, 82392, 1472, 5888, 0x3e7f99b0
-0, 3736768, 3736768, 0, 414720, 0x8620f03e
+0, 56, 56, 1, 414720, 0x2f497782
1, 83864, 83864, 1472, 5888, 0xd4de993e
-0, 3803496, 3803496, 0, 414720, 0x0e4ec273
+0, 57, 57, 1, 414720, 0xb72b4f79
1, 85336, 85336, 1472, 5888, 0xae856b09
-0, 3870224, 3870224, 0, 414720, 0xb2298b3e
+0, 58, 58, 1, 414720, 0x2bfd1967
1, 86808, 86808, 1472, 5888, 0xa2369c95
-0, 3936952, 3936952, 0, 414720, 0xb4f50176
+0, 59, 59, 1, 414720, 0x974a99cd
1, 88280, 88280, 1462, 5848, 0x992d516b
-0, 4003680, 4003680, 0, 414720, 0xb9c7a495
+0, 60, 60, 1, 414720, 0x5f5f4129
1, 89742, 89742, 1472, 5888, 0xcd785ba9
-0, 4070408, 4070408, 0, 414720, 0xed270702
+0, 61, 61, 1, 414720, 0x51ad9df4
1, 91214, 91214, 1472, 5888, 0x55ea3bce
-0, 4137136, 4137136, 0, 414720, 0x98b72586
+0, 62, 62, 1, 414720, 0xd6e5c16c
1, 92686, 92686, 1472, 5888, 0xf06d4bbf
-0, 4203864, 4203864, 0, 414720, 0xd8977cb1
+0, 63, 63, 1, 414720, 0xd8751bda
1, 94158, 94158, 1472, 5888, 0x2a9d4c1a
-0, 4270592, 4270592, 0, 414720, 0xff3d3851
+0, 64, 64, 1, 414720, 0x216ed6f3
1, 95630, 95630, 1472, 5888, 0xd5e348a3
-0, 4337320, 4337320, 0, 414720, 0x7e4f0424
+0, 65, 65, 1, 414720, 0x63a0a67d
1, 97102, 97102, 1472, 5888, 0x6431a24c
-0, 4404048, 4404048, 0, 414720, 0xa9e75006
+0, 66, 66, 1, 414720, 0xe4f4eb0f
1, 98574, 98574, 1472, 5888, 0x41f9908c
-0, 4470776, 4470776, 0, 414720, 0x8f98cba9
+0, 67, 67, 1, 414720, 0xa1665ef8
1, 100046, 100046, 1472, 5888, 0x0ed99656
-0, 4537504, 4537504, 0, 414720, 0x25ecd620
+0, 68, 68, 1, 414720, 0xc3116dfd
1, 101518, 101518, 1472, 5888, 0x635a6392
-0, 4604232, 4604232, 0, 414720, 0x78cf5c58
+0, 69, 69, 1, 414720, 0x3213fd70
1, 102990, 102990, 1472, 5888, 0x690c750c
-0, 4670960, 4670960, 0, 414720, 0x3fb4b81a
+0, 70, 70, 1, 414720, 0x2af76048
1, 104462, 104462, 1472, 5888, 0xf9d97b23
-0, 4737688, 4737688, 0, 414720, 0xd7b655fa
+0, 71, 71, 1, 414720, 0x3570085d
1, 105934, 105934, 1472, 5888, 0x75e1606b
-0, 4804416, 4804416, 0, 414720, 0xd9158db3
+0, 72, 72, 1, 414720, 0x2a7c3c39
1, 107406, 107406, 1472, 5888, 0x1bcb43b0
-0, 4871144, 4871144, 0, 414720, 0x2e651852
+0, 73, 73, 1, 414720, 0xd8a6ba7e
1, 108878, 108878, 1472, 5888, 0x48c295cb
-0, 4937872, 4937872, 0, 414720, 0x9f9adb64
+0, 74, 74, 1, 414720, 0x48107b4d
1, 110350, 110350, 1462, 5848, 0xe47f7b5d
-0, 5004600, 5004600, 0, 414720, 0xe9d16e81
+0, 75, 75, 1, 414720, 0x653a0936
1, 111812, 111812, 1472, 5888, 0x20be7f3e
-0, 5071328, 5071328, 0, 414720, 0xbe73daf5
+0, 76, 76, 1, 414720, 0xf68c77ab
1, 113284, 113284, 1472, 5888, 0x8c2428c4
-0, 5138056, 5138056, 0, 414720, 0x3d164329
+0, 77, 77, 1, 414720, 0xa5ecde84
1, 114756, 114756, 1472, 5888, 0x851379af
-0, 5204784, 5204784, 0, 414720, 0x1d5a9bc8
+0, 78, 78, 1, 414720, 0xaec33ca1
1, 116228, 116228, 1472, 5888, 0x5916647d
-0, 5271512, 5271512, 0, 414720, 0x8e8debbe
+0, 79, 79, 1, 414720, 0x26e68740
1, 117700, 117700, 1472, 5888, 0xef9c6281
-0, 5338240, 5338240, 0, 414720, 0x4e7a2bf0
+0, 80, 80, 1, 414720, 0xac09bfa5
1, 119172, 119172, 1472, 5888, 0x49660d32
-0, 5404968, 5404968, 0, 414720, 0x4a13804d
+0, 81, 81, 1, 414720, 0xed5111b2
1, 120644, 120644, 1472, 5888, 0x62cf36a1
-0, 5471696, 5471696, 0, 414720, 0x5dd188d8
+0, 82, 82, 1, 414720, 0x38041c98
1, 122116, 122116, 1472, 5888, 0x56dff39c
-0, 5538424, 5538424, 0, 414720, 0xbe7f4963
+0, 83, 83, 1, 414720, 0x76fbde1d
1, 123588, 123588, 1472, 5888, 0x4e6b5b02
-0, 5605152, 5605152, 0, 414720, 0xcff3b767
+0, 84, 84, 1, 414720, 0x3ae64b7d
1, 125060, 125060, 1472, 5888, 0xb8697067
-0, 5671880, 5671880, 0, 414720, 0xbbd3afa0
+0, 85, 85, 1, 414720, 0xb05f4da2
1, 126532, 126532, 1472, 5888, 0xcb4e2706
-0, 5738608, 5738608, 0, 414720, 0xaf9dec62
+0, 86, 86, 1, 414720, 0x65769088
1, 128004, 128004, 1472, 5888, 0x6eaa9669
-0, 5805336, 5805336, 0, 414720, 0xc74816a1
+0, 87, 87, 1, 414720, 0xbc45ba59
1, 129476, 129476, 1472, 5888, 0xfd9d7dba
-0, 5872064, 5872064, 0, 414720, 0x51488bfc
+0, 88, 88, 1, 414720, 0x8c893436
1, 130948, 130948, 1472, 5888, 0xfe137923
-0, 5938792, 5938792, 0, 414720, 0x68c10a2c
+0, 89, 89, 1, 414720, 0x1d5ebe7f
1, 132420, 132420, 1462, 5848, 0x1931296f
-0, 6005520, 6005520, 0, 414720, 0x10179c4e
+0, 90, 90, 1, 414720, 0xa9cd5a53
1, 133882, 133882, 1472, 5888, 0xa09a7c03
-0, 6072248, 6072248, 0, 414720, 0x18d559b7
+0, 91, 91, 1, 414720, 0xc69e1fb0
1, 135354, 135354, 1472, 5888, 0xded9802d
-0, 6138976, 6138976, 0, 414720, 0x8257aa55
+0, 92, 92, 1, 414720, 0xb28a77ec
1, 136826, 136826, 1472, 5888, 0x9f6723b7
-0, 6205704, 6205704, 0, 414720, 0x9ea24501
+0, 93, 93, 1, 414720, 0x834f1219
1, 138298, 138298, 1472, 5888, 0x3ad02476
-0, 6272432, 6272432, 0, 414720, 0x238605cc
+0, 94, 94, 1, 414720, 0xba34c848
1, 139770, 139770, 1472, 5888, 0xa1647e32
-0, 6339160, 6339160, 0, 414720, 0xb552deaa
+0, 95, 95, 1, 414720, 0x80e590c1
1, 141242, 141242, 1472, 5888, 0x728672da
-0, 6405888, 6405888, 0, 414720, 0x07c3348d
+0, 96, 96, 1, 414720, 0x7146dc31
1, 142714, 142714, 1472, 5888, 0x9c098090
-0, 6472616, 6472616, 0, 414720, 0x82f4f9b0
+0, 97, 97, 1, 414720, 0x05929a5f
1, 144186, 144186, 1472, 5888, 0x32a65ea3
-0, 6539344, 6539344, 0, 414720, 0xf5d76bc5
+0, 98, 98, 1, 414720, 0x721708c5
1, 145658, 145658, 1472, 5888, 0xdde141d5
-0, 6606072, 6606072, 0, 414720, 0x34b3a1e6
+0, 99, 99, 1, 414720, 0x4aa83cbe
1, 147130, 147130, 1472, 5888, 0x816c5fb4
-0, 6672800, 6672800, 0, 414720, 0xda25e11b
+0, 100, 100, 1, 414720, 0x221d799f
1, 148602, 148602, 1472, 5888, 0x75e17581
-0, 6739528, 6739528, 0, 414720, 0x2b19936b
+0, 101, 101, 1, 414720, 0xe9e72bec
1, 150074, 150074, 1472, 5888, 0x59035469
-0, 6806256, 6806256, 0, 414720, 0xe91f9f73
+0, 102, 102, 1, 414720, 0xb6a3385d
1, 151546, 151546, 1472, 5888, 0x20d340cd
-0, 6872984, 6872984, 0, 414720, 0x48d09aab
+0, 103, 103, 1, 414720, 0x795a3362
1, 153018, 153018, 1472, 5888, 0xa89a8790
-0, 6939712, 6939712, 0, 414720, 0xac42bf83
+0, 104, 104, 1, 414720, 0x770b58d9
1, 154490, 154490, 1462, 5848, 0x12b74c34
-0, 7006440, 7006440, 0, 414720, 0x2d8ca14e
+0, 105, 105, 1, 414720, 0xb5563ce4
1, 155952, 155952, 1472, 5888, 0xcd3b3bef
-0, 7073168, 7073168, 0, 414720, 0xe65462fd
+0, 106, 106, 1, 414720, 0x0c1a00cc
1, 157424, 157424, 1472, 5888, 0xe5c44bf3
-0, 7139896, 7139896, 0, 414720, 0xe5bfc929
+0, 107, 107, 1, 414720, 0xcbd467fd
1, 158896, 158896, 1472, 5888, 0xb82c4fa4
-0, 7206624, 7206624, 0, 414720, 0x66784c58
+0, 108, 108, 1, 414720, 0x3bccec29
1, 160368, 160368, 1472, 5888, 0x05b2443a
-0, 7273352, 7273352, 0, 414720, 0x70dbeca8
+0, 109, 109, 1, 414720, 0x92d78db7
1, 161840, 161840, 1472, 5888, 0x78028172
1, 163312, 163312, 1472, 5888, 0xdfcac19a
1, 164784, 164784, 1472, 5888, 0x0761a0b9
diff --git a/tests/ref/fate/iv8-demux b/tests/ref/fate/iv8-demux
index fab4bb0d5f..f13e691944 100644
--- a/tests/ref/fate/iv8-demux
+++ b/tests/ref/fate/iv8-demux
@@ -20,7 +20,7 @@
0, 61200, 64799, 0, 20877, 0xe1623e01
0, 64799, 68399, 0, 20933, 0x19906564
0, 68399, 72000, 0, 20891, 0x3d064fd3
-0, 72000, 75600, 3600, 20834, 0xcb774dbc
-0, 75600, 79200, 3600, 20870, 0xbc536589
-0, 79200, 82800, 3600, 21421, 0xc99a68e4
-0, 82800, 86400, 3600, 12869, 0x5684e304
+0, 72000, 75600, 0, 20834, 0xcb774dbc
+0, 75600, 79200, 0, 20870, 0xbc536589
+0, 79200, 82800, 0, 21421, 0xc99a68e4
+0, 82800, 86400, 0, 12869, 0x5684e304
diff --git a/tests/ref/fate/mapchan-6ch-extract-2 b/tests/ref/fate/mapchan-6ch-extract-2
new file mode 100644
index 0000000000..98c854069c
--- /dev/null
+++ b/tests/ref/fate/mapchan-6ch-extract-2
@@ -0,0 +1,2 @@
+6f091fe8c0be88c75921731dc9f74314
+5c2d162b9024329eb367295d37b8ca0a
diff --git a/tests/ref/fate/mapchan-6ch-extract-2-downmix-mono b/tests/ref/fate/mapchan-6ch-extract-2-downmix-mono
new file mode 100644
index 0000000000..f42de0c954
--- /dev/null
+++ b/tests/ref/fate/mapchan-6ch-extract-2-downmix-mono
@@ -0,0 +1 @@
+959645ed73e6d08d8f1e947eac5d0b92
diff --git a/tests/ref/fate/mapchan-silent-mono b/tests/ref/fate/mapchan-silent-mono
new file mode 100644
index 0000000000..a867e3b432
--- /dev/null
+++ b/tests/ref/fate/mapchan-silent-mono
@@ -0,0 +1 @@
+4f5148f08587a4b9794aa52aec7852ac
diff --git a/tests/ref/fate/mjpegb b/tests/ref/fate/mjpegb
index e4887f4af9..ef8a00b23e 100644
--- a/tests/ref/fate/mjpegb
+++ b/tests/ref/fate/mjpegb
@@ -1,11 +1,11 @@
-#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
+#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
diff --git a/tests/ref/fate/motionpixels b/tests/ref/fate/motionpixels
index 97d8edfb43..c875275b89 100644
--- a/tests/ref/fate/motionpixels
+++ b/tests/ref/fate/motionpixels
@@ -1,112 +1,112 @@
#tb 0: 66667/1000000
0, 0, 0, 1, 230400, 0xee05b509
-0, 1, 1, 1, 230400, 0x71048964
-0, 2, 2, 1, 230400, 0x2ebe4ba1
-0, 3, 3, 1, 230400, 0xeedc45a6
-0, 4, 4, 1, 230400, 0x218e8656
-0, 5, 5, 1, 230400, 0x5792b17e
-0, 6, 6, 1, 230400, 0x51b0a062
-0, 7, 7, 1, 230400, 0x5dc4fd9c
-0, 8, 8, 1, 230400, 0x9b0261b1
-0, 9, 9, 1, 230400, 0x35086ffc
-0, 10, 10, 1, 230400, 0xcf9352ff
-0, 11, 11, 1, 230400, 0x0b5139a1
-0, 12, 12, 1, 230400, 0x22e8a31e
-0, 13, 13, 1, 230400, 0x82f61a81
-0, 14, 14, 1, 230400, 0xc5741ab5
-0, 15, 15, 1, 230400, 0xb5e7b2ff
-0, 16, 16, 1, 230400, 0x583289ca
-0, 17, 17, 1, 230400, 0xee52afbb
-0, 18, 18, 1, 230400, 0xfdb4dc1a
-0, 19, 19, 1, 230400, 0xf5ce99c0
-0, 20, 20, 1, 230400, 0xae222255
-0, 21, 21, 1, 230400, 0xc4f4439d
-0, 22, 22, 1, 230400, 0x1758f224
-0, 23, 23, 1, 230400, 0x5f517926
-0, 24, 24, 1, 230400, 0x73a8bed8
-0, 25, 25, 1, 230400, 0x7ef8410c
-0, 26, 26, 1, 230400, 0xfcb693c7
-0, 27, 27, 1, 230400, 0x5292832e
-0, 28, 28, 1, 230400, 0x591261d7
-0, 29, 29, 1, 230400, 0x28cca691
-0, 30, 30, 1, 230400, 0x22cf40ef
-0, 31, 31, 1, 230400, 0x517b10f9
-0, 32, 32, 1, 230400, 0x8197e939
-0, 33, 33, 1, 230400, 0x9654ffdb
-0, 34, 34, 1, 230400, 0x803f10dd
-0, 35, 35, 1, 230400, 0xff9f67af
-0, 36, 36, 1, 230400, 0x4847244c
-0, 37, 37, 1, 230400, 0xff31638f
-0, 38, 38, 1, 230400, 0x9692def5
-0, 39, 39, 1, 230400, 0x67f0a5fb
-0, 40, 40, 1, 230400, 0xce192074
-0, 41, 41, 1, 230400, 0x33d6c4a5
-0, 42, 42, 1, 230400, 0xaf7b5a03
-0, 43, 43, 1, 230400, 0xd956b0c0
-0, 44, 44, 1, 230400, 0x58ff1a65
-0, 45, 45, 1, 230400, 0x044758a1
-0, 46, 46, 1, 230400, 0xe8045b65
-0, 47, 47, 1, 230400, 0xf504c5fb
-0, 48, 48, 1, 230400, 0x17a9a2b0
-0, 49, 49, 1, 230400, 0xf68bab8c
-0, 50, 50, 1, 230400, 0xd06dd0cb
-0, 51, 51, 1, 230400, 0xc47d2673
-0, 52, 52, 1, 230400, 0x2112f291
-0, 53, 53, 1, 230400, 0x4c07c83c
-0, 54, 54, 1, 230400, 0x22ca0113
-0, 55, 55, 1, 230400, 0x25b0c8b1
-0, 56, 56, 1, 230400, 0xb6afc645
-0, 57, 57, 1, 230400, 0x663b1c09
-0, 58, 58, 1, 230400, 0x9006ef1f
-0, 59, 59, 1, 230400, 0x54f81b11
-0, 60, 60, 1, 230400, 0x456b79f2
-0, 61, 61, 1, 230400, 0xb08f24d0
-0, 62, 62, 1, 230400, 0x652ad875
-0, 63, 63, 1, 230400, 0xc6ecd67f
-0, 64, 64, 1, 230400, 0x78dad721
-0, 65, 65, 1, 230400, 0x1d2a4f71
-0, 66, 66, 1, 230400, 0xc71721d1
-0, 67, 67, 1, 230400, 0x64e3a7df
-0, 68, 68, 1, 230400, 0x3bb18e71
-0, 69, 69, 1, 230400, 0xb571d58c
-0, 70, 70, 1, 230400, 0xdae6ed5c
-0, 71, 71, 1, 230400, 0xdd91504b
-0, 72, 72, 1, 230400, 0xd5a807a5
-0, 73, 73, 1, 230400, 0x39a67b03
-0, 74, 74, 1, 230400, 0xe245c8ac
-0, 75, 75, 1, 230400, 0x5b0d7858
-0, 76, 76, 1, 230400, 0x501b8097
-0, 77, 77, 1, 230400, 0xf7b10d48
-0, 78, 78, 1, 230400, 0x769db0bd
-0, 79, 79, 1, 230400, 0x600f1086
-0, 80, 80, 1, 230400, 0x874f5565
-0, 81, 81, 1, 230400, 0x14322f73
-0, 82, 82, 1, 230400, 0x0eaa36a5
-0, 83, 83, 1, 230400, 0x97178d13
-0, 84, 84, 1, 230400, 0xd4c7a0d1
-0, 85, 85, 1, 230400, 0x1d424ec8
-0, 86, 86, 1, 230400, 0x695ad8d9
-0, 87, 87, 1, 230400, 0xe7cc3ecf
-0, 88, 88, 1, 230400, 0xfd25fd8c
-0, 89, 89, 1, 230400, 0xef4bc203
-0, 90, 90, 1, 230400, 0x2a113bec
-0, 91, 91, 1, 230400, 0x6e7ad403
-0, 92, 92, 1, 230400, 0xc6714d2b
-0, 93, 93, 1, 230400, 0x77df8ba6
-0, 94, 94, 1, 230400, 0xcd283106
-0, 95, 95, 1, 230400, 0xcb95676f
-0, 96, 96, 1, 230400, 0xb0b70393
-0, 97, 97, 1, 230400, 0x4c40bd63
-0, 98, 98, 1, 230400, 0x557e8ccf
-0, 99, 99, 1, 230400, 0x9d5934b2
-0, 100, 100, 1, 230400, 0x43c1793f
-0, 101, 101, 1, 230400, 0x0232361e
-0, 102, 102, 1, 230400, 0x92ed91e4
-0, 103, 103, 1, 230400, 0x99769789
-0, 104, 104, 1, 230400, 0xd49c2c5b
-0, 105, 105, 1, 230400, 0x66b03495
-0, 106, 106, 1, 230400, 0xb88a4658
-0, 107, 107, 1, 230400, 0x9c21e4c2
-0, 108, 108, 1, 230400, 0xb343f372
-0, 109, 109, 1, 230400, 0xf7f1e588
-0, 110, 110, 1, 230400, 0x9682bdb2
+0, 1, 1, 1, 230400, 0x23b28b24
+0, 2, 2, 1, 230400, 0x4a4d6007
+0, 3, 3, 1, 230400, 0xe5550693
+0, 4, 4, 1, 230400, 0xad4905a3
+0, 5, 5, 1, 230400, 0xc83b9030
+0, 6, 6, 1, 230400, 0xbc73a26a
+0, 7, 7, 1, 230400, 0x7065ff8a
+0, 8, 8, 1, 230400, 0x65bc7675
+0, 9, 9, 1, 230400, 0xc245737f
+0, 10, 10, 1, 230400, 0x77e6c1ed
+0, 11, 11, 1, 230400, 0x6761d73a
+0, 12, 12, 1, 230400, 0x6207b8f8
+0, 13, 13, 1, 230400, 0xa3691862
+0, 14, 14, 1, 230400, 0x83fbfc24
+0, 15, 15, 1, 230400, 0xe1c34ef0
+0, 16, 16, 1, 230400, 0xd7b50e8e
+0, 17, 17, 1, 230400, 0x5b5e2f29
+0, 18, 18, 1, 230400, 0xca7825e5
+0, 19, 19, 1, 230400, 0xb4c7b4a9
+0, 20, 20, 1, 230400, 0xc35513b5
+0, 21, 21, 1, 230400, 0x36117834
+0, 22, 22, 1, 230400, 0x8af035d7
+0, 23, 23, 1, 230400, 0x25c50a2e
+0, 24, 24, 1, 230400, 0x52f54107
+0, 25, 25, 1, 230400, 0xaddca5f9
+0, 26, 26, 1, 230400, 0x3b1fe64c
+0, 27, 27, 1, 230400, 0xcd52de15
+0, 28, 28, 1, 230400, 0xfaa4f7fa
+0, 29, 29, 1, 230400, 0xce5b3221
+0, 30, 30, 1, 230400, 0xb2c3d9ba
+0, 31, 31, 1, 230400, 0xf6ec95e9
+0, 32, 32, 1, 230400, 0xfa7ebd18
+0, 33, 33, 1, 230400, 0xb6e50465
+0, 34, 34, 1, 230400, 0xd48ceee9
+0, 35, 35, 1, 230400, 0x333605cf
+0, 36, 36, 1, 230400, 0xe7ccf362
+0, 37, 37, 1, 230400, 0x39f07b83
+0, 38, 38, 1, 230400, 0xd6450b2e
+0, 39, 39, 1, 230400, 0x2029ec12
+0, 40, 40, 1, 230400, 0x15d7762e
+0, 41, 41, 1, 230400, 0x0d69506d
+0, 42, 42, 1, 230400, 0xcf2ef066
+0, 43, 43, 1, 230400, 0x2c145df0
+0, 44, 44, 1, 230400, 0x153d7fe7
+0, 45, 45, 1, 230400, 0x98846aea
+0, 46, 46, 1, 230400, 0xc0347d4e
+0, 47, 47, 1, 230400, 0xda7a58a8
+0, 48, 48, 1, 230400, 0x5724c05e
+0, 49, 49, 1, 230400, 0x9805237b
+0, 50, 50, 1, 230400, 0x2f5f0d70
+0, 51, 51, 1, 230400, 0xb1271014
+0, 52, 52, 1, 230400, 0x6cb29d9c
+0, 53, 53, 1, 230400, 0x4f91fdb4
+0, 54, 54, 1, 230400, 0x274b3f30
+0, 55, 55, 1, 230400, 0xdfc508e8
+0, 56, 56, 1, 230400, 0x16e974ef
+0, 57, 57, 1, 230400, 0x98fae336
+0, 58, 58, 1, 230400, 0xbf265f84
+0, 59, 59, 1, 230400, 0x75cf323b
+0, 60, 60, 1, 230400, 0xdb3481f7
+0, 61, 61, 1, 230400, 0xb8453df5
+0, 62, 62, 1, 230400, 0xd4598deb
+0, 63, 63, 1, 230400, 0x4dc19cf6
+0, 64, 64, 1, 230400, 0xa8d1b340
+0, 65, 65, 1, 230400, 0x1f98aa27
+0, 66, 66, 1, 230400, 0x505c0687
+0, 67, 67, 1, 230400, 0x86179997
+0, 68, 68, 1, 230400, 0x7e28cc7d
+0, 69, 69, 1, 230400, 0x0a81c0bc
+0, 70, 70, 1, 230400, 0x71cc0c9a
+0, 71, 71, 1, 230400, 0x8c01340f
+0, 72, 72, 1, 230400, 0x4afea48a
+0, 73, 73, 1, 230400, 0x7dc88c26
+0, 74, 74, 1, 230400, 0x4155fbbb
+0, 75, 75, 1, 230400, 0xb1ec2d6b
+0, 76, 76, 1, 230400, 0x6986ee65
+0, 77, 77, 1, 230400, 0x8ff9a311
+0, 78, 78, 1, 230400, 0x36c21c52
+0, 79, 79, 1, 230400, 0xdb0fad2e
+0, 80, 80, 1, 230400, 0xc7a83c34
+0, 81, 81, 1, 230400, 0x8bd97389
+0, 82, 82, 1, 230400, 0x6dd8f0d6
+0, 83, 83, 1, 230400, 0x228e2076
+0, 84, 84, 1, 230400, 0x22544f03
+0, 85, 85, 1, 230400, 0x938084ef
+0, 86, 86, 1, 230400, 0xb002cd81
+0, 87, 87, 1, 230400, 0xe58d3339
+0, 88, 88, 1, 230400, 0x02470a69
+0, 89, 89, 1, 230400, 0xa5c51328
+0, 90, 90, 1, 230400, 0x1a6e37ec
+0, 91, 91, 1, 230400, 0x8f40563c
+0, 92, 92, 1, 230400, 0x30f9095f
+0, 93, 93, 1, 230400, 0x6227f0e8
+0, 94, 94, 1, 230400, 0xdca3596d
+0, 95, 95, 1, 230400, 0x30938988
+0, 96, 96, 1, 230400, 0x28bdc666
+0, 97, 97, 1, 230400, 0x6c534265
+0, 98, 98, 1, 230400, 0x6ea56d2d
+0, 99, 99, 1, 230400, 0x125f3808
+0, 100, 100, 1, 230400, 0x92a41d2f
+0, 101, 101, 1, 230400, 0xf1cf2410
+0, 102, 102, 1, 230400, 0x1bea1204
+0, 103, 103, 1, 230400, 0x817e60f9
+0, 104, 104, 1, 230400, 0x9f6c720e
+0, 105, 105, 1, 230400, 0xf1a43a2f
+0, 106, 106, 1, 230400, 0x5e5e0b7f
+0, 107, 107, 1, 230400, 0x7f526bcf
+0, 108, 108, 1, 230400, 0x63a846ed
+0, 109, 109, 1, 230400, 0x94400af9
+0, 110, 110, 1, 230400, 0x51f4241e
diff --git a/tests/ref/fate/mpeg2-field-enc b/tests/ref/fate/mpeg2-field-enc
index 079aae46b6..903adb56b8 100644
--- a/tests/ref/fate/mpeg2-field-enc
+++ b/tests/ref/fate/mpeg2-field-enc
@@ -1,32 +1,32 @@
-#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
+#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
diff --git a/tests/ref/fate/msvideo1-16bit b/tests/ref/fate/msvideo1-16bit
index fffdea294a..f5c0e64748 100644
--- a/tests/ref/fate/msvideo1-16bit
+++ b/tests/ref/fate/msvideo1-16bit
@@ -1,31 +1,31 @@
#tb 0: 33369/500000
-0, 0, 0, 1, 65712, 0x917e0076
-0, 1, 1, 1, 65712, 0xfe76fd1f
-0, 2, 2, 1, 65712, 0xd85820ee
-0, 3, 3, 1, 65712, 0x1b410f6e
-0, 4, 4, 1, 65712, 0x53c50436
-0, 5, 5, 1, 65712, 0xa191044d
-0, 6, 6, 1, 65712, 0xcf02ff1f
-0, 7, 7, 1, 65712, 0xc2abf85f
-0, 8, 8, 1, 65712, 0xe273087e
-0, 9, 9, 1, 65712, 0x087d0936
-0, 10, 10, 1, 65712, 0x4e4f2e96
-0, 11, 11, 1, 65712, 0x91b51896
-0, 12, 12, 1, 65712, 0x2798450e
-0, 13, 13, 1, 65712, 0x9fea1d06
-0, 14, 14, 1, 65712, 0xc64a2506
-0, 15, 15, 1, 65712, 0x0551fe07
-0, 16, 16, 1, 65712, 0xc64a042e
-0, 17, 17, 1, 65712, 0xf3680dc6
-0, 18, 18, 1, 65712, 0x2ea5356e
-0, 19, 19, 1, 65712, 0x0315ed3f
-0, 20, 20, 1, 65712, 0xc1d1f917
-0, 21, 21, 1, 65712, 0xc0f6e607
-0, 22, 22, 1, 65712, 0x5b0a092e
-0, 23, 23, 1, 65712, 0x1551f16f
-0, 24, 24, 1, 65712, 0x8440ee87
-0, 25, 25, 1, 65712, 0xf7581ae6
-0, 26, 26, 1, 65712, 0xee67037e
-0, 27, 27, 1, 65712, 0x4a212ca6
-0, 28, 28, 1, 65712, 0x693e0aa6
-0, 29, 29, 1, 65712, 0x13e31116
+0, 0, 0, 1, 65712, 0x03ff25b8
+0, 1, 1, 1, 65712, 0xfca02276
+0, 2, 2, 1, 65712, 0xd23646e4
+0, 3, 3, 1, 65712, 0x9ea43556
+0, 4, 4, 1, 65712, 0x47412948
+0, 5, 5, 1, 65712, 0x667230c9
+0, 6, 6, 1, 65712, 0x8224247a
+0, 7, 7, 1, 65712, 0x9c0f1d71
+0, 8, 8, 1, 65712, 0x4fbb2e11
+0, 9, 9, 1, 65712, 0x0e4a2e34
+0, 10, 10, 1, 65712, 0xd58954c8
+0, 11, 11, 1, 65712, 0x131d3e2c
+0, 12, 12, 1, 65712, 0x3b686bc7
+0, 13, 13, 1, 65712, 0xbea342a7
+0, 14, 14, 1, 65712, 0xbdff4ac7
+0, 15, 15, 1, 65712, 0x215e22ab
+0, 16, 16, 1, 65712, 0xa9f0295f
+0, 17, 17, 1, 65712, 0x46fb32f3
+0, 18, 18, 1, 65712, 0xd8be5bee
+0, 19, 19, 1, 65712, 0x526411b6
+0, 20, 20, 1, 65712, 0x53951e21
+0, 21, 21, 1, 65712, 0x54a70ab3
+0, 22, 22, 1, 65712, 0xcc872e7a
+0, 23, 23, 1, 65712, 0x06b2164c
+0, 24, 24, 1, 65712, 0x1ae5135f
+0, 25, 25, 1, 65712, 0x8d8a40b4
+0, 26, 26, 1, 65712, 0x3d732893
+0, 27, 27, 1, 65712, 0x239a52a8
+0, 28, 28, 1, 65712, 0xf6bd2fc9
+0, 29, 29, 1, 65712, 0x40b336c4
diff --git a/tests/ref/fate/mtv b/tests/ref/fate/mtv
index e32f16e848..6e890579f9 100644
--- a/tests/ref/fate/mtv
+++ b/tests/ref/fate/mtv
@@ -1,135 +1,135 @@
#tb 0: 1/16
#tb 1: 1/44100
-0, 0, 0, 1, 18432, 0xbd7e0ac8
+0, 0, 0, 1, 18432, 0x28a25967
1, 0, 0, 1152, 417, 0xae1cc66a
1, 1152, 1152, 1152, 418, 0xdc3ec850
1, 2304, 2304, 1152, 418, 0x4e8ed05f
-0, 1, 1, 1, 18432, 0xbd7e0ac8
+0, 1, 1, 1, 18432, 0x28a25967
1, 3456, 3456, 1152, 418, 0xeb43d574
1, 4608, 4608, 1152, 418, 0x9357c91d
-0, 2, 2, 1, 18432, 0x902e0ab4
+0, 2, 2, 1, 18432, 0x1a1b5956
1, 5760, 5760, 1152, 418, 0x5306d16b
1, 6912, 6912, 1152, 418, 0x46e0d4da
1, 8064, 8064, 1152, 418, 0xac11ce79
-0, 3, 3, 1, 18432, 0xf1940b28
+0, 3, 3, 1, 18432, 0x684659c7
1, 9216, 9216, 1152, 418, 0xffdfc4ad
1, 10368, 10368, 1152, 418, 0xf8a8c2ff
-0, 4, 4, 1, 18432, 0x2c180ac8
+0, 4, 4, 1, 18432, 0x8944596a
1, 11520, 11520, 1152, 418, 0x2d66d83f
1, 12672, 12672, 1152, 418, 0x65c0da12
-0, 5, 5, 1, 18432, 0x2eae0b34
+0, 5, 5, 1, 18432, 0xa55159d3
1, 13824, 13824, 1152, 418, 0x0eafd20f
1, 14976, 14976, 1152, 418, 0x8c6dd949
1, 16128, 16128, 1152, 418, 0x9094c02d
-0, 6, 6, 1, 18432, 0x2eae0b34
+0, 6, 6, 1, 18432, 0xa55159d3
1, 17280, 17280, 1152, 418, 0xb47bd944
1, 18432, 18432, 1152, 418, 0x935ccce7
-0, 7, 7, 1, 18432, 0x2eae0b34
+0, 7, 7, 1, 18432, 0xa55159d3
1, 19584, 19584, 1152, 418, 0x6e3ed020
1, 20736, 20736, 1152, 418, 0x8922cd6c
1, 21888, 21888, 1152, 418, 0xe811c8f8
-0, 8, 8, 1, 18432, 0x2eae0b34
+0, 8, 8, 1, 18432, 0xa55159d3
1, 23040, 23040, 1152, 418, 0xb84adc72
1, 24192, 24192, 1152, 418, 0xa2bbc5f4
-0, 9, 9, 1, 18432, 0x2eae0b34
+0, 9, 9, 1, 18432, 0xa55159d3
1, 25344, 25344, 1152, 418, 0xec0cb67d
1, 26496, 26496, 1152, 418, 0x89d1d014
-0, 10, 10, 1, 18432, 0x2eae0b34
+0, 10, 10, 1, 18432, 0xa55159d3
1, 27648, 27648, 1152, 418, 0xfb5bc872
1, 28800, 28800, 1152, 417, 0x8bfcc7a0
1, 29952, 29952, 1152, 418, 0xeb4ac61b
-0, 11, 11, 1, 18432, 0x2eae0b34
+0, 11, 11, 1, 18432, 0xa55159d3
1, 31104, 31104, 1152, 418, 0xd3cbc3c4
1, 32256, 32256, 1152, 418, 0xa272d092
-0, 12, 12, 1, 18432, 0x2eae0b34
+0, 12, 12, 1, 18432, 0xa55159d3
1, 33408, 33408, 1152, 418, 0x611ec37e
1, 34560, 34560, 1152, 418, 0x70a3d423
1, 35712, 35712, 1152, 418, 0xeff9ccf4
-0, 13, 13, 1, 18432, 0x2eae0b34
+0, 13, 13, 1, 18432, 0xa55159d3
1, 36864, 36864, 1152, 418, 0x9788c65b
1, 38016, 38016, 1152, 418, 0xe9a8cb8c
-0, 14, 14, 1, 18432, 0x2eae0b34
+0, 14, 14, 1, 18432, 0xa55159d3
1, 39168, 39168, 1152, 418, 0x5834c300
1, 40320, 40320, 1152, 418, 0xa4b8cd3a
-0, 15, 15, 1, 18432, 0x2eae0b34
+0, 15, 15, 1, 18432, 0xa55159d3
1, 41472, 41472, 1152, 418, 0x6de2c7f9
1, 42624, 42624, 1152, 418, 0x961bbbf3
1, 43776, 43776, 1152, 418, 0x53edc13a
-0, 16, 16, 1, 18432, 0x2c180ac8
+0, 16, 16, 1, 18432, 0x8944596a
1, 44928, 44928, 1152, 418, 0x2fedc4b0
1, 46080, 46080, 1152, 418, 0xb756c18b
-0, 17, 17, 1, 18432, 0x2eae0b34
+0, 17, 17, 1, 18432, 0xa55159d3
1, 47232, 47232, 1152, 418, 0xaf0ed0e4
1, 48384, 48384, 1152, 418, 0x019fd3f0
1, 49536, 49536, 1152, 418, 0x6e29d83e
-0, 18, 18, 1, 18432, 0x2c180ac8
+0, 18, 18, 1, 18432, 0x8944596a
1, 50688, 50688, 1152, 418, 0x2ddad6bb
1, 51840, 51840, 1152, 418, 0xafefca99
-0, 19, 19, 1, 18432, 0x2eae0b34
+0, 19, 19, 1, 18432, 0xa55159d3
1, 52992, 52992, 1152, 418, 0x366ed013
1, 54144, 54144, 1152, 418, 0x532ac7e0
-0, 20, 20, 1, 18432, 0x2c180ac8
+0, 20, 20, 1, 18432, 0x8944596a
1, 55296, 55296, 1152, 418, 0x1d0cd1ce
1, 56448, 56448, 1152, 417, 0x572ad1e3
1, 57600, 57600, 1152, 418, 0x858cd91f
-0, 21, 21, 1, 18432, 0x2eae0b34
+0, 21, 21, 1, 18432, 0xa55159d3
1, 58752, 58752, 1152, 418, 0x82cacdfd
1, 59904, 59904, 1152, 418, 0xf4dcc6ed
-0, 22, 22, 1, 18432, 0x2c180ac8
+0, 22, 22, 1, 18432, 0x8944596a
1, 61056, 61056, 1152, 418, 0x2cf3ca72
1, 62208, 62208, 1152, 418, 0x5963c859
1, 63360, 63360, 1152, 418, 0xa667c53d
-0, 23, 23, 1, 18432, 0x2eae0b34
+0, 23, 23, 1, 18432, 0xa55159d3
1, 64512, 64512, 1152, 418, 0xb2f1d09c
1, 65664, 65664, 1152, 418, 0x2ec1c8d3
-0, 24, 24, 1, 18432, 0x2eae0b34
+0, 24, 24, 1, 18432, 0xa55159d3
1, 66816, 66816, 1152, 418, 0x5754d2e8
1, 67968, 67968, 1152, 418, 0x1956bdba
-0, 25, 25, 1, 18432, 0x2eae0b34
+0, 25, 25, 1, 18432, 0xa55159d3
1, 69120, 69120, 1152, 418, 0x3e18bd55
1, 70272, 70272, 1152, 418, 0xe4cfc339
1, 71424, 71424, 1152, 418, 0xb426c835
-0, 26, 26, 1, 18432, 0x2eae0b34
+0, 26, 26, 1, 18432, 0xa55159d3
1, 72576, 72576, 1152, 418, 0xd7b6cbcf
1, 73728, 73728, 1152, 418, 0x340ec315
-0, 27, 27, 1, 18432, 0x2eae0b34
+0, 27, 27, 1, 18432, 0xa55159d3
1, 74880, 74880, 1152, 418, 0x23a9baec
1, 76032, 76032, 1152, 418, 0x9f04cd01
-0, 28, 28, 1, 18432, 0x2eae0b34
+0, 28, 28, 1, 18432, 0xa55159d3
1, 77184, 77184, 1152, 418, 0xa80ec223
1, 78336, 78336, 1152, 418, 0x23d6bd5d
1, 79488, 79488, 1152, 418, 0xcb25cf5b
-0, 29, 29, 1, 18432, 0x2eae0b34
+0, 29, 29, 1, 18432, 0xa55159d3
1, 80640, 80640, 1152, 418, 0xccccc217
1, 81792, 81792, 1152, 418, 0x757abbfe
-0, 30, 30, 1, 18432, 0x2eae0b34
+0, 30, 30, 1, 18432, 0xa55159d3
1, 82944, 82944, 1152, 418, 0xa2e6cc68
1, 84096, 84096, 1152, 418, 0xdf77cc05
1, 85248, 85248, 1152, 417, 0xe9d2c5d5
-0, 31, 31, 1, 18432, 0x2eae0b34
+0, 31, 31, 1, 18432, 0xa55159d3
1, 86400, 86400, 1152, 418, 0x50dec174
1, 87552, 87552, 1152, 418, 0xf654b27e
-0, 32, 32, 1, 18432, 0x2c180ac8
+0, 32, 32, 1, 18432, 0x8944596a
1, 88704, 88704, 1152, 418, 0x4d8bc26e
1, 89856, 89856, 1152, 418, 0xccd2bf37
-0, 33, 33, 1, 18432, 0x2eae0b34
+0, 33, 33, 1, 18432, 0xa55159d3
1, 91008, 91008, 1152, 418, 0x6ce2c18a
1, 92160, 92160, 1152, 418, 0xb3cdcf0c
1, 93312, 93312, 1152, 418, 0x55eebe9a
-0, 34, 34, 1, 18432, 0x2c180ac8
+0, 34, 34, 1, 18432, 0x8944596a
1, 94464, 94464, 1152, 418, 0x9031c9ec
1, 95616, 95616, 1152, 418, 0xb037c49d
-0, 35, 35, 1, 18432, 0x2eae0b34
+0, 35, 35, 1, 18432, 0xa55159d3
1, 96768, 96768, 1152, 418, 0x377bcc78
1, 97920, 97920, 1152, 418, 0x3762c725
1, 99072, 99072, 1152, 418, 0x39afbd4d
-0, 36, 36, 1, 18432, 0x2c180ac8
+0, 36, 36, 1, 18432, 0x8944596a
1, 100224, 100224, 1152, 418, 0x655ed6cd
1, 101376, 101376, 1152, 418, 0x09aec202
-0, 37, 37, 1, 18432, 0x2eae0b34
+0, 37, 37, 1, 18432, 0xa55159d3
1, 102528, 102528, 1152, 418, 0xf2d2ce55
1, 103680, 103680, 1152, 418, 0x254ebf04
-0, 38, 38, 1, 18432, 0x2c180ac8
+0, 38, 38, 1, 18432, 0x8944596a
1, 104832, 104832, 1152, 418, 0xa105cdcc
1, 105984, 105984, 1152, 418, 0x1477ba58
1, 107136, 107136, 1152, 418, 0x8d0dcdb2
diff --git a/tests/ref/fate/nuv b/tests/ref/fate/nuv
index e9286d6a6d..8838fbb646 100644
--- a/tests/ref/fate/nuv
+++ b/tests/ref/fate/nuv
@@ -1,10 +1,10 @@
-#tb 0: 1/1000
-0, 118, 118, 0, 460800, 0x54aedafe
-0, 152, 152, 0, 460800, 0xb7aa8b56
-0, 177, 177, 0, 460800, 0x283ea3b5
-0, 202, 202, 0, 460800, 0x283ea3b5
-0, 235, 235, 0, 460800, 0x10e577de
-0, 269, 269, 0, 460800, 0x4e091ee2
-0, 302, 302, 0, 460800, 0x2ea88828
-0, 335, 335, 0, 460800, 0x4b7f4df0
-0, 369, 369, 0, 460800, 0xb30eb322
+#tb 0: 100/2997
+0, 4, 4, 1, 460800, 0x54aedafe
+0, 5, 5, 1, 460800, 0xb7aa8b56
+0, 6, 6, 1, 460800, 0x283ea3b5
+0, 7, 7, 1, 460800, 0x283ea3b5
+0, 8, 8, 1, 460800, 0x10e577de
+0, 9, 9, 1, 460800, 0x4e091ee2
+0, 10, 10, 1, 460800, 0x2ea88828
+0, 11, 11, 1, 460800, 0x4b7f4df0
+0, 12, 12, 1, 460800, 0xa57f20d0
diff --git a/tests/ref/fate/pictor b/tests/ref/fate/pictor
index 3dc4344758..c89b6087bb 100644
--- a/tests/ref/fate/pictor
+++ b/tests/ref/fate/pictor
@@ -1,2 +1,2 @@
#tb 0: 1/25
-0, 0, 0, 1, 192816, 0xf97e2ba1
+0, 0, 0, 1, 192816, 0x29b9c158
diff --git a/tests/ref/fate/prores-422 b/tests/ref/fate/prores-422
index 379739fa08..acd09e3da6 100644
--- a/tests/ref/fate/prores-422
+++ b/tests/ref/fate/prores-422
@@ -1,3 +1,3 @@
-#tb 0: 1/2997
-0, 0, 0, 0, 8294400, 0xe8e9d448
-0, 100, 100, 0, 8294400, 0xe8e9d448
+#tb 0: 100/2997
+0, 0, 0, 1, 8294400, 0xe8e9d448
+0, 1, 1, 1, 8294400, 0xe8e9d448
diff --git a/tests/ref/fate/prores-422_hq b/tests/ref/fate/prores-422_hq
index dc93c33122..a404ef4d3f 100644
--- a/tests/ref/fate/prores-422_hq
+++ b/tests/ref/fate/prores-422_hq
@@ -1,3 +1,3 @@
-#tb 0: 1/2997
-0, 0, 0, 0, 8294400, 0x817063b0
-0, 100, 100, 0, 8294400, 0x817063b0
+#tb 0: 100/2997
+0, 0, 0, 1, 8294400, 0x817063b0
+0, 1, 1, 1, 8294400, 0x817063b0
diff --git a/tests/ref/fate/prores-422_lt b/tests/ref/fate/prores-422_lt
index 1c508409d3..09e2408cd1 100644
--- a/tests/ref/fate/prores-422_lt
+++ b/tests/ref/fate/prores-422_lt
@@ -1,3 +1,3 @@
-#tb 0: 1/2997
-0, 0, 0, 0, 8294400, 0xcd4ccde1
-0, 100, 100, 0, 8294400, 0xcd4ccde1
+#tb 0: 100/2997
+0, 0, 0, 1, 8294400, 0xcd4ccde1
+0, 1, 1, 1, 8294400, 0xcd4ccde1
diff --git a/tests/ref/fate/prores-422_proxy b/tests/ref/fate/prores-422_proxy
index 3763b001fa..d716f87c2b 100644
--- a/tests/ref/fate/prores-422_proxy
+++ b/tests/ref/fate/prores-422_proxy
@@ -1,3 +1,3 @@
-#tb 0: 1/2997
-0, 0, 0, 0, 8294400, 0x51d29320
-0, 100, 100, 0, 8294400, 0x51d29320
+#tb 0: 100/2997
+0, 0, 0, 1, 8294400, 0x51d29320
+0, 1, 1, 1, 8294400, 0x51d29320
diff --git a/tests/ref/fate/prores-alpha b/tests/ref/fate/prores-alpha
index 80442fe7b5..bdb5c6ee70 100644
--- a/tests/ref/fate/prores-alpha
+++ b/tests/ref/fate/prores-alpha
@@ -1,3 +1,3 @@
-#tb 0: 1/2997
-0, 0, 0, 0, 12441600, 0x254d8f95
-0, 100, 100, 0, 12441600, 0x254d8f95
+#tb 0: 100/2997
+0, 0, 0, 1, 12441600, 0x254d8f95
+0, 1, 1, 1, 12441600, 0x254d8f95
diff --git a/tests/ref/fate/ptx b/tests/ref/fate/ptx
index fad2a500fe..8d59468735 100644
--- a/tests/ref/fate/ptx
+++ b/tests/ref/fate/ptx
@@ -1,2 +1,2 @@
#tb 0: 1/25
-0, 0, 0, 1, 393216, 0xda280efc
+0, 0, 0, 1, 393216, 0x019d9950
diff --git a/tests/ref/fate/pva-demux b/tests/ref/fate/pva-demux
index 69b1d4015f..67d4844e13 100644
--- a/tests/ref/fate/pva-demux
+++ b/tests/ref/fate/pva-demux
@@ -1,26 +1,27 @@
-#tb 0: 1/90000
-0, 0, 0, 2160, 384, 0x071abcc8
-0, 2160, 2160, 2160, 384, 0x31c9aee0
-0, 4320, 4320, 2160, 384, 0xa50eaa94
-0, 6480, 6480, 2160, 384, 0x9e86ba0e
-0, 8640, 8640, 2160, 384, 0x2321b800
-0, 10800, 10800, 2160, 384, 0x2347afa8
-0, 12960, 12960, 2160, 384, 0x0831b8d3
-0, 15120, 15120, 2160, 384, 0xd5acafa1
-0, 17280, 17280, 2160, 384, 0xc975b9d2
-0, 19440, 19440, 2160, 384, 0x2e10b02a
-0, 21600, 21600, 2160, 384, 0x501eadd0
-0, 23760, 23760, 2160, 384, 0x153fc171
-0, 25920, 25920, 2160, 384, 0xc5f0b3c2
-0, 28080, 28080, 2160, 384, 0xf731b200
-0, 30240, 30240, 2160, 384, 0x2e16b713
-0, 32400, 32400, 2160, 384, 0x61f6bba9
-0, 34560, 34560, 2160, 384, 0x1b9eb0ff
-0, 36720, 36720, 2160, 384, 0x2ab4b7bd
-0, 38880, 38880, 2160, 384, 0xd66eb45c
-0, 41040, 41040, 2160, 384, 0x145ab426
-0, 43200, 43200, 2160, 384, 0x297cb370
-0, 45360, 45360, 2160, 384, 0x287bb6b7
-0, 47520, 47520, 2160, 384, 0xfddbb7df
-0, 49680, 49680, 2160, 384, 0xbbb2af0c
-0, 51840, 51840, 2160, 384, 0x8f03b5fc
+#tb 0: 1/25
+#tb 1: 1/90000
+1, 0, 0, 2160, 384, 0x071abcc8
+1, 2160, 2160, 2160, 384, 0x31c9aee0
+1, 4320, 4320, 2160, 384, 0xa50eaa94
+1, 6480, 6480, 2160, 384, 0x9e86ba0e
+1, 8640, 8640, 2160, 384, 0x2321b800
+1, 10800, 10800, 2160, 384, 0x2347afa8
+1, 12960, 12960, 2160, 384, 0x0831b8d3
+1, 15120, 15120, 2160, 384, 0xd5acafa1
+1, 17280, 17280, 2160, 384, 0xc975b9d2
+1, 19440, 19440, 2160, 384, 0x2e10b02a
+1, 21600, 21600, 2160, 384, 0x501eadd0
+1, 23760, 23760, 2160, 384, 0x153fc171
+1, 25920, 25920, 2160, 384, 0xc5f0b3c2
+1, 28080, 28080, 2160, 384, 0xf731b200
+1, 30240, 30240, 2160, 384, 0x2e16b713
+1, 32400, 32400, 2160, 384, 0x61f6bba9
+1, 34560, 34560, 2160, 384, 0x1b9eb0ff
+1, 36720, 36720, 2160, 384, 0x2ab4b7bd
+1, 38880, 38880, 2160, 384, 0xd66eb45c
+1, 41040, 41040, 2160, 384, 0x145ab426
+1, 43200, 43200, 2160, 384, 0x297cb370
+1, 45360, 45360, 2160, 384, 0x287bb6b7
+1, 47520, 47520, 2160, 384, 0xfddbb7df
+1, 49680, 49680, 2160, 384, 0xbbb2af0c
+1, 51840, 51840, 2160, 384, 0x8f03b5fc
diff --git a/tests/ref/fate/qtrle-16bit b/tests/ref/fate/qtrle-16bit
index d0d71b57c2..2021f2a6e8 100644
--- a/tests/ref/fate/qtrle-16bit
+++ b/tests/ref/fate/qtrle-16bit
@@ -1,84 +1,84 @@
-#tb 0: 1/600
-0, 0, 0, 1, 57600, 0xe6b0a48c
-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
+#tb 0: 1/15
+0, 0, 0, 1, 57600, 0xcf2d39fc
+0, 1, 1, 1, 57600, 0xfc9f6bed
+0, 2, 2, 1, 57600, 0x3f5805bb
+0, 3, 3, 1, 57600, 0xcb34504e
+0, 4, 4, 1, 57600, 0x66b6f6e9
+0, 5, 5, 1, 57600, 0x18698e4d
+0, 6, 6, 1, 57600, 0x233288d7
+0, 7, 7, 1, 57600, 0x6b195ac5
+0, 8, 8, 1, 57600, 0x3b466b45
+0, 9, 9, 1, 57600, 0x9e3dbd75
+0, 10, 10, 1, 57600, 0x90ee04b7
+0, 11, 11, 1, 57600, 0x81096dda
+0, 12, 12, 1, 57600, 0xef24ca50
+0, 13, 13, 1, 57600, 0xea7a3da8
+0, 14, 14, 1, 57600, 0xc3f054c2
+0, 15, 15, 1, 57600, 0x34af39ec
+0, 16, 16, 1, 57600, 0xfc31f846
+0, 17, 17, 1, 57600, 0xa4606399
+0, 18, 18, 1, 57600, 0x4b8a9c88
+0, 19, 19, 1, 57600, 0x87db3195
+0, 20, 20, 1, 57600, 0x443b618d
+0, 21, 21, 1, 57600, 0x601e380e
+0, 22, 22, 1, 57600, 0x405c6e6f
+0, 23, 23, 1, 57600, 0xe6b66f29
+0, 24, 24, 1, 57600, 0xb8e4b2d1
+0, 25, 25, 1, 57600, 0x9fc8e7da
+0, 26, 26, 1, 57600, 0x3bdb363b
+0, 27, 27, 1, 57600, 0xacac0b6a
+0, 28, 28, 1, 57600, 0xff3022fb
+0, 29, 29, 1, 57600, 0x1e5721f3
+0, 30, 30, 1, 57600, 0x511a3071
+0, 31, 31, 1, 57600, 0xff6d4dc0
+0, 32, 32, 1, 57600, 0x5df97a35
+0, 33, 33, 1, 57600, 0x3877f1b1
+0, 34, 34, 1, 57600, 0xa9096dd2
+0, 35, 35, 1, 57600, 0xd36e1ccc
+0, 36, 36, 1, 57600, 0xdc94b124
+0, 37, 37, 1, 57600, 0x873fab49
+0, 38, 38, 1, 57600, 0x7f081dca
+0, 39, 39, 1, 57600, 0x7df52bc3
+0, 40, 40, 1, 57600, 0xf41feb99
+0, 41, 41, 1, 57600, 0xcf59ffeb
+0, 42, 42, 1, 57600, 0x0dd94dfe
+0, 43, 43, 1, 57600, 0xfbc52500
+0, 44, 44, 1, 57600, 0xc300606e
+0, 45, 45, 1, 57600, 0x01e529b4
+0, 46, 46, 1, 57600, 0x359a57b0
+0, 47, 47, 1, 57600, 0xcfee7511
+0, 48, 48, 1, 57600, 0x2189f139
+0, 49, 49, 1, 57600, 0xcc535558
+0, 50, 50, 1, 57600, 0xeed13a76
+0, 51, 51, 1, 57600, 0xfb5c3ddd
+0, 52, 52, 1, 57600, 0x36a98c53
+0, 53, 53, 1, 57600, 0xf4c38c4b
+0, 54, 54, 1, 57600, 0x53d5df15
+0, 55, 55, 1, 57600, 0x336d890c
+0, 56, 56, 1, 57600, 0x19967f1c
+0, 57, 57, 1, 57600, 0xa36b8224
+0, 58, 58, 1, 57600, 0xf6ec2490
+0, 59, 59, 1, 57600, 0x6ffff0d1
+0, 60, 60, 1, 57600, 0xfcb73114
+0, 61, 61, 1, 57600, 0x5f5fff35
+0, 62, 62, 1, 57600, 0xf113c4a0
+0, 63, 63, 1, 57600, 0x64ca6175
+0, 64, 64, 1, 57600, 0x3f6f7d15
+0, 65, 65, 1, 57600, 0x18b619df
+0, 66, 66, 1, 57600, 0xe6872ed7
+0, 67, 67, 1, 57600, 0x3641e174
+0, 68, 68, 1, 57600, 0x4c144d8c
+0, 69, 69, 1, 57600, 0x82529776
+0, 70, 70, 1, 57600, 0xd96f3ead
+0, 71, 71, 1, 57600, 0xce183c4e
+0, 72, 72, 1, 57600, 0xaa475b24
+0, 73, 73, 1, 57600, 0xf7c5cbf3
+0, 74, 74, 1, 57600, 0x798e0548
+0, 75, 75, 1, 57600, 0x1233241a
+0, 76, 76, 1, 57600, 0x1424d758
+0, 77, 77, 1, 57600, 0xa446c264
+0, 78, 78, 1, 57600, 0x66e082ae
+0, 79, 79, 1, 57600, 0xb58cacc8
+0, 80, 80, 1, 57600, 0x3d86431c
+0, 81, 81, 1, 57600, 0x601b724e
+0, 82, 82, 1, 57600, 0xbe9a32c8
diff --git a/tests/ref/fate/qtrle-1bit b/tests/ref/fate/qtrle-1bit
index 230cae6191..36ad4e70a5 100644
--- a/tests/ref/fate/qtrle-1bit
+++ b/tests/ref/fate/qtrle-1bit
@@ -1,109 +1,109 @@
-#tb 0: 1/1200
+#tb 0: 1/12
#tb 1: 1/22050
-0, 0, 0, 0, 9600, 0xc1632102
+0, 0, 0, 1, 9600, 0xc5921aa2
1, 0, 0, 1020, 2040, 0x0a157db4
1, 1020, 1020, 1020, 2040, 0x00c63e08
-0, 100, 100, 0, 9600, 0x0f6c0521
+0, 1, 1, 1, 9600, 0x9032fc52
1, 2040, 2040, 1020, 2040, 0xacf2a25b
1, 3060, 3060, 1020, 2040, 0xd6189e85
-0, 200, 200, 0, 9600, 0x04b90b5a
+0, 2, 2, 1, 9600, 0x7db0038e
1, 4080, 4080, 1020, 2040, 0x8276f843
1, 5100, 5100, 1020, 2040, 0xadebae73
-0, 300, 300, 0, 9600, 0x2ebd4500
+0, 3, 3, 1, 9600, 0x95b73c41
1, 6120, 6120, 1020, 2040, 0x5da76697
1, 7140, 7140, 1020, 2040, 0x469d0ea7
-0, 400, 400, 0, 9600, 0x726f46f4
+0, 4, 4, 1, 9600, 0x531e4189
1, 8160, 8160, 1020, 2040, 0x0d7412e1
1, 9180, 9180, 1020, 2040, 0x2f2cc63f
-0, 500, 500, 0, 9600, 0x37f6968e
+0, 5, 5, 1, 9600, 0xb73390ec
1, 10200, 10200, 1020, 2040, 0x10106eb7
-0, 600, 600, 0, 9600, 0x7305872e
+0, 6, 6, 1, 9600, 0x958e8221
1, 11220, 11220, 1020, 2040, 0x300124c7
1, 12240, 12240, 1020, 2040, 0xa329f8e8
-0, 700, 700, 0, 9600, 0x222eff5e
+0, 7, 7, 1, 9600, 0xd393f8a6
1, 13260, 13260, 1020, 2040, 0xcea35ca5
1, 14280, 14280, 1020, 2040, 0x55105aef
-0, 800, 800, 0, 9600, 0x9317e227
+0, 8, 8, 1, 9600, 0xa085da1c
1, 15300, 15300, 1020, 2040, 0x08980ce1
1, 16320, 16320, 1020, 2040, 0x367faf24
-0, 900, 900, 0, 9600, 0x421eee9d
+0, 9, 9, 1, 9600, 0x57ace74f
1, 17340, 17340, 1020, 2040, 0x75bfef06
1, 18360, 18360, 1020, 2040, 0x34f1daf4
-0, 1000, 1000, 0, 9600, 0xcbcfaaff
+0, 10, 10, 1, 9600, 0x5d11a308
1, 19380, 19380, 1020, 2040, 0x97050317
-0, 1100, 1100, 0, 9600, 0xe7d43be2
+0, 11, 11, 1, 9600, 0x13e133b7
1, 20400, 20400, 1020, 2040, 0xd297c536
1, 21420, 21420, 1020, 2040, 0xa8abad5a
-0, 1200, 1200, 0, 9600, 0x0b71e28c
+0, 12, 12, 1, 9600, 0x494edb86
1, 22440, 22440, 1020, 2040, 0x445ce8e0
1, 23460, 23460, 1020, 2040, 0xa3f4d940
-0, 1300, 1300, 0, 9600, 0xd6a050ca
+0, 13, 13, 1, 9600, 0x43a448ea
1, 24480, 24480, 1020, 2040, 0x0ebb7b26
1, 25500, 25500, 1020, 2040, 0x4372f6f6
-0, 1400, 1400, 0, 9600, 0x0ac6dbf5
+0, 14, 14, 1, 9600, 0x3562d35b
1, 26520, 26520, 1020, 2040, 0xd4365079
1, 27540, 27540, 1020, 2040, 0x56f902f7
-0, 1500, 1500, 0, 9600, 0x5c036038
+0, 15, 15, 1, 9600, 0x0bc655d2
1, 28560, 28560, 1020, 2040, 0x4153938a
-0, 1600, 1600, 0, 9600, 0x6e417ed6
+0, 16, 16, 1, 9600, 0xbece73a1
1, 29580, 29580, 1020, 2040, 0x14996d86
1, 30600, 30600, 1020, 2040, 0x3f99c318
-0, 1700, 1700, 0, 9600, 0x8bd0dc22
+0, 17, 17, 1, 9600, 0x82e7cfa1
1, 31620, 31620, 1020, 2040, 0x939978a5
1, 32640, 32640, 1020, 2040, 0x7086bd44
-0, 1800, 1800, 0, 9600, 0xdf3b0877
+0, 18, 18, 1, 9600, 0xda29fd8f
1, 33660, 33660, 138, 276, 0x25b89d22
1, 33798, 33798, 1020, 2040, 0xf3edb106
1, 34818, 34818, 1020, 2040, 0x0ca61430
-0, 1900, 1900, 0, 9600, 0xae6e7823
+0, 19, 19, 1, 9600, 0x70fb700b
1, 35838, 35838, 1020, 2040, 0x7229c458
-0, 2000, 2000, 0, 9600, 0x8ff0ac32
+0, 20, 20, 1, 9600, 0xaf57a6b0
1, 36858, 36858, 1020, 2040, 0xc37edd31
1, 37878, 37878, 1020, 2040, 0xa3da98b4
-0, 2100, 2100, 0, 9600, 0xa2d9e2ce
+0, 21, 21, 1, 9600, 0x0a5ed9b9
1, 38898, 38898, 1020, 2040, 0x69704803
1, 39918, 39918, 1020, 2040, 0xa79bf334
-0, 2200, 2200, 0, 9600, 0x5fd92b65
+0, 22, 22, 1, 9600, 0xf7c62c38
1, 40938, 40938, 1020, 2040, 0x59d8d4c4
1, 41958, 41958, 1020, 2040, 0xf9ff0271
-0, 2300, 2300, 0, 9600, 0x81c1c824
+0, 23, 23, 1, 9600, 0x0aa2ccfd
1, 42978, 42978, 1020, 2040, 0xc4ced9d6
1, 43998, 43998, 1020, 2040, 0x859f1912
-0, 2400, 2400, 0, 9600, 0xb8a2ace4
+0, 24, 24, 1, 9600, 0xc9adabae
1, 45018, 45018, 1020, 2040, 0xe7955aa6
-0, 2500, 2500, 0, 9600, 0x65b70404
+0, 25, 25, 1, 9600, 0x67ff0aba
1, 46038, 46038, 1020, 2040, 0x374624fd
1, 47058, 47058, 1020, 2040, 0x52121097
-0, 2600, 2600, 0, 9600, 0xc5349eb2
+0, 26, 26, 1, 9600, 0xea79a465
1, 48078, 48078, 1020, 2040, 0x660fe645
1, 49098, 49098, 1020, 2040, 0xf624176a
-0, 2700, 2700, 0, 9600, 0xf60cc2b8
+0, 27, 27, 1, 9600, 0x8928c626
1, 50118, 50118, 1020, 2040, 0x1f2246dd
1, 51138, 51138, 1020, 2040, 0x940e0a32
-0, 2800, 2800, 0, 9600, 0x31474595
+0, 28, 28, 1, 9600, 0x8dab4111
1, 52158, 52158, 1020, 2040, 0x9c6d338c
1, 53178, 53178, 1020, 2040, 0xfce0d30a
-0, 2900, 2900, 0, 9600, 0xf602635b
+0, 29, 29, 1, 9600, 0x81ef63f9
1, 54198, 54198, 1020, 2040, 0xd0ec9aa5
-0, 3000, 3000, 0, 9600, 0x873cbd87
+0, 30, 30, 1, 9600, 0xf977bc5e
1, 55218, 55218, 1020, 2040, 0x58012141
1, 56238, 56238, 1020, 2040, 0xde67fc43
-0, 3100, 3100, 0, 9600, 0xb9793ffe
+0, 31, 31, 1, 9600, 0x9e6a3f4a
1, 57258, 57258, 1020, 2040, 0x6baa0450
1, 58278, 58278, 1020, 2040, 0xf4f80252
-0, 3200, 3200, 0, 9600, 0x42eb2831
+0, 32, 32, 1, 9600, 0x77c92865
1, 59298, 59298, 1020, 2040, 0x0cd47ee3
1, 60318, 60318, 1020, 2040, 0x129cbaa7
-0, 3300, 3300, 0, 9600, 0x44cc1dab
+0, 33, 33, 1, 9600, 0x3915170d
1, 61338, 61338, 1020, 2040, 0x5ef5c0a1
1, 62358, 62358, 1020, 2040, 0xf660baa7
-0, 3400, 3400, 0, 9600, 0xbdcbbb87
+0, 34, 34, 1, 9600, 0xbe19b995
1, 63378, 63378, 1020, 2040, 0xe48bc0a1
-0, 3500, 3500, 0, 9600, 0x29c22df7
+0, 35, 35, 1, 9600, 0x3e8a3077
1, 64398, 64398, 1020, 2040, 0xdfeabaa7
1, 65418, 65418, 1020, 2040, 0xed04c0a1
-0, 3600, 3600, 0, 9600, 0xde502ef5
+0, 36, 36, 1, 9600, 0x1331342e
1, 66438, 66438, 1020, 2040, 0xd771baa7
1, 67458, 67458, 150, 300, 0x521f24e9
1, 67608, 67608, 738, 1476, 0x9b9394b1
-0, 3700, 3700, 0, 9600, 0xaf311aeb
+0, 37, 37, 1, 9600, 0x4d692175
diff --git a/tests/ref/fate/qtrle-24bit b/tests/ref/fate/qtrle-24bit
index 7a162b820e..a21b0996f4 100644
--- a/tests/ref/fate/qtrle-24bit
+++ b/tests/ref/fate/qtrle-24bit
@@ -1,35 +1,35 @@
-#tb 0: 1/600
+#tb 0: 1/10
0, 0, 0, 1, 57600, 0x3718ad00
-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
+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
diff --git a/tests/ref/fate/qtrle-2bit b/tests/ref/fate/qtrle-2bit
index 2a43a84c00..4b93d8730c 100644
--- a/tests/ref/fate/qtrle-2bit
+++ b/tests/ref/fate/qtrle-2bit
@@ -1,109 +1,109 @@
-#tb 0: 1/1200
+#tb 0: 1/12
#tb 1: 1/22050
-0, 0, 0, 0, 230400, 0xb1ee55dc
+0, 0, 0, 1, 230400, 0xb1ee55dc
1, 0, 0, 1020, 2040, 0x0a157db4
1, 1020, 1020, 1020, 2040, 0x00c63e08
-0, 100, 100, 0, 230400, 0x97c580bf
+0, 1, 1, 1, 230400, 0x97c580bf
1, 2040, 2040, 1020, 2040, 0xacf2a25b
1, 3060, 3060, 1020, 2040, 0xd6189e85
-0, 200, 200, 0, 230400, 0xd4bd57e8
+0, 2, 2, 1, 230400, 0xd4bd57e8
1, 4080, 4080, 1020, 2040, 0x8276f843
1, 5100, 5100, 1020, 2040, 0xadebae73
-0, 300, 300, 0, 230400, 0x412b79aa
+0, 3, 3, 1, 230400, 0x412b79aa
1, 6120, 6120, 1020, 2040, 0x5da76697
1, 7140, 7140, 1020, 2040, 0x469d0ea7
-0, 400, 400, 0, 230400, 0x928a44d1
+0, 4, 4, 1, 230400, 0x928a44d1
1, 8160, 8160, 1020, 2040, 0x0d7412e1
1, 9180, 9180, 1020, 2040, 0x2f2cc63f
-0, 500, 500, 0, 230400, 0x6bbdc0e4
+0, 5, 5, 1, 230400, 0x6bbdc0e4
1, 10200, 10200, 1020, 2040, 0x10106eb7
-0, 600, 600, 0, 230400, 0x382e960f
+0, 6, 6, 1, 230400, 0x382e960f
1, 11220, 11220, 1020, 2040, 0x300124c7
1, 12240, 12240, 1020, 2040, 0xa329f8e8
-0, 700, 700, 0, 230400, 0x62c863ea
+0, 7, 7, 1, 230400, 0x62c863ea
1, 13260, 13260, 1020, 2040, 0xcea35ca5
1, 14280, 14280, 1020, 2040, 0x55105aef
-0, 800, 800, 0, 230400, 0xbfccd3ce
+0, 8, 8, 1, 230400, 0xbfccd3ce
1, 15300, 15300, 1020, 2040, 0x08980ce1
1, 16320, 16320, 1020, 2040, 0x367faf24
-0, 900, 900, 0, 230400, 0x1987cdd4
+0, 9, 9, 1, 230400, 0x1987cdd4
1, 17340, 17340, 1020, 2040, 0x75bfef06
1, 18360, 18360, 1020, 2040, 0x34f1daf4
-0, 1000, 1000, 0, 230400, 0x40279727
+0, 10, 10, 1, 230400, 0x40279727
1, 19380, 19380, 1020, 2040, 0x97050317
-0, 1100, 1100, 0, 230400, 0x9d4f6746
+0, 11, 11, 1, 230400, 0x9d4f6746
1, 20400, 20400, 1020, 2040, 0xd297c536
1, 21420, 21420, 1020, 2040, 0xa8abad5a
-0, 1200, 1200, 0, 230400, 0x7b8a77ec
+0, 12, 12, 1, 230400, 0x7b8a77ec
1, 22440, 22440, 1020, 2040, 0x445ce8e0
1, 23460, 23460, 1020, 2040, 0xa3f4d940
-0, 1300, 1300, 0, 230400, 0x2ce7a781
+0, 13, 13, 1, 230400, 0x2ce7a781
1, 24480, 24480, 1020, 2040, 0x0ebb7b26
1, 25500, 25500, 1020, 2040, 0x4372f6f6
-0, 1400, 1400, 0, 230400, 0xb749815e
+0, 14, 14, 1, 230400, 0xb749815e
1, 26520, 26520, 1020, 2040, 0xd4365079
1, 27540, 27540, 1020, 2040, 0x56f902f7
-0, 1500, 1500, 0, 230400, 0x61c88610
+0, 15, 15, 1, 230400, 0x61c88610
1, 28560, 28560, 1020, 2040, 0x4153938a
-0, 1600, 1600, 0, 230400, 0x8449114d
+0, 16, 16, 1, 230400, 0x8449114d
1, 29580, 29580, 1020, 2040, 0x14996d86
1, 30600, 30600, 1020, 2040, 0x3f99c318
-0, 1700, 1700, 0, 230400, 0x5f73e666
+0, 17, 17, 1, 230400, 0x5f73e666
1, 31620, 31620, 1020, 2040, 0x939978a5
1, 32640, 32640, 1020, 2040, 0x7086bd44
-0, 1800, 1800, 0, 230400, 0xbde53ce6
+0, 18, 18, 1, 230400, 0xbde53ce6
1, 33660, 33660, 138, 276, 0x25b89d22
1, 33798, 33798, 1020, 2040, 0xf3edb106
1, 34818, 34818, 1020, 2040, 0x0ca61430
-0, 1900, 1900, 0, 230400, 0x8c7406fd
+0, 19, 19, 1, 230400, 0x8c7406fd
1, 35838, 35838, 1020, 2040, 0x7229c458
-0, 2000, 2000, 0, 230400, 0xf9e9a3ef
+0, 20, 20, 1, 230400, 0xf9e9a3ef
1, 36858, 36858, 1020, 2040, 0xc37edd31
1, 37878, 37878, 1020, 2040, 0xa3da98b4
-0, 2100, 2100, 0, 230400, 0x7e0a3077
+0, 21, 21, 1, 230400, 0x7e0a3077
1, 38898, 38898, 1020, 2040, 0x69704803
1, 39918, 39918, 1020, 2040, 0xa79bf334
-0, 2200, 2200, 0, 230400, 0xd9245c5f
+0, 22, 22, 1, 230400, 0xd9245c5f
1, 40938, 40938, 1020, 2040, 0x59d8d4c4
1, 41958, 41958, 1020, 2040, 0xf9ff0271
-0, 2300, 2300, 0, 230400, 0x6d077ea2
+0, 23, 23, 1, 230400, 0x6d077ea2
1, 42978, 42978, 1020, 2040, 0xc4ced9d6
1, 43998, 43998, 1020, 2040, 0x859f1912
-0, 2400, 2400, 0, 230400, 0xf622bb2a
+0, 24, 24, 1, 230400, 0xf622bb2a
1, 45018, 45018, 1020, 2040, 0xe7955aa6
-0, 2500, 2500, 0, 230400, 0x35292dc8
+0, 25, 25, 1, 230400, 0x35292dc8
1, 46038, 46038, 1020, 2040, 0x374624fd
1, 47058, 47058, 1020, 2040, 0x52121097
-0, 2600, 2600, 0, 230400, 0xc0cea946
+0, 26, 26, 1, 230400, 0xc0cea946
1, 48078, 48078, 1020, 2040, 0x660fe645
1, 49098, 49098, 1020, 2040, 0xf624176a
-0, 2700, 2700, 0, 230400, 0x98b27b60
+0, 27, 27, 1, 230400, 0x98b27b60
1, 50118, 50118, 1020, 2040, 0x1f2246dd
1, 51138, 51138, 1020, 2040, 0x940e0a32
-0, 2800, 2800, 0, 230400, 0x668ef6bd
+0, 28, 28, 1, 230400, 0x668ef6bd
1, 52158, 52158, 1020, 2040, 0x9c6d338c
1, 53178, 53178, 1020, 2040, 0xfce0d30a
-0, 2900, 2900, 0, 230400, 0x6c07a31c
+0, 29, 29, 1, 230400, 0x6c07a31c
1, 54198, 54198, 1020, 2040, 0xd0ec9aa5
-0, 3000, 3000, 0, 230400, 0x0b4a6ae1
+0, 30, 30, 1, 230400, 0x0b4a6ae1
1, 55218, 55218, 1020, 2040, 0x58012141
1, 56238, 56238, 1020, 2040, 0xde67fc43
-0, 3100, 3100, 0, 230400, 0x945b9878
+0, 31, 31, 1, 230400, 0x945b9878
1, 57258, 57258, 1020, 2040, 0x6baa0450
1, 58278, 58278, 1020, 2040, 0xf4f80252
-0, 3200, 3200, 0, 230400, 0xab28031c
+0, 32, 32, 1, 230400, 0xab28031c
1, 59298, 59298, 1020, 2040, 0x0cd47ee3
1, 60318, 60318, 1020, 2040, 0x129cbaa7
-0, 3300, 3300, 0, 230400, 0x977252b0
+0, 33, 33, 1, 230400, 0x977252b0
1, 61338, 61338, 1020, 2040, 0x5ef5c0a1
1, 62358, 62358, 1020, 2040, 0xf660baa7
-0, 3400, 3400, 0, 230400, 0x6c3d9706
+0, 34, 34, 1, 230400, 0x6c3d9706
1, 63378, 63378, 1020, 2040, 0xe48bc0a1
-0, 3500, 3500, 0, 230400, 0xe053bc2a
+0, 35, 35, 1, 230400, 0xe053bc2a
1, 64398, 64398, 1020, 2040, 0xdfeabaa7
1, 65418, 65418, 1020, 2040, 0xed04c0a1
-0, 3600, 3600, 0, 230400, 0x4cf2fc7c
+0, 36, 36, 1, 230400, 0x4cf2fc7c
1, 66438, 66438, 1020, 2040, 0xd771baa7
1, 67458, 67458, 150, 300, 0x521f24e9
1, 67608, 67608, 738, 1476, 0x9b9394b1
-0, 3700, 3700, 0, 230400, 0x610beda7
+0, 37, 37, 1, 230400, 0x610beda7
diff --git a/tests/ref/fate/qtrle-32bit b/tests/ref/fate/qtrle-32bit
index bbdd464593..ed6dc03a26 100644
--- a/tests/ref/fate/qtrle-32bit
+++ b/tests/ref/fate/qtrle-32bit
@@ -1,27 +1,27 @@
-#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
+#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
diff --git a/tests/ref/fate/qtrle-4bit b/tests/ref/fate/qtrle-4bit
index cc09e78475..74eb4ab078 100644
--- a/tests/ref/fate/qtrle-4bit
+++ b/tests/ref/fate/qtrle-4bit
@@ -1,39 +1,39 @@
-#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
+#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
diff --git a/tests/ref/fate/qtrle-8bit b/tests/ref/fate/qtrle-8bit
index bef2358e94..5b30fbbf5c 100644
--- a/tests/ref/fate/qtrle-8bit
+++ b/tests/ref/fate/qtrle-8bit
@@ -1,168 +1,168 @@
-#tb 0: 1/600
+#tb 0: 1/15
0, 0, 0, 1, 921600, 0x1492e3ed
-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
+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
diff --git a/tests/ref/fate/quickdraw b/tests/ref/fate/quickdraw
index 9a55ad5084..eccb477fb7 100644
--- a/tests/ref/fate/quickdraw
+++ b/tests/ref/fate/quickdraw
@@ -1,3 +1,3 @@
-#tb 0: 1/600
+#tb 0: 1/15
0, 0, 0, 1, 921600, 0xc0e68764
-0, 80, 80, 1, 921600, 0x01a16629
+0, 2, 2, 1, 921600, 0x01a16629
diff --git a/tests/ref/fate/random_seed b/tests/ref/fate/random_seed
new file mode 100644
index 0000000000..2b5b3afe72
--- /dev/null
+++ b/tests/ref/fate/random_seed
@@ -0,0 +1 @@
+seeds OK
diff --git a/tests/ref/fate/real-rv40 b/tests/ref/fate/real-rv40
index d5cb265a00..6159859cad 100644
--- a/tests/ref/fate/real-rv40
+++ b/tests/ref/fate/real-rv40
@@ -1,240 +1,241 @@
-#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
+#tb 0: 32768/785647
+0, 0, 0, 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
+0, 239, 239, 1, 276480, 0xcbf66922
diff --git a/tests/ref/fate/rpza b/tests/ref/fate/rpza
index a1c5333069..a9ae3bbadb 100644
--- a/tests/ref/fate/rpza
+++ b/tests/ref/fate/rpza
@@ -1,31 +1,31 @@
-#tb 0: 1/600
-0, 0, 0, 1, 230400, 0x4aec80a3
-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
+#tb 0: 1/15
+0, 0, 0, 1, 230400, 0x26a4728c
+0, 1, 1, 1, 230400, 0xa5ff0a21
+0, 2, 2, 1, 230400, 0x479d767d
+0, 3, 3, 1, 230400, 0xc619cd01
+0, 4, 4, 1, 230400, 0x1d377157
+0, 5, 5, 1, 230400, 0x1d377157
+0, 6, 6, 1, 230400, 0x0941c629
+0, 7, 7, 1, 230400, 0xe64b3a93
+0, 8, 8, 1, 230400, 0x28493fd7
+0, 9, 9, 1, 230400, 0x18c77af2
+0, 10, 10, 1, 230400, 0x18c77af2
+0, 11, 11, 1, 230400, 0x5a542008
+0, 12, 12, 1, 230400, 0x5a542008
+0, 13, 13, 1, 230400, 0x3b1a34fd
+0, 14, 14, 1, 230400, 0x77d34944
+0, 15, 15, 1, 230400, 0x50ac218c
+0, 16, 16, 1, 230400, 0xcb999f16
+0, 17, 17, 1, 230400, 0xe1ce9f19
+0, 18, 18, 1, 230400, 0xb10b4264
+0, 19, 19, 1, 230400, 0x61207031
+0, 20, 20, 1, 230400, 0x81626d5b
+0, 21, 21, 1, 230400, 0x81626d5b
+0, 22, 22, 1, 230400, 0x1cb59751
+0, 23, 23, 1, 230400, 0x316e6962
+0, 24, 24, 1, 230400, 0x4c01b829
+0, 25, 25, 1, 230400, 0x276e32bc
+0, 26, 26, 1, 230400, 0x276e32bc
+0, 27, 27, 1, 230400, 0xe251117a
+0, 28, 28, 1, 230400, 0xe251117a
+0, 29, 29, 1, 230400, 0x41b7f098
diff --git a/tests/ref/fate/rv30 b/tests/ref/fate/rv30
index 48834237e3..df002d948b 100644
--- a/tests/ref/fate/rv30
+++ b/tests/ref/fate/rv30
@@ -1,110 +1,110 @@
-#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
+#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
diff --git a/tests/ref/fate/smc b/tests/ref/fate/smc
index cdfc3d5594..1635b37e55 100644
--- a/tests/ref/fate/smc
+++ b/tests/ref/fate/smc
@@ -1,121 +1,121 @@
-#tb 0: 1/30
+#tb 0: 1/10
0, 0, 0, 1, 230400, 0xf814fc90
-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
+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
diff --git a/tests/ref/fate/svq1 b/tests/ref/fate/svq1
index 3b26d1ffa5..3bcf715a61 100644
--- a/tests/ref/fate/svq1
+++ b/tests/ref/fate/svq1
@@ -1,151 +1,151 @@
-#tb 0: 1/600
+#tb 0: 1/15
0, 0, 0, 1, 21600, 0x7f9389e3
-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
+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
diff --git a/tests/ref/fate/svq3 b/tests/ref/fate/svq3
index 141300ac17..073d10b366 100644
--- a/tests/ref/fate/svq3
+++ b/tests/ref/fate/svq3
@@ -1,181 +1,181 @@
-#tb 0: 1/600
+#tb 0: 1/30
0, 0, 0, 1, 115200, 0x2c810465
-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
+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
diff --git a/tests/ref/fate/targa-conformance-CCM8 b/tests/ref/fate/targa-conformance-CCM8
index aad3bfc955..45bb18167b 100644
--- a/tests/ref/fate/targa-conformance-CCM8
+++ b/tests/ref/fate/targa-conformance-CCM8
@@ -1,2 +1,2 @@
#tb 0: 1/25
-0, 0, 0, 1, 65536, 0xcf98bc29
+0, 0, 0, 1, 65536, 0x47e97fe9
diff --git a/tests/ref/fate/targa-conformance-UCM8 b/tests/ref/fate/targa-conformance-UCM8
index aad3bfc955..45bb18167b 100644
--- a/tests/ref/fate/targa-conformance-UCM8
+++ b/tests/ref/fate/targa-conformance-UCM8
@@ -1,2 +1,2 @@
#tb 0: 1/25
-0, 0, 0, 1, 65536, 0xcf98bc29
+0, 0, 0, 1, 65536, 0x47e97fe9
diff --git a/tests/ref/fate/truemotion1-15 b/tests/ref/fate/truemotion1-15
index 9a5d3894b0..9e7f9c8d8c 100644
--- a/tests/ref/fate/truemotion1-15
+++ b/tests/ref/fate/truemotion1-15
@@ -1,220 +1,220 @@
#tb 0: 1/15
#tb 1: 1/44100
-0, 0, 0, 1, 161280, 0x7041748d
+0, 0, 0, 1, 161280, 0x677c9fb3
1, 0, 0, 2708, 10832, 0xe1a811fa
1, 2708, 2708, 2708, 10832, 0xb47841f9
-0, 1, 1, 1, 161280, 0x3cc4dfb5
+0, 1, 1, 1, 161280, 0xaa280e0a
1, 5416, 5416, 2708, 10832, 0x839eedf1
-0, 2, 2, 1, 161280, 0xca3af22d
+0, 2, 2, 1, 161280, 0x8a4d2225
1, 8124, 8124, 2708, 10832, 0xb48b1f60
-0, 3, 3, 1, 161280, 0x23ad1d85
+0, 3, 3, 1, 161280, 0xf10f46a8
1, 10832, 10832, 2708, 10832, 0x743936c0
-0, 4, 4, 1, 161280, 0x9c9cf364
+0, 4, 4, 1, 161280, 0x98d9eab6
1, 13540, 13540, 2708, 10832, 0xe1f039fb
-0, 5, 5, 1, 161280, 0x1551d6a8
+0, 5, 5, 1, 161280, 0xa543ae1e
1, 16248, 16248, 2708, 10832, 0xef00751a
-0, 6, 6, 1, 161280, 0xc39f6b95
+0, 6, 6, 1, 161280, 0x79d717ae
1, 18956, 18956, 2708, 10832, 0x401ed099
-0, 7, 7, 1, 161280, 0x3b036dcc
+0, 7, 7, 1, 161280, 0x1a87e2cb
1, 21665, 21665, 2708, 10832, 0x432a53bd
-0, 8, 8, 1, 161280, 0xa6fac1db
+0, 8, 8, 1, 161280, 0xe5c000ac
1, 24373, 24373, 2708, 10832, 0xc4276bfd
-0, 9, 9, 1, 161280, 0x67656b62
+0, 9, 9, 1, 161280, 0xa5827077
1, 27081, 27081, 2708, 10832, 0x51f0fa8c
-0, 10, 10, 1, 161280, 0xb41f47d1
+0, 10, 10, 1, 161280, 0xfd0615ee
1, 29789, 29789, 2708, 10832, 0xcebae622
-0, 11, 11, 1, 161280, 0xc207249e
+0, 11, 11, 1, 161280, 0xc6fdc861
1, 32497, 32497, 2708, 10832, 0xe9f6dc1f
1, 35205, 35205, 2708, 10832, 0xda087fee
-0, 12, 12, 1, 161280, 0xbee8f843
+0, 12, 12, 1, 161280, 0xaa007c7e
1, 37913, 37913, 2708, 10832, 0x67a621bb
-0, 13, 13, 1, 161280, 0x092acf46
+0, 13, 13, 1, 161280, 0xf15e3a96
1, 40621, 40621, 2708, 10832, 0xd7be207f
-0, 14, 14, 1, 161280, 0x8d9e2680
+0, 14, 14, 1, 161280, 0xce827ae1
1, 43329, 43329, 2708, 10832, 0x19d32507
-0, 15, 15, 1, 161280, 0x8becc20c
+0, 15, 15, 1, 161280, 0xf379fc13
1, 46037, 46037, 2708, 10832, 0xe1a3fbfa
-0, 16, 16, 1, 161280, 0x655e444e
+0, 16, 16, 1, 161280, 0x89686a0c
1, 48745, 48745, 2708, 10832, 0xd10df779
-0, 17, 17, 1, 161280, 0x5c112da0
+0, 17, 17, 1, 161280, 0x7e8342bd
1, 51453, 51453, 2708, 10832, 0x4428e1a7
-0, 18, 18, 1, 161280, 0x232fa9eb
+0, 18, 18, 1, 161280, 0x640dab86
1, 54161, 54161, 2708, 10832, 0x7ea9b33d
-0, 19, 19, 1, 161280, 0x9721745d
+0, 19, 19, 1, 161280, 0xc6a86456
1, 56869, 56869, 2708, 10832, 0x6852a5a5
-0, 20, 20, 1, 161280, 0x92f1d880
+0, 20, 20, 1, 161280, 0xe360b538
1, 59578, 59578, 2708, 10832, 0xfeb78863
-0, 21, 21, 1, 161280, 0x16233978
+0, 21, 21, 1, 161280, 0xbcc21064
1, 62286, 62286, 2708, 10832, 0xf157f928
-0, 22, 22, 1, 161280, 0x19a27e69
+0, 22, 22, 1, 161280, 0x95bc4e63
1, 64994, 64994, 2708, 10832, 0x86414b3e
-0, 23, 23, 1, 161280, 0x7b6ad73a
+0, 23, 23, 1, 161280, 0x390fa1bd
1, 67702, 67702, 2708, 10832, 0x2e28cdf6
1, 70410, 70410, 2708, 10832, 0x00212e44
-0, 24, 24, 1, 161280, 0xa7a674aa
+0, 24, 24, 1, 161280, 0xa35b3bb9
1, 73118, 73118, 2708, 10832, 0x2d7f9378
-0, 25, 25, 1, 161280, 0x4e434abb
+0, 25, 25, 1, 161280, 0x730b0779
1, 75826, 75826, 2708, 10832, 0x84cb25d7
-0, 26, 26, 1, 161280, 0xb96eea14
+0, 26, 26, 1, 161280, 0xf3c3a3eb
1, 78534, 78534, 2708, 10832, 0x3aca41fa
-0, 27, 27, 1, 161280, 0x1350188c
+0, 27, 27, 1, 161280, 0x676ecbaa
1, 81242, 81242, 2708, 10832, 0x27ad34b9
-0, 28, 28, 1, 161280, 0x79c6f305
+0, 28, 28, 1, 161280, 0x06c4a4e5
1, 83950, 83950, 2708, 10832, 0xe665144a
-0, 29, 29, 1, 161280, 0xa9c7782d
+0, 29, 29, 1, 161280, 0x177d26d9
1, 86658, 86658, 2708, 10832, 0xf9546626
-0, 30, 30, 1, 161280, 0x40a4f456
+0, 30, 30, 1, 161280, 0xdaf69ebe
1, 89366, 89366, 2708, 10832, 0xe71c4f22
-0, 31, 31, 1, 161280, 0xaf291ed6
+0, 31, 31, 1, 161280, 0xabadc296
1, 92074, 92074, 2708, 10832, 0x5e61869c
-0, 32, 32, 1, 161280, 0xab29b4e1
+0, 32, 32, 1, 161280, 0xec144665
1, 94782, 94782, 2708, 10832, 0x571d2c10
-0, 33, 33, 1, 161280, 0xbfcd2712
+0, 33, 33, 1, 161280, 0x6785aa48
1, 97490, 97490, 2708, 10832, 0xf0e08cd5
-0, 34, 34, 1, 161280, 0xff22a0d7
+0, 34, 34, 1, 161280, 0x2a0cfcaf
1, 100199, 100199, 2708, 10832, 0x66650e49
-0, 35, 35, 1, 161280, 0xb0ae88a9
+0, 35, 35, 1, 161280, 0x9288d513
1, 102907, 102907, 2708, 10832, 0x4024deaf
1, 105615, 105615, 2708, 10832, 0xda7bdb14
-0, 36, 36, 1, 161280, 0x811d1259
+0, 36, 36, 1, 161280, 0x1d295ad0
1, 108323, 108323, 2708, 10832, 0xc27a342f
-0, 37, 37, 1, 161280, 0x593c39a1
+0, 37, 37, 1, 161280, 0xb9fd8406
1, 111031, 111031, 2708, 10832, 0x574fe679
-0, 38, 38, 1, 161280, 0x5a5a97f8
+0, 38, 38, 1, 161280, 0x98bced49
1, 113739, 113739, 2708, 10832, 0x37db464e
-0, 39, 39, 1, 161280, 0xa5639ecf
+0, 39, 39, 1, 161280, 0x42e6fbae
1, 116447, 116447, 2708, 10832, 0xb1fa2a83
-0, 40, 40, 1, 161280, 0x543920c6
+0, 40, 40, 1, 161280, 0xfd218209
1, 119155, 119155, 2708, 10832, 0x3d98d9b7
-0, 41, 41, 1, 161280, 0xb41689ee
+0, 41, 41, 1, 161280, 0x21c2ef31
1, 121863, 121863, 2708, 10832, 0xb7c908e2
-0, 42, 42, 1, 161280, 0xc0ad83de
+0, 42, 42, 1, 161280, 0xce4be932
1, 124571, 124571, 2708, 10832, 0x9f7e44d8
-0, 43, 43, 1, 161280, 0x9e9e7456
+0, 43, 43, 1, 161280, 0xd5c0d5fc
1, 127279, 127279, 2708, 10832, 0xae9b8774
-0, 44, 44, 1, 161280, 0x777ccbfe
+0, 44, 44, 1, 161280, 0xf8d13076
1, 129987, 129987, 2708, 10832, 0x36916e3f
-0, 45, 45, 1, 161280, 0x9c2df916
+0, 45, 45, 1, 161280, 0xdbf86007
1, 132695, 132695, 2708, 10832, 0xd785f5ef
-0, 46, 46, 1, 161280, 0xe0c13b35
+0, 46, 46, 1, 161280, 0x9475a651
1, 135403, 135403, 2708, 10832, 0x2a3a5673
1, 138112, 138112, 2708, 10832, 0x7320e379
-0, 47, 47, 1, 161280, 0x39bfa5a5
+0, 47, 47, 1, 161280, 0x41bf1542
1, 140820, 140820, 2708, 10832, 0xec787be5
-0, 48, 48, 1, 161280, 0x35dfb264
+0, 48, 48, 1, 161280, 0x6945297f
1, 143528, 143528, 2708, 10832, 0xd0d13aa0
-0, 49, 49, 1, 161280, 0x43018613
+0, 49, 49, 1, 161280, 0x2282025e
1, 146236, 146236, 2708, 10832, 0x34dfcb17
-0, 50, 50, 1, 161280, 0x43584b8a
+0, 50, 50, 1, 161280, 0x55aace0c
1, 148944, 148944, 2708, 10832, 0x1a9c29f1
-0, 51, 51, 1, 161280, 0xa5cd230a
+0, 51, 51, 1, 161280, 0xc78aa51c
1, 151652, 151652, 2708, 10832, 0x3e73dcc1
-0, 52, 52, 1, 161280, 0x6fe2cfb3
+0, 52, 52, 1, 161280, 0xb4b84e6c
1, 154360, 154360, 2708, 10832, 0x7855b053
-0, 53, 53, 1, 161280, 0x88a7c0db
+0, 53, 53, 1, 161280, 0x3bbb3e44
1, 157068, 157068, 2708, 10832, 0x5588df8f
-0, 54, 54, 1, 161280, 0x476f1cd2
+0, 54, 54, 1, 161280, 0x4dd89d80
1, 159776, 159776, 2708, 10832, 0x6f621299
-0, 55, 55, 1, 161280, 0x96401d49
+0, 55, 55, 1, 161280, 0xa446a5c5
1, 162484, 162484, 2708, 10832, 0xce7f39c2
-0, 56, 56, 1, 161280, 0x7d932919
+0, 56, 56, 1, 161280, 0x8f56b1d6
1, 165192, 165192, 2708, 10832, 0xd88e6552
-0, 57, 57, 1, 161280, 0x06465481
+0, 57, 57, 1, 161280, 0xa170df87
1, 167900, 167900, 2708, 10832, 0xddc63597
-0, 58, 58, 1, 161280, 0x39631520
+0, 58, 58, 1, 161280, 0x4740a4df
1, 170608, 170608, 2708, 10832, 0xe3071865
1, 173316, 173316, 2708, 10832, 0x2a44a123
-0, 59, 59, 1, 161280, 0xc3fff780
+0, 59, 59, 1, 161280, 0x86608ee7
1, 176024, 176024, 2708, 10832, 0x08d85d45
-0, 60, 60, 1, 161280, 0xa81faf28
+0, 60, 60, 1, 161280, 0x629b4543
1, 178733, 178733, 2708, 10832, 0x4dc5f83a
-0, 61, 61, 1, 161280, 0x7a311f4f
+0, 61, 61, 1, 161280, 0x697fb952
1, 181441, 181441, 2708, 10832, 0x89497812
-0, 62, 62, 1, 161280, 0x52f9b931
+0, 62, 62, 1, 161280, 0x98e84a51
1, 184149, 184149, 2708, 10832, 0x9ee1db54
-0, 63, 63, 1, 161280, 0x938cf016
+0, 63, 63, 1, 161280, 0x97949a90
1, 186857, 186857, 2708, 10832, 0x5277d611
-0, 64, 64, 1, 161280, 0xf8f6e19c
+0, 64, 64, 1, 161280, 0x6a8c9b96
1, 189565, 189565, 2708, 10832, 0x570a619c
-0, 65, 65, 1, 161280, 0xca90561b
+0, 65, 65, 1, 161280, 0xafa714ab
1, 192273, 192273, 2708, 10832, 0xa217d70f
-0, 66, 66, 1, 161280, 0x8594d06b
+0, 66, 66, 1, 161280, 0x0cf39314
1, 194981, 194981, 2708, 10832, 0x6f0ecbf4
-0, 67, 67, 1, 161280, 0xea32bf3b
+0, 67, 67, 1, 161280, 0x9ccc8171
1, 197689, 197689, 2708, 10832, 0x2704b114
-0, 68, 68, 1, 161280, 0x4646111a
+0, 68, 68, 1, 161280, 0x8232d5a8
1, 200397, 200397, 2708, 10832, 0xf24e679f
-0, 69, 69, 1, 161280, 0xee891162
+0, 69, 69, 1, 161280, 0x250dd5cb
1, 203105, 203105, 2708, 10832, 0x05572099
-0, 70, 70, 1, 161280, 0xcfc32082
+0, 70, 70, 1, 161280, 0xf764e43a
1, 205813, 205813, 2708, 10832, 0x33942d0c
1, 208521, 208521, 2708, 10832, 0xa77ea674
-0, 71, 71, 1, 161280, 0x863c281a
+0, 71, 71, 1, 161280, 0x2f4bec00
1, 211229, 211229, 2708, 10832, 0xeba663bc
-0, 72, 72, 1, 161280, 0x01b591aa
+0, 72, 72, 1, 161280, 0x76f1598b
1, 213937, 213937, 2708, 10832, 0x1338524a
-0, 73, 73, 1, 161280, 0x211fbc62
+0, 73, 73, 1, 161280, 0xa91b84da
1, 216645, 216645, 2708, 10832, 0x6182b0b3
-0, 74, 74, 1, 161280, 0xae2bafe2
+0, 74, 74, 1, 161280, 0x011a77fb
1, 219354, 219354, 2708, 10832, 0xa410a364
-0, 75, 75, 1, 161280, 0xcfe46dca
+0, 75, 75, 1, 161280, 0xdbf5341c
1, 222062, 222062, 2708, 10832, 0x2f4374b0
-0, 76, 76, 1, 161280, 0xcf8fe8a3
+0, 76, 76, 1, 161280, 0x40d5abfa
1, 224770, 224770, 2708, 10832, 0xf41f3a07
-0, 77, 77, 1, 161280, 0x3f8474eb
+0, 77, 77, 1, 161280, 0x9fb8360c
1, 227478, 227478, 2708, 10832, 0x2b1c50c6
-0, 78, 78, 1, 161280, 0x06da345a
+0, 78, 78, 1, 161280, 0xabc5fba8
1, 230186, 230186, 2708, 10832, 0x3692ac89
-0, 79, 79, 1, 161280, 0xbd4d3280
+0, 79, 79, 1, 161280, 0x98090909
1, 232894, 232894, 2708, 10832, 0x5d6bc87e
-0, 80, 80, 1, 161280, 0xb5e70fea
+0, 80, 80, 1, 161280, 0x9a3613bd
1, 235602, 235602, 2708, 10832, 0x1b1cda0c
-0, 81, 81, 1, 161280, 0x0c99c804
+0, 81, 81, 1, 161280, 0x9071024f
1, 238310, 238310, 2708, 10832, 0x11eaa15f
1, 241018, 241018, 2708, 10832, 0x73c7d7ef
-0, 82, 82, 1, 161280, 0x19841ed4
+0, 82, 82, 1, 161280, 0x4df39487
1, 243726, 243726, 2708, 10832, 0x65d7e3be
-0, 83, 83, 1, 161280, 0xf81dea50
+0, 83, 83, 1, 161280, 0x17658524
1, 246434, 246434, 2708, 10832, 0xb9c00688
-0, 84, 84, 1, 161280, 0x7777d81c
+0, 84, 84, 1, 161280, 0xbcd794df
1, 249142, 249142, 2708, 10832, 0x0b98c125
-0, 85, 85, 1, 161280, 0x0497cfd8
+0, 85, 85, 1, 161280, 0x2a14ae05
1, 251850, 251850, 2708, 10832, 0x331ed413
-0, 86, 86, 1, 161280, 0x50b6eb64
+0, 86, 86, 1, 161280, 0x664feab2
1, 254558, 254558, 2708, 10832, 0x9b68f485
-0, 87, 87, 1, 161280, 0x5071fc07
+0, 87, 87, 1, 161280, 0xf6b721f4
1, 257267, 257267, 2708, 10832, 0x1b865c55
-0, 88, 88, 1, 161280, 0xbb7527fb
+0, 88, 88, 1, 161280, 0xfec565f3
1, 259975, 259975, 2708, 10832, 0x68cef565
-0, 89, 89, 1, 161280, 0x13054f1f
+0, 89, 89, 1, 161280, 0xd39aabee
1, 262683, 262683, 2708, 10832, 0x3a605f15
-0, 90, 90, 1, 161280, 0x4b78fb27
+0, 90, 90, 1, 161280, 0x1f3d5de7
1, 265391, 265391, 2708, 10832, 0xd72ff22e
-0, 91, 91, 1, 161280, 0xf504968f
+0, 91, 91, 1, 161280, 0xaf97f50c
1, 268099, 268099, 2708, 10832, 0x1c672b67
-0, 92, 92, 1, 161280, 0x555b10b7
+0, 92, 92, 1, 161280, 0xe34b6b6a
1, 270807, 270807, 2708, 10832, 0xfd1a7e7e
-0, 93, 93, 1, 161280, 0xcc0dde40
+0, 93, 93, 1, 161280, 0x4117371e
1, 273515, 273515, 2708, 10832, 0x9bf20ead
1, 276223, 276223, 2708, 10832, 0x00000000
-0, 94, 94, 1, 161280, 0xcc0dde40
+0, 94, 94, 1, 161280, 0x4117371e
1, 278931, 278931, 2708, 10832, 0x00000000
-0, 95, 95, 1, 161280, 0x367f60c8
+0, 95, 95, 1, 161280, 0xe555b55e
1, 281639, 281639, 2708, 10832, 0x00000000
-0, 96, 96, 1, 161280, 0x367f60c8
+0, 96, 96, 1, 161280, 0xe555b55e
1, 284347, 284347, 2708, 10832, 0x00000000
-0, 97, 97, 1, 161280, 0x367f60c8
+0, 97, 97, 1, 161280, 0xe555b55e
1, 287055, 287055, 2708, 10832, 0x00000000
-0, 98, 98, 1, 161280, 0x367f60c8
+0, 98, 98, 1, 161280, 0xe555b55e
1, 289763, 289763, 2708, 10832, 0x00000000
-0, 99, 99, 1, 161280, 0x367f60c8
+0, 99, 99, 1, 161280, 0xe555b55e
1, 292471, 292471, 2708, 10832, 0x00000000
-0, 100, 100, 1, 161280, 0x367f60c8
+0, 100, 100, 1, 161280, 0xe555b55e
1, 295179, 295179, 2708, 10832, 0x00000000
-0, 101, 101, 1, 161280, 0x367f60c8
+0, 101, 101, 1, 161280, 0xe555b55e
1, 297888, 297888, 2708, 10832, 0x00000000
-0, 102, 102, 1, 161280, 0x367f60c8
+0, 102, 102, 1, 161280, 0xe555b55e
1, 300596, 300596, 2708, 10832, 0x00000000
-0, 103, 103, 1, 161280, 0x367f60c8
+0, 103, 103, 1, 161280, 0xe555b55e
1, 303304, 303304, 2708, 10832, 0x00000000
-0, 104, 104, 1, 161280, 0x367f60c8
+0, 104, 104, 1, 161280, 0xe555b55e
diff --git a/tests/ref/fate/truemotion1-24 b/tests/ref/fate/truemotion1-24
index 8d9b150b8e..b41293b542 100644
--- a/tests/ref/fate/truemotion1-24
+++ b/tests/ref/fate/truemotion1-24
@@ -32,6 +32,7 @@
1, 40621, 40621, 2708, 10832, 0x3c746fbe
0, 14, 14, 1, 69120, 0x5876d758
1, 43329, 43329, 2708, 10832, 0x05f3b08a
+0, 15, 15, 1, 69120, 0x45e7dd5c
1, 46037, 46037, 2708, 10832, 0xa6560483
1, 48745, 48745, 2708, 10832, 0xd98a8e19
1, 51453, 51453, 2708, 10832, 0xf98a0b2e
diff --git a/tests/ref/fate/tscc-15bit b/tests/ref/fate/tscc-15bit
index 372b165850..a2871efd4d 100644
--- a/tests/ref/fate/tscc-15bit
+++ b/tests/ref/fate/tscc-15bit
@@ -1,242 +1,242 @@
#tb 0: 1/15
#tb 1: 1/11025
-0, 0, 0, 1, 657600, 0xaf456809
+0, 0, 0, 1, 657600, 0x50b3a0c2
1, 0, 0, 11025, 22050, 0x1740aaec
-0, 1, 1, 1, 657600, 0xaf456809
-0, 2, 2, 1, 657600, 0xaf456809
-0, 3, 3, 1, 657600, 0x2dbe6889
-0, 4, 4, 1, 657600, 0x2dbe6889
-0, 5, 5, 1, 657600, 0x2dbe6889
-0, 6, 6, 1, 657600, 0x2dbe6889
-0, 7, 7, 1, 657600, 0x2dbe6889
-0, 8, 8, 1, 657600, 0x2dbe6889
-0, 9, 9, 1, 657600, 0x2dbe6889
-0, 10, 10, 1, 657600, 0x2dbe6889
-0, 11, 11, 1, 657600, 0x2dbe6889
-0, 12, 12, 1, 657600, 0x2dbe6889
-0, 13, 13, 1, 657600, 0x2dbe6889
-0, 14, 14, 1, 657600, 0x2dbe6889
-0, 15, 15, 1, 657600, 0x2dbe6889
+0, 1, 1, 1, 657600, 0x50b3a0c2
+0, 2, 2, 1, 657600, 0x50b3a0c2
+0, 3, 3, 1, 657600, 0x661aa145
+0, 4, 4, 1, 657600, 0x661aa145
+0, 5, 5, 1, 657600, 0x661aa145
+0, 6, 6, 1, 657600, 0x661aa145
+0, 7, 7, 1, 657600, 0x661aa145
+0, 8, 8, 1, 657600, 0x661aa145
+0, 9, 9, 1, 657600, 0x661aa145
+0, 10, 10, 1, 657600, 0x661aa145
+0, 11, 11, 1, 657600, 0x661aa145
+0, 12, 12, 1, 657600, 0x661aa145
+0, 13, 13, 1, 657600, 0x661aa145
+0, 14, 14, 1, 657600, 0x661aa145
+0, 15, 15, 1, 657600, 0x661aa145
1, 11025, 11025, 11025, 22050, 0x75ed6086
-0, 16, 16, 1, 657600, 0x2dbe6889
-0, 17, 17, 1, 657600, 0x2dbe6889
-0, 18, 18, 1, 657600, 0x2dbe6889
-0, 19, 19, 1, 657600, 0x2dbe6889
-0, 20, 20, 1, 657600, 0x2dbe6889
-0, 21, 21, 1, 657600, 0x92796e59
-0, 22, 22, 1, 657600, 0x92796e59
-0, 23, 23, 1, 657600, 0x92796e59
-0, 24, 24, 1, 657600, 0x64cb6889
-0, 25, 25, 1, 657600, 0x64cb6889
-0, 26, 26, 1, 657600, 0x64cb6889
-0, 27, 27, 1, 657600, 0x64cb6889
-0, 28, 28, 1, 657600, 0x64cb6889
-0, 29, 29, 1, 657600, 0x64cb6889
-0, 30, 30, 1, 657600, 0x42036b71
+0, 16, 16, 1, 657600, 0x661aa145
+0, 17, 17, 1, 657600, 0x661aa145
+0, 18, 18, 1, 657600, 0x661aa145
+0, 19, 19, 1, 657600, 0x661aa145
+0, 20, 20, 1, 657600, 0x661aa145
+0, 21, 21, 1, 657600, 0x3c29a73f
+0, 22, 22, 1, 657600, 0x3c29a73f
+0, 23, 23, 1, 657600, 0x3c29a73f
+0, 24, 24, 1, 657600, 0xee2ca145
+0, 25, 25, 1, 657600, 0xee2ca145
+0, 26, 26, 1, 657600, 0xee2ca145
+0, 27, 27, 1, 657600, 0xee2ca145
+0, 28, 28, 1, 657600, 0xee2ca145
+0, 29, 29, 1, 657600, 0xee2ca145
+0, 30, 30, 1, 657600, 0xeb6fa442
1, 22050, 22050, 11025, 22050, 0xca52a4e9
-0, 31, 31, 1, 657600, 0x42036b71
-0, 32, 32, 1, 657600, 0x42036b71
-0, 33, 33, 1, 657600, 0xc40a6889
-0, 34, 34, 1, 657600, 0xc40a6889
-0, 35, 35, 1, 657600, 0xc40a6889
-0, 36, 36, 1, 657600, 0xaa6f7429
-0, 37, 37, 1, 657600, 0xaa6f7429
-0, 38, 38, 1, 657600, 0xaa6f7429
-0, 39, 39, 1, 657600, 0x854172d9
-0, 40, 40, 1, 657600, 0x854172d9
-0, 41, 41, 1, 657600, 0x854172d9
-0, 42, 42, 1, 657600, 0x22d10de0
-0, 43, 43, 1, 657600, 0xa75f0d60
-0, 44, 44, 1, 657600, 0x7a440be0
-0, 45, 45, 1, 657600, 0x40095d50
+0, 31, 31, 1, 657600, 0xeb6fa442
+0, 32, 32, 1, 657600, 0xeb6fa442
+0, 33, 33, 1, 657600, 0xb235a145
+0, 34, 34, 1, 657600, 0xb235a145
+0, 35, 35, 1, 657600, 0xb235a145
+0, 36, 36, 1, 657600, 0x39f7ad39
+0, 37, 37, 1, 657600, 0x39f7ad39
+0, 38, 38, 1, 657600, 0x39f7ad39
+0, 39, 39, 1, 657600, 0xb851abda
+0, 40, 40, 1, 657600, 0xb851abda
+0, 41, 41, 1, 657600, 0xb851abda
+0, 42, 42, 1, 657600, 0xf6574b22
+0, 43, 43, 1, 657600, 0x1a154a9f
+0, 44, 44, 1, 657600, 0x3de64916
+0, 45, 45, 1, 657600, 0xca3d9cd5
1, 33075, 33075, 11025, 22050, 0xb306d419
-0, 46, 46, 1, 657600, 0x40095d50
-0, 47, 47, 1, 657600, 0x64766320
-0, 48, 48, 1, 657600, 0x64766320
-0, 49, 49, 1, 657600, 0x64766320
-0, 50, 50, 1, 657600, 0x64766320
-0, 51, 51, 1, 657600, 0x64766320
-0, 52, 52, 1, 657600, 0x64766320
-0, 53, 53, 1, 657600, 0x64766320
-0, 54, 54, 1, 657600, 0x64766320
-0, 55, 55, 1, 657600, 0x64766320
-0, 56, 56, 1, 657600, 0x64766320
-0, 57, 57, 1, 657600, 0xf51adc49
-0, 58, 58, 1, 657600, 0xf51adc49
-0, 59, 59, 1, 657600, 0xf51adc49
-0, 60, 60, 1, 657600, 0xdd47af59
+0, 46, 46, 1, 657600, 0xca3d9cd5
+0, 47, 47, 1, 657600, 0x4779a2cf
+0, 48, 48, 1, 657600, 0x4779a2cf
+0, 49, 49, 1, 657600, 0x4779a2cf
+0, 50, 50, 1, 657600, 0x4779a2cf
+0, 51, 51, 1, 657600, 0x4779a2cf
+0, 52, 52, 1, 657600, 0x4779a2cf
+0, 53, 53, 1, 657600, 0x4779a2cf
+0, 54, 54, 1, 657600, 0x4779a2cf
+0, 55, 55, 1, 657600, 0x4779a2cf
+0, 56, 56, 1, 657600, 0x4779a2cf
+0, 57, 57, 1, 657600, 0x29af1818
+0, 58, 58, 1, 657600, 0x29af1818
+0, 59, 59, 1, 657600, 0x29af1818
+0, 60, 60, 1, 657600, 0x77ace9c5
1, 44100, 44100, 11025, 22050, 0x8cbb9625
-0, 61, 61, 1, 657600, 0xdd47af59
-0, 62, 62, 1, 657600, 0xffa8acf1
-0, 63, 63, 1, 657600, 0x5994b059
-0, 64, 64, 1, 657600, 0x5994b059
-0, 65, 65, 1, 657600, 0x5994b059
-0, 66, 66, 1, 657600, 0x03ffae71
-0, 67, 67, 1, 657600, 0x03ffae71
-0, 68, 68, 1, 657600, 0x03ffae71
-0, 69, 69, 1, 657600, 0xe33ab89e
-0, 70, 70, 1, 657600, 0xe33ab89e
-0, 71, 71, 1, 657600, 0xe33ab89e
-0, 72, 72, 1, 657600, 0xbe37b549
-0, 73, 73, 1, 657600, 0xbe37b549
-0, 74, 74, 1, 657600, 0x1d395bf9
-0, 75, 75, 1, 657600, 0x1d395bf9
+0, 61, 61, 1, 657600, 0x77ace9c5
+0, 62, 62, 1, 657600, 0x61b8e74b
+0, 63, 63, 1, 657600, 0x8c6deace
+0, 64, 64, 1, 657600, 0x8c6deace
+0, 65, 65, 1, 657600, 0x8c6deace
+0, 66, 66, 1, 657600, 0xbe1fe8d7
+0, 67, 67, 1, 657600, 0xbe1fe8d7
+0, 68, 68, 1, 657600, 0xbe1fe8d7
+0, 69, 69, 1, 657600, 0x633209db
+0, 70, 70, 1, 657600, 0x633209db
+0, 71, 71, 1, 657600, 0x633209db
+0, 72, 72, 1, 657600, 0x3148adb5
+0, 73, 73, 1, 657600, 0x3148adb5
+0, 74, 74, 1, 657600, 0x3b5f5216
+0, 75, 75, 1, 657600, 0x3b5f5216
1, 55125, 55125, 11025, 22050, 0x34a11f66
-0, 76, 76, 1, 657600, 0x1d395bf9
-0, 77, 77, 1, 657600, 0x1d395bf9
-0, 78, 78, 1, 657600, 0x2ec36f37
-0, 79, 79, 1, 657600, 0x2ec36f37
-0, 80, 80, 1, 657600, 0xb04a6eb7
-0, 81, 81, 1, 657600, 0x66610458
-0, 82, 82, 1, 657600, 0x66610458
-0, 83, 83, 1, 657600, 0xaf8901f0
-0, 84, 84, 1, 657600, 0x3ae41c48
-0, 85, 85, 1, 657600, 0x5b870b70
-0, 86, 86, 1, 657600, 0x11490c60
-0, 87, 87, 1, 657600, 0x70064801
-0, 88, 88, 1, 657600, 0x80d54519
-0, 89, 89, 1, 657600, 0xe8c942b1
-0, 90, 90, 1, 657600, 0x830d8c24
+0, 76, 76, 1, 657600, 0x3b5f5216
+0, 77, 77, 1, 657600, 0x3b5f5216
+0, 78, 78, 1, 657600, 0x5e51fb89
+0, 79, 79, 1, 657600, 0x5e51fb89
+0, 80, 80, 1, 657600, 0x48eafb06
+0, 81, 81, 1, 657600, 0x9f7a8653
+0, 82, 82, 1, 657600, 0x9f7a8653
+0, 83, 83, 1, 657600, 0x29fc83d9
+0, 84, 84, 1, 657600, 0xe7689f10
+0, 85, 85, 1, 657600, 0x9f788dba
+0, 86, 86, 1, 657600, 0x0e808eb2
+0, 87, 87, 1, 657600, 0x3ec53d79
+0, 88, 88, 1, 657600, 0x67ca3a7c
+0, 89, 89, 1, 657600, 0xf7583802
+0, 90, 90, 1, 657600, 0x239e2fc6
1, 66150, 66150, 11025, 22050, 0x1ae81230
-0, 91, 91, 1, 657600, 0x830d8c24
-0, 92, 92, 1, 657600, 0x830d8c24
-0, 93, 93, 1, 657600, 0xf3c4707c
-0, 94, 94, 1, 657600, 0x6ace707c
-0, 95, 95, 1, 657600, 0x6ace707c
-0, 96, 96, 1, 657600, 0x6ace707c
-0, 97, 97, 1, 657600, 0x6ace707c
-0, 98, 98, 1, 657600, 0x6ace707c
-0, 99, 99, 1, 657600, 0x5f461aae
-0, 100, 100, 1, 657600, 0x5f461aae
-0, 101, 101, 1, 657600, 0x221ceecf
-0, 102, 102, 1, 657600, 0x221ceecf
-0, 103, 103, 1, 657600, 0x221ceecf
-0, 104, 104, 1, 657600, 0x221ceecf
-0, 105, 105, 1, 657600, 0x221ceecf
+0, 91, 91, 1, 657600, 0x239e2fc6
+0, 92, 92, 1, 657600, 0x239e2fc6
+0, 93, 93, 1, 657600, 0x001c134c
+0, 94, 94, 1, 657600, 0x5c85134c
+0, 95, 95, 1, 657600, 0x5c85134c
+0, 96, 96, 1, 657600, 0x5c85134c
+0, 97, 97, 1, 657600, 0x5c85134c
+0, 98, 98, 1, 657600, 0x5c85134c
+0, 99, 99, 1, 657600, 0x5fef8bea
+0, 100, 100, 1, 657600, 0x5fef8bea
+0, 101, 101, 1, 657600, 0x23135efa
+0, 102, 102, 1, 657600, 0x23135efa
+0, 103, 103, 1, 657600, 0x23135efa
+0, 104, 104, 1, 657600, 0x23135efa
+0, 105, 105, 1, 657600, 0x23135efa
1, 77175, 77175, 11025, 22050, 0x1217eeba
-0, 106, 106, 1, 657600, 0x221ceecf
-0, 107, 107, 1, 657600, 0x221ceecf
-0, 108, 108, 1, 657600, 0x3bf6f39f
-0, 109, 109, 1, 657600, 0x3bf6f39f
-0, 110, 110, 1, 657600, 0x3bf6f39f
-0, 111, 111, 1, 657600, 0xc2caeecf
-0, 112, 112, 1, 657600, 0xc2caeecf
-0, 113, 113, 1, 657600, 0xc2caeecf
-0, 114, 114, 1, 657600, 0xc316d63e
-0, 115, 115, 1, 657600, 0xc316d63e
-0, 116, 116, 1, 657600, 0xc316d63e
-0, 117, 117, 1, 657600, 0x41f6218d
-0, 118, 118, 1, 657600, 0x41f6218d
-0, 119, 119, 1, 657600, 0x41f6218d
-0, 120, 120, 1, 657600, 0xff43ec36
+0, 106, 106, 1, 657600, 0x23135efa
+0, 107, 107, 1, 657600, 0x23135efa
+0, 108, 108, 1, 657600, 0x50cf63ee
+0, 109, 109, 1, 657600, 0x50cf63ee
+0, 110, 110, 1, 657600, 0x50cf63ee
+0, 111, 111, 1, 657600, 0x2f5c5efa
+0, 112, 112, 1, 657600, 0x2f5c5efa
+0, 113, 113, 1, 657600, 0x2f5c5efa
+0, 114, 114, 1, 657600, 0x9980d3c1
+0, 115, 115, 1, 657600, 0x9980d3c1
+0, 116, 116, 1, 657600, 0x9980d3c1
+0, 117, 117, 1, 657600, 0x23f02141
+0, 118, 118, 1, 657600, 0x23f02141
+0, 119, 119, 1, 657600, 0x23f02141
+0, 120, 120, 1, 657600, 0x3d31ea57
1, 88200, 88200, 11025, 22050, 0x50e70baa
-0, 121, 121, 1, 657600, 0x0b10eb16
-0, 122, 122, 1, 657600, 0x0b10eb16
-0, 123, 123, 1, 657600, 0xbdf41aa5
-0, 124, 124, 1, 657600, 0xbdf41aa5
-0, 125, 125, 1, 657600, 0xbdf41aa5
-0, 126, 126, 1, 657600, 0xd502ca06
-0, 127, 127, 1, 657600, 0xd502ca06
-0, 128, 128, 1, 657600, 0xd502ca06
-0, 129, 129, 1, 657600, 0x8446f89e
-0, 130, 130, 1, 657600, 0x8446f89e
-0, 131, 131, 1, 657600, 0x8446f89e
-0, 132, 132, 1, 657600, 0x3d4ccf06
-0, 133, 133, 1, 657600, 0x0897d1de
-0, 134, 134, 1, 657600, 0x0897d1de
-0, 135, 135, 1, 657600, 0x3e27e01e
+0, 121, 121, 1, 657600, 0x1e9be92f
+0, 122, 122, 1, 657600, 0x1e9be92f
+0, 123, 123, 1, 657600, 0x05091a2e
+0, 124, 124, 1, 657600, 0x05091a2e
+0, 125, 125, 1, 657600, 0x05091a2e
+0, 126, 126, 1, 657600, 0xd214c71a
+0, 127, 127, 1, 657600, 0xd214c71a
+0, 128, 128, 1, 657600, 0xd214c71a
+0, 129, 129, 1, 657600, 0x3b07f720
+0, 130, 130, 1, 657600, 0x3b07f720
+0, 131, 131, 1, 657600, 0x3b07f720
+0, 132, 132, 1, 657600, 0x02becc42
+0, 133, 133, 1, 657600, 0x3d8fcf2e
+0, 134, 134, 1, 657600, 0x3d8fcf2e
+0, 135, 135, 1, 657600, 0xec51ddd7
1, 99225, 99225, 11025, 22050, 0xb19e89c0
-0, 136, 136, 1, 657600, 0x3e27e01e
-0, 137, 137, 1, 657600, 0x3e27e01e
-0, 138, 138, 1, 657600, 0x3e27e01e
-0, 139, 139, 1, 657600, 0x3e27e01e
-0, 140, 140, 1, 657600, 0x3e27e01e
-0, 141, 141, 1, 657600, 0xe51078a8
-0, 142, 142, 1, 657600, 0xe51078a8
-0, 143, 143, 1, 657600, 0xe9967a40
-0, 144, 144, 1, 657600, 0xe9967a40
-0, 145, 145, 1, 657600, 0xe9967a40
-0, 146, 146, 1, 657600, 0xe9967a40
-0, 147, 147, 1, 657600, 0xe9967a40
-0, 148, 148, 1, 657600, 0xe9967a40
-0, 149, 149, 1, 657600, 0xe9967a40
-0, 150, 150, 1, 657600, 0x726cb6b8
+0, 136, 136, 1, 657600, 0xec51ddd7
+0, 137, 137, 1, 657600, 0xec51ddd7
+0, 138, 138, 1, 657600, 0xec51ddd7
+0, 139, 139, 1, 657600, 0xec51ddd7
+0, 140, 140, 1, 657600, 0xec51ddd7
+0, 141, 141, 1, 657600, 0x40a3b905
+0, 142, 142, 1, 657600, 0x40a3b905
+0, 143, 143, 1, 657600, 0xbfc5baa9
+0, 144, 144, 1, 657600, 0xbfc5baa9
+0, 145, 145, 1, 657600, 0xbfc5baa9
+0, 146, 146, 1, 657600, 0xbfc5baa9
+0, 147, 147, 1, 657600, 0xbfc5baa9
+0, 148, 148, 1, 657600, 0xbfc5baa9
+0, 149, 149, 1, 657600, 0xbfc5baa9
+0, 150, 150, 1, 657600, 0x54a2f8dd
1, 110250, 110250, 11025, 22050, 0x78526696
-0, 151, 151, 1, 657600, 0x2960b6e8
-0, 152, 152, 1, 657600, 0x2960b6e8
-0, 153, 153, 1, 657600, 0x1637d6c8
-0, 154, 154, 1, 657600, 0x6f2fd9b0
-0, 155, 155, 1, 657600, 0x27a7d6c8
-0, 156, 156, 1, 657600, 0xe855d6c8
-0, 157, 157, 1, 657600, 0xe855d6c8
-0, 158, 158, 1, 657600, 0xe855d6c8
-0, 159, 159, 1, 657600, 0x1a8ad6c8
-0, 160, 160, 1, 657600, 0x9c11d648
-0, 161, 161, 1, 657600, 0x6136d648
-0, 162, 162, 1, 657600, 0xdfa0d6c8
-0, 163, 163, 1, 657600, 0xdfa0d6c8
-0, 164, 164, 1, 657600, 0xdfa0d6c8
-0, 165, 165, 1, 657600, 0xdfa0d6c8
+0, 151, 151, 1, 657600, 0x0b96f90d
+0, 152, 152, 1, 657600, 0x0b96f90d
+0, 153, 153, 1, 657600, 0xa18119e9
+0, 154, 154, 1, 657600, 0x70a11ce6
+0, 155, 155, 1, 657600, 0xb36f19e9
+0, 156, 156, 1, 657600, 0xeb2219e9
+0, 157, 157, 1, 657600, 0xeb2219e9
+0, 158, 158, 1, 657600, 0xeb2219e9
+0, 159, 159, 1, 657600, 0xb98f19e9
+0, 160, 160, 1, 657600, 0xa4281966
+0, 161, 161, 1, 657600, 0xf0e61966
+0, 162, 162, 1, 657600, 0x065c19e9
+0, 163, 163, 1, 657600, 0x065c19e9
+0, 164, 164, 1, 657600, 0x065c19e9
+0, 165, 165, 1, 657600, 0x065c19e9
1, 121275, 121275, 11025, 22050, 0x48e3bb21
-0, 166, 166, 1, 657600, 0xdfa0d6c8
-0, 167, 167, 1, 657600, 0xdfa0d6c8
-0, 168, 168, 1, 657600, 0xdfa0d6c8
-0, 169, 169, 1, 657600, 0xdfa0d6c8
-0, 170, 170, 1, 657600, 0xdfa0d6c8
-0, 171, 171, 1, 657600, 0x125cd9b0
-0, 172, 172, 1, 657600, 0x125cd9b0
-0, 173, 173, 1, 657600, 0x8a7ed6c8
-0, 174, 174, 1, 657600, 0x09a6d9b0
-0, 175, 175, 1, 657600, 0x09a6d9b0
-0, 176, 176, 1, 657600, 0x09a6d9b0
-0, 177, 177, 1, 657600, 0x85e87a68
-0, 178, 178, 1, 657600, 0x85e87a68
-0, 179, 179, 1, 657600, 0x85e87a68
-0, 180, 180, 1, 657600, 0xb0a141a8
+0, 166, 166, 1, 657600, 0x065c19e9
+0, 167, 167, 1, 657600, 0x065c19e9
+0, 168, 168, 1, 657600, 0x065c19e9
+0, 169, 169, 1, 657600, 0x065c19e9
+0, 170, 170, 1, 657600, 0x065c19e9
+0, 171, 171, 1, 657600, 0x2f1d1ce6
+0, 172, 172, 1, 657600, 0x2f1d1ce6
+0, 173, 173, 1, 657600, 0x181719e9
+0, 174, 174, 1, 657600, 0x938d1ce6
+0, 175, 175, 1, 657600, 0x938d1ce6
+0, 176, 176, 1, 657600, 0x938d1ce6
+0, 177, 177, 1, 657600, 0xf0acbabf
+0, 178, 178, 1, 657600, 0xf0acbabf
+0, 179, 179, 1, 657600, 0xf0acbabf
+0, 180, 180, 1, 657600, 0x0f47804f
1, 132300, 132300, 11025, 22050, 0xbc32204a
-0, 181, 181, 1, 657600, 0xb0a141a8
-0, 182, 182, 1, 657600, 0xf3333bd8
-0, 183, 183, 1, 657600, 0xea090688
-0, 184, 184, 1, 657600, 0xa017fe41
-0, 185, 185, 1, 657600, 0xa017fe41
-0, 186, 186, 1, 657600, 0x32e93bd8
-0, 187, 187, 1, 657600, 0x7fe640c0
-0, 188, 188, 1, 657600, 0x7fe640c0
-0, 189, 189, 1, 657600, 0xcd8995b2
-0, 190, 190, 1, 657600, 0x84278a92
-0, 191, 191, 1, 657600, 0x84278a92
-0, 192, 192, 1, 657600, 0xf1d2874a
-0, 193, 193, 1, 657600, 0xf1d2874a
-0, 194, 194, 1, 657600, 0xf1d2874a
-0, 195, 195, 1, 657600, 0xa58d6742
+0, 181, 181, 1, 657600, 0x0f47804f
+0, 182, 182, 1, 657600, 0x5e0c7a55
+0, 183, 183, 1, 657600, 0x0c8f4374
+0, 184, 184, 1, 657600, 0x709a3b00
+0, 185, 185, 1, 657600, 0x709a3b00
+0, 186, 186, 1, 657600, 0xf57b7a0f
+0, 187, 187, 1, 657600, 0x99427f1b
+0, 188, 188, 1, 657600, 0x99427f1b
+0, 189, 189, 1, 657600, 0xcb3608e7
+0, 190, 190, 1, 657600, 0x0992fd64
+0, 191, 191, 1, 657600, 0x0992fd64
+0, 192, 192, 1, 657600, 0x7a95fa02
+0, 193, 193, 1, 657600, 0x7a95fa02
+0, 194, 194, 1, 657600, 0x7a95fa02
+0, 195, 195, 1, 657600, 0xb97dd910
1, 143325, 143325, 11025, 22050, 0xdf6f1e46
-0, 196, 196, 1, 657600, 0xa58d6742
-0, 197, 197, 1, 657600, 0xa58d6742
-0, 198, 198, 1, 657600, 0xb0cd11bb
-0, 199, 199, 1, 657600, 0xb0cd11bb
-0, 200, 200, 1, 657600, 0xc55610bb
-0, 201, 201, 1, 657600, 0x4ee1168b
-0, 202, 202, 1, 657600, 0x61c513a3
-0, 203, 203, 1, 657600, 0xd26410bb
-0, 204, 204, 1, 657600, 0xe7c410bb
-0, 205, 205, 1, 657600, 0x444a0dd3
-0, 206, 206, 1, 657600, 0x444a0dd3
-0, 207, 207, 1, 657600, 0x97ac10bb
-0, 208, 208, 1, 657600, 0x97ac10bb
-0, 209, 209, 1, 657600, 0xe8b30dd3
-0, 210, 210, 1, 657600, 0x3d0c10bb
+0, 196, 196, 1, 657600, 0xb97dd910
+0, 197, 197, 1, 657600, 0xb97dd910
+0, 198, 198, 1, 657600, 0x3be07a66
+0, 199, 199, 1, 657600, 0x3be07a66
+0, 200, 200, 1, 657600, 0x1ae77960
+0, 201, 201, 1, 657600, 0x62177f5a
+0, 202, 202, 1, 657600, 0xf57c7c5d
+0, 203, 203, 1, 657600, 0x600e7960
+0, 204, 204, 1, 657600, 0xe15d7960
+0, 205, 205, 1, 657600, 0x79427663
+0, 206, 206, 1, 657600, 0x79427663
+0, 207, 207, 1, 657600, 0xa7c77960
+0, 208, 208, 1, 657600, 0xa7c77960
+0, 209, 209, 1, 657600, 0x75f67663
+0, 210, 210, 1, 657600, 0x3a157960
1, 154350, 154350, 11025, 22050, 0x4c91da9d
-0, 211, 211, 1, 657600, 0x8d2b0dd3
-0, 212, 212, 1, 657600, 0x8d2b0dd3
-0, 213, 213, 1, 657600, 0xa5760dd3
-0, 214, 214, 1, 657600, 0xa5760dd3
-0, 215, 215, 1, 657600, 0xa5760dd3
-0, 216, 216, 1, 657600, 0x31a30dd3
-0, 217, 217, 1, 657600, 0x31a30dd3
-0, 218, 218, 1, 657600, 0x31a30dd3
-0, 219, 219, 1, 657600, 0x31a30dd3
-0, 220, 220, 1, 657600, 0x31a30dd3
-0, 221, 221, 1, 657600, 0x31a30dd3
-0, 222, 222, 1, 657600, 0x31a30dd3
-0, 223, 223, 1, 657600, 0x31a30dd3
-0, 224, 224, 1, 657600, 0x31a30dd3
+0, 211, 211, 1, 657600, 0x72aa7663
+0, 212, 212, 1, 657600, 0x72aa7663
+0, 213, 213, 1, 657600, 0x1b277663
+0, 214, 214, 1, 657600, 0x1b277663
+0, 215, 215, 1, 657600, 0x1b277663
+0, 216, 216, 1, 657600, 0x6f5e7663
+0, 217, 217, 1, 657600, 0x6f5e7663
+0, 218, 218, 1, 657600, 0x6f5e7663
+0, 219, 219, 1, 657600, 0x6f5e7663
+0, 220, 220, 1, 657600, 0x6f5e7663
+0, 221, 221, 1, 657600, 0x6f5e7663
+0, 222, 222, 1, 657600, 0x6f5e7663
+0, 223, 223, 1, 657600, 0x6f5e7663
+0, 224, 224, 1, 657600, 0x6f5e7663
diff --git a/tests/ref/fate/txd-16bpp b/tests/ref/fate/txd-16bpp
index 3a23c0b885..9522873946 100644
--- a/tests/ref/fate/txd-16bpp
+++ b/tests/ref/fate/txd-16bpp
@@ -1,12 +1,12 @@
-#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
+#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
diff --git a/tests/ref/fate/txd-pal8 b/tests/ref/fate/txd-pal8
index 3f0aab292f..61fee80fb0 100644
--- a/tests/ref/fate/txd-pal8
+++ b/tests/ref/fate/txd-pal8
@@ -1,2 +1,2 @@
-#tb 0: 1/90000
-0, 0, 0, 0, 786432, 0x56654d61
+#tb 0: 1/5
+0, 0, 0, 1, 786432, 0x56654d61
diff --git a/tests/ref/fate/v210 b/tests/ref/fate/v210
index 2847564b6b..7ad9dcf9e7 100644
--- a/tests/ref/fate/v210
+++ b/tests/ref/fate/v210
@@ -1,2 +1,2 @@
#tb 0: 1/50
-0, 0, 0, 1, 3686400, 0x75ee1dde
+0, 0, 0, 1, 3686400, 0x8d5c3847
diff --git a/tests/ref/fate/vc1-ism b/tests/ref/fate/vc1-ism
index a9cfb2c5d5..7d3b0abb9b 100644
--- a/tests/ref/fate/vc1-ism
+++ b/tests/ref/fate/vc1-ism
@@ -1,121 +1,121 @@
-#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, 49798332, 49798332, 0, 37440, 0x68141016
+#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
diff --git a/tests/ref/fate/vmnc-16bit b/tests/ref/fate/vmnc-16bit
index 2a1848eccb..064b7fa9de 100644
--- a/tests/ref/fate/vmnc-16bit
+++ b/tests/ref/fate/vmnc-16bit
@@ -1,193 +1,193 @@
#tb 0: 1/5
-0, 0, 0, 1, 864000, 0x9b1cee65
-0, 1, 1, 1, 864000, 0x82950e3f
-0, 2, 2, 1, 864000, 0x335f9678
-0, 3, 3, 1, 864000, 0x6b86b7e7
-0, 4, 4, 1, 864000, 0x25618cf2
-0, 5, 5, 1, 864000, 0xed2196c9
-0, 6, 6, 1, 864000, 0xbeaa31ba
-0, 7, 7, 1, 864000, 0x14e6c8ab
-0, 8, 8, 1, 864000, 0x17e5c196
-0, 9, 9, 1, 864000, 0x4aa15110
-0, 10, 10, 1, 864000, 0x4aa15110
-0, 11, 11, 1, 864000, 0x4aa15110
-0, 12, 12, 1, 864000, 0x3c2d3809
-0, 13, 13, 1, 864000, 0xd075f4d0
-0, 14, 14, 1, 864000, 0x0c3f2833
-0, 15, 15, 1, 864000, 0xe7471872
-0, 16, 16, 1, 864000, 0x4300b71d
-0, 17, 17, 1, 864000, 0x6b5844ec
-0, 18, 18, 1, 864000, 0xb3ebc395
-0, 19, 19, 1, 864000, 0x39aa8a7d
-0, 20, 20, 1, 864000, 0x52a3d93d
-0, 21, 21, 1, 864000, 0x73adbdac
-0, 22, 22, 1, 864000, 0xa9fd6cdc
-0, 23, 23, 1, 864000, 0x4a085344
-0, 24, 24, 1, 864000, 0xc21b943c
-0, 25, 25, 1, 864000, 0xfaef6ed4
-0, 26, 26, 1, 864000, 0xa3e9163c
-0, 27, 27, 1, 864000, 0x917e2be4
-0, 28, 28, 1, 864000, 0x2d89d534
-0, 29, 29, 1, 864000, 0x6fe5a9e4
-0, 30, 30, 1, 864000, 0x71af29ec
-0, 31, 31, 1, 864000, 0x8f33f6ad
-0, 32, 32, 1, 864000, 0xe7d46a24
-0, 33, 33, 1, 864000, 0xb631e044
-0, 34, 34, 1, 864000, 0x77db01cb
-0, 35, 35, 1, 864000, 0x9861b6ec
-0, 36, 36, 1, 864000, 0x973bd263
-0, 37, 37, 1, 864000, 0xdd4c175b
-0, 38, 38, 1, 864000, 0xdc28469b
-0, 39, 39, 1, 864000, 0x67393ebb
-0, 40, 40, 1, 864000, 0x01a06813
-0, 41, 41, 1, 864000, 0x63e88f73
-0, 42, 42, 1, 864000, 0x3ffbdd73
-0, 43, 43, 1, 864000, 0xd25f790b
-0, 44, 44, 1, 864000, 0x14e3c5d3
-0, 45, 45, 1, 864000, 0x0d3d1202
-0, 46, 46, 1, 864000, 0x69decf03
-0, 47, 47, 1, 864000, 0x1b20ab93
-0, 48, 48, 1, 864000, 0xee2f8d4a
-0, 49, 49, 1, 864000, 0xaac44c52
-0, 50, 50, 1, 864000, 0x3f874a5a
-0, 51, 51, 1, 864000, 0x239b2d7a
-0, 52, 52, 1, 864000, 0xb85db552
-0, 53, 53, 1, 864000, 0xb12962a2
-0, 54, 54, 1, 864000, 0xb8270fd9
-0, 55, 55, 1, 864000, 0x14930601
-0, 56, 56, 1, 864000, 0x827a15c1
-0, 57, 57, 1, 864000, 0xe31011d1
-0, 58, 58, 1, 864000, 0xcd2154c1
-0, 59, 59, 1, 864000, 0xad02dbd9
-0, 60, 60, 1, 864000, 0x40c17d58
-0, 61, 61, 1, 864000, 0x8219e3b9
-0, 62, 62, 1, 864000, 0x2d348340
-0, 63, 63, 1, 864000, 0x6b61dfc9
-0, 64, 64, 1, 864000, 0xc8d95be1
-0, 65, 65, 1, 864000, 0x70ba0918
-0, 66, 66, 1, 864000, 0xdc728131
-0, 67, 67, 1, 864000, 0x9b054a10
-0, 68, 68, 1, 864000, 0x3983f751
-0, 69, 69, 1, 864000, 0x325fe1a9
-0, 70, 70, 1, 864000, 0x7a41eac0
-0, 71, 71, 1, 864000, 0x324372a8
-0, 72, 72, 1, 864000, 0xc014ea18
-0, 73, 73, 1, 864000, 0x1a506a1f
-0, 74, 74, 1, 864000, 0x47b59557
-0, 75, 75, 1, 864000, 0x5f2e194f
-0, 76, 76, 1, 864000, 0x9f6abb68
-0, 77, 77, 1, 864000, 0x831d2b97
-0, 78, 78, 1, 864000, 0x0635af7f
-0, 79, 79, 1, 864000, 0xe54a5626
-0, 80, 80, 1, 864000, 0x704dca4f
-0, 81, 81, 1, 864000, 0x47de6676
-0, 82, 82, 1, 864000, 0x609705fd
-0, 83, 83, 1, 864000, 0x8d92e086
-0, 84, 84, 1, 864000, 0xdb7dab5e
-0, 85, 85, 1, 864000, 0xe6ccb686
-0, 86, 86, 1, 864000, 0x0d137f66
-0, 87, 87, 1, 864000, 0xd200035d
-0, 88, 88, 1, 864000, 0x7dcb959d
-0, 89, 89, 1, 864000, 0xee849f75
-0, 90, 90, 1, 864000, 0x89d14acd
-0, 91, 91, 1, 864000, 0x3738029d
-0, 92, 92, 1, 864000, 0x6f4c4395
-0, 93, 93, 1, 864000, 0x06334395
-0, 94, 94, 1, 864000, 0x238b7c94
-0, 95, 95, 1, 864000, 0xfa5d1e14
-0, 96, 96, 1, 864000, 0x50b10e54
-0, 97, 97, 1, 864000, 0x9ed3b6e4
-0, 98, 98, 1, 864000, 0x68da9374
-0, 99, 99, 1, 864000, 0xb32a137c
-0, 100, 100, 1, 864000, 0x577d5084
-0, 101, 101, 1, 864000, 0xd262176b
-0, 102, 102, 1, 864000, 0xf58b44b3
-0, 103, 103, 1, 864000, 0xd0828edc
-0, 104, 104, 1, 864000, 0xc91a7544
-0, 105, 105, 1, 864000, 0x18ae7f1c
-0, 106, 106, 1, 864000, 0x82623643
-0, 107, 107, 1, 864000, 0x9cf82cfb
-0, 108, 108, 1, 864000, 0x93ad116b
-0, 109, 109, 1, 864000, 0xa669044b
-0, 110, 110, 1, 864000, 0x8adf88c3
-0, 111, 111, 1, 864000, 0xb83fb413
-0, 112, 112, 1, 864000, 0xb9e291f3
-0, 113, 113, 1, 864000, 0x5833dcc3
-0, 114, 114, 1, 864000, 0x4ab825aa
-0, 115, 115, 1, 864000, 0xb52c3b53
-0, 116, 116, 1, 864000, 0x0cb0dd53
-0, 117, 117, 1, 864000, 0x98b8dd52
-0, 118, 118, 1, 864000, 0x989230ba
-0, 119, 119, 1, 864000, 0xaed4c073
-0, 120, 120, 1, 864000, 0x76a7c83a
-0, 121, 121, 1, 864000, 0x02711eea
-0, 122, 122, 1, 864000, 0x8de65fe2
-0, 123, 123, 1, 864000, 0xc1163689
-0, 124, 124, 1, 864000, 0xc04f8b31
-0, 125, 125, 1, 864000, 0x69218d2a
-0, 126, 126, 1, 864000, 0x7e3abe62
-0, 127, 127, 1, 864000, 0x00ebe27a
-0, 128, 128, 1, 864000, 0x34803f11
-0, 129, 129, 1, 864000, 0x85591cd9
-0, 130, 130, 1, 864000, 0x8422fb51
-0, 131, 131, 1, 864000, 0x67c759e1
-0, 132, 132, 1, 864000, 0x4ac36af1
-0, 133, 133, 1, 864000, 0xdf00fca2
-0, 134, 134, 1, 864000, 0x74c633d1
-0, 135, 135, 1, 864000, 0x00251c31
-0, 136, 136, 1, 864000, 0x6d12a499
-0, 137, 137, 1, 864000, 0x1b6492e1
-0, 138, 138, 1, 864000, 0xdfc9a2a1
-0, 139, 139, 1, 864000, 0x33dcac79
-0, 140, 140, 1, 864000, 0x2305a499
-0, 141, 141, 1, 864000, 0xe1f3ae71
-0, 142, 142, 1, 864000, 0xc0cc92e1
-0, 143, 143, 1, 864000, 0x53d3b261
-0, 144, 144, 1, 864000, 0xf953aa81
-0, 145, 145, 1, 864000, 0x4108da69
-0, 146, 146, 1, 864000, 0xd6acf9e9
-0, 147, 147, 1, 864000, 0xb97ed900
-0, 148, 148, 1, 864000, 0x1d8b7a80
-0, 149, 149, 1, 864000, 0xd5406cb8
-0, 150, 150, 1, 864000, 0x5aa34948
-0, 151, 151, 1, 864000, 0x328eee01
-0, 152, 152, 1, 864000, 0xac92e621
-0, 153, 153, 1, 864000, 0x4fa1f5e1
-0, 154, 154, 1, 864000, 0xf7c4e8a8
-0, 155, 155, 1, 864000, 0xc358bd58
-0, 156, 156, 1, 864000, 0x29ec4b27
-0, 157, 157, 1, 864000, 0xf7219c88
-0, 158, 158, 1, 864000, 0xe77ff130
-0, 159, 159, 1, 864000, 0x73683417
-0, 160, 160, 1, 864000, 0x08b6be77
-0, 161, 161, 1, 864000, 0x3a7eea6f
-0, 162, 162, 1, 864000, 0xb319cce7
-0, 163, 163, 1, 864000, 0x9607b13e
-0, 164, 164, 1, 864000, 0x30543f0d
-0, 165, 165, 1, 864000, 0x56915a9e
-0, 166, 166, 1, 864000, 0x79f158a6
-0, 167, 167, 1, 864000, 0x498b8bd6
-0, 168, 168, 1, 864000, 0xe9ad7046
-0, 169, 169, 1, 864000, 0xe9ad7046
-0, 170, 170, 1, 864000, 0x10317e0e
-0, 171, 171, 1, 864000, 0x10317e0e
-0, 172, 172, 1, 864000, 0x10317e0e
-0, 173, 173, 1, 864000, 0x99ec7046
-0, 174, 174, 1, 864000, 0x924d46ee
-0, 175, 175, 1, 864000, 0x98bf333e
-0, 176, 176, 1, 864000, 0xb2625c96
-0, 177, 177, 1, 864000, 0xb46b3926
-0, 178, 178, 1, 864000, 0xeb4e5c96
-0, 179, 179, 1, 864000, 0x87154ece
-0, 180, 180, 1, 864000, 0x9e4c666e
-0, 181, 181, 1, 864000, 0x65b53d16
-0, 182, 182, 1, 864000, 0x99e85e8e
-0, 183, 183, 1, 864000, 0x650ba17e
-0, 184, 184, 1, 864000, 0x1ecb000e
-0, 185, 185, 1, 864000, 0xb942327d
-0, 186, 186, 1, 864000, 0x1bf20925
-0, 187, 187, 1, 864000, 0x61dba6a5
-0, 188, 188, 1, 864000, 0x5de16d8d
-0, 189, 189, 1, 864000, 0x4eb1f75d
-0, 190, 190, 1, 864000, 0x4eb1f75d
-0, 191, 191, 1, 864000, 0xd0750144
+0, 0, 0, 1, 864000, 0xd6929ea7
+0, 1, 1, 1, 864000, 0x9d5283fa
+0, 2, 2, 1, 864000, 0xcec52d42
+0, 3, 3, 1, 864000, 0x34d5943e
+0, 4, 4, 1, 864000, 0x5bd0b2a8
+0, 5, 5, 1, 864000, 0x41f1c468
+0, 6, 6, 1, 864000, 0x16aa54b9
+0, 7, 7, 1, 864000, 0xdb92e88a
+0, 8, 8, 1, 864000, 0x0ae5d695
+0, 9, 9, 1, 864000, 0x2c338d33
+0, 10, 10, 1, 864000, 0x2c338d33
+0, 11, 11, 1, 864000, 0x2c338d33
+0, 12, 12, 1, 864000, 0xd9c1152f
+0, 13, 13, 1, 864000, 0x9833bf29
+0, 14, 14, 1, 864000, 0xbedbe1bc
+0, 15, 15, 1, 864000, 0xd137d921
+0, 16, 16, 1, 864000, 0xcb0f967a
+0, 17, 17, 1, 864000, 0x931a2881
+0, 18, 18, 1, 864000, 0xeb8ca351
+0, 19, 19, 1, 864000, 0xe2f66886
+0, 20, 20, 1, 864000, 0xb81fb99e
+0, 21, 21, 1, 864000, 0x2048a4d9
+0, 22, 22, 1, 864000, 0x145b514f
+0, 23, 23, 1, 864000, 0xcb6236f4
+0, 24, 24, 1, 864000, 0x6d2d79db
+0, 25, 25, 1, 864000, 0xadca5356
+0, 26, 26, 1, 864000, 0x5d51f80c
+0, 27, 27, 1, 864000, 0x9e240e68
+0, 28, 28, 1, 864000, 0xcafcbcc2
+0, 29, 29, 1, 864000, 0x76f99028
+0, 30, 30, 1, 864000, 0xd7450c61
+0, 31, 31, 1, 864000, 0x1431d79c
+0, 32, 32, 1, 864000, 0x081a4e30
+0, 33, 33, 1, 864000, 0x0437c7d4
+0, 34, 34, 1, 864000, 0xb4bbea4b
+0, 35, 35, 1, 864000, 0x0a149d41
+0, 36, 36, 1, 864000, 0xf7dbc0d5
+0, 37, 37, 1, 864000, 0x6933003c
+0, 38, 38, 1, 864000, 0x18ce30e4
+0, 39, 39, 1, 864000, 0x8c8728c8
+0, 40, 40, 1, 864000, 0x37b6535b
+0, 41, 41, 1, 864000, 0xcdab7be7
+0, 42, 42, 1, 864000, 0xe1e1cbe7
+0, 43, 43, 1, 864000, 0x1d476482
+0, 44, 44, 1, 864000, 0x0ae0b393
+0, 45, 45, 1, 864000, 0x49140206
+0, 46, 46, 1, 864000, 0xe9f9bd09
+0, 47, 47, 1, 864000, 0x89a7988b
+0, 48, 48, 1, 864000, 0x24f780a7
+0, 49, 49, 1, 864000, 0x88a53dc0
+0, 50, 50, 1, 864000, 0x27ed3bb9
+0, 51, 51, 1, 864000, 0xc8151dfd
+0, 52, 52, 1, 864000, 0xfcb8a9e0
+0, 53, 53, 1, 864000, 0xd6d554ba
+0, 54, 54, 1, 864000, 0xbc6e06c6
+0, 55, 55, 1, 864000, 0x6334fc94
+0, 56, 56, 1, 864000, 0x7a7e0cdb
+0, 57, 57, 1, 864000, 0xf96008cd
+0, 58, 58, 1, 864000, 0xffbc4dbb
+0, 59, 59, 1, 864000, 0x1071d886
+0, 60, 60, 1, 864000, 0x6b967ed3
+0, 61, 61, 1, 864000, 0xd370e0a2
+0, 62, 62, 1, 864000, 0x4cca84e8
+0, 63, 63, 1, 864000, 0xd46bdc94
+0, 64, 64, 1, 864000, 0x102a54bf
+0, 65, 65, 1, 864000, 0xe39406cb
+0, 66, 66, 1, 864000, 0x9bb07ad9
+0, 67, 67, 1, 864000, 0xd3b749b2
+0, 68, 68, 1, 864000, 0x59faf47d
+0, 69, 69, 1, 864000, 0xba38de30
+0, 70, 70, 1, 864000, 0x7084eed8
+0, 71, 71, 1, 864000, 0xa966732d
+0, 72, 72, 1, 864000, 0xb9f1ee2b
+0, 73, 73, 1, 864000, 0x09267201
+0, 74, 74, 1, 864000, 0xc6b09e30
+0, 75, 75, 1, 864000, 0x080d1e77
+0, 76, 76, 1, 864000, 0xe28bbdc5
+0, 77, 77, 1, 864000, 0x230a30f8
+0, 78, 78, 1, 864000, 0x4d0bb8cd
+0, 79, 79, 1, 864000, 0x96096417
+0, 80, 80, 1, 864000, 0x7467d417
+0, 81, 81, 1, 864000, 0xbcc07491
+0, 82, 82, 1, 864000, 0x794718d7
+0, 83, 83, 1, 864000, 0xf23ff243
+0, 84, 84, 1, 864000, 0x9961bb86
+0, 85, 85, 1, 864000, 0x7be4c703
+0, 86, 86, 1, 864000, 0x727f8e3f
+0, 87, 87, 1, 864000, 0xda421623
+0, 88, 88, 1, 864000, 0xca69ac6b
+0, 89, 89, 1, 864000, 0x67aeb68e
+0, 90, 90, 1, 864000, 0x3b665f61
+0, 91, 91, 1, 864000, 0x3716150b
+0, 92, 92, 1, 864000, 0x2dcd57f2
+0, 93, 93, 1, 864000, 0x800257f2
+0, 94, 94, 1, 864000, 0x10de99ef
+0, 95, 95, 1, 864000, 0x3438389f
+0, 96, 96, 1, 864000, 0x42682867
+0, 97, 97, 1, 864000, 0x9d64d5a9
+0, 98, 98, 1, 864000, 0x9e2eb12b
+0, 99, 99, 1, 864000, 0xb9f42d64
+0, 100, 100, 1, 864000, 0xd6f36c3d
+0, 101, 101, 1, 864000, 0xfeaa390f
+0, 102, 102, 1, 864000, 0x3fe067b0
+0, 103, 103, 1, 864000, 0x45ebac70
+0, 104, 104, 1, 864000, 0xabfb9215
+0, 105, 105, 1, 864000, 0x20f79c38
+0, 106, 106, 1, 864000, 0x326858d2
+0, 107, 107, 1, 864000, 0x67154ef1
+0, 108, 108, 1, 864000, 0x2b3d328f
+0, 109, 109, 1, 864000, 0x8190250b
+0, 110, 110, 1, 864000, 0x31dead22
+0, 111, 111, 1, 864000, 0xa9b8d9bc
+0, 112, 112, 1, 864000, 0x330db698
+0, 113, 113, 1, 864000, 0x0ff803b1
+0, 114, 114, 1, 864000, 0xb7614eb4
+0, 115, 115, 1, 864000, 0x12c75d64
+0, 116, 116, 1, 864000, 0x622c03f3
+0, 117, 117, 1, 864000, 0x0ace0b90
+0, 118, 118, 1, 864000, 0x2c2b59c6
+0, 119, 119, 1, 864000, 0xadbbe628
+0, 120, 120, 1, 864000, 0x1371f576
+0, 121, 121, 1, 864000, 0x066a471c
+0, 122, 122, 1, 864000, 0x0e6f8a03
+0, 123, 123, 1, 864000, 0x4325670d
+0, 124, 124, 1, 864000, 0x2e8abe3a
+0, 125, 125, 1, 864000, 0x0ea8b8a4
+0, 126, 126, 1, 864000, 0x65e4eb53
+0, 127, 127, 1, 864000, 0xa03d108d
+0, 128, 128, 1, 864000, 0xd3d56fd6
+0, 129, 129, 1, 864000, 0x1b8e4c47
+0, 130, 130, 1, 864000, 0x5bd0316d
+0, 131, 131, 1, 864000, 0x49478b20
+0, 132, 132, 1, 864000, 0x3dae9cb2
+0, 133, 133, 1, 864000, 0x671e2b2a
+0, 134, 134, 1, 864000, 0x521763ee
+0, 135, 135, 1, 864000, 0x73dc4b9a
+0, 136, 136, 1, 864000, 0x3c95d7bf
+0, 137, 137, 1, 864000, 0x3abdc580
+0, 138, 138, 1, 864000, 0xae24d5b8
+0, 139, 139, 1, 864000, 0xe630dfdb
+0, 140, 140, 1, 864000, 0x229ad7bf
+0, 141, 141, 1, 864000, 0x3372e1e2
+0, 142, 142, 1, 864000, 0xa821c580
+0, 143, 143, 1, 864000, 0x7c78e5f0
+0, 144, 144, 1, 864000, 0x3324ddd4
+0, 145, 145, 1, 864000, 0x98580f38
+0, 146, 146, 1, 864000, 0x14072fa8
+0, 147, 147, 1, 864000, 0xdbb21510
+0, 148, 148, 1, 864000, 0x6a55b3b1
+0, 149, 149, 1, 864000, 0x7b5ba580
+0, 150, 150, 1, 864000, 0x2f5e8102
+0, 151, 151, 1, 864000, 0x691e2313
+0, 152, 152, 1, 864000, 0x423b1af7
+0, 153, 153, 1, 864000, 0x02842b2f
+0, 154, 154, 1, 864000, 0x8a4e24dd
+0, 155, 155, 1, 864000, 0xbbebf834
+0, 156, 156, 1, 864000, 0x0ba68a3b
+0, 157, 157, 1, 864000, 0x6390d66a
+0, 158, 158, 1, 864000, 0x6ee32da6
+0, 159, 159, 1, 864000, 0xace87229
+0, 160, 160, 1, 864000, 0xb2a10064
+0, 161, 161, 1, 864000, 0x9cc42dab
+0, 162, 162, 1, 864000, 0x32eb0f42
+0, 163, 163, 1, 864000, 0x6cb1fa03
+0, 164, 164, 1, 864000, 0xddd28c0a
+0, 165, 165, 1, 864000, 0xae5ca0cf
+0, 166, 166, 1, 864000, 0x4cb99ec8
+0, 167, 167, 1, 864000, 0xdad7d37e
+0, 168, 168, 1, 864000, 0x7090b71c
+0, 169, 169, 1, 864000, 0x7090b71c
+0, 170, 170, 1, 864000, 0x96a4c54d
+0, 171, 171, 1, 864000, 0x96a4c54d
+0, 172, 172, 1, 864000, 0x96a4c54d
+0, 173, 173, 1, 864000, 0xc47eb71c
+0, 174, 174, 1, 864000, 0xcd678c89
+0, 175, 175, 1, 864000, 0xb89e7843
+0, 176, 176, 1, 864000, 0x7f3aa2d6
+0, 177, 177, 1, 864000, 0xffc57e58
+0, 178, 178, 1, 864000, 0x091fa2d6
+0, 179, 179, 1, 864000, 0x3bc994a5
+0, 180, 180, 1, 864000, 0x73afacf9
+0, 181, 181, 1, 864000, 0x628b8266
+0, 182, 182, 1, 864000, 0xe2f2a4dd
+0, 183, 183, 1, 864000, 0x7118e9cb
+0, 184, 184, 1, 864000, 0x65b1438d
+0, 185, 185, 1, 864000, 0x51657ec8
+0, 186, 186, 1, 864000, 0x41a75435
+0, 187, 187, 1, 864000, 0xe387f665
+0, 188, 188, 1, 864000, 0x2baabb9a
+0, 189, 189, 1, 864000, 0xd2d74993
+0, 190, 190, 1, 864000, 0xd2d74993
+0, 191, 191, 1, 864000, 0xa7bf53b6
diff --git a/tests/ref/fate/vp3-coeff-level64 b/tests/ref/fate/vp3-coeff-level64
index d6abb62f70..4bfafaf5ef 100644
--- a/tests/ref/fate/vp3-coeff-level64
+++ b/tests/ref/fate/vp3-coeff-level64
@@ -1,9 +1,9 @@
-#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
+#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
diff --git a/tests/ref/fate/vp5 b/tests/ref/fate/vp5
index 791fe60af1..0e601ba811 100644
--- a/tests/ref/fate/vp5
+++ b/tests/ref/fate/vp5
@@ -245,3 +245,4 @@
0, 243, 243, 1, 233472, 0x6f530ac6
0, 244, 244, 1, 233472, 0x94f7466c
0, 245, 245, 1, 233472, 0xa8c1d365
+0, 246, 246, 1, 233472, 0xedcff050
diff --git a/tests/ref/fate/vp6a b/tests/ref/fate/vp6a
index 6ce8486284..de0518bf35 100644
--- a/tests/ref/fate/vp6a
+++ b/tests/ref/fate/vp6a
@@ -1,94 +1,94 @@
-#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
+#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
diff --git a/tests/ref/fate/vp6f b/tests/ref/fate/vp6f
index 87950425b0..edb555dc63 100644
--- a/tests/ref/fate/vp6f
+++ b/tests/ref/fate/vp6f
@@ -1,175 +1,175 @@
-#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
+#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
diff --git a/tests/ref/fate/vp8-sign-bias b/tests/ref/fate/vp8-sign-bias
index 77b69ed421..38843c07c0 100644
--- a/tests/ref/fate/vp8-sign-bias
+++ b/tests/ref/fate/vp8-sign-bias
@@ -6,4 +6,5 @@
0, 5, 5, 1, 614880, 52f47f1e0348f3297d9f233fb5405e8b
0, 6, 6, 1, 614880, cd51d2c200bfd66e8e1b0fd6b404570f
0, 7, 7, 1, 614880, cf535cf0a53e903cd98a9a944b72da6d
-0, 8, 8, 1, 614880, ff373c0c8a4a319c84e72b1c3d76b399
+0, 8, 8, 1, 614880, 1b270fd2b56daa7892102c2885d23201
+0, 9, 9, 1, 614880, ff373c0c8a4a319c84e72b1c3d76b399
diff --git a/tests/ref/fate/vqa-cc b/tests/ref/fate/vqa-cc
index 97ae71d5c4..401a061b94 100644
--- a/tests/ref/fate/vqa-cc
+++ b/tests/ref/fate/vqa-cc
@@ -5,70 +5,70 @@
0, 1, 1, 1, 192000, 0x00000000
0, 2, 2, 1, 192000, 0x00000000
0, 3, 3, 1, 192000, 0x00000000
-0, 4, 4, 1, 192000, 0xcd900ccc
-0, 5, 5, 1, 192000, 0xfd496438
-0, 6, 6, 1, 192000, 0x965f0bf3
-0, 7, 7, 1, 192000, 0x378fca5f
+0, 4, 4, 1, 192000, 0x9ee00ccf
+0, 5, 5, 1, 192000, 0x67256507
+0, 6, 6, 1, 192000, 0x74c70e87
+0, 7, 7, 1, 192000, 0x8ecdce9a
1, 11024, 11024, 1470, 2940, 0x0f3c64cb
-0, 8, 8, 1, 192000, 0x5ccd8966
+0, 8, 8, 1, 192000, 0xc40f8efd
1, 12494, 12494, 1470, 2940, 0xc90b9e78
-0, 9, 9, 1, 192000, 0x859676f9
+0, 9, 9, 1, 192000, 0xb8107dfb
1, 13964, 13964, 1470, 2940, 0x146246a3
-0, 10, 10, 1, 192000, 0x820bfb1c
+0, 10, 10, 1, 192000, 0xb4e504eb
1, 15434, 15434, 1470, 2940, 0xd22c714e
-0, 11, 11, 1, 192000, 0x7570cc05
+0, 11, 11, 1, 192000, 0x0c7fdb95
1, 16904, 16904, 1470, 2940, 0xd86b681e
-0, 12, 12, 1, 192000, 0xf38bdb06
+0, 12, 12, 1, 192000, 0x58c9f045
1, 18374, 18374, 1470, 2940, 0x12ec8186
-0, 13, 13, 1, 192000, 0x9b0cbb44
+0, 13, 13, 1, 192000, 0xcba9d0e9
1, 19844, 19844, 1470, 2940, 0x69aa85b6
-0, 14, 14, 1, 192000, 0x0ed70665
+0, 14, 14, 1, 192000, 0x392a20f6
1, 21314, 21314, 1470, 2940, 0xb24d33b0
-0, 15, 15, 1, 192000, 0xd16de7fc
+0, 15, 15, 1, 192000, 0xc37905cc
1, 22784, 22784, 1470, 2940, 0x3f7b0f0d
-0, 16, 16, 1, 192000, 0x97afb484
+0, 16, 16, 1, 192000, 0xe278cf95
1, 24254, 24254, 1470, 2940, 0x64f10f7e
-0, 17, 17, 1, 192000, 0x012893f3
+0, 17, 17, 1, 192000, 0x3d03b01d
1, 25724, 25724, 1470, 2940, 0xd6ea379a
-0, 18, 18, 1, 192000, 0x742a4b43
+0, 18, 18, 1, 192000, 0x16a26f28
1, 27194, 27194, 1470, 2940, 0x7c38e830
-0, 19, 19, 1, 192000, 0x309dcd75
+0, 19, 19, 1, 192000, 0xdd17f51c
1, 28664, 28664, 1470, 2940, 0xc28ff132
-0, 20, 20, 1, 192000, 0xed7814ac
+0, 20, 20, 1, 192000, 0x19703b85
1, 30134, 30134, 1470, 2940, 0xe7b11629
-0, 21, 21, 1, 192000, 0xdb7de3d7
+0, 21, 21, 1, 192000, 0xe51f0e70
1, 31604, 31604, 1470, 2940, 0xeb86fdcb
-0, 22, 22, 1, 192000, 0xe18679a3
+0, 22, 22, 1, 192000, 0x6f94ad2a
1, 33074, 33074, 1470, 2940, 0x5508f586
-0, 23, 23, 1, 192000, 0xb1f213f4
+0, 23, 23, 1, 192000, 0x71e449f1
1, 34544, 34544, 1470, 2940, 0xf4fa1f1b
-0, 24, 24, 1, 192000, 0x33c99b5c
+0, 24, 24, 1, 192000, 0x1dcacc52
1, 36014, 36014, 1470, 2940, 0x9e5ff976
-0, 25, 25, 1, 192000, 0xf66c0c91
+0, 25, 25, 1, 192000, 0x49c23f58
1, 37484, 37484, 1470, 2940, 0xcfc4e08f
-0, 26, 26, 1, 192000, 0x929cdc73
+0, 26, 26, 1, 192000, 0x4ce61551
1, 38954, 38954, 1470, 2940, 0x74bde7ed
-0, 27, 27, 1, 192000, 0xa723fc3b
+0, 27, 27, 1, 192000, 0xe54832d5
1, 40424, 40424, 1470, 2940, 0x3e4ae245
-0, 28, 28, 1, 192000, 0xe6395ccc
+0, 28, 28, 1, 192000, 0xbae28a59
1, 41894, 41894, 1470, 2940, 0x4c6a8e56
-0, 29, 29, 1, 192000, 0x147fbf74
+0, 29, 29, 1, 192000, 0xe8a4efbe
1, 43364, 43364, 1470, 2940, 0xa09d86ab
-0, 30, 30, 1, 192000, 0x3ec62d28
+0, 30, 30, 1, 192000, 0xe9e96883
1, 44834, 44834, 1470, 2940, 0xc8531912
-0, 31, 31, 1, 192000, 0x22104ffb
+0, 31, 31, 1, 192000, 0xa5468c49
1, 46304, 46304, 1470, 2940, 0xa5f266aa
-0, 32, 32, 1, 192000, 0x91f25f58
+0, 32, 32, 1, 192000, 0x7ec6936a
1, 47774, 47774, 1470, 2940, 0x587a4187
-0, 33, 33, 1, 192000, 0xc91b0e4e
+0, 33, 33, 1, 192000, 0x46e53ee4
1, 49244, 49244, 1470, 2940, 0x14752d45
-0, 34, 34, 1, 192000, 0x4683df56
+0, 34, 34, 1, 192000, 0x937b168a
1, 50714, 50714, 1470, 2940, 0x558cde10
-0, 35, 35, 1, 192000, 0x8ef8932a
+0, 35, 35, 1, 192000, 0xed76cec4
1, 52184, 52184, 1470, 2940, 0x735fee38
-0, 36, 36, 1, 192000, 0xce6c0ec0
+0, 36, 36, 1, 192000, 0x4b9f454d
1, 53654, 53654, 1470, 2940, 0xac8bb6c8
-0, 37, 37, 1, 192000, 0xcc10e2a0
+0, 37, 37, 1, 192000, 0xb58c1566
1, 55124, 55124, 1470, 2940, 0xa503c73b
1, 56594, 56594, 1470, 2940, 0x7cd588a3
1, 58064, 58064, 1470, 2940, 0xa6974b04
diff --git a/tests/ref/fate/wmv8-drm b/tests/ref/fate/wmv8-drm
index c2a6dd59f2..31291d38ed 100644
--- a/tests/ref/fate/wmv8-drm
+++ b/tests/ref/fate/wmv8-drm
@@ -1,131 +1,131 @@
-#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
+#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, 0x0998a064
diff --git a/tests/ref/fate/wmv8-x8intra b/tests/ref/fate/wmv8-x8intra
new file mode 100644
index 0000000000..ddb0f5c903
--- /dev/null
+++ b/tests/ref/fate/wmv8-x8intra
@@ -0,0 +1,473 @@
+0, 0, 115200, 0x03fbd838
+0, 6000, 115200, 0x8911d86f
+0, 12000, 115200, 0x7c5dd82e
+0, 18000, 115200, 0x7c5ed82e
+0, 24000, 115200, 0xd323d838
+0, 30000, 115200, 0x6e7479ab
+0, 36000, 115200, 0x14674bf6
+0, 42000, 115200, 0x074c2e3d
+0, 48000, 115200, 0x9b3025ef
+0, 54000, 115200, 0x76882dae
+0, 60000, 115200, 0xedf3421b
+0, 66000, 115200, 0xb5378486
+0, 72000, 115200, 0xc4a53420
+0, 78000, 115200, 0x559cb60f
+0, 84000, 115200, 0xcc034ddd
+0, 90000, 115200, 0xb77b7779
+0, 96000, 115200, 0x0ad9c3e6
+0, 102000, 115200, 0x4e673027
+0, 108000, 115200, 0x54717979
+0, 114000, 115200, 0xf9e557c9
+0, 120000, 115200, 0xefad6344
+0, 126000, 115200, 0x07497ba3
+0, 132000, 115200, 0xabef71d3
+0, 138000, 115200, 0x5b8f5802
+0, 144000, 115200, 0x8b920b76
+0, 150000, 115200, 0xb93f0f04
+0, 156000, 115200, 0xa31b18c0
+0, 162000, 115200, 0x9116235b
+0, 168000, 115200, 0xe54b1d0b
+0, 174000, 115200, 0x35e7252a
+0, 180000, 115200, 0x2cae31d5
+0, 186000, 115200, 0x28493c57
+0, 192000, 115200, 0xd8a445b5
+0, 198000, 115200, 0xbf854c55
+0, 204000, 115200, 0x3761555c
+0, 210000, 115200, 0x07a35c8a
+0, 216000, 115200, 0x848c6eb0
+0, 222000, 115200, 0x8d7c77d1
+0, 228000, 115200, 0x903980b7
+0, 234000, 115200, 0xbd30898c
+0, 240000, 115200, 0x31f78d25
+0, 246000, 115200, 0x308aa19d
+0, 252000, 115200, 0xf185948c
+0, 258000, 115200, 0x8aeea0b9
+0, 264000, 115200, 0x06669545
+0, 270000, 115200, 0x4d3e84d7
+0, 276000, 115200, 0x80007e9c
+0, 282000, 115200, 0x7cad6ea5
+0, 288000, 115200, 0xd5d747f6
+0, 294000, 115200, 0xeddb43bf
+0, 300000, 115200, 0x2d3c30b5
+0, 306000, 115200, 0x7b465872
+0, 312000, 115200, 0xd144b461
+0, 318000, 115200, 0x36b0053e
+0, 324000, 115200, 0xdf90ec64
+0, 330000, 115200, 0xb59cecc6
+0, 336000, 115200, 0x0469ed52
+0, 342000, 115200, 0x2d7cf7cb
+0, 348000, 115200, 0x8376bf2c
+0, 354000, 115200, 0xd79dbd1e
+0, 360000, 115200, 0xbc79996d
+0, 366000, 115200, 0x524d0a62
+0, 372000, 115200, 0x07798f44
+0, 378000, 115200, 0xd8b85d49
+0, 384000, 115200, 0x54126d07
+0, 390000, 115200, 0x0346f350
+0, 396000, 115200, 0x0feada4f
+0, 402000, 115200, 0x74243c65
+0, 408000, 115200, 0xbce280c8
+0, 414000, 115200, 0xe9bc40c7
+0, 420000, 115200, 0x72ecea21
+0, 426000, 115200, 0xb4c32a43
+0, 432000, 115200, 0x428a6276
+0, 438000, 115200, 0xf67f9364
+0, 444000, 115200, 0xf25e8858
+0, 450000, 115200, 0x9739b909
+0, 456000, 115200, 0x8a1b8f38
+0, 462000, 115200, 0xe4a2cff1
+0, 468000, 115200, 0xa800b83f
+0, 474000, 115200, 0xa88e00d0
+0, 480000, 115200, 0x5786082e
+0, 486000, 115200, 0xc7205eeb
+0, 492000, 115200, 0x9ad02d6b
+0, 498000, 115200, 0x5314185d
+0, 504000, 115200, 0x015b6351
+0, 510000, 115200, 0x51a5c2e1
+0, 516000, 115200, 0xc232ec26
+0, 522000, 115200, 0x35b30ffc
+0, 528000, 115200, 0x2b947acd
+0, 534000, 115200, 0xcf1a7971
+0, 540000, 115200, 0x70055748
+0, 546000, 115200, 0x774b61e6
+0, 552000, 115200, 0x74da78a7
+0, 558000, 115200, 0x13b5523c
+0, 564000, 115200, 0xe27050a0
+0, 570000, 115200, 0x073156b0
+0, 576000, 115200, 0x9a3662d4
+0, 582000, 115200, 0x8c90139c
+0, 588000, 115200, 0x45cdeb08
+0, 594000, 115200, 0x046ff217
+0, 600000, 115200, 0xa6b0a863
+0, 606000, 115200, 0xa9c2427a
+0, 612000, 115200, 0x7d478df1
+0, 618000, 115200, 0x9f426504
+0, 624000, 115200, 0x89723d89
+0, 630000, 115200, 0x851dd023
+0, 636000, 115200, 0xe6ed007d
+0, 642000, 115200, 0xfe5cb08d
+0, 648000, 115200, 0xc96e52bd
+0, 654000, 115200, 0x15c5ffe8
+0, 660000, 115200, 0x54540656
+0, 666000, 115200, 0xa5e8dbec
+0, 672000, 115200, 0x35edde29
+0, 678000, 115200, 0xbbb6cb36
+0, 684000, 115200, 0x59c5ed50
+0, 690000, 115200, 0x7e8a497a
+0, 696000, 115200, 0x16586d33
+0, 702000, 115200, 0x19dfd6e6
+0, 708000, 115200, 0x7ea8574a
+0, 714000, 115200, 0x58567b44
+0, 720000, 115200, 0x0d2d049e
+0, 726000, 115200, 0x7c2d7b00
+0, 732000, 115200, 0x92debda6
+0, 738000, 115200, 0x1e4cfcc1
+0, 744000, 115200, 0xf58b742e
+0, 750000, 115200, 0xc2089e8b
+0, 756000, 115200, 0x1b4f01e8
+0, 762000, 115200, 0x113b1e76
+0, 768000, 115200, 0x0f154b48
+0, 774000, 115200, 0xf82f5795
+0, 780000, 115200, 0xa9f68f5c
+0, 786000, 115200, 0xd37992fa
+0, 792000, 115200, 0x5e08b0ad
+0, 798000, 115200, 0xacf77f50
+0, 804000, 115200, 0x4a37945b
+0, 810000, 115200, 0x9d2670b7
+0, 816000, 115200, 0x7f7e5d76
+0, 822000, 115200, 0x357d3ec3
+0, 828000, 115200, 0xe4622287
+0, 834000, 115200, 0x95260aa6
+0, 840000, 115200, 0xff87049a
+0, 846000, 115200, 0x5b91c76b
+0, 852000, 115200, 0xe5fca44c
+0, 858000, 115200, 0xccc46ee1
+0, 864000, 115200, 0x0aec53e8
+0, 870000, 115200, 0x7509537f
+0, 876000, 115200, 0xd6516a81
+0, 882000, 115200, 0xbc14562b
+0, 888000, 115200, 0xe3f9619e
+0, 894000, 115200, 0x2cbe35ef
+0, 900000, 115200, 0xd78a40b9
+0, 906000, 115200, 0x2cfa08cd
+0, 912000, 115200, 0x3ece09fe
+0, 918000, 115200, 0xc445d43a
+0, 924000, 115200, 0xe1cbacdd
+0, 930000, 115200, 0x7a03b421
+0, 936000, 115200, 0x7c80ab27
+0, 942000, 115200, 0xececae60
+0, 948000, 115200, 0xef00c6b3
+0, 954000, 115200, 0xcdc9e78d
+0, 960000, 115200, 0xa5170dd1
+0, 966000, 115200, 0xfe561e1f
+0, 972000, 115200, 0xc5d056f9
+0, 978000, 115200, 0xf0267284
+0, 984000, 115200, 0xcdc4a09a
+0, 990000, 115200, 0xa8c8af40
+0, 996000, 115200, 0x0c0cc987
+0, 1002000, 115200, 0x13a0cc64
+0, 1008000, 115200, 0x0ff3e6fe
+0, 1014000, 115200, 0x7fbfe852
+0, 1020000, 115200, 0x62ea0273
+0, 1026000, 115200, 0x8d021330
+0, 1032000, 115200, 0x7ac6321a
+0, 1038000, 115200, 0xefc92de8
+0, 1044000, 115200, 0x4be95c24
+0, 1050000, 115200, 0xf62c79b0
+0, 1056000, 115200, 0x1d9f85c6
+0, 1062000, 115200, 0x13b6ad8f
+0, 1068000, 115200, 0x3d96e451
+0, 1074000, 115200, 0x0891f3c4
+0, 1080000, 115200, 0xc728f8cd
+0, 1086000, 115200, 0x9481ee74
+0, 1092000, 115200, 0xaf95fcf9
+0, 1098000, 115200, 0x856fe48d
+0, 1104000, 115200, 0x5b9c03da
+0, 1110000, 115200, 0x98f80228
+0, 1116000, 115200, 0xa4e52148
+0, 1122000, 115200, 0x65bc4b91
+0, 1128000, 115200, 0x0c166312
+0, 1134000, 115200, 0x4657a356
+0, 1140000, 115200, 0xf17e0003
+0, 1146000, 115200, 0x95a81738
+0, 1152000, 115200, 0xb02d6bd9
+0, 1158000, 115200, 0x2594e89d
+0, 1164000, 115200, 0x5c4a1349
+0, 1170000, 115200, 0xbc9d5875
+0, 1176000, 115200, 0xd935b307
+0, 1182000, 115200, 0x2114cb84
+0, 1188000, 115200, 0xbe58130c
+0, 1194000, 115200, 0x7a3d2b2b
+0, 1200000, 115200, 0xe5753e6b
+0, 1206000, 115200, 0xc84042cc
+0, 1212000, 115200, 0x98ef4c58
+0, 1218000, 115200, 0x2cb83bff
+0, 1224000, 115200, 0x4e58433a
+0, 1230000, 115200, 0x7ec26734
+0, 1236000, 115200, 0x49168d07
+0, 1242000, 115200, 0xfc9e82f2
+0, 1248000, 115200, 0x49976c26
+0, 1254000, 115200, 0xa12466ff
+0, 1260000, 115200, 0x98ae6499
+0, 1266000, 115200, 0xc8575e78
+0, 1272000, 115200, 0xc6596cd2
+0, 1278000, 115200, 0x83d9a068
+0, 1284000, 115200, 0xe819b560
+0, 1290000, 115200, 0xb07ac3c3
+0, 1296000, 115200, 0x3d79ef5b
+0, 1302000, 115200, 0xbc6800e0
+0, 1308000, 115200, 0xc78c15f8
+0, 1314000, 115200, 0xcb91360b
+0, 1320000, 115200, 0x6c657143
+0, 1326000, 115200, 0x636391d1
+0, 1332000, 115200, 0xb519e49d
+0, 1338000, 115200, 0xb65d00c5
+0, 1344000, 115200, 0x14672ba8
+0, 1350000, 115200, 0xb65d389f
+0, 1356000, 115200, 0xe88e991b
+0, 1362000, 115200, 0x6a7bad4e
+0, 1368000, 115200, 0xd305eca1
+0, 1374000, 115200, 0x8cdbe729
+0, 1380000, 115200, 0x0d1bfd9a
+0, 1386000, 115200, 0xef740a06
+0, 1392000, 115200, 0x1cd423df
+0, 1398000, 115200, 0xf78616ba
+0, 1404000, 115200, 0xcc0b2b81
+0, 1410000, 115200, 0x434e4ae9
+0, 1416000, 115200, 0xf2d461ec
+0, 1422000, 115200, 0xc75f6a15
+0, 1428000, 115200, 0x71038c87
+0, 1434000, 115200, 0x7a55ab55
+0, 1440000, 115200, 0xeef2e1de
+0, 1446000, 115200, 0xd2600c3d
+0, 1452000, 115200, 0xdd872452
+0, 1458000, 115200, 0xd1361fcd
+0, 1464000, 115200, 0xda4f0d12
+0, 1470000, 115200, 0xba061920
+0, 1476000, 115200, 0x4b2ef9ed
+0, 1482000, 115200, 0x11dfab08
+0, 1488000, 115200, 0x7a603fc2
+0, 1494000, 115200, 0x61690ad9
+0, 1500000, 115200, 0x481ac8b9
+0, 1506000, 115200, 0xea35570d
+0, 1512000, 115200, 0xdd306f19
+0, 1518000, 115200, 0x3f975f1b
+0, 1524000, 115200, 0x2386cd1f
+0, 1530000, 115200, 0x1b77f573
+0, 1536000, 115200, 0x8ce213de
+0, 1542000, 115200, 0x5f7407c6
+0, 1548000, 115200, 0x01b3ee00
+0, 1554000, 115200, 0x92759715
+0, 1560000, 115200, 0x4a208e1e
+0, 1566000, 115200, 0x6e1b80a5
+0, 1572000, 115200, 0x298c7621
+0, 1578000, 115200, 0x0e255da8
+0, 1584000, 115200, 0xabd661ca
+0, 1590000, 115200, 0x6f045226
+0, 1596000, 115200, 0x396a5e4c
+0, 1602000, 115200, 0x4bd53915
+0, 1608000, 115200, 0xaf9631b3
+0, 1614000, 115200, 0xb2602290
+0, 1620000, 115200, 0xb1272f1b
+0, 1626000, 115200, 0xe8d23699
+0, 1632000, 115200, 0xd6e2558d
+0, 1638000, 115200, 0xf1270106
+0, 1644000, 115200, 0x6ab1fc4f
+0, 1650000, 115200, 0x4a9b5c6f
+0, 1656000, 115200, 0x14177b61
+0, 1662000, 115200, 0x8f7f7971
+0, 1668000, 115200, 0x165973cd
+0, 1674000, 115200, 0x341c4ba5
+0, 1680000, 115200, 0x08df3902
+0, 1686000, 115200, 0x4c1e386a
+0, 1692000, 115200, 0x1b1c387c
+0, 1698000, 115200, 0xe42fdb83
+0, 1704000, 115200, 0x5bb2ad2e
+0, 1710000, 115200, 0x31924902
+0, 1716000, 115200, 0x5a290e9a
+0, 1722000, 115200, 0x15d6ea45
+0, 1728000, 115200, 0xb5adc34d
+0, 1734000, 115200, 0xb210a956
+0, 1740000, 115200, 0x79478dac
+0, 1746000, 115200, 0x626a3fa9
+0, 1752000, 115200, 0x6b0e370d
+0, 1758000, 115200, 0x1f1113ec
+0, 1764000, 115200, 0x362efa10
+0, 1770000, 115200, 0xca8de637
+0, 1776000, 115200, 0x432e1f19
+0, 1782000, 115200, 0xa2c93031
+0, 1788000, 115200, 0x63294fcc
+0, 1794000, 115200, 0x1c1d5928
+0, 1800000, 115200, 0xe5fb45ea
+0, 1806000, 115200, 0x0712cc77
+0, 1812000, 115200, 0xaef1c94b
+0, 1818000, 115200, 0x30c8a84e
+0, 1824000, 115200, 0xd6896b75
+0, 1830000, 115200, 0x7f8839cb
+0, 1836000, 115200, 0xcd69d7d4
+0, 1842000, 115200, 0xa6f3cdaa
+0, 1848000, 115200, 0xccbdc609
+0, 1854000, 115200, 0x2d3f77d7
+0, 1860000, 115200, 0x18f8582d
+0, 1866000, 115200, 0xe88717bb
+0, 1872000, 115200, 0xb42fd44b
+0, 1878000, 115200, 0x7edaa5b7
+0, 1884000, 115200, 0xef399a7b
+0, 1890000, 115200, 0x11d75f35
+0, 1896000, 115200, 0xc0717b78
+0, 1902000, 115200, 0x9aebc04d
+0, 1908000, 115200, 0x44c705fc
+0, 1914000, 115200, 0xd322add3
+0, 1920000, 115200, 0x0f5f0b79
+0, 1926000, 115200, 0x54a15070
+0, 1932000, 115200, 0xd11553df
+0, 1938000, 115200, 0x6f3ed910
+0, 1944000, 115200, 0x6d3a3c17
+0, 1950000, 115200, 0x434ebc13
+0, 1956000, 115200, 0xcf07ecb2
+0, 1962000, 115200, 0x1c94497e
+0, 1968000, 115200, 0x83c13cbc
+0, 1974000, 115200, 0x4a8ba4f5
+0, 1980000, 115200, 0x922a393f
+0, 1986000, 115200, 0x44024959
+0, 1992000, 115200, 0x23f18ebd
+0, 1998000, 115200, 0x2cdf1146
+0, 2004000, 115200, 0x8a7d402c
+0, 2010000, 115200, 0x42d67bb3
+0, 2016000, 115200, 0x7045ff2c
+0, 2022000, 115200, 0xb67a4f15
+0, 2028000, 115200, 0x7481f311
+0, 2034000, 115200, 0xe394ff8d
+0, 2040000, 115200, 0x2ca16f23
+0, 2046000, 115200, 0xd53238e1
+0, 2052000, 115200, 0xe28a80c9
+0, 2058000, 115200, 0x043ccd51
+0, 2064000, 115200, 0x2e950d80
+0, 2070000, 115200, 0xf7394c6e
+0, 2076000, 115200, 0xae46d2c8
+0, 2082000, 115200, 0x4b54df85
+0, 2088000, 115200, 0x636f4ca5
+0, 2094000, 115200, 0x2c687754
+0, 2100000, 115200, 0x0ddea0f9
+0, 2106000, 115200, 0x82b08dfd
+0, 2112000, 115200, 0x5db58c25
+0, 2118000, 115200, 0x9b975eaa
+0, 2124000, 115200, 0x2cbe4bf1
+0, 2130000, 115200, 0xc8873bd7
+0, 2136000, 115200, 0x9aa357f2
+0, 2142000, 115200, 0x526e5392
+0, 2148000, 115200, 0x30aa5d18
+0, 2154000, 115200, 0x1fe738b4
+0, 2160000, 115200, 0x9cec04ad
+0, 2166000, 115200, 0x3ddd922d
+0, 2172000, 115200, 0xc6578bbb
+0, 2178000, 115200, 0x413c35ae
+0, 2184000, 115200, 0x90095ab3
+0, 2190000, 115200, 0x8ae84371
+0, 2196000, 115200, 0x1c935404
+0, 2202000, 115200, 0x213f37e8
+0, 2208000, 115200, 0x19ab39e6
+0, 2214000, 115200, 0x795bf82f
+0, 2220000, 115200, 0xe238fccf
+0, 2226000, 115200, 0xe2c0d69e
+0, 2232000, 115200, 0xa1e9d34c
+0, 2238000, 115200, 0xedf3d303
+0, 2244000, 115200, 0x40fac156
+0, 2250000, 115200, 0x1bc59ddb
+0, 2256000, 115200, 0x4295a2ab
+0, 2262000, 115200, 0xc337809d
+0, 2268000, 115200, 0x4a329996
+0, 2274000, 115200, 0xb4fa76b4
+0, 2280000, 115200, 0xb49b7d18
+0, 2286000, 115200, 0xfab67262
+0, 2292000, 115200, 0x31919404
+0, 2298000, 115200, 0x983d896c
+0, 2304000, 115200, 0x8594939e
+0, 2310000, 115200, 0x9fb8932a
+0, 2316000, 115200, 0xb9f3af07
+0, 2322000, 115200, 0x5904c5b4
+0, 2328000, 115200, 0xf6e095d6
+0, 2334000, 115200, 0xd168bd86
+0, 2340000, 115200, 0x39151a63
+0, 2346000, 115200, 0x9e426f6d
+0, 2352000, 115200, 0x0c6d7d1d
+0, 2358000, 115200, 0x65f787ca
+0, 2364000, 115200, 0xf42288c6
+0, 2370000, 115200, 0x565b8d91
+0, 2376000, 115200, 0xd72e882f
+0, 2382000, 115200, 0x8def886c
+0, 2388000, 115200, 0x1d5e7800
+0, 2394000, 115200, 0x628276f7
+0, 2400000, 115200, 0x00e27d0f
+0, 2406000, 115200, 0x52df7737
+0, 2412000, 115200, 0xf98f6303
+0, 2418000, 115200, 0x9a2d2d65
+0, 2424000, 115200, 0xd8cb25f5
+0, 2430000, 115200, 0x68071ce1
+0, 2436000, 115200, 0x4c6218c9
+0, 2442000, 115200, 0xaf0a11a3
+0, 2448000, 115200, 0xfa0a0fb9
+0, 2454000, 115200, 0xc61414fb
+0, 2460000, 115200, 0x3a8b0e94
+0, 2466000, 115200, 0x1eab0e92
+0, 2472000, 115200, 0xc726028c
+0, 2478000, 115200, 0x2da2f5de
+0, 2484000, 115200, 0x7672e92f
+0, 2490000, 115200, 0x7edae686
+0, 2496000, 115200, 0x9a6ce3c6
+0, 2502000, 115200, 0x9f69e74c
+0, 2508000, 115200, 0x73fbf502
+0, 2514000, 115200, 0xff81f5b8
+0, 2520000, 115200, 0x2b8bf7de
+0, 2526000, 115200, 0xcd00f380
+0, 2532000, 115200, 0x4cedfe7c
+0, 2538000, 115200, 0xcd30fbb4
+0, 2544000, 115200, 0x4b7df228
+0, 2550000, 115200, 0xedc7e5df
+0, 2556000, 115200, 0x687ae0f5
+0, 2562000, 115200, 0x8127e2b9
+0, 2568000, 115200, 0xe31ae11c
+0, 2574000, 115200, 0xece5e5c5
+0, 2580000, 115200, 0x4f1bdfe4
+0, 2586000, 115200, 0x65c5dfe3
+0, 2592000, 115200, 0xfc89d51f
+0, 2598000, 115200, 0xedd1c6bc
+0, 2604000, 115200, 0x2913d073
+0, 2610000, 115200, 0xf196fbbe
+0, 2616000, 115200, 0xc0be13e1
+0, 2622000, 115200, 0x55b21f01
+0, 2628000, 115200, 0xb16b2364
+0, 2634000, 115200, 0x4a8632db
+0, 2640000, 115200, 0x44c94426
+0, 2646000, 115200, 0xe5470b01
+0, 2652000, 115200, 0xd895d5d0
+0, 2658000, 115200, 0xe98715c2
+0, 2664000, 115200, 0x2688599b
+0, 2670000, 115200, 0x8e4889aa
+0, 2676000, 115200, 0x658bcd8d
+0, 2682000, 115200, 0xf0090c06
+0, 2688000, 115200, 0xefd9bd28
+0, 2694000, 115200, 0x45009bb4
+0, 2700000, 115200, 0x7ebd1655
+0, 2706000, 115200, 0x64ff7898
+0, 2712000, 115200, 0x4a9384f1
+0, 2718000, 115200, 0xd80f0701
+0, 2724000, 115200, 0x2f855116
+0, 2730000, 115200, 0x0c1313cb
+0, 2736000, 115200, 0xf4df4d19
+0, 2742000, 115200, 0xde6218fb
+0, 2748000, 115200, 0xce26e6b4
+0, 2754000, 115200, 0x848af931
+0, 2760000, 115200, 0x86770a97
+0, 2766000, 115200, 0x8f35c3c0
+0, 2772000, 115200, 0xb26dc220
+0, 2778000, 115200, 0x3d5bbfce
+0, 2784000, 115200, 0xa1f9bee6
+0, 2790000, 115200, 0xa87dcd24
+0, 2796000, 115200, 0x9374cb71
+0, 2802000, 115200, 0x0c7ccbd0
+0, 2808000, 115200, 0x9a16cc49
+0, 2814000, 115200, 0x4df0c28b
+0, 2820000, 115200, 0xb5b8b866
+0, 2826000, 115200, 0xafcc1019
+0, 2832000, 115200, 0x623b0ff3
diff --git a/tests/ref/fate/wtv-demux b/tests/ref/fate/wtv-demux
index ae44958005..fadc4ef20d 100644
--- a/tests/ref/fate/wtv-demux
+++ b/tests/ref/fate/wtv-demux
@@ -33,9 +33,9 @@
1, 7199998, 7199998, 240000, 576, 0xeb4b0d93
1, 7439998, 7439998, 240000, 576, 0xde1322f5
1, 7679998, 7679998, 240000, 576, 0xc3131f35
-0, 7886331, 9486442, 400000, 41980, 0xd4920915
1, 7919998, 7919998, 240000, 576, 0x708f1381
1, 8159998, 8159998, 240000, 576, 0x1f00137e
+0, 8286442, 9486442, 400000, 41980, 0xd4920915
1, 8399998, 8399998, 240000, 576, 0x05131eb0
1, 8639998, 8639998, 240000, 576, 0x78151c22
0, 8686442, 8686442, 400000, 7228, 0x1b141fa3
diff --git a/tests/ref/fate/yop b/tests/ref/fate/yop
index 5629825688..537447a583 100644
--- a/tests/ref/fate/yop
+++ b/tests/ref/fate/yop
@@ -1,8 +1,8 @@
#tb 0: 1/12
-0, 0, 0, 1, 302760, 0x78939253
-0, 1, 1, 1, 302760, 0x534f5253
-0, 2, 2, 1, 302760, 0xe991aa82
-0, 3, 3, 1, 302760, 0xc34b20bd
-0, 4, 4, 1, 302760, 0x461d29a1
-0, 5, 5, 1, 302760, 0x45abca02
-0, 6, 6, 1, 302760, 0xb05448b9
+0, 0, 0, 1, 302760, 0xf24dfa37
+0, 1, 1, 1, 302760, 0xcedcbb6c
+0, 2, 2, 1, 302760, 0x8c2d19a2
+0, 3, 3, 1, 302760, 0xe0fc92da
+0, 4, 4, 1, 302760, 0xd7699bb4
+0, 5, 5, 1, 302760, 0x26e93266
+0, 6, 6, 1, 302760, 0x4cddb216
diff --git a/tests/ref/fate/zerocodec b/tests/ref/fate/zerocodec
new file mode 100644
index 0000000000..4d358ca8a8
--- /dev/null
+++ b/tests/ref/fate/zerocodec
@@ -0,0 +1,39 @@
+#tb 0: 417083/10000000
+0, 0, 0, 1, 1843200, 0x09f24bd5
+0, 1, 1, 1, 1843200, 0x8c932d04
+0, 2, 2, 1, 1843200, 0xe04904a0
+0, 3, 3, 1, 1843200, 0x1969f383
+0, 4, 4, 1, 1843200, 0x70781331
+0, 5, 5, 1, 1843200, 0xf494496b
+0, 6, 6, 1, 1843200, 0xf6226da2
+0, 7, 7, 1, 1843200, 0x5d657925
+0, 8, 8, 1, 1843200, 0xde15820d
+0, 9, 9, 1, 1843200, 0xb6768df1
+0, 10, 10, 1, 1843200, 0xc4318e08
+0, 11, 11, 1, 1843200, 0x8530a7d5
+0, 12, 12, 1, 1843200, 0x0ee29f10
+0, 13, 13, 1, 1843200, 0xcbb6b185
+0, 14, 14, 1, 1843200, 0x085aac47
+0, 15, 15, 1, 1843200, 0xb42e7b1b
+0, 16, 16, 1, 1843200, 0xea3a2cd6
+0, 17, 17, 1, 1843200, 0x7600ee09
+0, 18, 18, 1, 1843200, 0xe39fc9d4
+0, 19, 19, 1, 1843200, 0xc122cd4c
+0, 20, 20, 1, 1843200, 0x5fb4c1cb
+0, 21, 21, 1, 1843200, 0x1552cb6c
+0, 22, 22, 1, 1843200, 0x5b66ce2f
+0, 23, 23, 1, 1843200, 0x70a8c318
+0, 24, 24, 1, 1843200, 0x8b86af2d
+0, 25, 25, 1, 1843200, 0x94886a49
+0, 26, 26, 1, 1843200, 0xda05684f
+0, 27, 27, 1, 1843200, 0xe57c8f33
+0, 28, 28, 1, 1843200, 0x39ef9c7e
+0, 29, 29, 1, 1843200, 0xe7a0cab8
+0, 30, 30, 1, 1843200, 0x43f0d766
+0, 31, 31, 1, 1843200, 0x733d3c7b
+0, 32, 32, 1, 1843200, 0x42713cea
+0, 33, 33, 1, 1843200, 0xdd844e53
+0, 34, 34, 1, 1843200, 0xa0875ba8
+0, 35, 35, 1, 1843200, 0x318b6114
+0, 36, 36, 1, 1843200, 0xcc986275
+0, 37, 37, 1, 1843200, 0x14eb6704
diff --git a/tests/ref/fate/zmbv-8bit b/tests/ref/fate/zmbv-8bit
index 64dacae5a7..9f02ae3668 100644
--- a/tests/ref/fate/zmbv-8bit
+++ b/tests/ref/fate/zmbv-8bit
@@ -274,3 +274,4 @@
0, 272, 272, 1, 192000, 0xd08e49d1
0, 273, 273, 1, 192000, 0xd08e49d1
0, 274, 274, 1, 192000, 0xd08e49d1
+0, 275, 275, 1, 192000, 0x1f34135f
diff --git a/tests/ref/lavf-fate/ogg_vp3 b/tests/ref/lavf-fate/ogg_vp3
new file mode 100644
index 0000000000..b77476d294
--- /dev/null
+++ b/tests/ref/lavf-fate/ogg_vp3
@@ -0,0 +1,3 @@
+adbe6c30bdfe934dc5ae397f4db2960d *./tests/data/lavf-fate/lavf.ogg
+417644 ./tests/data/lavf-fate/lavf.ogg
+./tests/data/lavf-fate/lavf.ogg CRC=0x037e3e79
diff --git a/tests/ref/lavf/asf b/tests/ref/lavf/asf
index 2d4788aee8..c6e6b6baf4 100644
--- a/tests/ref/lavf/asf
+++ b/tests/ref/lavf/asf
@@ -1,3 +1,3 @@
-98ffddfa94926558ecf20cc6f47236a6 *./tests/data/lavf/lavf.asf
-333375 ./tests/data/lavf/lavf.asf
-./tests/data/lavf/lavf.asf CRC=0x51485213
+3d410176ebf9ffdf99d2738922cef260 *./tests/data/lavf/lavf.asf
+333489 ./tests/data/lavf/lavf.asf
+./tests/data/lavf/lavf.asf CRC=0x9f5ab3e6
diff --git a/tests/ref/lavf/avi b/tests/ref/lavf/avi
index ae85efc50b..e2ebadf3d8 100644
--- a/tests/ref/lavf/avi
+++ b/tests/ref/lavf/avi
@@ -1,3 +1,3 @@
-e056e1164236b22fafc8325de8221a58 *./tests/data/lavf/lavf.avi
-330798 ./tests/data/lavf/lavf.avi
-./tests/data/lavf/lavf.avi CRC=0xa79b84dd
+a326b284ab0b34727323bf58585c9d29 *./tests/data/lavf/lavf.avi
+331050 ./tests/data/lavf/lavf.avi
+./tests/data/lavf/lavf.avi CRC=0x2a83e6b0
diff --git a/tests/ref/lavf/caf b/tests/ref/lavf/caf
new file mode 100644
index 0000000000..2e38f864f4
--- /dev/null
+++ b/tests/ref/lavf/caf
@@ -0,0 +1,3 @@
+df9ebf2812784a653d3337cf12c0c687 *./tests/data/lavf/lavf.caf
+90180 ./tests/data/lavf/lavf.caf
+./tests/data/lavf/lavf.caf CRC=0xf1ae5536
diff --git a/tests/ref/lavf/dv_fmt b/tests/ref/lavf/dv_fmt
index 7406dff532..884c079243 100644
--- a/tests/ref/lavf/dv_fmt
+++ b/tests/ref/lavf/dv_fmt
@@ -1,3 +1,9 @@
-522e5e5a46b99f8ad8aabdaf3d2f1869 *./tests/data/lavf/lavf.dv
+6f9cfff48f536fa727696f2f9fb3ac08 *./tests/data/lavf/lavf.dv
3600000 ./tests/data/lavf/lavf.dv
-./tests/data/lavf/lavf.dv CRC=0x02c0af30
+./tests/data/lavf/lavf.dv CRC=0x5ce4e5e4
+cc33ae4f9e6828914dea0f09d1241b7e *./tests/data/lavf/lavf.dv
+3480000 ./tests/data/lavf/lavf.dv
+./tests/data/lavf/lavf.dv CRC=0x8d5e9e8f
+3a6a9163a67b729b4a6b5d972ccceb97 *./tests/data/lavf/lavf.dv
+3600000 ./tests/data/lavf/lavf.dv
+./tests/data/lavf/lavf.dv CRC=0x5ce4e5e4
diff --git a/tests/ref/lavf/ffm b/tests/ref/lavf/ffm
index afef176a9b..4767b9968e 100644
--- a/tests/ref/lavf/ffm
+++ b/tests/ref/lavf/ffm
@@ -1,3 +1,3 @@
-8a95fa3db8e6082ed24e963e40ec1526 *./tests/data/lavf/lavf.ffm
+8ce2ea9a73a1187647df7bf3c8e1b8fd *./tests/data/lavf/lavf.ffm
376832 ./tests/data/lavf/lavf.ffm
-./tests/data/lavf/lavf.ffm CRC=0x88f58ba1
+./tests/data/lavf/lavf.ffm CRC=0xf361ed74
diff --git a/tests/ref/lavf/flv_fmt b/tests/ref/lavf/flv_fmt
index 1d38b6fd8b..868801485d 100644
--- a/tests/ref/lavf/flv_fmt
+++ b/tests/ref/lavf/flv_fmt
@@ -1,3 +1,3 @@
-62c3177547fb5853a5116661802e1ae2 *./tests/data/lavf/lavf.flv
-329541 ./tests/data/lavf/lavf.flv
+c8321cd5ae19a8853eea4a011656ff74 *./tests/data/lavf/lavf.flv
+329559 ./tests/data/lavf/lavf.flv
./tests/data/lavf/lavf.flv CRC=0x881785d1
diff --git a/tests/ref/lavf/gxf b/tests/ref/lavf/gxf
index efdcfd5e9e..5796895a1d 100644
--- a/tests/ref/lavf/gxf
+++ b/tests/ref/lavf/gxf
@@ -1,3 +1,9 @@
-346d38d330ab5cb0caa6b5537167bc0d *./tests/data/lavf/lavf.gxf
+befc1a39c37a4ecd9264942a3e34b3f6 *./tests/data/lavf/lavf.gxf
796392 ./tests/data/lavf/lavf.gxf
-./tests/data/lavf/lavf.gxf CRC=0x246186eb
+./tests/data/lavf/lavf.gxf CRC=0x102918fd
+267d2b2b6e357209d76c366302cf35c3 *./tests/data/lavf/lavf.gxf
+794572 ./tests/data/lavf/lavf.gxf
+./tests/data/lavf/lavf.gxf CRC=0xab47d02d
+1c1693cf2358025f1e37ac76e1da925a *./tests/data/lavf/lavf.gxf
+796392 ./tests/data/lavf/lavf.gxf
+./tests/data/lavf/lavf.gxf CRC=0x102918fd
diff --git a/tests/ref/lavf/ismv b/tests/ref/lavf/ismv
new file mode 100644
index 0000000000..cf0a5831ef
--- /dev/null
+++ b/tests/ref/lavf/ismv
@@ -0,0 +1,9 @@
+eb116b60befadfd5c9118635d81c5a6e *./tests/data/lavf/lavf.ismv
+312271 ./tests/data/lavf/lavf.ismv
+./tests/data/lavf/lavf.ismv CRC=0xbcc963fc
+90db70a6f33cf22db9ce242087b5870b *./tests/data/lavf/lavf.ismv
+321545 ./tests/data/lavf/lavf.ismv
+./tests/data/lavf/lavf.ismv CRC=0x3998478f
+eb116b60befadfd5c9118635d81c5a6e *./tests/data/lavf/lavf.ismv
+312271 ./tests/data/lavf/lavf.ismv
+./tests/data/lavf/lavf.ismv CRC=0xbcc963fc
diff --git a/tests/ref/lavf/mkv b/tests/ref/lavf/mkv
index 8185d15a61..de8982ee46 100644
--- a/tests/ref/lavf/mkv
+++ b/tests/ref/lavf/mkv
@@ -1,3 +1,3 @@
-ed1f083a7d2169c51e5894dabed061df *./tests/data/lavf/lavf.mkv
-320262 ./tests/data/lavf/lavf.mkv
-./tests/data/lavf/lavf.mkv CRC=0xa79b84dd
+f99ae18e1212ee184188243107a4b824 *./tests/data/lavf/lavf.mkv
+320521 ./tests/data/lavf/lavf.mkv
+./tests/data/lavf/lavf.mkv CRC=0x2a83e6b0
diff --git a/tests/ref/lavf/mov b/tests/ref/lavf/mov
index a4ae2d5532..610a7592ce 100644
--- a/tests/ref/lavf/mov
+++ b/tests/ref/lavf/mov
@@ -1,3 +1,9 @@
-6c5472152b46e070ae6da359838e1f86 *./tests/data/lavf/lavf.mov
-357717 ./tests/data/lavf/lavf.mov
+9a0b239ff596da58debcf210dece3985 *./tests/data/lavf/lavf.mov
+357821 ./tests/data/lavf/lavf.mov
+./tests/data/lavf/lavf.mov CRC=0x2f6a9b26
+cea874222a6d40b1761d75ea11ebe681 *./tests/data/lavf/lavf.mov
+367251 ./tests/data/lavf/lavf.mov
+./tests/data/lavf/lavf.mov CRC=0xab307eb9
+9a0b239ff596da58debcf210dece3985 *./tests/data/lavf/lavf.mov
+357821 ./tests/data/lavf/lavf.mov
./tests/data/lavf/lavf.mov CRC=0x2f6a9b26
diff --git a/tests/ref/lavf/mpg b/tests/ref/lavf/mpg
index 1b63d753fb..a22e2088a6 100644
--- a/tests/ref/lavf/mpg
+++ b/tests/ref/lavf/mpg
@@ -1,3 +1,9 @@
-f0b995c0c10b08133f5138069c3e9786 *./tests/data/lavf/lavf.mpg
+6103dbae73aec6c9bf05bbbc6ea35f89 *./tests/data/lavf/lavf.mpg
372736 ./tests/data/lavf/lavf.mpg
-./tests/data/lavf/lavf.mpg CRC=0x88f58ba1
+./tests/data/lavf/lavf.mpg CRC=0xf361ed74
+91b42dd3352e21dd0dee57f6a7241ca2 *./tests/data/lavf/lavf.mpg
+387072 ./tests/data/lavf/lavf.mpg
+./tests/data/lavf/lavf.mpg CRC=0x3d6ddf56
+dd60652c2193670abffb8c2a123a820e *./tests/data/lavf/lavf.mpg
+372736 ./tests/data/lavf/lavf.mpg
+./tests/data/lavf/lavf.mpg CRC=0xf361ed74
diff --git a/tests/ref/lavf/mxf b/tests/ref/lavf/mxf
index b5aea3c17e..f78fe3844e 100644
--- a/tests/ref/lavf/mxf
+++ b/tests/ref/lavf/mxf
@@ -1,3 +1,9 @@
-6e9bd63c5cadd7550ad313553ebf665f *./tests/data/lavf/lavf.mxf
+785e38ddd2466046f30aa36399b8f8fa *./tests/data/lavf/lavf.mxf
+525881 ./tests/data/lavf/lavf.mxf
+./tests/data/lavf/lavf.mxf CRC=0x4ace0849
+ccaa42c75e653f71604fd28c7c83722d *./tests/data/lavf/lavf.mxf
+537657 ./tests/data/lavf/lavf.mxf
+./tests/data/lavf/lavf.mxf CRC=0x9b928d6b
+c78207030d57b48295b089916849d50d *./tests/data/lavf/lavf.mxf
525881 ./tests/data/lavf/lavf.mxf
./tests/data/lavf/lavf.mxf CRC=0x4ace0849
diff --git a/tests/ref/lavf/mxf_d10 b/tests/ref/lavf/mxf_d10
index f59a99ee0f..efeac5a2c0 100644
--- a/tests/ref/lavf/mxf_d10
+++ b/tests/ref/lavf/mxf_d10
@@ -1,3 +1,3 @@
-e7168856f2b54c6272685967e707fb21 *./tests/data/lavf/lavf.mxf_d10
+23177c8a72f34e243e9ffc4f6c70d3c7 *./tests/data/lavf/lavf.mxf_d10
5330989 ./tests/data/lavf/lavf.mxf_d10
-./tests/data/lavf/lavf.mxf_d10 CRC=0xc3f4f92e
+./tests/data/lavf/lavf.mxf_d10 CRC=0x81602ff1
diff --git a/tests/ref/lavf/nut b/tests/ref/lavf/nut
index e658434849..f8756eb6d5 100644
--- a/tests/ref/lavf/nut
+++ b/tests/ref/lavf/nut
@@ -1,3 +1,3 @@
-7e44a8ed5ff2fe5442f758d48fe1b496 *./tests/data/lavf/lavf.nut
-319680 ./tests/data/lavf/lavf.nut
-./tests/data/lavf/lavf.nut CRC=0xa79b84dd
+bf59c686c1bb739434109dadc04eeec6 *./tests/data/lavf/lavf.nut
+319904 ./tests/data/lavf/lavf.nut
+./tests/data/lavf/lavf.nut CRC=0x2a83e6b0
diff --git a/tests/ref/lavf/ogg b/tests/ref/lavf/ogg
index 7bc66a3657..59f2e81101 100644
--- a/tests/ref/lavf/ogg
+++ b/tests/ref/lavf/ogg
@@ -1,3 +1,3 @@
-37147a98d9a484208389efa6a1f8796f *./tests/data/lavf/lavf.ogg
-13966 ./tests/data/lavf/lavf.ogg
-./tests/data/lavf/lavf.ogg CRC=0x37a143ea
+010f31817f41bb99899ffcc5c3943938 *./tests/data/lavf/lavf.ogg
+13838 ./tests/data/lavf/lavf.ogg
+./tests/data/lavf/lavf.ogg CRC=0xf1ae5536
diff --git a/tests/ref/lavf/pixfmt b/tests/ref/lavf/pixfmt
index 186dde5ed3..bf62d9059b 100644
--- a/tests/ref/lavf/pixfmt
+++ b/tests/ref/lavf/pixfmt
@@ -16,21 +16,21 @@ e176bd14185788110e055f945de7f95f *./tests/data/pixfmt/yuvj420p.yuv
304128 ./tests/data/pixfmt/yuvj422p.yuv
c10442da177c9f1d12be3c53be6fa12c *./tests/data/pixfmt/yuvj444p.yuv
304128 ./tests/data/pixfmt/yuvj444p.yuv
-c6e0f9b5817f484b175c1ec4ffb4e9c9 *./tests/data/pixfmt/rgb24.yuv
+6bb61113e7b70eb09dbcec356122a0e2 *./tests/data/pixfmt/rgb24.yuv
304128 ./tests/data/pixfmt/rgb24.yuv
-c6e0f9b5817f484b175c1ec4ffb4e9c9 *./tests/data/pixfmt/bgr24.yuv
+6bb61113e7b70eb09dbcec356122a0e2 *./tests/data/pixfmt/bgr24.yuv
304128 ./tests/data/pixfmt/bgr24.yuv
-c6e0f9b5817f484b175c1ec4ffb4e9c9 *./tests/data/pixfmt/rgb32.yuv
+6bb61113e7b70eb09dbcec356122a0e2 *./tests/data/pixfmt/rgb32.yuv
304128 ./tests/data/pixfmt/rgb32.yuv
-66d39d464bd89ded2a124897f0a75ade *./tests/data/pixfmt/rgb565.yuv
+efa7c0337cc00c796c6df615223716f1 *./tests/data/pixfmt/rgb565.yuv
304128 ./tests/data/pixfmt/rgb565.yuv
-c894c3bd8d2631ed1964500b90a0c350 *./tests/data/pixfmt/rgb555.yuv
+0df2a477af1415a1b8fbf2a3e552bc39 *./tests/data/pixfmt/rgb555.yuv
304128 ./tests/data/pixfmt/rgb555.yuv
6be306b0cce5f8e6c271ea17fef9745b *./tests/data/pixfmt/gray.yuv
304128 ./tests/data/pixfmt/gray.yuv
-31398104d2349dd48328a6862bc6711f *./tests/data/pixfmt/monow.yuv
+6c719671e39f1bcf67b47eab98fa529b *./tests/data/pixfmt/monow.yuv
304128 ./tests/data/pixfmt/monow.yuv
-31398104d2349dd48328a6862bc6711f *./tests/data/pixfmt/monob.yuv
+6c719671e39f1bcf67b47eab98fa529b *./tests/data/pixfmt/monob.yuv
304128 ./tests/data/pixfmt/monob.yuv
00b85790df5740bab95e2559d81603a7 *./tests/data/pixfmt/yuv440p.yuv
304128 ./tests/data/pixfmt/yuv440p.yuv
diff --git a/tests/ref/lavf/png b/tests/ref/lavf/png
index 4343adb3b7..4e646284eb 100644
--- a/tests/ref/lavf/png
+++ b/tests/ref/lavf/png
@@ -1,3 +1,9 @@
c162094e51dc1a3203de43e496086dfd *./tests/data/images/png/02.png
./tests/data/images/png/%02d.png CRC=0x6da01946
248612 ./tests/data/images/png/02.png
+63805114b3723490833789277246276f *./tests/data/images/png/02.png
+./tests/data/images/png/%02d.png CRC=0x831a2963
+41666 ./tests/data/images/png/02.png
+b4c1f0b706a296ba6e791d436757dc5f *./tests/data/images/png/02.png
+./tests/data/images/png/%02d.png CRC=0x5984c023
+511879 ./tests/data/images/png/02.png
diff --git a/tests/ref/lavf/rm b/tests/ref/lavf/rm
index 27054969c6..e1fd6d5671 100644
--- a/tests/ref/lavf/rm
+++ b/tests/ref/lavf/rm
@@ -1,2 +1,2 @@
-f3ce1f1850655ae43f6184ae436acb70 *./tests/data/lavf/lavf.rm
-346414 ./tests/data/lavf/lavf.rm
+2b0eebb5814825c9c4b385cbf8e5b0da *./tests/data/lavf/lavf.rm
+346714 ./tests/data/lavf/lavf.rm
diff --git a/tests/ref/lavf/ts b/tests/ref/lavf/ts
index 94937669e1..18566c47bc 100644
--- a/tests/ref/lavf/ts
+++ b/tests/ref/lavf/ts
@@ -1,3 +1,3 @@
-9b59f71822c6dde18fb38b084c150285 *./tests/data/lavf/lavf.ts
-406456 ./tests/data/lavf/lavf.ts
-./tests/data/lavf/lavf.ts CRC=0x64fab4df
+34f95a300355d474767b436430eba15b *./tests/data/lavf/lavf.ts
+ 406644 ./tests/data/lavf/lavf.ts
+./tests/data/lavf/lavf.ts CRC=0x133216c1
diff --git a/tests/ref/lavf/wtv b/tests/ref/lavf/wtv
new file mode 100644
index 0000000000..f0668a7d72
--- /dev/null
+++ b/tests/ref/lavf/wtv
@@ -0,0 +1,3 @@
+7bd312f32538a14f248c2dff85394118 *./tests/data/lavf/lavf.wtv
+413696 ./tests/data/lavf/lavf.wtv
+./tests/data/lavf/lavf.wtv CRC=0x133216c1
diff --git a/tests/ref/lavf/xwd b/tests/ref/lavf/xwd
index 346183808f..41846c76fd 100644
--- a/tests/ref/lavf/xwd
+++ b/tests/ref/lavf/xwd
@@ -1,3 +1,3 @@
-b838561f7df803ea14dd6307a9d3c5ec *./tests/data/images/xwd/02.xwd
-./tests/data/images/xwd/%02d.xwd CRC=0x69b329cd
-405615 ./tests/data/images/xwd/02.xwd
+50baa5560b7d1aa3188b19c1162bf7dc *./tests/data/images/xwd/02.xwd
+./tests/data/images/xwd/%02d.xwd CRC=0x6da01946
+304239 ./tests/data/images/xwd/02.xwd
diff --git a/tests/ref/lavfi/drawbox b/tests/ref/lavfi/drawbox
new file mode 100644
index 0000000000..0be505d9fb
--- /dev/null
+++ b/tests/ref/lavfi/drawbox
@@ -0,0 +1 @@
+drawbox 2745ca2d47f0086fd1a09aa871e42122
diff --git a/tests/ref/lavfi/fade b/tests/ref/lavfi/fade
new file mode 100644
index 0000000000..28f3b70b0f
--- /dev/null
+++ b/tests/ref/lavfi/fade
@@ -0,0 +1 @@
+fade 0ef96c15cf7aa32bcd3e1c20146e4728
diff --git a/tests/ref/lavfi/life b/tests/ref/lavfi/life
new file mode 100644
index 0000000000..96522d4075
--- /dev/null
+++ b/tests/ref/lavfi/life
@@ -0,0 +1 @@
+life d88400e27716b6e7102251bb3b6a30d6
diff --git a/tests/ref/lavfi/overlay b/tests/ref/lavfi/overlay
new file mode 100644
index 0000000000..ad4b0aa0c7
--- /dev/null
+++ b/tests/ref/lavfi/overlay
@@ -0,0 +1 @@
+overlay 302f835bad0241f302377d3b9d4af85d
diff --git a/tests/ref/lavfi/pad b/tests/ref/lavfi/pad
new file mode 100644
index 0000000000..638b423135
--- /dev/null
+++ b/tests/ref/lavfi/pad
@@ -0,0 +1 @@
+pad 8cd88a7a224c46f1750e6127445454d5
diff --git a/tests/ref/lavfi/pixdesc b/tests/ref/lavfi/pixdesc
index 5dfa270021..4718ca2a67 100644
--- a/tests/ref/lavfi/pixdesc
+++ b/tests/ref/lavfi/pixdesc
@@ -1,5 +1,8 @@
+0bgr f23ccc960c8646499bffc40e666ab6cf
+0rgb 09bbe1b24fc765818d8c37ce2c773692
abgr 037bf9df6a765520ad6d490066bf4b89
argb c442a8261c2265a07212ef0f72e35f5a
+bgr0 207df2c1476e7b2eaa8f51eaadcc54cb
bgr24 0d0cb38ab3fa0b2ec0865c14f78b217b
bgr444be d9ea9307d21b162225b8b2c524cf9477
bgr444le 88035350e9da3a8f67387890b956f0bc
@@ -13,12 +16,13 @@ bgr565le 1dfdd03995c287e3c754b164bf26a355
bgr8 24bd566170343d06fec6fccfff5abc54
bgra 76a18a5151242fa137133f604cd624d2
gray db08f7f0751900347e6b8649e4164d21
-gray16be 7becf34ae825a3df3969bf4c6bfeb5e2
-gray16le 10bd87059b5c189f3caef2837f4f2b5c
+gray16be b44458c2254aa7a3d7b8dbf53be91979
+gray16le ecda5143f8a55fca1f6c7dfb238ddcba
monob 668ebe8b8103b9046b251b2fa8a1d88f
monow 9251497f3b0634f1165d12d5a289d943
nv12 e0af357888584d36eec5aa0f673793ef
nv21 9a3297f3b34baa038b1f37cb202b512f
+rgb0 def2717bc2208505244def3611922d05
rgb24 b41eba9651e1b5fe386289b506188105
rgb444be 9e89db334568c6b2e3d5d0540f4ba960
rgb444le 0a68cb6de8bf530aa30c5c1205c25155
@@ -35,12 +39,12 @@ uyvy422 adcf64516a19fce44df77082bdb16291
yuv410p 2d9225153c83ee1132397d619d94d1b3
yuv411p 8b298af3e43348ca1b11eb8a3252ac6c
yuv420p eba2f135a08829387e2f698ff72a2939
-yuv420p10be 299fe1d785a3d3dd5e70778700d7fb06
-yuv420p10le 8aee004e765a5383be0954f5e916b72f
-yuv420p16be 16c009a235cd52b74791a895423152a3
-yuv420p16le 2d59c4f1d0314a5a957a7cfc4b6fabcc
-yuv420p9be ce880fa07830e5297c22acf6e20555ce
-yuv420p9le 16543fda8f87d94a6cf857d2e8d4461a
+yuv420p10be 2f88c301feeaccd2a5fb55f54fc30be9
+yuv420p10le 93f175084af4e78f97c7710e505f3057
+yuv420p16be ba858ff4246368c28f03152487f57ef3
+yuv420p16le de239729a4fe1d4cfa3743e006654e78
+yuv420p9be 64e36fd90573f67ac2006d103972a79b
+yuv420p9le 9ed4b1dfabc53fd9e586ff6c4c43af80
yuv422p c9bba4529821d796a6ab09f6a5fd355a
yuv422p10be 11af7dfafe8bc025c7e3bd82b830fe8a
yuv422p10le ec04efb76efa79bf0d02b21572371a56
@@ -57,6 +61,7 @@ yuv444p16le 20f86bc2f68d2b3f1f2b48b97b2189f4
yuv444p9be 6ab31f4c12b533ce318ecdff83cdd054
yuv444p9le f0606604a5c08becab6ba500124c4b7c
yuva420p a29884f3f3dfe1e00b961bc17bef3d47
+yuva444p c523716e4900cfe515eaab1d7124fdd9
yuvj420p 32eec78ba51857b16ce9b813a49b7189
yuvj422p 0dfa0ed434f73be51428758c69e082cb
yuvj440p 657501a28004e27a592757a7509f5189
diff --git a/tests/ref/lavfi/pixfmts_copy b/tests/ref/lavfi/pixfmts_copy
index 5dfa270021..7504317c1e 100644
--- a/tests/ref/lavfi/pixfmts_copy
+++ b/tests/ref/lavfi/pixfmts_copy
@@ -1,5 +1,8 @@
+0bgr b589c6bbbe4c8dc2a4b1a088c0211204
+0rgb d1d8f38fc32791904838f0b22cf0a802
abgr 037bf9df6a765520ad6d490066bf4b89
argb c442a8261c2265a07212ef0f72e35f5a
+bgr0 6a59704b3e2fb185090b0f480d4131ea
bgr24 0d0cb38ab3fa0b2ec0865c14f78b217b
bgr444be d9ea9307d21b162225b8b2c524cf9477
bgr444le 88035350e9da3a8f67387890b956f0bc
@@ -13,12 +16,14 @@ bgr565le 1dfdd03995c287e3c754b164bf26a355
bgr8 24bd566170343d06fec6fccfff5abc54
bgra 76a18a5151242fa137133f604cd624d2
gray db08f7f0751900347e6b8649e4164d21
-gray16be 7becf34ae825a3df3969bf4c6bfeb5e2
-gray16le 10bd87059b5c189f3caef2837f4f2b5c
+gray16be b44458c2254aa7a3d7b8dbf53be91979
+gray16le ecda5143f8a55fca1f6c7dfb238ddcba
monob 668ebe8b8103b9046b251b2fa8a1d88f
monow 9251497f3b0634f1165d12d5a289d943
nv12 e0af357888584d36eec5aa0f673793ef
nv21 9a3297f3b34baa038b1f37cb202b512f
+pal8 dec8ed2258ec89b8a796f21cad4df867
+rgb0 1ed8e8027126d283e6ed7359e81c56e4
rgb24 b41eba9651e1b5fe386289b506188105
rgb444be 9e89db334568c6b2e3d5d0540f4ba960
rgb444le 0a68cb6de8bf530aa30c5c1205c25155
@@ -35,12 +40,12 @@ uyvy422 adcf64516a19fce44df77082bdb16291
yuv410p 2d9225153c83ee1132397d619d94d1b3
yuv411p 8b298af3e43348ca1b11eb8a3252ac6c
yuv420p eba2f135a08829387e2f698ff72a2939
-yuv420p10be 299fe1d785a3d3dd5e70778700d7fb06
-yuv420p10le 8aee004e765a5383be0954f5e916b72f
-yuv420p16be 16c009a235cd52b74791a895423152a3
-yuv420p16le 2d59c4f1d0314a5a957a7cfc4b6fabcc
-yuv420p9be ce880fa07830e5297c22acf6e20555ce
-yuv420p9le 16543fda8f87d94a6cf857d2e8d4461a
+yuv420p10be 2f88c301feeaccd2a5fb55f54fc30be9
+yuv420p10le 93f175084af4e78f97c7710e505f3057
+yuv420p16be ba858ff4246368c28f03152487f57ef3
+yuv420p16le de239729a4fe1d4cfa3743e006654e78
+yuv420p9be 64e36fd90573f67ac2006d103972a79b
+yuv420p9le 9ed4b1dfabc53fd9e586ff6c4c43af80
yuv422p c9bba4529821d796a6ab09f6a5fd355a
yuv422p10be 11af7dfafe8bc025c7e3bd82b830fe8a
yuv422p10le ec04efb76efa79bf0d02b21572371a56
@@ -57,6 +62,7 @@ yuv444p16le 20f86bc2f68d2b3f1f2b48b97b2189f4
yuv444p9be 6ab31f4c12b533ce318ecdff83cdd054
yuv444p9le f0606604a5c08becab6ba500124c4b7c
yuva420p a29884f3f3dfe1e00b961bc17bef3d47
+yuva444p c523716e4900cfe515eaab1d7124fdd9
yuvj420p 32eec78ba51857b16ce9b813a49b7189
yuvj422p 0dfa0ed434f73be51428758c69e082cb
yuvj440p 657501a28004e27a592757a7509f5189
diff --git a/tests/ref/lavfi/pixfmts_crop b/tests/ref/lavfi/pixfmts_crop
index cbbcf90bbf..b84e1b8191 100644
--- a/tests/ref/lavfi/pixfmts_crop
+++ b/tests/ref/lavfi/pixfmts_crop
@@ -11,8 +11,9 @@ bgr565le 891664e5a54ae5968901347da92bc5e9
bgr8 4b7159e05765bd4703180072d86423c8
bgra 395c9f706fccda721471acaa5c96c16c
gray 8c4850e66562a587a292dc728a65ea4a
-gray16be daa5a6b98fb4a280c57c57bff1a2ab5a
-gray16le 84f5ea7259073edcb893113b42213c8e
+gray16be 257b4339925b0e672f552d8c9511f2c3
+gray16le 67cf7b26cda55356cc25e0f4e42cc136
+pal8 d6c1b598244f41e2f005e42407d234d2
rgb24 3b90ed64b687d3dc186c6ef521dc71a8
rgb48be e6fd353c0eb9bea889423954414bea35
rgb48le 68a1723da11ce08b502d42e204376503
@@ -26,8 +27,8 @@ rgba fd00b24c7597268c32759a84a1de2de4
yuv410p a9f2eaa747bf988b7bebe4f442b9c67a
yuv411p 3334d3aef8dba238658090ac172375d1
yuv420p bfea0188ddd4889787c403caae119cc7
-yuv420p16be 8365eff38b8c329aeb95fc605fa229bb
-yuv420p16le 5e8dd38d973d5854abe1ad4efad20cc1
+yuv420p16be eb2f96b638a174377f5fc42cfc849ff5
+yuv420p16le 3eae4c172d620b6d4ef2aeca403c4f54
yuv422p f2f930a91fe00d4252c4720b5ecd8961
yuv422p16be 167e4338811a7d272925a4c6417d60da
yuv422p16le 3359395d5875d581fa1e975013d30114
diff --git a/tests/ref/lavfi/pixfmts_hflip b/tests/ref/lavfi/pixfmts_hflip
index 3741713ee2..ba012ea76a 100644
--- a/tests/ref/lavfi/pixfmts_hflip
+++ b/tests/ref/lavfi/pixfmts_hflip
@@ -11,8 +11,9 @@ bgr565le 3703466e19e1b52e03a34fd244a8e8e4
bgr8 50b505a889f0428242305acb642da107
bgra 01ca21e7e6a8d1281b4553bde8e8a404
gray 03efcb4ab52a24c0af0e03cfd26c9377
-gray16be 9bcbca979601ddc4869f846f08f3d1dd
-gray16le c1b8965adcc7f847ee343149ff507073
+gray16be 632535b46edec78a6534ef18d37f2b71
+gray16le 5c24e6f847bf9a41a40760c0d15df161
+pal8 6c1545bb295e9289add1760851a3d9c9
rgb24 754f1722fc738590cc407ac65749bfe8
rgb48be d690412ca5fada031b5da47b87096248
rgb48le c901feb564232f5d0bc0eabd66dae3e7
@@ -26,8 +27,8 @@ rgba d3d0dc1ecef3ed72f26a2986d0efc204
yuv410p acb543ebbbf63eefe533e6faffc006da
yuv411p c626cf6d191139b4ca7efc0155f957f1
yuv420p 2d5c80f9ba2ddd85b2aeda3564cc7d64
-yuv420p16be 758b0c1e2113b15e7afde48da4e4d024
-yuv420p16le 480ccd951dcb806bc875d307e02e50a0
+yuv420p16be 1c4fa93d0744de3cdc6d34ab55db3fb4
+yuv420p16le 92c74f5759068c381e4a066fe7faf2e0
yuv422p 6e728f4eb9eae287c224f396d84be6ea
yuv422p16be a05d43cd62b790087bd37083174557de
yuv422p16le 6954abebcbc62d81068d58d0c62bdd5b
diff --git a/tests/ref/lavfi/pixfmts_null b/tests/ref/lavfi/pixfmts_null
index 5dfa270021..7504317c1e 100644
--- a/tests/ref/lavfi/pixfmts_null
+++ b/tests/ref/lavfi/pixfmts_null
@@ -1,5 +1,8 @@
+0bgr b589c6bbbe4c8dc2a4b1a088c0211204
+0rgb d1d8f38fc32791904838f0b22cf0a802
abgr 037bf9df6a765520ad6d490066bf4b89
argb c442a8261c2265a07212ef0f72e35f5a
+bgr0 6a59704b3e2fb185090b0f480d4131ea
bgr24 0d0cb38ab3fa0b2ec0865c14f78b217b
bgr444be d9ea9307d21b162225b8b2c524cf9477
bgr444le 88035350e9da3a8f67387890b956f0bc
@@ -13,12 +16,14 @@ bgr565le 1dfdd03995c287e3c754b164bf26a355
bgr8 24bd566170343d06fec6fccfff5abc54
bgra 76a18a5151242fa137133f604cd624d2
gray db08f7f0751900347e6b8649e4164d21
-gray16be 7becf34ae825a3df3969bf4c6bfeb5e2
-gray16le 10bd87059b5c189f3caef2837f4f2b5c
+gray16be b44458c2254aa7a3d7b8dbf53be91979
+gray16le ecda5143f8a55fca1f6c7dfb238ddcba
monob 668ebe8b8103b9046b251b2fa8a1d88f
monow 9251497f3b0634f1165d12d5a289d943
nv12 e0af357888584d36eec5aa0f673793ef
nv21 9a3297f3b34baa038b1f37cb202b512f
+pal8 dec8ed2258ec89b8a796f21cad4df867
+rgb0 1ed8e8027126d283e6ed7359e81c56e4
rgb24 b41eba9651e1b5fe386289b506188105
rgb444be 9e89db334568c6b2e3d5d0540f4ba960
rgb444le 0a68cb6de8bf530aa30c5c1205c25155
@@ -35,12 +40,12 @@ uyvy422 adcf64516a19fce44df77082bdb16291
yuv410p 2d9225153c83ee1132397d619d94d1b3
yuv411p 8b298af3e43348ca1b11eb8a3252ac6c
yuv420p eba2f135a08829387e2f698ff72a2939
-yuv420p10be 299fe1d785a3d3dd5e70778700d7fb06
-yuv420p10le 8aee004e765a5383be0954f5e916b72f
-yuv420p16be 16c009a235cd52b74791a895423152a3
-yuv420p16le 2d59c4f1d0314a5a957a7cfc4b6fabcc
-yuv420p9be ce880fa07830e5297c22acf6e20555ce
-yuv420p9le 16543fda8f87d94a6cf857d2e8d4461a
+yuv420p10be 2f88c301feeaccd2a5fb55f54fc30be9
+yuv420p10le 93f175084af4e78f97c7710e505f3057
+yuv420p16be ba858ff4246368c28f03152487f57ef3
+yuv420p16le de239729a4fe1d4cfa3743e006654e78
+yuv420p9be 64e36fd90573f67ac2006d103972a79b
+yuv420p9le 9ed4b1dfabc53fd9e586ff6c4c43af80
yuv422p c9bba4529821d796a6ab09f6a5fd355a
yuv422p10be 11af7dfafe8bc025c7e3bd82b830fe8a
yuv422p10le ec04efb76efa79bf0d02b21572371a56
@@ -57,6 +62,7 @@ yuv444p16le 20f86bc2f68d2b3f1f2b48b97b2189f4
yuv444p9be 6ab31f4c12b533ce318ecdff83cdd054
yuv444p9le f0606604a5c08becab6ba500124c4b7c
yuva420p a29884f3f3dfe1e00b961bc17bef3d47
+yuva444p c523716e4900cfe515eaab1d7124fdd9
yuvj420p 32eec78ba51857b16ce9b813a49b7189
yuvj422p 0dfa0ed434f73be51428758c69e082cb
yuvj440p 657501a28004e27a592757a7509f5189
diff --git a/tests/ref/lavfi/pixfmts_scale b/tests/ref/lavfi/pixfmts_scale
index 4a5bf676d9..07b2c73919 100644
--- a/tests/ref/lavfi/pixfmts_scale
+++ b/tests/ref/lavfi/pixfmts_scale
@@ -1,46 +1,51 @@
-abgr d894cb97f6c80eb21bdbe8a4eea62d86
-argb 54346f2b2eef10919e0f247241df3b24
-bgr24 570f8d6b51a838aed022ef67535f6bdc
-bgr444be 25fe04f73a3bad4140d1c4f96ca5b670
-bgr444le 2fde227e6cea6dca5decdd0b7c0866f7
+0bgr 69b18159ed6ed85989e0839c0fbb1178
+0rgb cc8f0a67d9ea4fa7709626c1fd9a854c
+abgr cff82561a074874027ac1cc896fd2730
+argb 756dd1eaa5baca2238ce23dbdc452684
+bgr0 d2fe7d15e4c4b99c158b4ba34002f9dd
+bgr24 e44192347a45586c6c157e3059610cd1
+bgr444be c23768338d76693f0da76e8a9b6fd8df
+bgr444le 846c431a47bfb745437941bde768469c
bgr48be 390d3058a12a99c2b153ed7922508bea
bgr48le 39fe06feb4ec1d9730dccc04a0cfac4c
bgr4_byte ee1d35a7baf8e9016891929a2f565c0b
-bgr555be de8901c1358834fddea060fcb3a67beb
-bgr555le 36b745067197f9ca8c1731cac51329c9
-bgr565be 922a2503767036ae9536f4f7823c04ee
-bgr565le 3a514a298c6161a071ddf9963c06509d
+bgr555be 6a2d335856db12e3ea72173d71610e21
+bgr555le 41e3e0961478dc634bf68a7bbd670cc9
+bgr565be 21077a3744c889b97032414b11232933
+bgr565le 614897eaeb422bd9a972f8ee51909be5
bgr8 7f007fa6c153a16e808a9c51605a4016
-bgra a5e7040f9a80cccd65e5acf2ca09ace5
+bgra 01cfdda1f72fcabb6c46424e27f8c519
gray d7786a7d9d99ac74230cc045cab5632c
-gray16be b554d6c1cc8da23967445be4dd3e4a86
-gray16le 715a33aa1c19cb26b14f5cc000e7a3d1
-monob 88c4c050758e64d120f50c7eff694381
-monow d31772ebaa877fc2a78565937f7f9673
+gray16be a8fc0d7fea36407b5c319e3e736c7127
+gray16le 495c89186178308ef171d385bbd8bd70
+monob cb62f31b701c6e987b574974d1b31e32
+monow fd5d417ab7728acddffc06870661df61
nv12 4676d59db43d657dc12841f6bc3ab452
nv21 69c699510ff1fb777b118ebee1002f14
-rgb24 514692e28e8ff6860e415ce4fcf6eb8c
-rgb444be 12254053ae93373869fca18b2afcba31
-rgb444le badbd68b59c87df6ae73248309637634
+pal8 6324fa058e1bc157ed7132bfe4022317
+rgb0 a01995946117e77b20e851506d64688c
+rgb24 13ff53ebeab74dc05492836f1cfbd2c1
+rgb444be 46e466b2709f62b2fffc63708063eaaf
+rgb444le f0c57a48be671428e2e53c9b54a6c4e2
rgb48be 8fac63787a711886030f8e056872b488
rgb48le ab92f2763a2eb264c3870cc758f97149
rgb4_byte d81ffd3add95842a618eec81024f0b5c
-rgb555be 4607309f9f217d51cbb53d13b84b4537
-rgb555le a350ef1dc2c9688ed49e7ba018843795
-rgb565be 678ce231c4ea13629c1353b1df4ffbef
-rgb565le 6f4bb711238baa762d73305213f8d035
+rgb555be 491dc49ff83258ffe415289bdcfb50b2
+rgb555le bd698d86c03170c4a16607c0fd1f750f
+rgb565be 35682c17c85f307147041f23ac8092aa
+rgb565le bfa0c639d80c3c03fd0c9e5f34296a5e
rgb8 091d0170b354ef0e97312b95feb5483f
-rgba a3d362f222098a00e63867f612018659
+rgba 16873e3ac914e76116629a5ff8940ac4
uyvy422 314bd486277111a95d9369b944fa0400
yuv410p 7df8f6d69b56a8dcb6c7ee908e5018b5
yuv411p 1143e7c5cc28fe0922b051b17733bc4c
yuv420p fdad2d8df8985e3d17e73c71f713cb14
-yuv420p10be 27f28a6e09b1c04d0f755035a5db1f43
-yuv420p10le a5a1692e026590ba2eddb46b9b827529
-yuv420p16be d7270efce54eb59c7b01c14157a1b890
-yuv420p16le e85abf00bad940a922b623c91c9026d7
-yuv420p9be bb87fddca65d1742412c8d2b1caf96c6
-yuv420p9le 828eec50014a41258a5423c1fe56ac97
+yuv420p10be 418039dbd82cf612db88417276aa0d1a
+yuv420p10le ff7e5321208ab995b4f95634ebdf192b
+yuv420p16be 31988e9a5d6acacaa710f67bc1172f3a
+yuv420p16le f5390ce399f88e0e4e2621ed7833b250
+yuv420p9be ec4983b7a949c0472110a7a2c58e278a
+yuv420p9le c136dce5913a722eee44ab72cff664b2
yuv422p 918e37701ee7377d16a8a6c119c56a40
yuv422p10be 315654908d50718e175aae018c484732
yuv422p10le 91bbc78a9a56f659b55abc17722dcc09
@@ -57,6 +62,7 @@ yuv444p16le a0c5d3c7bf3f181db503cf8e450d1335
yuv444p9be 9ac2643ce7f7e5c4e17c8c9fd8494d4a
yuv444p9le 896a1cc9cccca1ba410dd53942d33cc4
yuva420p 8673a9131fb47de69788863f93a50eb7
+yuva444p 3268c6abe5e3cdbd16552a1eddced816
yuvj420p 30427bd6caf5bda93a173dbebe759e09
yuvj422p fc8288f64fd149573f73cf8da05d8e6d
yuvj440p 508ac7a9ddeb6d1794a1100ba7a1664c
diff --git a/tests/ref/lavfi/pixfmts_vflip b/tests/ref/lavfi/pixfmts_vflip
index f21927bdad..ab1b87f49e 100644
--- a/tests/ref/lavfi/pixfmts_vflip
+++ b/tests/ref/lavfi/pixfmts_vflip
@@ -1,5 +1,8 @@
+0bgr d7904ea356ada94890cbd49e8d69b6b2
+0rgb 1c6673e695a2b6d91b1f9530cb667f9c
abgr 25e72e9dbd01ab00727c976d577f7be5
argb 19869bf1a5ac0b6af4d8bbe2c104533c
+bgr0 b0855438e3d5a87c8b2e4bf47a1109b3
bgr24 89108a4ba00201f79b75b9305c42352d
bgr444be 9ef12c42fb791948ca4423c452dc6b9a
bgr444le 3650ecfc163abd1596c0cd29d130c4b0
@@ -13,12 +16,14 @@ bgr565le fdb617533e1e7ff512ea5b6b6233e738
bgr8 c60f93fd152c6903391d1fe9decd3547
bgra 7f9b799fb48544e49ce93e91d7f9fca8
gray 30d9014a9d43b5f37e7aa64be3a3ecfc
-gray16be 6b84b85d3326182fa1217e138249edc5
-gray16le 66bb8faa09dc149734aca3c768a6d4e1
+gray16be 9e8319fa0d4945e587b8c095277be8de
+gray16le 790031119f8e874d75ee6f01b4654185
monob d0cf8732677a5360b6160133043590d8
monow ff9869d067ecb94eb9d90c9750c31fea
nv12 046f00f598ce14d9854a3534a5c99114
nv21 01ea369dd2d0d3ed7451dc5c8d61497f
+pal8 47ed19a7e128b0e33c25d2a463b0611a
+rgb0 972c4ed97786aa30b7137b083b0e0afc
rgb24 eaefabc168d0b14576bab45bc1e56e1e
rgb444be 06722e03f8404e7d2226665ed2444a32
rgb444le 185c9a5d9c2877484310d4196ef4cd6f
@@ -35,12 +40,12 @@ uyvy422 ffbd36720c77398d9a0d03ce2625928f
yuv410p 7bfb39d7afb49d6a6173e6b23ae321eb
yuv411p 4a90048cc3a65fac150e53289700efe1
yuv420p 2e6d6062e8cad37fb3ab2c433b55f382
-yuv420p10be fb0772f5e2b9da20ff826e64c3893137
-yuv420p10le e95879e14c4a6805f39643964baf41f7
-yuv420p16be 539076782902664a8acf381bf4f713e8
-yuv420p16le 0f609e588e5a258644ef85170d70e030
-yuv420p9be be40ec975fb2873891643cbbbddbc3b0
-yuv420p9le 7e606310d3f5ff12badf911e8f333471
+yuv420p10be 7ce787a888381dd46b0212c099ecaad9
+yuv420p10le bf22a1c543a7b3dbc556a0eb9592e179
+yuv420p16be b6d25ba55bc1831d352f379311b42b6d
+yuv420p16le 1d7ef427b6f79a02b93948738dab5442
+yuv420p9be 9865bf5c4392b56b1c4eb4f5a3fd32f9
+yuv420p9le 0f1e371a1374d3cba2205b70cc7cac90
yuv422p d7f5cb44d9b0210d66d6a8762640ab34
yuv422p10be 0be8378c3773e1c0b394315ef4994351
yuv422p10le 6518094fe8de6bee95af21af1e5dc1e1
@@ -57,6 +62,7 @@ yuv444p16le 8e83323cf102d6c823a03ae8a7b7e033
yuv444p9be 6ac92b7dc9ab2fc59bee99204886899a
yuv444p9le 85aef13a654953d3455d89770b0d74bd
yuva420p c705d1cf061d8c6580ac690b55f92276
+yuva444p da5d64f2b2bd2013c186456f595fad65
yuvj420p 41fd02b204da0ab62452cd14b595e2e4
yuvj422p 7f6ca9bc1812cde02036d7d29a7cce43
yuvj440p 25711c3c0fd15ec19c59a10784fcfb96
diff --git a/tests/ref/lavfi/pp b/tests/ref/lavfi/pp
new file mode 100644
index 0000000000..554a0b2540
--- /dev/null
+++ b/tests/ref/lavfi/pp
@@ -0,0 +1 @@
+pp 520803fe1843d384b852ff9750e815c9
diff --git a/tests/ref/lavfi/pp2 b/tests/ref/lavfi/pp2
new file mode 100644
index 0000000000..4517f3caca
--- /dev/null
+++ b/tests/ref/lavfi/pp2
@@ -0,0 +1 @@
+pp2 1a34413c53356a5fc4f891e50f8400c8
diff --git a/tests/ref/lavfi/pp3 b/tests/ref/lavfi/pp3
new file mode 100644
index 0000000000..3c64c1c599
--- /dev/null
+++ b/tests/ref/lavfi/pp3
@@ -0,0 +1 @@
+pp3 192df08ba93baa48d90551509b64615c
diff --git a/tests/ref/lavfi/pp4 b/tests/ref/lavfi/pp4
new file mode 100644
index 0000000000..88f8ed07e6
--- /dev/null
+++ b/tests/ref/lavfi/pp4
@@ -0,0 +1 @@
+pp4 23b157b7a658800954f095f950f18165
diff --git a/tests/ref/lavfi/pp5 b/tests/ref/lavfi/pp5
new file mode 100644
index 0000000000..55c7bc5203
--- /dev/null
+++ b/tests/ref/lavfi/pp5
@@ -0,0 +1 @@
+pp5 09f92a9bf9348859461c150c12bd1317
diff --git a/tests/ref/lavfi/pp6 b/tests/ref/lavfi/pp6
new file mode 100644
index 0000000000..9547ac7ee5
--- /dev/null
+++ b/tests/ref/lavfi/pp6
@@ -0,0 +1 @@
+pp6 9ace50ed384e9a085965c52366e9cd6f
diff --git a/tests/ref/lavfi/select b/tests/ref/lavfi/select
new file mode 100644
index 0000000000..b959ca5eee
--- /dev/null
+++ b/tests/ref/lavfi/select
@@ -0,0 +1 @@
+select c5d5533a838beffba96b6cdd3a616c76
diff --git a/tests/ref/lavfi/setdar b/tests/ref/lavfi/setdar
new file mode 100644
index 0000000000..af7dcd640b
--- /dev/null
+++ b/tests/ref/lavfi/setdar
@@ -0,0 +1 @@
+setdar f94e744d160c65af967315f0145612a7
diff --git a/tests/ref/lavfi/setsar b/tests/ref/lavfi/setsar
new file mode 100644
index 0000000000..31026001f0
--- /dev/null
+++ b/tests/ref/lavfi/setsar
@@ -0,0 +1 @@
+setsar f94e744d160c65af967315f0145612a7
diff --git a/tests/ref/lavfi/testsrc b/tests/ref/lavfi/testsrc
new file mode 100644
index 0000000000..3155e32bfc
--- /dev/null
+++ b/tests/ref/lavfi/testsrc
@@ -0,0 +1 @@
+testsrc 293ef5d915068333412acdceb2746a0a
diff --git a/tests/ref/lavfi/thumbnail b/tests/ref/lavfi/thumbnail
new file mode 100644
index 0000000000..d2646f0eed
--- /dev/null
+++ b/tests/ref/lavfi/thumbnail
@@ -0,0 +1 @@
+thumbnail 9ad9ccc0b87ec4d1da26e4231fe00a1e
diff --git a/tests/ref/lavfi/transpose b/tests/ref/lavfi/transpose
new file mode 100644
index 0000000000..0020c5848b
--- /dev/null
+++ b/tests/ref/lavfi/transpose
@@ -0,0 +1 @@
+transpose cb9cc2b22b0f95f6648fe9ac4d5209a4
diff --git a/tests/ref/lavfi/unsharp b/tests/ref/lavfi/unsharp
new file mode 100644
index 0000000000..f8c1933495
--- /dev/null
+++ b/tests/ref/lavfi/unsharp
@@ -0,0 +1 @@
+unsharp 73e38eb0e598230dcbbb1802c35e8dcd
diff --git a/tests/ref/seek/dnxhd_720p_dnxhd b/tests/ref/seek/dnxhd_720p_dnxhd
index b6398b60d7..b57f07dd71 100644
--- a/tests/ref/seek/dnxhd_720p_dnxhd
+++ b/tests/ref/seek/dnxhd_720p_dnxhd
@@ -3,38 +3,38 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret:-1 st: 0 flags:0 ts: 0.800000
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:0 ts: 0.788334
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret:-1 st: 0 flags:0 ts: 0.360000
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st: 0 flags:0 ts: 0.365002
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
ret:-1 st:-1 flags:0 ts: 1.730004
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
ret:-1 st:-1 flags:0 ts: 1.306672
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
ret:-1 st:-1 flags:0 ts: 0.883340
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
ret:-1 st:-1 flags:0 ts: 0.460008
ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/tests/ref/seek/dnxhd_720p_rd_dnxhd b/tests/ref/seek/dnxhd_720p_rd_dnxhd
index b6398b60d7..b57f07dd71 100644
--- a/tests/ref/seek/dnxhd_720p_rd_dnxhd
+++ b/tests/ref/seek/dnxhd_720p_rd_dnxhd
@@ -3,38 +3,38 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret:-1 st: 0 flags:0 ts: 0.800000
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:0 ts: 0.788334
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret:-1 st: 0 flags:0 ts: 0.360000
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st: 0 flags:0 ts: 0.365002
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
ret:-1 st:-1 flags:0 ts: 1.730004
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
ret:-1 st:-1 flags:0 ts: 1.306672
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
ret:-1 st:-1 flags:0 ts: 0.883340
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:1835008 size:458752
ret:-1 st:-1 flags:0 ts: 0.460008
ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/tests/ref/seek/dv411_dv b/tests/ref/seek/dv411_dv
index baaeefb2cf..d318794157 100644
--- a/tests/ref/seek/dv411_dv
+++ b/tests/ref/seek/dv411_dv
@@ -1,53 +1,53 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos:6768000 size:144000
ret: 0 st: 0 flags:0 ts: 0.800000
-ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:2880000 size:144000
ret: 0 st: 0 flags:1 ts:-0.320000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:0 ts: 2.576668
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:1 ts: 1.470835
-ret: 0 st: 0 flags:1 dts: 1.480000 pts: 1.480000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.480000 pts: 1.480000 pos:5328000 size:144000
ret: 0 st: 0 flags:0 ts: 0.360000
-ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:1296000 size:144000
ret: 0 st: 0 flags:1 ts:-0.760000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:0 ts: 2.153336
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:1 ts: 1.047503
-ret: 0 st: 0 flags:1 dts: 1.040000 pts: 1.040000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.040000 pts: 1.040000 pos:3744000 size:144000
ret: 0 st: 0 flags:0 ts:-0.040000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:1 ts: 2.840000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:0 ts: 1.730004
-ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos:6192000 size:144000
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:2304000 size:144000
ret: 0 st: 0 flags:0 ts:-0.480000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:1 ts: 2.400000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:0 ts: 1.306672
-ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos:4752000 size:144000
ret: 0 st:-1 flags:1 ts: 0.200839
-ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: 720000 size:144000
ret: 0 st: 0 flags:0 ts:-0.920000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:1 ts: 2.000000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:3168000 size:144000
ret: 0 st:-1 flags:1 ts:-0.222493
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st: 0 flags:1 ts: 1.560000
-ret: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos:5616000 size:144000
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:1728000 size:144000
ret: 0 st:-1 flags:1 ts:-0.645825
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
diff --git a/tests/ref/seek/dv50_dv b/tests/ref/seek/dv50_dv
index 1f07e5b71f..fae6d1b225 100644
--- a/tests/ref/seek/dv50_dv
+++ b/tests/ref/seek/dv50_dv
@@ -1,53 +1,53 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:288000
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:288000
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos:13536000 size:288000
ret: 0 st: 0 flags:0 ts: 0.800000
-ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:5760000 size:288000
ret: 0 st: 0 flags:1 ts:-0.320000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:288000
ret: 0 st:-1 flags:0 ts: 2.576668
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:14112000 size:288000
ret: 0 st:-1 flags:1 ts: 1.470835
-ret: 0 st: 0 flags:1 dts: 1.480000 pts: 1.480000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.480000 pts: 1.480000 pos:10656000 size:288000
ret: 0 st: 0 flags:0 ts: 0.360000
-ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:2592000 size:288000
ret: 0 st: 0 flags:1 ts:-0.760000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:288000
ret: 0 st:-1 flags:0 ts: 2.153336
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:14112000 size:288000
ret: 0 st:-1 flags:1 ts: 1.047503
-ret: 0 st: 0 flags:1 dts: 1.040000 pts: 1.040000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.040000 pts: 1.040000 pos:7488000 size:288000
ret: 0 st: 0 flags:0 ts:-0.040000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:288000
ret: 0 st: 0 flags:1 ts: 2.840000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:14112000 size:288000
ret: 0 st:-1 flags:0 ts: 1.730004
-ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos:12384000 size:288000
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:4608000 size:288000
ret: 0 st: 0 flags:0 ts:-0.480000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:288000
ret: 0 st: 0 flags:1 ts: 2.400000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:14112000 size:288000
ret: 0 st:-1 flags:0 ts: 1.306672
-ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos:9504000 size:288000
ret: 0 st:-1 flags:1 ts: 0.200839
-ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:1440000 size:288000
ret: 0 st: 0 flags:0 ts:-0.920000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:288000
ret: 0 st: 0 flags:1 ts: 2.000000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:14112000 size:288000
ret: 0 st:-1 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:6336000 size:288000
ret: 0 st:-1 flags:1 ts:-0.222493
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:288000
ret: 0 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:14112000 size:288000
ret: 0 st: 0 flags:1 ts: 1.560000
-ret: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos:11232000 size:288000
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:3456000 size:288000
ret: 0 st:-1 flags:1 ts:-0.645825
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:288000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:288000
diff --git a/tests/ref/seek/dv_dv b/tests/ref/seek/dv_dv
index baaeefb2cf..d318794157 100644
--- a/tests/ref/seek/dv_dv
+++ b/tests/ref/seek/dv_dv
@@ -1,53 +1,53 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos:6768000 size:144000
ret: 0 st: 0 flags:0 ts: 0.800000
-ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:2880000 size:144000
ret: 0 st: 0 flags:1 ts:-0.320000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:0 ts: 2.576668
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:1 ts: 1.470835
-ret: 0 st: 0 flags:1 dts: 1.480000 pts: 1.480000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.480000 pts: 1.480000 pos:5328000 size:144000
ret: 0 st: 0 flags:0 ts: 0.360000
-ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:1296000 size:144000
ret: 0 st: 0 flags:1 ts:-0.760000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:0 ts: 2.153336
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:1 ts: 1.047503
-ret: 0 st: 0 flags:1 dts: 1.040000 pts: 1.040000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.040000 pts: 1.040000 pos:3744000 size:144000
ret: 0 st: 0 flags:0 ts:-0.040000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:1 ts: 2.840000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:0 ts: 1.730004
-ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos:6192000 size:144000
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:2304000 size:144000
ret: 0 st: 0 flags:0 ts:-0.480000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:1 ts: 2.400000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:0 ts: 1.306672
-ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos:4752000 size:144000
ret: 0 st:-1 flags:1 ts: 0.200839
-ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: 720000 size:144000
ret: 0 st: 0 flags:0 ts:-0.920000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:1 ts: 2.000000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st:-1 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:3168000 size:144000
ret: 0 st:-1 flags:1 ts:-0.222493
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7056000 size:144000
ret: 0 st: 0 flags:1 ts: 1.560000
-ret: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos:5616000 size:144000
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:1728000 size:144000
ret: 0 st:-1 flags:1 ts:-0.645825
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
diff --git a/tests/ref/seek/flac_flac b/tests/ref/seek/flac_flac
index 15ab0d2ee3..ab31891f1d 100644
--- a/tests/ref/seek/flac_flac
+++ b/tests/ref/seek/flac_flac
@@ -1,49 +1,49 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8255 size: 614
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8256 size: 614
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8255 size: 614
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8256 size: 614
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 1.880816 pts: 1.880816 pos: 86741 size: 2191
+ret: 0 st: 0 flags:1 dts: 1.880816 pts: 1.880816 pos: 86742 size: 2191
ret: 0 st: 0 flags:0 ts: 0.788345
-ret: 0 st: 0 flags:1 dts: 0.809796 pts: 0.809796 pos: 27365 size: 615
+ret: 0 st: 0 flags:1 dts: 0.809796 pts: 0.809796 pos: 27366 size: 615
ret:-1 st: 0 flags:1 ts:-0.317506
ret: 0 st:-1 flags:0 ts: 2.576668
-ret: 0 st: 0 flags:1 dts: 2.586122 pts: 2.586122 pos: 145605 size: 2384
+ret: 0 st: 0 flags:1 dts: 2.586122 pts: 2.586122 pos: 145606 size: 2384
ret: 0 st:-1 flags:1 ts: 1.470835
-ret: 0 st: 0 flags:1 dts: 1.462857 pts: 1.462857 pos: 53387 size: 1851
+ret: 0 st: 0 flags:1 dts: 1.462857 pts: 1.462857 pos: 53388 size: 1851
ret: 0 st: 0 flags:0 ts: 0.365011
-ret: 0 st: 0 flags:1 dts: 0.365714 pts: 0.365714 pos: 16889 size: 614
+ret: 0 st: 0 flags:1 dts: 0.365714 pts: 0.365714 pos: 16890 size: 614
ret:-1 st: 0 flags:1 ts:-0.740839
ret: 0 st:-1 flags:0 ts: 2.153336
-ret: 0 st: 0 flags:1 dts: 2.168163 pts: 2.168163 pos: 110530 size: 2143
+ret: 0 st: 0 flags:1 dts: 2.168163 pts: 2.168163 pos: 110531 size: 2143
ret: 0 st:-1 flags:1 ts: 1.047503
-ret: 0 st: 0 flags:1 dts: 1.044898 pts: 1.044898 pos: 32879 size: 579
+ret: 0 st: 0 flags:1 dts: 1.044898 pts: 1.044898 pos: 32880 size: 579
ret: 0 st: 0 flags:0 ts:-0.058322
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8255 size: 614
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8256 size: 614
ret: 0 st: 0 flags:1 ts: 2.835828
-ret: 0 st: 0 flags:1 dts: 2.821224 pts: 2.821224 pos: 167111 size: 2391
+ret: 0 st: 0 flags:1 dts: 2.821224 pts: 2.821224 pos: 167112 size: 2391
ret: 0 st:-1 flags:0 ts: 1.730004
-ret: 0 st: 0 flags:1 dts: 1.750204 pts: 1.750204 pos: 75787 size: 2191
+ret: 0 st: 0 flags:1 dts: 1.750204 pts: 1.750204 pos: 75788 size: 2191
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.600816 pts: 0.600816 pos: 22445 size: 616
+ret: 0 st: 0 flags:1 dts: 0.600816 pts: 0.600816 pos: 22446 size: 616
ret: 0 st: 0 flags:0 ts:-0.481655
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8255 size: 614
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8256 size: 614
ret: 0 st: 0 flags:1 ts: 2.412494
-ret: 0 st: 0 flags:1 dts: 2.403265 pts: 2.403265 pos: 129792 size: 2138
+ret: 0 st: 0 flags:1 dts: 2.403265 pts: 2.403265 pos: 129793 size: 2138
ret: 0 st:-1 flags:0 ts: 1.306672
-ret: 0 st: 0 flags:1 dts: 1.332245 pts: 1.332245 pos: 44811 size: 1609
+ret: 0 st: 0 flags:1 dts: 1.332245 pts: 1.332245 pos: 44812 size: 1609
ret: 0 st:-1 flags:1 ts: 0.200839
-ret: 0 st: 0 flags:1 dts: 0.182857 pts: 0.182857 pos: 12571 size: 628
+ret: 0 st: 0 flags:1 dts: 0.182857 pts: 0.182857 pos: 12572 size: 628
ret: 0 st: 0 flags:0 ts:-0.904989
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8255 size: 614
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 8256 size: 614
ret: 0 st: 0 flags:1 ts: 1.989184
-ret: 0 st: 0 flags:1 dts: 1.985306 pts: 1.985306 pos: 95507 size: 2169
+ret: 0 st: 0 flags:1 dts: 1.985306 pts: 1.985306 pos: 95508 size: 2169
ret: 0 st:-1 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:1 dts: 0.888163 pts: 0.888163 pos: 29210 size: 620
+ret: 0 st: 0 flags:1 dts: 0.888163 pts: 0.888163 pos: 29211 size: 620
ret:-1 st:-1 flags:1 ts:-0.222493
ret: 0 st: 0 flags:0 ts: 2.671678
-ret: 0 st: 0 flags:1 dts: 2.690612 pts: 2.690612 pos: 155153 size: 2394
+ret: 0 st: 0 flags:1 dts: 2.690612 pts: 2.690612 pos: 155154 size: 2394
ret: 0 st: 0 flags:1 ts: 1.565850
-ret: 0 st: 0 flags:1 dts: 1.541224 pts: 1.541224 pos: 59081 size: 1974
+ret: 0 st: 0 flags:1 dts: 1.541224 pts: 1.541224 pos: 59082 size: 1974
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.470204 pts: 0.470204 pos: 19352 size: 608
+ret: 0 st: 0 flags:1 dts: 0.470204 pts: 0.470204 pos: 19353 size: 608
ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/tests/ref/seek/lavf_asf b/tests/ref/seek/lavf_asf
index 72c0f5698b..5aee39e049 100644
--- a/tests/ref/seek/lavf_asf
+++ b/tests/ref/seek/lavf_asf
@@ -1,47 +1,53 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 28487
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 1 flags:1 dts: 0.444000 pts: 0.444000 pos: 147775 size: 209
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 28487
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301375 size: 209
+ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301489 size: 209
ret: 0 st: 0 flags:0 ts: 0.788000
-ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301375 size: 209
+ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301489 size: 209
ret: 0 st: 0 flags:1 ts:-0.317000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487
-ret:-1 st: 1 flags:0 ts: 2.577000
-ret:-1 st: 1 flags:1 ts: 1.471000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 28487
+ret: 0 st: 1 flags:0 ts: 2.577000
+ret: 0 st: 1 flags:1 dts: 0.967000 pts: 0.967000 pos: 330289 size: 209
+ret: 0 st: 1 flags:1 ts: 1.471000
+ret: 0 st: 1 flags:1 dts: 0.967000 pts: 0.967000 pos: 330289 size: 209
ret: 0 st:-1 flags:0 ts: 0.365002
-ret: 0 st: 1 flags:1 dts: 0.444000 pts: 0.444000 pos: 147775 size: 209
+ret: 0 st: 1 flags:1 dts: 0.444000 pts: 0.444000 pos: 147889 size: 209
ret: 0 st:-1 flags:1 ts:-0.740831
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 28487
ret: 0 st: 0 flags:0 ts: 2.153000
-ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301375 size: 209
+ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301489 size: 209
ret: 0 st: 0 flags:1 ts: 1.048000
-ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301375 size: 209
+ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301489 size: 209
ret: 0 st: 1 flags:0 ts:-0.058000
-ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 29375 size: 208
-ret:-1 st: 1 flags:1 ts: 2.836000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 29489 size: 208
+ret: 0 st: 1 flags:1 ts: 2.836000
+ret: 0 st: 1 flags:1 dts: 0.967000 pts: 0.967000 pos: 330289 size: 209
ret: 0 st:-1 flags:0 ts: 1.730004
-ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301375 size: 209
+ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301489 size: 209
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 1 flags:1 dts: 0.444000 pts: 0.444000 pos: 147775 size: 209
+ret: 0 st: 1 flags:1 dts: 0.444000 pts: 0.444000 pos: 147889 size: 209
ret: 0 st: 0 flags:0 ts:-0.482000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 28487
ret: 0 st: 0 flags:1 ts: 2.413000
-ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301375 size: 209
-ret:-1 st: 1 flags:0 ts: 1.307000
+ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301489 size: 209
+ret: 0 st: 1 flags:0 ts: 1.307000
+ret: 0 st: 1 flags:1 dts: 0.967000 pts: 0.967000 pos: 330289 size: 209
ret: 0 st: 1 flags:1 ts: 0.201000
-ret: 0 st: 1 flags:1 dts: 0.183000 pts: 0.183000 pos: 70975 size: 209
+ret: 0 st: 1 flags:1 dts: 0.183000 pts: 0.183000 pos: 71089 size: 209
ret: 0 st:-1 flags:0 ts:-0.904994
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 28487
ret: 0 st:-1 flags:1 ts: 1.989173
-ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301375 size: 209
+ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301489 size: 209
ret: 0 st: 0 flags:0 ts: 0.883000
-ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301375 size: 209
+ret: 0 st: 1 flags:1 dts: 0.940000 pts: 0.940000 pos: 301489 size: 209
ret: 0 st: 0 flags:1 ts:-0.222000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487
-ret:-1 st: 1 flags:0 ts: 2.672000
-ret:-1 st: 1 flags:1 ts: 1.566000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 28487
+ret: 0 st: 1 flags:0 ts: 2.672000
+ret: 0 st: 1 flags:1 dts: 0.967000 pts: 0.967000 pos: 330289 size: 209
+ret: 0 st: 1 flags:1 ts: 1.566000
+ret: 0 st: 1 flags:1 dts: 0.967000 pts: 0.967000 pos: 330289 size: 209
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 1 flags:1 dts: 0.444000 pts: 0.444000 pos: 147775 size: 209
+ret: 0 st: 1 flags:1 dts: 0.444000 pts: 0.444000 pos: 147889 size: 209
ret: 0 st:-1 flags:1 ts:-0.645825
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 28487
diff --git a/tests/ref/seek/lavf_avi b/tests/ref/seek/lavf_avi
index 2e09ad10cc..eb14485e94 100644
--- a/tests/ref/seek/lavf_avi
+++ b/tests/ref/seek/lavf_avi
@@ -1,44 +1,44 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9908 size: 27867
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9926 size: 27867
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9908 size: 27867
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9926 size: 27867
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301466 size: 27864
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301484 size: 27864
ret: 0 st: 0 flags:0 ts: 0.800000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301466 size: 27864
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301484 size: 27864
ret:-1 st: 0 flags:1 ts:-0.320000
ret:-1 st: 1 flags:0 ts: 2.586122
ret: 0 st: 1 flags:1 ts: 1.462857
-ret: 0 st: 1 flags:1 dts: 0.992653 pts: 0.992653 pos: 329556 size: 209
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301484 size: 27864
ret: 0 st:-1 flags:0 ts: 0.365002
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 156166 size: 27955
+ret: 0 st: 1 flags:1 dts: 0.470204 pts: 0.470204 pos: 155966 size: 209
ret:-1 st:-1 flags:1 ts:-0.740831
ret:-1 st: 0 flags:0 ts: 2.160000
ret: 0 st: 0 flags:1 ts: 1.040000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301466 size: 27864
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301484 size: 27864
ret: 0 st: 1 flags:0 ts:-0.052245
-ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 37784 size: 208
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9926 size: 27867
ret: 0 st: 1 flags:1 ts: 2.847347
-ret: 0 st: 1 flags:1 dts: 0.992653 pts: 0.992653 pos: 329556 size: 209
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301484 size: 27864
ret:-1 st:-1 flags:0 ts: 1.730004
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 156166 size: 27955
+ret: 0 st: 1 flags:1 dts: 0.470204 pts: 0.470204 pos: 155966 size: 209
ret: 0 st: 0 flags:0 ts:-0.480000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9908 size: 27867
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9926 size: 27867
ret: 0 st: 0 flags:1 ts: 2.400000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301466 size: 27864
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301484 size: 27864
ret:-1 st: 1 flags:0 ts: 1.306122
ret: 0 st: 1 flags:1 ts: 0.208980
-ret: 0 st: 1 flags:1 dts: 0.208980 pts: 0.208980 pos: 92800 size: 209
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9926 size: 27867
ret: 0 st:-1 flags:0 ts:-0.904994
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9908 size: 27867
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 9926 size: 27867
ret: 0 st:-1 flags:1 ts: 1.989173
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301466 size: 27864
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301484 size: 27864
ret: 0 st: 0 flags:0 ts: 0.880000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301466 size: 27864
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301484 size: 27864
ret:-1 st: 0 flags:1 ts:-0.240000
ret:-1 st: 1 flags:0 ts: 2.664490
ret: 0 st: 1 flags:1 ts: 1.567347
-ret: 0 st: 1 flags:1 dts: 0.992653 pts: 0.992653 pos: 329556 size: 209
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301484 size: 27864
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 156166 size: 27955
+ret: 0 st: 1 flags:1 dts: 0.470204 pts: 0.470204 pos: 155966 size: 209
ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/tests/ref/seek/lavf_dv b/tests/ref/seek/lavf_dv
index 3c49749a6b..0000ff5abe 100644
--- a/tests/ref/seek/lavf_dv
+++ b/tests/ref/seek/lavf_dv
@@ -1,53 +1,53 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st: 0 flags:0 ts: 0.800000
-ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:2880000 size:144000
ret: 0 st: 0 flags:1 ts:-0.320000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 1 flags:0 ts: 2.576667
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st: 1 flags:1 ts: 1.470833
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st:-1 flags:0 ts: 0.365002
-ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:1296000 size:144000
ret: 0 st:-1 flags:1 ts:-0.740831
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:0 ts: 2.160000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st: 0 flags:1 ts: 1.040000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st: 1 flags:0 ts:-0.058333
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 1 flags:1 ts: 2.835833
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st:-1 flags:0 ts: 1.730004
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:2304000 size:144000
ret: 0 st: 0 flags:0 ts:-0.480000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 0 flags:1 ts: 2.400000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st: 1 flags:0 ts: 1.306667
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st: 1 flags:1 ts: 0.200833
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st:-1 flags:0 ts:-0.904994
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st:-1 flags:1 ts: 1.989173
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st: 0 flags:0 ts: 0.880000
-ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:3168000 size:144000
ret: 0 st: 0 flags:1 ts:-0.240000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
ret: 0 st: 1 flags:0 ts: 2.671667
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st: 1 flags:1 ts: 1.565833
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:3456000 size:144000
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:1728000 size:144000
ret: 0 st:-1 flags:1 ts:-0.645825
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:144000
diff --git a/tests/ref/seek/lavf_ffm b/tests/ref/seek/lavf_ffm
index 46cf764c88..2218d4fd85 100644
--- a/tests/ref/seek/lavf_ffm
+++ b/tests/ref/seek/lavf_ffm
@@ -4,7 +4,7 @@ ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24664
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 1 flags:1 dts: 0.940408 pts: 0.940408 pos: 376832 size: 209
ret: 0 st: 0 flags:0 ts: 0.788334
-ret: 0 st: 1 flags:1 dts: 0.783673 pts: 0.783673 pos: 315392 size: 209
+ret: 0 st: 1 flags:1 dts: 0.809796 pts: 0.809796 pos: 327680 size: 209
ret: 0 st: 0 flags:1 ts:-0.317499
ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24664
ret: 0 st: 1 flags:0 ts: 2.576668
@@ -12,7 +12,7 @@ ret: 0 st: 1 flags:1 dts: 0.940408 pts: 0.940408 pos: 376832 size: 209
ret: 0 st: 1 flags:1 ts: 1.470835
ret: 0 st: 1 flags:1 dts: 0.940408 pts: 0.940408 pos: 376832 size: 209
ret: 0 st:-1 flags:0 ts: 0.365002
-ret: 0 st: 1 flags:1 dts: 0.339592 pts: 0.339592 pos: 155648 size: 209
+ret: 0 st: 1 flags:1 dts: 0.365714 pts: 0.365714 pos: 163840 size: 209
ret: 0 st:-1 flags:1 ts:-0.740831
ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24664
ret: 0 st: 0 flags:0 ts: 2.153336
@@ -40,7 +40,7 @@ ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24664
ret: 0 st:-1 flags:1 ts: 1.989173
ret: 0 st: 1 flags:1 dts: 0.940408 pts: 0.940408 pos: 376832 size: 209
ret: 0 st: 0 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:0 dts: 0.880000 pts: 0.920000 pos: 339968 size: 12307
+ret: 0 st: 1 flags:1 dts: 0.888163 pts: 0.888163 pos: 352256 size: 209
ret: 0 st: 0 flags:1 ts:-0.222493
ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24664
ret: 0 st: 1 flags:0 ts: 2.671674
@@ -48,6 +48,6 @@ ret: 0 st: 1 flags:1 dts: 0.940408 pts: 0.940408 pos: 376832 size: 209
ret: 0 st: 1 flags:1 ts: 1.565841
ret: 0 st: 1 flags:1 dts: 0.940408 pts: 0.940408 pos: 376832 size: 209
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 1 flags:1 dts: 0.444082 pts: 0.444082 pos: 204800 size: 209
+ret: 0 st: 1 flags:1 dts: 0.496327 pts: 0.496327 pos: 221184 size: 209
ret: 0 st:-1 flags:1 ts:-0.645825
ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24664
diff --git a/tests/ref/seek/lavf_flv b/tests/ref/seek/lavf_flv
index 2e7a0bce57..e29ea4295d 100644
--- a/tests/ref/seek/lavf_flv
+++ b/tests/ref/seek/lavf_flv
@@ -1,44 +1,44 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 31074
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 217 size: 31074
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 31074
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 217 size: 31074
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298403 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298421 size: 31134
ret: 0 st: 0 flags:0 ts: 0.788000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298403 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298421 size: 31134
ret:-1 st: 0 flags:1 ts:-0.317000
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298403 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298421 size: 31134
ret: 0 st: 0 flags:0 ts: 0.365000
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 149441 size: 31125
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 149459 size: 31125
ret:-1 st: 0 flags:1 ts:-0.741000
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298403 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298421 size: 31134
ret: 0 st: 0 flags:0 ts:-0.058000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 31074
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 217 size: 31074
ret: 0 st: 0 flags:1 ts: 2.836000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298403 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298421 size: 31134
ret:-1 st:-1 flags:0 ts: 1.730004
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 149441 size: 31125
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 149459 size: 31125
ret: 0 st: 0 flags:0 ts:-0.482000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 31074
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 217 size: 31074
ret: 0 st: 0 flags:1 ts: 2.413000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298403 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298421 size: 31134
ret:-1 st:-1 flags:0 ts: 1.306672
ret: 0 st:-1 flags:1 ts: 0.200839
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 31074
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 217 size: 31074
ret: 0 st: 0 flags:0 ts:-0.905000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 31074
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 217 size: 31074
ret: 0 st: 0 flags:1 ts: 1.989000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298403 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298421 size: 31134
ret: 0 st:-1 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298403 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298421 size: 31134
ret:-1 st:-1 flags:1 ts:-0.222493
ret:-1 st: 0 flags:0 ts: 2.672000
ret: 0 st: 0 flags:1 ts: 1.566000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298403 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298421 size: 31134
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 149441 size: 31125
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 149459 size: 31125
ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/tests/ref/seek/lavf_mkv b/tests/ref/seek/lavf_mkv
index f2590211df..4f727864de 100644
--- a/tests/ref/seek/lavf_mkv
+++ b/tests/ref/seek/lavf_mkv
@@ -1,53 +1,48 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 513 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 556 size: 27837
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 513 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 556 size: 27837
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291934 size: 27834
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291977 size: 27834
ret: 0 st: 0 flags:0 ts: 0.788000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291934 size: 27834
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291977 size: 27834
ret: 0 st: 0 flags:1 ts:-0.317000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 513 size: 27837
-ret: 0 st: 1 flags:0 ts: 2.577000
-ret:-EOF
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 556 size: 27837
+ret:-1 st: 1 flags:0 ts: 2.577000
ret: 0 st: 1 flags:1 ts: 1.471000
-ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 319991 size: 209
+ret: 0 st: 1 flags:1 dts: 1.019000 pts: 1.019000 pos: 320250 size: 209
ret: 0 st:-1 flags:0 ts: 0.365002
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146703 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146746 size: 27925
ret: 0 st:-1 flags:1 ts:-0.740831
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 513 size: 27837
-ret: 0 st: 0 flags:0 ts: 2.153000
-ret:-EOF
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 556 size: 27837
+ret:-1 st: 0 flags:0 ts: 2.153000
ret: 0 st: 0 flags:1 ts: 1.048000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291934 size: 27834
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291977 size: 27834
ret: 0 st: 1 flags:0 ts:-0.058000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 513 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 556 size: 27837
ret: 0 st: 1 flags:1 ts: 2.836000
-ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 319991 size: 209
-ret: 0 st:-1 flags:0 ts: 1.730004
-ret:-EOF
+ret: 0 st: 1 flags:1 dts: 1.019000 pts: 1.019000 pos: 320250 size: 209
+ret:-1 st:-1 flags:0 ts: 1.730004
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146703 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146746 size: 27925
ret: 0 st: 0 flags:0 ts:-0.482000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 513 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 556 size: 27837
ret: 0 st: 0 flags:1 ts: 2.413000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291934 size: 27834
-ret: 0 st: 1 flags:0 ts: 1.307000
-ret:-EOF
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291977 size: 27834
+ret:-1 st: 1 flags:0 ts: 1.307000
ret: 0 st: 1 flags:1 ts: 0.201000
-ret: 0 st: 1 flags:1 dts: 0.183000 pts: 0.183000 pos: 72083 size: 209
+ret: 0 st: 1 flags:1 dts: 0.183000 pts: 0.183000 pos: 72126 size: 209
ret: 0 st:-1 flags:0 ts:-0.904994
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 513 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 556 size: 27837
ret: 0 st:-1 flags:1 ts: 1.989173
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291934 size: 27834
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291977 size: 27834
ret: 0 st: 0 flags:0 ts: 0.883000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291934 size: 27834
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 291977 size: 27834
ret: 0 st: 0 flags:1 ts:-0.222000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 513 size: 27837
-ret: 0 st: 1 flags:0 ts: 2.672000
-ret:-EOF
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 556 size: 27837
+ret:-1 st: 1 flags:0 ts: 2.672000
ret: 0 st: 1 flags:1 ts: 1.566000
-ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 319991 size: 209
+ret: 0 st: 1 flags:1 dts: 1.019000 pts: 1.019000 pos: 320250 size: 209
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146703 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146746 size: 27925
ret: 0 st:-1 flags:1 ts:-0.645825
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 513 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 556 size: 27837
diff --git a/tests/ref/seek/lavf_mpg b/tests/ref/seek/lavf_mpg
index aad61dcae2..ccecf2ba5b 100644
--- a/tests/ref/seek/lavf_mpg
+++ b/tests/ref/seek/lavf_mpg
@@ -8,7 +8,7 @@ ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st: 0 flags:1 ts:-0.317500
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st: 1 flags:0 ts: 2.576667
-ret: 0 st: 1 flags:1 dts: 1.783678 pts: 1.783678 pos: 368652 size: 379
+ret: 0 st: 1 flags:1 dts: 2.018778 pts: 2.018778 pos: 370700 size: 235
ret: 0 st: 1 flags:1 ts: 1.470833
ret: 0 st: 1 flags:1 dts: 1.261222 pts: 1.261222 pos: 145408 size: 261
ret: 0 st:-1 flags:0 ts: 0.365002
@@ -16,13 +16,13 @@ ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st:-1 flags:1 ts:-0.740831
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st: 0 flags:0 ts: 2.153333
-ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.960000 pos: 339968 size: 681
+ret: 0 st: 0 flags:0 dts: 1.920000 pts: 1.960000 pos: 339968 size: 681
ret: 0 st: 0 flags:1 ts: 1.047500
ret: 0 st: 0 flags:0 dts: 1.040000 pts: 1.080000 pos: 40960 size: 16073
ret: 0 st: 1 flags:0 ts:-0.058333
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st: 1 flags:1 ts: 2.835833
-ret: 0 st: 1 flags:1 dts: 1.783678 pts: 1.783678 pos: 368652 size: 379
+ret: 0 st: 1 flags:1 dts: 2.018778 pts: 2.018778 pos: 370700 size: 235
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:0 dts: 1.760000 pts: 1.800000 pos: 292864 size: 13170
ret: 0 st:-1 flags:1 ts: 0.624171
@@ -30,7 +30,7 @@ ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st: 0 flags:0 ts:-0.481667
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st: 0 flags:1 ts: 2.412500
-ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.960000 pos: 339968 size: 681
+ret: 0 st: 0 flags:0 dts: 1.920000 pts: 1.960000 pos: 339968 size: 681
ret: 0 st: 1 flags:0 ts: 1.306667
ret: 0 st: 1 flags:1 dts: 1.522444 pts: 1.522444 pos: 342028 size: 314
ret: 0 st: 1 flags:1 ts: 0.200844
@@ -38,13 +38,13 @@ ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st:-1 flags:0 ts:-0.904994
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st:-1 flags:1 ts: 1.989173
-ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.960000 pos: 339968 size: 681
+ret: 0 st: 0 flags:0 dts: 1.920000 pts: 1.960000 pos: 339968 size: 681
ret: 0 st: 0 flags:0 ts: 0.883344
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st: 0 flags:1 ts:-0.222489
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
ret: 0 st: 1 flags:0 ts: 2.671678
-ret: 0 st: 1 flags:1 dts: 1.783678 pts: 1.783678 pos: 368652 size: 379
+ret: 0 st: 1 flags:1 dts: 2.018778 pts: 2.018778 pos: 370700 size: 235
ret: 0 st: 1 flags:1 ts: 1.565844
ret: 0 st: 1 flags:1 dts: 1.522444 pts: 1.522444 pos: 342028 size: 314
ret: 0 st:-1 flags:0 ts: 0.460008
diff --git a/tests/ref/seek/lavf_nut b/tests/ref/seek/lavf_nut
index fc3ef63f1e..cc86ceccf4 100644
--- a/tests/ref/seek/lavf_nut
+++ b/tests/ref/seek/lavf_nut
@@ -1,53 +1,53 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 0 flags:0 ts: 0.800000
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 0 flags:1 ts:-0.320000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st: 1 flags:0 ts: 2.586122
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 1 flags:1 ts: 1.462857
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st:-1 flags:0 ts: 0.365002
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st:-1 flags:1 ts:-0.740831
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st: 0 flags:0 ts: 2.160000
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 0 flags:1 ts: 1.040000
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 1 flags:0 ts:-0.052245
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st: 1 flags:1 ts: 2.847347
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st:-1 flags:0 ts: 1.730004
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 0 flags:0 ts:-0.480000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st: 0 flags:1 ts: 2.400000
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 1 flags:0 ts: 1.306122
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 1 flags:1 ts: 0.208980
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st:-1 flags:0 ts:-0.904994
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st:-1 flags:1 ts: 1.989173
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 0 flags:0 ts: 0.880000
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 0 flags:1 ts:-0.240000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
ret: 0 st: 1 flags:0 ts: 2.664490
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st: 1 flags:1 ts: 1.567347
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146329 size: 27925
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146345 size: 27925
ret: 0 st:-1 flags:1 ts:-0.645825
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 279 size: 27837
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 295 size: 27837
diff --git a/tests/ref/seek/lavf_ogg b/tests/ref/seek/lavf_ogg
index ea8eb8bb58..a9704f317e 100644
--- a/tests/ref/seek/lavf_ogg
+++ b/tests/ref/seek/lavf_ogg
@@ -1,4 +1,4 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 124 size: 1364
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
ret:-1 st:-1 flags:0 ts:-1.000000
ret:-1 st:-1 flags:1 ts: 1.894167
ret:-1 st: 0 flags:0 ts: 0.788345
diff --git a/tests/ref/seek/lavf_rm b/tests/ref/seek/lavf_rm
index 394928086b..208a52789b 100644
--- a/tests/ref/seek/lavf_rm
+++ b/tests/ref/seek/lavf_rm
@@ -1,53 +1,53 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 406 size: 31082
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 406 size: 31082
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314990 size: 31143
ret: 0 st: 0 flags:0 ts: 0.788000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314990 size: 31143
ret: 0 st: 0 flags:1 ts:-0.317000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 406 size: 31082
ret: 0 st: 1 flags:0 ts: 2.577000
-ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346128 size: 278
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346136 size: 278
ret: 0 st: 1 flags:1 ts: 1.471000
-ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346128 size: 278
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346136 size: 278
ret: 0 st:-1 flags:0 ts: 0.365002
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 158515 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 158523 size: 31134
ret: 0 st:-1 flags:1 ts:-0.740831
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 406 size: 31082
ret: 0 st: 0 flags:0 ts: 2.153000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314990 size: 31143
ret: 0 st: 0 flags:1 ts: 1.048000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314990 size: 31143
ret: 0 st: 1 flags:0 ts:-0.058000
-ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 31483 size: 278
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 31491 size: 278
ret: 0 st: 1 flags:1 ts: 2.836000
-ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346128 size: 278
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346136 size: 278
ret: 0 st:-1 flags:0 ts: 1.730004
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314990 size: 31143
ret: 0 st:-1 flags:1 ts: 0.624171
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 158515 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 158523 size: 31134
ret: 0 st: 0 flags:0 ts:-0.482000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 406 size: 31082
ret: 0 st: 0 flags:1 ts: 2.413000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314990 size: 31143
ret: 0 st: 1 flags:0 ts: 1.307000
-ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346128 size: 278
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346136 size: 278
ret: 0 st: 1 flags:1 ts: 0.201000
-ret: 0 st: 1 flags:1 dts: 0.174000 pts: 0.174000 pos: 78969 size: 278
+ret: 0 st: 1 flags:1 dts: 0.174000 pts: 0.174000 pos: 78977 size: 278
ret: 0 st:-1 flags:0 ts:-0.904994
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 406 size: 31082
ret: 0 st:-1 flags:1 ts: 1.989173
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314990 size: 31143
ret: 0 st: 0 flags:0 ts: 0.883000
-ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314990 size: 31143
ret: 0 st: 0 flags:1 ts:-0.222000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 406 size: 31082
ret: 0 st: 1 flags:0 ts: 2.672000
-ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346128 size: 278
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346136 size: 278
ret: 0 st: 1 flags:1 ts: 1.566000
-ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346128 size: 278
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346136 size: 278
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 158515 size: 31134
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 158523 size: 31134
ret: 0 st:-1 flags:1 ts:-0.645825
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 406 size: 31082
diff --git a/tests/ref/seek/lavf_ts b/tests/ref/seek/lavf_ts
index 9ed59ef5af..690228d741 100644
--- a/tests/ref/seek/lavf_ts
+++ b/tests/ref/seek/lavf_ts
@@ -1,53 +1,53 @@
ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:0 dts: 1.440000 pts: 1.480000 pos: 44932 size: 14502
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st:-1 flags:1 ts: 1.894167
-ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 403636 size: 209
+ret: 0 st: 0 flags:0 dts: 1.880000 pts: 1.920000 pos: 216012 size: 17441
ret: 0 st: 0 flags:0 ts: 0.788333
-ret: 0 st: 0 flags:0 dts: 1.520000 pts: 1.560000 pos: 74260 size: 13388
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st: 0 flags:1 ts:-0.317500
ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st: 1 flags:0 ts: 2.576667
-ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 403636 size: 209
+ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 404012 size: 209
ret: 0 st: 1 flags:1 ts: 1.470833
-ret: 0 st: 0 flags:0 dts: 2.160000 pts: 2.200000 pos: 325240 size: 12679
+ret: 0 st: 1 flags:1 dts: 1.400000 pts: 1.400000 pos: 172584 size: 208
ret: 0 st:-1 flags:0 ts: 0.365002
-ret: 0 st: 0 flags:0 dts: 1.440000 pts: 1.480000 pos: 44932 size: 14502
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st:-1 flags:1 ts:-0.740831
ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st: 0 flags:0 ts: 2.153333
-ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 403636 size: 209
+ret: 0 st: 0 flags:0 dts: 2.160000 pts: 2.200000 pos: 325616 size: 12679
ret: 0 st: 0 flags:1 ts: 1.047500
-ret: 0 st: 0 flags:0 dts: 1.680000 pts: 1.720000 pos: 130096 size: 14133
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st: 1 flags:0 ts:-0.058333
-ret: 0 st: 0 flags:0 dts: 1.440000 pts: 1.480000 pos: 44932 size: 14502
+ret: 0 st: 1 flags:1 dts: 1.400000 pts: 1.400000 pos: 172584 size: 208
ret: 0 st: 1 flags:1 ts: 2.835833
-ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 403636 size: 209
+ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 404012 size: 209
ret: 0 st:-1 flags:0 ts: 1.730004
-ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 403636 size: 209
+ret: 0 st: 1 flags:1 dts: 1.400000 pts: 1.400000 pos: 172584 size: 208
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st: 0 flags:0 ts:-0.481667
-ret: 0 st: 0 flags:0 dts: 1.440000 pts: 1.480000 pos: 44932 size: 14502
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st: 0 flags:1 ts: 2.412500
-ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 403636 size: 209
+ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 404012 size: 209
ret: 0 st: 1 flags:0 ts: 1.306667
-ret: 0 st: 0 flags:0 dts: 2.080000 pts: 2.120000 pos: 294032 size: 13839
+ret: 0 st: 1 flags:1 dts: 1.400000 pts: 1.400000 pos: 172584 size: 208
ret: 0 st: 1 flags:1 ts: 0.200844
-ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
+ret: 0 st: 1 flags:1 dts: 1.400000 pts: 1.400000 pos: 172584 size: 208
ret: 0 st:-1 flags:0 ts:-0.904994
-ret: 0 st: 0 flags:0 dts: 1.440000 pts: 1.480000 pos: 44932 size: 14502
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st:-1 flags:1 ts: 1.989173
-ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 403636 size: 209
+ret: 0 st: 0 flags:0 dts: 1.960000 pts: 2.000000 pos: 250980 size: 13438
ret: 0 st: 0 flags:0 ts: 0.883344
-ret: 0 st: 0 flags:0 dts: 1.600000 pts: 1.640000 pos: 102836 size: 12781
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st: 0 flags:1 ts:-0.222489
ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st: 1 flags:0 ts: 2.671678
-ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 403636 size: 209
+ret: 0 st: 1 flags:1 dts: 2.131433 pts: 2.131433 pos: 404012 size: 209
ret: 0 st: 1 flags:1 ts: 1.565844
-ret: 0 st: 0 flags:0 dts: 2.240000 pts: 2.280000 pos: 350996 size: 11307
+ret: 0 st: 1 flags:1 dts: 1.400000 pts: 1.400000 pos: 172584 size: 208
ret: 0 st:-1 flags:0 ts: 0.460008
-ret: 0 st: 0 flags:0 dts: 1.440000 pts: 1.480000 pos: 44932 size: 14502
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
ret: 0 st:-1 flags:1 ts:-0.645825
ret: 0 st: 0 flags:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
diff --git a/tests/ref/seek/lavf_wtv b/tests/ref/seek/lavf_wtv
new file mode 100644
index 0000000000..20c0bb32ab
--- /dev/null
+++ b/tests/ref/seek/lavf_wtv
@@ -0,0 +1,41 @@
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 2144 size: 24801
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
+ret:-1 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:0 ts: 0.788334
+ret: 0 st: 1 flags:1 dts: 0.783674 pts: 0.783674 pos: 321176 size: 209
+ret: 0 st: 0 flags:1 ts:-0.317499
+ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
+ret:-1 st: 1 flags:0 ts: 2.576668
+ret:-1 st: 1 flags:1 ts: 1.470835
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 1 flags:1 dts: 0.365714 pts: 0.365714 pos: 167160 size: 209
+ret: 0 st:-1 flags:1 ts:-0.740831
+ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
+ret:-1 st: 0 flags:0 ts: 2.153336
+ret:-1 st: 0 flags:1 ts: 1.047503
+ret: 0 st: 1 flags:0 ts:-0.058330
+ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
+ret:-1 st: 1 flags:1 ts: 2.835837
+ret:-1 st:-1 flags:0 ts: 1.730004
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 1 flags:1 dts: 0.600816 pts: 0.600816 pos: 266240 size: 209
+ret: 0 st: 0 flags:0 ts:-0.481662
+ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
+ret:-1 st: 0 flags:1 ts: 2.412505
+ret:-1 st: 1 flags:0 ts: 1.306672
+ret: 0 st: 1 flags:1 ts: 0.200839
+ret: 0 st: 1 flags:1 dts: 0.208980 pts: 0.208980 pos: 113304 size: 209
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
+ret:-1 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:0 ts: 0.883340
+ret: 0 st: 1 flags:1 dts: 0.888163 pts: 0.888163 pos: 357608 size: 209
+ret: 0 st: 0 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
+ret:-1 st: 1 flags:0 ts: 2.671674
+ret:-1 st: 1 flags:1 ts: 1.565841
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 1 flags:1 dts: 0.444082 pts: 0.444082 pos: 205440 size: 209
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
diff --git a/tests/ref/seek/mp2_mp2 b/tests/ref/seek/mp2_mp2
index 8de36761b0..6166cb380b 100644
--- a/tests/ref/seek/mp2_mp2
+++ b/tests/ref/seek/mp2_mp2
@@ -1,18 +1,20 @@
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
ret: 0 st:-1 flags:0 ts:-1.000000
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
+ret: 0 st: 0 flags:1 dts: 0.026122 pts: 0.026122 pos: 417 size: 418
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.880816 pts: 1.880816 pos: 30093 size: 418
ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.809796 pts: 0.809796 pos: 12956 size: 418
-ret:-1 st: 0 flags:1 ts:-0.317499
+ret: 0 st: 0 flags:1 ts:-0.317499
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
ret: 0 st:-1 flags:0 ts: 2.576668
ret: 0 st: 0 flags:1 dts: 2.586122 pts: 2.586122 pos: 41377 size: 418
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.462857 pts: 1.462857 pos: 23405 size: 418
ret: 0 st: 0 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.365714 pts: 0.365714 pos: 5851 size: 418
-ret:-1 st: 0 flags:1 ts:-0.740831
+ret: 0 st: 0 flags:1 ts:-0.740831
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
ret: 0 st:-1 flags:0 ts: 2.153336
ret: 0 st: 0 flags:1 dts: 2.168163 pts: 2.168163 pos: 34690 size: 418
ret: 0 st:-1 flags:1 ts: 1.047503
@@ -39,11 +41,13 @@ ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.985306 pts: 1.985306 pos: 31764 size: 418
ret: 0 st:-1 flags:0 ts: 0.883340
ret: 0 st: 0 flags:1 dts: 0.888163 pts: 0.888163 pos: 14210 size: 418
-ret:-1 st:-1 flags:1 ts:-0.222493
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
ret: 0 st: 0 flags:0 ts: 2.671674
ret: 0 st: 0 flags:1 dts: 2.690612 pts: 2.690612 pos: 43049 size: 418
ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.541224 pts: 1.541224 pos: 24659 size: 418
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.470204 pts: 0.470204 pos: 7523 size: 418
-ret:-1 st:-1 flags:1 ts:-0.645825
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
diff --git a/tests/ref/seek/mpeg1_mpg b/tests/ref/seek/mpeg1_mpg
index a85055a270..54f0b166b9 100644
--- a/tests/ref/seek/mpeg1_mpg
+++ b/tests/ref/seek/mpeg1_mpg
@@ -3,43 +3,43 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9779
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 124245 size: 11796
-ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 76694 size: 10792
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 124245 size: 11796
-ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 37721 size: 9873
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 76694 size: 10792
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9779
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 177089 size: 12057
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 177089 size: 12057
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 37721 size: 9873
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9779
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 177089 size: 12057
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 124245 size: 11796
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9779
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9779
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 177089 size: 12057
ret: 0 st:-1 flags:0 ts: 0.883340
ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 76694 size: 10792
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 124245 size: 11796
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 37721 size: 9873
diff --git a/tests/ref/seek/mpeg1b_mpg b/tests/ref/seek/mpeg1b_mpg
index 3b0b084a74..4c83997934 100644
--- a/tests/ref/seek/mpeg1b_mpg
+++ b/tests/ref/seek/mpeg1b_mpg
@@ -3,43 +3,43 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 11817
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.800000 pts: NOPTS pos: 194420 size: 14837
-ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.840000 pts: NOPTS pos: 80757 size: 13267
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.320000 pts: NOPTS pos: 133899 size: 14470
-ret: 0 st: 0 flags:0 ts: 0.360000
-ret: 0 st: 0 flags:1 dts: 0.360000 pts: NOPTS pos: 34797 size: 12009
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret: 0 st: 0 flags:0 ts: 0.365002
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: NOPTS pos: 80757 size: 13267
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.840000 pts: NOPTS pos: 80757 size: 13267
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 11817
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 1.800000 pts: NOPTS pos: 194420 size: 14837
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.800000 pts: NOPTS pos: 194420 size: 14837
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.360000 pts: NOPTS pos: 34797 size: 12009
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 11817
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 1.800000 pts: NOPTS pos: 194420 size: 14837
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st: 0 flags:1 dts: 1.320000 pts: NOPTS pos: 133899 size: 14470
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 11817
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 11817
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.800000 pts: NOPTS pos: 194420 size: 14837
ret: 0 st:-1 flags:0 ts: 0.883340
ret: 0 st: 0 flags:1 dts: 1.320000 pts: NOPTS pos: 133899 size: 14470
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.320000 pts: NOPTS pos: 133899 size: 14470
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.840000 pts: NOPTS pos: 80757 size: 13267
diff --git a/tests/ref/seek/mpeg2_422_mpg b/tests/ref/seek/mpeg2_422_mpg
index d06b7cb267..3b4e1e7d14 100644
--- a/tests/ref/seek/mpeg2_422_mpg
+++ b/tests/ref/seek/mpeg2_422_mpg
@@ -3,43 +3,43 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 17497
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 325162 size: 19936
-ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 200736 size: 22575
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 265477 size: 21329
-ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 104454 size: 28984
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 200736 size: 22575
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 17497
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 325162 size: 19936
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 325162 size: 19936
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 104454 size: 28984
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 17497
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 325162 size: 19936
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 265477 size: 21329
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 17497
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 17497
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 325162 size: 19936
ret: 0 st:-1 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 200736 size: 22575
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 265477 size: 21329
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 265477 size: 21329
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 200736 size: 22575
diff --git a/tests/ref/seek/mpeg2_idct_int_mpg b/tests/ref/seek/mpeg2_idct_int_mpg
index 698cedf7c5..b096f6fe7c 100644
--- a/tests/ref/seek/mpeg2_idct_int_mpg
+++ b/tests/ref/seek/mpeg2_idct_int_mpg
@@ -3,43 +3,43 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9911
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 127925 size: 11918
-ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 79103 size: 10909
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 127925 size: 11918
-ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 38992 size: 9985
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 79103 size: 10909
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9911
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 182138 size: 12183
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 182138 size: 12183
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 38992 size: 9985
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9911
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 182138 size: 12183
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 127925 size: 11918
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9911
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9911
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 182138 size: 12183
ret: 0 st:-1 flags:0 ts: 0.883340
ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 79103 size: 10909
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 127925 size: 11918
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 38992 size: 9985
diff --git a/tests/ref/seek/mpeg2i_mpg b/tests/ref/seek/mpeg2i_mpg
index a2427f3888..0708cfd7b3 100644
--- a/tests/ref/seek/mpeg2i_mpg
+++ b/tests/ref/seek/mpeg2i_mpg
@@ -3,43 +3,43 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 132607 size: 11970
-ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 82152 size: 10965
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 132607 size: 11970
-ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 40546 size: 10045
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 82152 size: 10965
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 188429 size: 12232
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 188429 size: 12232
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 40546 size: 10045
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 188429 size: 12232
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 132607 size: 11970
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 188429 size: 12232
ret: 0 st:-1 flags:0 ts: 0.883340
ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 82152 size: 10965
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 132607 size: 11970
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 40546 size: 10045
diff --git a/tests/ref/seek/mpeg2ivlc_qprd_mpg b/tests/ref/seek/mpeg2ivlc_qprd_mpg
index 9a623c291c..330dc16a47 100644
--- a/tests/ref/seek/mpeg2ivlc_qprd_mpg
+++ b/tests/ref/seek/mpeg2ivlc_qprd_mpg
@@ -3,43 +3,43 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 16239
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 227500 size: 12725
-ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 164167 size: 13921
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 196681 size: 13159
-ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 98748 size: 29165
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 164167 size: 13921
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 16239
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 227500 size: 12725
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 227500 size: 12725
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 98748 size: 29165
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 16239
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 227500 size: 12725
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 196681 size: 13159
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 16239
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 16239
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 227500 size: 12725
ret: 0 st:-1 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 164167 size: 13921
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 196681 size: 13159
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 196681 size: 13159
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 164167 size: 13921
diff --git a/tests/ref/seek/mpeg2reuse_mpg b/tests/ref/seek/mpeg2reuse_mpg
new file mode 100644
index 0000000000..c4ae3ea291
--- /dev/null
+++ b/tests/ref/seek/mpeg2reuse_mpg
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 20829
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 20829
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 337078 size: 26840
+ret: 0 st: 0 flags:0 ts: 0.788334
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 141401 size: 23537
+ret:-1 st: 0 flags:1 ts:-0.317499
+ret:-1 st:-1 flags:0 ts: 2.576668
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 232037 size: 26192
+ret: 0 st: 0 flags:0 ts: 0.365002
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 63793 size: 21295
+ret:-1 st: 0 flags:1 ts:-0.740831
+ret:-1 st:-1 flags:0 ts: 2.153336
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 141401 size: 23537
+ret: 0 st: 0 flags:0 ts:-0.058330
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 20829
+ret: 0 st: 0 flags:1 ts: 2.835837
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 337078 size: 26840
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 337078 size: 26840
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 63793 size: 21295
+ret: 0 st: 0 flags:0 ts:-0.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 20829
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 337078 size: 26840
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 232037 size: 26192
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 20829
+ret: 0 st: 0 flags:0 ts:-0.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 20829
+ret: 0 st: 0 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 337078 size: 26840
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 232037 size: 26192
+ret:-1 st:-1 flags:1 ts:-0.222493
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 232037 size: 26192
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 141401 size: 23537
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/tests/ref/seek/mpeg2thread_mpg b/tests/ref/seek/mpeg2thread_mpg
index d8c9e28c94..24ee04f718 100644
--- a/tests/ref/seek/mpeg2thread_mpg
+++ b/tests/ref/seek/mpeg2thread_mpg
@@ -3,43 +3,43 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 158225 size: 12232
-ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67790 size: 10965
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110330 size: 11970
-ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 30747 size: 10045
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67790 size: 10965
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 158225 size: 12232
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 158225 size: 12232
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 30747 size: 10045
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 158225 size: 12232
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110330 size: 11970
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 158225 size: 12232
ret: 0 st:-1 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67790 size: 10965
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110330 size: 11970
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110330 size: 11970
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67790 size: 10965
diff --git a/tests/ref/seek/mpeg2threadivlc_mpg b/tests/ref/seek/mpeg2threadivlc_mpg
index f1909b6afb..c2f9895ab5 100644
--- a/tests/ref/seek/mpeg2threadivlc_mpg
+++ b/tests/ref/seek/mpeg2threadivlc_mpg
@@ -3,43 +3,43 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9954
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 157678 size: 11930
-ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67723 size: 10791
-ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st: 0 flags:1 ts:-0.317499
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110080 size: 11697
-ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 30744 size: 9980
-ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st: 0 flags:1 ts:-0.740831
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67723 size: 10791
-ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:0 ts:-0.058330
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9954
-ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 ts: 2.835837
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 157678 size: 11930
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 157678 size: 11930
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 30744 size: 9980
-ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:0 ts:-0.481662
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9954
-ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 ts: 2.412505
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 157678 size: 11930
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110080 size: 11697
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9954
-ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9954
-ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 157678 size: 11930
ret: 0 st:-1 flags:0 ts: 0.883340
-ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67723 size: 10791
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110080 size: 11697
ret:-1 st:-1 flags:1 ts:-0.222493
-ret:-1 st: 0 flags:0 ts: 2.680000
-ret: 0 st: 0 flags:1 ts: 1.560000
+ret:-1 st: 0 flags:0 ts: 2.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110080 size: 11697
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67723 size: 10791
diff --git a/tests/ref/vsynth1/amv/vsynth1-amv b/tests/ref/vsynth1/amv/vsynth1-amv
new file mode 100644
index 0000000000..50d14a4430
--- /dev/null
+++ b/tests/ref/vsynth1/amv/vsynth1-amv
@@ -0,0 +1,4 @@
+539c26ba470de4d72279855fcf61f5a2 *./tests/data/vsynth1/amv.avi
+1365534 ./tests/data/vsynth1/amv.avi
+27bbe70dd002ec67af0bb219fbae626a *./tests/data/amv.vsynth1.out.yuv
+stddev: 12.46 PSNR: 26.21 MAXDIFF: 97 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/cljr b/tests/ref/vsynth1/cljr
index 4978344bd3..73dc6ba578 100644
--- a/tests/ref/vsynth1/cljr
+++ b/tests/ref/vsynth1/cljr
@@ -1,4 +1,4 @@
-b4d3d31da0b4b6873ad8239d113c91d2 *./tests/data/vsynth1/cljr.avi
+041982e4fa83428c621a127647d47b3f *./tests/data/vsynth1/cljr.avi
5075660 ./tests/data/vsynth1/cljr.avi
-4debaab994c2c7273bebaa0c5733017b *./tests/data/cljr.vsynth1.out.yuv
-stddev: 30.75 PSNR: 18.37 MAXDIFF: 225 bytes: 7603200/ 7603200
+e1c4c96c74de3435d0f9f6118c5ed9b5 *./tests/data/cljr.vsynth1.out.yuv
+stddev: 30.53 PSNR: 18.43 MAXDIFF: 225 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/dnxhd_1080i b/tests/ref/vsynth1/dnxhd_1080i
index e989eae2a0..f8f6df09bf 100644
--- a/tests/ref/vsynth1/dnxhd_1080i
+++ b/tests/ref/vsynth1/dnxhd_1080i
@@ -1,4 +1,4 @@
-3cfbe36a7dd5b48859b8a569d626ef77 *./tests/data/vsynth1/dnxhd-1080i.mov
-3031875 ./tests/data/vsynth1/dnxhd-1080i.mov
+027c985483caab9397592bf27477dce1 *./tests/data/vsynth1/dnxhd-1080i.mov
+3031911 ./tests/data/vsynth1/dnxhd-1080i.mov
0c651e840f860592f0d5b66030d9fa32 *./tests/data/dnxhd_1080i.vsynth1.out.yuv
stddev: 6.29 PSNR: 32.15 MAXDIFF: 64 bytes: 760320/ 7603200
diff --git a/tests/ref/vsynth1/dv b/tests/ref/vsynth1/dv
index c309bb2aba..3e71feceeb 100644
--- a/tests/ref/vsynth1/dv
+++ b/tests/ref/vsynth1/dv
@@ -1,4 +1,4 @@
-27ade3031b17214cf81c19cbf70f37d7 *./tests/data/vsynth1/dv.dv
+4d572f758b55a1756adf9f54132f3b9e *./tests/data/vsynth1/dv.dv
7200000 ./tests/data/vsynth1/dv.dv
02ac7cdeab91d4d5621e7ce96dddc498 *./tests/data/dv.vsynth1.out.yuv
-stddev: 6.90 PSNR: 31.34 MAXDIFF: 76 bytes: 7603200/ 7603200
+stddev: 6.90 PSNR: 31.34 MAXDIFF: 76 bytes: 7603200/ 7603200 \ No newline at end of file
diff --git a/tests/ref/vsynth1/dv50 b/tests/ref/vsynth1/dv50
index 9ae338527d..461392e288 100644
--- a/tests/ref/vsynth1/dv50
+++ b/tests/ref/vsynth1/dv50
@@ -1,4 +1,4 @@
-26dba84f0ea895b914ef5b333d8394ac *./tests/data/vsynth1/dv50.dv
+a193c5f92bf6e74c604e759d5f4f0f94 *./tests/data/vsynth1/dv50.dv
14400000 ./tests/data/vsynth1/dv50.dv
a2ff093e93ffed10f730fa21df02fc50 *./tests/data/dv50.vsynth1.out.yuv
stddev: 1.72 PSNR: 43.38 MAXDIFF: 29 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/dv_411 b/tests/ref/vsynth1/dv_411
index 841c3fd326..c45b593c02 100644
--- a/tests/ref/vsynth1/dv_411
+++ b/tests/ref/vsynth1/dv_411
@@ -1,4 +1,4 @@
-bd67f2431db160d4bb6dcd791cea6efd *./tests/data/vsynth1/dv411.dv
+f179899efba432c6f01149c36c709092 *./tests/data/vsynth1/dv411.dv
7200000 ./tests/data/vsynth1/dv411.dv
b6640a3a572353f51284acb746eb00c4 *./tests/data/dv_411.vsynth1.out.yuv
stddev: 30.76 PSNR: 18.37 MAXDIFF: 205 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/error b/tests/ref/vsynth1/error
index bc24d5b2af..4d1e9e5b0c 100644
--- a/tests/ref/vsynth1/error
+++ b/tests/ref/vsynth1/error
@@ -1,4 +1,4 @@
7416dfd319f04044d4575dc9d1b406e1 *./tests/data/vsynth1/error-mpeg4-adv.avi
- 756836 ./tests/data/vsynth1/error-mpeg4-adv.avi
+756836 ./tests/data/vsynth1/error-mpeg4-adv.avi
79e94ba32b37759397362cbcb479d4d3 *./tests/data/error.vsynth1.out.yuv
stddev: 18.36 PSNR: 22.85 MAXDIFF: 243 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/ffvhuff b/tests/ref/vsynth1/ffvhuff
index 4a1ebdb1a3..c6d7627b24 100644
--- a/tests/ref/vsynth1/ffvhuff
+++ b/tests/ref/vsynth1/ffvhuff
@@ -1,4 +1,4 @@
-da0c0bd12ac141c976ffa6a71832ab4b *./tests/data/vsynth1/ffvhuff.avi
+0632ffae6f1e06dd299bf41a845b9099 *./tests/data/vsynth1/ffvhuff.avi
5987208 ./tests/data/vsynth1/ffvhuff.avi
c5ccac874dbf808e9088bc3107860042 *./tests/data/ffvhuff.vsynth1.out.yuv
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/flashsv b/tests/ref/vsynth1/flashsv
index 7920193aa7..77fefe0bc0 100644
--- a/tests/ref/vsynth1/flashsv
+++ b/tests/ref/vsynth1/flashsv
@@ -1,4 +1,4 @@
97894502b4cb57aca1105b6333f72dae *./tests/data/vsynth1/flashsv.flv
14681925 ./tests/data/vsynth1/flashsv.flv
-947cb24ec45a453348ae6fe3fa278071 *./tests/data/flashsv.vsynth1.out.yuv
-stddev: 2.85 PSNR: 39.03 MAXDIFF: 49 bytes: 7603200/ 7603200
+791e1fb999deb2e4156e2286d48c4ed1 *./tests/data/flashsv.vsynth1.out.yuv
+stddev: 2.84 PSNR: 39.04 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/flashsv2 b/tests/ref/vsynth1/flashsv2
new file mode 100644
index 0000000000..58e2e8ff52
--- /dev/null
+++ b/tests/ref/vsynth1/flashsv2
@@ -0,0 +1,6 @@
+8d105780bb79915bc36f96f7a754f289 *./tests/data/vsynth1/flashsv2.flv
+9371095 ./tests/data/vsynth1/flashsv2.flv
+ed28c0021768629b2675e72bf1632426 *./tests/data/vsynth1/flashsv2I.flv
+8755723 ./tests/data/vsynth1/flashsv2I.flv
+efa88d09115a2e947eff00ee435ba3f3 *./tests/data/flashsv2.vsynth1.out.yuv
+stddev: 3.47 PSNR: 37.31 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/huffyuv b/tests/ref/vsynth1/huffyuv
index fefc84a3b4..9ec091eb36 100644
--- a/tests/ref/vsynth1/huffyuv
+++ b/tests/ref/vsynth1/huffyuv
@@ -1,4 +1,4 @@
-ace2536fa169d835d0fb332abde28d51 *./tests/data/vsynth1/huffyuv.avi
+f5f2e109af0612694ff3cd6464063e82 *./tests/data/vsynth1/huffyuv.avi
7933800 ./tests/data/vsynth1/huffyuv.avi
c5ccac874dbf808e9088bc3107860042 *./tests/data/huffyuv.vsynth1.out.yuv
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/jpeg2000 b/tests/ref/vsynth1/jpeg2000
new file mode 100644
index 0000000000..fa60ac2be6
--- /dev/null
+++ b/tests/ref/vsynth1/jpeg2000
@@ -0,0 +1,4 @@
+8da8ef50cccb9996f4bebbc585c4edb4 *./tests/data/vsynth1/jpeg2000.avi
+2306914 ./tests/data/vsynth1/jpeg2000.avi
+ee9b245b3b07eed90bc6f2147bbd916c *./tests/data/jpeg2000.vsynth1.out.yuv
+stddev: 5.47 PSNR: 33.37 MAXDIFF: 64 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/jpegls b/tests/ref/vsynth1/jpegls
index 636f7fc556..153f9b9c0f 100644
--- a/tests/ref/vsynth1/jpegls
+++ b/tests/ref/vsynth1/jpegls
@@ -1,4 +1,4 @@
519e26bb1ac0f3db8f90b36537f2f760 *./tests/data/vsynth1/jpegls.avi
9089812 ./tests/data/vsynth1/jpegls.avi
-947cb24ec45a453348ae6fe3fa278071 *./tests/data/jpegls.vsynth1.out.yuv
-stddev: 2.85 PSNR: 39.03 MAXDIFF: 49 bytes: 7603200/ 7603200
+791e1fb999deb2e4156e2286d48c4ed1 *./tests/data/jpegls.vsynth1.out.yuv
+stddev: 2.84 PSNR: 39.04 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/mpeg2thread b/tests/ref/vsynth1/mpeg2thread
index a44c00dd91..b12997eaa7 100644
--- a/tests/ref/vsynth1/mpeg2thread
+++ b/tests/ref/vsynth1/mpeg2thread
@@ -1,4 +1,4 @@
ecd183706688bd977c9994c3d1b23d61 *./tests/data/vsynth1/mpeg2thread.mpg
801313 ./tests/data/vsynth1/mpeg2thread.mpg
d1658911ca83f5616c1d32abc40750de *./tests/data/mpeg2thread.vsynth1.out.yuv
-stddev: 7.63 PSNR: 30.48 MAXDIFF: 110 bytes: 7603200/ 7603200
+stddev: 7.63 PSNR: 30.48 MAXDIFF: 110 bytes: 7603200/ 7603200 \ No newline at end of file
diff --git a/tests/ref/vsynth1/mpeg2thread_ilace b/tests/ref/vsynth1/mpeg2thread_ilace
index 0667b68fae..f9c3339585 100644
--- a/tests/ref/vsynth1/mpeg2thread_ilace
+++ b/tests/ref/vsynth1/mpeg2thread_ilace
@@ -2,3 +2,7 @@
791773 ./tests/data/vsynth1/mpeg2threadivlc.mpg
d1658911ca83f5616c1d32abc40750de *./tests/data/mpeg2thread_ilace.vsynth1.out.yuv
stddev: 7.63 PSNR: 30.48 MAXDIFF: 110 bytes: 7603200/ 7603200
+d119fe917dd81d1ff758b4ce684a8d9d *./tests/data/vsynth1/mpeg2reuse.mpg
+2074636 ./tests/data/vsynth1/mpeg2reuse.mpg
+92ced6afe8c02304943c400cce51a5f4 *./tests/data/mpeg2thread_ilace.vsynth1.out.yuv
+stddev: 7.66 PSNR: 30.44 MAXDIFF: 111 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/mpeg4 b/tests/ref/vsynth1/mpeg4
index b318e6f4de..88436f617a 100644
--- a/tests/ref/vsynth1/mpeg4
+++ b/tests/ref/vsynth1/mpeg4
@@ -1,4 +1,4 @@
-59a9e2eed314abface66aaf1b45eb8f2 *./tests/data/vsynth1/odivx.mp4
-540180 ./tests/data/vsynth1/odivx.mp4
+6ea715a2de70af8d37128ce643e4cca0 *./tests/data/vsynth1/odivx.mp4
+539996 ./tests/data/vsynth1/odivx.mp4
8828a375448dc5c2215163ba70656f89 *./tests/data/mpeg4.vsynth1.out.yuv
stddev: 7.97 PSNR: 30.10 MAXDIFF: 105 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/mpng b/tests/ref/vsynth1/mpng
new file mode 100644
index 0000000000..40e13d4309
--- /dev/null
+++ b/tests/ref/vsynth1/mpng
@@ -0,0 +1,4 @@
+a8e7393fa534289eee9319ded7807f99 *./tests/data/vsynth1/mpng.avi
+12157242 ./tests/data/vsynth1/mpng.avi
+93695a27c24a61105076ca7b1f010bbd *./tests/data/mpng.vsynth1.out.yuv
+stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/msvideo1 b/tests/ref/vsynth1/msvideo1
new file mode 100644
index 0000000000..7978258c99
--- /dev/null
+++ b/tests/ref/vsynth1/msvideo1
@@ -0,0 +1,4 @@
+267a152a73cbc5ac4694a6e3b254be34 *./tests/data/vsynth1/msvideo1.avi
+2162264 ./tests/data/vsynth1/msvideo1.avi
+c0665fac1bd896b6fe7fe0eead805bd5 *./tests/data/msvideo1.vsynth1.out.yuv
+stddev: 11.80 PSNR: 26.69 MAXDIFF: 151 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/prores b/tests/ref/vsynth1/prores
index 67ae0dcfd6..dc25a69ed5 100644
--- a/tests/ref/vsynth1/prores
+++ b/tests/ref/vsynth1/prores
@@ -1,4 +1,4 @@
-2566517b15c62887bd94daaab1b1a85b *./tests/data/vsynth1/prores.mov
-3859037 ./tests/data/vsynth1/prores.mov
-0a4153637d0cc0a88a8bcbf04cfaf8c6 *./tests/data/prores.vsynth1.out.yuv
-stddev: 3.17 PSNR: 38.09 MAXDIFF: 39 bytes: 7603200/ 7603200
+31159cc9d1693bc66ad7a3083c48bcc4 *./tests/data/vsynth1/prores.mov
+5022811 ./tests/data/vsynth1/prores.mov
+a2e2d1d45341a94ff994d1d92629f778 *./tests/data/prores.vsynth1.out.yuv
+stddev: 2.47 PSNR: 40.27 MAXDIFF: 31 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/prores_kostya b/tests/ref/vsynth1/prores_kostya
new file mode 100644
index 0000000000..032cda2c90
--- /dev/null
+++ b/tests/ref/vsynth1/prores_kostya
@@ -0,0 +1,4 @@
+f8fe98b7f9bb66857c81dbca409a9037 *./tests/data/vsynth1/prores_kostya.mov
+3858901 ./tests/data/vsynth1/prores_kostya.mov
+0a4153637d0cc0a88a8bcbf04cfaf8c6 *./tests/data/prores_kostya.vsynth1.out.yuv
+stddev: 3.17 PSNR: 38.09 MAXDIFF: 39 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/qtrle b/tests/ref/vsynth1/qtrle
index 002ee49883..81cf6db3c2 100644
--- a/tests/ref/vsynth1/qtrle
+++ b/tests/ref/vsynth1/qtrle
@@ -1,4 +1,4 @@
-7d75328a17e04796a39fe9be3a322946 *./tests/data/vsynth1/qtrle.mov
-15263232 ./tests/data/vsynth1/qtrle.mov
-243325fb2cae1a9245efd49aff936327 *./tests/data/qtrle.vsynth1.out.yuv
-stddev: 3.42 PSNR: 37.43 MAXDIFF: 48 bytes: 7603200/ 7603200
+9c6ee876369fceac1ff2478a0225bc9b *./tests/data/vsynth1/qtrle.mov
+15263148 ./tests/data/vsynth1/qtrle.mov
+93695a27c24a61105076ca7b1f010bbd *./tests/data/qtrle.vsynth1.out.yuv
+stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/qtrlegray b/tests/ref/vsynth1/qtrlegray
new file mode 100644
index 0000000000..ff0a81c546
--- /dev/null
+++ b/tests/ref/vsynth1/qtrlegray
@@ -0,0 +1,4 @@
+dfb185e38b3557eca0ead72d57ca48f8 *./tests/data/vsynth1/qtrlegray.mov
+5113284 ./tests/data/vsynth1/qtrlegray.mov
+29def4aed035ed65d3a89f7d382fccbe *./tests/data/qtrlegray.vsynth1.out.yuv
+stddev: 25.95 PSNR: 19.85 MAXDIFF: 122 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/r210 b/tests/ref/vsynth1/r210
new file mode 100644
index 0000000000..9d5e37c7ff
--- /dev/null
+++ b/tests/ref/vsynth1/r210
@@ -0,0 +1,4 @@
+604a34c9f9151891c2d63d2652b75329 *./tests/data/vsynth1/r210.avi
+ 22125260 ./tests/data/vsynth1/r210.avi
+ecaafa9eec11b5e1453a63ed6d194eed *./tests/data/r210.vsynth1.out.yuv
+stddev: 3.23 PSNR: 37.94 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/rgb b/tests/ref/vsynth1/rgb
index 10a0a13329..1c353dae7f 100644
--- a/tests/ref/vsynth1/rgb
+++ b/tests/ref/vsynth1/rgb
@@ -1,4 +1,4 @@
05f0719cb52486d9a4beb9cfae3f2571 *./tests/data/vsynth1/rgb.avi
15213260 ./tests/data/vsynth1/rgb.avi
-243325fb2cae1a9245efd49aff936327 *./tests/data/rgb.vsynth1.out.yuv
-stddev: 3.42 PSNR: 37.43 MAXDIFF: 48 bytes: 7603200/ 7603200
+93695a27c24a61105076ca7b1f010bbd *./tests/data/rgb.vsynth1.out.yuv
+stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/svq1 b/tests/ref/vsynth1/svq1
index 3137e3bd9d..a95bd94f73 100644
--- a/tests/ref/vsynth1/svq1
+++ b/tests/ref/vsynth1/svq1
@@ -1,4 +1,4 @@
-5c9d8734693f3cab57f61e76b5b6da7d *./tests/data/vsynth1/svq1.mov
-1334367 ./tests/data/vsynth1/svq1.mov
+4654e7af0d4aa58c3db1eb145e278038 *./tests/data/vsynth1/svq1.mov
+1334223 ./tests/data/vsynth1/svq1.mov
9cc35c54b2c77d36bd7e308b393c1f81 *./tests/data/svq1.vsynth1.out.yuv
stddev: 9.58 PSNR: 28.50 MAXDIFF: 210 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/v308 b/tests/ref/vsynth1/v308
new file mode 100644
index 0000000000..873d52a5f0
--- /dev/null
+++ b/tests/ref/vsynth1/v308
@@ -0,0 +1,4 @@
+8d5f2065ce6547acc51041a679b7d6c4 *./tests/data/vsynth1/v308.avi
+ 15213260 ./tests/data/vsynth1/v308.avi
+10fb42f1abf40a289c3edafc0390482c *./tests/data/v308.vsynth1.out.yuv
+stddev: 2.67 PSNR: 39.60 MAXDIFF: 43 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/y41p b/tests/ref/vsynth1/y41p
new file mode 100644
index 0000000000..36f45f1a34
--- /dev/null
+++ b/tests/ref/vsynth1/y41p
@@ -0,0 +1,4 @@
+70bbcb52acac0a3cb3217719669a8242 *./tests/data/vsynth1/y41p.avi
+ 7610060 ./tests/data/vsynth1/y41p.avi
+665f6045e3b3031f719fa4a44f63daba *./tests/data/y41p.vsynth1.out.yuv
+stddev: 30.54 PSNR: 18.43 MAXDIFF: 222 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/yuv b/tests/ref/vsynth1/yuv
index b98dda503a..6d8b1431db 100644
--- a/tests/ref/vsynth1/yuv
+++ b/tests/ref/vsynth1/yuv
@@ -1,4 +1,4 @@
-aa6b9e862aebcf8902a6d770e7729d59 *./tests/data/vsynth1/yuv.avi
+eaa66c3b27a2602e882befe154a8b119 *./tests/data/vsynth1/yuv.avi
7610060 ./tests/data/vsynth1/yuv.avi
c5ccac874dbf808e9088bc3107860042 *./tests/data/yuv.vsynth1.out.yuv
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/yuv4 b/tests/ref/vsynth1/yuv4
new file mode 100644
index 0000000000..63c1298281
--- /dev/null
+++ b/tests/ref/vsynth1/yuv4
@@ -0,0 +1,4 @@
+e0d593eb635432f421b93224e425ee03 *./tests/data/vsynth1/yuv4.avi
+ 7610060 ./tests/data/vsynth1/yuv4.avi
+c5ccac874dbf808e9088bc3107860042 *./tests/data/yuv4.vsynth1.out.yuv
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/zlib b/tests/ref/vsynth1/zlib
new file mode 100644
index 0000000000..d4cc004f75
--- /dev/null
+++ b/tests/ref/vsynth1/zlib
@@ -0,0 +1,4 @@
+fe4983e551b48dc555e1aeaf628f649f *./tests/data/vsynth1/zlib.avi
+12108644 ./tests/data/vsynth1/zlib.avi
+93695a27c24a61105076ca7b1f010bbd *./tests/data/zlib.vsynth1.out.yuv
+stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth1/zmbv b/tests/ref/vsynth1/zmbv
new file mode 100644
index 0000000000..8e01707349
--- /dev/null
+++ b/tests/ref/vsynth1/zmbv
@@ -0,0 +1,3 @@
+5112508 ./tests/data/vsynth1/zmbv.avi
+cfbec364e41d70c9b177435b5655d8af *./tests/data/zmbv.vsynth1.out.yuv
+stddev: 46.47 PSNR: 14.79 MAXDIFF: 129 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/amv/vsynth2-amv b/tests/ref/vsynth2/amv/vsynth2-amv
new file mode 100644
index 0000000000..94010a2f8b
--- /dev/null
+++ b/tests/ref/vsynth2/amv/vsynth2-amv
@@ -0,0 +1,4 @@
+816a4226fe7640a835139f8a44286a12 *./tests/data/vsynth2/amv.avi
+761976 ./tests/data/vsynth2/amv.avi
+f1a9e46e77934d4cc5ca9f927662c4be *./tests/data/amv.vsynth2.out.yuv
+stddev: 8.14 PSNR: 29.91 MAXDIFF: 66 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/cljr b/tests/ref/vsynth2/cljr
index 562f35fa22..75466437ff 100644
--- a/tests/ref/vsynth2/cljr
+++ b/tests/ref/vsynth2/cljr
@@ -1,4 +1,4 @@
-416ddcf73d2d993456f3c49f3eed4f1a *./tests/data/vsynth2/cljr.avi
+fdc1926e0a599de94513f0a3472b598f *./tests/data/vsynth2/cljr.avi
5075660 ./tests/data/vsynth2/cljr.avi
-3a70ba2a535ef9c7fc6478b27a2cb58a *./tests/data/cljr.vsynth2.out.yuv
-stddev: 10.48 PSNR: 27.72 MAXDIFF: 64 bytes: 7603200/ 7603200
+7df03229ee6361ea11a0d83d4926cb10 *./tests/data/cljr.vsynth2.out.yuv
+stddev: 10.30 PSNR: 27.87 MAXDIFF: 65 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/dnxhd_1080i b/tests/ref/vsynth2/dnxhd_1080i
index b9a6faca1b..81ecc5eb44 100644
--- a/tests/ref/vsynth2/dnxhd_1080i
+++ b/tests/ref/vsynth2/dnxhd_1080i
@@ -1,4 +1,4 @@
-19a91b7da35cecf41e5e3cb322485627 *./tests/data/vsynth2/dnxhd-1080i.mov
-3031875 ./tests/data/vsynth2/dnxhd-1080i.mov
+204e80f2e406ada90fca596ab2810b3e *./tests/data/vsynth2/dnxhd-1080i.mov
+3031911 ./tests/data/vsynth2/dnxhd-1080i.mov
3c559af629ae0a8fb1a9a0e4b4da7733 *./tests/data/dnxhd_1080i.vsynth2.out.yuv
stddev: 1.31 PSNR: 45.77 MAXDIFF: 23 bytes: 760320/ 7603200
diff --git a/tests/ref/vsynth2/dv b/tests/ref/vsynth2/dv
index 6c010b9301..613312d837 100644
--- a/tests/ref/vsynth2/dv
+++ b/tests/ref/vsynth2/dv
@@ -1,4 +1,4 @@
-bfa766f89bfeabc0ae1044f3954bed52 *./tests/data/vsynth2/dv.dv
+85b8d55b0b68bb3fc2e90babb580f9b7 *./tests/data/vsynth2/dv.dv
7200000 ./tests/data/vsynth2/dv.dv
7ec62bd3350a6848364669e6e1e4b9cc *./tests/data/dv.vsynth2.out.yuv
-stddev: 1.71 PSNR: 43.47 MAXDIFF: 33 bytes: 7603200/ 7603200
+stddev: 1.71 PSNR: 43.47 MAXDIFF: 33 bytes: 7603200/ 7603200 \ No newline at end of file
diff --git a/tests/ref/vsynth2/dv50 b/tests/ref/vsynth2/dv50
index 7e0083bfc1..cc468b8cd4 100644
--- a/tests/ref/vsynth2/dv50
+++ b/tests/ref/vsynth2/dv50
@@ -1,4 +1,4 @@
-61e31c79e8949b25c849753a0785b0d7 *./tests/data/vsynth2/dv50.dv
+0032a07167199e6f49e07fa7ed4d5f62 *./tests/data/vsynth2/dv50.dv
14400000 ./tests/data/vsynth2/dv50.dv
af3f2dd5ab62c1a1d98b07d4aeb6852f *./tests/data/dv50.vsynth2.out.yuv
stddev: 0.82 PSNR: 49.82 MAXDIFF: 12 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/dv_411 b/tests/ref/vsynth2/dv_411
index 2340ef0e7e..708ac889f6 100644
--- a/tests/ref/vsynth2/dv_411
+++ b/tests/ref/vsynth2/dv_411
@@ -1,4 +1,4 @@
-00a9d8683ac6826af41bcf7223fb0389 *./tests/data/vsynth2/dv411.dv
+e428508f400327aeb96969c08fb9e1b5 *./tests/data/vsynth2/dv411.dv
7200000 ./tests/data/vsynth2/dv411.dv
7f9fa421028aabb11eaf4c6513a5a843 *./tests/data/dv_411.vsynth2.out.yuv
stddev: 10.09 PSNR: 28.05 MAXDIFF: 60 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/error b/tests/ref/vsynth2/error
index 424c54962b..a6bfcd4fe2 100644
--- a/tests/ref/vsynth2/error
+++ b/tests/ref/vsynth2/error
@@ -1,4 +1,4 @@
90e65096aa9ebafa3fe3f44a5a47cdc4 *./tests/data/vsynth2/error-mpeg4-adv.avi
- 176588 ./tests/data/vsynth2/error-mpeg4-adv.avi
+176588 ./tests/data/vsynth2/error-mpeg4-adv.avi
96baa9e4c24c837a3ba5abd8dd2cdd30 *./tests/data/error.vsynth2.out.yuv
stddev: 8.98 PSNR: 29.06 MAXDIFF: 184 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/ffvhuff b/tests/ref/vsynth2/ffvhuff
index 47fc6597d7..6d77e2a027 100644
--- a/tests/ref/vsynth2/ffvhuff
+++ b/tests/ref/vsynth2/ffvhuff
@@ -1,4 +1,4 @@
-d31aab445b24f738df45fdd7479d6dd7 *./tests/data/vsynth2/ffvhuff.avi
+63926d8835dd5779dca0a4bc081ca8ae *./tests/data/vsynth2/ffvhuff.avi
4988056 ./tests/data/vsynth2/ffvhuff.avi
dde5895817ad9d219f79a52d0bdfb001 *./tests/data/ffvhuff.vsynth2.out.yuv
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/flashsv b/tests/ref/vsynth2/flashsv
index bfbb9e1c08..0b7b7d925e 100644
--- a/tests/ref/vsynth2/flashsv
+++ b/tests/ref/vsynth2/flashsv
@@ -1,4 +1,4 @@
0667077971e0cb63b5f49c580006e90e *./tests/data/vsynth2/flashsv.flv
12368953 ./tests/data/vsynth2/flashsv.flv
-592b3321994e26a990deb3a0a1415de9 *./tests/data/flashsv.vsynth2.out.yuv
-stddev: 0.65 PSNR: 51.84 MAXDIFF: 14 bytes: 7603200/ 7603200
+3a984506f1ebfc9fb73b6814cab201cc *./tests/data/flashsv.vsynth2.out.yuv
+stddev: 0.66 PSNR: 51.73 MAXDIFF: 14 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/flashsv2 b/tests/ref/vsynth2/flashsv2
new file mode 100644
index 0000000000..71023083e8
--- /dev/null
+++ b/tests/ref/vsynth2/flashsv2
@@ -0,0 +1,6 @@
+3f4a7454fa664896ac7532e3551c4071 *./tests/data/vsynth2/flashsv2.flv
+9293862 ./tests/data/vsynth2/flashsv2.flv
+d5a22183d9fe670174340a8a1847e52a *./tests/data/vsynth2/flashsv2I.flv
+5037122 ./tests/data/vsynth2/flashsv2I.flv
+8f63e24049ba1789a7f8353c695a3d99 *./tests/data/flashsv2.vsynth2.out.yuv
+stddev: 2.39 PSNR: 40.55 MAXDIFF: 21 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/huffyuv b/tests/ref/vsynth2/huffyuv
index 740862aba4..e59b53ca3e 100644
--- a/tests/ref/vsynth2/huffyuv
+++ b/tests/ref/vsynth2/huffyuv
@@ -1,4 +1,4 @@
-56cd44907a48990e06bd065e189ff461 *./tests/data/vsynth2/huffyuv.avi
+ed66182be0d515e8b6cb970ad63162da *./tests/data/vsynth2/huffyuv.avi
6455232 ./tests/data/vsynth2/huffyuv.avi
dde5895817ad9d219f79a52d0bdfb001 *./tests/data/huffyuv.vsynth2.out.yuv
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/jpeg2000 b/tests/ref/vsynth2/jpeg2000
new file mode 100644
index 0000000000..4fc70ede5b
--- /dev/null
+++ b/tests/ref/vsynth2/jpeg2000
@@ -0,0 +1,4 @@
+b30dc1851c0fb37726d977ec1d5ad527 *./tests/data/vsynth2/jpeg2000.avi
+1151156 ./tests/data/vsynth2/jpeg2000.avi
+ec5218eec33a021945c28c72093382a5 *./tests/data/jpeg2000.vsynth2.out.yuv
+stddev: 4.54 PSNR: 34.99 MAXDIFF: 61 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/jpegls b/tests/ref/vsynth2/jpegls
index e7fa2df46c..229937ec80 100644
--- a/tests/ref/vsynth2/jpegls
+++ b/tests/ref/vsynth2/jpegls
@@ -1,4 +1,4 @@
4fc53937f048c900ae6d50fda9dba206 *./tests/data/vsynth2/jpegls.avi
8334630 ./tests/data/vsynth2/jpegls.avi
-592b3321994e26a990deb3a0a1415de9 *./tests/data/jpegls.vsynth2.out.yuv
-stddev: 0.65 PSNR: 51.84 MAXDIFF: 14 bytes: 7603200/ 7603200
+3a984506f1ebfc9fb73b6814cab201cc *./tests/data/jpegls.vsynth2.out.yuv
+stddev: 0.66 PSNR: 51.73 MAXDIFF: 14 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/mpeg2thread b/tests/ref/vsynth2/mpeg2thread
index 7d7ed218c6..75cfc7522f 100644
--- a/tests/ref/vsynth2/mpeg2thread
+++ b/tests/ref/vsynth2/mpeg2thread
@@ -1,4 +1,4 @@
889c754a42d7689b228853e1ece6d345 *./tests/data/vsynth2/mpeg2thread.mpg
179650 ./tests/data/vsynth2/mpeg2thread.mpg
8c6a7ed2eb73bd18fd2bb9829464100d *./tests/data/mpeg2thread.vsynth2.out.yuv
-stddev: 4.72 PSNR: 34.65 MAXDIFF: 72 bytes: 7603200/ 7603200
+stddev: 4.72 PSNR: 34.65 MAXDIFF: 72 bytes: 7603200/ 7603200 \ No newline at end of file
diff --git a/tests/ref/vsynth2/mpeg2thread_ilace b/tests/ref/vsynth2/mpeg2thread_ilace
index 1320db98ad..f074d44cc3 100644
--- a/tests/ref/vsynth2/mpeg2thread_ilace
+++ b/tests/ref/vsynth2/mpeg2thread_ilace
@@ -2,3 +2,7 @@
178801 ./tests/data/vsynth2/mpeg2threadivlc.mpg
8c6a7ed2eb73bd18fd2bb9829464100d *./tests/data/mpeg2thread_ilace.vsynth2.out.yuv
stddev: 4.72 PSNR: 34.65 MAXDIFF: 72 bytes: 7603200/ 7603200
+864d6bf2982a61e510003a518be65a2d *./tests/data/vsynth2/mpeg2reuse.mpg
+383419 ./tests/data/vsynth2/mpeg2reuse.mpg
+bb20fa080cfd2b0a687ea7376ff4f902 *./tests/data/mpeg2thread_ilace.vsynth2.out.yuv
+stddev: 4.73 PSNR: 34.63 MAXDIFF: 72 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/mpeg4 b/tests/ref/vsynth2/mpeg4
index 8ccab866d5..e201df8501 100644
--- a/tests/ref/vsynth2/mpeg4
+++ b/tests/ref/vsynth2/mpeg4
@@ -1,4 +1,4 @@
-8c9afbf564008a8ce6719cc3546deae1 *./tests/data/vsynth2/odivx.mp4
-119833 ./tests/data/vsynth2/odivx.mp4
+051ff85797971b9047723044eaec07be *./tests/data/vsynth2/odivx.mp4
+119649 ./tests/data/vsynth2/odivx.mp4
90a3577850239083a9042bef33c50e85 *./tests/data/mpeg4.vsynth2.out.yuv
stddev: 5.34 PSNR: 33.57 MAXDIFF: 83 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/mpng b/tests/ref/vsynth2/mpng
new file mode 100644
index 0000000000..99b91fe9e0
--- /dev/null
+++ b/tests/ref/vsynth2/mpng
@@ -0,0 +1,4 @@
+198a3d67c56e1b5b12bdd3ffa67d8128 *./tests/data/vsynth2/mpng.avi
+12557288 ./tests/data/vsynth2/mpng.avi
+98d0e2854731472c5bf13d8638502d0a *./tests/data/mpng.vsynth2.out.yuv
+stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/msvideo1 b/tests/ref/vsynth2/msvideo1
new file mode 100644
index 0000000000..f71be35278
--- /dev/null
+++ b/tests/ref/vsynth2/msvideo1
@@ -0,0 +1,4 @@
+5dddbbd6616d9be4bc0fd0c9650bd9e3 *./tests/data/vsynth2/msvideo1.avi
+1259308 ./tests/data/vsynth2/msvideo1.avi
+cd83ffcbc73573044e3aead3094229e5 *./tests/data/msvideo1.vsynth2.out.yuv
+stddev: 7.42 PSNR: 30.72 MAXDIFF: 123 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/prores b/tests/ref/vsynth2/prores
index 44bd405d6f..e686e2163c 100644
--- a/tests/ref/vsynth2/prores
+++ b/tests/ref/vsynth2/prores
@@ -1,4 +1,4 @@
-28755ce05e812adbb8b7c180318ffba8 *./tests/data/vsynth2/prores.mov
-3884722 ./tests/data/vsynth2/prores.mov
-ca2f6c1162635dedfa468c90f1fdc0ef *./tests/data/prores.vsynth2.out.yuv
-stddev: 0.92 PSNR: 48.77 MAXDIFF: 10 bytes: 7603200/ 7603200
+0faf42c187120c61d64a5e0cea4fc92a *./tests/data/vsynth2/prores.mov
+2844066 ./tests/data/vsynth2/prores.mov
+b5844025c0f4c7c37db702c3213db232 *./tests/data/prores.vsynth2.out.yuv
+stddev: 1.31 PSNR: 45.77 MAXDIFF: 11 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/prores_kostya b/tests/ref/vsynth2/prores_kostya
new file mode 100644
index 0000000000..efdcd8fabd
--- /dev/null
+++ b/tests/ref/vsynth2/prores_kostya
@@ -0,0 +1,4 @@
+26adb18726c08dde23bc4bee2eb591e2 *./tests/data/vsynth2/prores_kostya.mov
+3884586 ./tests/data/vsynth2/prores_kostya.mov
+ca2f6c1162635dedfa468c90f1fdc0ef *./tests/data/prores_kostya.vsynth2.out.yuv
+stddev: 0.92 PSNR: 48.77 MAXDIFF: 10 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/qtrle b/tests/ref/vsynth2/qtrle
index 5dd0425a6f..70a15a8ddd 100644
--- a/tests/ref/vsynth2/qtrle
+++ b/tests/ref/vsynth2/qtrle
@@ -1,4 +1,4 @@
-4805f35ca6e03b9279cc18f3f7356366 *./tests/data/vsynth2/qtrle.mov
-14798419 ./tests/data/vsynth2/qtrle.mov
-b2418e0e3a9a8619b31219cbcf24dc82 *./tests/data/qtrle.vsynth2.out.yuv
-stddev: 1.26 PSNR: 46.06 MAXDIFF: 13 bytes: 7603200/ 7603200
+6ac61c011e1811ebd045535b141351de *./tests/data/vsynth2/qtrle.mov
+14798335 ./tests/data/vsynth2/qtrle.mov
+98d0e2854731472c5bf13d8638502d0a *./tests/data/qtrle.vsynth2.out.yuv
+stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/qtrlegray b/tests/ref/vsynth2/qtrlegray
new file mode 100644
index 0000000000..967aec1381
--- /dev/null
+++ b/tests/ref/vsynth2/qtrlegray
@@ -0,0 +1,4 @@
+5a66c6d2b2db71eddbc50819483aa647 *./tests/data/vsynth2/qtrlegray.mov
+5111273 ./tests/data/vsynth2/qtrlegray.mov
+f63b5ebdfdba750e547c25131b0a3fd1 *./tests/data/qtrlegray.vsynth2.out.yuv
+stddev: 19.42 PSNR: 22.36 MAXDIFF: 72 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/r210 b/tests/ref/vsynth2/r210
new file mode 100644
index 0000000000..c7e1373e8b
--- /dev/null
+++ b/tests/ref/vsynth2/r210
@@ -0,0 +1,4 @@
+d7a6f298e6869a74c0988fc3b30d0351 *./tests/data/vsynth2/r210.avi
+ 22125260 ./tests/data/vsynth2/r210.avi
+6ea4fcd93fc83defc8770e85b64b60bb *./tests/data/r210.vsynth2.out.yuv
+stddev: 0.70 PSNR: 51.12 MAXDIFF: 12 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/rgb b/tests/ref/vsynth2/rgb
index ea83470814..bcdef36b72 100644
--- a/tests/ref/vsynth2/rgb
+++ b/tests/ref/vsynth2/rgb
@@ -1,4 +1,4 @@
f2e9c419023c743bf99aa5b2e55ad233 *./tests/data/vsynth2/rgb.avi
15213260 ./tests/data/vsynth2/rgb.avi
-b2418e0e3a9a8619b31219cbcf24dc82 *./tests/data/rgb.vsynth2.out.yuv
-stddev: 1.26 PSNR: 46.06 MAXDIFF: 13 bytes: 7603200/ 7603200
+98d0e2854731472c5bf13d8638502d0a *./tests/data/rgb.vsynth2.out.yuv
+stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/svq1 b/tests/ref/vsynth2/svq1
index 8adca6456d..77c55c10ee 100644
--- a/tests/ref/vsynth2/svq1
+++ b/tests/ref/vsynth2/svq1
@@ -1,4 +1,4 @@
-138ad38281570f1a3b68d63ed896435d *./tests/data/vsynth2/svq1.mov
-766851 ./tests/data/vsynth2/svq1.mov
+320a7fbbaecc0989df054bf9678bfdf6 *./tests/data/vsynth2/svq1.mov
+766691 ./tests/data/vsynth2/svq1.mov
aa03471dac3f49455a33a2b19fda1098 *./tests/data/svq1.vsynth2.out.yuv
stddev: 3.23 PSNR: 37.93 MAXDIFF: 61 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/v308 b/tests/ref/vsynth2/v308
new file mode 100644
index 0000000000..2c4f7e1ef0
--- /dev/null
+++ b/tests/ref/vsynth2/v308
@@ -0,0 +1,4 @@
+214671673e6c82bad8190d0329f01fdc *./tests/data/vsynth2/v308.avi
+ 15213260 ./tests/data/vsynth2/v308.avi
+d43cb310c130c69214332d74f6ee5f9a *./tests/data/v308.vsynth2.out.yuv
+stddev: 0.41 PSNR: 55.80 MAXDIFF: 7 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/y41p b/tests/ref/vsynth2/y41p
new file mode 100644
index 0000000000..e603c6b189
--- /dev/null
+++ b/tests/ref/vsynth2/y41p
@@ -0,0 +1,4 @@
+8e0139963e79180a0fc1c154e36cebe5 *./tests/data/vsynth2/y41p.avi
+ 7610060 ./tests/data/vsynth2/y41p.avi
+0e0996e1d8b62f02af91fabb3c0a6f76 *./tests/data/y41p.vsynth2.out.yuv
+stddev: 9.87 PSNR: 28.24 MAXDIFF: 61 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/yuv b/tests/ref/vsynth2/yuv
index 6593ce9b3d..699ebc9b9f 100644
--- a/tests/ref/vsynth2/yuv
+++ b/tests/ref/vsynth2/yuv
@@ -1,4 +1,4 @@
-30a400773ab26f2c83e469198b156f1d *./tests/data/vsynth2/yuv.avi
+3d5ee6d2023bc15bba898819e4977e46 *./tests/data/vsynth2/yuv.avi
7610060 ./tests/data/vsynth2/yuv.avi
dde5895817ad9d219f79a52d0bdfb001 *./tests/data/yuv.vsynth2.out.yuv
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/yuv4 b/tests/ref/vsynth2/yuv4
new file mode 100644
index 0000000000..99d7e820cd
--- /dev/null
+++ b/tests/ref/vsynth2/yuv4
@@ -0,0 +1,4 @@
+3d24f1d320c4ead1efbf3c952a902379 *./tests/data/vsynth2/yuv4.avi
+ 7610060 ./tests/data/vsynth2/yuv4.avi
+dde5895817ad9d219f79a52d0bdfb001 *./tests/data/yuv4.vsynth2.out.yuv
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/zlib b/tests/ref/vsynth2/zlib
new file mode 100644
index 0000000000..49cb42efb1
--- /dev/null
+++ b/tests/ref/vsynth2/zlib
@@ -0,0 +1,4 @@
+f4bfa774c853abe8f06a29596c1f16cb *./tests/data/vsynth2/zlib.avi
+12517188 ./tests/data/vsynth2/zlib.avi
+98d0e2854731472c5bf13d8638502d0a *./tests/data/zlib.vsynth2.out.yuv
+stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/zmbv b/tests/ref/vsynth2/zmbv
new file mode 100644
index 0000000000..4562b5aa57
--- /dev/null
+++ b/tests/ref/vsynth2/zmbv
@@ -0,0 +1,3 @@
+5116352 ./tests/data/vsynth2/zmbv.avi
+cfbec364e41d70c9b177435b5655d8af *./tests/data/zmbv.vsynth2.out.yuv
+stddev: 42.07 PSNR: 15.65 MAXDIFF: 112 bytes: 7603200/ 7603200
diff --git a/tests/regression-funcs.sh b/tests/regression-funcs.sh
index 3889129009..7244b6614e 100755
--- a/tests/regression-funcs.sh
+++ b/tests/regression-funcs.sh
@@ -11,6 +11,7 @@ target_exec=$4
target_path=$5
threads=${6:-1}
cpuflags=${8:-all}
+samples=$9
datadir="./tests/data"
target_datadir="${target_path}/${datadir}"
@@ -19,7 +20,7 @@ this="$test.$test_ref"
outfile="$datadir/$test_ref/"
# various files
-avconv="$target_exec ${target_path}/avconv"
+avconv="$target_exec ${target_path}/ffmpeg"
tiny_psnr="tests/tiny_psnr"
raw_src="${target_path}/$raw_src_dir/%02d.pgm"
raw_dst="$datadir/$this.out.yuv"
@@ -96,7 +97,7 @@ do_avconv_crc()
do_video_decoding()
{
- do_avconv $raw_dst $DEC_OPTS $1 -i $target_path/$file -f rawvideo $ENC_OPTS $2
+ do_avconv $raw_dst $DEC_OPTS $1 -i $target_path/$file -f rawvideo $ENC_OPTS -vsync 0 $2
}
do_video_encoding()
@@ -105,6 +106,12 @@ do_video_encoding()
do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $ENC_OPTS $2
}
+do_video_encoding_nomd5()
+{
+ file=${outfile}$1
+ do_avconv_nomd5 $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $ENC_OPTS $2
+}
+
do_audio_encoding()
{
file=${outfile}$1
diff --git a/tests/rotozoom.c b/tests/rotozoom.c
index 9ce45cd9f4..a18667aa10 100644
--- a/tests/rotozoom.c
+++ b/tests/rotozoom.c
@@ -3,20 +3,20 @@
*
* copyright (c) Sebastien Bechet <s.bechet@av7.net>
*
- * This file is part of Libav.
+ * This file is part of FFmpeg.
*
- * Libav is free software; you can redistribute it and/or
+ * FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * Libav is distributed in the hope that it will be useful,
+ * FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with Libav; if not, write to the Free Software
+ * License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -58,12 +58,12 @@ static int64_t int_sin(int64_t a)
#define FIX(x) ((int) ((x) * (1L << SCALEBITS) + 0.5))
static void rgb24_to_yuv420p(unsigned char *lum, unsigned char *cb,
- unsigned char *cr, unsigned char *src,
+ unsigned char *cr, const unsigned char *src,
int width, int height)
{
int wrap, wrap3, x, y;
int r, g, b, r1, g1, b1;
- unsigned char *p;
+ const unsigned char *p;
wrap = width;
wrap3 = width * 3;
diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c
index 1583f2cf7b..964b6ba75d 100644
--- a/tests/tiny_psnr.c
+++ b/tests/tiny_psnr.c
@@ -1,20 +1,20 @@
/*
* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>
*
- * This file is part of Libav.
+ * This file is part of FFmpeg.
*
- * Libav is free software; you can redistribute it and/or
+ * FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * Libav is distributed in the hope that it will be useful,
+ * FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with Libav; if not, write to the Free Software
+ * License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -52,6 +52,21 @@ uint64_t exp16_table[21] = {
582360139072LL,
};
+#if 0
+// 16.16 fixpoint exp()
+static unsigned int exp16(unsigned int a){
+ int i;
+ int out= 1<<16;
+
+ for(i=19;i>=0;i--){
+ if(a&(1<<i))
+ out= (out*exp16_table[i] + (1<<15))>>16;
+ }
+
+ return out;
+}
+#endif
+
// 16.16 fixpoint log()
static int64_t log16(uint64_t a)
{
diff --git a/tests/videogen.c b/tests/videogen.c
index 1aad70031e..bdd8c8e204 100644
--- a/tests/videogen.c
+++ b/tests/videogen.c
@@ -4,20 +4,20 @@
*
* Copyright (c) 2002 Fabrice Bellard
*
- * This file is part of Libav.
+ * This file is part of FFmpeg.
*
- * Libav is free software; you can redistribute it and/or
+ * FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
- * Libav is distributed in the hope that it will be useful,
+ * FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with Libav; if not, write to the Free Software
+ * License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/