summaryrefslogtreecommitdiff
path: root/ffmpeg1/tests/ref
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg1/tests/ref')
-rw-r--r--ffmpeg1/tests/ref/acodec/adpcm-adx4
-rw-r--r--ffmpeg1/tests/ref/acodec/adpcm-ima_qt4
-rw-r--r--ffmpeg1/tests/ref/acodec/adpcm-ima_wav4
-rw-r--r--ffmpeg1/tests/ref/acodec/adpcm-ms4
-rw-r--r--ffmpeg1/tests/ref/acodec/adpcm-swf4
-rw-r--r--ffmpeg1/tests/ref/acodec/adpcm-yamaha4
-rw-r--r--ffmpeg1/tests/ref/acodec/adpcm_ima_qt4
-rw-r--r--ffmpeg1/tests/ref/acodec/alac4
-rw-r--r--ffmpeg1/tests/ref/acodec/flac4
-rw-r--r--ffmpeg1/tests/ref/acodec/g723_14
-rw-r--r--ffmpeg1/tests/ref/acodec/mp24
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-alaw4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-f32be4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-f32le4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-f64be4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-f64le4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-mulaw4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s16be4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s16be_planar4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s16le4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s16le_planar4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s24be4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s24le4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s24le_planar4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s32be4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s32le4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s32le_planar4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s84
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-s8_planar4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-u16be4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-u16le4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-u24be4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-u24le4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-u32be4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-u32le4
-rw-r--r--ffmpeg1/tests/ref/acodec/pcm-u84
-rw-r--r--ffmpeg1/tests/ref/acodec/roqaudio4
-rw-r--r--ffmpeg1/tests/ref/fate/4xm-116
-rw-r--r--ffmpeg1/tests/ref/fate/4xm-2175
-rw-r--r--ffmpeg1/tests/ref/fate/8bps37
-rw-r--r--ffmpeg1/tests/ref/fate/aasc25
-rw-r--r--ffmpeg1/tests/ref/fate/acodec-aref4
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-4xm27
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-afc13
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-creative1
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-creative-8-2.6bit1
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-creative-8-2bit1
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-creative-8-4bit1
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ea-126
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ea-2134
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ea-maxis-xa31
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ea-r196
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ea-r21
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ea-r31
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-amv161
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-apc1
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-dk31
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-dk41
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-ea-eacs48
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-ea-sead50
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-iss1
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-oki1
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-smjpeg351
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima-ws41
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ima_wav-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-ms-mono46
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-thp72
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm-xa38
-rw-r--r--ffmpeg1/tests/ref/fate/adpcm_ms-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/adts-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/aea-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/alg-mm32
-rw-r--r--ffmpeg1/tests/ref/fate/amv161
-rw-r--r--ffmpeg1/tests/ref/fate/ansi18
-rw-r--r--ffmpeg1/tests/ref/fate/ansi2569
-rw-r--r--ffmpeg1/tests/ref/fate/armovie-escape124106
-rw-r--r--ffmpeg1/tests/ref/fate/ast1
-rw-r--r--ffmpeg1/tests/ref/fate/auravision-v125
-rw-r--r--ffmpeg1/tests/ref/fate/auravision-v23
-rw-r--r--ffmpeg1/tests/ref/fate/avio-direct59
-rw-r--r--ffmpeg1/tests/ref/fate/avstring27
-rw-r--r--ffmpeg1/tests/ref/fate/base649
-rw-r--r--ffmpeg1/tests/ref/fate/bethsoft-vid143
-rw-r--r--ffmpeg1/tests/ref/fate/bfi116
-rw-r--r--ffmpeg1/tests/ref/fate/bink-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/bink-video-b31
-rw-r--r--ffmpeg1/tests/ref/fate/bink-video-f21
-rw-r--r--ffmpeg1/tests/ref/fate/bink-video-i32
-rw-r--r--ffmpeg1/tests/ref/fate/blowfish1
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-15bit2
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-15bit-mask2
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-16bit-mask2
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-1bit2
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-24bit2
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-32bit2
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-32bit-mask2
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-4bit2
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-4bit-os22
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-8bit2
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-8bit-os22
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-rle42
-rw-r--r--ffmpeg1/tests/ref/fate/bmp-rle82
-rw-r--r--ffmpeg1/tests/ref/fate/bmv-audio22
-rw-r--r--ffmpeg1/tests/ref/fate/bmv-video22
-rw-r--r--ffmpeg1/tests/ref/fate/bprint16
-rw-r--r--ffmpeg1/tests/ref/fate/brstm1
-rw-r--r--ffmpeg1/tests/ref/fate/caf1
-rw-r--r--ffmpeg1/tests/ref/fate/cavs172
-rw-r--r--ffmpeg1/tests/ref/fate/cdgraphics213
-rw-r--r--ffmpeg1/tests/ref/fate/cdxl-bitline-ham611
-rw-r--r--ffmpeg1/tests/ref/fate/cdxl-demux21
-rw-r--r--ffmpeg1/tests/ref/fate/cdxl-ham617
-rw-r--r--ffmpeg1/tests/ref/fate/cdxl-ham82
-rw-r--r--ffmpeg1/tests/ref/fate/cdxl-pal812
-rw-r--r--ffmpeg1/tests/ref/fate/cdxl-pal8-small47
-rw-r--r--ffmpeg1/tests/ref/fate/cljr37
-rw-r--r--ffmpeg1/tests/ref/fate/cllc-argb6
-rw-r--r--ffmpeg1/tests/ref/fate/cllc-rgb16
-rw-r--r--ffmpeg1/tests/ref/fate/corepng39
-rw-r--r--ffmpeg1/tests/ref/fate/crc4
-rw-r--r--ffmpeg1/tests/ref/fate/creatureshock-avs94
-rw-r--r--ffmpeg1/tests/ref/fate/cscd209
-rw-r--r--ffmpeg1/tests/ref/fate/cvid-grayscale153
-rw-r--r--ffmpeg1/tests/ref/fate/cvid-palette57
-rw-r--r--ffmpeg1/tests/ref/fate/cvid-partial80
-rw-r--r--ffmpeg1/tests/ref/fate/cyberia-c9344
-rw-r--r--ffmpeg1/tests/ref/fate/cyuv151
-rw-r--r--ffmpeg1/tests/ref/fate/d-cinema-demux5
-rw-r--r--ffmpeg1/tests/ref/fate/dcinema-encode1
-rw-r--r--ffmpeg1/tests/ref/fate/delphine-cin-audio92
-rw-r--r--ffmpeg1/tests/ref/fate/delphine-cin-video93
-rw-r--r--ffmpeg1/tests/ref/fate/deluxepaint-anm124
-rw-r--r--ffmpeg1/tests/ref/fate/dfa126
-rw-r--r--ffmpeg1/tests/ref/fate/dfa109
-rw-r--r--ffmpeg1/tests/ref/fate/dfa1110
-rw-r--r--ffmpeg1/tests/ref/fate/dfa218
-rw-r--r--ffmpeg1/tests/ref/fate/dfa311
-rw-r--r--ffmpeg1/tests/ref/fate/dfa415
-rw-r--r--ffmpeg1/tests/ref/fate/dfa516
-rw-r--r--ffmpeg1/tests/ref/fate/dfa613
-rw-r--r--ffmpeg1/tests/ref/fate/dfa713
-rw-r--r--ffmpeg1/tests/ref/fate/dfa837
-rw-r--r--ffmpeg1/tests/ref/fate/dfa97
-rw-r--r--ffmpeg1/tests/ref/fate/dirac3
-rw-r--r--ffmpeg1/tests/ref/fate/dpcm-idroq168
-rw-r--r--ffmpeg1/tests/ref/fate/dpcm-interplay125
-rw-r--r--ffmpeg1/tests/ref/fate/dpcm-sierra1
-rw-r--r--ffmpeg1/tests/ref/fate/dpcm-xan1
-rw-r--r--ffmpeg1/tests/ref/fate/dpx2
-rw-r--r--ffmpeg1/tests/ref/fate/dxa-feeble21
-rw-r--r--ffmpeg1/tests/ref/fate/dxa-scummvm13
-rw-r--r--ffmpeg1/tests/ref/fate/dxtory3
-rw-r--r--ffmpeg1/tests/ref/fate/ea-cdata1
-rw-r--r--ffmpeg1/tests/ref/fate/ea-cmv195
-rw-r--r--ffmpeg1/tests/ref/fate/ea-mad97
-rw-r--r--ffmpeg1/tests/ref/fate/ea-tgq279
-rw-r--r--ffmpeg1/tests/ref/fate/ea-tgv-148
-rw-r--r--ffmpeg1/tests/ref/fate/ea-tgv-239
-rw-r--r--ffmpeg1/tests/ref/fate/ea-tqi27
-rw-r--r--ffmpeg1/tests/ref/fate/eval263
-rw-r--r--ffmpeg1/tests/ref/fate/ffmpeg-filter_complex6
-rw-r--r--ffmpeg1/tests/ref/fate/ffmpeg-lavfi6
-rw-r--r--ffmpeg1/tests/ref/fate/ffprobe_compact32
-rw-r--r--ffmpeg1/tests/ref/fate/ffprobe_csv32
-rw-r--r--ffmpeg1/tests/ref/fate/ffprobe_default613
-rw-r--r--ffmpeg1/tests/ref/fate/ffprobe_flat549
-rw-r--r--ffmpeg1/tests/ref/fate/ffprobe_ini626
-rw-r--r--ffmpeg1/tests/ref/fate/ffprobe_json610
-rw-r--r--ffmpeg1/tests/ref/fate/ffprobe_xml54
-rw-r--r--ffmpeg1/tests/ref/fate/fifo27
-rw-r--r--ffmpeg1/tests/ref/fate/film-cvid111
-rw-r--r--ffmpeg1/tests/ref/fate/filter-curves6
-rw-r--r--ffmpeg1/tests/ref/fate/filter-delogo110
-rw-r--r--ffmpeg1/tests/ref/fate/filter-gradfun21
-rw-r--r--ffmpeg1/tests/ref/fate/filter-hqdn3d74
-rw-r--r--ffmpeg1/tests/ref/fate/filter-metadata-ebur128280
-rw-r--r--ffmpeg1/tests/ref/fate/filter-metadata-scenedetect10
-rw-r--r--ffmpeg1/tests/ref/fate/filter-metadata-silencedetect512
-rw-r--r--ffmpeg1/tests/ref/fate/filter-yadif-mode032
-rw-r--r--ffmpeg1/tests/ref/fate/filter-yadif-mode163
-rw-r--r--ffmpeg1/tests/ref/fate/flic-af11-palette-change117
-rw-r--r--ffmpeg1/tests/ref/fate/flic-af1228
-rw-r--r--ffmpeg1/tests/ref/fate/flic-magiccarpet43
-rw-r--r--ffmpeg1/tests/ref/fate/force_key_frames4
-rw-r--r--ffmpeg1/tests/ref/fate/fraps-v021
-rw-r--r--ffmpeg1/tests/ref/fate/fraps-v12
-rw-r--r--ffmpeg1/tests/ref/fate/fraps-v23
-rw-r--r--ffmpeg1/tests/ref/fate/fraps-v38
-rw-r--r--ffmpeg1/tests/ref/fate/fraps-v48
-rw-r--r--ffmpeg1/tests/ref/fate/fraps-v559
-rw-r--r--ffmpeg1/tests/ref/fate/frwu11
-rw-r--r--ffmpeg1/tests/ref/fate/g722-encode1
-rw-r--r--ffmpeg1/tests/ref/fate/g722dec-1168
-rw-r--r--ffmpeg1/tests/ref/fate/g723_1-dec-13
-rw-r--r--ffmpeg1/tests/ref/fate/g723_1-dec-227
-rw-r--r--ffmpeg1/tests/ref/fate/g723_1-dec-334
-rw-r--r--ffmpeg1/tests/ref/fate/g723_1-dec-45
-rw-r--r--ffmpeg1/tests/ref/fate/g723_1-dec-5101
-rw-r--r--ffmpeg1/tests/ref/fate/g723_1-dec-6101
-rw-r--r--ffmpeg1/tests/ref/fate/g723_1-dec-712
-rw-r--r--ffmpeg1/tests/ref/fate/g723_1-dec-8121
-rw-r--r--ffmpeg1/tests/ref/fate/g726-encode-2bit1
-rw-r--r--ffmpeg1/tests/ref/fate/g726-encode-3bit1
-rw-r--r--ffmpeg1/tests/ref/fate/g726-encode-4bit1
-rw-r--r--ffmpeg1/tests/ref/fate/g726-encode-5bit1
-rw-r--r--ffmpeg1/tests/ref/fate/g729-01000
-rw-r--r--ffmpeg1/tests/ref/fate/g729-11000
-rw-r--r--ffmpeg1/tests/ref/fate/gif-color174
-rw-r--r--ffmpeg1/tests/ref/fate/gif-demux37
-rw-r--r--ffmpeg1/tests/ref/fate/gif-disposal-restore4
-rw-r--r--ffmpeg1/tests/ref/fate/gif-gray37
-rw-r--r--ffmpeg1/tests/ref/fate/gsm-ms90
-rw-r--r--ffmpeg1/tests/ref/fate/gsm-toast501
-rw-r--r--ffmpeg1/tests/ref/fate/h264-bsf-mp4toannexb1
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-aud_mw_e101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-ba1_ft_c300
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-ba1_sony_d18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-ba2_sony_f301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-ba3_sva_c34
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-ba_mw_d101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-bamq1_jvc_c31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-bamq2_jvc_c31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-banm_mw_d101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-basqp1_sony_c5
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-caba1_sony_d51
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-caba1_sva_b18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-caba2_sony_e301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-caba2_sva_b18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-caba3_sony_c301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-caba3_sva_b34
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-caba3_toshiba_e301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_fld0_full31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_frm0_full31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cabaci3_sony_b301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cabast3_sony_e26
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cabastbr3_sony_b26
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cabref3_sand_d51
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cacqp3_sony_d51
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cafi1_sva_c34
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cama1_sony_c6
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cama1_toshiba_b91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cama1_vtc_c5
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cama2_vtc_b5
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cama3_sand_e51
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cama3_vtc_b5
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-camaci3_sony_c18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-camanl1_toshiba_b91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-camanl2_toshiba_b91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-camanl3_sand_e51
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-camasl3_sony_b18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-camp_mot_mbaff_l3031
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-camp_mot_mbaff_l3131
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canl1_sony_e51
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canl1_sva_b18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canl1_toshiba_g301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canl2_sony_e301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canl2_sva_b18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canl3_sony_c301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canl3_sva_b18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canl4_sva_b34
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canlma2_sony_c18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-canlma3_sony_c18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-capa1_toshiba_b91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-capama3_sand_f51
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-capcm1_sand_e31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-capcmnl1_sand_e31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-capm3_sony_d301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-caqp1_sony_b51
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cawp1_toshiba_e91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cawp5_toshiba_e91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-ci1_ft_b292
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-ci_mw_d101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvbs3_sony_c301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvcanlma2_sony_c18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvfi1_sony_d18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvfi1_sva_c8
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvfi2_sony_h18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvfi2_sva_c14
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvma1_sony_d6
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvma1_toshiba_b91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e9
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvmaqp2_sony_g18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvmaqp3_sony_d18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvnlfi1_sony_c18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvnlfi2_sony_h18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvpa1_toshiba_b91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c3
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvwp1_toshiba_e91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvwp2_toshiba_e91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvwp3_toshiba_e91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-cvwp5_toshiba_e91
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-fi1_sony_e18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-alphaconformanceg44
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-bcrm_freh10101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh11101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh3101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh4101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh5101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh8101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh9101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-freh12_b101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-freh1_b101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-freh2_b101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-freh6101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-freh7_b101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-frext01_jvc_d17
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-frext02_jvc_c17
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c9
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b16
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d12
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b61
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b6
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b6
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a6
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a6
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpca_brcm_c301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i1_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i2_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i3_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i4_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i5_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i6_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i7_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-hcbp2_hhi_a251
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-hcmp1_hhi_a251
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-ls_sva_d1701
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-midr_mw_d101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mps_mw_a151
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr1_bt_a63
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr1_mw_a151
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr2_mw_a301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr2_tandberg_e301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr3_tandberg_b301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr4_tandberg_c301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr5_tandberg_c301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr6_bt_b61
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr7_bt_b61
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr8_bt_b59
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mr9_bt_b59
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-mv1_brcm_d258
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-nl1_sony_d18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-nl2_sony_h301
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-nl3_sva_e34
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-nlmq1_jvc_c31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-nlmq2_jvc_c31
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-nrf_mw_e101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_1_b16
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_2_b16
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_3_b16
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_paff_1r216
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_paff_2r16
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sl1_sva_b34
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sva_ba1_b18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sva_ba2_d18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sva_base_b18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sva_cl1_e51
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sva_fm1_e18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sva_nl1_b18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-conformance-sva_nl2_e18
-rw-r--r--ffmpeg1/tests/ref/fate/h264-extreme-plane-pred101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-interlace-crop4
-rw-r--r--ffmpeg1/tests/ref/fate/h264-lossless11
-rw-r--r--ffmpeg1/tests/ref/fate/h264-reinit-large_420_8-to-small_420_8101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-reinit-small_420_8-to-large_444_10101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-reinit-small_420_9-to-small_420_8101
-rw-r--r--ffmpeg1/tests/ref/fate/h264-reinit-small_422_9-to-small_420_9101
-rw-r--r--ffmpeg1/tests/ref/fate/hmac6
-rw-r--r--ffmpeg1/tests/ref/fate/id-cin-video106
-rw-r--r--ffmpeg1/tests/ref/fate/idroq-video-encode1
-rw-r--r--ffmpeg1/tests/ref/fate/iff-byterun12
-rw-r--r--ffmpeg1/tests/ref/fate/iff-fibonacci1
-rw-r--r--ffmpeg1/tests/ref/fate/iff-ilbm2
-rw-r--r--ffmpeg1/tests/ref/fate/iff-pcm1
-rw-r--r--ffmpeg1/tests/ref/fate/iirfilter1024
-rw-r--r--ffmpeg1/tests/ref/fate/indeo2131
-rw-r--r--ffmpeg1/tests/ref/fate/indeo341
-rw-r--r--ffmpeg1/tests/ref/fate/indeo4101
-rw-r--r--ffmpeg1/tests/ref/fate/indeo5134
-rw-r--r--ffmpeg1/tests/ref/fate/interplay-mve-16bit51
-rw-r--r--ffmpeg1/tests/ref/fate/interplay-mve-8bit111
-rw-r--r--ffmpeg1/tests/ref/fate/iv8-demux26
-rw-r--r--ffmpeg1/tests/ref/fate/jv8
-rw-r--r--ffmpeg1/tests/ref/fate/jv-demux20
-rw-r--r--ffmpeg1/tests/ref/fate/kgv1314
-rw-r--r--ffmpeg1/tests/ref/fate/kmvc76
-rw-r--r--ffmpeg1/tests/ref/fate/lagarith-rgb245
-rw-r--r--ffmpeg1/tests/ref/fate/lagarith-rgb3226
-rw-r--r--ffmpeg1/tests/ref/fate/lagarith-yuy22
-rw-r--r--ffmpeg1/tests/ref/fate/lagarith-yv123
-rw-r--r--ffmpeg1/tests/ref/fate/lmlm4-demux217
-rw-r--r--ffmpeg1/tests/ref/fate/loco-rgb6
-rw-r--r--ffmpeg1/tests/ref/fate/loco-yuy24
-rw-r--r--ffmpeg1/tests/ref/fate/lossless-alac1
-rw-r--r--ffmpeg1/tests/ref/fate/lossless-meridianaudio1
-rw-r--r--ffmpeg1/tests/ref/fate/lossless-monkeysaudio1
-rw-r--r--ffmpeg1/tests/ref/fate/lossless-shorten1
-rw-r--r--ffmpeg1/tests/ref/fate/lossless-tak1
-rw-r--r--ffmpeg1/tests/ref/fate/lossless-tta1
-rw-r--r--ffmpeg1/tests/ref/fate/lossless-tta-encrypted1
-rw-r--r--ffmpeg1/tests/ref/fate/lossless-wma1
-rw-r--r--ffmpeg1/tests/ref/fate/mapchan-6ch-extract-22
-rw-r--r--ffmpeg1/tests/ref/fate/mapchan-6ch-extract-2-downmix-mono1
-rw-r--r--ffmpeg1/tests/ref/fate/mapchan-silent-mono1
-rw-r--r--ffmpeg1/tests/ref/fate/maxis-xa31
-rw-r--r--ffmpeg1/tests/ref/fate/md55
-rw-r--r--ffmpeg1/tests/ref/fate/mdec135
-rw-r--r--ffmpeg1/tests/ref/fate/mdec-v360
-rw-r--r--ffmpeg1/tests/ref/fate/mimic77
-rw-r--r--ffmpeg1/tests/ref/fate/mjpegb11
-rw-r--r--ffmpeg1/tests/ref/fate/motionpixels112
-rw-r--r--ffmpeg1/tests/ref/fate/mpc7-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/mpc8-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/mpeg2-field-enc31
-rw-r--r--ffmpeg1/tests/ref/fate/mpeg4-als-conformance-001
-rw-r--r--ffmpeg1/tests/ref/fate/mpeg4-als-conformance-011
-rw-r--r--ffmpeg1/tests/ref/fate/mpeg4-als-conformance-021
-rw-r--r--ffmpeg1/tests/ref/fate/mpeg4-als-conformance-031
-rw-r--r--ffmpeg1/tests/ref/fate/mpeg4-als-conformance-041
-rw-r--r--ffmpeg1/tests/ref/fate/mpeg4-als-conformance-051
-rw-r--r--ffmpeg1/tests/ref/fate/msmpeg4v151
-rw-r--r--ffmpeg1/tests/ref/fate/msrle-8bit30
-rw-r--r--ffmpeg1/tests/ref/fate/msvideo1-16bit31
-rw-r--r--ffmpeg1/tests/ref/fate/msvideo1-8bit32
-rw-r--r--ffmpeg1/tests/ref/fate/mszh2
-rw-r--r--ffmpeg1/tests/ref/fate/mtv138
-rw-r--r--ffmpeg1/tests/ref/fate/mxf-demux99
-rw-r--r--ffmpeg1/tests/ref/fate/mxpeg31
-rw-r--r--ffmpeg1/tests/ref/fate/nc-demux92
-rw-r--r--ffmpeg1/tests/ref/fate/nistsphere-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/noproxy9
-rw-r--r--ffmpeg1/tests/ref/fate/nsv-demux173
-rw-r--r--ffmpeg1/tests/ref/fate/nuv-rtjpeg10
-rw-r--r--ffmpeg1/tests/ref/fate/nuv-rtjpeg-fh51
-rw-r--r--ffmpeg1/tests/ref/fate/oma-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/paf-audio7
-rw-r--r--ffmpeg1/tests/ref/fate/paf-demux160
-rw-r--r--ffmpeg1/tests/ref/fate/paf-video153
-rw-r--r--ffmpeg1/tests/ref/fate/parseutils82
-rw-r--r--ffmpeg1/tests/ref/fate/pcm-planar143
-rw-r--r--ffmpeg1/tests/ref/fate/pcm_dvd124
-rw-r--r--ffmpeg1/tests/ref/fate/pcm_s16be-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/pcm_s16le-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/pcm_u8-mono1
-rw-r--r--ffmpeg1/tests/ref/fate/pcm_u8-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/pictor2
-rw-r--r--ffmpeg1/tests/ref/fate/pmp-demux106
-rw-r--r--ffmpeg1/tests/ref/fate/prores-4223
-rw-r--r--ffmpeg1/tests/ref/fate/prores-422_hq3
-rw-r--r--ffmpeg1/tests/ref/fate/prores-422_lt3
-rw-r--r--ffmpeg1/tests/ref/fate/prores-422_proxy3
-rw-r--r--ffmpeg1/tests/ref/fate/prores-alpha3
-rw-r--r--ffmpeg1/tests/ref/fate/psx-str-demux202
-rw-r--r--ffmpeg1/tests/ref/fate/ptx2
-rw-r--r--ffmpeg1/tests/ref/fate/pva-demux27
-rw-r--r--ffmpeg1/tests/ref/fate/qcp-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/qpeg101
-rw-r--r--ffmpeg1/tests/ref/fate/qt-alaw-mono1
-rw-r--r--ffmpeg1/tests/ref/fate/qt-alaw-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/qt-ima4-mono1
-rw-r--r--ffmpeg1/tests/ref/fate/qt-ima4-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/qt-mac3-mono1
-rw-r--r--ffmpeg1/tests/ref/fate/qt-mac3-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/qt-mac6-mono1
-rw-r--r--ffmpeg1/tests/ref/fate/qt-mac6-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/qt-ulaw-mono1
-rw-r--r--ffmpeg1/tests/ref/fate/qt-ulaw-stereo1
-rw-r--r--ffmpeg1/tests/ref/fate/qtrle-16bit84
-rw-r--r--ffmpeg1/tests/ref/fate/qtrle-1bit39
-rw-r--r--ffmpeg1/tests/ref/fate/qtrle-24bit35
-rw-r--r--ffmpeg1/tests/ref/fate/qtrle-2bit39
-rw-r--r--ffmpeg1/tests/ref/fate/qtrle-32bit27
-rw-r--r--ffmpeg1/tests/ref/fate/qtrle-4bit39
-rw-r--r--ffmpeg1/tests/ref/fate/qtrle-8bit168
-rw-r--r--ffmpeg1/tests/ref/fate/quickdraw3
-rw-r--r--ffmpeg1/tests/ref/fate/r2104
-rw-r--r--ffmpeg1/tests/ref/fate/ra-1441
-rw-r--r--ffmpeg1/tests/ref/fate/ralf1
-rw-r--r--ffmpeg1/tests/ref/fate/random_seed1
-rw-r--r--ffmpeg1/tests/ref/fate/redcode-demux7
-rw-r--r--ffmpeg1/tests/ref/fate/rl2109
-rw-r--r--ffmpeg1/tests/ref/fate/roqvideo211
-rw-r--r--ffmpeg1/tests/ref/fate/rpza31
-rw-r--r--ffmpeg1/tests/ref/fate/rv30110
-rw-r--r--ffmpeg1/tests/ref/fate/rv40241
-rw-r--r--ffmpeg1/tests/ref/fate/sanm16
-rw-r--r--ffmpeg1/tests/ref/fate/sha21
-rw-r--r--ffmpeg1/tests/ref/fate/sierra-vmd-audio216
-rw-r--r--ffmpeg1/tests/ref/fate/sierra-vmd-video118
-rw-r--r--ffmpeg1/tests/ref/fate/siff-demux112
-rw-r--r--ffmpeg1/tests/ref/fate/smacker-audio87
-rw-r--r--ffmpeg1/tests/ref/fate/smacker-video101
-rw-r--r--ffmpeg1/tests/ref/fate/smc121
-rw-r--r--ffmpeg1/tests/ref/fate/smjpeg425
-rw-r--r--ffmpeg1/tests/ref/fate/smjpeg-demux425
-rw-r--r--ffmpeg1/tests/ref/fate/sp5x21
-rw-r--r--ffmpeg1/tests/ref/fate/srtp12
-rw-r--r--ffmpeg1/tests/ref/fate/sub-aqtitle1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-charenc1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-jacosub1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-microdvd1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-microdvd-remux1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-movtext1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-movtextenc1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-mpl21
-rw-r--r--ffmpeg1/tests/ref/fate/sub-mpsub1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-mpsub-frames1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-pjs1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-realtext1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-sami1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-srt1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-subripenc1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-subviewer1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-subviewer11
-rw-r--r--ffmpeg1/tests/ref/fate/sub-vplayer1
-rw-r--r--ffmpeg1/tests/ref/fate/sub-webvtt1
-rw-r--r--ffmpeg1/tests/ref/fate/sub2video94
-rw-r--r--ffmpeg1/tests/ref/fate/sunraster-1bit-raw2
-rw-r--r--ffmpeg1/tests/ref/fate/sunraster-1bit-rle2
-rw-r--r--ffmpeg1/tests/ref/fate/sunraster-24bit-raw2
-rw-r--r--ffmpeg1/tests/ref/fate/sunraster-24bit-rle2
-rw-r--r--ffmpeg1/tests/ref/fate/sunraster-8bit-raw2
-rw-r--r--ffmpeg1/tests/ref/fate/sunraster-8bit-rle2
-rw-r--r--ffmpeg1/tests/ref/fate/sunraster-8bit_gray-raw2
-rw-r--r--ffmpeg1/tests/ref/fate/svq1151
-rw-r--r--ffmpeg1/tests/ref/fate/svq3181
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-CBW82
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-CCM82
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-CTC162
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-CTC242
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-CTC322
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-UBW82
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-UCM82
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-UTC162
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-UTC242
-rw-r--r--ffmpeg1/tests/ref/fate/targa-conformance-UTC322
-rw-r--r--ffmpeg1/tests/ref/fate/targa-top-to-bottom2
-rw-r--r--ffmpeg1/tests/ref/fate/theora-coeff-level649
-rw-r--r--ffmpeg1/tests/ref/fate/thp73
-rw-r--r--ffmpeg1/tests/ref/fate/tiertex-seq100
-rw-r--r--ffmpeg1/tests/ref/fate/tiff-fax-g32
-rw-r--r--ffmpeg1/tests/ref/fate/tiff-fax-g3s2
-rw-r--r--ffmpeg1/tests/ref/fate/tmv222
-rw-r--r--ffmpeg1/tests/ref/fate/truemotion1-15106
-rw-r--r--ffmpeg1/tests/ref/fate/truemotion1-2417
-rw-r--r--ffmpeg1/tests/ref/fate/truemotion231
-rw-r--r--ffmpeg1/tests/ref/fate/tscc-15bit242
-rw-r--r--ffmpeg1/tests/ref/fate/tscc-32bit157
-rw-r--r--ffmpeg1/tests/ref/fate/txd-16bpp12
-rw-r--r--ffmpeg1/tests/ref/fate/txd-pal82
-rw-r--r--ffmpeg1/tests/ref/fate/ulti63
-rw-r--r--ffmpeg1/tests/ref/fate/url13
-rw-r--r--ffmpeg1/tests/ref/fate/utvideo_rgb_left5
-rw-r--r--ffmpeg1/tests/ref/fate/utvideo_rgb_median6
-rw-r--r--ffmpeg1/tests/ref/fate/utvideo_rgba_left6
-rw-r--r--ffmpeg1/tests/ref/fate/utvideo_rgba_median6
-rw-r--r--ffmpeg1/tests/ref/fate/utvideo_rgba_single_symbol2
-rw-r--r--ffmpeg1/tests/ref/fate/utvideo_yuv420_left8
-rw-r--r--ffmpeg1/tests/ref/fate/utvideo_yuv420_median5
-rw-r--r--ffmpeg1/tests/ref/fate/utvideo_yuv422_left5
-rw-r--r--ffmpeg1/tests/ref/fate/utvideo_yuv422_median5
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_rgb_left51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_rgb_median51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_rgb_none51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_rgba_left51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_rgba_median51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_rgba_none51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_yuv420_left51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_yuv420_median51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_yuv420_none51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_yuv422_left51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_yuv422_median51
-rw-r--r--ffmpeg1/tests/ref/fate/utvideoenc_yuv422_none51
-rw-r--r--ffmpeg1/tests/ref/fate/v2102
-rw-r--r--ffmpeg1/tests/ref/fate/v410dec2
-rw-r--r--ffmpeg1/tests/ref/fate/v410enc1
-rw-r--r--ffmpeg1/tests/ref/fate/vb37
-rw-r--r--ffmpeg1/tests/ref/fate/vble5
-rw-r--r--ffmpeg1/tests/ref/fate/vc1-ism121
-rw-r--r--ffmpeg1/tests/ref/fate/vc1_sa0004016
-rw-r--r--ffmpeg1/tests/ref/fate/vc1_sa0005031
-rw-r--r--ffmpeg1/tests/ref/fate/vc1_sa1009131
-rw-r--r--ffmpeg1/tests/ref/fate/vc1_sa1014331
-rw-r--r--ffmpeg1/tests/ref/fate/vc1_sa2002161
-rw-r--r--ffmpeg1/tests/ref/fate/vcr1129
-rw-r--r--ffmpeg1/tests/ref/fate/videoxl41
-rw-r--r--ffmpeg1/tests/ref/fate/vima17
-rw-r--r--ffmpeg1/tests/ref/fate/vmnc-16bit193
-rw-r--r--ffmpeg1/tests/ref/fate/vmnc-32bit50
-rw-r--r--ffmpeg1/tests/ref/fate/vp31115
-rw-r--r--ffmpeg1/tests/ref/fate/vp5248
-rw-r--r--ffmpeg1/tests/ref/fate/vp60134
-rw-r--r--ffmpeg1/tests/ref/fate/vp61121
-rw-r--r--ffmpeg1/tests/ref/fate/vp6a94
-rw-r--r--ffmpeg1/tests/ref/fate/vp6f175
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-alpha121
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-sign-bias10
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-size-change31
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-00130
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-00250
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-00350
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-00430
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-00550
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-00649
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-00730
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-0083
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-00950
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-01058
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-01130
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-01230
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-01330
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-01450
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-015261
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-01630
-rw-r--r--ffmpeg1/tests/ref/fate/vp8-test-vector-01730
-rw-r--r--ffmpeg1/tests/ref/fate/vqa-cc39
-rw-r--r--ffmpeg1/tests/ref/fate/vqf-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/w641
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-channels-4.01
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-channels-5.11
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-channels-6.11
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-channels-7.11
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-channels-monofloat1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-channels-monoint1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-clipping1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-cuesheet1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-falsestereo1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossless-12bit1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossless-16bit1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossless-24bit1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossless-32bit1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossless-8bit1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossless-float1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossy-16bit1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossy-24bit1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossy-32bit1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossy-8bit1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-lossy-float1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-matroskamode1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-speed-default1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-speed-fast1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-speed-high1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-speed-vhigh1
-rw-r--r--ffmpeg1/tests/ref/fate/wavpack-zerolsbs1
-rw-r--r--ffmpeg1/tests/ref/fate/wc3movie-xan72
-rw-r--r--ffmpeg1/tests/ref/fate/westwood-aud12
-rw-r--r--ffmpeg1/tests/ref/fate/wmv8-drm131
-rw-r--r--ffmpeg1/tests/ref/fate/wmv8-drm-nodec152
-rw-r--r--ffmpeg1/tests/ref/fate/wmv8-x8intra474
-rw-r--r--ffmpeg1/tests/ref/fate/wnv187
-rw-r--r--ffmpeg1/tests/ref/fate/ws_snd1
-rw-r--r--ffmpeg1/tests/ref/fate/wtv-demux141
-rw-r--r--ffmpeg1/tests/ref/fate/xface2
-rw-r--r--ffmpeg1/tests/ref/fate/xmv-demux183
-rw-r--r--ffmpeg1/tests/ref/fate/xtea1
-rw-r--r--ffmpeg1/tests/ref/fate/xwma-demux1
-rw-r--r--ffmpeg1/tests/ref/fate/xxan-wc422
-rw-r--r--ffmpeg1/tests/ref/fate/yop7
-rw-r--r--ffmpeg1/tests/ref/fate/zerocodec39
-rw-r--r--ffmpeg1/tests/ref/fate/zlib2
-rw-r--r--ffmpeg1/tests/ref/fate/zmbv-15bit160
-rw-r--r--ffmpeg1/tests/ref/fate/zmbv-16bit160
-rw-r--r--ffmpeg1/tests/ref/fate/zmbv-32bit160
-rw-r--r--ffmpeg1/tests/ref/fate/zmbv-8bit277
-rw-r--r--ffmpeg1/tests/ref/lavf-fate/latm3
-rw-r--r--ffmpeg1/tests/ref/lavf-fate/mp33
-rw-r--r--ffmpeg1/tests/ref/lavf-fate/ogg_vp33
-rw-r--r--ffmpeg1/tests/ref/lavf/aiff3
-rw-r--r--ffmpeg1/tests/ref/lavf/alaw3
-rw-r--r--ffmpeg1/tests/ref/lavf/asf3
-rw-r--r--ffmpeg1/tests/ref/lavf/ast3
-rw-r--r--ffmpeg1/tests/ref/lavf/au3
-rw-r--r--ffmpeg1/tests/ref/lavf/avi3
-rw-r--r--ffmpeg1/tests/ref/lavf/bmp3
-rw-r--r--ffmpeg1/tests/ref/lavf/caf3
-rw-r--r--ffmpeg1/tests/ref/lavf/dpx9
-rw-r--r--ffmpeg1/tests/ref/lavf/dv_fmt9
-rw-r--r--ffmpeg1/tests/ref/lavf/ffm3
-rw-r--r--ffmpeg1/tests/ref/lavf/flm3
-rw-r--r--ffmpeg1/tests/ref/lavf/flv_fmt3
-rw-r--r--ffmpeg1/tests/ref/lavf/gif24
-rw-r--r--ffmpeg1/tests/ref/lavf/gxf9
-rw-r--r--ffmpeg1/tests/ref/lavf/ircam3
-rw-r--r--ffmpeg1/tests/ref/lavf/ismv9
-rw-r--r--ffmpeg1/tests/ref/lavf/jpg3
-rw-r--r--ffmpeg1/tests/ref/lavf/mkv6
-rw-r--r--ffmpeg1/tests/ref/lavf/mmf3
-rw-r--r--ffmpeg1/tests/ref/lavf/mov12
-rw-r--r--ffmpeg1/tests/ref/lavf/mpg9
-rw-r--r--ffmpeg1/tests/ref/lavf/mulaw3
-rw-r--r--ffmpeg1/tests/ref/lavf/mxf9
-rw-r--r--ffmpeg1/tests/ref/lavf/mxf_d103
-rw-r--r--ffmpeg1/tests/ref/lavf/nut3
-rw-r--r--ffmpeg1/tests/ref/lavf/ogg3
-rw-r--r--ffmpeg1/tests/ref/lavf/pam18
-rw-r--r--ffmpeg1/tests/ref/lavf/pbmpipe3
-rw-r--r--ffmpeg1/tests/ref/lavf/pcx3
-rw-r--r--ffmpeg1/tests/ref/lavf/pgm3
-rw-r--r--ffmpeg1/tests/ref/lavf/pgmpipe3
-rw-r--r--ffmpeg1/tests/ref/lavf/pixfmt38
-rw-r--r--ffmpeg1/tests/ref/lavf/png9
-rw-r--r--ffmpeg1/tests/ref/lavf/ppm3
-rw-r--r--ffmpeg1/tests/ref/lavf/ppmpipe3
-rw-r--r--ffmpeg1/tests/ref/lavf/rm2
-rw-r--r--ffmpeg1/tests/ref/lavf/rso3
-rw-r--r--ffmpeg1/tests/ref/lavf/sgi3
-rw-r--r--ffmpeg1/tests/ref/lavf/smjpeg3
-rw-r--r--ffmpeg1/tests/ref/lavf/sox3
-rw-r--r--ffmpeg1/tests/ref/lavf/sunrast3
-rw-r--r--ffmpeg1/tests/ref/lavf/swf3
-rw-r--r--ffmpeg1/tests/ref/lavf/tga3
-rw-r--r--ffmpeg1/tests/ref/lavf/tiff3
-rw-r--r--ffmpeg1/tests/ref/lavf/ts3
-rw-r--r--ffmpeg1/tests/ref/lavf/voc3
-rw-r--r--ffmpeg1/tests/ref/lavf/voc_s163
-rw-r--r--ffmpeg1/tests/ref/lavf/w643
-rw-r--r--ffmpeg1/tests/ref/lavf/wav3
-rw-r--r--ffmpeg1/tests/ref/lavf/wtv3
-rw-r--r--ffmpeg1/tests/ref/lavf/xbm3
-rw-r--r--ffmpeg1/tests/ref/lavf/xwd24
-rw-r--r--ffmpeg1/tests/ref/lavf/yuv4mpeg2
-rw-r--r--ffmpeg1/tests/ref/lavfi/alphaextract_rgb1
-rw-r--r--ffmpeg1/tests/ref/lavfi/alphaextract_yuv1
-rw-r--r--ffmpeg1/tests/ref/lavfi/alphamerge_rgb1
-rw-r--r--ffmpeg1/tests/ref/lavfi/alphamerge_yuv1
-rw-r--r--ffmpeg1/tests/ref/lavfi/colormatrix11
-rw-r--r--ffmpeg1/tests/ref/lavfi/colormatrix21
-rw-r--r--ffmpeg1/tests/ref/lavfi/crop1
-rw-r--r--ffmpeg1/tests/ref/lavfi/crop_scale1
-rw-r--r--ffmpeg1/tests/ref/lavfi/crop_scale_vflip1
-rw-r--r--ffmpeg1/tests/ref/lavfi/crop_vflip1
-rw-r--r--ffmpeg1/tests/ref/lavfi/drawbox1
-rw-r--r--ffmpeg1/tests/ref/lavfi/edgedetect1
-rw-r--r--ffmpeg1/tests/ref/lavfi/fade1
-rw-r--r--ffmpeg1/tests/ref/lavfi/field110
-rw-r--r--ffmpeg1/tests/ref/lavfi/histeq6
-rw-r--r--ffmpeg1/tests/ref/lavfi/hue1
-rw-r--r--ffmpeg1/tests/ref/lavfi/idet1
-rw-r--r--ffmpeg1/tests/ref/lavfi/il109
-rw-r--r--ffmpeg1/tests/ref/lavfi/kerndeint10
-rw-r--r--ffmpeg1/tests/ref/lavfi/life1
-rw-r--r--ffmpeg1/tests/ref/lavfi/null1
-rw-r--r--ffmpeg1/tests/ref/lavfi/overlay_rgb1
-rw-r--r--ffmpeg1/tests/ref/lavfi/overlay_yuv4201
-rw-r--r--ffmpeg1/tests/ref/lavfi/overlay_yuv4441
-rw-r--r--ffmpeg1/tests/ref/lavfi/pad1
-rw-r--r--ffmpeg1/tests/ref/lavfi/pixfmts_copy110
-rw-r--r--ffmpeg1/tests/ref/lavfi/pixfmts_crop43
-rw-r--r--ffmpeg1/tests/ref/lavfi/pixfmts_hflip106
-rw-r--r--ffmpeg1/tests/ref/lavfi/pixfmts_null110
-rw-r--r--ffmpeg1/tests/ref/lavfi/pixfmts_pad25
-rw-r--r--ffmpeg1/tests/ref/lavfi/pixfmts_pixdesctest110
-rw-r--r--ffmpeg1/tests/ref/lavfi/pixfmts_scale110
-rw-r--r--ffmpeg1/tests/ref/lavfi/pixfmts_super2xsai14
-rw-r--r--ffmpeg1/tests/ref/lavfi/pixfmts_vflip110
-rw-r--r--ffmpeg1/tests/ref/lavfi/pp1
-rw-r--r--ffmpeg1/tests/ref/lavfi/pp21
-rw-r--r--ffmpeg1/tests/ref/lavfi/pp31
-rw-r--r--ffmpeg1/tests/ref/lavfi/pp41
-rw-r--r--ffmpeg1/tests/ref/lavfi/pp51
-rw-r--r--ffmpeg1/tests/ref/lavfi/pp61
-rw-r--r--ffmpeg1/tests/ref/lavfi/scale2001
-rw-r--r--ffmpeg1/tests/ref/lavfi/scale5001
-rw-r--r--ffmpeg1/tests/ref/lavfi/scalenorm1
-rw-r--r--ffmpeg1/tests/ref/lavfi/select1
-rw-r--r--ffmpeg1/tests/ref/lavfi/setdar1
-rw-r--r--ffmpeg1/tests/ref/lavfi/setsar1
-rw-r--r--ffmpeg1/tests/ref/lavfi/testsrc1
-rw-r--r--ffmpeg1/tests/ref/lavfi/thumbnail1
-rw-r--r--ffmpeg1/tests/ref/lavfi/tile1
-rw-r--r--ffmpeg1/tests/ref/lavfi/tinterlace_merge10
-rw-r--r--ffmpeg1/tests/ref/lavfi/tinterlace_pad10
-rw-r--r--ffmpeg1/tests/ref/lavfi/transpose1
-rw-r--r--ffmpeg1/tests/ref/lavfi/unsharp1
-rw-r--r--ffmpeg1/tests/ref/lavfi/vflip1
-rw-r--r--ffmpeg1/tests/ref/lavfi/vflip_crop1
-rw-r--r--ffmpeg1/tests/ref/lavfi/vflip_vflip1
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-adpcm-ima_qt53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-adpcm-ima_wav53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-adpcm-ms53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-adpcm-swf49
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-adpcm-yamaha53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-alac53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-flac49
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-mp249
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-alaw53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-f32be53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-f32le53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-f64be53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-f64le53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-mulaw53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-s16be53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-s16le53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-s24be53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-s24le53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-s32be53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-s32le53
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-s853
-rw-r--r--ffmpeg1/tests/ref/seek/acodec-pcm-u853
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-aiff53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-alaw53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-asf53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-au53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-avi44
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-bmp30
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-dv_fmt53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-ffm53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-flv_fmt44
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-gif40
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-gxf53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-jpg30
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-mkv48
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-mmf44
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-mov48
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-mpg53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-mulaw53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-mxf48
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-mxf_d1053
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-nut53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-ogg53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-pbmpipe27
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-pcx30
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-pgm30
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-pgmpipe27
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-ppm30
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-ppmpipe27
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-rm53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-sgi30
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-swf27
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-tga30
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-tiff30
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-ts53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-voc27
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-wav53
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-wtv48
-rw-r--r--ffmpeg1/tests/ref/seek/lavf-yuv4mpeg27
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-asv146
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-asv246
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-dnxhd-1080i44
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-dnxhd-720p40
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-dnxhd-720p-rd40
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-dv53
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-dv-41153
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-dv-5053
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-ffv146
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-flashsv46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-flv46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-h26146
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-h26346
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-h263p46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-huffyuv46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-jpegls46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-ljpeg46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mjpeg46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg146
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg1b46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg2-42246
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg2-idct-int46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg2-ilace46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg2-ivlc-qprd46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg2-thread46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg2-thread-ivlc46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg450
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg4-adap46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg4-adv46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg4-error46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg4-nr46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg4-qpel46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg4-qprd46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg4-rc46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-mpeg4-thread46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-msmpeg446
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-msmpeg4v246
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-rgb46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-roqvideo27
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-rv1052
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-rv2053
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-snow46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-snow-ll46
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-svq150
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-wmv146
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-wmv246
-rw-r--r--ffmpeg1/tests/ref/seek/vsynth2-yuv46
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-amv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-asv14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-asv24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-avui4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-cljr4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-1080i4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p-10bit4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p-rd4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd_1080i4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-dv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-dv-4114
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-dv-504
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-dv_4114
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-ffv14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-ffvhuff4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-flashsv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-flashsv24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-flv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-h2614
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-h2634
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-h263-obmc4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-h263p4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-huffyuv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-j2k4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-jpegls4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-ljpeg4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg-4224
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg-4444
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg1b4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-4224
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-idct-int4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-ilace4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-thread4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg44
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-adap4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-adv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-error4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-nr4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-qpel4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-qprd4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-rc4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-thread4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-mpng4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-msmpeg44
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-msmpeg4v24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-msvideo14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-prores4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-prores_kostya4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-qtrle4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-qtrlegray4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-r2104
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-rgb4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-roqvideo4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-rv104
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-rv204
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-snow4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-snow-hpel4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-snow-ll4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-svq14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-v2104
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-v3084
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-v4084
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-wmv14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-wmv24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-y41p4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-yuv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-yuv44
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-zlib4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth1-zmbv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-amv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-asv14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-asv24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-avui4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-cljr4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-1080i4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p-10bit4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p-rd4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd_1080i4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-dv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-dv-4114
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-dv-504
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-dv_4114
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-ffv14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-ffvhuff4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-flashsv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-flashsv24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-flv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-h2614
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-h2634
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-h263-obmc4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-h263p4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-huffyuv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-j2k4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-jpegls4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-ljpeg4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg-4224
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg-4444
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg1b4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-4224
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-idct-int4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-ilace4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-thread4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg44
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-adap4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-adv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-error4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-nr4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-qpel4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-qprd4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-rc4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-thread4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-mpng4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-msmpeg44
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-msmpeg4v24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-msvideo14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-prores4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-prores_kostya4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-qtrle4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-qtrlegray4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-r2104
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-rgb4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-roqvideo4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-rv104
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-rv204
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-snow4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-snow-hpel4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-snow-ll4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-svq14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-v2104
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-v3084
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-v4084
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-wmv14
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-wmv24
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-y41p4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-yuv4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-yuv44
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-zlib4
-rw-r--r--ffmpeg1/tests/ref/vsynth/vsynth2-zmbv4
-rw-r--r--ffmpeg1/tests/ref/vsynth1/cljr4
-rw-r--r--ffmpeg1/tests/ref/vsynth1/yuv4
-rw-r--r--ffmpeg1/tests/ref/vsynth2/cljr4
-rw-r--r--ffmpeg1/tests/ref/vsynth2/huffyuv4
-rw-r--r--ffmpeg1/tests/ref/vsynth2/yuv4
1075 files changed, 52620 insertions, 0 deletions
diff --git a/ffmpeg1/tests/ref/acodec/adpcm-adx b/ffmpeg1/tests/ref/acodec/adpcm-adx
new file mode 100644
index 0000000..2bc49ab
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/adpcm-adx
@@ -0,0 +1,4 @@
+0a30509d9296b857e134b762b76dbc31 *tests/data/fate/acodec-adpcm-adx.adx
+297720 tests/data/fate/acodec-adpcm-adx.adx
+2dbc601ed5259f4d74dc48ccd8da7eaf *tests/data/fate/acodec-adpcm-adx.out.wav
+stddev: 6989.46 PSNR: 19.44 MAXDIFF:65398 bytes: 1058400/ 1058432
diff --git a/ffmpeg1/tests/ref/acodec/adpcm-ima_qt b/ffmpeg1/tests/ref/acodec/adpcm-ima_qt
new file mode 100644
index 0000000..ace5325
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/adpcm-ima_qt
@@ -0,0 +1,4 @@
+44691f14cf5bbef5005df27c692b93ab *tests/data/fate/acodec-adpcm-ima_qt.aiff
+281252 tests/data/fate/acodec-adpcm-ima_qt.aiff
+b0fafd002c38fb70acaddfda1a31ed61 *tests/data/fate/acodec-adpcm-ima_qt.out.wav
+stddev: 904.76 PSNR: 37.20 MAXDIFF:34029 bytes: 1058400/ 1058560
diff --git a/ffmpeg1/tests/ref/acodec/adpcm-ima_wav b/ffmpeg1/tests/ref/acodec/adpcm-ima_wav
new file mode 100644
index 0000000..6d83fd5
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/adpcm-ima_wav
@@ -0,0 +1,4 @@
+56b75c3a6dacedcf2ce7b0586aa33594 *tests/data/fate/acodec-adpcm-ima_wav.wav
+267324 tests/data/fate/acodec-adpcm-ima_wav.wav
+ddddfa47302da540abf19224202bef57 *tests/data/fate/acodec-adpcm-ima_wav.out.wav
+stddev: 903.51 PSNR: 37.21 MAXDIFF:34026 bytes: 1058400/ 1061748
diff --git a/ffmpeg1/tests/ref/acodec/adpcm-ms b/ffmpeg1/tests/ref/acodec/adpcm-ms
new file mode 100644
index 0000000..eb8515d
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/adpcm-ms
@@ -0,0 +1,4 @@
+a407b87daeef5b25dfb6c5b3f519e9c1 *tests/data/fate/acodec-adpcm-ms.wav
+268378 tests/data/fate/acodec-adpcm-ms.wav
+22863fb278c4e0ebe9c34cb15db5dd6b *tests/data/fate/acodec-adpcm-ms.out.wav
+stddev: 1050.01 PSNR: 35.91 MAXDIFF:29806 bytes: 1058400/ 1060576
diff --git a/ffmpeg1/tests/ref/acodec/adpcm-swf b/ffmpeg1/tests/ref/acodec/adpcm-swf
new file mode 100644
index 0000000..fddb771
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/adpcm-swf
@@ -0,0 +1,4 @@
+42d4639866ed4d692eaf126228a4fa2a *tests/data/fate/acodec-adpcm-swf.flv
+269166 tests/data/fate/acodec-adpcm-swf.flv
+f7df69d3fe708303820f2a9d00140a5b *tests/data/fate/acodec-adpcm-swf.out.wav
+stddev: 933.58 PSNR: 36.93 MAXDIFF:51119 bytes: 1058400/ 1064960
diff --git a/ffmpeg1/tests/ref/acodec/adpcm-yamaha b/ffmpeg1/tests/ref/acodec/adpcm-yamaha
new file mode 100644
index 0000000..da60f44
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/adpcm-yamaha
@@ -0,0 +1,4 @@
+e9c14f701d25947317db9367b9dc772d *tests/data/fate/acodec-adpcm-yamaha.wav
+265274 tests/data/fate/acodec-adpcm-yamaha.wav
+1488b5974fa040a65f0d407fc0224c6a *tests/data/fate/acodec-adpcm-yamaha.out.wav
+stddev: 1247.60 PSNR: 34.41 MAXDIFF:39895 bytes: 1058400/ 1060864
diff --git a/ffmpeg1/tests/ref/acodec/adpcm_ima_qt b/ffmpeg1/tests/ref/acodec/adpcm_ima_qt
new file mode 100644
index 0000000..a50c30a
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/adpcm_ima_qt
@@ -0,0 +1,4 @@
+23cbae1182e150ebf28e0abfb9cba127 *./tests/data/acodec/adpcm_qt.aiff
+281252 ./tests/data/acodec/adpcm_qt.aiff
+b0fafd002c38fb70acaddfda1a31ed61 *./tests/data/adpcm_ima_qt.acodec.out.wav
+stddev: 904.76 PSNR: 37.20 MAXDIFF:34029 bytes: 1058560/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/alac b/ffmpeg1/tests/ref/acodec/alac
new file mode 100644
index 0000000..d923719
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/alac
@@ -0,0 +1,4 @@
+f01f453dd13c4e88266409cddf2a7177 *tests/data/fate/acodec-alac.mov
+389018 tests/data/fate/acodec-alac.mov
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-alac.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/flac b/ffmpeg1/tests/ref/acodec/flac
new file mode 100644
index 0000000..1cc3770
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/flac
@@ -0,0 +1,4 @@
+151eef9097f944726968bec48649f00a *tests/data/fate/acodec-flac.flac
+361582 tests/data/fate/acodec-flac.flac
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-flac.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/g723_1 b/ffmpeg1/tests/ref/acodec/g723_1
new file mode 100644
index 0000000..9f88a76
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/g723_1
@@ -0,0 +1,4 @@
+dec0deb2425e908d232d2471acff04a3 *tests/data/fate/acodec-g723_1.g723_1
+4800 tests/data/fate/acodec-g723_1.g723_1
+d70776846d77c652bceed281fcca9cc8 *tests/data/fate/acodec-g723_1.out.wav
+stddev: 8423.47 PSNR: 17.82 MAXDIFF:53292 bytes: 95992/ 96000
diff --git a/ffmpeg1/tests/ref/acodec/mp2 b/ffmpeg1/tests/ref/acodec/mp2
new file mode 100644
index 0000000..42381b4
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/mp2
@@ -0,0 +1,4 @@
+f6eb0a205350bbd7fb1028a01c7ae8aa *tests/data/fate/acodec-mp2.mp2
+96130 tests/data/fate/acodec-mp2.mp2
+5a669ca7321adc6ab66a3eade4035909 *tests/data/fate/acodec-mp2.out.wav
+stddev: 4384.33 PSNR: 23.49 MAXDIFF:52631 bytes: 1058400/ 1057916
diff --git a/ffmpeg1/tests/ref/acodec/pcm-alaw b/ffmpeg1/tests/ref/acodec/pcm-alaw
new file mode 100644
index 0000000..28ce960
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-alaw
@@ -0,0 +1,4 @@
+a2dd6a934ec6d5ec901a211652e85227 *tests/data/fate/acodec-pcm-alaw.wav
+529258 tests/data/fate/acodec-pcm-alaw.wav
+f323f7551ffad91de8613f44dcb198b6 *tests/data/fate/acodec-pcm-alaw.out.wav
+stddev: 101.67 PSNR: 56.19 MAXDIFF: 515 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-f32be b/ffmpeg1/tests/ref/acodec/pcm-f32be
new file mode 100644
index 0000000..5bd700c
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-f32be
@@ -0,0 +1,4 @@
+e74eb6b65cb397ce541bac120b00680a *tests/data/fate/acodec-pcm-f32be.au
+2116832 tests/data/fate/acodec-pcm-f32be.au
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-f32be.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-f32le b/ffmpeg1/tests/ref/acodec/pcm-f32le
new file mode 100644
index 0000000..681f083
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-f32le
@@ -0,0 +1,4 @@
+653d82a64b7bd96ac193e105e9f92d4c *tests/data/fate/acodec-pcm-f32le.wav
+2116880 tests/data/fate/acodec-pcm-f32le.wav
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-f32le.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-f64be b/ffmpeg1/tests/ref/acodec/pcm-f64be
new file mode 100644
index 0000000..fd0cff6
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-f64be
@@ -0,0 +1,4 @@
+8c8ba9d2c68384c5f077306e220f1188 *tests/data/fate/acodec-pcm-f64be.au
+4233632 tests/data/fate/acodec-pcm-f64be.au
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-f64be.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-f64le b/ffmpeg1/tests/ref/acodec/pcm-f64le
new file mode 100644
index 0000000..c6cb027
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-f64le
@@ -0,0 +1,4 @@
+48b4cd378f47a50dc902aa03cc8280ed *tests/data/fate/acodec-pcm-f64le.wav
+4233680 tests/data/fate/acodec-pcm-f64le.wav
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-f64le.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-mulaw b/ffmpeg1/tests/ref/acodec/pcm-mulaw
new file mode 100644
index 0000000..bd2a1e8
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-mulaw
@@ -0,0 +1,4 @@
+fd10ee54bd298fc29fd6fc70baa71414 *tests/data/fate/acodec-pcm-mulaw.wav
+529258 tests/data/fate/acodec-pcm-mulaw.wav
+7ae8c3fc804bd574006fd547fe28980c *tests/data/fate/acodec-pcm-mulaw.out.wav
+stddev: 103.38 PSNR: 56.04 MAXDIFF: 644 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s16be b/ffmpeg1/tests/ref/acodec/pcm-s16be
new file mode 100644
index 0000000..6f7222a
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s16be
@@ -0,0 +1,4 @@
+d00ca427a66be2e33ca8d63bcde41316 *tests/data/fate/acodec-pcm-s16be.mov
+1059069 tests/data/fate/acodec-pcm-s16be.mov
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s16be.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s16be_planar b/ffmpeg1/tests/ref/acodec/pcm-s16be_planar
new file mode 100644
index 0000000..8116480
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s16be_planar
@@ -0,0 +1,4 @@
+cd87e6fc3bddb85c945c050d8c3fba11 *tests/data/fate/acodec-pcm-s16be_planar.nut
+1060673 tests/data/fate/acodec-pcm-s16be_planar.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s16be_planar.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s16le b/ffmpeg1/tests/ref/acodec/pcm-s16le
new file mode 100644
index 0000000..51366ad
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s16le
@@ -0,0 +1,4 @@
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s16le.wav
+1058446 tests/data/fate/acodec-pcm-s16le.wav
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s16le.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s16le_planar b/ffmpeg1/tests/ref/acodec/pcm-s16le_planar
new file mode 100644
index 0000000..c933001
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s16le_planar
@@ -0,0 +1,4 @@
+74af9a0ae4f68451102a2f7524b2d55f *tests/data/fate/acodec-pcm-s16le_planar.nut
+1060673 tests/data/fate/acodec-pcm-s16le_planar.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s16le_planar.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s24be b/ffmpeg1/tests/ref/acodec/pcm-s24be
new file mode 100644
index 0000000..3ebe02a
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s24be
@@ -0,0 +1,4 @@
+f65a7ae3b70ca53ffa354b1e7ff3a33d *tests/data/fate/acodec-pcm-s24be.mov
+1588323 tests/data/fate/acodec-pcm-s24be.mov
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s24be.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s24le b/ffmpeg1/tests/ref/acodec/pcm-s24le
new file mode 100644
index 0000000..a7e77e2
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s24le
@@ -0,0 +1,4 @@
+18ea73985dbdf59e23f5aba66145e6fe *tests/data/fate/acodec-pcm-s24le.wav
+1587668 tests/data/fate/acodec-pcm-s24le.wav
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s24le.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s24le_planar b/ffmpeg1/tests/ref/acodec/pcm-s24le_planar
new file mode 100644
index 0000000..14d4cec
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s24le_planar
@@ -0,0 +1,4 @@
+83e315ce8083a6d035f801bb862942bf *tests/data/fate/acodec-pcm-s24le_planar.nut
+1590202 tests/data/fate/acodec-pcm-s24le_planar.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s24le_planar.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s32be b/ffmpeg1/tests/ref/acodec/pcm-s32be
new file mode 100644
index 0000000..9075083
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s32be
@@ -0,0 +1,4 @@
+f9e16fafeefb2285e943f53133e9cfd5 *tests/data/fate/acodec-pcm-s32be.mov
+2117527 tests/data/fate/acodec-pcm-s32be.mov
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s32be.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s32le b/ffmpeg1/tests/ref/acodec/pcm-s32le
new file mode 100644
index 0000000..1c3e412
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s32le
@@ -0,0 +1,4 @@
+8d8849fa5c5d91b9cb74f5c74e937faf *tests/data/fate/acodec-pcm-s32le.wav
+2116868 tests/data/fate/acodec-pcm-s32le.wav
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s32le.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s32le_planar b/ffmpeg1/tests/ref/acodec/pcm-s32le_planar
new file mode 100644
index 0000000..7648766
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s32le_planar
@@ -0,0 +1,4 @@
+f6199b2c698bd5dd1438b53431357bec *tests/data/fate/acodec-pcm-s32le_planar.nut
+2120148 tests/data/fate/acodec-pcm-s32le_planar.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s32le_planar.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s8 b/ffmpeg1/tests/ref/acodec/pcm-s8
new file mode 100644
index 0000000..247c46c
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s8
@@ -0,0 +1,4 @@
+d931dc4fffa2d3398e0f31f97e7d6c3a *tests/data/fate/acodec-pcm-s8.mov
+529853 tests/data/fate/acodec-pcm-s8.mov
+651d4eb8d98dfcdda96ae6c43d8f156b *tests/data/fate/acodec-pcm-s8.out.wav
+stddev: 147.89 PSNR: 52.93 MAXDIFF: 255 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-s8_planar b/ffmpeg1/tests/ref/acodec/pcm-s8_planar
new file mode 100644
index 0000000..6ab6ee0
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-s8_planar
@@ -0,0 +1,4 @@
+ce99d95295ade9945849ef7c1de8c4ca *tests/data/fate/acodec-pcm-s8_planar.nut
+531054 tests/data/fate/acodec-pcm-s8_planar.nut
+651d4eb8d98dfcdda96ae6c43d8f156b *tests/data/fate/acodec-pcm-s8_planar.out.wav
+stddev: 147.89 PSNR: 52.93 MAXDIFF: 255 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-u16be b/ffmpeg1/tests/ref/acodec/pcm-u16be
new file mode 100644
index 0000000..0214975
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-u16be
@@ -0,0 +1,4 @@
+eab6206a2cec3c5a3be47fdaa826faff *tests/data/fate/acodec-pcm-u16be.nut
+1060673 tests/data/fate/acodec-pcm-u16be.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u16be.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-u16le b/ffmpeg1/tests/ref/acodec/pcm-u16le
new file mode 100644
index 0000000..e45fe08
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-u16le
@@ -0,0 +1,4 @@
+8fceb284cc6a5a114b6ce7a10fd08020 *tests/data/fate/acodec-pcm-u16le.nut
+1060673 tests/data/fate/acodec-pcm-u16le.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u16le.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-u24be b/ffmpeg1/tests/ref/acodec/pcm-u24be
new file mode 100644
index 0000000..ddab6e8
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-u24be
@@ -0,0 +1,4 @@
+d1a55f46c88ed1efa77d05b60259675d *tests/data/fate/acodec-pcm-u24be.nut
+1590202 tests/data/fate/acodec-pcm-u24be.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u24be.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-u24le b/ffmpeg1/tests/ref/acodec/pcm-u24le
new file mode 100644
index 0000000..df06ca4
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-u24le
@@ -0,0 +1,4 @@
+6d7df9b7e074548cf18dd16365862f1b *tests/data/fate/acodec-pcm-u24le.nut
+1590202 tests/data/fate/acodec-pcm-u24le.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u24le.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-u32be b/ffmpeg1/tests/ref/acodec/pcm-u32be
new file mode 100644
index 0000000..6a53919
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-u32be
@@ -0,0 +1,4 @@
+7078e6d7e80247b8531d5cc16d09f385 *tests/data/fate/acodec-pcm-u32be.nut
+2120148 tests/data/fate/acodec-pcm-u32be.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u32be.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-u32le b/ffmpeg1/tests/ref/acodec/pcm-u32le
new file mode 100644
index 0000000..18a5d15
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-u32le
@@ -0,0 +1,4 @@
+34df9a7e1fe60da0bc6ec0485b68726e *tests/data/fate/acodec-pcm-u32le.nut
+2120148 tests/data/fate/acodec-pcm-u32le.nut
+64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u32le.out.wav
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/pcm-u8 b/ffmpeg1/tests/ref/acodec/pcm-u8
new file mode 100644
index 0000000..80e70ea
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/pcm-u8
@@ -0,0 +1,4 @@
+70fecbae732f81143a560c7315eda49a *tests/data/fate/acodec-pcm-u8.wav
+529246 tests/data/fate/acodec-pcm-u8.wav
+651d4eb8d98dfcdda96ae6c43d8f156b *tests/data/fate/acodec-pcm-u8.out.wav
+stddev: 147.89 PSNR: 52.93 MAXDIFF: 255 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/acodec/roqaudio b/ffmpeg1/tests/ref/acodec/roqaudio
new file mode 100644
index 0000000..8632504
--- /dev/null
+++ b/ffmpeg1/tests/ref/acodec/roqaudio
@@ -0,0 +1,4 @@
+75859976d7098588aeaebbc5551484a9 *tests/data/fate/acodec-roqaudio.roq
+265992 tests/data/fate/acodec-roqaudio.roq
+be6d954adaf984f2dc65a3ff50b55f26 *tests/data/fate/acodec-roqaudio.out.wav
+stddev: 4481.70 PSNR: 23.30 MAXDIFF:46250 bytes: 1058400/ 1058400
diff --git a/ffmpeg1/tests/ref/fate/4xm-1 b/ffmpeg1/tests/ref/fate/4xm-1
new file mode 100644
index 0000000..37371aa
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/4xm-1
@@ -0,0 +1,16 @@
+#tb 0: 1/15
+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/ffmpeg1/tests/ref/fate/4xm-2 b/ffmpeg1/tests/ref/fate/4xm-2
new file mode 100644
index 0000000..cf71357
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/4xm-2
@@ -0,0 +1,175 @@
+#tb 0: 1/6
+0, 0, 0, 1, 80640, 0x00000000
+0, 1, 1, 1, 80640, 0x3a942680
+0, 2, 2, 1, 80640, 0x3a942680
+0, 3, 3, 1, 80640, 0x3a942680
+0, 4, 4, 1, 80640, 0x3a942680
+0, 5, 5, 1, 80640, 0x3a942680
+0, 6, 6, 1, 80640, 0x3a942680
+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
+0, 157, 157, 1, 80640, 0x0f412500
+0, 158, 158, 1, 80640, 0xb6634270
+0, 159, 159, 1, 80640, 0x9e43a4a0
+0, 160, 160, 1, 80640, 0x136ab60b
+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/ffmpeg1/tests/ref/fate/8bps b/ffmpeg1/tests/ref/fate/8bps
new file mode 100644
index 0000000..9db9430
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/8bps
@@ -0,0 +1,37 @@
+#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, 1, 1, 1, 259200, 0x7e91df07
+1, 2048, 2048, 1024, 2048, 0xb6043655
+1, 3072, 3072, 1024, 2048, 0x6fdaffad
+0, 2, 2, 1, 259200, 0xc468c119
+1, 4096, 4096, 1024, 2048, 0xf86700cb
+1, 5120, 5120, 1024, 2048, 0x045e46c1
+0, 3, 3, 1, 259200, 0x0e058930
+1, 6144, 6144, 1024, 2048, 0x000df0e5
+0, 4, 4, 1, 259200, 0xa0261310
+1, 7168, 7168, 1024, 2048, 0x8f5f12fb
+1, 8192, 8192, 1024, 2048, 0xd516f6b0
+0, 5, 5, 1, 259200, 0x78ca9aba
+1, 9216, 9216, 1024, 2048, 0xa1fe2bd3
+1, 10240, 10240, 1024, 2048, 0x3647087a
+0, 6, 6, 1, 259200, 0x4971f7b3
+1, 11264, 11264, 1024, 2048, 0xd2ee584e
+1, 12288, 12288, 1024, 2048, 0xf132088c
+0, 7, 7, 1, 259200, 0x7dc2cff7
+1, 13312, 13312, 1024, 2048, 0x1efc0eb1
+0, 8, 8, 1, 259200, 0x8cbc53d5
+1, 14336, 14336, 1024, 2048, 0xeb73f402
+1, 15360, 15360, 1024, 2048, 0x75cb3d20
+0, 9, 9, 1, 259200, 0xcccd77e3
+1, 16384, 16384, 1024, 2048, 0x85a501b6
+1, 17408, 17408, 1024, 2048, 0xa4eb312d
+0, 10, 10, 1, 259200, 0x6b3e0fb3
+1, 18432, 18432, 1024, 2048, 0xf0aaf8c7
+0, 11, 11, 1, 259200, 0x281dd175
+1, 19456, 19456, 1024, 2048, 0x65371cda
+1, 20480, 20480, 1024, 2048, 0x25512cd6
+1, 21504, 21504, 1024, 2048, 0xc81410e3
+1, 22528, 22528, 257, 514, 0x57d77b94
diff --git a/ffmpeg1/tests/ref/fate/aasc b/ffmpeg1/tests/ref/fate/aasc
new file mode 100644
index 0000000..83f83b9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/aasc
@@ -0,0 +1,25 @@
+#tb 0: 1/25
+0, 0, 0, 1, 168000, 0x00000000
+0, 1, 1, 1, 168000, 0x00000000
+0, 2, 2, 1, 168000, 0x00000000
+0, 3, 3, 1, 168000, 0x00000000
+0, 4, 4, 1, 168000, 0x00000000
+0, 5, 5, 1, 168000, 0x00000000
+0, 6, 6, 1, 168000, 0x00000000
+0, 7, 7, 1, 168000, 0x00000000
+0, 8, 8, 1, 168000, 0x00000000
+0, 9, 9, 1, 168000, 0x00000000
+0, 10, 10, 1, 168000, 0x00000000
+0, 11, 11, 1, 168000, 0x00000000
+0, 12, 12, 1, 168000, 0xa6298d46
+0, 13, 13, 1, 168000, 0x5d89d96c
+0, 14, 14, 1, 168000, 0x16d994da
+0, 15, 15, 1, 168000, 0xa8c6079b
+0, 16, 16, 1, 168000, 0xdd1decac
+0, 17, 17, 1, 168000, 0x6a96003c
+0, 18, 18, 1, 168000, 0xef7f1ff4
+0, 19, 19, 1, 168000, 0x90dc0126
+0, 20, 20, 1, 168000, 0x7a2b1006
+0, 21, 21, 1, 168000, 0xc7ca1345
+0, 22, 22, 1, 168000, 0x8841c413
+0, 23, 23, 1, 168000, 0xbaed0290
diff --git a/ffmpeg1/tests/ref/fate/acodec-aref b/ffmpeg1/tests/ref/fate/acodec-aref
new file mode 100644
index 0000000..d70876d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/acodec-aref
@@ -0,0 +1,4 @@
+64151e4bcc2b717aa5a8454d424d6a1f *./tests/data/acodec.ref.wav
+1058446 ./tests/data/acodec.ref.wav
+ce524631c2ad0a40aaab46e3a80a1176 *./tests/data/acodec-16000-1.ref.wav
+192046 ./tests/data/acodec-16000-1.ref.wav
diff --git a/ffmpeg1/tests/ref/fate/adpcm-4xm b/ffmpeg1/tests/ref/fate/adpcm-4xm
new file mode 100644
index 0000000..eb5cfe6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-4xm
@@ -0,0 +1,27 @@
+#tb 0: 1/22050
+0, 0, 0, 1472, 5888, 0x9086e310
+0, 1476, 1476, 1472, 5888, 0xac8491f5
+0, 2952, 2952, 1472, 5888, 0xc9a08b6b
+0, 4428, 4428, 1472, 5888, 0x4cff893b
+0, 5904, 5904, 1464, 5856, 0xfb914624
+0, 7372, 7372, 1472, 5888, 0x1dd9781f
+0, 8848, 8848, 1472, 5888, 0x75937688
+0, 10324, 10324, 1472, 5888, 0x6c93a266
+0, 11800, 11800, 1464, 5856, 0xb14e6783
+0, 13268, 13268, 1472, 5888, 0x4d268759
+0, 14744, 14744, 1472, 5888, 0xce44b8c6
+0, 16220, 16220, 1472, 5888, 0xf99f7347
+0, 17696, 17696, 1464, 5856, 0x35591adc
+0, 19164, 19164, 1472, 5888, 0x67692338
+0, 20640, 20640, 1472, 5888, 0x6465addd
+0, 22116, 22116, 1472, 5888, 0x22c66aaf
+0, 23592, 23592, 1464, 5856, 0x016b78d9
+0, 25060, 25060, 1472, 5888, 0xa9a03855
+0, 26536, 26536, 1472, 5888, 0x1aa0603f
+0, 28012, 28012, 1472, 5888, 0x190a25a1
+0, 29488, 29488, 1464, 5856, 0xc6ad8bc0
+0, 30956, 30956, 1472, 5888, 0x42bb9d6b
+0, 32432, 32432, 1472, 5888, 0x797694d7
+0, 33908, 33908, 1472, 5888, 0xd2d1fa69
+0, 35384, 35384, 1464, 5856, 0x61624e9b
+0, 36852, 36852, 1472, 5888, 0x14bf8ec0
diff --git a/ffmpeg1/tests/ref/fate/adpcm-afc b/ffmpeg1/tests/ref/fate/adpcm-afc
new file mode 100644
index 0000000..d1a1c36
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-afc
@@ -0,0 +1,13 @@
+#tb 0: 1/44100
+0, 0, 0, 17920, 71680, 0x52373bc9
+0, 17920, 17920, 17920, 71680, 0x1f854b27
+0, 35840, 35840, 17920, 71680, 0x3d265a6d
+0, 53760, 53760, 17920, 71680, 0x7e38d624
+0, 71680, 71680, 17920, 71680, 0x003b7616
+0, 89600, 89600, 17920, 71680, 0x9fed7ca7
+0, 107520, 107520, 17920, 71680, 0x22af668c
+0, 125440, 125440, 17920, 71680, 0xefd95c4a
+0, 143360, 143360, 17920, 71680, 0x8b68142e
+0, 161280, 161280, 17920, 71680, 0x0a0614fa
+0, 179200, 179200, 17920, 71680, 0x22ababa3
+0, 197120, 197120, 17920, 71680, 0xda4b1708
diff --git a/ffmpeg1/tests/ref/fate/adpcm-creative b/ffmpeg1/tests/ref/fate/adpcm-creative
new file mode 100644
index 0000000..039ca3a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-creative
@@ -0,0 +1 @@
+66004779a5e51ca659b21a4197e019e6
diff --git a/ffmpeg1/tests/ref/fate/adpcm-creative-8-2.6bit b/ffmpeg1/tests/ref/fate/adpcm-creative-8-2.6bit
new file mode 100644
index 0000000..8357604
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-creative-8-2.6bit
@@ -0,0 +1 @@
+dee4417597abc2db70a175d6809870e7
diff --git a/ffmpeg1/tests/ref/fate/adpcm-creative-8-2bit b/ffmpeg1/tests/ref/fate/adpcm-creative-8-2bit
new file mode 100644
index 0000000..4166846
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-creative-8-2bit
@@ -0,0 +1 @@
+832846066fbce28821b7f0717c4d3a90
diff --git a/ffmpeg1/tests/ref/fate/adpcm-creative-8-4bit b/ffmpeg1/tests/ref/fate/adpcm-creative-8-4bit
new file mode 100644
index 0000000..2d579aa
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-creative-8-4bit
@@ -0,0 +1 @@
+1813d196cef83f7030bb150399b2903e
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ea-1 b/ffmpeg1/tests/ref/fate/adpcm-ea-1
new file mode 100644
index 0000000..f5a33df
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ea-1
@@ -0,0 +1,26 @@
+#tb 0: 1/22050
+0, 0, 0, 1484, 5936, 0x00000000
+0, 1484, 1484, 1456, 5824, 0x00000000
+0, 2940, 2940, 1484, 5936, 0x00000000
+0, 4424, 4424, 1456, 5824, 0x00000000
+0, 5880, 5880, 1484, 5936, 0x00000000
+0, 7364, 7364, 1456, 5824, 0x00000000
+0, 8820, 8820, 1484, 5936, 0x00000000
+0, 10304, 10304, 1456, 5824, 0x0f06f5bb
+0, 11760, 11760, 1484, 5936, 0xb0dbfc46
+0, 13244, 13244, 1456, 5824, 0x9daa9f9c
+0, 14700, 14700, 1484, 5936, 0x61400d2f
+0, 16184, 16184, 1456, 5824, 0x34a5b0e3
+0, 17640, 17640, 1484, 5936, 0x6e546f72
+0, 19124, 19124, 1456, 5824, 0x4f093b35
+0, 20580, 20580, 1484, 5936, 0x95b5b599
+0, 22064, 22064, 1456, 5824, 0x75e15e60
+0, 23520, 23520, 1484, 5936, 0xd1077d39
+0, 25004, 25004, 1456, 5824, 0x956e21ca
+0, 26460, 26460, 1484, 5936, 0x33bac234
+0, 27944, 27944, 1456, 5824, 0x5df37824
+0, 29400, 29400, 1484, 5936, 0xc174af24
+0, 30884, 30884, 1456, 5824, 0xe5dc2159
+0, 32340, 32340, 1484, 5936, 0x63ffc8b1
+0, 33824, 33824, 1456, 5824, 0xefe4c365
+0, 35280, 35280, 1484, 5936, 0x2174304d
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ea-2 b/ffmpeg1/tests/ref/fate/adpcm-ea-2
new file mode 100644
index 0000000..f58d9a0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ea-2
@@ -0,0 +1,134 @@
+#tb 0: 1/22050
+0, 0, 0, 1484, 5936, 0xea261a29
+0, 1484, 1484, 1456, 5824, 0x253df061
+0, 2940, 2940, 1484, 5936, 0x603a5bd7
+0, 4424, 4424, 1456, 5824, 0x9d283f59
+0, 5880, 5880, 1484, 5936, 0x49323497
+0, 7364, 7364, 1456, 5824, 0x7c299939
+0, 8820, 8820, 1484, 5936, 0x9f918e9a
+0, 10304, 10304, 1456, 5824, 0x1226b534
+0, 11760, 11760, 1484, 5936, 0xdd159326
+0, 13244, 13244, 1456, 5824, 0x361ad10f
+0, 14700, 14700, 1484, 5936, 0x6ccac9e3
+0, 16184, 16184, 1456, 5824, 0x1861efef
+0, 17640, 17640, 1484, 5936, 0x5f718eb9
+0, 19124, 19124, 1456, 5824, 0xd4ca72ba
+0, 20580, 20580, 1484, 5936, 0xbf2b27e6
+0, 22064, 22064, 1456, 5824, 0xcb6f024e
+0, 23520, 23520, 1484, 5936, 0x7dfb7e05
+0, 25004, 25004, 1456, 5824, 0x80e16f13
+0, 26460, 26460, 1484, 5936, 0x0fb59227
+0, 27944, 27944, 1456, 5824, 0x4d6f1fdb
+0, 29400, 29400, 1484, 5936, 0x505a5103
+0, 30884, 30884, 1456, 5824, 0x47ef4c13
+0, 32340, 32340, 1484, 5936, 0xbe4795fb
+0, 33824, 33824, 1456, 5824, 0xb82cc4ff
+0, 35280, 35280, 1484, 5936, 0xf7c6ab8d
+0, 36764, 36764, 1456, 5824, 0x1442f5e0
+0, 38220, 38220, 1484, 5936, 0x64659389
+0, 39704, 39704, 1456, 5824, 0xdd81725c
+0, 41160, 41160, 1484, 5936, 0x7f7c604f
+0, 42644, 42644, 1456, 5824, 0xafc77beb
+0, 44100, 44100, 1484, 5936, 0x24f88e4d
+0, 45584, 45584, 1456, 5824, 0xa31956ca
+0, 47040, 47040, 1484, 5936, 0x958e02b9
+0, 48524, 48524, 1456, 5824, 0xcfc79890
+0, 49980, 49980, 1484, 5936, 0xc7e788ae
+0, 51464, 51464, 1456, 5824, 0x4b6b1acc
+0, 52920, 52920, 1484, 5936, 0xa74496dc
+0, 54404, 54404, 1456, 5824, 0x719e6171
+0, 55860, 55860, 1484, 5936, 0x9346222d
+0, 57344, 57344, 1456, 5824, 0x9e2a876e
+0, 58800, 58800, 1484, 5936, 0xeca6ea64
+0, 60284, 60284, 1456, 5824, 0x07d8174f
+0, 61740, 61740, 1484, 5936, 0x2df5aa6b
+0, 63224, 63224, 1456, 5824, 0x314e7034
+0, 64680, 64680, 1484, 5936, 0x5a328768
+0, 66164, 66164, 1456, 5824, 0x32b92446
+0, 67620, 67620, 1484, 5936, 0x20ecbc9b
+0, 69104, 69104, 1456, 5824, 0x76019c14
+0, 70560, 70560, 1484, 5936, 0x8c3ef8a6
+0, 72044, 72044, 1456, 5824, 0xcdaab50b
+0, 73500, 73500, 1484, 5936, 0xb2f87f4f
+0, 74984, 74984, 1456, 5824, 0x70c26379
+0, 76440, 76440, 1484, 5936, 0x5691ecfd
+0, 77924, 77924, 1456, 5824, 0x61e208fe
+0, 79380, 79380, 1484, 5936, 0x87d1a5e0
+0, 80864, 80864, 1456, 5824, 0x02054cfd
+0, 82320, 82320, 1484, 5936, 0x22ff1c4b
+0, 83804, 83804, 1456, 5824, 0xc6d87fef
+0, 85260, 85260, 1484, 5936, 0x9028bb3b
+0, 86744, 86744, 1456, 5824, 0xbadde406
+0, 88200, 88200, 1484, 5936, 0x6e88ddf1
+0, 89684, 89684, 1456, 5824, 0x5bb8be6e
+0, 91140, 91140, 1484, 5936, 0xe1f8d7fc
+0, 92624, 92624, 1456, 5824, 0xc824e388
+0, 94080, 94080, 1484, 5936, 0x654371a9
+0, 95564, 95564, 1456, 5824, 0xae6ee9ec
+0, 97020, 97020, 1484, 5936, 0x9aa4550d
+0, 98504, 98504, 1456, 5824, 0xdce210ac
+0, 99960, 99960, 1484, 5936, 0xb12641c8
+0, 101444, 101444, 1456, 5824, 0x277e014b
+0, 102900, 102900, 1484, 5936, 0xb0d262de
+0, 104384, 104384, 1456, 5824, 0xf94d6f49
+0, 105840, 105840, 1484, 5936, 0x3d7848cb
+0, 107324, 107324, 1456, 5824, 0xe67fc08e
+0, 108780, 108780, 1484, 5936, 0x0475e0d6
+0, 110264, 110264, 1456, 5824, 0x8a9a4a2e
+0, 111720, 111720, 1484, 5936, 0x82576204
+0, 113204, 113204, 1456, 5824, 0x3017b648
+0, 114660, 114660, 1484, 5936, 0xca4c3e04
+0, 116144, 116144, 1456, 5824, 0x340077d1
+0, 117600, 117600, 1484, 5936, 0x805bea6e
+0, 119084, 119084, 1456, 5824, 0x2cf6c87b
+0, 120540, 120540, 1484, 5936, 0x3635bc5f
+0, 122024, 122024, 1456, 5824, 0x0d7a81c7
+0, 123480, 123480, 1484, 5936, 0x26179764
+0, 124964, 124964, 1456, 5824, 0xa0b2454f
+0, 126420, 126420, 1484, 5936, 0x91d24608
+0, 127904, 127904, 1456, 5824, 0x6509b3e1
+0, 129360, 129360, 1484, 5936, 0xa0e3c9fc
+0, 130844, 130844, 1456, 5824, 0x18682a2f
+0, 132300, 132300, 1484, 5936, 0x89cea4ff
+0, 133784, 133784, 1456, 5824, 0x7dd22b85
+0, 135240, 135240, 1484, 5936, 0x8b2eeb8d
+0, 136724, 136724, 1456, 5824, 0x0c21af82
+0, 138180, 138180, 1484, 5936, 0x9c5a748d
+0, 139664, 139664, 1456, 5824, 0x1dc72c5c
+0, 141120, 141120, 1484, 5936, 0xe6129383
+0, 142604, 142604, 1456, 5824, 0x0a44312a
+0, 144060, 144060, 1484, 5936, 0x7ed30640
+0, 145544, 145544, 1456, 5824, 0xede15f25
+0, 147000, 147000, 1484, 5936, 0x0096d0f3
+0, 148484, 148484, 1456, 5824, 0x13764b4b
+0, 149940, 149940, 1484, 5936, 0xd4608756
+0, 151424, 151424, 1456, 5824, 0x254b5f2a
+0, 152880, 152880, 1484, 5936, 0x7705b830
+0, 154364, 154364, 1456, 5824, 0x64a63d78
+0, 155820, 155820, 1484, 5936, 0xc02d81a6
+0, 157304, 157304, 1456, 5824, 0xd239e55e
+0, 158760, 158760, 1484, 5936, 0x8018cd3a
+0, 160244, 160244, 1456, 5824, 0xf86b8a98
+0, 161700, 161700, 1484, 5936, 0x2a0078bc
+0, 163184, 163184, 1456, 5824, 0x058d4e1b
+0, 164640, 164640, 1484, 5936, 0xbc718309
+0, 166124, 166124, 1456, 5824, 0xaf6c29e5
+0, 167580, 167580, 1484, 5936, 0x80df004d
+0, 169064, 169064, 1456, 5824, 0xeca5aa57
+0, 170520, 170520, 1484, 5936, 0xb793a8f8
+0, 172004, 172004, 1456, 5824, 0x70fa6aff
+0, 173460, 173460, 1484, 5936, 0xda8d4cc6
+0, 174944, 174944, 1456, 5824, 0xa70088eb
+0, 176400, 176400, 1484, 5936, 0x1c0b0aab
+0, 177884, 177884, 1456, 5824, 0x234d2436
+0, 179340, 179340, 1484, 5936, 0xf79d731e
+0, 180824, 180824, 1456, 5824, 0x5a4e454a
+0, 182280, 182280, 1484, 5936, 0xccf6d042
+0, 183764, 183764, 1456, 5824, 0x4e524d14
+0, 185220, 185220, 1484, 5936, 0xf8f2fcc3
+0, 186704, 186704, 1456, 5824, 0x08f12491
+0, 188160, 188160, 1484, 5936, 0x506e0a42
+0, 189644, 189644, 1456, 5824, 0x7cf05049
+0, 191100, 191100, 1484, 5936, 0xdeb9d295
+0, 192584, 192584, 1456, 5824, 0x758ef642
+0, 194040, 194040, 1484, 5936, 0x91903980
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ea-maxis-xa b/ffmpeg1/tests/ref/fate/adpcm-ea-maxis-xa
new file mode 100644
index 0000000..5d6b5c0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ea-maxis-xa
@@ -0,0 +1,31 @@
+#tb 0: 1/22050
+0, 0, 0, 28, 112, 0x291d1be4
+0, 28, 28, 28, 112, 0xf08d33cc
+0, 56, 56, 28, 112, 0x5b1521de
+0, 84, 84, 28, 112, 0x57d209f6
+0, 112, 112, 28, 112, 0x00000000
+0, 140, 140, 28, 112, 0xa15e03fc
+0, 168, 168, 28, 112, 0x73a80bf4
+0, 196, 196, 28, 112, 0x916e03fc
+0, 224, 224, 28, 112, 0xd92603fc
+0, 252, 252, 28, 112, 0x097523dc
+0, 280, 280, 28, 112, 0xf7be45ba
+0, 308, 308, 28, 112, 0x0fed4db2
+0, 336, 336, 28, 112, 0x9fb41be4
+0, 364, 364, 28, 112, 0x819a0ff0
+0, 392, 392, 28, 112, 0xfe7f3fc0
+0, 420, 420, 28, 112, 0x281e1de2
+0, 448, 448, 28, 112, 0xa76605fa
+0, 476, 476, 28, 112, 0x00000000
+0, 504, 504, 28, 112, 0xb84705fa
+0, 532, 532, 28, 112, 0xdb5c0ff0
+0, 560, 560, 28, 112, 0xbc4305fa
+0, 588, 588, 28, 112, 0x7c8305fa
+0, 616, 616, 28, 112, 0x54ff21de
+0, 644, 644, 28, 112, 0xc6c535ca
+0, 672, 672, 28, 112, 0xa4123dc2
+0, 700, 700, 28, 112, 0x196523dc
+0, 728, 728, 28, 112, 0x80ef25da
+0, 756, 756, 28, 112, 0xdf742bd4
+0, 784, 784, 28, 112, 0xd78a21de
+0, 812, 812, 28, 112, 0x191f0df2
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ea-r1 b/ffmpeg1/tests/ref/fate/adpcm-ea-r1
new file mode 100644
index 0000000..74d15c6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ea-r1
@@ -0,0 +1,96 @@
+#tb 0: 1/48000
+0, 0, 0, 1624, 6496, 0x00000000
+0, 1624, 1624, 1596, 6384, 0x00000000
+0, 3220, 3220, 1596, 6384, 0x00000000
+0, 4816, 4816, 1596, 6384, 0x00000000
+0, 6412, 6412, 1596, 6384, 0x00000000
+0, 8008, 8008, 1624, 6496, 0xe2034d04
+0, 9632, 9632, 1596, 6384, 0x089c9157
+0, 11228, 11228, 1596, 6384, 0xeed5743c
+0, 12824, 12824, 1596, 6384, 0x71de6b34
+0, 14420, 14420, 1596, 6384, 0xc0d67710
+0, 16016, 16016, 1624, 6496, 0x35786490
+0, 17640, 17640, 1596, 6384, 0xdf1c99a2
+0, 19236, 19236, 1596, 6384, 0xca9591ad
+0, 20832, 20832, 1596, 6384, 0x6f0d9c3d
+0, 22428, 22428, 1596, 6384, 0xfacbbaee
+0, 24024, 24024, 1624, 6496, 0x927fb136
+0, 25648, 25648, 1596, 6384, 0x9d4f2572
+0, 27244, 27244, 1596, 6384, 0x2a3c6d08
+0, 28840, 28840, 1596, 6384, 0x4282b1e0
+0, 30436, 30436, 1596, 6384, 0xc4a77b9f
+0, 32032, 32032, 1624, 6496, 0x2af6a14f
+0, 33656, 33656, 1596, 6384, 0x4d734169
+0, 35252, 35252, 1596, 6384, 0xb91b5865
+0, 36848, 36848, 1596, 6384, 0x9dce2417
+0, 38444, 38444, 1596, 6384, 0xb7c4e1ce
+0, 40040, 40040, 1624, 6496, 0xef0dc07a
+0, 41664, 41664, 1596, 6384, 0x4ad21d10
+0, 43260, 43260, 1596, 6384, 0xcfe14682
+0, 44856, 44856, 1596, 6384, 0x07be48eb
+0, 46452, 46452, 1596, 6384, 0x09de3498
+0, 48048, 48048, 1624, 6496, 0xab2e9686
+0, 49672, 49672, 1596, 6384, 0x3aba3ccc
+0, 51268, 51268, 1596, 6384, 0x0a905ec3
+0, 52864, 52864, 1596, 6384, 0x76a93ce4
+0, 54460, 54460, 1596, 6384, 0xa99063a4
+0, 56056, 56056, 1624, 6496, 0xc16bb88d
+0, 57680, 57680, 1596, 6384, 0x650379bf
+0, 59276, 59276, 1596, 6384, 0x4e0749fe
+0, 60872, 60872, 1596, 6384, 0x778e8d12
+0, 62468, 62468, 1596, 6384, 0x9fa8c494
+0, 64064, 64064, 1624, 6496, 0x61d5bead
+0, 65688, 65688, 1596, 6384, 0x4da9bc3c
+0, 67284, 67284, 1596, 6384, 0xa72b6f93
+0, 68880, 68880, 1596, 6384, 0x811f5f77
+0, 70476, 70476, 1596, 6384, 0x83ea5e3d
+0, 72072, 72072, 1624, 6496, 0x78bab460
+0, 73696, 73696, 1596, 6384, 0xc9a07432
+0, 75292, 75292, 1596, 6384, 0x4b4f2a34
+0, 76888, 76888, 1596, 6384, 0x4d707a53
+0, 78484, 78484, 1596, 6384, 0x703efb60
+0, 80080, 80080, 1624, 6496, 0x319a77bb
+0, 81704, 81704, 1596, 6384, 0xbdfd82ec
+0, 83300, 83300, 1596, 6384, 0x413c3503
+0, 84896, 84896, 1596, 6384, 0xe6e666b3
+0, 86492, 86492, 1596, 6384, 0xa09c7342
+0, 88088, 88088, 1624, 6496, 0x60cba846
+0, 89712, 89712, 1596, 6384, 0x0ba34308
+0, 91308, 91308, 1596, 6384, 0xdc3a65f0
+0, 92904, 92904, 1596, 6384, 0x1ebf9dc4
+0, 94500, 94500, 1596, 6384, 0xbbcb1449
+0, 96096, 96096, 1624, 6496, 0x926574eb
+0, 97720, 97720, 1596, 6384, 0xb4da92f1
+0, 99316, 99316, 1596, 6384, 0xdbbd21e0
+0, 100912, 100912, 1596, 6384, 0x08510eff
+0, 102508, 102508, 1596, 6384, 0x9534b7ca
+0, 104104, 104104, 1624, 6496, 0x50a5ed30
+0, 105728, 105728, 1596, 6384, 0xf5ac2f7c
+0, 107324, 107324, 1596, 6384, 0x4fe1fa55
+0, 108920, 108920, 1596, 6384, 0xd61c4c05
+0, 110516, 110516, 1596, 6384, 0x56d11b45
+0, 112112, 112112, 1624, 6496, 0x3906084b
+0, 113736, 113736, 1596, 6384, 0x1ef31fed
+0, 115332, 115332, 1596, 6384, 0x58ed82f5
+0, 116928, 116928, 1596, 6384, 0xb31ccd1f
+0, 118524, 118524, 1596, 6384, 0xfb648285
+0, 120120, 120120, 1624, 6496, 0xfae2950b
+0, 121744, 121744, 1596, 6384, 0xe28c8357
+0, 123340, 123340, 1596, 6384, 0xda718e60
+0, 124936, 124936, 1596, 6384, 0x27516999
+0, 126532, 126532, 1596, 6384, 0x0ba07921
+0, 128128, 128128, 1624, 6496, 0xcfbecfab
+0, 129752, 129752, 1596, 6384, 0xae4cedcd
+0, 131348, 131348, 1596, 6384, 0x917b4707
+0, 132944, 132944, 1596, 6384, 0x8671b28e
+0, 134540, 134540, 1596, 6384, 0x9a1238fa
+0, 136136, 136136, 1624, 6496, 0x23b8f8ca
+0, 137760, 137760, 1596, 6384, 0x3903bcd6
+0, 139356, 139356, 1596, 6384, 0x0532b267
+0, 140952, 140952, 1596, 6384, 0xde931220
+0, 142548, 142548, 1596, 6384, 0x4ed70a80
+0, 144144, 144144, 1624, 6496, 0x4a52d5a1
+0, 145768, 145768, 1596, 6384, 0xc1be5760
+0, 147364, 147364, 1596, 6384, 0x790d69ba
+0, 148960, 148960, 1596, 6384, 0x9d73e6cf
+0, 150556, 150556, 1568, 6272, 0xbc0fc725
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ea-r2 b/ffmpeg1/tests/ref/fate/adpcm-ea-r2
new file mode 100644
index 0000000..4bca11f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ea-r2
@@ -0,0 +1 @@
+CRC=0xa1158634
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ea-r3 b/ffmpeg1/tests/ref/fate/adpcm-ea-r3
new file mode 100644
index 0000000..920a4d0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ea-r3
@@ -0,0 +1 @@
+CRC=0x9ea2507f
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-amv b/ffmpeg1/tests/ref/fate/adpcm-ima-amv
new file mode 100644
index 0000000..ca7a168
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-amv
@@ -0,0 +1,161 @@
+#tb 0: 1/22050
+0, 0, 0, 1378, 2756, 0x0af35034
+0, 1378, 1378, 1378, 2756, 0x8462443f
+0, 2756, 2756, 1378, 2756, 0x9f493ba6
+0, 4134, 4134, 1378, 2756, 0x634e5f06
+0, 5512, 5512, 1380, 2760, 0x51f35cd4
+0, 6892, 6892, 1378, 2756, 0x011c51e5
+0, 8270, 8270, 1378, 2756, 0x8c2c198c
+0, 9648, 9648, 1378, 2756, 0x2b4a3397
+0, 11026, 11026, 1378, 2756, 0x63794f22
+0, 12404, 12404, 1378, 2756, 0xfc363898
+0, 13782, 13782, 1378, 2756, 0x0da5486e
+0, 15160, 15160, 1378, 2756, 0xbae17a5f
+0, 16538, 16538, 1380, 2760, 0xba266e1b
+0, 17918, 17918, 1378, 2756, 0xdfb61002
+0, 19296, 19296, 1378, 2756, 0x15d029da
+0, 20674, 20674, 1378, 2756, 0x7bc82012
+0, 22052, 22052, 1378, 2756, 0x002e6999
+0, 23430, 23430, 1378, 2756, 0x96346ba6
+0, 24808, 24808, 1378, 2756, 0x3d54543b
+0, 26186, 26186, 1380, 2760, 0x601786e1
+0, 27566, 27566, 1378, 2756, 0xf22a5793
+0, 28944, 28944, 1378, 2756, 0x21f54d49
+0, 30322, 30322, 1378, 2756, 0x0c6d4399
+0, 31700, 31700, 1378, 2756, 0x17282f8e
+0, 33078, 33078, 1378, 2756, 0xeb698f75
+0, 34456, 34456, 1378, 2756, 0x935e1de2
+0, 35834, 35834, 1380, 2760, 0xb6fb4293
+0, 37214, 37214, 1378, 2756, 0x485053dc
+0, 38592, 38592, 1378, 2756, 0x24c35027
+0, 39970, 39970, 1378, 2756, 0x09f323ee
+0, 41348, 41348, 1378, 2756, 0xbc7d58d5
+0, 42726, 42726, 1378, 2756, 0xaefd487c
+0, 44104, 44104, 1378, 2756, 0xaca16cc0
+0, 45482, 45482, 1380, 2760, 0x98a76091
+0, 46862, 46862, 1378, 2756, 0x5d357141
+0, 48240, 48240, 1378, 2756, 0x65ea2657
+0, 49618, 49618, 1378, 2756, 0xb5e1334a
+0, 50996, 50996, 1378, 2756, 0x32cd5d91
+0, 52374, 52374, 1378, 2756, 0xdc23722b
+0, 53752, 53752, 1378, 2756, 0x2ba34684
+0, 55130, 55130, 1378, 2756, 0xf9755ba8
+0, 56508, 56508, 1380, 2760, 0x24221ddb
+0, 57888, 57888, 1378, 2756, 0xef843aa4
+0, 59266, 59266, 1378, 2756, 0x420442fe
+0, 60644, 60644, 1378, 2756, 0x5a0933cb
+0, 62022, 62022, 1378, 2756, 0xef5f6d61
+0, 63400, 63400, 1378, 2756, 0xe57e6dc0
+0, 64778, 64778, 1378, 2756, 0xc0f0495a
+0, 66156, 66156, 1380, 2760, 0x2c3b55df
+0, 67536, 67536, 1378, 2756, 0x39c2586c
+0, 68914, 68914, 1378, 2756, 0x7ffc46e5
+0, 70292, 70292, 1378, 2756, 0xa2766664
+0, 71670, 71670, 1378, 2756, 0xacb50c6c
+0, 73048, 73048, 1378, 2756, 0x7f659084
+0, 74426, 74426, 1378, 2756, 0xc72e6a12
+0, 75804, 75804, 1380, 2760, 0xdb6944df
+0, 77184, 77184, 1378, 2756, 0x954f45c1
+0, 78562, 78562, 1378, 2756, 0xa9484240
+0, 79940, 79940, 1378, 2756, 0x1d595349
+0, 81318, 81318, 1378, 2756, 0xcf2a565e
+0, 82696, 82696, 1378, 2756, 0x391028d5
+0, 84074, 84074, 1378, 2756, 0x348db7ad
+0, 85452, 85452, 1380, 2760, 0xb69b5e3a
+0, 86832, 86832, 1378, 2756, 0xe3635fbe
+0, 88210, 88210, 1378, 2756, 0xdcad3654
+0, 89588, 89588, 1378, 2756, 0x5c17abef
+0, 90966, 90966, 1378, 2756, 0xb3235184
+0, 92344, 92344, 1378, 2756, 0xdabb64a6
+0, 93722, 93722, 1378, 2756, 0xa95dc58d
+0, 95100, 95100, 1380, 2760, 0x8e7ac9eb
+0, 96480, 96480, 1378, 2756, 0x492b658e
+0, 97858, 97858, 1378, 2756, 0x377483ab
+0, 99236, 99236, 1378, 2756, 0x2c250279
+0, 100614, 100614, 1378, 2756, 0x704dbdb3
+0, 101992, 101992, 1378, 2756, 0x800d7da2
+0, 103370, 103370, 1378, 2756, 0x872aa32e
+0, 104748, 104748, 1378, 2756, 0x2d4837fe
+0, 106126, 106126, 1380, 2760, 0xc89ea57e
+0, 107506, 107506, 1378, 2756, 0x6447d7ef
+0, 108884, 108884, 1378, 2756, 0x144f59cc
+0, 110262, 110262, 1378, 2756, 0xc667154e
+0, 111640, 111640, 1378, 2756, 0xf0de66ae
+0, 113018, 113018, 1378, 2756, 0xeabf3c32
+0, 114396, 114396, 1378, 2756, 0xe98e81d1
+0, 115774, 115774, 1380, 2760, 0x56aa5889
+0, 117154, 117154, 1378, 2756, 0x4fd34c0e
+0, 118532, 118532, 1378, 2756, 0x67cf6912
+0, 119910, 119910, 1378, 2756, 0xfa944def
+0, 121288, 121288, 1378, 2756, 0xc12f23b2
+0, 122666, 122666, 1378, 2756, 0x5ea325a2
+0, 124044, 124044, 1378, 2756, 0x2b245824
+0, 125422, 125422, 1380, 2760, 0x90ac533e
+0, 126802, 126802, 1378, 2756, 0xcca34d26
+0, 128180, 128180, 1378, 2756, 0xb5f820d0
+0, 129558, 129558, 1378, 2756, 0x27f24335
+0, 130936, 130936, 1378, 2756, 0x4a9e87b7
+0, 132314, 132314, 1378, 2756, 0xbd076129
+0, 133692, 133692, 1378, 2756, 0x2e0e3f2e
+0, 135070, 135070, 1380, 2760, 0xdf534478
+0, 136450, 136450, 1378, 2756, 0xca000a2e
+0, 137828, 137828, 1378, 2756, 0x87472df3
+0, 139206, 139206, 1378, 2756, 0x16733810
+0, 140584, 140584, 1378, 2756, 0xfa0734b4
+0, 141962, 141962, 1378, 2756, 0x5eff3fc4
+0, 143340, 143340, 1378, 2756, 0xf35346bd
+0, 144718, 144718, 1378, 2756, 0xac6411c5
+0, 146096, 146096, 1380, 2760, 0x478c3c56
+0, 147476, 147476, 1378, 2756, 0xebd30bdd
+0, 148854, 148854, 1378, 2756, 0xaef95a31
+0, 150232, 150232, 1378, 2756, 0x8aad29d1
+0, 151610, 151610, 1378, 2756, 0x626863f0
+0, 152988, 152988, 1378, 2756, 0x68c05707
+0, 154366, 154366, 1378, 2756, 0x437c5e8d
+0, 155744, 155744, 1380, 2760, 0x8eca4bdb
+0, 157124, 157124, 1378, 2756, 0x62bd4162
+0, 158502, 158502, 1378, 2756, 0x9f744aa4
+0, 159880, 159880, 1378, 2756, 0x0f3f6409
+0, 161258, 161258, 1378, 2756, 0x3fee827a
+0, 162636, 162636, 1378, 2756, 0x48a0ac19
+0, 164014, 164014, 1378, 2756, 0x8e4ce0d0
+0, 165392, 165392, 1380, 2760, 0xcda82236
+0, 166772, 166772, 1378, 2756, 0x0e523255
+0, 168150, 168150, 1378, 2756, 0x84103d30
+0, 169528, 169528, 1378, 2756, 0x13941cde
+0, 170906, 170906, 1378, 2756, 0x9fc834c5
+0, 172284, 172284, 1378, 2756, 0xc0217a77
+0, 173662, 173662, 1378, 2756, 0x3f643659
+0, 175040, 175040, 1380, 2760, 0x9dbd6002
+0, 176420, 176420, 1378, 2756, 0x94f046fb
+0, 177798, 177798, 1378, 2756, 0xab01fb12
+0, 179176, 179176, 1378, 2756, 0x04cffe5c
+0, 180554, 180554, 1378, 2756, 0xef661c5e
+0, 181932, 181932, 1378, 2756, 0x094c5fc5
+0, 183310, 183310, 1378, 2756, 0xe0c1486a
+0, 184688, 184688, 1380, 2760, 0x8c3535b7
+0, 186068, 186068, 1378, 2756, 0x594934aa
+0, 187446, 187446, 1378, 2756, 0x74007238
+0, 188824, 188824, 1378, 2756, 0x61f1394d
+0, 190202, 190202, 1378, 2756, 0x72584f07
+0, 191580, 191580, 1378, 2756, 0xced9acf9
+0, 192958, 192958, 1378, 2756, 0x7d2e3ea1
+0, 194336, 194336, 1378, 2756, 0x56c06897
+0, 195714, 195714, 1380, 2760, 0x19983bbf
+0, 197094, 197094, 1378, 2756, 0x4f884f27
+0, 198472, 198472, 1378, 2756, 0x81ab2f63
+0, 199850, 199850, 1378, 2756, 0x448e681d
+0, 201228, 201228, 1378, 2756, 0x0ba9826e
+0, 202606, 202606, 1378, 2756, 0x049f36fa
+0, 203984, 203984, 1378, 2756, 0x096a2b62
+0, 205362, 205362, 1380, 2760, 0x579e2035
+0, 206742, 206742, 1378, 2756, 0xd13e30e1
+0, 208120, 208120, 1378, 2756, 0x30b6412b
+0, 209498, 209498, 1378, 2756, 0xbb1c3268
+0, 210876, 210876, 1378, 2756, 0xbc175b6a
+0, 212254, 212254, 1378, 2756, 0xf8d160e2
+0, 213632, 213632, 1378, 2756, 0xc1048154
+0, 215010, 215010, 1380, 2760, 0xb83548f4
+0, 216390, 216390, 1378, 2756, 0x22647962
+0, 217768, 217768, 1378, 2756, 0x14ca54d3
+0, 219146, 219146, 1378, 2756, 0x58754b3a
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-apc b/ffmpeg1/tests/ref/fate/adpcm-ima-apc
new file mode 100644
index 0000000..16e1dd6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-apc
@@ -0,0 +1 @@
+6dcee91d3364f389f804da7a25934b36
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-dk3 b/ffmpeg1/tests/ref/fate/adpcm-ima-dk3
new file mode 100644
index 0000000..08c0fd1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-dk3
@@ -0,0 +1 @@
+62fbe4db4a49cb044f57f92cce9993c5
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-dk4 b/ffmpeg1/tests/ref/fate/adpcm-ima-dk4
new file mode 100644
index 0000000..d47ef20
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-dk4
@@ -0,0 +1 @@
+5234b53dde4961dd715a2524d6a8eb75
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-ea-eacs b/ffmpeg1/tests/ref/fate/adpcm-ima-ea-eacs
new file mode 100644
index 0000000..9887296
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-ea-eacs
@@ -0,0 +1,48 @@
+#tb 0: 1/22050
+0, 0, 0, 1468, 5872, 0x00000000
+0, 1468, 1468, 1468, 5872, 0x00000000
+0, 2936, 2936, 1468, 5872, 0x00000000
+0, 4404, 4404, 1468, 5872, 0x00000000
+0, 5872, 5872, 1468, 5872, 0x00000000
+0, 7340, 7340, 1468, 5872, 0x00000000
+0, 8808, 8808, 1468, 5872, 0x00000000
+0, 10276, 10276, 1468, 5872, 0x00000000
+0, 11744, 11744, 1468, 5872, 0x00000000
+0, 13212, 13212, 1468, 5872, 0x00000000
+0, 14680, 14680, 1468, 5872, 0x00000000
+0, 16148, 16148, 1468, 5872, 0x00000000
+0, 17616, 17616, 1468, 5872, 0x00000000
+0, 19084, 19084, 1468, 5872, 0x00000000
+0, 20552, 20552, 1468, 5872, 0x00000000
+0, 22020, 22020, 1468, 5872, 0xc6f64777
+0, 23488, 23488, 1468, 5872, 0x7c9e60e8
+0, 24956, 24956, 1468, 5872, 0x46525c54
+0, 26424, 26424, 1468, 5872, 0x842796bb
+0, 27892, 27892, 1468, 5872, 0xb1f6cbd5
+0, 29360, 29360, 1468, 5872, 0x0261a74b
+0, 30828, 30828, 1468, 5872, 0x8218b1f9
+0, 32296, 32296, 1468, 5872, 0xd7a2cae6
+0, 33764, 33764, 1468, 5872, 0x69d34562
+0, 35232, 35232, 1468, 5872, 0x9303ec65
+0, 36700, 36700, 1468, 5872, 0xd5d963a1
+0, 38168, 38168, 1468, 5872, 0x0557e06f
+0, 39636, 39636, 1468, 5872, 0x1eb48b41
+0, 41104, 41104, 1468, 5872, 0x70f5ca3f
+0, 42572, 42572, 1468, 5872, 0xd39e5c5e
+0, 44040, 44040, 1468, 5872, 0x29c59140
+0, 45508, 45508, 1468, 5872, 0x7d95e643
+0, 46976, 46976, 1468, 5872, 0x45353fd8
+0, 48444, 48444, 1468, 5872, 0xad7b1b27
+0, 49912, 49912, 1468, 5872, 0x1f0377b3
+0, 51380, 51380, 1468, 5872, 0x6074541e
+0, 52848, 52848, 1468, 5872, 0xa4f5e892
+0, 54316, 54316, 1468, 5872, 0x084bc696
+0, 55784, 55784, 1468, 5872, 0x67fdafce
+0, 57252, 57252, 1468, 5872, 0x8dfd249d
+0, 58720, 58720, 1468, 5872, 0x514184ee
+0, 60188, 60188, 1468, 5872, 0xc0090b0d
+0, 61656, 61656, 1468, 5872, 0xc1171cc8
+0, 63124, 63124, 1468, 5872, 0x7d7dd07e
+0, 64592, 64592, 1468, 5872, 0xe6aa619c
+0, 66060, 66060, 1468, 5872, 0xd5aac0df
+0, 67528, 67528, 1468, 5872, 0x3b68b390
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-ea-sead b/ffmpeg1/tests/ref/fate/adpcm-ima-ea-sead
new file mode 100644
index 0000000..17c1087
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-ea-sead
@@ -0,0 +1,50 @@
+#tb 0: 1/22050
+0, 0, 0, 736, 2944, 0x00000000
+0, 736, 736, 1472, 5888, 0x5ae3c2a4
+0, 2208, 2208, 1472, 5888, 0x158fbcb4
+0, 3680, 3680, 1472, 5888, 0x3fc85d35
+0, 5152, 5152, 1472, 5888, 0x4667ec2b
+0, 6624, 6624, 1472, 5888, 0x82744494
+0, 8096, 8096, 1472, 5888, 0x3b0cb86f
+0, 9568, 9568, 1472, 5888, 0x29493fbb
+0, 11040, 11040, 1472, 5888, 0xaa2d8595
+0, 12512, 12512, 1472, 5888, 0x2e563de6
+0, 13984, 13984, 1472, 5888, 0x225cca99
+0, 15456, 15456, 1472, 5888, 0x2b577599
+0, 16928, 16928, 1472, 5888, 0x3d967f32
+0, 18400, 18400, 1472, 5888, 0x16639a84
+0, 19872, 19872, 1472, 5888, 0x90549ba0
+0, 21344, 21344, 1472, 5888, 0xf46e6644
+0, 22816, 22816, 1472, 5888, 0x39a073ec
+0, 24288, 24288, 1472, 5888, 0xb1d7a93a
+0, 25760, 25760, 1472, 5888, 0x25e9795b
+0, 27232, 27232, 1472, 5888, 0xbbc07644
+0, 28704, 28704, 1472, 5888, 0x323f6a1b
+0, 30176, 30176, 1472, 5888, 0x7cae130b
+0, 31648, 31648, 1472, 5888, 0xd23bf9c6
+0, 33120, 33120, 1472, 5888, 0x5f73ef35
+0, 34592, 34592, 1472, 5888, 0xc66026be
+0, 36064, 36064, 1472, 5888, 0xc8fdb539
+0, 37536, 37536, 1472, 5888, 0x94c6bfbd
+0, 39008, 39008, 1472, 5888, 0xb77e1b83
+0, 40480, 40480, 1472, 5888, 0x6c6d6693
+0, 41952, 41952, 1472, 5888, 0xd9f064d4
+0, 43424, 43424, 1472, 5888, 0x85dd990d
+0, 44896, 44896, 1472, 5888, 0x385e021b
+0, 46368, 46368, 1472, 5888, 0xac09fd02
+0, 47840, 47840, 1472, 5888, 0xc6dcdff2
+0, 49312, 49312, 1472, 5888, 0x86a6944d
+0, 50784, 50784, 1472, 5888, 0x8587b964
+0, 52256, 52256, 1472, 5888, 0x2b0355ff
+0, 53728, 53728, 1472, 5888, 0xe4148a85
+0, 55200, 55200, 1472, 5888, 0xdf02ed4f
+0, 56672, 56672, 1472, 5888, 0x87a54b15
+0, 58144, 58144, 1472, 5888, 0x3ad2be45
+0, 59616, 59616, 1472, 5888, 0x3a49c2c3
+0, 61088, 61088, 1472, 5888, 0xc2b66404
+0, 62560, 62560, 1472, 5888, 0xac3e234a
+0, 64032, 64032, 1472, 5888, 0x5dcf523b
+0, 65504, 65504, 1472, 5888, 0x2034b5d6
+0, 66976, 66976, 1472, 5888, 0x96882832
+0, 68448, 68448, 1472, 5888, 0x2be3d534
+0, 69920, 69920, 1472, 5888, 0xa841a49d
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-iss b/ffmpeg1/tests/ref/fate/adpcm-ima-iss
new file mode 100644
index 0000000..341ef24
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-iss
@@ -0,0 +1 @@
+816ca37c22e42f488fd787e3155e59ff
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-oki b/ffmpeg1/tests/ref/fate/adpcm-ima-oki
new file mode 100644
index 0000000..c6f1ee1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-oki
@@ -0,0 +1 @@
+641049800e735b62e975baacc9a011a4
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-smjpeg b/ffmpeg1/tests/ref/fate/adpcm-ima-smjpeg
new file mode 100644
index 0000000..3a746b6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-smjpeg
@@ -0,0 +1,351 @@
+#tb 0: 1/22050
+0, 0, 0, 512, 1024, 0x00000000
+0, 512, 512, 512, 1024, 0x00000000
+0, 1024, 1024, 512, 1024, 0xed2d3f6b
+0, 1533, 1533, 512, 1024, 0x51f6ccb3
+0, 2040, 2040, 512, 1024, 0x58bd75aa
+0, 2552, 2552, 512, 1024, 0xd857a310
+0, 3064, 3064, 512, 1024, 0xc483a5b8
+0, 3576, 3576, 512, 1024, 0x923ecf67
+0, 4088, 4088, 512, 1024, 0xf87dcd53
+0, 4598, 4598, 512, 1024, 0xdc32c002
+0, 5110, 5110, 512, 1024, 0xb760def1
+0, 5622, 5622, 512, 1024, 0x6838d2b2
+0, 6134, 6134, 512, 1024, 0xe45aca1e
+0, 6646, 6646, 512, 1024, 0xde1fb955
+0, 7158, 7158, 512, 1024, 0x9e23b949
+0, 7670, 7670, 512, 1024, 0x840cc000
+0, 8182, 8182, 512, 1024, 0x0a29cbfa
+0, 8694, 8694, 512, 1024, 0x9871d4c4
+0, 9206, 9206, 512, 1024, 0xb35dc9f2
+0, 9718, 9718, 512, 1024, 0xf37fda0a
+0, 10230, 10230, 512, 1024, 0xa640f990
+0, 10742, 10742, 512, 1024, 0x516fe6f5
+0, 11254, 11254, 512, 1024, 0xc78bc6a6
+0, 11766, 11766, 512, 1024, 0x700fd6ee
+0, 12278, 12278, 512, 1024, 0x5383d5ad
+0, 12790, 12790, 512, 1024, 0xbe01d091
+0, 13302, 13302, 512, 1024, 0x72dfcfc7
+0, 13814, 13814, 512, 1024, 0xd8fecea9
+0, 14326, 14326, 512, 1024, 0xa464d79b
+0, 14838, 14838, 512, 1024, 0xf394e2cb
+0, 15350, 15350, 512, 1024, 0xa301ec49
+0, 15862, 15862, 512, 1024, 0x5e09d60f
+0, 16374, 16374, 512, 1024, 0xd13edd6f
+0, 16886, 16886, 512, 1024, 0x7423ef39
+0, 17398, 17398, 512, 1024, 0x96e2f083
+0, 17910, 17910, 512, 1024, 0x5ed7dbee
+0, 18422, 18422, 512, 1024, 0x3874f714
+0, 18934, 18934, 512, 1024, 0xa5e6edab
+0, 19446, 19446, 512, 1024, 0x0a04ee3a
+0, 19958, 19958, 512, 1024, 0xadfee6b9
+0, 20470, 20470, 512, 1024, 0xd0bbe6d2
+0, 20982, 20982, 512, 1024, 0x223eebb7
+0, 21494, 21494, 512, 1024, 0x0473e479
+0, 22006, 22006, 512, 1024, 0xdf15e51e
+0, 22518, 22518, 512, 1024, 0xa954e483
+0, 23030, 23030, 512, 1024, 0x6df3ed03
+0, 23542, 23542, 512, 1024, 0x0860e544
+0, 24054, 24054, 512, 1024, 0xc241e8dc
+0, 24566, 24566, 512, 1024, 0xd0e1d6a4
+0, 25078, 25078, 512, 1024, 0xcb2ff988
+0, 25590, 25590, 512, 1024, 0x51fae08e
+0, 26102, 26102, 512, 1024, 0xae39f2fc
+0, 26614, 26614, 512, 1024, 0xfd74f07c
+0, 27126, 27126, 512, 1024, 0x1936edc1
+0, 27638, 27638, 512, 1024, 0x95f8deae
+0, 28150, 28150, 512, 1024, 0x93bdf605
+0, 28662, 28662, 512, 1024, 0x7a07dd32
+0, 29174, 29174, 512, 1024, 0x6889fdc1
+0, 29686, 29686, 512, 1024, 0x989bf024
+0, 30198, 30198, 512, 1024, 0xc764ce80
+0, 30710, 30710, 512, 1024, 0x0e62d721
+0, 31222, 31222, 512, 1024, 0x59c2fbe3
+0, 31734, 31734, 512, 1024, 0xf14ee29d
+0, 32246, 32246, 512, 1024, 0x02a0f21b
+0, 32758, 32758, 512, 1024, 0xadb3d361
+0, 33270, 33270, 512, 1024, 0xdcb3d1fc
+0, 33782, 33782, 512, 1024, 0x2924f9dc
+0, 34294, 34294, 512, 1024, 0x7507ebec
+0, 34806, 34806, 512, 1024, 0xe009f343
+0, 35318, 35318, 512, 1024, 0x21e9e7ac
+0, 35830, 35830, 512, 1024, 0x845bda9e
+0, 36342, 36342, 512, 1024, 0xb1b3e632
+0, 36854, 36854, 512, 1024, 0x61ccf593
+0, 37366, 37366, 512, 1024, 0x8cdbf603
+0, 37878, 37878, 512, 1024, 0xf8f7e673
+0, 38390, 38390, 512, 1024, 0x55efdd24
+0, 38902, 38902, 512, 1024, 0x4059e8ff
+0, 39414, 39414, 512, 1024, 0xb3afe5be
+0, 39926, 39926, 512, 1024, 0x7236e965
+0, 40438, 40438, 512, 1024, 0xe683db69
+0, 40950, 40950, 512, 1024, 0x29e3d93c
+0, 41462, 41462, 512, 1024, 0x74f2f27f
+0, 41974, 41974, 512, 1024, 0x32cde3ba
+0, 42486, 42486, 512, 1024, 0xe907f171
+0, 42998, 42998, 512, 1024, 0x206ae2a5
+0, 43510, 43510, 512, 1024, 0x6379efa1
+0, 44022, 44022, 512, 1024, 0x0f0fee85
+0, 44534, 44534, 512, 1024, 0x3195e314
+0, 45046, 45046, 512, 1024, 0x4646ead3
+0, 45558, 45558, 512, 1024, 0x5635dcf5
+0, 46070, 46070, 512, 1024, 0xd76fc780
+0, 46582, 46582, 512, 1024, 0x847ff8a5
+0, 47094, 47094, 512, 1024, 0xaca8eda3
+0, 47606, 47606, 512, 1024, 0x9a2de1ea
+0, 48118, 48118, 512, 1024, 0xc92ff23a
+0, 48630, 48630, 512, 1024, 0x0e0ef038
+0, 49142, 49142, 512, 1024, 0xc32cf495
+0, 49654, 49654, 512, 1024, 0x6ab1ec79
+0, 50166, 50166, 512, 1024, 0xe43cd8d6
+0, 50678, 50678, 512, 1024, 0x4ba2deab
+0, 51190, 51190, 512, 1024, 0x6d16ea0e
+0, 51702, 51702, 512, 1024, 0xe5b0ee70
+0, 52214, 52214, 512, 1024, 0xcf6cf074
+0, 52726, 52726, 512, 1024, 0x2206e61d
+0, 53238, 53238, 512, 1024, 0xfbb9e7e7
+0, 53750, 53750, 512, 1024, 0x2bc1e115
+0, 54262, 54262, 512, 1024, 0x4ca6e5c5
+0, 54774, 54774, 512, 1024, 0x061cead0
+0, 55286, 55286, 512, 1024, 0x3dc9f950
+0, 55798, 55798, 512, 1024, 0x9399f10d
+0, 56310, 56310, 512, 1024, 0xa2bff5ae
+0, 56822, 56822, 512, 1024, 0xd21de569
+0, 57334, 57334, 512, 1024, 0x1c45e3be
+0, 57846, 57846, 512, 1024, 0xff5dff1c
+0, 58358, 58358, 512, 1024, 0x992df5d3
+0, 58870, 58870, 512, 1024, 0xafedea2f
+0, 59382, 59382, 512, 1024, 0x6e73d6a8
+0, 59894, 59894, 512, 1024, 0x72dff283
+0, 60406, 60406, 512, 1024, 0x50b5f1a6
+0, 60918, 60918, 512, 1024, 0xffe1decb
+0, 61430, 61430, 512, 1024, 0x8993ecff
+0, 61942, 61942, 512, 1024, 0x954bd63a
+0, 62454, 62454, 512, 1024, 0x4707f577
+0, 62966, 62966, 512, 1024, 0x7a88f81f
+0, 63478, 63478, 512, 1024, 0xc771f537
+0, 63990, 63990, 512, 1024, 0x7aade6af
+0, 64502, 64502, 512, 1024, 0x8af5ede5
+0, 65014, 65014, 512, 1024, 0x7500f3f1
+0, 65526, 65526, 512, 1024, 0xea36f707
+0, 66038, 66038, 512, 1024, 0x1a26e39a
+0, 66550, 66550, 512, 1024, 0xa04cf00d
+0, 67062, 67062, 512, 1024, 0xc362f182
+0, 67574, 67574, 512, 1024, 0x79c8f82c
+0, 68086, 68086, 512, 1024, 0x6480eee1
+0, 68598, 68598, 512, 1024, 0x7152eaa0
+0, 69110, 69110, 512, 1024, 0x5dfee6a9
+0, 69622, 69622, 512, 1024, 0x0afae660
+0, 70134, 70134, 512, 1024, 0xdc98e9fc
+0, 70646, 70646, 512, 1024, 0x10b7da06
+0, 71158, 71158, 512, 1024, 0x0571e585
+0, 71670, 71670, 512, 1024, 0x18ddf45e
+0, 72182, 72182, 512, 1024, 0x2cbef242
+0, 72694, 72694, 512, 1024, 0xf5380845
+0, 73206, 73206, 512, 1024, 0x34fff45e
+0, 73718, 73718, 512, 1024, 0x6f97e490
+0, 74230, 74230, 512, 1024, 0x77d6f0db
+0, 74742, 74742, 512, 1024, 0xa25ce2db
+0, 75254, 75254, 512, 1024, 0x8260e4e9
+0, 75766, 75766, 512, 1024, 0xc3b2f7d2
+0, 76278, 76278, 512, 1024, 0x82a7edae
+0, 76790, 76790, 512, 1024, 0x7d08dd54
+0, 77302, 77302, 512, 1024, 0x9059eda6
+0, 77814, 77814, 512, 1024, 0xbebaec88
+0, 78326, 78326, 512, 1024, 0xd9afd586
+0, 78838, 78838, 512, 1024, 0x0ca3e622
+0, 79350, 79350, 512, 1024, 0x4123e9e6
+0, 79862, 79862, 512, 1024, 0x2ff9f95c
+0, 80374, 80374, 512, 1024, 0x8522e261
+0, 80886, 80886, 512, 1024, 0xe4f8f499
+0, 81398, 81398, 512, 1024, 0x34f3f2bd
+0, 81910, 81910, 512, 1024, 0x82efe863
+0, 82422, 82422, 512, 1024, 0x9966fcea
+0, 82934, 82934, 512, 1024, 0xe94de3fd
+0, 83446, 83446, 512, 1024, 0x1ce0e27b
+0, 83958, 83958, 512, 1024, 0xd718dcde
+0, 84470, 84470, 512, 1024, 0xd503e724
+0, 84982, 84982, 512, 1024, 0x427ee3b2
+0, 85494, 85494, 512, 1024, 0x4512dcc4
+0, 86006, 86006, 512, 1024, 0xcf31e77c
+0, 86518, 86518, 512, 1024, 0xeb41ea81
+0, 87030, 87030, 512, 1024, 0xfa43e67c
+0, 87542, 87542, 512, 1024, 0x8162f3c9
+0, 88054, 88054, 512, 1024, 0x1b55f6b0
+0, 88566, 88566, 512, 1024, 0x3ebeec44
+0, 89078, 89078, 512, 1024, 0x740fe0c4
+0, 89590, 89590, 512, 1024, 0x8fb4e8b2
+0, 90102, 90102, 512, 1024, 0xe49de6a2
+0, 90614, 90614, 512, 1024, 0xd64febdf
+0, 91126, 91126, 512, 1024, 0x0e74ee08
+0, 91638, 91638, 512, 1024, 0x6c0ddf07
+0, 92150, 92150, 512, 1024, 0x7fb8e3c9
+0, 92662, 92662, 512, 1024, 0x52bfe96c
+0, 93174, 93174, 512, 1024, 0xfc22ee64
+0, 93686, 93686, 512, 1024, 0xe20ae718
+0, 94198, 94198, 512, 1024, 0xa94be395
+0, 94710, 94710, 512, 1024, 0xded306d0
+0, 95222, 95222, 512, 1024, 0x31f7c831
+0, 95734, 95734, 512, 1024, 0x0ffde0a8
+0, 96246, 96246, 512, 1024, 0xc692e3e0
+0, 96758, 96758, 512, 1024, 0x1d8ff7c7
+0, 97270, 97270, 512, 1024, 0x038ee172
+0, 97782, 97782, 512, 1024, 0x9a1eef59
+0, 98294, 98294, 512, 1024, 0x158fe750
+0, 98806, 98806, 512, 1024, 0xac15e42c
+0, 99318, 99318, 512, 1024, 0x6323ed44
+0, 99830, 99830, 512, 1024, 0xd10ce4bb
+0, 100342, 100342, 512, 1024, 0xc1cce296
+0, 100854, 100854, 512, 1024, 0x0782f094
+0, 101366, 101366, 512, 1024, 0xd109de36
+0, 101878, 101878, 512, 1024, 0x175600fb
+0, 102390, 102390, 512, 1024, 0x95d5e8d9
+0, 102902, 102902, 512, 1024, 0xebb6eee1
+0, 103414, 103414, 512, 1024, 0x187cfadc
+0, 103926, 103926, 512, 1024, 0xce35fa5c
+0, 104438, 104438, 512, 1024, 0x8327eea2
+0, 104950, 104950, 512, 1024, 0x5543f219
+0, 105462, 105462, 512, 1024, 0xaacbe0dc
+0, 105974, 105974, 512, 1024, 0xa538e9fb
+0, 106486, 106486, 512, 1024, 0x4dcbe655
+0, 106998, 106998, 512, 1024, 0x86b6d93b
+0, 107510, 107510, 512, 1024, 0x1a06f878
+0, 108022, 108022, 512, 1024, 0xd926e8ef
+0, 108534, 108534, 512, 1024, 0xc624db2f
+0, 109046, 109046, 512, 1024, 0x2153e20d
+0, 109558, 109558, 512, 1024, 0x01dce868
+0, 110070, 110070, 512, 1024, 0xfa5fd3cd
+0, 110582, 110582, 512, 1024, 0x2adef2d5
+0, 111094, 111094, 512, 1024, 0x4f48f8e2
+0, 111606, 111606, 512, 1024, 0x613feeee
+0, 112118, 112118, 512, 1024, 0x3780de8a
+0, 112630, 112630, 512, 1024, 0x2093eb65
+0, 113142, 113142, 512, 1024, 0x54baebbb
+0, 113654, 113654, 512, 1024, 0x8686dd7c
+0, 114166, 114166, 512, 1024, 0x7f8ae80c
+0, 114678, 114678, 512, 1024, 0x7aede972
+0, 115190, 115190, 512, 1024, 0x971bebc0
+0, 115702, 115702, 512, 1024, 0x2dd5fd4b
+0, 116214, 116214, 512, 1024, 0xb1b3e4a3
+0, 116726, 116726, 512, 1024, 0x192defc6
+0, 117238, 117238, 512, 1024, 0x5e46ec44
+0, 117750, 117750, 512, 1024, 0xe6d8e05a
+0, 118262, 118262, 512, 1024, 0x7e2fe2b0
+0, 118774, 118774, 512, 1024, 0x9e3bdf80
+0, 119286, 119286, 512, 1024, 0xa98cd85e
+0, 119798, 119798, 512, 1024, 0x6061e0c4
+0, 120310, 120310, 512, 1024, 0x6112f3fc
+0, 120822, 120822, 512, 1024, 0x99bdfb01
+0, 121334, 121334, 512, 1024, 0x3f5df3ca
+0, 121846, 121846, 512, 1024, 0xf5ebeb05
+0, 122358, 122358, 512, 1024, 0x8498e565
+0, 122870, 122870, 512, 1024, 0x0497f0b7
+0, 123382, 123382, 512, 1024, 0x626ae800
+0, 123894, 123894, 512, 1024, 0xfb71eec4
+0, 124406, 124406, 512, 1024, 0xa86ee739
+0, 124918, 124918, 512, 1024, 0x25c0e050
+0, 125430, 125430, 512, 1024, 0x6027e91e
+0, 125942, 125942, 512, 1024, 0x6772df6e
+0, 126454, 126454, 512, 1024, 0xfefff844
+0, 126966, 126966, 512, 1024, 0x547be862
+0, 127478, 127478, 512, 1024, 0xca84e795
+0, 127990, 127990, 512, 1024, 0xd124db3e
+0, 128502, 128502, 512, 1024, 0xcaf3deb5
+0, 129014, 129014, 512, 1024, 0x487ce92d
+0, 129526, 129526, 512, 1024, 0x117feb95
+0, 130038, 130038, 512, 1024, 0x7b63de3d
+0, 130550, 130550, 512, 1024, 0xa529d8e1
+0, 131062, 131062, 512, 1024, 0x56f6da26
+0, 131574, 131574, 512, 1024, 0xffb8d5af
+0, 132086, 132086, 512, 1024, 0xeecbdc04
+0, 132598, 132598, 512, 1024, 0xfc59d2d2
+0, 133110, 133110, 512, 1024, 0xaf7acef7
+0, 133622, 133622, 512, 1024, 0x3f9bf258
+0, 134134, 134134, 512, 1024, 0xcf54e9d6
+0, 134646, 134646, 512, 1024, 0x680cd0aa
+0, 135158, 135158, 512, 1024, 0x3c1bdc1f
+0, 135670, 135670, 512, 1024, 0x8c8ffe22
+0, 136182, 136182, 512, 1024, 0xf415d362
+0, 136694, 136694, 512, 1024, 0x8c8cdaa9
+0, 137206, 137206, 512, 1024, 0x9531e9f1
+0, 137718, 137718, 512, 1024, 0x223ce536
+0, 138230, 138230, 512, 1024, 0xdfbce5f9
+0, 138742, 138742, 512, 1024, 0x20b6ed7d
+0, 139254, 139254, 512, 1024, 0x1a17e109
+0, 139766, 139766, 512, 1024, 0xc672eaea
+0, 140278, 140278, 512, 1024, 0x12a7dc5e
+0, 140790, 140790, 512, 1024, 0x4497f342
+0, 141302, 141302, 512, 1024, 0xdfb5db4b
+0, 141814, 141814, 512, 1024, 0xde48ef6c
+0, 142326, 142326, 512, 1024, 0x1d98e316
+0, 142838, 142838, 512, 1024, 0xbd2ad72f
+0, 143350, 143350, 512, 1024, 0xf1aad776
+0, 143862, 143862, 512, 1024, 0x4db3e3c0
+0, 144374, 144374, 512, 1024, 0x832de0a0
+0, 144886, 144886, 512, 1024, 0xc5f0ef25
+0, 145398, 145398, 512, 1024, 0x419bda6e
+0, 145910, 145910, 512, 1024, 0x5de7f77e
+0, 146422, 146422, 512, 1024, 0x0063ec9a
+0, 146934, 146934, 512, 1024, 0x10c3d470
+0, 147446, 147446, 512, 1024, 0xba66d226
+0, 147958, 147958, 512, 1024, 0xea47ded3
+0, 148470, 148470, 512, 1024, 0x6202d67b
+0, 148982, 148982, 512, 1024, 0x3f80e7cf
+0, 149494, 149494, 512, 1024, 0x4e64eaae
+0, 150006, 150006, 512, 1024, 0x2108e83d
+0, 150518, 150518, 512, 1024, 0x38c3dec1
+0, 151030, 151030, 512, 1024, 0x46d3f77a
+0, 151542, 151542, 512, 1024, 0x4838e787
+0, 152054, 152054, 512, 1024, 0xc71df16d
+0, 152566, 152566, 512, 1024, 0xdbe4ebbd
+0, 153078, 153078, 512, 1024, 0xa156d07b
+0, 153590, 153590, 512, 1024, 0x34eddc80
+0, 154102, 154102, 512, 1024, 0xe840e87c
+0, 154614, 154614, 512, 1024, 0x6accf8f5
+0, 155126, 155126, 512, 1024, 0xa1dbebb9
+0, 155638, 155638, 512, 1024, 0x6d07d98c
+0, 156150, 156150, 512, 1024, 0x94c7e805
+0, 156662, 156662, 512, 1024, 0x5199e586
+0, 157174, 157174, 512, 1024, 0xe797e1aa
+0, 157686, 157686, 512, 1024, 0xff19eda7
+0, 158198, 158198, 512, 1024, 0x9cb9d040
+0, 158710, 158710, 512, 1024, 0xaeedd325
+0, 159222, 159222, 512, 1024, 0xf5ade306
+0, 159734, 159734, 512, 1024, 0x54a5e129
+0, 160246, 160246, 512, 1024, 0x6665ddeb
+0, 160758, 160758, 512, 1024, 0x9d18e033
+0, 161270, 161270, 512, 1024, 0x7f23df74
+0, 161782, 161782, 512, 1024, 0x7c34f158
+0, 162294, 162294, 512, 1024, 0x47f6dae2
+0, 162806, 162806, 512, 1024, 0x5ffdd903
+0, 163318, 163318, 512, 1024, 0x8233d108
+0, 163830, 163830, 512, 1024, 0x45c6e20d
+0, 164342, 164342, 512, 1024, 0xae11fa6e
+0, 164854, 164854, 512, 1024, 0xa30defd2
+0, 165366, 165366, 512, 1024, 0xfc1ecccf
+0, 165878, 165878, 512, 1024, 0x920edc94
+0, 166390, 166390, 512, 1024, 0xd7f3dc58
+0, 166902, 166902, 512, 1024, 0x4972d37d
+0, 167414, 167414, 512, 1024, 0xfefef358
+0, 167926, 167926, 512, 1024, 0x3648e473
+0, 168438, 168438, 512, 1024, 0x58dee6c3
+0, 168950, 168950, 512, 1024, 0x9cc6df27
+0, 169462, 169462, 512, 1024, 0x6adfe99c
+0, 169974, 169974, 512, 1024, 0x6a56e11f
+0, 170486, 170486, 512, 1024, 0x4860edf1
+0, 170998, 170998, 512, 1024, 0x9132f10a
+0, 171510, 171510, 512, 1024, 0x3e09d209
+0, 172022, 172022, 512, 1024, 0x4b6bf4d8
+0, 172534, 172534, 512, 1024, 0x0cd5e838
+0, 173046, 173046, 512, 1024, 0x080be078
+0, 173558, 173558, 512, 1024, 0xfdb0e31c
+0, 174070, 174070, 512, 1024, 0xced5e7bd
+0, 174582, 174582, 512, 1024, 0x65b3e435
+0, 175094, 175094, 512, 1024, 0x5b5bfe2e
+0, 175606, 175606, 512, 1024, 0xa8bde3cb
+0, 176118, 176118, 512, 1024, 0xfd0fdefa
+0, 176630, 176630, 512, 1024, 0xbec4ef95
+0, 177142, 177142, 512, 1024, 0x683ad8dd
+0, 177654, 177654, 512, 1024, 0x8eefeb77
+0, 178166, 178166, 512, 1024, 0x84fc5878
+0, 178678, 178678, 512, 1024, 0x9a0ded60
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima-ws b/ffmpeg1/tests/ref/fate/adpcm-ima-ws
new file mode 100644
index 0000000..61e0def
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima-ws
@@ -0,0 +1,41 @@
+#tb 0: 1/22050
+0, 0, 0, 11024, 22048, 0x0665d7f4
+0, 11024, 11024, 1470, 2940, 0x0f3c64cb
+0, 12494, 12494, 1470, 2940, 0xc90b9e78
+0, 13964, 13964, 1470, 2940, 0x146246a3
+0, 15434, 15434, 1470, 2940, 0xd22c714e
+0, 16904, 16904, 1470, 2940, 0xd86b681e
+0, 18374, 18374, 1470, 2940, 0x12ec8186
+0, 19844, 19844, 1470, 2940, 0x69aa85b6
+0, 21314, 21314, 1470, 2940, 0xb24d33b0
+0, 22784, 22784, 1470, 2940, 0x3f7b0f0d
+0, 24254, 24254, 1470, 2940, 0x64f10f7e
+0, 25724, 25724, 1470, 2940, 0xd6ea379a
+0, 27194, 27194, 1470, 2940, 0x7c38e830
+0, 28664, 28664, 1470, 2940, 0xc28ff132
+0, 30134, 30134, 1470, 2940, 0xe7b11629
+0, 31604, 31604, 1470, 2940, 0xeb86fdcb
+0, 33074, 33074, 1470, 2940, 0x5508f586
+0, 34544, 34544, 1470, 2940, 0xf4fa1f1b
+0, 36014, 36014, 1470, 2940, 0x9e5ff976
+0, 37484, 37484, 1470, 2940, 0xcfc4e08f
+0, 38954, 38954, 1470, 2940, 0x74bde7ed
+0, 40424, 40424, 1470, 2940, 0x3e4ae245
+0, 41894, 41894, 1470, 2940, 0x4c6a8e56
+0, 43364, 43364, 1470, 2940, 0xa09d86ab
+0, 44834, 44834, 1470, 2940, 0xc8531912
+0, 46304, 46304, 1470, 2940, 0xa5f266aa
+0, 47774, 47774, 1470, 2940, 0x587a4187
+0, 49244, 49244, 1470, 2940, 0x14752d45
+0, 50714, 50714, 1470, 2940, 0x558cde10
+0, 52184, 52184, 1470, 2940, 0x735fee38
+0, 53654, 53654, 1470, 2940, 0xac8bb6c8
+0, 55124, 55124, 1470, 2940, 0xa503c73b
+0, 56594, 56594, 1470, 2940, 0x7cd588a3
+0, 58064, 58064, 1470, 2940, 0xa6974b04
+0, 59534, 59534, 1470, 2940, 0xbf448241
+0, 61004, 61004, 1470, 2940, 0x2a5c2759
+0, 62474, 62474, 1470, 2940, 0xd0de5ce0
+0, 63944, 63944, 1470, 2940, 0xc0486649
+0, 65414, 65414, 1470, 2940, 0x48b040af
+0, 66884, 66884, 1470, 2940, 0x82a338a9
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ima_wav-stereo b/ffmpeg1/tests/ref/fate/adpcm-ima_wav-stereo
new file mode 100644
index 0000000..cb6a481
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ima_wav-stereo
@@ -0,0 +1 @@
+1ee96f1efc09251a732621049dc5b66e
diff --git a/ffmpeg1/tests/ref/fate/adpcm-ms-mono b/ffmpeg1/tests/ref/fate/adpcm-ms-mono
new file mode 100644
index 0000000..3bf44f8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-ms-mono
@@ -0,0 +1,46 @@
+#tb 0: 1/11025
+0, 0, 0, 500, 1000, 0x64cd9403
+0, 500, 500, 500, 1000, 0xa4ef8a9d
+0, 1000, 1000, 500, 1000, 0x75c19868
+0, 1500, 1500, 500, 1000, 0x93db6f79
+0, 2000, 2000, 500, 1000, 0x6835625d
+0, 2500, 2500, 500, 1000, 0xb3affa8f
+0, 3000, 3000, 500, 1000, 0x159fdcc8
+0, 3500, 3500, 500, 1000, 0x79f9f7f1
+0, 4000, 4000, 500, 1000, 0xd7d1131e
+0, 4500, 4500, 500, 1000, 0x52a6f797
+0, 5000, 5000, 500, 1000, 0x748202ca
+0, 5500, 5500, 500, 1000, 0x0ef92449
+0, 6000, 6000, 500, 1000, 0x6a3760ab
+0, 6500, 6500, 500, 1000, 0xce5c5abf
+0, 7000, 7000, 500, 1000, 0x23396792
+0, 7500, 7500, 500, 1000, 0xa5276238
+0, 8000, 8000, 500, 1000, 0x288adf1b
+0, 8500, 8500, 500, 1000, 0xe7de6fb2
+0, 9000, 9000, 500, 1000, 0x2c2c707f
+0, 9500, 9500, 500, 1000, 0xd66d6daf
+0, 10000, 10000, 500, 1000, 0xbcea7d64
+0, 10500, 10500, 500, 1000, 0x766feea5
+0, 11000, 11000, 500, 1000, 0xd2e1d63a
+0, 11500, 11500, 500, 1000, 0x2f7ef4ed
+0, 12000, 12000, 500, 1000, 0xb655cba4
+0, 12500, 12500, 500, 1000, 0x4507d37b
+0, 13000, 13000, 500, 1000, 0x0c57f794
+0, 13500, 13500, 500, 1000, 0x0ecbe5cc
+0, 14000, 14000, 500, 1000, 0x9bf6e345
+0, 14500, 14500, 500, 1000, 0xc461443c
+0, 15000, 15000, 500, 1000, 0xad9657bf
+0, 15500, 15500, 500, 1000, 0x466fe91c
+0, 16000, 16000, 500, 1000, 0x9ee377fe
+0, 16500, 16500, 500, 1000, 0x09956428
+0, 17000, 17000, 500, 1000, 0x9b285f0a
+0, 17500, 17500, 500, 1000, 0x0a3e61a6
+0, 18000, 18000, 500, 1000, 0xacc25d6b
+0, 18500, 18500, 500, 1000, 0x377be319
+0, 19000, 19000, 500, 1000, 0xe4890504
+0, 19500, 19500, 500, 1000, 0xe90a6497
+0, 20000, 20000, 500, 1000, 0xd00fe950
+0, 20500, 20500, 500, 1000, 0xf195eb44
+0, 21000, 21000, 500, 1000, 0xa491f3ef
+0, 21500, 21500, 500, 1000, 0x2c036e18
+0, 22000, 22000, 500, 1000, 0x52d65e2a
diff --git a/ffmpeg1/tests/ref/fate/adpcm-thp b/ffmpeg1/tests/ref/fate/adpcm-thp
new file mode 100644
index 0000000..72aff61
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-thp
@@ -0,0 +1,72 @@
+#tb 0: 1/32000
+0, 0, 0, 1078, 4312, 0x469714f6
+0, 1078, 1078, 1064, 4256, 0xe03dd882
+0, 2142, 2142, 1078, 4312, 0x46b901f7
+0, 3220, 3220, 1064, 4256, 0x8d4a54e4
+0, 4284, 4284, 1064, 4256, 0xfd616b67
+0, 5348, 5348, 1078, 4312, 0xefe62302
+0, 6426, 6426, 1064, 4256, 0xab11684e
+0, 7490, 7490, 1064, 4256, 0xb4b3feb8
+0, 8554, 8554, 1078, 4312, 0x71db6461
+0, 9632, 9632, 1064, 4256, 0x090e5efa
+0, 10696, 10696, 1064, 4256, 0x36f49c28
+0, 11760, 11760, 1078, 4312, 0x0fe3d262
+0, 12838, 12838, 1064, 4256, 0x199ce269
+0, 13902, 13902, 1064, 4256, 0x98342d05
+0, 14966, 14966, 1078, 4312, 0xb6fb7ebe
+0, 16044, 16044, 1064, 4256, 0x033dd562
+0, 17108, 17108, 1064, 4256, 0xc2cc17e0
+0, 18172, 18172, 1078, 4312, 0x4bb3ff50
+0, 19250, 19250, 1064, 4256, 0x6f2671ef
+0, 20314, 20314, 1064, 4256, 0x5a337bf4
+0, 21378, 21378, 1078, 4312, 0xa71f6967
+0, 22456, 22456, 1064, 4256, 0x48084aa9
+0, 23520, 23520, 1064, 4256, 0x3cce4218
+0, 24584, 24584, 1078, 4312, 0xcbb8f73d
+0, 25662, 25662, 1064, 4256, 0x36825021
+0, 26726, 26726, 1064, 4256, 0xeae036c6
+0, 27790, 27790, 1078, 4312, 0x0d650ac6
+0, 28868, 28868, 1064, 4256, 0xfba4f58c
+0, 29932, 29932, 1064, 4256, 0x54311f9b
+0, 30996, 30996, 1078, 4312, 0x286386b3
+0, 32074, 32074, 1064, 4256, 0x871896de
+0, 33138, 33138, 1064, 4256, 0x9ef9f970
+0, 34202, 34202, 1078, 4312, 0xf9ae97f1
+0, 35280, 35280, 1064, 4256, 0x0ad0d765
+0, 36344, 36344, 1064, 4256, 0x8e6aa9b5
+0, 37408, 37408, 1078, 4312, 0x8362787b
+0, 38486, 38486, 1064, 4256, 0x9b6a5d9c
+0, 39550, 39550, 1064, 4256, 0xfb715d8f
+0, 40614, 40614, 1078, 4312, 0x02bd8075
+0, 41692, 41692, 1064, 4256, 0x428eb932
+0, 42756, 42756, 1064, 4256, 0x17ea8c94
+0, 43820, 43820, 1078, 4312, 0xb3e761d7
+0, 44898, 44898, 1064, 4256, 0x0919755a
+0, 45962, 45962, 1064, 4256, 0x5e520edd
+0, 47026, 47026, 1078, 4312, 0x69aa070e
+0, 48104, 48104, 1064, 4256, 0xf8192f7d
+0, 49168, 49168, 1064, 4256, 0xaad4475c
+0, 50232, 50232, 1078, 4312, 0x0cabcfcb
+0, 51310, 51310, 1064, 4256, 0x952f0f96
+0, 52374, 52374, 1064, 4256, 0x1b805a0c
+0, 53438, 53438, 1078, 4312, 0x93043d2a
+0, 54516, 54516, 1064, 4256, 0x38b99e44
+0, 55580, 55580, 1064, 4256, 0x60cc52ff
+0, 56644, 56644, 1078, 4312, 0x6a875849
+0, 57722, 57722, 1064, 4256, 0xd08d6d0e
+0, 58786, 58786, 1064, 4256, 0x36bfe48e
+0, 59850, 59850, 1078, 4312, 0x795c6134
+0, 60928, 60928, 1064, 4256, 0x4fd79583
+0, 61992, 61992, 1064, 4256, 0x65e2ab9f
+0, 63056, 63056, 1078, 4312, 0xedeede4a
+0, 64134, 64134, 1064, 4256, 0x097e0d09
+0, 65198, 65198, 1064, 4256, 0x58afa133
+0, 66262, 66262, 1078, 4312, 0x442525b5
+0, 67340, 67340, 1064, 4256, 0x6645c591
+0, 68404, 68404, 1064, 4256, 0xb0dd948a
+0, 69468, 69468, 1078, 4312, 0x12684e69
+0, 70546, 70546, 1064, 4256, 0xb45098e3
+0, 71610, 71610, 1064, 4256, 0xb6d3c61c
+0, 72674, 72674, 1078, 4312, 0xb46b5b22
+0, 73752, 73752, 1064, 4256, 0x9a556830
+0, 74816, 74816, 1064, 4256, 0x67ca2b35
diff --git a/ffmpeg1/tests/ref/fate/adpcm-xa b/ffmpeg1/tests/ref/fate/adpcm-xa
new file mode 100644
index 0000000..04be2b9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm-xa
@@ -0,0 +1,38 @@
+#tb 0: 1/37800
+0, 0, 0, 2016, 8064, 0xa307ed8c
+0, 2016, 2016, 2016, 8064, 0xd2551927
+0, 4032, 4032, 2016, 8064, 0x3264a799
+0, 6048, 6048, 2016, 8064, 0x75da1393
+0, 8064, 8064, 2016, 8064, 0x68665f59
+0, 10080, 10080, 2016, 8064, 0xaf266a18
+0, 12096, 12096, 2016, 8064, 0x4d4b69fd
+0, 14112, 14112, 2016, 8064, 0x129d7e17
+0, 16128, 16128, 2016, 8064, 0x78c56725
+0, 18144, 18144, 2016, 8064, 0x59902cf1
+0, 20160, 20160, 2016, 8064, 0x6e699c87
+0, 22176, 22176, 2016, 8064, 0xc30692d7
+0, 24192, 24192, 2016, 8064, 0x29c043e5
+0, 26208, 26208, 2016, 8064, 0x61907704
+0, 28224, 28224, 2016, 8064, 0xf9210630
+0, 30240, 30240, 2016, 8064, 0xc0bdda08
+0, 32256, 32256, 2016, 8064, 0x6171b96d
+0, 34272, 34272, 2016, 8064, 0x082947cf
+0, 36288, 36288, 2016, 8064, 0xf7bbf1ce
+0, 38304, 38304, 2016, 8064, 0xe50e4436
+0, 40320, 40320, 2016, 8064, 0x2a860844
+0, 42336, 42336, 2016, 8064, 0xedcb502c
+0, 44352, 44352, 2016, 8064, 0x448e3c7f
+0, 46368, 46368, 2016, 8064, 0xf782f366
+0, 48384, 48384, 2016, 8064, 0xf57f66a5
+0, 50400, 50400, 2016, 8064, 0xdcc36939
+0, 52416, 52416, 2016, 8064, 0x34959d99
+0, 54432, 54432, 2016, 8064, 0xa5c20433
+0, 56448, 56448, 2016, 8064, 0xf1364e9b
+0, 58464, 58464, 2016, 8064, 0x232fe9c7
+0, 60480, 60480, 2016, 8064, 0xdc068d5a
+0, 62496, 62496, 2016, 8064, 0x4962e812
+0, 64512, 64512, 2016, 8064, 0x36a6709b
+0, 66528, 66528, 2016, 8064, 0xa2837bd8
+0, 68544, 68544, 2016, 8064, 0x68612ddb
+0, 70560, 70560, 2016, 8064, 0x8d76d1cb
+0, 72576, 72576, 2016, 8064, 0x7707cfc7
diff --git a/ffmpeg1/tests/ref/fate/adpcm_ms-stereo b/ffmpeg1/tests/ref/fate/adpcm_ms-stereo
new file mode 100644
index 0000000..6b131c1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adpcm_ms-stereo
@@ -0,0 +1 @@
+3b7554e9a186c30adfd2a86bae950f4a
diff --git a/ffmpeg1/tests/ref/fate/adts-demux b/ffmpeg1/tests/ref/fate/adts-demux
new file mode 100644
index 0000000..744ae64
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/adts-demux
@@ -0,0 +1 @@
+CRC=0xbda37454
diff --git a/ffmpeg1/tests/ref/fate/aea-demux b/ffmpeg1/tests/ref/fate/aea-demux
new file mode 100644
index 0000000..18ec8b8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/aea-demux
@@ -0,0 +1 @@
+CRC=0xc1312082
diff --git a/ffmpeg1/tests/ref/fate/alg-mm b/ffmpeg1/tests/ref/fate/alg-mm
new file mode 100644
index 0000000..5d97de9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/alg-mm
@@ -0,0 +1,32 @@
+#tb 0: 1/10
+0, 0, 0, 1, 122880, 0x4ed8123f
+0, 1, 1, 1, 122880, 0xc4c35304
+0, 2, 2, 1, 122880, 0xbd3015fd
+0, 3, 3, 1, 122880, 0xece5dbab
+0, 4, 4, 1, 122880, 0x13249f3f
+0, 5, 5, 1, 122880, 0x58f75895
+0, 6, 6, 1, 122880, 0xe6570f7d
+0, 7, 7, 1, 122880, 0xcce88145
+0, 8, 8, 1, 122880, 0x796f633c
+0, 9, 9, 1, 122880, 0x182c3cd3
+0, 10, 10, 1, 122880, 0x04b2513b
+0, 11, 11, 1, 122880, 0x6b7e2e42
+0, 12, 12, 1, 122880, 0x2fa47070
+0, 13, 13, 1, 122880, 0x7142919e
+0, 14, 14, 1, 122880, 0x8995337e
+0, 15, 15, 1, 122880, 0x5146ca20
+0, 16, 16, 1, 122880, 0x9aadb491
+0, 17, 17, 1, 122880, 0x2d5b0032
+0, 18, 18, 1, 122880, 0x5c7c8314
+0, 19, 19, 1, 122880, 0x2ba8253c
+0, 20, 20, 1, 122880, 0xd19d504b
+0, 21, 21, 1, 122880, 0x4ff15fd1
+0, 22, 22, 1, 122880, 0x76039f9f
+0, 23, 23, 1, 122880, 0xcce84d35
+0, 24, 24, 1, 122880, 0x68c5797c
+0, 25, 25, 1, 122880, 0xf1da4293
+0, 26, 26, 1, 122880, 0xf5f537f3
+0, 27, 27, 1, 122880, 0x8d3ffa94
+0, 28, 28, 1, 122880, 0x3ca9b69c
+0, 29, 29, 1, 122880, 0x21187f6c
+0, 30, 30, 1, 122880, 0xe5136e34
diff --git a/ffmpeg1/tests/ref/fate/amv b/ffmpeg1/tests/ref/fate/amv
new file mode 100644
index 0000000..407f077
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/amv
@@ -0,0 +1,161 @@
+#tb 0: 1/16
+0, 0, 0, 1, 28800, 0x026058a9
+0, 1, 1, 1, 28800, 0x5dc728de
+0, 2, 2, 1, 28800, 0x83e19a2c
+0, 3, 3, 1, 28800, 0xb029f94a
+0, 4, 4, 1, 28800, 0x735a6b15
+0, 5, 5, 1, 28800, 0xf7e9dc8b
+0, 6, 6, 1, 28800, 0xa108b0cf
+0, 7, 7, 1, 28800, 0x3d11c138
+0, 8, 8, 1, 28800, 0xed23afda
+0, 9, 9, 1, 28800, 0x713bb2dc
+0, 10, 10, 1, 28800, 0x551ad51e
+0, 11, 11, 1, 28800, 0x49dfcf2d
+0, 12, 12, 1, 28800, 0x6399d5b3
+0, 13, 13, 1, 28800, 0x520ad812
+0, 14, 14, 1, 28800, 0xc46ad9da
+0, 15, 15, 1, 28800, 0xe79edb9e
+0, 16, 16, 1, 28800, 0xdb1acb30
+0, 17, 17, 1, 28800, 0x050fb669
+0, 18, 18, 1, 28800, 0x096ca687
+0, 19, 19, 1, 28800, 0x0054a6bd
+0, 20, 20, 1, 28800, 0x6d7daad2
+0, 21, 21, 1, 28800, 0x9c10a9dc
+0, 22, 22, 1, 28800, 0x89b1a623
+0, 23, 23, 1, 28800, 0xa0a19c3f
+0, 24, 24, 1, 28800, 0x26c898ad
+0, 25, 25, 1, 28800, 0x6f639dae
+0, 26, 26, 1, 28800, 0xa173a9b5
+0, 27, 27, 1, 28800, 0xa309aa08
+0, 28, 28, 1, 28800, 0x2059b6c4
+0, 29, 29, 1, 28800, 0x5ae8c761
+0, 30, 30, 1, 28800, 0xb780c9c5
+0, 31, 31, 1, 28800, 0xf58ac8fe
+0, 32, 32, 1, 28800, 0x9bb307e7
+0, 33, 33, 1, 28800, 0xd32c3e81
+0, 34, 34, 1, 28800, 0x4edd51d2
+0, 35, 35, 1, 28800, 0x5a88684d
+0, 36, 36, 1, 28800, 0x5bd97f0e
+0, 37, 37, 1, 28800, 0x36d67843
+0, 38, 38, 1, 28800, 0x0e18781d
+0, 39, 39, 1, 28800, 0xa3168807
+0, 40, 40, 1, 28800, 0xa7c575b8
+0, 41, 41, 1, 28800, 0x86367c37
+0, 42, 42, 1, 28800, 0xb0f79180
+0, 43, 43, 1, 28800, 0x61da8c0f
+0, 44, 44, 1, 28800, 0x9b11948a
+0, 45, 45, 1, 28800, 0xc53d9b44
+0, 46, 46, 1, 28800, 0xdc699185
+0, 47, 47, 1, 28800, 0x7b4f92b5
+0, 48, 48, 1, 28800, 0x40469065
+0, 49, 49, 1, 28800, 0x737ea07e
+0, 50, 50, 1, 28800, 0x0db49c8b
+0, 51, 51, 1, 28800, 0x39249f10
+0, 52, 52, 1, 28800, 0xc182ab99
+0, 53, 53, 1, 28800, 0xd8f7a7c9
+0, 54, 54, 1, 28800, 0x46789caa
+0, 55, 55, 1, 28800, 0x4759a374
+0, 56, 56, 1, 28800, 0xe621b16a
+0, 57, 57, 1, 28800, 0xcf47a999
+0, 58, 58, 1, 28800, 0x801dacd4
+0, 59, 59, 1, 28800, 0xe580af51
+0, 60, 60, 1, 28800, 0x03d7a887
+0, 61, 61, 1, 28800, 0xa67ea51d
+0, 62, 62, 1, 28800, 0x9fee0ec8
+0, 63, 63, 1, 28800, 0x7f602a5e
+0, 64, 64, 1, 28800, 0x100d432a
+0, 65, 65, 1, 28800, 0x42164dfb
+0, 66, 66, 1, 28800, 0x86c05196
+0, 67, 67, 1, 28800, 0xfc225938
+0, 68, 68, 1, 28800, 0x81085e87
+0, 69, 69, 1, 28800, 0xaa8f5d0a
+0, 70, 70, 1, 28800, 0x605a5f9f
+0, 71, 71, 1, 28800, 0x68dc64b2
+0, 72, 72, 1, 28800, 0xd08e710b
+0, 73, 73, 1, 28800, 0xf8567939
+0, 74, 74, 1, 28800, 0x8dad7a4f
+0, 75, 75, 1, 28800, 0x1a19813c
+0, 76, 76, 1, 28800, 0x8a157f0e
+0, 77, 77, 1, 28800, 0xa4fa7b9d
+0, 78, 78, 1, 28800, 0x093b7b36
+0, 79, 79, 1, 28800, 0xa925755b
+0, 80, 80, 1, 28800, 0xa5968138
+0, 81, 81, 1, 28800, 0xe00877ac
+0, 82, 82, 1, 28800, 0xd736183e
+0, 83, 83, 1, 28800, 0x356f2068
+0, 84, 84, 1, 28800, 0xf9a50f22
+0, 85, 85, 1, 28800, 0x92df2ae8
+0, 86, 86, 1, 28800, 0x67a43dc8
+0, 87, 87, 1, 28800, 0xf8ce2ead
+0, 88, 88, 1, 28800, 0xf42f37ee
+0, 89, 89, 1, 28800, 0x03611f37
+0, 90, 90, 1, 28800, 0xddda2327
+0, 91, 91, 1, 28800, 0xdf073d85
+0, 92, 92, 1, 28800, 0xa8331fee
+0, 93, 93, 1, 28800, 0x59d3490a
+0, 94, 94, 1, 28800, 0xa8335be6
+0, 95, 95, 1, 28800, 0xd5483b43
+0, 96, 96, 1, 28800, 0x23422dc9
+0, 97, 97, 1, 28800, 0xc04e4689
+0, 98, 98, 1, 28800, 0xd4d96372
+0, 99, 99, 1, 28800, 0x9c814e96
+0, 100, 100, 1, 28800, 0x7c4b5d3b
+0, 101, 101, 1, 28800, 0x6bf66c04
+0, 102, 102, 1, 28800, 0x6e8d4bb6
+0, 103, 103, 1, 28800, 0xad964d00
+0, 104, 104, 1, 28800, 0x1ff36bd1
+0, 105, 105, 1, 28800, 0xa4664c76
+0, 106, 106, 1, 28800, 0x50626d82
+0, 107, 107, 1, 28800, 0x81906c5c
+0, 108, 108, 1, 28800, 0x5060543f
+0, 109, 109, 1, 28800, 0x231c5a86
+0, 110, 110, 1, 28800, 0x79775d48
+0, 111, 111, 1, 28800, 0xbb893571
+0, 112, 112, 1, 28800, 0x794c49ed
+0, 113, 113, 1, 28800, 0x70464bac
+0, 114, 114, 1, 28800, 0xe79549ce
+0, 115, 115, 1, 28800, 0xa6565555
+0, 116, 116, 1, 28800, 0x2ef1ad6d
+0, 117, 117, 1, 28800, 0xdd22b9aa
+0, 118, 118, 1, 28800, 0x26ebaa97
+0, 119, 119, 1, 28800, 0x32bd979e
+0, 120, 120, 1, 28800, 0x4c167c9a
+0, 121, 121, 1, 28800, 0xfdf76051
+0, 122, 122, 1, 28800, 0x966938a8
+0, 123, 123, 1, 28800, 0xcea3fbde
+0, 124, 124, 1, 28800, 0x29a0c213
+0, 125, 125, 1, 28800, 0x5633a1c2
+0, 126, 126, 1, 28800, 0xdc0b9af8
+0, 127, 127, 1, 28800, 0x92138848
+0, 128, 128, 1, 28800, 0xd7308da5
+0, 129, 129, 1, 28800, 0x0c8f9b3f
+0, 130, 130, 1, 28800, 0xd059b5d1
+0, 131, 131, 1, 28800, 0xba6ed9cd
+0, 132, 132, 1, 28800, 0x896c1064
+0, 133, 133, 1, 28800, 0x986e2fc9
+0, 134, 134, 1, 28800, 0xcba94e4b
+0, 135, 135, 1, 28800, 0xf3e778ed
+0, 136, 136, 1, 28800, 0xc6cd7d48
+0, 137, 137, 1, 28800, 0xd9bd84d8
+0, 138, 138, 1, 28800, 0x391197b4
+0, 139, 139, 1, 28800, 0xf361a1d9
+0, 140, 140, 1, 28800, 0x9a1ea54e
+0, 141, 141, 1, 28800, 0x551aab57
+0, 142, 142, 1, 28800, 0x3af8577d
+0, 143, 143, 1, 28800, 0x10f76ed0
+0, 144, 144, 1, 28800, 0x026a7fde
+0, 145, 145, 1, 28800, 0x3e0e8db8
+0, 146, 146, 1, 28800, 0x22998d2d
+0, 147, 147, 1, 28800, 0x05978b12
+0, 148, 148, 1, 28800, 0x38b88294
+0, 149, 149, 1, 28800, 0x2ef677d6
+0, 150, 150, 1, 28800, 0x0b9a8894
+0, 151, 151, 1, 28800, 0x2dcb6718
+0, 152, 152, 1, 28800, 0xa31b6679
+0, 153, 153, 1, 28800, 0x262d6a50
+0, 154, 154, 1, 28800, 0xff3d6d0d
+0, 155, 155, 1, 28800, 0x159d7045
+0, 156, 156, 1, 28800, 0xf0df7800
+0, 157, 157, 1, 28800, 0xbe825ea5
+0, 158, 158, 1, 28800, 0x80e25d5a
+0, 159, 159, 1, 28800, 0x8cbe263f
diff --git a/ffmpeg1/tests/ref/fate/ansi b/ffmpeg1/tests/ref/fate/ansi
new file mode 100644
index 0000000..78e853f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ansi
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 768000, 0x772dd3d0
+0, 1, 1, 1, 768000, 0xd7dab1d1
+0, 2, 2, 1, 768000, 0x0e56f2d3
+0, 3, 3, 1, 768000, 0x11c1fb8e
+0, 4, 4, 1, 768000, 0x72d12da9
+0, 5, 5, 1, 768000, 0x39c7a70d
+0, 6, 6, 1, 768000, 0x94bd32a4
+0, 7, 7, 1, 768000, 0x06dd5ba1
+0, 8, 8, 1, 768000, 0x9616ec95
+0, 9, 9, 1, 768000, 0x6df5b9e2
+0, 10, 10, 1, 768000, 0x7be7f60a
+0, 11, 11, 1, 768000, 0x2abc8623
+0, 12, 12, 1, 768000, 0x5678bfff
+0, 13, 13, 1, 768000, 0x24a03042
+0, 14, 14, 1, 768000, 0xfb011b23
+0, 15, 15, 1, 768000, 0x925ff5e9
+0, 16, 16, 1, 768000, 0x890e2a56
diff --git a/ffmpeg1/tests/ref/fate/ansi256 b/ffmpeg1/tests/ref/fate/ansi256
new file mode 100644
index 0000000..94acd45
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ansi256
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 768000, 0x4dfbb6d0
+0, 1, 1, 1, 768000, 0x22652a22
+0, 2, 2, 1, 768000, 0x6c613e8c
+0, 3, 3, 1, 768000, 0x82471f25
+0, 4, 4, 1, 768000, 0xd8dc5ac6
+0, 5, 5, 1, 768000, 0x1afdc026
+0, 6, 6, 1, 768000, 0x518f3ba1
+0, 7, 7, 1, 768000, 0xa82a8e4b
diff --git a/ffmpeg1/tests/ref/fate/armovie-escape124 b/ffmpeg1/tests/ref/fate/armovie-escape124
new file mode 100644
index 0000000..83614c2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/armovie-escape124
@@ -0,0 +1,106 @@
+#tb 0: 1/25
+#tb 1: 1/44100
+0, 0, 0, 1, 230400, 0xd133e177
+1, 0, 0, 44100, 176400, 0xdd61578c
+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, 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, 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, 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/ffmpeg1/tests/ref/fate/ast b/ffmpeg1/tests/ref/fate/ast
new file mode 100644
index 0000000..5b89c2b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ast
@@ -0,0 +1 @@
+CRC=0x87713611
diff --git a/ffmpeg1/tests/ref/fate/auravision-v1 b/ffmpeg1/tests/ref/fate/auravision-v1
new file mode 100644
index 0000000..456f399
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/auravision-v1
@@ -0,0 +1,25 @@
+#tb 0: 33339/500000
+0, 0, 0, 1, 28800, 0x4a4efbbc
+0, 1, 1, 1, 28800, 0xc6c7e26a
+0, 2, 2, 1, 28800, 0x6cd40913
+0, 3, 3, 1, 28800, 0xa7b40fe9
+0, 4, 4, 1, 28800, 0x5e77fcc6
+0, 5, 5, 1, 28800, 0x9b3ef3f0
+0, 6, 6, 1, 28800, 0xe7031845
+0, 7, 7, 1, 28800, 0x2c15458d
+0, 8, 8, 1, 28800, 0xbc3d4abf
+0, 9, 9, 1, 28800, 0xf8755ac7
+0, 10, 10, 1, 28800, 0x64d0405b
+0, 11, 11, 1, 28800, 0x1e0c341d
+0, 12, 12, 1, 28800, 0x05ca3c2b
+0, 13, 13, 1, 28800, 0x28cb307f
+0, 14, 14, 1, 28800, 0x3a9855af
+0, 15, 15, 1, 28800, 0x92b63321
+0, 16, 16, 1, 28800, 0x85585151
+0, 17, 17, 1, 28800, 0x1ff01bf9
+0, 18, 18, 1, 28800, 0x4bab200f
+0, 19, 19, 1, 28800, 0xcf732ad7
+0, 20, 20, 1, 28800, 0xced00cff
+0, 21, 21, 1, 28800, 0xa69046fd
+0, 22, 22, 1, 28800, 0x5aa341c3
+0, 23, 23, 1, 28800, 0x87ef6219
diff --git a/ffmpeg1/tests/ref/fate/auravision-v2 b/ffmpeg1/tests/ref/fate/auravision-v2
new file mode 100644
index 0000000..f1e8e3a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/auravision-v2
@@ -0,0 +1,3 @@
+#tb 0: 33333/1000000
+0, 0, 0, 1, 115200, 0x2f247f66
+0, 1, 1, 1, 115200, 0xf492929e
diff --git a/ffmpeg1/tests/ref/fate/avio-direct b/ffmpeg1/tests/ref/fate/avio-direct
new file mode 100644
index 0000000..599683a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/avio-direct
@@ -0,0 +1,59 @@
+#tb 0: 1/30
+0, 0, 0, 1, 145152, 0x8458d4cb
+0, 1, 1, 1, 145152, 0xa694d7c7
+0, 2, 2, 1, 145152, 0x2bd4bfc9
+0, 3, 3, 1, 145152, 0xe53b1616
+0, 4, 4, 1, 145152, 0x6a0a806a
+0, 5, 5, 1, 145152, 0x45f7b8e6
+0, 6, 6, 1, 145152, 0x4e14150e
+0, 7, 7, 1, 145152, 0xe1cd9b6f
+0, 8, 8, 1, 145152, 0x5b5802d7
+0, 9, 9, 1, 145152, 0xb03da5e7
+0, 10, 10, 1, 145152, 0x3436b06e
+0, 11, 11, 1, 145152, 0x4535e638
+0, 12, 12, 1, 145152, 0x72934af1
+0, 13, 13, 1, 145152, 0xb672d459
+0, 14, 14, 1, 145152, 0xab57491b
+0, 15, 15, 1, 145152, 0xdbac3480
+0, 16, 16, 1, 145152, 0x54215962
+0, 17, 17, 1, 145152, 0x451f456e
+0, 18, 18, 1, 145152, 0xa17655d1
+0, 19, 19, 1, 145152, 0xce95422c
+0, 20, 20, 1, 145152, 0xe0ee8e77
+0, 21, 21, 1, 145152, 0xdaabe277
+0, 22, 22, 1, 145152, 0xc21bb665
+0, 23, 23, 1, 145152, 0x1e74270e
+0, 24, 24, 1, 145152, 0xae7bac5f
+0, 25, 25, 1, 145152, 0xf62442ed
+0, 26, 26, 1, 145152, 0x5c8d8984
+0, 27, 27, 1, 145152, 0x97a69fe7
+0, 28, 28, 1, 145152, 0x1f244d19
+0, 29, 29, 1, 145152, 0x2758bc25
+0, 30, 30, 1, 145152, 0xf43ddb89
+0, 31, 31, 1, 145152, 0x086a524e
+0, 32, 32, 1, 145152, 0x8b464d4d
+0, 33, 33, 1, 145152, 0xb77b63d2
+0, 34, 34, 1, 145152, 0xfd842fa8
+0, 35, 35, 1, 145152, 0xa98b6dbe
+0, 36, 36, 1, 145152, 0xdedbab2c
+0, 37, 37, 1, 145152, 0x24e19172
+0, 38, 38, 1, 145152, 0x1ef456f6
+0, 39, 39, 1, 145152, 0xaceabdf0
+0, 40, 40, 1, 145152, 0xb54de3d9
+0, 41, 41, 1, 145152, 0x3af0df9b
+0, 42, 42, 1, 145152, 0xf89fbd9a
+0, 43, 43, 1, 145152, 0xc6a9673c
+0, 44, 44, 1, 145152, 0x6d5a929e
+0, 45, 45, 1, 145152, 0x879e7d9b
+0, 46, 46, 1, 145152, 0x233c14eb
+0, 47, 47, 1, 145152, 0x8246f081
+0, 48, 48, 1, 145152, 0x3366c4bf
+0, 49, 49, 1, 145152, 0x6b0203da
+0, 50, 50, 1, 145152, 0x48a00163
+0, 51, 51, 1, 145152, 0xe956ac2c
+0, 52, 52, 1, 145152, 0xa2511283
+0, 53, 53, 1, 145152, 0x7e03222d
+0, 54, 54, 1, 145152, 0xc31a7a40
+0, 55, 55, 1, 145152, 0x80448031
+0, 56, 56, 1, 145152, 0xe3b1fbf7
+0, 57, 57, 1, 145152, 0xa00395a4
diff --git a/ffmpeg1/tests/ref/fate/avstring b/ffmpeg1/tests/ref/fate/avstring
new file mode 100644
index 0000000..bc231e8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/avstring
@@ -0,0 +1,27 @@
+Testing av_get_token()
+|''| -> || + ||
+|| -> || + ||
+|:| -> || + |:|
+|\| -> |\| + ||
+|'| -> || + ||
+| '' :| -> || + |:|
+| '' '' :| -> | | + |:|
+|foo '' :| -> |foo | + |:|
+|'foo'| -> |foo| + ||
+|foo | -> |foo| + ||
+| ' foo ' | -> | foo | + ||
+|foo\| -> |foo\| + ||
+|foo': blah:blah| -> |foo: blah:blah| + ||
+|foo\: blah:blah| -> |foo: blah| + |:blah|
+|foo'| -> |foo| + ||
+|'foo : ' :blahblah| -> |foo : | + |:blahblah|
+|\ :blah| -> | | + |:blah|
+| foo| -> |foo| + ||
+| foo | -> |foo| + ||
+| foo \ | -> |foo | + ||
+|foo ':blah| -> |foo :blah| + ||
+| foo bar : blahblah| -> |foo bar| + |: blahblah|
+|\f\o\o| -> |foo| + ||
+|'foo : \ \ ' : blahblah| -> |foo : \ \ | + |: blahblah|
+|'\fo\o:': blahblah| -> |\fo\o:| + |: blahblah|
+|\'fo\o\:': foo ' :blahblah| -> |'foo:: foo | + |:blahblah|
diff --git a/ffmpeg1/tests/ref/fate/base64 b/ffmpeg1/tests/ref/fate/base64
new file mode 100644
index 0000000..24fa9ad
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/base64
@@ -0,0 +1,9 @@
+Encoding/decoding tests
+Passed!
+Passed!
+Passed!
+Passed!
+Passed!
+Passed!
+Passed!
+Passed!
diff --git a/ffmpeg1/tests/ref/fate/bethsoft-vid b/ffmpeg1/tests/ref/fate/bethsoft-vid
new file mode 100644
index 0000000..f59823c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bethsoft-vid
@@ -0,0 +1,143 @@
+#tb 0: 1/14
+#tb 1: 1/11111
+0, 0, 0, 1, 192000, 0x00000000
+1, 0, 0, 740, 1480, 0x00000000
+1, 740, 740, 740, 1480, 0x20a92bd4
+0, 1, 1, 1, 192000, 0x5a5acf57
+1, 1480, 1480, 925, 1850, 0xa9e48a74
+0, 2, 2, 1, 192000, 0xbd055cf1
+0, 3, 3, 1, 192000, 0x28b1eefc
+1, 2405, 2405, 740, 1480, 0x23ecd018
+1, 3145, 3145, 740, 1480, 0x206bb915
+0, 4, 4, 1, 192000, 0x0636bacd
+1, 3885, 3885, 925, 1850, 0xb0e10e75
+0, 5, 5, 1, 192000, 0xbfd33cbd
+0, 6, 6, 1, 192000, 0x0bd150ef
+1, 4810, 4810, 740, 1480, 0x8d9baedd
+1, 5550, 5550, 740, 1480, 0xb802aae1
+0, 7, 7, 1, 192000, 0x780d891e
+1, 6290, 6290, 740, 1480, 0xecd7b5cc
+0, 8, 8, 1, 192000, 0xacf5e205
+1, 7030, 7030, 925, 1850, 0x16861355
+0, 9, 9, 1, 192000, 0x37c900dc
+0, 10, 10, 1, 192000, 0x4ee6add7
+1, 7955, 7955, 740, 1480, 0xa51690bd
+1, 8695, 8695, 740, 1480, 0xdd0b90d1
+0, 11, 11, 1, 192000, 0x1844783a
+1, 9435, 9435, 925, 1850, 0x3ce6e333
+0, 12, 12, 1, 192000, 0x7bf84848
+0, 13, 13, 1, 192000, 0x1ec296bc
+1, 10360, 10360, 740, 1480, 0xf8ce8ea3
+1, 11100, 11100, 740, 1480, 0xda4597af
+0, 14, 14, 1, 192000, 0xbaeb5292
+1, 11840, 11840, 740, 1480, 0x918f7cb3
+0, 15, 15, 1, 192000, 0xcb18038d
+1, 12580, 12580, 925, 1850, 0xca6edb15
+0, 16, 16, 1, 192000, 0xb3cc8b65
+0, 17, 17, 1, 192000, 0x6f164685
+1, 13505, 13505, 740, 1480, 0xba279597
+1, 14245, 14245, 740, 1480, 0xc5a38a9e
+0, 18, 18, 1, 192000, 0x304917c9
+1, 14985, 14985, 925, 1850, 0x8147eef5
+0, 19, 19, 1, 192000, 0x8269daa1
+0, 20, 20, 1, 192000, 0x04d3500d
+1, 15910, 15910, 740, 1480, 0xce2c7cb5
+1, 16650, 16650, 740, 1480, 0x4282819f
+0, 21, 21, 1, 192000, 0x9788f7a5
+1, 17390, 17390, 740, 1480, 0xbdbb8da6
+0, 22, 22, 1, 192000, 0x05351c98
+1, 18130, 18130, 925, 1850, 0xdbbeea10
+0, 23, 23, 1, 192000, 0xcc8bba97
+0, 24, 24, 1, 192000, 0x76caf27b
+1, 19055, 19055, 740, 1480, 0xbe6a77c2
+1, 19795, 19795, 740, 1480, 0xa85c75b2
+0, 25, 25, 1, 192000, 0x28648040
+1, 20535, 20535, 925, 1850, 0xa45bde21
+0, 26, 26, 1, 192000, 0x99ea251f
+0, 27, 27, 1, 192000, 0x20e7bf4d
+1, 21460, 21460, 740, 1480, 0x84aa7895
+1, 22200, 22200, 740, 1480, 0x147f7d9f
+0, 28, 28, 1, 192000, 0x046ed625
+1, 22940, 22940, 740, 1480, 0xc8e77b85
+0, 29, 29, 1, 192000, 0x1613fb12
+1, 23680, 23680, 925, 1850, 0x10d4d81b
+0, 30, 30, 1, 192000, 0xd8b52d16
+0, 31, 31, 1, 192000, 0x31443aa9
+1, 24605, 24605, 740, 1480, 0xb4ae8bb1
+1, 25345, 25345, 740, 1480, 0x3ef782a5
+0, 32, 32, 1, 192000, 0xd426de3d
+1, 26085, 26085, 925, 1850, 0xdeebda14
+0, 33, 33, 1, 192000, 0xb2bce77b
+0, 34, 34, 1, 192000, 0x25a52805
+1, 27010, 27010, 740, 1480, 0x4c7e7bbb
+1, 27750, 27750, 740, 1480, 0x0e0e9198
+0, 35, 35, 1, 192000, 0x04f03a87
+1, 28490, 28490, 740, 1480, 0x5c1f819f
+0, 36, 36, 1, 192000, 0x41d56889
+1, 29230, 29230, 925, 1850, 0x0e4cf6ff
+0, 37, 37, 1, 192000, 0x3d4d6de9
+1, 30155, 30155, 740, 1480, 0x374388a7
+0, 38, 38, 1, 192000, 0xa7a2abfe
+1, 30895, 30895, 740, 1480, 0xed729389
+0, 39, 39, 1, 192000, 0x663e9fca
+1, 31635, 31635, 925, 1850, 0xe0f1e43f
+0, 40, 40, 1, 192000, 0x29a67f86
+0, 41, 41, 1, 192000, 0x51531bb0
+1, 32560, 32560, 740, 1480, 0x3b27839a
+1, 33300, 33300, 740, 1480, 0xe6287e94
+0, 42, 42, 1, 192000, 0xd993277e
+1, 34040, 34040, 740, 1480, 0x7e0d84b5
+0, 43, 43, 1, 192000, 0x4873e583
+1, 34780, 34780, 925, 1850, 0xf08bebf7
+0, 44, 44, 1, 192000, 0x06df053b
+1, 35705, 35705, 740, 1480, 0x94cf73a0
+0, 45, 45, 1, 192000, 0x044f7698
+1, 36445, 36445, 740, 1480, 0xfef384ae
+0, 46, 46, 1, 192000, 0xc2302a45
+1, 37185, 37185, 925, 1850, 0x3b93e0f7
+0, 47, 47, 1, 192000, 0xbdfec8ee
+0, 48, 48, 1, 192000, 0x3b739286
+1, 38110, 38110, 740, 1480, 0x28d27bae
+1, 38850, 38850, 740, 1480, 0x94d57da5
+0, 49, 49, 1, 192000, 0x3ca82cd6
+1, 39590, 39590, 740, 1480, 0xc9327db5
+0, 50, 50, 1, 192000, 0x25af10f2
+1, 40330, 40330, 925, 1850, 0xe781f604
+0, 51, 51, 1, 192000, 0x09ce32bf
+1, 41255, 41255, 740, 1480, 0x752f8c5b
+0, 52, 52, 1, 192000, 0xdab399c2
+1, 41995, 41995, 740, 1480, 0x30068032
+0, 53, 53, 1, 192000, 0x77400d93
+1, 42735, 42735, 925, 1850, 0x7895023e
+0, 54, 54, 1, 192000, 0x5e8e6fe7
+0, 55, 55, 1, 192000, 0x277506c9
+1, 43660, 43660, 740, 1480, 0xa1e0a6e1
+1, 44400, 44400, 740, 1480, 0x6af4b500
+0, 56, 56, 1, 192000, 0xe91b59ac
+1, 45140, 45140, 740, 1480, 0xc26ea4c7
+0, 57, 57, 1, 192000, 0xc2aa6e19
+1, 45880, 45880, 925, 1850, 0x16a72419
+0, 58, 58, 1, 192000, 0x12c63645
+1, 46805, 46805, 740, 1480, 0x1794aacc
+0, 59, 59, 1, 192000, 0xa39f27d6
+1, 47545, 47545, 740, 1480, 0x2ecad8d0
+0, 60, 60, 1, 192000, 0x20c32512
+1, 48285, 48285, 925, 1850, 0x2e645e07
+0, 61, 61, 1, 192000, 0x385a26a0
+0, 62, 62, 1, 192000, 0x2566a70c
+1, 49210, 49210, 740, 1480, 0x1c54dfe7
+1, 49950, 49950, 740, 1480, 0xbd35feec
+0, 63, 63, 1, 192000, 0x7105cfb9
+1, 50690, 50690, 740, 1480, 0x419403d6
+0, 64, 64, 1, 192000, 0x725671a2
+1, 51430, 51430, 925, 1850, 0x78699d2a
+0, 65, 65, 1, 192000, 0x3ff2782a
+1, 52355, 52355, 740, 1480, 0x74ec68e0
+0, 66, 66, 1, 192000, 0xdc0571c3
+1, 53095, 53095, 740, 1480, 0x76af64d9
+0, 67, 67, 1, 192000, 0x4a6a5405
+1, 53835, 53835, 925, 1850, 0x5a303d1a
+0, 68, 68, 1, 192000, 0x3ec3cce1
+1, 54760, 54760, 537, 1074, 0x142ce7ba
+0, 69, 69, 1, 192000, 0x159313a8
+1, 55297, 55297, 925, 1850, 0x7ff682f7
diff --git a/ffmpeg1/tests/ref/fate/bfi b/ffmpeg1/tests/ref/fate/bfi
new file mode 100644
index 0000000..0d3d8f2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bfi
@@ -0,0 +1,116 @@
+#tb 0: 1/9
+#tb 1: 1/11025
+0, 0, 0, 1, 134400, 0xc218b00c
+1, 0, 0, 8884, 17768, 0x07df135c
+0, 1, 1, 1, 134400, 0x114daf7c
+0, 2, 2, 1, 134400, 0xe14db24c
+0, 3, 3, 1, 134400, 0x88c71df7
+0, 4, 4, 1, 134400, 0xc98c09fc
+0, 5, 5, 1, 134400, 0xf7c2e7a9
+0, 6, 6, 1, 134400, 0xf54f304f
+0, 7, 7, 1, 134400, 0x67370fdd
+1, 8884, 8884, 1110, 2220, 0x44953646
+0, 8, 8, 1, 134400, 0xe70f43cd
+1, 9994, 9994, 1110, 2220, 0x256b3329
+0, 9, 9, 1, 134400, 0xad74c06f
+1, 11104, 11104, 1111, 2222, 0x344d20c6
+1, 12215, 12215, 1110, 2220, 0xd8ee20db
+0, 10, 10, 1, 134400, 0xef42fdf2
+1, 13325, 13325, 1111, 2222, 0x46d70aa2
+0, 11, 11, 1, 134400, 0xa14cc4b8
+1, 14436, 14436, 1110, 2220, 0xbe0a2213
+0, 12, 12, 1, 134400, 0xc6e57381
+1, 15546, 15546, 1111, 2222, 0x4ee0fd07
+0, 13, 13, 1, 134400, 0x74b4804b
+1, 16657, 16657, 1110, 2220, 0x709dfe87
+0, 14, 14, 1, 134400, 0xe0863d6f
+1, 17767, 17767, 1111, 2222, 0xbb382521
+0, 15, 15, 1, 134400, 0x90b6d03c
+1, 18878, 18878, 1110, 2220, 0x6dba1d2d
+0, 16, 16, 1, 134400, 0x3d0409fd
+1, 19988, 19988, 1111, 2222, 0xbc4cdd6d
+0, 17, 17, 1, 134400, 0xc02e09a4
+1, 21099, 21099, 1110, 2220, 0x54340d2c
+0, 18, 18, 1, 134400, 0xa3515997
+1, 22209, 22209, 1110, 2220, 0x8925d335
+0, 19, 19, 1, 134400, 0xc0fda122
+1, 23319, 23319, 1111, 2222, 0xa39bd15f
+1, 24430, 24430, 1110, 2220, 0x6875f632
+0, 20, 20, 1, 134400, 0x5380d707
+1, 25540, 25540, 1111, 2222, 0xda46be57
+0, 21, 21, 1, 134400, 0xcc19c085
+1, 26651, 26651, 1110, 2220, 0xd591eb44
+0, 22, 22, 1, 134400, 0x8041e977
+1, 27761, 27761, 1111, 2222, 0x33afd17f
+0, 23, 23, 1, 134400, 0xb96b2bea
+1, 28872, 28872, 1110, 2220, 0xd97be03b
+0, 24, 24, 1, 134400, 0xcc977ca7
+1, 29982, 29982, 1111, 2222, 0x3b71e82e
+0, 25, 25, 1, 134400, 0xe37abb34
+1, 31093, 31093, 1110, 2220, 0x95fbec2b
+0, 26, 26, 1, 134400, 0xce488baa
+1, 32203, 32203, 1110, 2220, 0xae3a1c1e
+0, 27, 27, 1, 134400, 0xa0734e8a
+1, 33313, 33313, 1111, 2222, 0x46cd0973
+0, 28, 28, 1, 134400, 0x6b5ce0b0
+1, 34424, 34424, 1110, 2220, 0x7b28f3f6
+0, 29, 29, 1, 134400, 0xf207f938
+1, 35534, 35534, 1111, 2222, 0xa2a5bc47
+1, 36645, 36645, 1110, 2220, 0x4727df63
+0, 30, 30, 1, 134400, 0xe10060f8
+1, 37755, 37755, 1111, 2222, 0xdf53f4e2
+0, 31, 31, 1, 134400, 0xaebe6b37
+1, 38866, 38866, 1110, 2220, 0x469c1e8f
+0, 32, 32, 1, 134400, 0x08ea5c75
+1, 39976, 39976, 1111, 2222, 0x3c541799
+0, 33, 33, 1, 134400, 0x05c6b514
+1, 41087, 41087, 1110, 2220, 0xc8d21fee
+0, 34, 34, 1, 134400, 0x68cb3703
+1, 42197, 42197, 1111, 2222, 0x5f52126f
+0, 35, 35, 1, 134400, 0x48867fd0
+1, 43308, 43308, 1110, 2220, 0x06a9ff18
+0, 36, 36, 1, 134400, 0xc53eda30
+1, 44418, 44418, 1110, 2220, 0x84f9aa2b
+0, 37, 37, 1, 134400, 0x0c1b198d
+1, 45528, 45528, 1111, 2222, 0xe0518c83
+0, 38, 38, 1, 134400, 0xc8ac5bc8
+1, 46639, 46639, 1110, 2220, 0xc85ee26c
+1, 47749, 47749, 1111, 2222, 0xda23fd2d
+0, 39, 39, 1, 134400, 0x9e35240d
+1, 48860, 48860, 1110, 2220, 0x7ee2e818
+0, 40, 40, 1, 134400, 0x885d142f
+1, 49970, 49970, 1111, 2222, 0x45eb0465
+0, 41, 41, 1, 134400, 0x207cb4ac
+1, 51081, 51081, 1110, 2220, 0xf3e90549
+0, 42, 42, 1, 134400, 0x0abe748b
+1, 52191, 52191, 1111, 2222, 0x17aacf3d
+0, 43, 43, 1, 134400, 0xf13e991b
+1, 53302, 53302, 1110, 2220, 0x6cb7e325
+0, 44, 44, 1, 134400, 0x2544248d
+1, 54412, 54412, 1110, 2220, 0x20164553
+0, 45, 45, 1, 134400, 0x5444bb22
+1, 55522, 55522, 1111, 2222, 0x00000000
+0, 46, 46, 1, 134400, 0xc5a8f55a
+1, 56633, 56633, 1110, 2220, 0x00000000
+0, 47, 47, 1, 134400, 0xe6006820
+1, 57743, 57743, 1111, 2222, 0x00000000
+0, 48, 48, 1, 134400, 0x2a34239d
+1, 58854, 58854, 1110, 2220, 0x00000000
+1, 59964, 59964, 1111, 2222, 0x00000000
+0, 49, 49, 1, 134400, 0x26deac5b
+1, 61075, 61075, 1110, 2220, 0x00000000
+0, 50, 50, 1, 134400, 0x82c2c0a9
+1, 62185, 62185, 1111, 2222, 0x00000000
+0, 51, 51, 1, 134400, 0xcdd8daba
+1, 63296, 63296, 1225, 2450, 0x00000000
+0, 52, 52, 1, 134400, 0x5a1a2105
+1, 64521, 64521, 1225, 2450, 0x00000000
+0, 53, 53, 1, 134400, 0x2ad43604
+1, 65746, 65746, 1225, 2450, 0x00000000
+0, 54, 54, 1, 134400, 0xa9b58f35
+1, 66971, 66971, 1225, 2450, 0x00000000
+0, 55, 55, 1, 134400, 0x0e37a7a8
+1, 68196, 68196, 1225, 2450, 0x00000000
+0, 56, 56, 1, 134400, 0xd288eef7
+1, 69421, 69421, 1225, 2450, 0x00000000
+1, 70646, 70646, 1225, 2450, 0x00000000
diff --git a/ffmpeg1/tests/ref/fate/bink-demux b/ffmpeg1/tests/ref/fate/bink-demux
new file mode 100644
index 0000000..b721f0d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bink-demux
@@ -0,0 +1 @@
+CRC=0x839f34e6
diff --git a/ffmpeg1/tests/ref/fate/bink-video-b b/ffmpeg1/tests/ref/fate/bink-video-b
new file mode 100644
index 0000000..c772eda
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bink-video-b
@@ -0,0 +1,31 @@
+#tb 0: 1/15
+0, 0, 0, 1, 34800, 0x4fd0a8e4
+0, 1, 1, 1, 34800, 0xd381a7b7
+0, 2, 2, 1, 34800, 0x688ca315
+0, 3, 3, 1, 34800, 0xaae39c3f
+0, 4, 4, 1, 34800, 0xdcb19759
+0, 5, 5, 1, 34800, 0xd458970a
+0, 6, 6, 1, 34800, 0x99269865
+0, 7, 7, 1, 34800, 0x6d459bbc
+0, 8, 8, 1, 34800, 0x6c759cd2
+0, 9, 9, 1, 34800, 0x47459ad5
+0, 10, 10, 1, 34800, 0xe6e897b9
+0, 11, 11, 1, 34800, 0x63599374
+0, 12, 12, 1, 34800, 0x666191e2
+0, 13, 13, 1, 34800, 0x4ca8933e
+0, 14, 14, 1, 34800, 0xbea594f4
+0, 15, 15, 1, 34800, 0xa5609473
+0, 16, 16, 1, 34800, 0xe5d79234
+0, 17, 17, 1, 34800, 0xf7738e58
+0, 18, 18, 1, 34800, 0x9d0c8b24
+0, 19, 19, 1, 34800, 0x0b2d8a66
+0, 20, 20, 1, 34800, 0xf4698b72
+0, 21, 21, 1, 34800, 0xdf808d44
+0, 22, 22, 1, 34800, 0xae6b895e
+0, 23, 23, 1, 34800, 0xa67b8144
+0, 24, 24, 1, 34800, 0xc54d79c4
+0, 25, 25, 1, 34800, 0x75ca72e2
+0, 26, 26, 1, 34800, 0xc6a56f65
+0, 27, 27, 1, 34800, 0x406e740d
+0, 28, 28, 1, 34800, 0xd29478de
+0, 29, 29, 1, 34800, 0x22cf7dc2
diff --git a/ffmpeg1/tests/ref/fate/bink-video-f b/ffmpeg1/tests/ref/fate/bink-video-f
new file mode 100644
index 0000000..40bc5a9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bink-video-f
@@ -0,0 +1,21 @@
+#tb 0: 1/15
+0, 0, 0, 1, 460800, 0xb06f7841
+0, 1, 1, 1, 460800, 0x7ed06412
+0, 2, 2, 1, 460800, 0xe82b5c3d
+0, 3, 3, 1, 460800, 0x67284940
+0, 4, 4, 1, 460800, 0x17e2c544
+0, 5, 5, 1, 460800, 0x5dc65d36
+0, 6, 6, 1, 460800, 0x7de63f90
+0, 7, 7, 1, 460800, 0x15c8cf7d
+0, 8, 8, 1, 460800, 0xbffe4047
+0, 9, 9, 1, 460800, 0xcabcc150
+0, 10, 10, 1, 460800, 0xe8a17ebe
+0, 11, 11, 1, 460800, 0x27e94c03
+0, 12, 12, 1, 460800, 0x71c0f48e
+0, 13, 13, 1, 460800, 0x5fc8f783
+0, 14, 14, 1, 460800, 0xd23d336a
+0, 15, 15, 1, 460800, 0xadcfa9e0
+0, 16, 16, 1, 460800, 0x24222144
+0, 17, 17, 1, 460800, 0x88f28b2b
+0, 18, 18, 1, 460800, 0x52e13544
+0, 19, 19, 1, 460800, 0x7e724731
diff --git a/ffmpeg1/tests/ref/fate/bink-video-i b/ffmpeg1/tests/ref/fate/bink-video-i
new file mode 100644
index 0000000..32c5e10
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bink-video-i
@@ -0,0 +1,32 @@
+#tb 0: 1/30
+0, 0, 0, 1, 460800, 0xaef133d9
+0, 1, 1, 1, 460800, 0x2da1248b
+0, 2, 2, 1, 460800, 0x3d7945b4
+0, 3, 3, 1, 460800, 0x44554f62
+0, 4, 4, 1, 460800, 0x1bc0007e
+0, 5, 5, 1, 460800, 0xe9b5c4fa
+0, 6, 6, 1, 460800, 0x41b17af0
+0, 7, 7, 1, 460800, 0x88f5d31c
+0, 8, 8, 1, 460800, 0xdedb6e2d
+0, 9, 9, 1, 460800, 0xd36f0a5e
+0, 10, 10, 1, 460800, 0xb564921c
+0, 11, 11, 1, 460800, 0xd72b1208
+0, 12, 12, 1, 460800, 0x5c87760e
+0, 13, 13, 1, 460800, 0xecb75843
+0, 14, 14, 1, 460800, 0x58deee70
+0, 15, 15, 1, 460800, 0x64b5ae3e
+0, 16, 16, 1, 460800, 0x9269e9e6
+0, 17, 17, 1, 460800, 0x47064d62
+0, 18, 18, 1, 460800, 0x88858604
+0, 19, 19, 1, 460800, 0x129d8834
+0, 20, 20, 1, 460800, 0x046ecae5
+0, 21, 21, 1, 460800, 0x6c74c134
+0, 22, 22, 1, 460800, 0x37d56c01
+0, 23, 23, 1, 460800, 0x4c0a4f15
+0, 24, 24, 1, 460800, 0xe28ef96b
+0, 25, 25, 1, 460800, 0x66c72383
+0, 26, 26, 1, 460800, 0x9487175b
+0, 27, 27, 1, 460800, 0x71034965
+0, 28, 28, 1, 460800, 0x0f99ca96
+0, 29, 29, 1, 460800, 0x8a8c79b2
+0, 30, 30, 1, 460800, 0x34d4926e
diff --git a/ffmpeg1/tests/ref/fate/blowfish b/ffmpeg1/tests/ref/fate/blowfish
new file mode 100644
index 0000000..fed0b4d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/blowfish
@@ -0,0 +1 @@
+Test encryption/decryption success.
diff --git a/ffmpeg1/tests/ref/fate/bmp-15bit b/ffmpeg1/tests/ref/fate/bmp-15bit
new file mode 100644
index 0000000..a0f3bbf
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-15bit
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 16256, 0xdbcf881d
diff --git a/ffmpeg1/tests/ref/fate/bmp-15bit-mask b/ffmpeg1/tests/ref/fate/bmp-15bit-mask
new file mode 100644
index 0000000..a0f3bbf
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-15bit-mask
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 16256, 0xdbcf881d
diff --git a/ffmpeg1/tests/ref/fate/bmp-16bit-mask b/ffmpeg1/tests/ref/fate/bmp-16bit-mask
new file mode 100644
index 0000000..afa5ab4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-16bit-mask
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 16256, 0x44675948
diff --git a/ffmpeg1/tests/ref/fate/bmp-1bit b/ffmpeg1/tests/ref/fate/bmp-1bit
new file mode 100644
index 0000000..1c825b1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-1bit
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 24384, 0x4c968301
diff --git a/ffmpeg1/tests/ref/fate/bmp-24bit b/ffmpeg1/tests/ref/fate/bmp-24bit
new file mode 100644
index 0000000..8f1a615
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-24bit
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 24384, 0x325dd8d9
diff --git a/ffmpeg1/tests/ref/fate/bmp-32bit b/ffmpeg1/tests/ref/fate/bmp-32bit
new file mode 100644
index 0000000..8f1a615
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-32bit
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 24384, 0x325dd8d9
diff --git a/ffmpeg1/tests/ref/fate/bmp-32bit-mask b/ffmpeg1/tests/ref/fate/bmp-32bit-mask
new file mode 100644
index 0000000..8f1a615
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-32bit-mask
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 24384, 0x325dd8d9
diff --git a/ffmpeg1/tests/ref/fate/bmp-4bit b/ffmpeg1/tests/ref/fate/bmp-4bit
new file mode 100644
index 0000000..c0eedf1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-4bit
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 24384, 0x322d81f4
diff --git a/ffmpeg1/tests/ref/fate/bmp-4bit-os2 b/ffmpeg1/tests/ref/fate/bmp-4bit-os2
new file mode 100644
index 0000000..8a5f658
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-4bit-os2
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 19800, 0x563b599a
diff --git a/ffmpeg1/tests/ref/fate/bmp-8bit b/ffmpeg1/tests/ref/fate/bmp-8bit
new file mode 100644
index 0000000..887113c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-8bit
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 24384, 0xa7aa6b9b
diff --git a/ffmpeg1/tests/ref/fate/bmp-8bit-os2 b/ffmpeg1/tests/ref/fate/bmp-8bit-os2
new file mode 100644
index 0000000..887113c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-8bit-os2
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 24384, 0xa7aa6b9b
diff --git a/ffmpeg1/tests/ref/fate/bmp-rle4 b/ffmpeg1/tests/ref/fate/bmp-rle4
new file mode 100644
index 0000000..c0eedf1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-rle4
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 24384, 0x322d81f4
diff --git a/ffmpeg1/tests/ref/fate/bmp-rle8 b/ffmpeg1/tests/ref/fate/bmp-rle8
new file mode 100644
index 0000000..887113c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmp-rle8
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 24384, 0xa7aa6b9b
diff --git a/ffmpeg1/tests/ref/fate/bmv-audio b/ffmpeg1/tests/ref/fate/bmv-audio
new file mode 100644
index 0000000..746bb0c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmv-audio
@@ -0,0 +1,22 @@
+#tb 0: 1/22050
+0, 0, 0, 1856, 7424, 0x18540b36
+0, 1856, 1856, 1824, 7296, 0x5acd2484
+0, 3680, 3680, 1856, 7424, 0xa1bc5c5a
+0, 5536, 5536, 1824, 7296, 0x71a02ad1
+0, 7360, 7360, 1856, 7424, 0x09cc32f2
+0, 9216, 9216, 1824, 7296, 0xa3451726
+0, 11040, 11040, 1824, 7296, 0x1eb40a18
+0, 12864, 12864, 1856, 7424, 0xc55a2acf
+0, 14720, 14720, 1824, 7296, 0x5b9fad3f
+0, 16544, 16544, 1856, 7424, 0xea651ae7
+0, 18400, 18400, 1824, 7296, 0x2bd5ddb6
+0, 20224, 20224, 1856, 7424, 0xde4243b4
+0, 22080, 22080, 1824, 7296, 0x358806d3
+0, 23904, 23904, 1824, 7296, 0x511a144e
+0, 25728, 25728, 1856, 7424, 0x887a3e84
+0, 27584, 27584, 1824, 7296, 0xfeae2a0c
+0, 29408, 29408, 1856, 7424, 0xa4ea5d22
+0, 31264, 31264, 1824, 7296, 0xb3adf7fa
+0, 33088, 33088, 1856, 7424, 0xce995dcc
+0, 34944, 34944, 1824, 7296, 0x5b4cf574
+0, 36768, 36768, 1824, 7296, 0x8a70eaf0
diff --git a/ffmpeg1/tests/ref/fate/bmv-video b/ffmpeg1/tests/ref/fate/bmv-video
new file mode 100644
index 0000000..f19cd45
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bmv-video
@@ -0,0 +1,22 @@
+#tb 0: 1/12
+0, 0, 0, 1, 823680, 0xddb8a306
+0, 1, 1, 1, 823680, 0xa95375c8
+0, 2, 2, 1, 823680, 0xa95375c8
+0, 3, 3, 1, 823680, 0xb6f78afe
+0, 4, 4, 1, 823680, 0xb6f78afe
+0, 5, 5, 1, 823680, 0x45b9c8f0
+0, 6, 6, 1, 823680, 0x45b9c8f0
+0, 7, 7, 1, 823680, 0x7653d8e9
+0, 8, 8, 1, 823680, 0x7653d8e9
+0, 9, 9, 1, 823680, 0xf1e2fd73
+0, 10, 10, 1, 823680, 0xf1e2fd73
+0, 11, 11, 1, 823680, 0x6d2deab3
+0, 12, 12, 1, 823680, 0x6d2deab3
+0, 13, 13, 1, 823680, 0x37fd33ce
+0, 14, 14, 1, 823680, 0x37fd33ce
+0, 15, 15, 1, 823680, 0x0a8e0ab9
+0, 16, 16, 1, 823680, 0x0a8e0ab9
+0, 17, 17, 1, 823680, 0x991bb2b0
+0, 18, 18, 1, 823680, 0x991bb2b0
+0, 19, 19, 1, 823680, 0xb8397c8c
+0, 20, 20, 1, 823680, 0xb8397c8c
diff --git a/ffmpeg1/tests/ref/fate/bprint b/ffmpeg1/tests/ref/fate/bprint
new file mode 100644
index 0000000..b33c1ae
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/bprint
@@ -0,0 +1,16 @@
+Short text in unlimited buffer: 174/174
+ 1
+ 1 1
+ 1 2 1
+ 1 3 3 1
+ 1 4 6 4 1
+ 1 5 10 10 5 1
+
+Long text in unlimited buffer: 2834/2834
+Long text in limited buffer: 2047/2834
+Short text in automatic buffer: 174/174
+Long text in automatic buffer: 1000/2834
+Long text count only buffer: 0/2834
+Long text count only buffer: 255/2834
+strftime full: 255/10 "2000-12-20"
+strftime truncated: 255/10 "2000-12"
diff --git a/ffmpeg1/tests/ref/fate/brstm b/ffmpeg1/tests/ref/fate/brstm
new file mode 100644
index 0000000..d183b3f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/brstm
@@ -0,0 +1 @@
+CRC=0x1feb92a8
diff --git a/ffmpeg1/tests/ref/fate/caf b/ffmpeg1/tests/ref/fate/caf
new file mode 100644
index 0000000..00de78c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/caf
@@ -0,0 +1 @@
+CRC=0xd0d7195c
diff --git a/ffmpeg1/tests/ref/fate/cavs b/ffmpeg1/tests/ref/fate/cavs
new file mode 100644
index 0000000..f9af8fa
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cavs
@@ -0,0 +1,172 @@
+#tb 0: 1/25
+0, 0, 0, 1, 622080, 0x76183b91
+0, 1, 1, 1, 622080, 0x2ca5e808
+0, 2, 2, 1, 622080, 0xc503eda4
+0, 3, 3, 1, 622080, 0xa0dbf06c
+0, 4, 4, 1, 622080, 0xf4363cfa
+0, 5, 5, 1, 622080, 0xaa7dd9b8
+0, 6, 6, 1, 622080, 0x3ab6223b
+0, 7, 7, 1, 622080, 0xe402644b
+0, 8, 8, 1, 622080, 0xd0da3ade
+0, 9, 9, 1, 622080, 0x0aff6151
+0, 10, 10, 1, 622080, 0x02aea3d5
+0, 11, 11, 1, 622080, 0x5d8eeccd
+0, 12, 12, 1, 622080, 0x54384735
+0, 13, 13, 1, 622080, 0x890d71c2
+0, 14, 14, 1, 622080, 0xc60ae25b
+0, 15, 15, 1, 622080, 0xe589e774
+0, 16, 16, 1, 622080, 0x03471e74
+0, 17, 17, 1, 622080, 0x4e22302c
+0, 18, 18, 1, 622080, 0x00333583
+0, 19, 19, 1, 622080, 0xd6eae7d9
+0, 20, 20, 1, 622080, 0x72fe94f7
+0, 21, 21, 1, 622080, 0x3ebbad1e
+0, 22, 22, 1, 622080, 0x2fb1de4b
+0, 23, 23, 1, 622080, 0x3bfea6d2
+0, 24, 24, 1, 622080, 0x0fb551b2
+0, 25, 25, 1, 622080, 0xb203284f
+0, 26, 26, 1, 622080, 0xb3baac30
+0, 27, 27, 1, 622080, 0x15f2c1c7
+0, 28, 28, 1, 622080, 0xb2b530ce
+0, 29, 29, 1, 622080, 0xbbaaf241
+0, 30, 30, 1, 622080, 0x01bc9dfc
+0, 31, 31, 1, 622080, 0x8a449a42
+0, 32, 32, 1, 622080, 0xdc63d73f
+0, 33, 33, 1, 622080, 0xf06bc231
+0, 34, 34, 1, 622080, 0x19e04295
+0, 35, 35, 1, 622080, 0x1e7d1acd
+0, 36, 36, 1, 622080, 0x43878b48
+0, 37, 37, 1, 622080, 0xcd94b702
+0, 38, 38, 1, 622080, 0xd2706cf1
+0, 39, 39, 1, 622080, 0x47d636f3
+0, 40, 40, 1, 622080, 0x4a516acc
+0, 41, 41, 1, 622080, 0x52b7d89a
+0, 42, 42, 1, 622080, 0xc9ba03be
+0, 43, 43, 1, 622080, 0x6d17785e
+0, 44, 44, 1, 622080, 0x8264871b
+0, 45, 45, 1, 622080, 0xd59c84c0
+0, 46, 46, 1, 622080, 0x2b86d6cd
+0, 47, 47, 1, 622080, 0x9c5a5f51
+0, 48, 48, 1, 622080, 0x221f79ca
+0, 49, 49, 1, 622080, 0x98edb3ec
+0, 50, 50, 1, 622080, 0x9a31262c
+0, 51, 51, 1, 622080, 0x18f48378
+0, 52, 52, 1, 622080, 0x957c3d9c
+0, 53, 53, 1, 622080, 0x9cc6866e
+0, 54, 54, 1, 622080, 0x45613726
+0, 55, 55, 1, 622080, 0x7a6c5e65
+0, 56, 56, 1, 622080, 0x976d7a11
+0, 57, 57, 1, 622080, 0x192aea08
+0, 58, 58, 1, 622080, 0x8d4fc823
+0, 59, 59, 1, 622080, 0x1f9c55d7
+0, 60, 60, 1, 622080, 0xd4336d41
+0, 61, 61, 1, 622080, 0x7aa650cd
+0, 62, 62, 1, 622080, 0x8efaaeb1
+0, 63, 63, 1, 622080, 0x3d8c3053
+0, 64, 64, 1, 622080, 0x1e2b64b0
+0, 65, 65, 1, 622080, 0x0436b1a7
+0, 66, 66, 1, 622080, 0xc5120072
+0, 67, 67, 1, 622080, 0x0203b245
+0, 68, 68, 1, 622080, 0x9815582b
+0, 69, 69, 1, 622080, 0x3c60c359
+0, 70, 70, 1, 622080, 0x1a26b948
+0, 71, 71, 1, 622080, 0x56079812
+0, 72, 72, 1, 622080, 0x7b192a55
+0, 73, 73, 1, 622080, 0x335632ab
+0, 74, 74, 1, 622080, 0xd0c12eb8
+0, 75, 75, 1, 622080, 0x93bf46cb
+0, 76, 76, 1, 622080, 0xce67ce24
+0, 77, 77, 1, 622080, 0xff95bb26
+0, 78, 78, 1, 622080, 0x5e750705
+0, 79, 79, 1, 622080, 0x45a35725
+0, 80, 80, 1, 622080, 0xd8e93c39
+0, 81, 81, 1, 622080, 0xa9f8db50
+0, 82, 82, 1, 622080, 0xf90a862e
+0, 83, 83, 1, 622080, 0x5e5a4216
+0, 84, 84, 1, 622080, 0xaaf45ed6
+0, 85, 85, 1, 622080, 0x1933cda5
+0, 86, 86, 1, 622080, 0x7ff68d91
+0, 87, 87, 1, 622080, 0x10038fe9
+0, 88, 88, 1, 622080, 0x9b3425a6
+0, 89, 89, 1, 622080, 0x8d2a141d
+0, 90, 90, 1, 622080, 0x698a333e
+0, 91, 91, 1, 622080, 0x334685d1
+0, 92, 92, 1, 622080, 0x40317d40
+0, 93, 93, 1, 622080, 0xd3c6f519
+0, 94, 94, 1, 622080, 0xfc2210c2
+0, 95, 95, 1, 622080, 0x3761df34
+0, 96, 96, 1, 622080, 0xef25462a
+0, 97, 97, 1, 622080, 0x0fd38121
+0, 98, 98, 1, 622080, 0x184856a6
+0, 99, 99, 1, 622080, 0xc57c9f12
+0, 100, 100, 1, 622080, 0x39874291
+0, 101, 101, 1, 622080, 0x7c13cec4
+0, 102, 102, 1, 622080, 0xc4192a76
+0, 103, 103, 1, 622080, 0x2af404e3
+0, 104, 104, 1, 622080, 0x1ee18f41
+0, 105, 105, 1, 622080, 0xfb4d9ee5
+0, 106, 106, 1, 622080, 0x50aae4ff
+0, 107, 107, 1, 622080, 0x030f91fe
+0, 108, 108, 1, 622080, 0x3a3ee08c
+0, 109, 109, 1, 622080, 0x50121423
+0, 110, 110, 1, 622080, 0xda39e2d6
+0, 111, 111, 1, 622080, 0x9e13ccd6
+0, 112, 112, 1, 622080, 0xb72a22a7
+0, 113, 113, 1, 622080, 0xb76904d5
+0, 114, 114, 1, 622080, 0xcffa04a8
+0, 115, 115, 1, 622080, 0x2984bf3f
+0, 116, 116, 1, 622080, 0x274b5778
+0, 117, 117, 1, 622080, 0xf059413a
+0, 118, 118, 1, 622080, 0x969fae57
+0, 119, 119, 1, 622080, 0x75c29097
+0, 120, 120, 1, 622080, 0x2bf3b07d
+0, 121, 121, 1, 622080, 0x9f43271d
+0, 122, 122, 1, 622080, 0x67bf23f3
+0, 123, 123, 1, 622080, 0xa8edcf33
+0, 124, 124, 1, 622080, 0x17a0789e
+0, 125, 125, 1, 622080, 0x14b67cc7
+0, 126, 126, 1, 622080, 0x779215cd
+0, 127, 127, 1, 622080, 0x8b460a21
+0, 128, 128, 1, 622080, 0x0502ad7d
+0, 129, 129, 1, 622080, 0x6860678f
+0, 130, 130, 1, 622080, 0xe180469e
+0, 131, 131, 1, 622080, 0x9a992835
+0, 132, 132, 1, 622080, 0x2efafa33
+0, 133, 133, 1, 622080, 0xe24e59b2
+0, 134, 134, 1, 622080, 0xfb774d53
+0, 135, 135, 1, 622080, 0x3de4ea81
+0, 136, 136, 1, 622080, 0xaf9aa1d6
+0, 137, 137, 1, 622080, 0xa0e3722f
+0, 138, 138, 1, 622080, 0x81684492
+0, 139, 139, 1, 622080, 0xa4e971fb
+0, 140, 140, 1, 622080, 0x4a1903c8
+0, 141, 141, 1, 622080, 0x26304e4a
+0, 142, 142, 1, 622080, 0x867983a4
+0, 143, 143, 1, 622080, 0x2e7e4d13
+0, 144, 144, 1, 622080, 0x736f4682
+0, 145, 145, 1, 622080, 0x426a95fa
+0, 146, 146, 1, 622080, 0x2bc8850c
+0, 147, 147, 1, 622080, 0x047e77ab
+0, 148, 148, 1, 622080, 0x414ab77f
+0, 149, 149, 1, 622080, 0x42681090
+0, 150, 150, 1, 622080, 0x80744ccb
+0, 151, 151, 1, 622080, 0x50e2ecc0
+0, 152, 152, 1, 622080, 0x5c9fe70e
+0, 153, 153, 1, 622080, 0x016461ee
+0, 154, 154, 1, 622080, 0xd42f019a
+0, 155, 155, 1, 622080, 0x8171bf41
+0, 156, 156, 1, 622080, 0xf4d8ef7e
+0, 157, 157, 1, 622080, 0xf2d513c8
+0, 158, 158, 1, 622080, 0xb5b07704
+0, 159, 159, 1, 622080, 0x2168a07a
+0, 160, 160, 1, 622080, 0x840418f9
+0, 161, 161, 1, 622080, 0xd36f1b7c
+0, 162, 162, 1, 622080, 0x52532604
+0, 163, 163, 1, 622080, 0x0856d6eb
+0, 164, 164, 1, 622080, 0x21748734
+0, 165, 165, 1, 622080, 0xbd315c05
+0, 166, 166, 1, 622080, 0x1cea8103
+0, 167, 167, 1, 622080, 0x71f6e3cb
+0, 168, 168, 1, 622080, 0xb12d7aa7
+0, 169, 169, 1, 622080, 0x54dd2acb
+0, 170, 170, 1, 622080, 0xe8f93765
diff --git a/ffmpeg1/tests/ref/fate/cdgraphics b/ffmpeg1/tests/ref/fate/cdgraphics
new file mode 100644
index 0000000..a782059
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cdgraphics
@@ -0,0 +1,213 @@
+#tb 0: 1/300
+0, 0, 0, 1, 194400, 0x46ad80da
+0, 1, 1, 1, 194400, 0x46ad80da
+0, 2, 2, 1, 194400, 0x9392c3b9
+0, 3, 3, 1, 194400, 0x9392c3b9
+0, 4, 4, 1, 194400, 0x9392c3b9
+0, 5, 5, 1, 194400, 0x9392c3b9
+0, 6, 6, 1, 194400, 0x9392c3b9
+0, 7, 7, 1, 194400, 0x9392c3b9
+0, 8, 8, 1, 194400, 0x9392c3b9
+0, 9, 9, 1, 194400, 0x9392c3b9
+0, 10, 10, 1, 194400, 0x9392c3b9
+0, 11, 11, 1, 194400, 0x9392c3b9
+0, 12, 12, 1, 194400, 0x9392c3b9
+0, 13, 13, 1, 194400, 0x9392c3b9
+0, 14, 14, 1, 194400, 0x9392c3b9
+0, 15, 15, 1, 194400, 0x9392c3b9
+0, 16, 16, 1, 194400, 0x46ad80da
+0, 17, 17, 1, 194400, 0x46ad80da
+0, 18, 18, 1, 194400, 0x46ad80da
+0, 19, 19, 1, 194400, 0x46ad80da
+0, 20, 20, 1, 194400, 0x46ad80da
+0, 21, 21, 1, 194400, 0x46ad80da
+0, 22, 22, 1, 194400, 0x46ad80da
+0, 23, 23, 1, 194400, 0x46ad80da
+0, 24, 24, 1, 194400, 0x46ad80da
+0, 25, 25, 1, 194400, 0x46ad80da
+0, 26, 26, 1, 194400, 0x46ad80da
+0, 27, 27, 1, 194400, 0x46ad80da
+0, 28, 28, 1, 194400, 0x46ad80da
+0, 29, 29, 1, 194400, 0x46ad80da
+0, 30, 30, 1, 194400, 0x46ad80da
+0, 31, 31, 1, 194400, 0x46ad80da
+0, 32, 32, 1, 194400, 0x9392c3b9
+0, 33, 33, 1, 194400, 0x9ff8cbb1
+0, 34, 34, 1, 194400, 0xd015dba1
+0, 35, 35, 1, 194400, 0x6a39f18b
+0, 37, 37, 1, 194400, 0x7b8cf983
+0, 38, 38, 1, 194400, 0x07a20f7c
+0, 40, 40, 1, 194400, 0xa63e2962
+0, 41, 41, 1, 194400, 0x2dd54447
+0, 43, 43, 1, 194400, 0x90735e2d
+0, 44, 44, 1, 194400, 0x90d98506
+0, 46, 46, 1, 194400, 0xe5b08ffb
+0, 47, 47, 1, 194400, 0x7a0d95f5
+0, 49, 49, 1, 194400, 0xff6bacde
+0, 50, 50, 1, 194400, 0xd998c2c8
+0, 52, 52, 1, 194400, 0x3d1ddfab
+0, 53, 53, 1, 194400, 0x817de4a6
+0, 55, 55, 1, 194400, 0xfa3ef694
+0, 56, 56, 1, 194400, 0x0b5bfb8f
+0, 58, 58, 1, 194400, 0x00f62376
+0, 59, 59, 1, 194400, 0x2f6b2d6c
+0, 61, 61, 1, 194400, 0x40cb4752
+0, 62, 62, 1, 194400, 0xd8456435
+0, 64, 64, 1, 194400, 0x459f6a2f
+0, 65, 65, 1, 194400, 0x9b678910
+0, 67, 67, 1, 194400, 0x8791a1f7
+0, 68, 68, 1, 194400, 0xdb4ac5d3
+0, 70, 70, 1, 194400, 0xb223c8d0
+0, 71, 71, 1, 194400, 0x4a9ce7b1
+0, 73, 73, 1, 194400, 0x187eeaae
+0, 74, 74, 1, 194400, 0xc712f8a0
+0, 76, 76, 1, 194400, 0x549c00a7
+0, 77, 77, 1, 194400, 0x4d991295
+0, 79, 79, 1, 194400, 0xc41b2681
+0, 80, 80, 1, 194400, 0xed5a3077
+0, 82, 82, 1, 194400, 0x85ad4463
+0, 83, 83, 1, 194400, 0xb98f4760
+0, 85, 85, 1, 194400, 0x87ef5e49
+0, 86, 86, 1, 194400, 0x830a6146
+0, 88, 88, 1, 194400, 0xe33a792e
+0, 89, 89, 1, 194400, 0x83517a2d
+0, 91, 91, 1, 194400, 0xa97e9314
+0, 92, 92, 1, 194400, 0x39059611
+0, 94, 94, 1, 194400, 0xbf4eb9ed
+0, 95, 95, 1, 194400, 0xe5afc4e2
+0, 97, 97, 1, 194400, 0x35d4cdd9
+0, 98, 98, 1, 194400, 0xb376e1c5
+0, 100, 100, 1, 194400, 0x6128e3c3
+0, 101, 101, 1, 194400, 0x30b7f7af
+0, 103, 103, 1, 194400, 0xf1effaac
+0, 104, 104, 1, 194400, 0x483914a1
+0, 106, 106, 1, 194400, 0xbd48199c
+0, 107, 107, 1, 194400, 0x382f2d88
+0, 109, 109, 1, 194400, 0x5a573085
+0, 110, 110, 1, 194400, 0x89733580
+0, 112, 112, 1, 194400, 0xd1325a5b
+0, 113, 113, 1, 194400, 0x655b6253
+0, 115, 115, 1, 194400, 0x55146352
+0, 116, 116, 1, 194400, 0xda527c39
+0, 118, 118, 1, 194400, 0xb0cd7e37
+0, 119, 119, 1, 194400, 0x25e7991c
+0, 121, 121, 1, 194400, 0x5c22a411
+0, 122, 122, 1, 194400, 0x1e2abdf7
+0, 124, 124, 1, 194400, 0x8308bff5
+0, 125, 125, 1, 194400, 0xfdbfd6de
+0, 127, 127, 1, 194400, 0xd4d4d9db
+0, 128, 128, 1, 194400, 0xa449fbb9
+0, 130, 130, 1, 194400, 0x3dcafdb7
+0, 131, 131, 1, 194400, 0x6f1f01c2
+0, 133, 133, 1, 194400, 0xf54a1da6
+0, 134, 134, 1, 194400, 0x88d11fa4
+0, 136, 136, 1, 194400, 0x59642d96
+0, 137, 137, 1, 194400, 0x8ba44182
+0, 139, 139, 1, 194400, 0x88f56360
+0, 140, 140, 1, 194400, 0xfb246d56
+0, 142, 142, 1, 194400, 0xad128043
+0, 143, 143, 1, 194400, 0x3a4f8a39
+0, 145, 145, 1, 194400, 0x563d9d26
+0, 146, 146, 1, 194400, 0x6ff8a320
+0, 148, 148, 1, 194400, 0xcdb9b70c
+0, 149, 149, 1, 194400, 0x99c2bd06
+0, 151, 151, 1, 194400, 0x4b47cef4
+0, 152, 152, 1, 194400, 0x10b9dce6
+0, 154, 154, 1, 194400, 0xdd39f1d1
+0, 155, 155, 1, 194400, 0xbcf104cd
+0, 157, 157, 1, 194400, 0x85ec17ba
+0, 158, 158, 1, 194400, 0x069219b8
+0, 160, 160, 1, 194400, 0x84dd3899
+0, 161, 161, 1, 194400, 0xacca4190
+0, 163, 163, 1, 194400, 0xcf5b5d74
+0, 164, 164, 1, 194400, 0x4b8c626f
+0, 166, 166, 1, 194400, 0xf0817958
+0, 167, 167, 1, 194400, 0xc0887e53
+0, 169, 169, 1, 194400, 0x42e6854c
+0, 170, 170, 1, 194400, 0x036c9140
+0, 172, 172, 1, 194400, 0x0f21a62b
+0, 173, 173, 1, 194400, 0xcdaeaa27
+0, 175, 175, 1, 194400, 0xe425bc15
+0, 176, 176, 1, 194400, 0x8e18c20f
+0, 178, 178, 1, 194400, 0x767cd5fb
+0, 179, 179, 1, 194400, 0x554ae6ea
+0, 181, 181, 1, 194400, 0xeac1f9d7
+0, 182, 182, 1, 194400, 0x0b32fed2
+0, 184, 184, 1, 194400, 0xe30c19c6
+0, 185, 185, 1, 194400, 0x6a8a23bc
+0, 187, 187, 1, 194400, 0x26bf36a9
+0, 188, 188, 1, 194400, 0x1e4f3fa0
+0, 190, 190, 1, 194400, 0x231f5986
+0, 191, 191, 1, 194400, 0xf557756a
+0, 193, 193, 1, 194400, 0x6bce805f
+0, 194, 194, 1, 194400, 0xcd80924d
+0, 196, 196, 1, 194400, 0x65dc9f40
+0, 197, 197, 1, 194400, 0x2ab7af30
+0, 199, 199, 1, 194400, 0xd43cb728
+0, 200, 200, 1, 194400, 0x05d9c916
+0, 202, 202, 1, 194400, 0x43cad10e
+0, 203, 203, 1, 194400, 0x06b5e0fe
+0, 205, 205, 1, 194400, 0xa142f0ee
+0, 206, 206, 1, 194400, 0xed7f03ea
+0, 208, 208, 1, 194400, 0xf26019d4
+0, 209, 209, 1, 194400, 0x3b7f29c4
+0, 211, 211, 1, 194400, 0x30282ebf
+0, 212, 212, 1, 194400, 0xaeff4aa3
+0, 214, 214, 1, 194400, 0x1d355697
+0, 215, 215, 1, 194400, 0x2ead6f7e
+0, 217, 217, 1, 194400, 0xf1b67776
+0, 218, 218, 1, 194400, 0x93b38b62
+0, 220, 220, 1, 194400, 0x9469905d
+0, 221, 221, 1, 194400, 0x27bf9756
+0, 223, 223, 1, 194400, 0xd016a548
+0, 224, 224, 1, 194400, 0x6889b835
+0, 226, 226, 1, 194400, 0x6a05be2f
+0, 227, 227, 1, 194400, 0xe0a1ce1f
+0, 229, 229, 1, 194400, 0x8fdbd617
+0, 230, 230, 1, 194400, 0xd68fe805
+0, 232, 232, 1, 194400, 0x0d1dfbf1
+0, 233, 233, 1, 194400, 0x0fe70bf0
+0, 235, 235, 1, 194400, 0x0a8f13e8
+0, 236, 236, 1, 194400, 0x0ca42bd0
+0, 238, 238, 1, 194400, 0x6f3838c3
+0, 239, 239, 1, 194400, 0x045448b3
+0, 241, 241, 1, 194400, 0x764349b2
+0, 242, 242, 1, 194400, 0xed1651aa
+0, 244, 244, 1, 194400, 0xbb376398
+0, 245, 245, 1, 194400, 0xd0d5718a
+0, 247, 247, 1, 194400, 0xcd977e7d
+0, 248, 248, 1, 194400, 0x8cb39665
+0, 250, 250, 1, 194400, 0xb935b04b
+0, 251, 251, 1, 194400, 0x0292be3d
+0, 253, 253, 1, 194400, 0x4f21c833
+0, 254, 254, 1, 194400, 0xa5c7d823
+0, 256, 256, 1, 194400, 0xfb8ee01b
+0, 257, 257, 1, 194400, 0xea53ee0d
+0, 259, 259, 1, 194400, 0x803efcfe
+0, 260, 260, 1, 194400, 0x2c0e0aff
+0, 262, 262, 1, 194400, 0x3df318f1
+0, 263, 263, 1, 194400, 0xc4cb26e3
+0, 265, 265, 1, 194400, 0x92a033d6
+0, 266, 266, 1, 194400, 0x1b2048c1
+0, 268, 268, 1, 194400, 0x236858b1
+0, 269, 269, 1, 194400, 0x482f6d9c
+0, 271, 271, 1, 194400, 0x9ee97891
+0, 272, 272, 1, 194400, 0xe0dc8683
+0, 274, 274, 1, 194400, 0x461b9079
+0, 275, 275, 1, 194400, 0xd346a960
+0, 277, 277, 1, 194400, 0xa384b554
+0, 278, 278, 1, 194400, 0x3246cf3a
+0, 280, 280, 1, 194400, 0xa53fe722
+0, 281, 281, 1, 194400, 0xe620fd0c
+0, 283, 283, 1, 194400, 0xd6370414
+0, 284, 284, 1, 194400, 0xf57f1404
+0, 286, 286, 1, 194400, 0x8c6420f7
+0, 287, 287, 1, 194400, 0xd4be3add
+0, 289, 289, 1, 194400, 0xa8dc4ec9
+0, 290, 290, 1, 194400, 0xda1563b4
+0, 292, 292, 1, 194400, 0xd51873a4
+0, 293, 293, 1, 194400, 0x68588196
+0, 295, 295, 1, 194400, 0x40d18e89
+0, 296, 296, 1, 194400, 0x1b75a275
+0, 298, 298, 1, 194400, 0xedd1a572
+0, 299, 299, 1, 194400, 0x55daad6a
diff --git a/ffmpeg1/tests/ref/fate/cdxl-bitline-ham6 b/ffmpeg1/tests/ref/fate/cdxl-bitline-ham6
new file mode 100644
index 0000000..8060f06
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cdxl-bitline-ham6
@@ -0,0 +1,11 @@
+#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/ffmpeg1/tests/ref/fate/cdxl-demux b/ffmpeg1/tests/ref/fate/cdxl-demux
new file mode 100644
index 0000000..7e4c4c8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cdxl-demux
@@ -0,0 +1,21 @@
+#tb 0: 1/11025
+#tb 1: 1/11025
+0, 0, 0, 1884, 22688, 0xc954a244
+1, 0, 0, 1884, 1884, 0x06925e3e
+0, 1884, 1884, 1884, 22688, 0x3ee4a304
+1, 1884, 1884, 1884, 1884, 0x1957ab65
+0, 3768, 3768, 1884, 22688, 0x9777a305
+1, 3768, 3768, 1884, 1884, 0x7fcd6e47
+0, 5652, 5652, 1884, 22688, 0xf00aa306
+1, 5652, 5652, 1884, 1884, 0xc974878e
+0, 7536, 7536, 1884, 22688, 0x48aca307
+1, 7536, 7536, 1884, 1884, 0xecb5c4c8
+0, 9420, 9420, 1884, 22688, 0xa13fa308
+1, 9420, 9420, 1884, 1884, 0x87adce5f
+0, 11304, 11304, 1884, 22688, 0xf9d2a309
+1, 11304, 11304, 1884, 1884, 0x3cf097e4
+0, 13188, 13188, 1884, 22688, 0x5274a30a
+1, 13188, 13188, 1884, 1884, 0xcc218105
+0, 15072, 15072, 1884, 22688, 0xab07a30b
+1, 15072, 15072, 1884, 1884, 0xf685762f
+0, 16956, 16956, 1884, 17896, 0x1a696b6e
diff --git a/ffmpeg1/tests/ref/fate/cdxl-ham6 b/ffmpeg1/tests/ref/fate/cdxl-ham6
new file mode 100644
index 0000000..6426d45
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cdxl-ham6
@@ -0,0 +1,17 @@
+#tb 0: 52/525
+0, 0, 0, 1, 57600, 0x87887a7b
+0, 1, 1, 1, 57600, 0x10c301d2
+0, 2, 2, 1, 57600, 0xd1a6f910
+0, 3, 3, 1, 57600, 0x20242bb9
+0, 4, 4, 1, 57600, 0xae33cb7f
+0, 5, 5, 1, 57600, 0x501b82c8
+0, 6, 6, 1, 57600, 0x84199043
+0, 7, 7, 1, 57600, 0x946a6dbb
+0, 8, 8, 1, 57600, 0xeacea671
+0, 9, 9, 1, 57600, 0x77b8723f
+0, 10, 10, 1, 57600, 0x371cdb09
+0, 11, 11, 1, 57600, 0xa16ef5ee
+0, 12, 12, 1, 57600, 0xcb6abd9e
+0, 13, 13, 1, 57600, 0xb73e800f
+0, 14, 14, 1, 57600, 0x368bd93e
+0, 15, 15, 1, 57600, 0xcde72dc5
diff --git a/ffmpeg1/tests/ref/fate/cdxl-ham8 b/ffmpeg1/tests/ref/fate/cdxl-ham8
new file mode 100644
index 0000000..269f1f3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cdxl-ham8
@@ -0,0 +1,2 @@
+#tb 0: 3/158
+0, 0, 0, 1, 67584, 0xce0cade5
diff --git a/ffmpeg1/tests/ref/fate/cdxl-pal8 b/ffmpeg1/tests/ref/fate/cdxl-pal8
new file mode 100644
index 0000000..82d4d63
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cdxl-pal8
@@ -0,0 +1,12 @@
+#tb 0: 12/601
+0, 0, 0, 1, 67584, 0x5eae629b
+0, 1, 1, 1, 67584, 0x32591227
+0, 2, 2, 1, 67584, 0x4e4424c7
+0, 3, 3, 1, 67584, 0x70db0134
+0, 4, 4, 1, 67584, 0x3550ed0b
+0, 5, 5, 1, 67584, 0x86fe3eef
+0, 6, 6, 1, 67584, 0x3414bb33
+0, 7, 7, 1, 67584, 0x667bfb91
+0, 8, 8, 1, 67584, 0x6e1a4ccb
+0, 9, 9, 1, 67584, 0xf723f9ae
+0, 10, 10, 1, 67584, 0x88481d5d
diff --git a/ffmpeg1/tests/ref/fate/cdxl-pal8-small b/ffmpeg1/tests/ref/fate/cdxl-pal8-small
new file mode 100644
index 0000000..f7a1a46
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cdxl-pal8-small
@@ -0,0 +1,47 @@
+#tb 0: 368/11025
+0, 0, 0, 1, 30720, 0x0d552cfd
+0, 1, 1, 1, 30720, 0x3cf93291
+0, 2, 2, 1, 30720, 0xe45b2868
+0, 3, 3, 1, 30720, 0xb5df289b
+0, 4, 4, 1, 30720, 0x2562259e
+0, 5, 5, 1, 30720, 0xbf171878
+0, 6, 6, 1, 30720, 0x695b1d73
+0, 7, 7, 1, 30720, 0x89ef1614
+0, 8, 8, 1, 30720, 0xe12a1dd9
+0, 9, 9, 1, 30720, 0x49622ffa
+0, 10, 10, 1, 30720, 0xd6832703
+0, 11, 11, 1, 30720, 0xec1d0cb7
+0, 12, 12, 1, 30720, 0x8bee0525
+0, 13, 13, 1, 30720, 0x1e0cf0c4
+0, 14, 14, 1, 30720, 0xf83fd9db
+0, 15, 15, 1, 30720, 0xffb0d6ab
+0, 16, 16, 1, 30720, 0xe37fe239
+0, 17, 17, 1, 30720, 0x74b0f856
+0, 18, 18, 1, 30720, 0x9c88d3e1
+0, 19, 19, 1, 30720, 0x714db368
+0, 20, 20, 1, 30720, 0x6c8e8860
+0, 21, 21, 1, 30720, 0x804968e6
+0, 22, 22, 1, 30720, 0x7ac56ae4
+0, 23, 23, 1, 30720, 0xffd85cbf
+0, 24, 24, 1, 30720, 0x1f8455f9
+0, 25, 25, 1, 30720, 0x3ae65296
+0, 26, 26, 1, 30720, 0x9e544ecd
+0, 27, 27, 1, 30720, 0x35678e5a
+0, 28, 28, 1, 30720, 0x04bae866
+0, 29, 29, 1, 30720, 0xb126ed94
+0, 30, 30, 1, 30720, 0x1720efc5
+0, 31, 31, 1, 30720, 0x4c1b01c2
+0, 32, 32, 1, 30720, 0xd0a1e866
+0, 33, 33, 1, 30720, 0x0d330789
+0, 34, 34, 1, 30720, 0xf5ac08bb
+0, 35, 35, 1, 30720, 0x9abe0d83
+0, 36, 36, 1, 30720, 0xa44c02f4
+0, 37, 37, 1, 30720, 0xdc4cc688
+0, 38, 38, 1, 30720, 0x22eef3c1
+0, 39, 39, 1, 30720, 0xcfbc0d1d
+0, 40, 40, 1, 30720, 0x7104ea31
+0, 41, 41, 1, 30720, 0x80daecfb
+0, 42, 42, 1, 30720, 0xe1bab995
+0, 43, 43, 1, 30720, 0x43f4b896
+0, 44, 44, 1, 30720, 0xa0d2bf5c
+0, 45, 45, 1, 30720, 0x3556a114
diff --git a/ffmpeg1/tests/ref/fate/cljr b/ffmpeg1/tests/ref/fate/cljr
new file mode 100644
index 0000000..5842541
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cljr
@@ -0,0 +1,37 @@
+#tb 0: 3521/100000
+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/ffmpeg1/tests/ref/fate/cllc-argb b/ffmpeg1/tests/ref/fate/cllc-argb
new file mode 100644
index 0000000..4a5dce5
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cllc-argb
@@ -0,0 +1,6 @@
+#tb 0: 1001/24000
+0, 0, 0, 1, 3686400, 0xb37a6e69
+0, 1, 1, 1, 3686400, 0x66a45032
+0, 2, 2, 1, 3686400, 0xdf0c861f
+0, 3, 3, 1, 3686400, 0xa4a68cdb
+0, 4, 4, 1, 3686400, 0xb5f9526e
diff --git a/ffmpeg1/tests/ref/fate/cllc-rgb b/ffmpeg1/tests/ref/fate/cllc-rgb
new file mode 100644
index 0000000..b4ca055
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cllc-rgb
@@ -0,0 +1,16 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 921600, 0x82e44cb9
+0, 1, 1, 1, 921600, 0x6ecc8a6c
+0, 2, 2, 1, 921600, 0x0dc31839
+0, 3, 3, 1, 921600, 0x8ed6fb3c
+0, 4, 4, 1, 921600, 0x72d759fd
+0, 5, 5, 1, 921600, 0x3941e84d
+0, 6, 6, 1, 921600, 0x9e63f5cd
+0, 7, 7, 1, 921600, 0xbce4f1cc
+0, 8, 8, 1, 921600, 0xb531bd5d
+0, 9, 9, 1, 921600, 0xab28aada
+0, 10, 10, 1, 921600, 0x49f21d52
+0, 11, 11, 1, 921600, 0x4d7488fa
+0, 12, 12, 1, 921600, 0x16b9c9c9
+0, 13, 13, 1, 921600, 0xa0a4f77f
+0, 14, 14, 1, 921600, 0xf61a5501
diff --git a/ffmpeg1/tests/ref/fate/corepng b/ffmpeg1/tests/ref/fate/corepng
new file mode 100644
index 0000000..e200714
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/corepng
@@ -0,0 +1,39 @@
+#tb 0: 1/15
+#tb 1: 1/11025
+0, 0, 0, 1, 230400, 0x03e25ead
+1, 0, 0, 5513, 11026, 0x27ad637c
+0, 1, 1, 1, 230400, 0x0a520ffd
+0, 2, 2, 1, 230400, 0x0b11a671
+0, 3, 3, 1, 230400, 0x7d3fce32
+0, 4, 4, 1, 230400, 0x1edb18cc
+0, 5, 5, 1, 230400, 0x1d470493
+0, 6, 6, 1, 230400, 0xe53ba01d
+0, 7, 7, 1, 230400, 0xc4df13c2
+1, 5513, 5513, 735, 1470, 0x4af4b7a3
+0, 8, 8, 1, 230400, 0x5febe6c9
+1, 6248, 6248, 735, 1470, 0x2601fc3b
+0, 9, 9, 1, 230400, 0xb0de2ed9
+1, 6983, 6983, 735, 1470, 0xd94ec488
+0, 10, 10, 1, 230400, 0x4991ee21
+1, 7718, 7718, 735, 1470, 0x5ffb6bdd
+0, 11, 11, 1, 230400, 0x6b367a75
+1, 8453, 8453, 735, 1470, 0xc5fece50
+0, 12, 12, 1, 230400, 0x1d406b55
+1, 9188, 9188, 735, 1470, 0xf4988a98
+0, 13, 13, 1, 230400, 0x2bbbf1d3
+1, 9923, 9923, 735, 1470, 0xa839620f
+0, 14, 14, 1, 230400, 0x2a5ee265
+1, 10658, 10658, 735, 1470, 0x800a77ff
+0, 15, 15, 1, 230400, 0x0ae9de8d
+1, 11393, 11393, 735, 1470, 0x8fc8a729
+0, 16, 16, 1, 230400, 0x567eabf8
+1, 12128, 12128, 735, 1470, 0x78708001
+0, 17, 17, 1, 230400, 0x00260e67
+1, 12863, 12863, 735, 1470, 0xb601958b
+1, 13598, 13598, 735, 1470, 0xb054d1d3
+1, 14333, 14333, 735, 1470, 0xce18bb41
+1, 15068, 15068, 735, 1470, 0x43d182f9
+1, 15803, 15803, 735, 1470, 0xe9448449
+1, 16538, 16538, 735, 1470, 0x175ea4b3
+1, 17273, 17273, 735, 1470, 0xf96b0e6a
+1, 18008, 18008, 735, 1470, 0x12cc42fb
diff --git a/ffmpeg1/tests/ref/fate/crc b/ffmpeg1/tests/ref/fate/crc
new file mode 100644
index 0000000..1c24aea
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/crc
@@ -0,0 +1,4 @@
+crc EDB88320 = 3D5CDD04
+crc 04C11DB7 = E0BAF5C0
+crc 00008005 = BB1F
+crc 00000007 = E3
diff --git a/ffmpeg1/tests/ref/fate/creatureshock-avs b/ffmpeg1/tests/ref/fate/creatureshock-avs
new file mode 100644
index 0000000..4c721d8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/creatureshock-avs
@@ -0,0 +1,94 @@
+#tb 0: 1/15
+#tb 1: 1/22222
+0, 0, 0, 1, 188892, 0x9f47a5ec
+1, 0, 0, 8186, 16372, 0xfaaab59d
+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, 6, 6, 1, 188892, 0x5adac3ff
+1, 10200, 10200, 2743, 5486, 0xf7fd794d
+0, 7, 7, 1, 188892, 0x5928954e
+0, 8, 8, 1, 188892, 0x5e4cad6c
+1, 12943, 12943, 2895, 5790, 0xfd5a369f
+0, 9, 9, 1, 188892, 0xbbb5f11b
+0, 10, 10, 1, 188892, 0xcb6bbdee
+1, 15838, 15838, 534, 1068, 0x0b602cd0
+0, 11, 11, 1, 188892, 0xa5b3b316
+1, 16372, 16372, 2454, 4908, 0xfe870aad
+0, 12, 12, 1, 188892, 0x9bf87b5d
+1, 18826, 18826, 3031, 6062, 0x8a4d6e0f
+0, 13, 13, 1, 188892, 0xcc3981be
+0, 14, 14, 1, 188892, 0x2eb44dfa
+1, 21857, 21857, 2701, 5402, 0x71fd352f
+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, 17, 17, 1, 188892, 0x5078694c
+0, 18, 18, 1, 188892, 0xa24485c2
+1, 27783, 27783, 2958, 5916, 0x0d26eb56
+0, 19, 19, 1, 188892, 0xc8016946
+0, 20, 20, 1, 188892, 0x71e3493b
+1, 30741, 30741, 2003, 4006, 0x9941c71a
+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, 23, 23, 1, 188892, 0x193e4cda
+0, 24, 24, 1, 188892, 0x3b444fd1
+1, 36741, 36741, 3045, 6090, 0xf43e73d0
+0, 25, 25, 1, 188892, 0x8bfe594c
+0, 26, 26, 1, 188892, 0xaab8267b
+1, 39786, 39786, 1144, 2288, 0x5a8b7aa0
+0, 27, 27, 1, 188892, 0x03206c55
+1, 40930, 40930, 1925, 3850, 0x7f66eb2c
+0, 28, 28, 1, 188892, 0x8ed7ea7d
+1, 42855, 42855, 2898, 5796, 0xc5cf3ee8
+0, 29, 29, 1, 188892, 0x2a1bc3e1
+0, 30, 30, 1, 188892, 0xa6a12aa7
+1, 45753, 45753, 3021, 6042, 0xed80136d
+0, 31, 31, 1, 188892, 0xa96ca4fa
+0, 32, 32, 1, 188892, 0x3e3a6d70
+1, 48774, 48774, 342, 684, 0xc42bd137
+0, 33, 33, 1, 188892, 0x47e173dd
+1, 49116, 49116, 2718, 5436, 0xb7f8a6fd
+0, 34, 34, 1, 188892, 0xfcf183ba
+1, 51834, 51834, 3049, 6098, 0xee6354a2
+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, 38, 38, 1, 188892, 0x15ae396e
+1, 57302, 57302, 537, 1074, 0x9da90634
+0, 39, 39, 1, 188892, 0xc876eabf
+1, 57839, 57839, 3042, 6084, 0x8ffed952
+0, 40, 40, 1, 188892, 0xc5c65fae
+0, 41, 41, 1, 188892, 0x4feec932
+1, 60881, 60881, 3019, 6038, 0xa07b4276
+0, 42, 42, 1, 188892, 0x21374e88
+0, 43, 43, 1, 188892, 0x52e689f1
+1, 63900, 63900, 1588, 3176, 0xebef63c1
+0, 44, 44, 1, 188892, 0x9e2492e8
+1, 65488, 65488, 1397, 2794, 0xbe1000db
+0, 45, 45, 1, 188892, 0xac841247
+1, 66885, 66885, 3010, 6020, 0xd8e34961
+0, 46, 46, 1, 188892, 0x8467aab2
+0, 47, 47, 1, 188892, 0x552b6029
+1, 69895, 69895, 3010, 6020, 0xc07cf461
+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, 50, 50, 1, 188892, 0xa3661fdd
+0, 51, 51, 1, 188892, 0x433d22dd
+1, 75789, 75789, 3042, 6084, 0x2cf0a407
+0, 52, 52, 1, 188892, 0xd64dbc4e
+0, 53, 53, 1, 188892, 0x4a2aa0e3
+1, 78831, 78831, 2914, 5828, 0x12750279
+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/ffmpeg1/tests/ref/fate/cscd b/ffmpeg1/tests/ref/fate/cscd
new file mode 100644
index 0000000..74fe94e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cscd
@@ -0,0 +1,209 @@
+#tb 0: 1/200
+0, 0, 0, 1, 270000, 0xf90015d8
+0, 9, 9, 1, 270000, 0xf90015d8
+0, 15, 15, 1, 270000, 0xf90015d8
+0, 22, 22, 1, 270000, 0xf90015d8
+0, 28, 28, 1, 270000, 0xf90015d8
+0, 34, 34, 1, 270000, 0xf90015d8
+0, 40, 40, 1, 270000, 0xf90015d8
+0, 47, 47, 1, 270000, 0xf90015d8
+0, 53, 53, 1, 270000, 0xf90015d8
+0, 59, 59, 1, 270000, 0xf90015d8
+0, 65, 65, 1, 270000, 0xf90015d8
+0, 72, 72, 1, 270000, 0xf90015d8
+0, 78, 78, 1, 270000, 0xf90015d8
+0, 84, 84, 1, 270000, 0xf90015d8
+0, 93, 93, 1, 270000, 0xf90015d8
+0, 100, 100, 1, 270000, 0xf90015d8
+0, 106, 106, 1, 270000, 0xf90015d8
+0, 112, 112, 1, 270000, 0xf90015d8
+0, 118, 118, 1, 270000, 0xf90015d8
+0, 125, 125, 1, 270000, 0xf90015d8
+0, 131, 131, 1, 270000, 0xf90015d8
+0, 137, 137, 1, 270000, 0xf90015d8
+0, 143, 143, 1, 270000, 0xf90015d8
+0, 150, 150, 1, 270000, 0xf90015d8
+0, 156, 156, 1, 270000, 0xf90015d8
+0, 162, 162, 1, 270000, 0xf90015d8
+0, 168, 168, 1, 270000, 0xf90015d8
+0, 175, 175, 1, 270000, 0xf90015d8
+0, 181, 181, 1, 270000, 0xf90015d8
+0, 187, 187, 1, 270000, 0xf90015d8
+0, 193, 193, 1, 270000, 0xf90015d8
+0, 200, 200, 1, 270000, 0xf90015d8
+0, 206, 206, 1, 270000, 0xf90015d8
+0, 212, 212, 1, 270000, 0xf90015d8
+0, 218, 218, 1, 270000, 0xf90015d8
+0, 225, 225, 1, 270000, 0xf90015d8
+0, 231, 231, 1, 270000, 0xf90015d8
+0, 237, 237, 1, 270000, 0xf90015d8
+0, 243, 243, 1, 270000, 0xf90015d8
+0, 253, 253, 1, 270000, 0x1f9c15d8
+0, 262, 262, 1, 270000, 0x436f15d8
+0, 268, 268, 1, 270000, 0xe90115d8
+0, 275, 275, 1, 270000, 0xe90115d8
+0, 281, 281, 1, 270000, 0x8ea215d8
+0, 290, 290, 1, 270000, 0x424015d8
+0, 300, 300, 1, 270000, 0x0ce315d8
+0, 309, 309, 1, 270000, 0x14bc15d8
+0, 318, 318, 1, 270000, 0x2a9215d8
+0, 328, 328, 1, 270000, 0x233f15d8
+0, 337, 337, 1, 270000, 0x764b15d8
+0, 347, 347, 1, 270000, 0xf76115d8
+0, 356, 356, 1, 270000, 0xbbe015d8
+0, 365, 365, 1, 270000, 0x95af15d8
+0, 375, 375, 1, 270000, 0x324815d8
+0, 384, 384, 1, 270000, 0x311915d8
+0, 393, 393, 1, 270000, 0x090ef191
+0, 403, 403, 1, 270000, 0xd88974dc
+0, 412, 412, 1, 270000, 0xfa7f58df
+0, 422, 422, 1, 270000, 0x78f849c3
+0, 431, 431, 1, 270000, 0xae174892
+0, 440, 440, 1, 270000, 0x9d4e2332
+0, 450, 450, 1, 270000, 0x874b09b4
+0, 459, 459, 1, 270000, 0x4069fed6
+0, 465, 465, 1, 270000, 0x4069fed6
+0, 472, 472, 1, 270000, 0x4069fed6
+0, 478, 478, 1, 270000, 0x4069fed6
+0, 484, 484, 1, 270000, 0x4069fed6
+0, 490, 490, 1, 270000, 0x4069fed6
+0, 500, 500, 1, 270000, 0x4069fed6
+0, 506, 506, 1, 270000, 0x4069fed6
+0, 512, 512, 1, 270000, 0x4069fed6
+0, 518, 518, 1, 270000, 0x4069fed6
+0, 525, 525, 1, 270000, 0x4069fed6
+0, 553, 553, 1, 270000, 0x773db046
+0, 559, 559, 1, 270000, 0x773db046
+0, 565, 565, 1, 270000, 0x773db046
+0, 572, 572, 1, 270000, 0x773db046
+0, 578, 578, 1, 270000, 0x773db046
+0, 584, 584, 1, 270000, 0x773db046
+0, 590, 590, 1, 270000, 0x773db046
+0, 597, 597, 1, 270000, 0x773db046
+0, 603, 603, 1, 270000, 0x773db046
+0, 609, 609, 1, 270000, 0x773db046
+0, 615, 615, 1, 270000, 0x773db046
+0, 622, 622, 1, 270000, 0x773db046
+0, 628, 628, 1, 270000, 0x773db046
+0, 634, 634, 1, 270000, 0x773db046
+0, 640, 640, 1, 270000, 0x773db046
+0, 647, 647, 1, 270000, 0x773db046
+0, 653, 653, 1, 270000, 0x773db046
+0, 662, 662, 1, 270000, 0x17b9aec9
+0, 672, 672, 1, 270000, 0x622fad4c
+0, 681, 681, 1, 270000, 0xdaea3aef
+0, 687, 687, 1, 270000, 0x61bb10e3
+0, 693, 693, 1, 270000, 0xfc37ee0c
+0, 703, 703, 1, 270000, 0x50dbd01e
+0, 712, 712, 1, 270000, 0xcd66c27c
+0, 722, 722, 1, 270000, 0xd13f1e4f
+0, 731, 731, 1, 270000, 0xa4a2dbf5
+0, 740, 740, 1, 270000, 0xf302c9ab
+0, 750, 750, 1, 270000, 0x4479f7fe
+0, 759, 759, 1, 270000, 0x1afe92c8
+0, 768, 768, 1, 270000, 0x3007f4c3
+0, 778, 778, 1, 270000, 0x5834c096
+0, 784, 784, 1, 270000, 0x40109126
+0, 790, 790, 1, 270000, 0x0a7b8882
+0, 800, 800, 1, 270000, 0x15b8635d
+0, 806, 806, 1, 270000, 0xeaa5598e
+0, 812, 812, 1, 270000, 0x0b7b5489
+0, 818, 818, 1, 270000, 0x0b7b5489
+0, 825, 825, 1, 270000, 0x0b7b5489
+0, 831, 831, 1, 270000, 0x0b7b5489
+0, 837, 837, 1, 270000, 0x8f0e6eaa
+0, 847, 847, 1, 270000, 0xc46fc0f2
+0, 856, 856, 1, 270000, 0xadd7e605
+0, 865, 865, 1, 270000, 0x9d23a056
+0, 875, 875, 1, 270000, 0x365afa63
+0, 884, 884, 1, 270000, 0x6ac3bda2
+0, 893, 893, 1, 270000, 0x14f5daf2
+0, 903, 903, 1, 270000, 0x4b3afb6a
+0, 909, 909, 1, 270000, 0x1a3302e3
+0, 915, 915, 1, 270000, 0x1a3302e3
+0, 922, 922, 1, 270000, 0x1a3302e3
+0, 928, 928, 1, 270000, 0x1a3302e3
+0, 934, 934, 1, 270000, 0xc15526e2
+0, 943, 943, 1, 270000, 0x3dd73006
+0, 953, 953, 1, 270000, 0x60abb5bc
+0, 962, 962, 1, 270000, 0xb960c27c
+0, 968, 968, 1, 270000, 0x8fa4c01c
+0, 975, 975, 1, 270000, 0x8fa4c01c
+0, 981, 981, 1, 270000, 0x8fa4c01c
+0, 987, 987, 1, 270000, 0xb20dcc38
+0, 997, 997, 1, 270000, 0x03c6ad3c
+0, 1006, 1006, 1, 270000, 0xe550b194
+0, 1012, 1012, 1, 270000, 0xe550b194
+0, 1018, 1018, 1, 270000, 0xe550b194
+0, 1025, 1025, 1, 270000, 0xe550b194
+0, 1031, 1031, 1, 270000, 0xe550b194
+0, 1037, 1037, 1, 270000, 0xe550b194
+0, 1043, 1043, 1, 270000, 0xe550b194
+0, 1050, 1050, 1, 270000, 0xe550b194
+0, 1056, 1056, 1, 270000, 0xe550b194
+0, 1062, 1062, 1, 270000, 0xe550b194
+0, 1068, 1068, 1, 270000, 0xe550b194
+0, 1075, 1075, 1, 270000, 0xe550b194
+0, 1081, 1081, 1, 270000, 0xe550b194
+0, 1087, 1087, 1, 270000, 0xe550b194
+0, 1093, 1093, 1, 270000, 0x4550a014
+0, 1103, 1103, 1, 270000, 0xaf639da8
+0, 1112, 1112, 1, 270000, 0xe4229da8
+0, 1118, 1118, 1, 270000, 0x315d9da8
+0, 1125, 1125, 1, 270000, 0x7e899da8
+0, 1134, 1134, 1, 270000, 0x99b9a8a0
+0, 1143, 1143, 1, 270000, 0x4588ac2a
+0, 1153, 1153, 1, 270000, 0x1e79ae6e
+0, 1162, 1162, 1, 270000, 0xa003cb14
+0, 1172, 1172, 1, 270000, 0x03ef1bb8
+0, 1181, 1181, 1, 270000, 0x3b3f30fc
+0, 1190, 1190, 1, 270000, 0x4dad3525
+0, 1200, 1200, 1, 270000, 0x5b600c12
+0, 1209, 1209, 1, 270000, 0x75a1fab3
+0, 1218, 1218, 1, 270000, 0xc9f7d9ad
+0, 1228, 1228, 1, 270000, 0x9eaec58d
+0, 1237, 1237, 1, 270000, 0xb91bc3e8
+0, 1247, 1247, 1, 270000, 0x77bdbbfb
+0, 1253, 1253, 1, 270000, 0x77bdbbfb
+0, 1259, 1259, 1, 270000, 0x77bdbbfb
+0, 1265, 1265, 1, 270000, 0x77bdbbfb
+0, 1272, 1272, 1, 270000, 0x77bdbbfb
+0, 1278, 1278, 1, 270000, 0x77bdbbfb
+0, 1287, 1287, 1, 270000, 0x3d54eac2
+0, 1293, 1293, 1, 270000, 0x3d54eac2
+0, 1300, 1300, 1, 270000, 0x3d54eac2
+0, 1306, 1306, 1, 270000, 0x3d54eac2
+0, 1315, 1315, 1, 270000, 0x3d54eac2
+0, 1322, 1322, 1, 270000, 0x3d54eac2
+0, 1328, 1328, 1, 270000, 0x3d54eac2
+0, 1334, 1334, 1, 270000, 0x3d54eac2
+0, 1340, 1340, 1, 270000, 0x3d54eac2
+0, 1347, 1347, 1, 270000, 0x3d54eac2
+0, 1353, 1353, 1, 270000, 0x3d54eac2
+0, 1359, 1359, 1, 270000, 0x3d54eac2
+0, 1365, 1365, 1, 270000, 0x3d54eac2
+0, 1372, 1372, 1, 270000, 0x3d54eac2
+0, 1378, 1378, 1, 270000, 0x3d54eac2
+0, 1384, 1384, 1, 270000, 0x3d54eac2
+0, 1390, 1390, 1, 270000, 0x3d54eac2
+0, 1397, 1397, 1, 270000, 0x3d54eac2
+0, 1403, 1403, 1, 270000, 0x3d54eac2
+0, 1412, 1412, 1, 270000, 0x5f3609ba
+0, 1422, 1422, 1, 270000, 0x80921b0c
+0, 1428, 1428, 1, 270000, 0x80921b0c
+0, 1434, 1434, 1, 270000, 0x80921b0c
+0, 1440, 1440, 1, 270000, 0x80921b0c
+0, 1447, 1447, 1, 270000, 0x80921b0c
+0, 1453, 1453, 1, 270000, 0x80921b0c
+0, 1459, 1459, 1, 270000, 0x80921b0c
+0, 1465, 1465, 1, 270000, 0x80921b0c
+0, 1472, 1472, 1, 270000, 0x80921b0c
+0, 1478, 1478, 1, 270000, 0x80921b0c
+0, 1484, 1484, 1, 270000, 0x80921b0c
+0, 1490, 1490, 1, 270000, 0x80921b0c
+0, 1497, 1497, 1, 270000, 0x80921b0c
+0, 1503, 1503, 1, 270000, 0x80921b0c
+0, 1509, 1509, 1, 270000, 0x80921b0c
+0, 1515, 1515, 1, 270000, 0x80921b0c
+0, 1525, 1525, 1, 270000, 0xf0e626a8
+0, 1531, 1531, 1, 270000, 0xf0e626a8
diff --git a/ffmpeg1/tests/ref/fate/cvid-grayscale b/ffmpeg1/tests/ref/fate/cvid-grayscale
new file mode 100644
index 0000000..1b586b3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cvid-grayscale
@@ -0,0 +1,153 @@
+#tb 0: 99561/500000
+0, 0, 0, 1, 22500, 0x0f8e562e
+0, 1, 1, 1, 22500, 0x507aef06
+0, 2, 2, 1, 22500, 0x059d6137
+0, 3, 3, 1, 22500, 0xfb1bfd4e
+0, 4, 4, 1, 22500, 0xe97a51ba
+0, 5, 5, 1, 22500, 0xfc77e68e
+0, 6, 6, 1, 22500, 0x7f1985ac
+0, 7, 7, 1, 22500, 0xdfb933eb
+0, 8, 8, 1, 22500, 0x6dafe534
+0, 9, 9, 1, 22500, 0xb7b69abb
+0, 10, 10, 1, 22500, 0xc435c086
+0, 11, 11, 1, 22500, 0xf8ddb549
+0, 12, 12, 1, 22500, 0x76c0d70d
+0, 13, 13, 1, 22500, 0x1120bc82
+0, 14, 14, 1, 22500, 0x3f7c7970
+0, 15, 15, 1, 22500, 0xd37c9aee
+0, 16, 16, 1, 22500, 0x7407f81b
+0, 17, 17, 1, 22500, 0xce2f1c00
+0, 18, 18, 1, 22500, 0x70921eb5
+0, 19, 19, 1, 22500, 0x0abc917e
+0, 20, 20, 1, 22500, 0xeff1f0fa
+0, 21, 21, 1, 22500, 0x5e0d769b
+0, 22, 22, 1, 22500, 0xc984cbfd
+0, 23, 23, 1, 22500, 0x73f1caa9
+0, 24, 24, 1, 22500, 0x9108af6f
+0, 25, 25, 1, 22500, 0x4f33484e
+0, 26, 26, 1, 22500, 0x9810f8ca
+0, 27, 27, 1, 22500, 0xa0b97ca0
+0, 28, 28, 1, 22500, 0xd9c28ba3
+0, 29, 29, 1, 22500, 0xc97e17e6
+0, 30, 30, 1, 22500, 0x85cf86aa
+0, 31, 31, 1, 22500, 0xf15ff793
+0, 32, 32, 1, 22500, 0x35c54ab5
+0, 33, 33, 1, 22500, 0xe80ec129
+0, 34, 34, 1, 22500, 0x3d6cff39
+0, 35, 35, 1, 22500, 0x54e41aff
+0, 36, 36, 1, 22500, 0xc1d63293
+0, 37, 37, 1, 22500, 0x362c2dd4
+0, 38, 38, 1, 22500, 0xa1f8cdcf
+0, 39, 39, 1, 22500, 0x5b59ba62
+0, 40, 40, 1, 22500, 0x6d02f5b2
+0, 41, 41, 1, 22500, 0x899293ff
+0, 42, 42, 1, 22500, 0xad0e9ace
+0, 43, 43, 1, 22500, 0x4263f9db
+0, 44, 44, 1, 22500, 0xff1e481a
+0, 45, 45, 1, 22500, 0x70c86884
+0, 46, 46, 1, 22500, 0x203ed712
+0, 47, 47, 1, 22500, 0x2f0e8d46
+0, 48, 48, 1, 22500, 0x215075a9
+0, 49, 49, 1, 22500, 0x9882a978
+0, 50, 50, 1, 22500, 0xc2fd5209
+0, 51, 51, 1, 22500, 0xe1c925f6
+0, 52, 52, 1, 22500, 0x012be5af
+0, 53, 53, 1, 22500, 0xa718cbdb
+0, 54, 54, 1, 22500, 0x2494a1c3
+0, 55, 55, 1, 22500, 0xeb8980e4
+0, 56, 56, 1, 22500, 0x7f2766cb
+0, 57, 57, 1, 22500, 0xdf3cafa1
+0, 58, 58, 1, 22500, 0x9a390f81
+0, 59, 59, 1, 22500, 0xfdad5eed
+0, 60, 60, 1, 22500, 0x94f58ff3
+0, 61, 61, 1, 22500, 0xd7c6d9f2
+0, 62, 62, 1, 22500, 0x48b72e7d
+0, 63, 63, 1, 22500, 0x8a7a7e37
+0, 64, 64, 1, 22500, 0x5413c88a
+0, 65, 65, 1, 22500, 0x3f4531b2
+0, 66, 66, 1, 22500, 0x152d9396
+0, 67, 67, 1, 22500, 0x2ac3f418
+0, 68, 68, 1, 22500, 0x0e1c5353
+0, 69, 69, 1, 22500, 0xe058b711
+0, 70, 70, 1, 22500, 0x262e1a9f
+0, 71, 71, 1, 22500, 0x20057d10
+0, 72, 72, 1, 22500, 0x65c5ccb5
+0, 73, 73, 1, 22500, 0x3e36411a
+0, 74, 74, 1, 22500, 0xd9740391
+0, 75, 75, 1, 22500, 0x53d1441d
+0, 76, 76, 1, 22500, 0x9a3941ad
+0, 77, 77, 1, 22500, 0x61553437
+0, 78, 78, 1, 22500, 0xfe0c0468
+0, 79, 79, 1, 22500, 0xd57bde4b
+0, 80, 80, 1, 22500, 0x4a183a4c
+0, 81, 81, 1, 22500, 0xd618b978
+0, 82, 82, 1, 22500, 0x6b480112
+0, 83, 83, 1, 22500, 0x7a1732e9
+0, 84, 84, 1, 22500, 0x45836afc
+0, 85, 85, 1, 22500, 0x3548d4e0
+0, 86, 86, 1, 22500, 0x476c821a
+0, 87, 87, 1, 22500, 0x6be5f249
+0, 88, 88, 1, 22500, 0xf79b6d52
+0, 89, 89, 1, 22500, 0x2edeb0f3
+0, 90, 90, 1, 22500, 0xbaf808bf
+0, 91, 91, 1, 22500, 0x71013790
+0, 92, 92, 1, 22500, 0xbf4e3085
+0, 93, 93, 1, 22500, 0x15c2b4de
+0, 94, 94, 1, 22500, 0x031d17fa
+0, 95, 95, 1, 22500, 0x3a2c193b
+0, 96, 96, 1, 22500, 0xb0420aa4
+0, 97, 97, 1, 22500, 0xe448fe50
+0, 98, 98, 1, 22500, 0x02173090
+0, 99, 99, 1, 22500, 0x4b2f76a1
+0, 100, 100, 1, 22500, 0xd6458c46
+0, 101, 101, 1, 22500, 0xa698fc27
+0, 102, 102, 1, 22500, 0xaeca6b5d
+0, 103, 103, 1, 22500, 0x4a591972
+0, 104, 104, 1, 22500, 0x19e49ba7
+0, 105, 105, 1, 22500, 0x1d4ffb92
+0, 106, 106, 1, 22500, 0xb1f8e0f8
+0, 107, 107, 1, 22500, 0x32c82e8b
+0, 108, 108, 1, 22500, 0x96e930c8
+0, 109, 109, 1, 22500, 0x0e6ebd2c
+0, 110, 110, 1, 22500, 0x315bc5ba
+0, 111, 111, 1, 22500, 0xb22321ee
+0, 112, 112, 1, 22500, 0xbe464d78
+0, 113, 113, 1, 22500, 0xdb4b5edb
+0, 114, 114, 1, 22500, 0x0ff65d4c
+0, 115, 115, 1, 22500, 0xff68561a
+0, 116, 116, 1, 22500, 0xa0033400
+0, 117, 117, 1, 22500, 0x5414546d
+0, 118, 118, 1, 22500, 0x7e43209e
+0, 119, 119, 1, 22500, 0x0037abfd
+0, 120, 120, 1, 22500, 0x3dd31b3f
+0, 121, 121, 1, 22500, 0xe0777299
+0, 122, 122, 1, 22500, 0x35a2a83c
+0, 123, 123, 1, 22500, 0x5282c8c4
+0, 124, 124, 1, 22500, 0x1ccdd593
+0, 125, 125, 1, 22500, 0x92525e5e
+0, 126, 126, 1, 22500, 0x5fa3ff5f
+0, 127, 127, 1, 22500, 0xd1169436
+0, 128, 128, 1, 22500, 0x07dc8179
+0, 129, 129, 1, 22500, 0x9a83113d
+0, 130, 130, 1, 22500, 0x9c722c1e
+0, 131, 131, 1, 22500, 0xccbcfe59
+0, 132, 132, 1, 22500, 0x8606a0a1
+0, 133, 133, 1, 22500, 0x2210a26f
+0, 134, 134, 1, 22500, 0xfc73ba7b
+0, 135, 135, 1, 22500, 0x731fd01a
+0, 136, 136, 1, 22500, 0x0e21f1dd
+0, 137, 137, 1, 22500, 0xf9c4f807
+0, 138, 138, 1, 22500, 0x2123fc24
+0, 139, 139, 1, 22500, 0xd42cfa83
+0, 140, 140, 1, 22500, 0x5927fb7c
+0, 141, 141, 1, 22500, 0xe32e02d8
+0, 142, 142, 1, 22500, 0xa5c11316
+0, 143, 143, 1, 22500, 0xb9112315
+0, 144, 144, 1, 22500, 0x78f223d5
+0, 145, 145, 1, 22500, 0x93202de3
+0, 146, 146, 1, 22500, 0x7eb03464
+0, 147, 147, 1, 22500, 0x899c3f68
+0, 148, 148, 1, 22500, 0xc2169075
+0, 149, 149, 1, 22500, 0x419f33a6
+0, 150, 150, 1, 22500, 0x3de50588
+0, 151, 151, 1, 22500, 0x3de50588
diff --git a/ffmpeg1/tests/ref/fate/cvid-palette b/ffmpeg1/tests/ref/fate/cvid-palette
new file mode 100644
index 0000000..49de1c1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cvid-palette
@@ -0,0 +1,57 @@
+#tb 0: 200/2997
+0, 0, 0, 1, 57600, 0x1f5c89b7
+0, 1, 1, 1, 57600, 0xd2055aaf
+0, 2, 2, 1, 57600, 0x22336052
+0, 3, 3, 1, 57600, 0xf7135e2a
+0, 4, 4, 1, 57600, 0xd9de126a
+0, 5, 5, 1, 57600, 0xe5a9e1de
+0, 6, 6, 1, 57600, 0x253f1702
+0, 7, 7, 1, 57600, 0xcb8679c9
+0, 8, 8, 1, 57600, 0x96cb5fa8
+0, 9, 9, 1, 57600, 0xbe03528a
+0, 10, 10, 1, 57600, 0x120a097d
+0, 11, 11, 1, 57600, 0xaf562041
+0, 12, 12, 1, 57600, 0x15b2d8c9
+0, 13, 13, 1, 57600, 0x95f60e58
+0, 14, 14, 1, 57600, 0x5ace5a6b
+0, 15, 15, 1, 57600, 0x2f80b8e3
+0, 16, 16, 1, 57600, 0x5c49c915
+0, 17, 17, 1, 57600, 0xb91efe60
+0, 18, 18, 1, 57600, 0xa80d29e8
+0, 19, 19, 1, 57600, 0x6e72d03a
+0, 20, 20, 1, 57600, 0x4f716a9e
+0, 21, 21, 1, 57600, 0x3a43b9c9
+0, 22, 22, 1, 57600, 0x65002db3
+0, 23, 23, 1, 57600, 0x70edc765
+0, 24, 24, 1, 57600, 0x9dc54abd
+0, 25, 25, 1, 57600, 0xd17bda86
+0, 26, 26, 1, 57600, 0xc5d2d458
+0, 27, 27, 1, 57600, 0x32313c79
+0, 28, 28, 1, 57600, 0x2e537e8d
+0, 29, 29, 1, 57600, 0xe77d5d9e
+0, 30, 30, 1, 57600, 0x9cc2599a
+0, 31, 31, 1, 57600, 0x8a9be76e
+0, 32, 32, 1, 57600, 0x47447eef
+0, 33, 33, 1, 57600, 0xbf5f84fa
+0, 34, 34, 1, 57600, 0xacd49c07
+0, 35, 35, 1, 57600, 0xdc628975
+0, 36, 36, 1, 57600, 0x97d7964e
+0, 37, 37, 1, 57600, 0xd0a19b6b
+0, 38, 38, 1, 57600, 0x5ea3d78c
+0, 39, 39, 1, 57600, 0x39b59be0
+0, 40, 40, 1, 57600, 0x6501a2d2
+0, 41, 41, 1, 57600, 0x0ee7e36d
+0, 42, 42, 1, 57600, 0x354ddd1d
+0, 43, 43, 1, 57600, 0x9b8f22d3
+0, 44, 44, 1, 57600, 0x0aadfb8c
+0, 45, 45, 1, 57600, 0x322e2785
+0, 46, 46, 1, 57600, 0x78a6467e
+0, 47, 47, 1, 57600, 0x1757f3b1
+0, 48, 48, 1, 57600, 0xe874ceb7
+0, 49, 49, 1, 57600, 0xc40f9e4d
+0, 50, 50, 1, 57600, 0x89f6a735
+0, 51, 51, 1, 57600, 0xe3635393
+0, 52, 52, 1, 57600, 0xdae585c7
+0, 53, 53, 1, 57600, 0xf99baa60
+0, 54, 54, 1, 57600, 0x28a8b1ee
+0, 55, 55, 1, 57600, 0xcd5587f8
diff --git a/ffmpeg1/tests/ref/fate/cvid-partial b/ffmpeg1/tests/ref/fate/cvid-partial
new file mode 100644
index 0000000..bb368a1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cvid-partial
@@ -0,0 +1,80 @@
+#tb 0: 1/12
+0, 0, 0, 1, 224400, 0xd8f2f310
+0, 1, 1, 1, 224400, 0xe38676c2
+0, 2, 2, 1, 224400, 0x7163b6ad
+0, 3, 3, 1, 224400, 0xa514b0f7
+0, 4, 4, 1, 224400, 0xeed48b96
+0, 5, 5, 1, 224400, 0x5e9f02b2
+0, 6, 6, 1, 224400, 0x70822c53
+0, 7, 7, 1, 224400, 0x93101067
+0, 8, 8, 1, 224400, 0x0710e900
+0, 9, 9, 1, 224400, 0x0e8add6a
+0, 10, 10, 1, 224400, 0x53fb2c5a
+0, 11, 11, 1, 224400, 0xa58cc02f
+0, 12, 12, 1, 224400, 0x0a5cc76b
+0, 13, 13, 1, 224400, 0xfa551631
+0, 14, 14, 1, 224400, 0xde9f99bf
+0, 15, 15, 1, 224400, 0xe66a8690
+0, 16, 16, 1, 224400, 0xd9e6f3d1
+0, 17, 17, 1, 224400, 0xa479a5c6
+0, 18, 18, 1, 224400, 0xdaa3531f
+0, 19, 19, 1, 224400, 0xde3e6843
+0, 20, 20, 1, 224400, 0x181adafd
+0, 21, 21, 1, 224400, 0x784b6429
+0, 22, 22, 1, 224400, 0x91cdc30e
+0, 23, 23, 1, 224400, 0x6e78be49
+0, 24, 24, 1, 224400, 0x7515644c
+0, 25, 25, 1, 224400, 0xcc32a91b
+0, 26, 26, 1, 224400, 0xc63e3831
+0, 27, 27, 1, 224400, 0xfb53b651
+0, 28, 28, 1, 224400, 0x12ec8a01
+0, 29, 29, 1, 224400, 0x136fcb2c
+0, 30, 30, 1, 224400, 0x827fa546
+0, 31, 31, 1, 224400, 0x1773b7f5
+0, 32, 32, 1, 224400, 0x732defc1
+0, 33, 33, 1, 224400, 0x84292372
+0, 34, 34, 1, 224400, 0x20f22365
+0, 35, 35, 1, 224400, 0xb39a0700
+0, 36, 36, 1, 224400, 0xf245706c
+0, 37, 37, 1, 224400, 0xdb702ae7
+0, 38, 38, 1, 224400, 0xadfefe5b
+0, 39, 39, 1, 224400, 0xa667adcb
+0, 40, 40, 1, 224400, 0x4d645191
+0, 41, 41, 1, 224400, 0x33802f58
+0, 42, 42, 1, 224400, 0x24eff4b8
+0, 43, 43, 1, 224400, 0x4dc817a6
+0, 44, 44, 1, 224400, 0x9a891d35
+0, 45, 45, 1, 224400, 0x2d0bb83b
+0, 46, 46, 1, 224400, 0xd13469c1
+0, 47, 47, 1, 224400, 0xd2e6302a
+0, 48, 48, 1, 224400, 0xc7594ee1
+0, 49, 49, 1, 224400, 0xc6da714c
+0, 50, 50, 1, 224400, 0xf675e838
+0, 51, 51, 1, 224400, 0xdc047c76
+0, 52, 52, 1, 224400, 0xe5727de5
+0, 53, 53, 1, 224400, 0x153b0f62
+0, 54, 54, 1, 224400, 0x65922f68
+0, 55, 55, 1, 224400, 0x04e04bfb
+0, 56, 56, 1, 224400, 0x1dde6c88
+0, 57, 57, 1, 224400, 0xed3905f2
+0, 58, 58, 1, 224400, 0x211a5996
+0, 59, 59, 1, 224400, 0xd010baaf
+0, 60, 60, 1, 224400, 0xcbc9f272
+0, 61, 61, 1, 224400, 0x7380d6f0
+0, 62, 62, 1, 224400, 0xfd0bf084
+0, 63, 63, 1, 224400, 0xc4d671d9
+0, 64, 64, 1, 224400, 0x84236aa5
+0, 65, 65, 1, 224400, 0x9c584ede
+0, 66, 66, 1, 224400, 0xdb0c6029
+0, 67, 67, 1, 224400, 0x775ae560
+0, 68, 68, 1, 224400, 0xe3800916
+0, 69, 69, 1, 224400, 0x9313a8e8
+0, 70, 70, 1, 224400, 0x3a5d07cc
+0, 71, 71, 1, 224400, 0x4651a10b
+0, 72, 72, 1, 224400, 0xc2d72183
+0, 73, 73, 1, 224400, 0xcd971625
+0, 74, 74, 1, 224400, 0x9fb0f3c2
+0, 75, 75, 1, 224400, 0x920ee561
+0, 76, 76, 1, 224400, 0x8a2c1bbf
+0, 77, 77, 1, 224400, 0x6150c072
+0, 78, 78, 1, 224400, 0x499dc869
diff --git a/ffmpeg1/tests/ref/fate/cyberia-c93 b/ffmpeg1/tests/ref/fate/cyberia-c93
new file mode 100644
index 0000000..2c71e50
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cyberia-c93
@@ -0,0 +1,44 @@
+#tb 0: 2/25
+#tb 1: 1/16129
+0, 0, 0, 1, 184320, 0x8433f0f8
+1, 0, 0, 14184, 28368, 0xaacc96a5
+0, 1, 1, 1, 184320, 0xd0d480f7
+0, 2, 2, 1, 184320, 0xaec85413
+0, 3, 3, 1, 184320, 0x29d134dc
+0, 4, 4, 1, 184320, 0xeac07175
+0, 5, 5, 1, 184320, 0x21426b49
+0, 6, 6, 1, 184320, 0xe500a37d
+0, 7, 7, 1, 184320, 0x1d9cae21
+0, 8, 8, 1, 184320, 0xda65309d
+0, 9, 9, 1, 184320, 0xb64c331d
+0, 10, 10, 1, 184320, 0xcb832741
+1, 14184, 14184, 14184, 28368, 0x6d1099bd
+0, 11, 11, 1, 184320, 0xe573b565
+0, 12, 12, 1, 184320, 0xa40c92d1
+0, 13, 13, 1, 184320, 0x6d04ea3f
+0, 14, 14, 1, 184320, 0xc438ae56
+0, 15, 15, 1, 184320, 0xc6405523
+0, 16, 16, 1, 184320, 0xaefef0b3
+0, 17, 17, 1, 184320, 0x3e4526c6
+0, 18, 18, 1, 184320, 0x2b164323
+0, 19, 19, 1, 184320, 0x89b22193
+0, 20, 20, 1, 184320, 0x3b73611b
+0, 21, 21, 1, 184320, 0x42b33583
+1, 28368, 28368, 14184, 28368, 0x93033ae1
+0, 22, 22, 1, 184320, 0x43e79dff
+0, 23, 23, 1, 184320, 0xe389a377
+0, 24, 24, 1, 184320, 0x09cb65f0
+0, 25, 25, 1, 184320, 0x64b27755
+0, 26, 26, 1, 184320, 0xdd25d6c6
+0, 27, 27, 1, 184320, 0x082a80c9
+0, 28, 28, 1, 184320, 0x41a8d7f4
+0, 29, 29, 1, 184320, 0x6227d8d4
+0, 30, 30, 1, 184320, 0x54975910
+0, 31, 31, 1, 184320, 0xf4857db9
+0, 32, 32, 1, 184320, 0x82d18161
+1, 42552, 42552, 14184, 28368, 0x9101e519
+0, 33, 33, 1, 184320, 0x06d93bd0
+0, 34, 34, 1, 184320, 0xa4304c00
+0, 35, 35, 1, 184320, 0x5f77d9cd
+0, 36, 36, 1, 184320, 0x95cb84e9
+0, 37, 37, 1, 184320, 0x7c979475
diff --git a/ffmpeg1/tests/ref/fate/cyuv b/ffmpeg1/tests/ref/fate/cyuv
new file mode 100644
index 0000000..37bdd2f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/cyuv
@@ -0,0 +1,151 @@
+#tb 0: 33333/1000000
+0, 0, 0, 1, 38016, 0x501e6abe
+0, 1, 1, 1, 38016, 0x84976f13
+0, 2, 2, 1, 38016, 0x8c487acb
+0, 3, 3, 1, 38016, 0x70998800
+0, 4, 4, 1, 38016, 0x51ac9416
+0, 5, 5, 1, 38016, 0xd1da94b7
+0, 6, 6, 1, 38016, 0x52d691e8
+0, 7, 7, 1, 38016, 0x3ca3907a
+0, 8, 8, 1, 38016, 0x5f62929f
+0, 9, 9, 1, 38016, 0x81ec98ac
+0, 10, 10, 1, 38016, 0x72499f12
+0, 11, 11, 1, 38016, 0x7598a716
+0, 12, 12, 1, 38016, 0x38ada96f
+0, 13, 13, 1, 38016, 0x78c8a727
+0, 14, 14, 1, 38016, 0xe2d79d2d
+0, 15, 15, 1, 38016, 0x84a2925a
+0, 16, 16, 1, 38016, 0x131b8d70
+0, 17, 17, 1, 38016, 0x32a78242
+0, 18, 18, 1, 38016, 0x29f583e5
+0, 19, 19, 1, 38016, 0x4a7f7305
+0, 20, 20, 1, 38016, 0x80885f56
+0, 21, 21, 1, 38016, 0xa73c4f61
+0, 22, 22, 1, 38016, 0xe54d422b
+0, 23, 23, 1, 38016, 0xa8c03188
+0, 24, 24, 1, 38016, 0xa02a294e
+0, 25, 25, 1, 38016, 0xc84e2366
+0, 26, 26, 1, 38016, 0xe21112ca
+0, 27, 27, 1, 38016, 0x3e450594
+0, 28, 28, 1, 38016, 0x2499017c
+0, 29, 29, 1, 38016, 0xecb1effa
+0, 30, 30, 1, 38016, 0xa0f8eb28
+0, 31, 31, 1, 38016, 0xa396e800
+0, 32, 32, 1, 38016, 0xae1be010
+0, 33, 33, 1, 38016, 0x4b41dff5
+0, 34, 34, 1, 38016, 0x9172e319
+0, 35, 35, 1, 38016, 0xb82ee262
+0, 36, 36, 1, 38016, 0x151de59f
+0, 37, 37, 1, 38016, 0x799deabd
+0, 38, 38, 1, 38016, 0x008dee95
+0, 39, 39, 1, 38016, 0x5ad502ce
+0, 40, 40, 1, 38016, 0xdeb321f1
+0, 41, 41, 1, 38016, 0x82734a09
+0, 42, 42, 1, 38016, 0x1ccb6ddd
+0, 43, 43, 1, 38016, 0x266584f0
+0, 44, 44, 1, 38016, 0x46349e73
+0, 45, 45, 1, 38016, 0x0b8cac83
+0, 46, 46, 1, 38016, 0x7bcd9f49
+0, 47, 47, 1, 38016, 0x4f5d7521
+0, 48, 48, 1, 38016, 0x7709250c
+0, 49, 49, 1, 38016, 0xf8eef5ad
+0, 50, 50, 1, 38016, 0x2c5d28e3
+0, 51, 51, 1, 38016, 0xdb116d69
+0, 52, 52, 1, 38016, 0xb66c39d6
+0, 53, 53, 1, 38016, 0xacecc966
+0, 54, 54, 1, 38016, 0xaffd76af
+0, 55, 55, 1, 38016, 0xd2b05d04
+0, 56, 56, 1, 38016, 0x4d18582a
+0, 57, 57, 1, 38016, 0x23635ca7
+0, 58, 58, 1, 38016, 0x7ccc58f1
+0, 59, 59, 1, 38016, 0xce9a4cc6
+0, 60, 60, 1, 38016, 0xbeb259d3
+0, 61, 61, 1, 38016, 0x0b28714c
+0, 62, 62, 1, 38016, 0x642a8fdd
+0, 63, 63, 1, 38016, 0x937bb589
+0, 64, 64, 1, 38016, 0x1a48c407
+0, 65, 65, 1, 38016, 0x8b44cd79
+0, 66, 66, 1, 38016, 0xf35cde31
+0, 67, 67, 1, 38016, 0xfc05fad9
+0, 68, 68, 1, 38016, 0x44102111
+0, 69, 69, 1, 38016, 0x832f5041
+0, 70, 70, 1, 38016, 0x41177c71
+0, 71, 71, 1, 38016, 0x723b88b5
+0, 72, 72, 1, 38016, 0x05548f81
+0, 73, 73, 1, 38016, 0xd9dd7995
+0, 74, 74, 1, 38016, 0xed0d6226
+0, 75, 75, 1, 38016, 0x458b5ce2
+0, 76, 76, 1, 38016, 0xc7ef69af
+0, 77, 77, 1, 38016, 0x936a7022
+0, 78, 78, 1, 38016, 0x7a446c3d
+0, 79, 79, 1, 38016, 0x9b2b73ee
+0, 80, 80, 1, 38016, 0xa47779cd
+0, 81, 81, 1, 38016, 0x7be47981
+0, 82, 82, 1, 38016, 0x5d1778ac
+0, 83, 83, 1, 38016, 0xf1f578fc
+0, 84, 84, 1, 38016, 0x865b7edf
+0, 85, 85, 1, 38016, 0x0a208252
+0, 86, 86, 1, 38016, 0x22f07570
+0, 87, 87, 1, 38016, 0x93036cef
+0, 88, 88, 1, 38016, 0xa04b6120
+0, 89, 89, 1, 38016, 0x80b249fe
+0, 90, 90, 1, 38016, 0x5fe5317e
+0, 91, 91, 1, 38016, 0x75bd0770
+0, 92, 92, 1, 38016, 0x0607da6e
+0, 93, 93, 1, 38016, 0x11cbb3a7
+0, 94, 94, 1, 38016, 0xbb8b9335
+0, 95, 95, 1, 38016, 0xa2bc75d9
+0, 96, 96, 1, 38016, 0x58c160dd
+0, 97, 97, 1, 38016, 0x742b55dc
+0, 98, 98, 1, 38016, 0x62b24540
+0, 99, 99, 1, 38016, 0x14f4381b
+0, 100, 100, 1, 38016, 0x6494334d
+0, 101, 101, 1, 38016, 0xb3772676
+0, 102, 102, 1, 38016, 0x0c312715
+0, 103, 103, 1, 38016, 0x8b401fc9
+0, 104, 104, 1, 38016, 0xa851125a
+0, 105, 105, 1, 38016, 0x3171092b
+0, 106, 106, 1, 38016, 0x5c3603aa
+0, 107, 107, 1, 38016, 0xab56fc95
+0, 108, 108, 1, 38016, 0x5c76fcb5
+0, 109, 109, 1, 38016, 0xbf13f3b4
+0, 110, 110, 1, 38016, 0xbdb5ed1b
+0, 111, 111, 1, 38016, 0xb511ea7c
+0, 112, 112, 1, 38016, 0xec84df90
+0, 113, 113, 1, 38016, 0x69aed672
+0, 114, 114, 1, 38016, 0x72a6d334
+0, 115, 115, 1, 38016, 0x7ec5c6a7
+0, 116, 116, 1, 38016, 0x837abc3e
+0, 117, 117, 1, 38016, 0x5ef7be01
+0, 118, 118, 1, 38016, 0x173bb950
+0, 119, 119, 1, 38016, 0xf572ab31
+0, 120, 120, 1, 38016, 0xe704a2d9
+0, 121, 121, 1, 38016, 0x26359bb5
+0, 122, 122, 1, 38016, 0x00868e2d
+0, 123, 123, 1, 38016, 0x72ef879e
+0, 124, 124, 1, 38016, 0x510b7b07
+0, 125, 125, 1, 38016, 0x947876ff
+0, 126, 126, 1, 38016, 0x934073a7
+0, 127, 127, 1, 38016, 0xf7c36a15
+0, 128, 128, 1, 38016, 0xbcc86424
+0, 129, 129, 1, 38016, 0x55b65fb0
+0, 130, 130, 1, 38016, 0x6c4b5c4e
+0, 131, 131, 1, 38016, 0xb315557a
+0, 132, 132, 1, 38016, 0x154f503e
+0, 133, 133, 1, 38016, 0x7abd44da
+0, 134, 134, 1, 38016, 0x291940c6
+0, 135, 135, 1, 38016, 0xc2264202
+0, 136, 136, 1, 38016, 0xbd703e12
+0, 137, 137, 1, 38016, 0x39193a9c
+0, 138, 138, 1, 38016, 0x086637de
+0, 139, 139, 1, 38016, 0x494c3be2
+0, 140, 140, 1, 38016, 0x2d523e06
+0, 141, 141, 1, 38016, 0x3843448a
+0, 142, 142, 1, 38016, 0x307f4bd3
+0, 143, 143, 1, 38016, 0xee074e3f
+0, 144, 144, 1, 38016, 0x760d534a
+0, 145, 145, 1, 38016, 0xbfa251cc
+0, 146, 146, 1, 38016, 0x49094e22
+0, 147, 147, 1, 38016, 0xda6a4f16
+0, 148, 148, 1, 38016, 0xa3304fd5
+0, 149, 149, 1, 38016, 0x99995068
diff --git a/ffmpeg1/tests/ref/fate/d-cinema-demux b/ffmpeg1/tests/ref/fate/d-cinema-demux
new file mode 100644
index 0000000..2f28e46
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/d-cinema-demux
@@ -0,0 +1,5 @@
+#tb 0: 1/90000
+0, 0, 0, 1875, 36000, 0xd592781d
+0, 1875, 1875, 1875, 36000, 0xd592781d
+0, 3750, 3750, 1875, 36000, 0xd592781d
+0, 5625, 5625, 1200, 23056, 0xde81f0d6, F=0x3
diff --git a/ffmpeg1/tests/ref/fate/dcinema-encode b/ffmpeg1/tests/ref/fate/dcinema-encode
new file mode 100644
index 0000000..8aeb215
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dcinema-encode
@@ -0,0 +1 @@
+MD5=2d7c6897c315493647db159f4bfd6edc
diff --git a/ffmpeg1/tests/ref/fate/delphine-cin-audio b/ffmpeg1/tests/ref/fate/delphine-cin-audio
new file mode 100644
index 0000000..1a94a6b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/delphine-cin-audio
@@ -0,0 +1,92 @@
+#tb 0: 1/22050
+0, 0, 0, 88224, 176448, 0x541ddc55
+0, 88224, 88224, 1838, 3676, 0xaf455081
+0, 90062, 90062, 1838, 3676, 0x27ef4e91
+0, 91900, 91900, 1838, 3676, 0xd1d986a3
+0, 93738, 93738, 1838, 3676, 0xaaa2b589
+0, 95576, 95576, 1838, 3676, 0x6e794ff9
+0, 97414, 97414, 1838, 3676, 0x266351f1
+0, 99252, 99252, 1838, 3676, 0xdeae50b2
+0, 101090, 101090, 1838, 3676, 0x90f1f96a
+0, 102928, 102928, 1838, 3676, 0xea07adf9
+0, 104766, 104766, 1838, 3676, 0xb80a8925
+0, 106604, 106604, 1838, 3676, 0xc392a1da
+0, 108442, 108442, 1838, 3676, 0xa076bdda
+0, 110280, 110280, 1838, 3676, 0x8f40b4cc
+0, 112118, 112118, 1838, 3676, 0x4227fe30
+0, 113956, 113956, 1838, 3676, 0x82b31ec8
+0, 115794, 115794, 1838, 3676, 0x3ba04042
+0, 117632, 117632, 1838, 3676, 0x6fe7440a
+0, 119470, 119470, 1838, 3676, 0x23e33177
+0, 121308, 121308, 1838, 3676, 0x1f14242c
+0, 123146, 123146, 1838, 3676, 0x72931fb0
+0, 124984, 124984, 1838, 3676, 0x2b1351c2
+0, 126822, 126822, 1838, 3676, 0x6aee7070
+0, 128660, 128660, 1838, 3676, 0x237658fa
+0, 130498, 130498, 1838, 3676, 0xac001143
+0, 132336, 132336, 1838, 3676, 0x1921ee21
+0, 134174, 134174, 1838, 3676, 0x80186091
+0, 136012, 136012, 1838, 3676, 0xb7f37ede
+0, 137850, 137850, 1838, 3676, 0x355227ef
+0, 139688, 139688, 1838, 3676, 0xb0411f35
+0, 141526, 141526, 1838, 3676, 0xe7c4fe0e
+0, 143364, 143364, 1838, 3676, 0x0425984d
+0, 145202, 145202, 1838, 3676, 0xfd59dea1
+0, 147040, 147040, 1838, 3676, 0xa53d5aab
+0, 148878, 148878, 1838, 3676, 0x8bc403c2
+0, 150716, 150716, 1838, 3676, 0x7dd638c2
+0, 152554, 152554, 1838, 3676, 0x284913eb
+0, 154392, 154392, 1838, 3676, 0xec17e83c
+0, 156230, 156230, 1838, 3676, 0x40543463
+0, 158068, 158068, 1838, 3676, 0x92d81bf8
+0, 159906, 159906, 1838, 3676, 0x44ef161d
+0, 161744, 161744, 1838, 3676, 0x499df3d5
+0, 163582, 163582, 1838, 3676, 0xf98f4d75
+0, 165420, 165420, 1838, 3676, 0x8ffe2681
+0, 167258, 167258, 1838, 3676, 0x84093bfd
+0, 169096, 169096, 1838, 3676, 0x5f9c2e32
+0, 170934, 170934, 1838, 3676, 0x8f93c29b
+0, 172772, 172772, 1838, 3676, 0xf0ada687
+0, 174610, 174610, 1838, 3676, 0x30019db2
+0, 176448, 176448, 1838, 3676, 0x06ebace3
+0, 178286, 178286, 1838, 3676, 0xc293d944
+0, 180124, 180124, 1838, 3676, 0x789ff65e
+0, 181962, 181962, 1838, 3676, 0xa2ae13c1
+0, 183800, 183800, 1838, 3676, 0xb64f1cd9
+0, 185638, 185638, 1838, 3676, 0x18f4e36a
+0, 187476, 187476, 1838, 3676, 0xe9ccd0f0
+0, 189314, 189314, 1838, 3676, 0xc215b4ab
+0, 191152, 191152, 1838, 3676, 0x45b5c410
+0, 192990, 192990, 1838, 3676, 0xf84a9939
+0, 194828, 194828, 1838, 3676, 0xc8aff71e
+0, 196666, 196666, 1838, 3676, 0x76cc3afc
+0, 198504, 198504, 1838, 3676, 0x524e1dd6
+0, 200342, 200342, 1838, 3676, 0x115a3f10
+0, 202180, 202180, 1838, 3676, 0xd2bb51d1
+0, 204018, 204018, 1838, 3676, 0xe1dbfca5
+0, 205856, 205856, 1838, 3676, 0xc428f070
+0, 207694, 207694, 1838, 3676, 0x6aa4dddf
+0, 209532, 209532, 1838, 3676, 0xa0428f08
+0, 211370, 211370, 1838, 3676, 0x8fd7e256
+0, 213208, 213208, 1838, 3676, 0x41cb1787
+0, 215046, 215046, 1838, 3676, 0xe348568e
+0, 216884, 216884, 1838, 3676, 0x79091a0c
+0, 218722, 218722, 1838, 3676, 0x592f6f2e
+0, 220560, 220560, 1838, 3676, 0xa151448f
+0, 222398, 222398, 1838, 3676, 0xb3402e7a
+0, 224236, 224236, 1838, 3676, 0x74112e27
+0, 226074, 226074, 1838, 3676, 0xba090659
+0, 227912, 227912, 1838, 3676, 0xa0451f81
+0, 229750, 229750, 1838, 3676, 0x09c7393a
+0, 231588, 231588, 1838, 3676, 0xceb4e340
+0, 233426, 233426, 1838, 3676, 0x0440291a
+0, 235264, 235264, 1838, 3676, 0xb7b930c4
+0, 237102, 237102, 1838, 3676, 0x1a2afa4a
+0, 238940, 238940, 1838, 3676, 0x414fee56
+0, 240778, 240778, 1838, 3676, 0x5e26bc97
+0, 242616, 242616, 1838, 3676, 0x780e0481
+0, 244454, 244454, 1838, 3676, 0xb6dfb9c5
+0, 246292, 246292, 1838, 3676, 0x447b36ca
+0, 248130, 248130, 1838, 3676, 0x601c3067
+0, 249968, 249968, 1838, 3676, 0x199f2f8d
+0, 251806, 251806, 1838, 3676, 0x98645b08
diff --git a/ffmpeg1/tests/ref/fate/delphine-cin-video b/ffmpeg1/tests/ref/fate/delphine-cin-video
new file mode 100644
index 0000000..feaea26
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/delphine-cin-video
@@ -0,0 +1,93 @@
+#tb 0: 1/12
+0, 0, 0, 1, 153600, 0x00000000
+0, 1, 1, 1, 153600, 0x9c77862c
+0, 2, 2, 1, 153600, 0xd487c33c
+0, 3, 3, 1, 153600, 0x5c00c01c
+0, 4, 4, 1, 153600, 0x5496c2a2
+0, 5, 5, 1, 153600, 0x858ac5c0
+0, 6, 6, 1, 153600, 0xe32fc7d9
+0, 7, 7, 1, 153600, 0xabffc965
+0, 8, 8, 1, 153600, 0x4171c8e7
+0, 9, 9, 1, 153600, 0xaec4ca90
+0, 10, 10, 1, 153600, 0x3cb4cb5d
+0, 11, 11, 1, 153600, 0x3aedcdc0
+0, 12, 12, 1, 153600, 0x0fa4cf55
+0, 13, 13, 1, 153600, 0x66a1d146
+0, 14, 14, 1, 153600, 0x3828d3ad
+0, 15, 15, 1, 153600, 0x73ccd7a4
+0, 16, 16, 1, 153600, 0xb815d983
+0, 17, 17, 1, 153600, 0x11a5a54f
+0, 18, 18, 1, 153600, 0x337d8bff
+0, 19, 19, 1, 153600, 0x0a1c8e5c
+0, 20, 20, 1, 153600, 0x09648a57
+0, 21, 21, 1, 153600, 0xf7398ba4
+0, 22, 22, 1, 153600, 0x836d8aaf
+0, 23, 23, 1, 153600, 0x4ee385bf
+0, 24, 24, 1, 153600, 0xacf2c4d6
+0, 25, 25, 1, 153600, 0x0610f426
+0, 26, 26, 1, 153600, 0xb798e4a1
+0, 27, 27, 1, 153600, 0xdaabe17e
+0, 28, 28, 1, 153600, 0x7b82def5
+0, 29, 29, 1, 153600, 0x56afe483
+0, 30, 30, 1, 153600, 0x4640acef
+0, 31, 31, 1, 153600, 0x4415f46c
+0, 32, 32, 1, 153600, 0x258d01d0
+0, 33, 33, 1, 153600, 0x18a55ba1
+0, 34, 34, 1, 153600, 0x165a7173
+0, 35, 35, 1, 153600, 0xfa8a438b
+0, 36, 36, 1, 153600, 0x57083a34
+0, 37, 37, 1, 153600, 0xb39923cd
+0, 38, 38, 1, 153600, 0x3e32fd70
+0, 39, 39, 1, 153600, 0xa7e9eb7f
+0, 40, 40, 1, 153600, 0x8c20ed88
+0, 41, 41, 1, 153600, 0x8c9bed27
+0, 42, 42, 1, 153600, 0xc79af188
+0, 43, 43, 1, 153600, 0x3bda00c8
+0, 44, 44, 1, 153600, 0x03f837a7
+0, 45, 45, 1, 153600, 0x550b83e3
+0, 46, 46, 1, 153600, 0xc0bc6080
+0, 47, 47, 1, 153600, 0xb8d968ed
+0, 48, 48, 1, 153600, 0x893e2348
+0, 49, 49, 1, 153600, 0x6cd01834
+0, 50, 50, 1, 153600, 0x9e6926c5
+0, 51, 51, 1, 153600, 0x4b57a4ea
+0, 52, 52, 1, 153600, 0xaab2cfcd
+0, 53, 53, 1, 153600, 0xffbb334d
+0, 54, 54, 1, 153600, 0x4b37e5a9
+0, 55, 55, 1, 153600, 0x3486dee0
+0, 56, 56, 1, 153600, 0xa7185454
+0, 57, 57, 1, 153600, 0xec29b8c2
+0, 58, 58, 1, 153600, 0x01e562ba
+0, 59, 59, 1, 153600, 0xe695cda3
+0, 60, 60, 1, 153600, 0xf6b59dac
+0, 61, 61, 1, 153600, 0xb308206b
+0, 62, 62, 1, 153600, 0xcc6ede4a
+0, 63, 63, 1, 153600, 0xd9f8071c
+0, 64, 64, 1, 153600, 0xfb434821
+0, 65, 65, 1, 153600, 0x84c97077
+0, 66, 66, 1, 153600, 0x82dc5217
+0, 67, 67, 1, 153600, 0xdbfd0ba8
+0, 68, 68, 1, 153600, 0x3d71058e
+0, 69, 69, 1, 153600, 0x3027b928
+0, 70, 70, 1, 153600, 0x792ae3bd
+0, 71, 71, 1, 153600, 0x36db00a7
+0, 72, 72, 1, 153600, 0x4484e720
+0, 73, 73, 1, 153600, 0xfaa76cdc
+0, 74, 74, 1, 153600, 0x9f1e4c7e
+0, 75, 75, 1, 153600, 0x4b545d88
+0, 76, 76, 1, 153600, 0xa11cfd15
+0, 77, 77, 1, 153600, 0x9f5d49c4
+0, 78, 78, 1, 153600, 0x7a496740
+0, 79, 79, 1, 153600, 0x98477803
+0, 80, 80, 1, 153600, 0xa5fc20f8
+0, 81, 81, 1, 153600, 0x344ff96e
+0, 82, 82, 1, 153600, 0x20c91746
+0, 83, 83, 1, 153600, 0x7c59b379
+0, 84, 84, 1, 153600, 0x38e3b86d
+0, 85, 85, 1, 153600, 0xff25a440
+0, 86, 86, 1, 153600, 0xa1f66533
+0, 87, 87, 1, 153600, 0xe136260a
+0, 88, 88, 1, 153600, 0x048ccf56
+0, 89, 89, 1, 153600, 0x65f68a24
+0, 90, 90, 1, 153600, 0xf32b385a
+0, 91, 91, 1, 153600, 0x3e930a8f
diff --git a/ffmpeg1/tests/ref/fate/deluxepaint-anm b/ffmpeg1/tests/ref/fate/deluxepaint-anm
new file mode 100644
index 0000000..e69b95e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/deluxepaint-anm
@@ -0,0 +1,124 @@
+#tb 0: 1/30
+0, 0, 0, 1, 192000, 0x82a79641
+0, 1, 1, 1, 192000, 0x43079971
+0, 2, 2, 1, 192000, 0x6311f1e5
+0, 3, 3, 1, 192000, 0x9e1ef4dc
+0, 4, 4, 1, 192000, 0x6f81049b
+0, 5, 5, 1, 192000, 0xe696fb12
+0, 6, 6, 1, 192000, 0x1ef4d160
+0, 7, 7, 1, 192000, 0x2f1bf0d4
+0, 8, 8, 1, 192000, 0xcfed92da
+0, 9, 9, 1, 192000, 0xbd409978
+0, 10, 10, 1, 192000, 0x50f76f07
+0, 11, 11, 1, 192000, 0xc8d52062
+0, 12, 12, 1, 192000, 0x75061d0e
+0, 13, 13, 1, 192000, 0x01b2a711
+0, 14, 14, 1, 192000, 0x541ca739
+0, 15, 15, 1, 192000, 0xe931ad85
+0, 16, 16, 1, 192000, 0xb7e4d4a5
+0, 17, 17, 1, 192000, 0xfc20d475
+0, 18, 18, 1, 192000, 0x7a5eefe5
+0, 19, 19, 1, 192000, 0x95a3ef97
+0, 20, 20, 1, 192000, 0x021d7f69
+0, 21, 21, 1, 192000, 0x108e7ed9
+0, 22, 22, 1, 192000, 0x021d7f69
+0, 23, 23, 1, 192000, 0x681817d8
+0, 24, 24, 1, 192000, 0x653e19d2
+0, 25, 25, 1, 192000, 0x56d9b14a
+0, 26, 26, 1, 192000, 0x82240846
+0, 27, 27, 1, 192000, 0xa2e90840
+0, 28, 28, 1, 192000, 0x8e031416
+0, 29, 29, 1, 192000, 0xe23813a6
+0, 30, 30, 1, 192000, 0xb2451aa1
+0, 31, 31, 1, 192000, 0x92eec7d2
+0, 32, 32, 1, 192000, 0x6400c80e
+0, 33, 33, 1, 192000, 0x24f01fce
+0, 34, 34, 1, 192000, 0x7c1b201c
+0, 35, 35, 1, 192000, 0xe2c878a1
+0, 36, 36, 1, 192000, 0xf6006739
+0, 37, 37, 1, 192000, 0x726b6677
+0, 38, 38, 1, 192000, 0xca61a01d
+0, 39, 39, 1, 192000, 0x87e49f69
+0, 40, 40, 1, 192000, 0x57120bd4
+0, 41, 41, 1, 192000, 0x50171c4b
+0, 42, 42, 1, 192000, 0x8ace1c49
+0, 43, 43, 1, 192000, 0x83082a8c
+0, 44, 44, 1, 192000, 0x6e092b58
+0, 45, 45, 1, 192000, 0x207a9af4
+0, 46, 46, 1, 192000, 0xedf193f0
+0, 47, 47, 1, 192000, 0x531793f0
+0, 48, 48, 1, 192000, 0x24e2a406
+0, 49, 49, 1, 192000, 0x6c34a1e5
+0, 50, 50, 1, 192000, 0x8e7acdae
+0, 51, 51, 1, 192000, 0x1f941805
+0, 52, 52, 1, 192000, 0x0c391218
+0, 53, 53, 1, 192000, 0xf25aa1fd
+0, 54, 54, 1, 192000, 0xcb2aa40e
+0, 55, 55, 1, 192000, 0x69701e49
+0, 56, 56, 1, 192000, 0x0dd719d3
+0, 57, 57, 1, 192000, 0x5ef71955
+0, 58, 58, 1, 192000, 0xac2063ca
+0, 59, 59, 1, 192000, 0xce7d601c
+0, 60, 60, 1, 192000, 0x43003946
+0, 61, 61, 1, 192000, 0xa72a38ee
+0, 62, 62, 1, 192000, 0x98023933
+0, 63, 63, 1, 192000, 0xa72a38ee
+0, 64, 64, 1, 192000, 0x98023933
+0, 65, 65, 1, 192000, 0xa72a38ee
+0, 66, 66, 1, 192000, 0x98023933
+0, 67, 67, 1, 192000, 0xa72a38ee
+0, 68, 68, 1, 192000, 0xdd7f371d
+0, 69, 69, 1, 192000, 0xeed134c6
+0, 103, 103, 1, 192000, 0x362931f5
+0, 104, 104, 1, 192000, 0xfb41331d
+0, 105, 105, 1, 192000, 0x087433f8
+0, 106, 106, 1, 192000, 0xf36b34a6
+0, 107, 107, 1, 192000, 0x652a33cd
+0, 108, 108, 1, 192000, 0x652a33cd
+0, 109, 109, 1, 192000, 0xe50c336a
+0, 110, 110, 1, 192000, 0x652a33cd
+0, 111, 111, 1, 192000, 0xeed134c6
+0, 112, 112, 1, 192000, 0x652a33cd
+0, 113, 113, 1, 192000, 0x5d7633e5
+0, 114, 114, 1, 192000, 0x845233b5
+0, 115, 115, 1, 192000, 0x9d1c349b
+0, 116, 116, 1, 192000, 0x25843317
+0, 117, 117, 1, 192000, 0xc84b375c
+0, 118, 118, 1, 192000, 0xaf2b3410
+0, 119, 119, 1, 192000, 0xaf2b3410
+0, 120, 120, 1, 192000, 0x26d23594
+0, 121, 121, 1, 192000, 0xaf2b3410
+0, 122, 122, 1, 192000, 0x26d23594
+0, 123, 123, 1, 192000, 0xaf2b3410
+0, 124, 124, 1, 192000, 0x72c4dfb9
+0, 125, 125, 1, 192000, 0x3c72e390
+0, 126, 126, 1, 192000, 0xb4466634
+0, 127, 127, 1, 192000, 0x84f064f5
+0, 128, 128, 1, 192000, 0xad43f3f5
+0, 129, 129, 1, 192000, 0xa8644d57
+0, 130, 130, 1, 192000, 0xfac35238
+0, 131, 131, 1, 192000, 0xe9374d1e
+0, 132, 132, 1, 192000, 0x0bd14cfa
+0, 133, 133, 1, 192000, 0x7e51a437
+0, 134, 134, 1, 192000, 0x92678dfa
+0, 135, 135, 1, 192000, 0x43338d41
+0, 136, 136, 1, 192000, 0x00000000
+0, 137, 137, 1, 192000, 0x00000000
+0, 138, 138, 1, 192000, 0x00000000
+0, 139, 139, 1, 192000, 0x00000000
+0, 140, 140, 1, 192000, 0x00000000
+0, 141, 141, 1, 192000, 0x00000000
+0, 142, 142, 1, 192000, 0x00000000
+0, 143, 143, 1, 192000, 0x00000000
+0, 144, 144, 1, 192000, 0x00000000
+0, 145, 145, 1, 192000, 0x00000000
+0, 146, 146, 1, 192000, 0x00000000
+0, 147, 147, 1, 192000, 0x00000000
+0, 148, 148, 1, 192000, 0x00000000
+0, 149, 149, 1, 192000, 0x00000000
+0, 150, 150, 1, 192000, 0x00000000
+0, 151, 151, 1, 192000, 0x00000000
+0, 152, 152, 1, 192000, 0x00000000
+0, 153, 153, 1, 192000, 0x00000000
+0, 154, 154, 1, 192000, 0x00000000
+0, 155, 155, 1, 192000, 0x82a79641
diff --git a/ffmpeg1/tests/ref/fate/dfa1 b/ffmpeg1/tests/ref/fate/dfa1
new file mode 100644
index 0000000..7bc5bf1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa1
@@ -0,0 +1,26 @@
+#tb 0: 16/125
+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/ffmpeg1/tests/ref/fate/dfa10 b/ffmpeg1/tests/ref/fate/dfa10
new file mode 100644
index 0000000..a799f03
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa10
@@ -0,0 +1,9 @@
+#tb 0: 71/1000
+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/ffmpeg1/tests/ref/fate/dfa11 b/ffmpeg1/tests/ref/fate/dfa11
new file mode 100644
index 0000000..30b4b71
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa11
@@ -0,0 +1,10 @@
+#tb 0: 71/1000
+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/ffmpeg1/tests/ref/fate/dfa2 b/ffmpeg1/tests/ref/fate/dfa2
new file mode 100644
index 0000000..cc4b454
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa2
@@ -0,0 +1,18 @@
+#tb 0: 71/1000
+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/ffmpeg1/tests/ref/fate/dfa3 b/ffmpeg1/tests/ref/fate/dfa3
new file mode 100644
index 0000000..9b170ec
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa3
@@ -0,0 +1,11 @@
+#tb 0: 1/10
+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/ffmpeg1/tests/ref/fate/dfa4 b/ffmpeg1/tests/ref/fate/dfa4
new file mode 100644
index 0000000..0e0dc02
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa4
@@ -0,0 +1,15 @@
+#tb 0: 71/500
+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/ffmpeg1/tests/ref/fate/dfa5 b/ffmpeg1/tests/ref/fate/dfa5
new file mode 100644
index 0000000..3be3c52
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa5
@@ -0,0 +1,16 @@
+#tb 0: 1/10
+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/ffmpeg1/tests/ref/fate/dfa6 b/ffmpeg1/tests/ref/fate/dfa6
new file mode 100644
index 0000000..535f98b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa6
@@ -0,0 +1,13 @@
+#tb 0: 71/1000
+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/ffmpeg1/tests/ref/fate/dfa7 b/ffmpeg1/tests/ref/fate/dfa7
new file mode 100644
index 0000000..28122c5
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa7
@@ -0,0 +1,13 @@
+#tb 0: 71/1000
+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/ffmpeg1/tests/ref/fate/dfa8 b/ffmpeg1/tests/ref/fate/dfa8
new file mode 100644
index 0000000..866260a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa8
@@ -0,0 +1,37 @@
+#tb 0: 71/1000
+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/ffmpeg1/tests/ref/fate/dfa9 b/ffmpeg1/tests/ref/fate/dfa9
new file mode 100644
index 0000000..99eb3f6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dfa9
@@ -0,0 +1,7 @@
+#tb 0: 71/1000
+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/ffmpeg1/tests/ref/fate/dirac b/ffmpeg1/tests/ref/fate/dirac
new file mode 100644
index 0000000..7781b4e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dirac
@@ -0,0 +1,3 @@
+#tb 0: 1/30
+0, 0, 0, 1, 115200, 0xf73819e8
+0, 1, 1, 1, 115200, 0x082e3788
diff --git a/ffmpeg1/tests/ref/fate/dpcm-idroq b/ffmpeg1/tests/ref/fate/dpcm-idroq
new file mode 100644
index 0000000..85e8efb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dpcm-idroq
@@ -0,0 +1,168 @@
+#tb 0: 1/22050
+0, 0, 0, 7456, 29824, 0x77e265b7
+0, 7456, 7456, 736, 2944, 0x8dcdf50b
+0, 8192, 8192, 736, 2944, 0xb135cd2a
+0, 8928, 8928, 736, 2944, 0x54a6e73f
+0, 9664, 9664, 736, 2944, 0x050ccd4e
+0, 10400, 10400, 736, 2944, 0x6b68db44
+0, 11136, 11136, 736, 2944, 0x55d1f308
+0, 11872, 11872, 736, 2944, 0x7e92f50b
+0, 12608, 12608, 736, 2944, 0xe9e91eed
+0, 13344, 13344, 736, 2944, 0x80af2ce0
+0, 14080, 14080, 736, 2944, 0xc67ffb07
+0, 14816, 14816, 736, 2944, 0x7aaded27
+0, 15552, 15552, 736, 2944, 0x14a024fd
+0, 16288, 16288, 736, 2944, 0x26e8df1f
+0, 17024, 17024, 736, 2944, 0x2688df44
+0, 17760, 17760, 736, 2944, 0x4b9cdd33
+0, 18496, 18496, 736, 2944, 0x10c2f11c
+0, 19232, 19232, 736, 2944, 0xc4e3ad6d
+0, 19968, 19968, 736, 2944, 0xbeb1a78e
+0, 20704, 20704, 736, 2944, 0x283d4e7f
+0, 21440, 21440, 736, 2944, 0x4acf65e0
+0, 22176, 22176, 736, 2944, 0x0ca29b8c
+0, 22912, 22912, 736, 2944, 0x003fae34
+0, 23648, 23648, 736, 2944, 0x2acfec7e
+0, 24384, 24384, 736, 2944, 0xea6fc6fe
+0, 25120, 25120, 736, 2944, 0xf5daec2f
+0, 25856, 25856, 736, 2944, 0x8d33ed7a
+0, 26592, 26592, 736, 2944, 0xc328f984
+0, 27328, 27328, 736, 2944, 0x6e0b58d3
+0, 28064, 28064, 736, 2944, 0xe282dc3f
+0, 28800, 28800, 736, 2944, 0xbf9bf3e6
+0, 29536, 29536, 736, 2944, 0xd7b7d7e3
+0, 30272, 30272, 736, 2944, 0x4e87b6ab
+0, 31008, 31008, 736, 2944, 0x7b8ce8d6
+0, 31744, 31744, 736, 2944, 0xd42991a5
+0, 32480, 32480, 736, 2944, 0x452c98ca
+0, 33216, 33216, 736, 2944, 0x6d27832d
+0, 33952, 33952, 736, 2944, 0xa558720e
+0, 34688, 34688, 736, 2944, 0x0a31bec0
+0, 35424, 35424, 736, 2944, 0x28431384
+0, 36160, 36160, 736, 2944, 0xd5e9fb3d
+0, 36896, 36896, 736, 2944, 0x34f0e9f8
+0, 37632, 37632, 736, 2944, 0x979432df
+0, 38368, 38368, 736, 2944, 0xb00acd4d
+0, 39104, 39104, 736, 2944, 0x726bffd6
+0, 39840, 39840, 736, 2944, 0xa1f39a6d
+0, 40576, 40576, 736, 2944, 0xf6a8e30e
+0, 41312, 41312, 736, 2944, 0x608e9e06
+0, 42048, 42048, 736, 2944, 0x4ec58bc3
+0, 42784, 42784, 736, 2944, 0x6d5c8458
+0, 43520, 43520, 736, 2944, 0x76a0abbd
+0, 44256, 44256, 736, 2944, 0xf830e8a6
+0, 44992, 44992, 736, 2944, 0x1bdd7bec
+0, 45728, 45728, 736, 2944, 0x3c1bd187
+0, 46464, 46464, 736, 2944, 0xf52cf697
+0, 47200, 47200, 736, 2944, 0x8f65b773
+0, 47936, 47936, 736, 2944, 0xf8b5b598
+0, 48672, 48672, 736, 2944, 0xcd87d5ed
+0, 49408, 49408, 736, 2944, 0x672ac02a
+0, 50144, 50144, 736, 2944, 0x1d5d13ed
+0, 50880, 50880, 736, 2944, 0xe298e3d4
+0, 51616, 51616, 736, 2944, 0x3d2e9c32
+0, 52352, 52352, 736, 2944, 0xf3a39259
+0, 53088, 53088, 736, 2944, 0x930ae8f8
+0, 53824, 53824, 736, 2944, 0x8562aff7
+0, 54560, 54560, 736, 2944, 0x9cd6c6a7
+0, 55296, 55296, 736, 2944, 0x2709dc5c
+0, 56032, 56032, 736, 2944, 0xcbe31816
+0, 56768, 56768, 736, 2944, 0xd7876ec4
+0, 57504, 57504, 736, 2944, 0xc2468b6a
+0, 58240, 58240, 736, 2944, 0x76043e84
+0, 58976, 58976, 736, 2944, 0xd2c35bf0
+0, 59712, 59712, 736, 2944, 0x63de6061
+0, 60448, 60448, 736, 2944, 0xd8f6ed1d
+0, 61184, 61184, 736, 2944, 0xe034928a
+0, 61920, 61920, 736, 2944, 0xa044da74
+0, 62656, 62656, 736, 2944, 0xee410dba
+0, 63392, 63392, 736, 2944, 0x8e020c7c
+0, 64128, 64128, 736, 2944, 0x73057ddb
+0, 64864, 64864, 736, 2944, 0xdee5cc18
+0, 65600, 65600, 736, 2944, 0xf4d31dec
+0, 66336, 66336, 736, 2944, 0xe8131e1c
+0, 67072, 67072, 736, 2944, 0x8ae69c95
+0, 67808, 67808, 736, 2944, 0x791c0bf4
+0, 68544, 68544, 736, 2944, 0xd45a10db
+0, 69280, 69280, 736, 2944, 0x3a72b010
+0, 70016, 70016, 736, 2944, 0x6a4a0411
+0, 70752, 70752, 736, 2944, 0xd77ab7f5
+0, 71488, 71488, 736, 2944, 0xe3bf4fe5
+0, 72224, 72224, 736, 2944, 0x12db1be8
+0, 72960, 72960, 736, 2944, 0x345210b0
+0, 73696, 73696, 736, 2944, 0xcfc1f892
+0, 74432, 74432, 736, 2944, 0x5b0a80bb
+0, 75168, 75168, 736, 2944, 0x31ab1168
+0, 75904, 75904, 736, 2944, 0xd4a4bb0a
+0, 76640, 76640, 736, 2944, 0x8e211c8f
+0, 77376, 77376, 736, 2944, 0xcf464d50
+0, 78112, 78112, 736, 2944, 0xe74ff3d6
+0, 78848, 78848, 736, 2944, 0x6274635f
+0, 79584, 79584, 736, 2944, 0xc34c9f64
+0, 80320, 80320, 736, 2944, 0xbb997537
+0, 81056, 81056, 736, 2944, 0x3600da72
+0, 81792, 81792, 736, 2944, 0x343e15f4
+0, 82528, 82528, 736, 2944, 0x17bc58a8
+0, 83264, 83264, 736, 2944, 0x3dcbd3ff
+0, 84000, 84000, 736, 2944, 0x1d422371
+0, 84736, 84736, 736, 2944, 0xe2b83d9d
+0, 85472, 85472, 736, 2944, 0x65388409
+0, 86208, 86208, 736, 2944, 0xafbca269
+0, 86944, 86944, 736, 2944, 0x2d00c0fb
+0, 87680, 87680, 736, 2944, 0xbac9c503
+0, 88416, 88416, 736, 2944, 0x9990768d
+0, 89152, 89152, 736, 2944, 0x8ba978be
+0, 89888, 89888, 736, 2944, 0x5a44a2f5
+0, 90624, 90624, 736, 2944, 0xa4b6f3b8
+0, 91360, 91360, 736, 2944, 0x631b6b9f
+0, 92096, 92096, 736, 2944, 0x4c840923
+0, 92832, 92832, 736, 2944, 0x7c105df3
+0, 93568, 93568, 736, 2944, 0x01bcb213
+0, 94304, 94304, 736, 2944, 0x95cffbf7
+0, 95040, 95040, 736, 2944, 0x170a9c3a
+0, 95776, 95776, 736, 2944, 0x59e09d61
+0, 96512, 96512, 736, 2944, 0x3ea0f205
+0, 97248, 97248, 736, 2944, 0xd9ea1a3a
+0, 97984, 97984, 736, 2944, 0xaf32d704
+0, 98720, 98720, 736, 2944, 0x2d473392
+0, 99456, 99456, 736, 2944, 0x2a8ec544
+0, 100192, 100192, 736, 2944, 0x883c8838
+0, 100928, 100928, 736, 2944, 0xfaf4d789
+0, 101664, 101664, 736, 2944, 0xcb315b65
+0, 102400, 102400, 736, 2944, 0x980c93b0
+0, 103136, 103136, 736, 2944, 0x0819583b
+0, 103872, 103872, 736, 2944, 0xf126e5b5
+0, 104608, 104608, 736, 2944, 0x88836255
+0, 105344, 105344, 736, 2944, 0xc8ae8ca8
+0, 106080, 106080, 736, 2944, 0xf0750551
+0, 106816, 106816, 736, 2944, 0x3dfe13a3
+0, 107552, 107552, 736, 2944, 0xf2aa957b
+0, 108288, 108288, 736, 2944, 0xa77b79a3
+0, 109024, 109024, 736, 2944, 0xb1038284
+0, 109760, 109760, 736, 2944, 0xf96be3ba
+0, 110496, 110496, 736, 2944, 0x1ae6e293
+0, 111232, 111232, 736, 2944, 0x2059d020
+0, 111968, 111968, 736, 2944, 0x7e6c9996
+0, 112704, 112704, 736, 2944, 0x3108b540
+0, 113440, 113440, 736, 2944, 0x75133155
+0, 114176, 114176, 736, 2944, 0x59a19226
+0, 114912, 114912, 736, 2944, 0x3140c138
+0, 115648, 115648, 736, 2944, 0x7570d3be
+0, 116384, 116384, 736, 2944, 0x54fd4ff6
+0, 117120, 117120, 736, 2944, 0x23bcf6dc
+0, 117856, 117856, 736, 2944, 0x2d26489b
+0, 118592, 118592, 736, 2944, 0x4b37bf13
+0, 119328, 119328, 736, 2944, 0x12812ec9
+0, 120064, 120064, 736, 2944, 0xc4a609dd
+0, 120800, 120800, 736, 2944, 0x5a8c5b20
+0, 121536, 121536, 736, 2944, 0xd05d110f
+0, 122272, 122272, 736, 2944, 0xceea6f1f
+0, 123008, 123008, 736, 2944, 0x4033b0a5
+0, 123744, 123744, 736, 2944, 0x101895ce
+0, 124480, 124480, 736, 2944, 0xd6c6809f
+0, 125216, 125216, 736, 2944, 0x197bda7e
+0, 125952, 125952, 736, 2944, 0x96fb3e4b
+0, 126688, 126688, 736, 2944, 0x12a6e3de
+0, 127424, 127424, 736, 2944, 0xfb80e466
+0, 128160, 128160, 736, 2944, 0xedb8c2fc
+0, 128896, 128896, 254, 1016, 0x30e56ca5
diff --git a/ffmpeg1/tests/ref/fate/dpcm-interplay b/ffmpeg1/tests/ref/fate/dpcm-interplay
new file mode 100644
index 0000000..bda8a8f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dpcm-interplay
@@ -0,0 +1,125 @@
+#tb 0: 1/22050
+0, 0, 0, 1462, 5848, 0xea04292b
+0, 1462, 1462, 1472, 5888, 0x0e59e942
+0, 2934, 2934, 1472, 5888, 0x56d480f6
+0, 4406, 4406, 1472, 5888, 0xcb560b22
+0, 5878, 5878, 1472, 5888, 0xca26865b
+0, 7350, 7350, 1472, 5888, 0xa434392f
+0, 8822, 8822, 1472, 5888, 0xa0615fe4
+0, 10294, 10294, 1472, 5888, 0x85b241cd
+0, 11766, 11766, 1472, 5888, 0x2c417a43
+0, 13238, 13238, 1472, 5888, 0x2d5ed665
+0, 14710, 14710, 1472, 5888, 0x37267a2d
+0, 16182, 16182, 1472, 5888, 0x1f803c67
+0, 17654, 17654, 1472, 5888, 0xfb7940ef
+0, 19126, 19126, 1472, 5888, 0x1a5371e8
+0, 20598, 20598, 1472, 5888, 0x37e29b21
+0, 22070, 22070, 1462, 5848, 0x70065769
+0, 23532, 23532, 1472, 5888, 0xaf624f3d
+0, 25004, 25004, 1472, 5888, 0x8f5e5b57
+0, 26476, 26476, 1472, 5888, 0x93545968
+0, 27948, 27948, 1472, 5888, 0x915f268f
+0, 29420, 29420, 1472, 5888, 0x9cd48ac4
+0, 30892, 30892, 1472, 5888, 0x812c8e13
+0, 32364, 32364, 1472, 5888, 0xe794a2a7
+0, 33836, 33836, 1472, 5888, 0x4a056e4b
+0, 35308, 35308, 1472, 5888, 0xa3589992
+0, 36780, 36780, 1472, 5888, 0x19ea7ec5
+0, 38252, 38252, 1472, 5888, 0x422d5097
+0, 39724, 39724, 1472, 5888, 0xc9fd963f
+0, 41196, 41196, 1472, 5888, 0xc556a5ea
+0, 42668, 42668, 1472, 5888, 0x51557e0f
+0, 44140, 44140, 1462, 5848, 0x4903ad21
+0, 45602, 45602, 1472, 5888, 0xb1c85e85
+0, 47074, 47074, 1472, 5888, 0x68963d65
+0, 48546, 48546, 1472, 5888, 0x62a3124e
+0, 50018, 50018, 1472, 5888, 0x4ff1878f
+0, 51490, 51490, 1472, 5888, 0x8b09ac18
+0, 52962, 52962, 1472, 5888, 0x67d85338
+0, 54434, 54434, 1472, 5888, 0x82eca0a6
+0, 55906, 55906, 1472, 5888, 0x81a17eb8
+0, 57378, 57378, 1472, 5888, 0x7108478c
+0, 58850, 58850, 1472, 5888, 0xbfc18b09
+0, 60322, 60322, 1472, 5888, 0xad93711f
+0, 61794, 61794, 1472, 5888, 0xf8d25e39
+0, 63266, 63266, 1472, 5888, 0x41edd04e
+0, 64738, 64738, 1472, 5888, 0xa6557ee2
+0, 66210, 66210, 1462, 5848, 0xc14d5456
+0, 67672, 67672, 1472, 5888, 0x20a7821f
+0, 69144, 69144, 1472, 5888, 0x9f1a8f9d
+0, 70616, 70616, 1472, 5888, 0x2f3c6cc8
+0, 72088, 72088, 1472, 5888, 0x757c894a
+0, 73560, 73560, 1472, 5888, 0x483e98bb
+0, 75032, 75032, 1472, 5888, 0x84289c75
+0, 76504, 76504, 1472, 5888, 0xf79d5a91
+0, 77976, 77976, 1472, 5888, 0x395b5228
+0, 79448, 79448, 1472, 5888, 0x9c937a14
+0, 80920, 80920, 1472, 5888, 0x40c169cf
+0, 82392, 82392, 1472, 5888, 0x3e7f99b0
+0, 83864, 83864, 1472, 5888, 0xd4de993e
+0, 85336, 85336, 1472, 5888, 0xae856b09
+0, 86808, 86808, 1472, 5888, 0xa2369c95
+0, 88280, 88280, 1462, 5848, 0x992d516b
+0, 89742, 89742, 1472, 5888, 0xcd785ba9
+0, 91214, 91214, 1472, 5888, 0x55ea3bce
+0, 92686, 92686, 1472, 5888, 0xf06d4bbf
+0, 94158, 94158, 1472, 5888, 0x2a9d4c1a
+0, 95630, 95630, 1472, 5888, 0xd5e348a3
+0, 97102, 97102, 1472, 5888, 0x6431a24c
+0, 98574, 98574, 1472, 5888, 0x41f9908c
+0, 100046, 100046, 1472, 5888, 0x0ed99656
+0, 101518, 101518, 1472, 5888, 0x635a6392
+0, 102990, 102990, 1472, 5888, 0x690c750c
+0, 104462, 104462, 1472, 5888, 0xf9d97b23
+0, 105934, 105934, 1472, 5888, 0x75e1606b
+0, 107406, 107406, 1472, 5888, 0x1bcb43b0
+0, 108878, 108878, 1472, 5888, 0x48c295cb
+0, 110350, 110350, 1462, 5848, 0xe47f7b5d
+0, 111812, 111812, 1472, 5888, 0x20be7f3e
+0, 113284, 113284, 1472, 5888, 0x8c2428c4
+0, 114756, 114756, 1472, 5888, 0x851379af
+0, 116228, 116228, 1472, 5888, 0x5916647d
+0, 117700, 117700, 1472, 5888, 0xef9c6281
+0, 119172, 119172, 1472, 5888, 0x49660d32
+0, 120644, 120644, 1472, 5888, 0x62cf36a1
+0, 122116, 122116, 1472, 5888, 0x56dff39c
+0, 123588, 123588, 1472, 5888, 0x4e6b5b02
+0, 125060, 125060, 1472, 5888, 0xb8697067
+0, 126532, 126532, 1472, 5888, 0xcb4e2706
+0, 128004, 128004, 1472, 5888, 0x6eaa9669
+0, 129476, 129476, 1472, 5888, 0xfd9d7dba
+0, 130948, 130948, 1472, 5888, 0xfe137923
+0, 132420, 132420, 1462, 5848, 0x1931296f
+0, 133882, 133882, 1472, 5888, 0xa09a7c03
+0, 135354, 135354, 1472, 5888, 0xded9802d
+0, 136826, 136826, 1472, 5888, 0x9f6723b7
+0, 138298, 138298, 1472, 5888, 0x3ad02476
+0, 139770, 139770, 1472, 5888, 0xa1647e32
+0, 141242, 141242, 1472, 5888, 0x728672da
+0, 142714, 142714, 1472, 5888, 0x9c098090
+0, 144186, 144186, 1472, 5888, 0x32a65ea3
+0, 145658, 145658, 1472, 5888, 0xdde141d5
+0, 147130, 147130, 1472, 5888, 0x816c5fb4
+0, 148602, 148602, 1472, 5888, 0x75e17581
+0, 150074, 150074, 1472, 5888, 0x59035469
+0, 151546, 151546, 1472, 5888, 0x20d340cd
+0, 153018, 153018, 1472, 5888, 0xa89a8790
+0, 154490, 154490, 1462, 5848, 0x12b74c34
+0, 155952, 155952, 1472, 5888, 0xcd3b3bef
+0, 157424, 157424, 1472, 5888, 0xe5c44bf3
+0, 158896, 158896, 1472, 5888, 0xb82c4fa4
+0, 160368, 160368, 1472, 5888, 0x05b2443a
+0, 161840, 161840, 1472, 5888, 0x78028172
+0, 163312, 163312, 1472, 5888, 0xdfcac19a
+0, 164784, 164784, 1472, 5888, 0x0761a0b9
+0, 166256, 166256, 1472, 5888, 0x77d88607
+0, 167728, 167728, 1472, 5888, 0xdd7f4d77
+0, 169200, 169200, 1472, 5888, 0x366bf58a
+0, 170672, 170672, 1472, 5888, 0x9a3d59b5
+0, 172144, 172144, 1472, 5888, 0x16cb777f
+0, 173616, 173616, 1472, 5888, 0x1d4afe64
+0, 175088, 175088, 1472, 5888, 0xc0fe1e73
+0, 176560, 176560, 1462, 5848, 0xcceb69c8
+0, 178022, 178022, 1472, 5888, 0x89449643
+0, 179494, 179494, 1472, 5888, 0x5fe595b7
+0, 180966, 180966, 1472, 5888, 0x400a8c77
diff --git a/ffmpeg1/tests/ref/fate/dpcm-sierra b/ffmpeg1/tests/ref/fate/dpcm-sierra
new file mode 100644
index 0000000..16f226e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dpcm-sierra
@@ -0,0 +1 @@
+a99402e1f1a0f137608898251b3f309b
diff --git a/ffmpeg1/tests/ref/fate/dpcm-xan b/ffmpeg1/tests/ref/fate/dpcm-xan
new file mode 100644
index 0000000..cb56677
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dpcm-xan
@@ -0,0 +1 @@
+b6da857766896ab10bb900004f915053
diff --git a/ffmpeg1/tests/ref/fate/dpx b/ffmpeg1/tests/ref/fate/dpx
new file mode 100644
index 0000000..fdb85ca
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dpx
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 2359296, 0x30d4d24f
diff --git a/ffmpeg1/tests/ref/fate/dxa-feeble b/ffmpeg1/tests/ref/fate/dxa-feeble
new file mode 100644
index 0000000..74b43dc
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dxa-feeble
@@ -0,0 +1,21 @@
+#tb 0: 1/10
+0, 0, 0, 1, 921600, 0x0d03844f
+0, 1, 1, 1, 921600, 0x0d03844f
+0, 2, 2, 1, 921600, 0x649cdcea
+0, 3, 3, 1, 921600, 0x649cdcea
+0, 4, 4, 1, 921600, 0x9c7f22e8
+0, 5, 5, 1, 921600, 0x9c7f22e8
+0, 6, 6, 1, 921600, 0x3451514a
+0, 7, 7, 1, 921600, 0x3451514a
+0, 8, 8, 1, 921600, 0x8f19f600
+0, 9, 9, 1, 921600, 0x8f19f600
+0, 10, 10, 1, 921600, 0x07e7445b
+0, 11, 11, 1, 921600, 0x07e7445b
+0, 12, 12, 1, 921600, 0x873d1227
+0, 13, 13, 1, 921600, 0x873d1227
+0, 14, 14, 1, 921600, 0xbef62d86
+0, 15, 15, 1, 921600, 0xbef62d86
+0, 16, 16, 1, 921600, 0xcf84fee4
+0, 17, 17, 1, 921600, 0xcf84fee4
+0, 18, 18, 1, 921600, 0x5639e670
+0, 19, 19, 1, 921600, 0x5639e670
diff --git a/ffmpeg1/tests/ref/fate/dxa-scummvm b/ffmpeg1/tests/ref/fate/dxa-scummvm
new file mode 100644
index 0000000..308a896
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dxa-scummvm
@@ -0,0 +1,13 @@
+#tb 0: 8333/100000
+0, 0, 0, 1, 384000, 0xef37f34b
+0, 1, 1, 1, 384000, 0xef37f34b
+0, 2, 2, 1, 384000, 0xfca3cd8b
+0, 3, 3, 1, 384000, 0xfca3cd8b
+0, 4, 4, 1, 384000, 0x6dd34bb7
+0, 5, 5, 1, 384000, 0x6dd34bb7
+0, 6, 6, 1, 384000, 0xfd518717
+0, 7, 7, 1, 384000, 0xfd518717
+0, 8, 8, 1, 384000, 0x82db5c7b
+0, 9, 9, 1, 384000, 0x82db5c7b
+0, 10, 10, 1, 384000, 0xe280a5a6
+0, 11, 11, 1, 384000, 0xe280a5a6
diff --git a/ffmpeg1/tests/ref/fate/dxtory b/ffmpeg1/tests/ref/fate/dxtory
new file mode 100644
index 0000000..7d3ecbd
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/dxtory
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+#tb 1: 1/48000
+0, 0, 0, 1, 1382400, 0x44373645
diff --git a/ffmpeg1/tests/ref/fate/ea-cdata b/ffmpeg1/tests/ref/fate/ea-cdata
new file mode 100644
index 0000000..cbfc1f5
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ea-cdata
@@ -0,0 +1 @@
+db441b7f9c8767ee675002763cd3ae46
diff --git a/ffmpeg1/tests/ref/fate/ea-cmv b/ffmpeg1/tests/ref/fate/ea-cmv
new file mode 100644
index 0000000..8f9049e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ea-cmv
@@ -0,0 +1,195 @@
+#tb 0: 1/10
+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/ffmpeg1/tests/ref/fate/ea-mad b/ffmpeg1/tests/ref/fate/ea-mad
new file mode 100644
index 0000000..1ea92fd
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ea-mad
@@ -0,0 +1,97 @@
+#tb 0: 33/1000
+0, 0, 0, 1, 535680, 0x889c32cf
+0, 1, 1, 1, 535680, 0x0b1ef044
+0, 2, 2, 1, 535680, 0xa7d0818b
+0, 3, 3, 1, 535680, 0xf392e4e1
+0, 4, 4, 1, 535680, 0x08480c69
+0, 5, 5, 1, 535680, 0x2b8af1ed
+0, 6, 6, 1, 535680, 0x0d58e062
+0, 7, 7, 1, 535680, 0xd140ced0
+0, 8, 8, 1, 535680, 0xbd0e6652
+0, 9, 9, 1, 535680, 0xdc2f2a6b
+0, 10, 10, 1, 535680, 0x97c31a38
+0, 11, 11, 1, 535680, 0x1a2bdf38
+0, 12, 12, 1, 535680, 0xb3af3ac4
+0, 13, 13, 1, 535680, 0x07a52577
+0, 14, 14, 1, 535680, 0x78407368
+0, 15, 15, 1, 535680, 0xd2a9efc3
+0, 16, 16, 1, 535680, 0x36df2f29
+0, 17, 17, 1, 535680, 0x9821d8f7
+0, 18, 18, 1, 535680, 0xf64321aa
+0, 19, 19, 1, 535680, 0x53e4d9aa
+0, 20, 20, 1, 535680, 0xdbd6f853
+0, 21, 21, 1, 535680, 0x5d40cf8b
+0, 22, 22, 1, 535680, 0xe624af9d
+0, 23, 23, 1, 535680, 0xd9dbb4cd
+0, 24, 24, 1, 535680, 0xf14e72ec
+0, 25, 25, 1, 535680, 0xb35c18f6
+0, 26, 26, 1, 535680, 0xc96d7757
+0, 27, 27, 1, 535680, 0xdfb937df
+0, 28, 28, 1, 535680, 0x40cd71d7
+0, 29, 29, 1, 535680, 0x15e176d6
+0, 30, 30, 1, 535680, 0x7f891b24
+0, 31, 31, 1, 535680, 0xb87a8c32
+0, 32, 32, 1, 535680, 0x0c01541f
+0, 33, 33, 1, 535680, 0x9eee99b3
+0, 34, 34, 1, 535680, 0xd65eb689
+0, 35, 35, 1, 535680, 0x6e733cfa
+0, 36, 36, 1, 535680, 0xac536670
+0, 37, 37, 1, 535680, 0x002275b8
+0, 38, 38, 1, 535680, 0x6a5385cb
+0, 39, 39, 1, 535680, 0xd129ade3
+0, 40, 40, 1, 535680, 0x32cab5d7
+0, 41, 41, 1, 535680, 0x08be1c8f
+0, 42, 42, 1, 535680, 0x59e1fba0
+0, 43, 43, 1, 535680, 0x138aee3a
+0, 44, 44, 1, 535680, 0x4cfbcd5e
+0, 45, 45, 1, 535680, 0xf6cf0fb4
+0, 46, 46, 1, 535680, 0xb13a06de
+0, 47, 47, 1, 535680, 0x59176f00
+0, 48, 48, 1, 535680, 0xf84b4ca3
+0, 49, 49, 1, 535680, 0x7fd09f73
+0, 50, 50, 1, 535680, 0x3be383b8
+0, 51, 51, 1, 535680, 0xa7118e51
+0, 52, 52, 1, 535680, 0xbd83120c
+0, 53, 53, 1, 535680, 0x3bc9d256
+0, 54, 54, 1, 535680, 0xb6c87f87
+0, 55, 55, 1, 535680, 0xe80d110a
+0, 56, 56, 1, 535680, 0xb3a83362
+0, 57, 57, 1, 535680, 0xfb39eb52
+0, 58, 58, 1, 535680, 0xbf6e1220
+0, 59, 59, 1, 535680, 0x9ecdfbae
+0, 60, 60, 1, 535680, 0x069a65f5
+0, 61, 61, 1, 535680, 0x206e372c
+0, 62, 62, 1, 535680, 0x58c83dd4
+0, 63, 63, 1, 535680, 0xc3562b03
+0, 64, 64, 1, 535680, 0xd1ed85a0
+0, 65, 65, 1, 535680, 0xb6205f4b
+0, 66, 66, 1, 535680, 0xaedf8bfa
+0, 67, 67, 1, 535680, 0xa48d5dea
+0, 68, 68, 1, 535680, 0xff82e7c1
+0, 69, 69, 1, 535680, 0xc9560222
+0, 70, 70, 1, 535680, 0x0fafa549
+0, 71, 71, 1, 535680, 0x8d556ccb
+0, 72, 72, 1, 535680, 0x802aac1f
+0, 73, 73, 1, 535680, 0x7d0fa168
+0, 74, 74, 1, 535680, 0x1a9255c9
+0, 75, 75, 1, 535680, 0xb4ec7e35
+0, 76, 76, 1, 535680, 0x48fac072
+0, 77, 77, 1, 535680, 0x1e260135
+0, 78, 78, 1, 535680, 0xce4d5079
+0, 79, 79, 1, 535680, 0x13e5e4ed
+0, 80, 80, 1, 535680, 0x592305ec
+0, 81, 81, 1, 535680, 0x9e227508
+0, 82, 82, 1, 535680, 0x1d37e5ea
+0, 83, 83, 1, 535680, 0x7eae7692
+0, 84, 84, 1, 535680, 0xf452e4b9
+0, 85, 85, 1, 535680, 0x1460e7e9
+0, 86, 86, 1, 535680, 0xc6d8a638
+0, 87, 87, 1, 535680, 0x854f5fb0
+0, 88, 88, 1, 535680, 0x854f5fb0
+0, 89, 89, 1, 535680, 0x70a02d87
+0, 90, 90, 1, 535680, 0x9a4ad464
+0, 91, 91, 1, 535680, 0x9a4ad464
+0, 92, 92, 1, 535680, 0x9a4ad464
+0, 93, 93, 1, 535680, 0x9a4ad464
+0, 94, 94, 1, 535680, 0x9a4ad464
+0, 95, 95, 1, 535680, 0x9a4ad464
diff --git a/ffmpeg1/tests/ref/fate/ea-tgq b/ffmpeg1/tests/ref/fate/ea-tgq
new file mode 100644
index 0000000..5c0648d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ea-tgq
@@ -0,0 +1,279 @@
+#tb 0: 1/15
+0, 0, 0, 1, 34944, 0xe33671a4
+0, 1, 1, 1, 34944, 0xe33671a4
+0, 2, 2, 1, 34944, 0xe33671a4
+0, 3, 3, 1, 34944, 0xe33671a4
+0, 4, 4, 1, 34944, 0xe33671a4
+0, 5, 5, 1, 34944, 0xe33671a4
+0, 6, 6, 1, 34944, 0xe33671a4
+0, 7, 7, 1, 34944, 0xe33671a4
+0, 8, 8, 1, 34944, 0xe33671a4
+0, 9, 9, 1, 34944, 0xe33671a4
+0, 10, 10, 1, 34944, 0xe33671a4
+0, 11, 11, 1, 34944, 0xe33671a4
+0, 12, 12, 1, 34944, 0xe33671a4
+0, 13, 13, 1, 34944, 0xe33671a4
+0, 14, 14, 1, 34944, 0xe33671a4
+0, 15, 15, 1, 34944, 0x63196b41
+0, 16, 16, 1, 34944, 0x308d6f10
+0, 17, 17, 1, 34944, 0x86026ced
+0, 18, 18, 1, 34944, 0xaa6a6bc9
+0, 19, 19, 1, 34944, 0x58276ee3
+0, 20, 20, 1, 34944, 0x402d70c2
+0, 21, 21, 1, 34944, 0x948d74bf
+0, 22, 22, 1, 34944, 0x3d31759c
+0, 23, 23, 1, 34944, 0x638c734e
+0, 24, 24, 1, 34944, 0xe218768a
+0, 25, 25, 1, 34944, 0xed6678ff
+0, 26, 26, 1, 34944, 0x381b7dda
+0, 27, 27, 1, 34944, 0x216680e7
+0, 28, 28, 1, 34944, 0xaca5810f
+0, 29, 29, 1, 34944, 0xf70b81eb
+0, 30, 30, 1, 34944, 0x3675858b
+0, 31, 31, 1, 34944, 0xa51188c3
+0, 32, 32, 1, 34944, 0x3a848bf1
+0, 33, 33, 1, 34944, 0x67608d4d
+0, 34, 34, 1, 34944, 0xafe49165
+0, 35, 35, 1, 34944, 0x7e8a94a7
+0, 36, 36, 1, 34944, 0x3b889432
+0, 37, 37, 1, 34944, 0x97e89623
+0, 38, 38, 1, 34944, 0x07819793
+0, 39, 39, 1, 34944, 0xdac39b87
+0, 40, 40, 1, 34944, 0x4d8c9d93
+0, 41, 41, 1, 34944, 0xcf009fa7
+0, 42, 42, 1, 34944, 0x2f109f6e
+0, 43, 43, 1, 34944, 0xcedda4eb
+0, 44, 44, 1, 34944, 0xfe89a6df
+0, 45, 45, 1, 34944, 0x195ea7a9
+0, 46, 46, 1, 34944, 0x9287ab92
+0, 47, 47, 1, 34944, 0x6d21af54
+0, 48, 48, 1, 34944, 0xd627b28b
+0, 49, 49, 1, 34944, 0x3ad5b6fd
+0, 50, 50, 1, 34944, 0x5101b64d
+0, 51, 51, 1, 34944, 0xb968b8ca
+0, 52, 52, 1, 34944, 0xa105b74a
+0, 53, 53, 1, 34944, 0xc056bdd6
+0, 54, 54, 1, 34944, 0xec7fc1d9
+0, 55, 55, 1, 34944, 0x92c3c3e0
+0, 56, 56, 1, 34944, 0x9bffc45c
+0, 57, 57, 1, 34944, 0x5aabca4b
+0, 58, 58, 1, 34944, 0xcbdacb26
+0, 59, 59, 1, 34944, 0xed6cce3f
+0, 60, 60, 1, 34944, 0xcc61cfb8
+0, 61, 61, 1, 34944, 0x7a97d427
+0, 62, 62, 1, 34944, 0x7cdbd5ec
+0, 63, 63, 1, 34944, 0x5851d9c4
+0, 64, 64, 1, 34944, 0x69d5dd1d
+0, 65, 65, 1, 34944, 0xdf30dcf4
+0, 66, 66, 1, 34944, 0x2359e084
+0, 67, 67, 1, 34944, 0xe0bae491
+0, 68, 68, 1, 34944, 0xa716e4fd
+0, 69, 69, 1, 34944, 0xe48aeaf4
+0, 70, 70, 1, 34944, 0x0a0deb21
+0, 71, 71, 1, 34944, 0xe8a56e12
+0, 72, 72, 1, 34944, 0x0d72c98e
+0, 73, 73, 1, 34944, 0x71a7bb9d
+0, 74, 74, 1, 34944, 0xc0c8c108
+0, 75, 75, 1, 34944, 0x1d1fc3ba
+0, 76, 76, 1, 34944, 0xebcfc67f
+0, 77, 77, 1, 34944, 0x2921cb5b
+0, 78, 78, 1, 34944, 0x793ed099
+0, 79, 79, 1, 34944, 0xefebd9e8
+0, 80, 80, 1, 34944, 0x163c2330
+0, 81, 81, 1, 34944, 0x35155672
+0, 82, 82, 1, 34944, 0x05474e2e
+0, 83, 83, 1, 34944, 0x9433542f
+0, 84, 84, 1, 34944, 0x777d5a13
+0, 85, 85, 1, 34944, 0x87526776
+0, 86, 86, 1, 34944, 0x4c3c72c1
+0, 87, 87, 1, 34944, 0x70407b87
+0, 88, 88, 1, 34944, 0x2358861d
+0, 89, 89, 1, 34944, 0xec61923f
+0, 90, 90, 1, 34944, 0x0bb2a0d4
+0, 91, 91, 1, 34944, 0x6b6d8624
+0, 92, 92, 1, 34944, 0x624761ec
+0, 93, 93, 1, 34944, 0xff23b926
+0, 94, 94, 1, 34944, 0x07fc7ca5
+0, 95, 95, 1, 34944, 0xa8d3ffda
+0, 96, 96, 1, 34944, 0xa2d31265
+0, 97, 97, 1, 34944, 0x5e58225e
+0, 98, 98, 1, 34944, 0x284b2fb0
+0, 99, 99, 1, 34944, 0x205b3cb1
+0, 100, 100, 1, 34944, 0x3fa64a09
+0, 101, 101, 1, 34944, 0xa5de5097
+0, 102, 102, 1, 34944, 0x00686cea
+0, 103, 103, 1, 34944, 0x465a8282
+0, 104, 104, 1, 34944, 0x4ceb8189
+0, 105, 105, 1, 34944, 0x14698509
+0, 106, 106, 1, 34944, 0x232c830d
+0, 107, 107, 1, 34944, 0x0739807c
+0, 108, 108, 1, 34944, 0x83b0861e
+0, 109, 109, 1, 34944, 0xbdc094b1
+0, 110, 110, 1, 34944, 0xc4c0a605
+0, 111, 111, 1, 34944, 0x8376b059
+0, 112, 112, 1, 34944, 0x2035b939
+0, 113, 113, 1, 34944, 0xb6bfc812
+0, 114, 114, 1, 34944, 0xc5d4d5c4
+0, 115, 115, 1, 34944, 0x492c954e
+0, 116, 116, 1, 34944, 0xd23f0dcc
+0, 117, 117, 1, 34944, 0x22d7ff6c
+0, 118, 118, 1, 34944, 0xd08b4168
+0, 119, 119, 1, 34944, 0xa82e4062
+0, 120, 120, 1, 34944, 0xcc4f2f31
+0, 121, 121, 1, 34944, 0x964b0307
+0, 122, 122, 1, 34944, 0xe8130606
+0, 123, 123, 1, 34944, 0x5fb744bf
+0, 124, 124, 1, 34944, 0x1546a88b
+0, 125, 125, 1, 34944, 0xe6e4d94d
+0, 126, 126, 1, 34944, 0x8d1ea97e
+0, 127, 127, 1, 34944, 0x3bb1fb55
+0, 128, 128, 1, 34944, 0x3c37e9cc
+0, 129, 129, 1, 34944, 0xe2d22521
+0, 130, 130, 1, 34944, 0x7c0ec8cc
+0, 131, 131, 1, 34944, 0x7c2dc956
+0, 132, 132, 1, 34944, 0x7fe3c263
+0, 133, 133, 1, 34944, 0x9a65b813
+0, 134, 134, 1, 34944, 0x7ea7cb14
+0, 135, 135, 1, 34944, 0x31ded64e
+0, 136, 136, 1, 34944, 0x50f30ad1
+0, 137, 137, 1, 34944, 0x12eac45c
+0, 138, 138, 1, 34944, 0x984b6335
+0, 139, 139, 1, 34944, 0x3b9b02f0
+0, 140, 140, 1, 34944, 0x4629d2a4
+0, 141, 141, 1, 34944, 0x38687e89
+0, 142, 142, 1, 34944, 0xb76620fe
+0, 143, 143, 1, 34944, 0x66347155
+0, 144, 144, 1, 34944, 0x6e6bc297
+0, 145, 145, 1, 34944, 0x452a653a
+0, 146, 146, 1, 34944, 0x8c8a0683
+0, 147, 147, 1, 34944, 0xaf5d7c2d
+0, 148, 148, 1, 34944, 0x3064a7e1
+0, 149, 149, 1, 34944, 0xc0657fc4
+0, 150, 150, 1, 34944, 0x1f129266
+0, 151, 151, 1, 34944, 0x35adedfb
+0, 152, 152, 1, 34944, 0x40a3db0d
+0, 153, 153, 1, 34944, 0x87bebb37
+0, 154, 154, 1, 34944, 0x04d7ffed
+0, 155, 155, 1, 34944, 0x9bde3180
+0, 156, 156, 1, 34944, 0xc35c25bd
+0, 157, 157, 1, 34944, 0x820bf4bb
+0, 158, 158, 1, 34944, 0x876163ef
+0, 159, 159, 1, 34944, 0x3ab6dac0
+0, 160, 160, 1, 34944, 0x69a9ef73
+0, 161, 161, 1, 34944, 0x0df3813c
+0, 162, 162, 1, 34944, 0x1bba0947
+0, 163, 163, 1, 34944, 0x0b7883d4
+0, 164, 164, 1, 34944, 0xa9972f7e
+0, 165, 165, 1, 34944, 0x603d08fe
+0, 166, 166, 1, 34944, 0x05f4f111
+0, 167, 167, 1, 34944, 0xb24fdb42
+0, 168, 168, 1, 34944, 0xfe2ad344
+0, 169, 169, 1, 34944, 0xda4bcb8f
+0, 170, 170, 1, 34944, 0xd28aca6b
+0, 171, 171, 1, 34944, 0x9486c260
+0, 172, 172, 1, 34944, 0xad9fc04d
+0, 173, 173, 1, 34944, 0x9333c0ca
+0, 174, 174, 1, 34944, 0x96e9c226
+0, 175, 175, 1, 34944, 0x3e89bd6f
+0, 176, 176, 1, 34944, 0x7a2dbd32
+0, 177, 177, 1, 34944, 0xe578ba53
+0, 178, 178, 1, 34944, 0xb77ebab1
+0, 179, 179, 1, 34944, 0xd8bfbcb1
+0, 180, 180, 1, 34944, 0x15d9bc97
+0, 181, 181, 1, 34944, 0x09c3b9f0
+0, 182, 182, 1, 34944, 0xd8c8b944
+0, 183, 183, 1, 34944, 0x2c2fb996
+0, 184, 184, 1, 34944, 0xd7a8b7e7
+0, 185, 185, 1, 34944, 0xce34b843
+0, 186, 186, 1, 34944, 0xba69e9fd
+0, 187, 187, 1, 34944, 0x1b3f1adc
+0, 188, 188, 1, 34944, 0x48f515aa
+0, 189, 189, 1, 34944, 0x864e12bb
+0, 190, 190, 1, 34944, 0xca571996
+0, 191, 191, 1, 34944, 0x1d5a1af0
+0, 192, 192, 1, 34944, 0x3d1e171f
+0, 193, 193, 1, 34944, 0xb57417ca
+0, 194, 194, 1, 34944, 0x6e6d1e9d
+0, 195, 195, 1, 34944, 0xc9971899
+0, 196, 196, 1, 34944, 0xe0b112c8
+0, 197, 197, 1, 34944, 0x121b0cd9
+0, 198, 198, 1, 34944, 0x418e0eff
+0, 199, 199, 1, 34944, 0x9e1b07d8
+0, 200, 200, 1, 34944, 0x5590064a
+0, 201, 201, 1, 34944, 0x7a170b14
+0, 202, 202, 1, 34944, 0xf25709f0
+0, 203, 203, 1, 34944, 0x94fa099a
+0, 204, 204, 1, 34944, 0x081e06ae
+0, 205, 205, 1, 34944, 0xcfc40417
+0, 206, 206, 1, 34944, 0xed33096f
+0, 207, 207, 1, 34944, 0xd73a07e2
+0, 208, 208, 1, 34944, 0xc512077d
+0, 209, 209, 1, 34944, 0x27d7021d
+0, 210, 210, 1, 34944, 0xab59fd20
+0, 211, 211, 1, 34944, 0xcc2400b7
+0, 212, 212, 1, 34944, 0xcb3bfb99
+0, 213, 213, 1, 34944, 0x0974fb1a
+0, 214, 214, 1, 34944, 0xef79f8ba
+0, 215, 215, 1, 34944, 0xf932f3a2
+0, 216, 216, 1, 34944, 0xa32df1bc
+0, 217, 217, 1, 34944, 0xdbe0f532
+0, 218, 218, 1, 34944, 0x234cf142
+0, 219, 219, 1, 34944, 0xe68befd0
+0, 220, 220, 1, 34944, 0xe4e7ee45
+0, 221, 221, 1, 34944, 0x0283eff1
+0, 222, 222, 1, 34944, 0xc8d3f6db
+0, 223, 223, 1, 34944, 0x0aa6ee88
+0, 224, 224, 1, 34944, 0xcc3de527
+0, 225, 225, 1, 34944, 0x9db0ebef
+0, 226, 226, 1, 34944, 0xa207e9db
+0, 227, 227, 1, 34944, 0x35b3e74a
+0, 228, 228, 1, 34944, 0x1988e848
+0, 229, 229, 1, 34944, 0x727de73c
+0, 230, 230, 1, 34944, 0x05d5e709
+0, 231, 231, 1, 34944, 0x3214e4b2
+0, 232, 232, 1, 34944, 0xed85e0a9
+0, 233, 233, 1, 34944, 0xf6c9e100
+0, 234, 234, 1, 34944, 0x57a8dbaf
+0, 235, 235, 1, 34944, 0xc75fdf41
+0, 236, 236, 1, 34944, 0x736fde24
+0, 237, 237, 1, 34944, 0x8d4bde80
+0, 238, 238, 1, 34944, 0x3220dc86
+0, 239, 239, 1, 34944, 0xe498da85
+0, 240, 240, 1, 34944, 0x0655daed
+0, 241, 241, 1, 34944, 0xb22ad874
+0, 242, 242, 1, 34944, 0x8198d411
+0, 243, 243, 1, 34944, 0xd0d2d557
+0, 244, 244, 1, 34944, 0xd740d1ff
+0, 245, 245, 1, 34944, 0x2783d00e
+0, 246, 246, 1, 34944, 0x7abdcd6b
+0, 247, 247, 1, 34944, 0x2e47d1eb
+0, 248, 248, 1, 34944, 0xfe1bcf60
+0, 249, 249, 1, 34944, 0xf0f0d5bb
+0, 250, 250, 1, 34944, 0x9af7d581
+0, 251, 251, 1, 34944, 0xb325ca3d
+0, 252, 252, 1, 34944, 0xd88abfbd
+0, 253, 253, 1, 34944, 0xf2bab746
+0, 254, 254, 1, 34944, 0xac44a7dd
+0, 255, 255, 1, 34944, 0x609e9ea3
+0, 256, 256, 1, 34944, 0xa39993b9
+0, 257, 257, 1, 34944, 0x9c948911
+0, 258, 258, 1, 34944, 0x72f8822d
+0, 259, 259, 1, 34944, 0x7f3f7a8c
+0, 260, 260, 1, 34944, 0x7ab475f9
+0, 261, 261, 1, 34944, 0x536f73aa
+0, 262, 262, 1, 34944, 0x86cb71e5
+0, 263, 263, 1, 34944, 0x17157186
+0, 264, 264, 1, 34944, 0xe33671a4
+0, 265, 265, 1, 34944, 0xe33671a4
+0, 266, 266, 1, 34944, 0xe33671a4
+0, 267, 267, 1, 34944, 0xe33671a4
+0, 268, 268, 1, 34944, 0xe33671a4
+0, 269, 269, 1, 34944, 0xe33671a4
+0, 270, 270, 1, 34944, 0xe33671a4
+0, 271, 271, 1, 34944, 0xe33671a4
+0, 272, 272, 1, 34944, 0xe33671a4
+0, 273, 273, 1, 34944, 0xe33671a4
+0, 274, 274, 1, 34944, 0xe33671a4
+0, 275, 275, 1, 34944, 0xe33671a4
+0, 276, 276, 1, 34944, 0xe33671a4
+0, 277, 277, 1, 34944, 0xe33671a4
diff --git a/ffmpeg1/tests/ref/fate/ea-tgv-1 b/ffmpeg1/tests/ref/fate/ea-tgv-1
new file mode 100644
index 0000000..fc92181
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ea-tgv-1
@@ -0,0 +1,48 @@
+#tb 0: 1/15
+0, 0, 0, 1, 230400, 0xfbf2581e
+0, 1, 1, 1, 230400, 0xfbf2581e
+0, 2, 2, 1, 230400, 0xfbf2581e
+0, 3, 3, 1, 230400, 0xfbf2581e
+0, 4, 4, 1, 230400, 0xfbf2581e
+0, 5, 5, 1, 230400, 0xfbf2581e
+0, 6, 6, 1, 230400, 0xfbf2581e
+0, 7, 7, 1, 230400, 0xfbf2581e
+0, 8, 8, 1, 230400, 0xfbf2581e
+0, 9, 9, 1, 230400, 0xfbf2581e
+0, 10, 10, 1, 230400, 0xfbf2581e
+0, 11, 11, 1, 230400, 0xfbf2581e
+0, 12, 12, 1, 230400, 0xfbf2581e
+0, 13, 13, 1, 230400, 0xfbf2581e
+0, 14, 14, 1, 230400, 0xfbf2581e
+0, 15, 15, 1, 230400, 0xf5a0a21d
+0, 16, 16, 1, 230400, 0x909cc039
+0, 17, 17, 1, 230400, 0x14d899dd
+0, 18, 18, 1, 230400, 0x0d246edf
+0, 19, 19, 1, 230400, 0x5345fe0d
+0, 20, 20, 1, 230400, 0x5abdff9a
+0, 21, 21, 1, 230400, 0x1730d973
+0, 22, 22, 1, 230400, 0xec881be9
+0, 23, 23, 1, 230400, 0xf4216895
+0, 24, 24, 1, 230400, 0x529d7a52
+0, 25, 25, 1, 230400, 0x93b4c7b9
+0, 26, 26, 1, 230400, 0xedc65bcd
+0, 27, 27, 1, 230400, 0xf0fb54ae
+0, 28, 28, 1, 230400, 0x27864ce9
+0, 29, 29, 1, 230400, 0xcd05012d
+0, 30, 30, 1, 230400, 0x019b6d84
+0, 31, 31, 1, 230400, 0xcc05d416
+0, 32, 32, 1, 230400, 0xb04c0248
+0, 33, 33, 1, 230400, 0x6806eb92
+0, 34, 34, 1, 230400, 0x60e9c001
+0, 35, 35, 1, 230400, 0x9b040261
+0, 36, 36, 1, 230400, 0x6961fb90
+0, 37, 37, 1, 230400, 0xbf67ad24
+0, 38, 38, 1, 230400, 0x2270f328
+0, 39, 39, 1, 230400, 0xd0c345f6
+0, 40, 40, 1, 230400, 0xfd159212
+0, 41, 41, 1, 230400, 0x085578ff
+0, 42, 42, 1, 230400, 0xcca8afa6
+0, 43, 43, 1, 230400, 0x901ec91c
+0, 44, 44, 1, 230400, 0xf1cb99f3
+0, 45, 45, 1, 230400, 0x86d98f0c
+0, 46, 46, 1, 230400, 0x52970700
diff --git a/ffmpeg1/tests/ref/fate/ea-tgv-2 b/ffmpeg1/tests/ref/fate/ea-tgv-2
new file mode 100644
index 0000000..5e9de02
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ea-tgv-2
@@ -0,0 +1,39 @@
+#tb 0: 1/15
+0, 0, 0, 1, 192000, 0xdfc2f225
+0, 1, 1, 1, 192000, 0x059b57bd
+0, 2, 2, 1, 192000, 0x766cb086
+0, 3, 3, 1, 192000, 0x459e3bac
+0, 4, 4, 1, 192000, 0x5293e622
+0, 5, 5, 1, 192000, 0x898b03f4
+0, 6, 6, 1, 192000, 0xb184a627
+0, 7, 7, 1, 192000, 0xa3fc650a
+0, 8, 8, 1, 192000, 0xea448589
+0, 9, 9, 1, 192000, 0x700e2b76
+0, 10, 10, 1, 192000, 0xa1a1d66d
+0, 11, 11, 1, 192000, 0xd63bc8a1
+0, 12, 12, 1, 192000, 0x5f08c023
+0, 13, 13, 1, 192000, 0x8b75ec3b
+0, 14, 14, 1, 192000, 0x62728ce4
+0, 15, 15, 1, 192000, 0xaa007941
+0, 16, 16, 1, 192000, 0x55dc5b3b
+0, 17, 17, 1, 192000, 0x72d836c2
+0, 18, 18, 1, 192000, 0x1f2de2fc
+0, 19, 19, 1, 192000, 0xb295dfdb
+0, 20, 20, 1, 192000, 0xe5c5f634
+0, 21, 21, 1, 192000, 0x455a0464
+0, 22, 22, 1, 192000, 0x3bf2340d
+0, 23, 23, 1, 192000, 0xe368f0fc
+0, 24, 24, 1, 192000, 0xfa7549c0
+0, 25, 25, 1, 192000, 0x4dd76f3d
+0, 26, 26, 1, 192000, 0x50a49f6c
+0, 27, 27, 1, 192000, 0xb6072f65
+0, 28, 28, 1, 192000, 0x093ce1a8
+0, 29, 29, 1, 192000, 0x55afe3db
+0, 30, 30, 1, 192000, 0x81c3bfab
+0, 31, 31, 1, 192000, 0x583ebd3d
+0, 32, 32, 1, 192000, 0x2504f003
+0, 33, 33, 1, 192000, 0x44ade2af
+0, 34, 34, 1, 192000, 0x77cbcfd8
+0, 35, 35, 1, 192000, 0xac7ddfa1
+0, 36, 36, 1, 192000, 0x79f7cfe8
+0, 37, 37, 1, 192000, 0xdf2898fd
diff --git a/ffmpeg1/tests/ref/fate/ea-tqi b/ffmpeg1/tests/ref/fate/ea-tqi
new file mode 100644
index 0000000..72afb81
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ea-tqi
@@ -0,0 +1,27 @@
+#tb 0: 1/15
+0, 0, 0, 1, 115200, 0x375ec573
+0, 1, 1, 1, 115200, 0x375ec573
+0, 2, 2, 1, 115200, 0x375ec573
+0, 3, 3, 1, 115200, 0x375ec573
+0, 4, 4, 1, 115200, 0x375ec573
+0, 5, 5, 1, 115200, 0x375ec573
+0, 6, 6, 1, 115200, 0x375ec573
+0, 7, 7, 1, 115200, 0x375ec573
+0, 8, 8, 1, 115200, 0x0b4d31bf
+0, 9, 9, 1, 115200, 0xdd724598
+0, 10, 10, 1, 115200, 0xc3077e75
+0, 11, 11, 1, 115200, 0xbf70778a
+0, 12, 12, 1, 115200, 0x117eb766
+0, 13, 13, 1, 115200, 0x4617fbad
+0, 14, 14, 1, 115200, 0x5f5b02d2
+0, 15, 15, 1, 115200, 0x2a9c5325
+0, 16, 16, 1, 115200, 0x14a89e2a
+0, 17, 17, 1, 115200, 0xe69aa994
+0, 18, 18, 1, 115200, 0xfbacf589
+0, 19, 19, 1, 115200, 0x1d714c6e
+0, 20, 20, 1, 115200, 0x6eff66cb
+0, 21, 21, 1, 115200, 0xee21c1cb
+0, 22, 22, 1, 115200, 0xce714ada
+0, 23, 23, 1, 115200, 0xf89d56c3
+0, 24, 24, 1, 115200, 0x65fd5e60
+0, 25, 25, 1, 115200, 0x0c256424
diff --git a/ffmpeg1/tests/ref/fate/eval b/ffmpeg1/tests/ref/fate/eval
new file mode 100644
index 0000000..0e76fe5
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/eval
@@ -0,0 +1,263 @@
+Evaluating ''
+'' -> nan
+
+Evaluating '1;2'
+'1;2' -> 2.000000
+
+Evaluating '-20'
+'-20' -> -20.000000
+
+Evaluating '-PI'
+'-PI' -> -3.141593
+
+Evaluating '+PI'
+'+PI' -> 3.141593
+
+Evaluating '1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)'
+'1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)' -> 12.700000
+
+Evaluating '80G/80Gi'
+'80G/80Gi' -> 0.931323
+
+Evaluating '1k'
+'1k' -> 1000.000000
+
+Evaluating '1Gi'
+'1Gi' -> 1073741824.000000
+
+Evaluating '1gi'
+'1gi' -> nan
+
+Evaluating '1GiFoo'
+'1GiFoo' -> nan
+
+Evaluating '1k+1k'
+'1k+1k' -> 2000.000000
+
+Evaluating '1Gi*3foo'
+'1Gi*3foo' -> nan
+
+Evaluating 'foo'
+'foo' -> nan
+
+Evaluating 'foo('
+'foo(' -> nan
+
+Evaluating 'foo()'
+'foo()' -> nan
+
+Evaluating 'foo)'
+'foo)' -> nan
+
+Evaluating 'sin'
+'sin' -> nan
+
+Evaluating 'sin('
+'sin(' -> nan
+
+Evaluating 'sin()'
+'sin()' -> nan
+
+Evaluating 'sin)'
+'sin)' -> nan
+
+Evaluating 'sin 10'
+'sin 10' -> nan
+
+Evaluating 'sin(1,2,3)'
+'sin(1,2,3)' -> nan
+
+Evaluating 'sin(1 )'
+'sin(1 )' -> 0.841471
+
+Evaluating '1'
+'1' -> 1.000000
+
+Evaluating '1foo'
+'1foo' -> nan
+
+Evaluating 'bar + PI + E + 100f*2 + foo'
+'bar + PI + E + 100f*2 + foo' -> nan
+
+Evaluating '13k + 12f - foo(1, 2)'
+'13k + 12f - foo(1, 2)' -> nan
+
+Evaluating '1gi'
+'1gi' -> nan
+
+Evaluating '1Gi'
+'1Gi' -> 1073741824.000000
+
+Evaluating 'st(0, 123)'
+'st(0, 123)' -> 123.000000
+
+Evaluating 'st(1, 123); ld(1)'
+'st(1, 123); ld(1)' -> 123.000000
+
+Evaluating 'lte(0, 1)'
+'lte(0, 1)' -> 1.000000
+
+Evaluating 'lte(1, 1)'
+'lte(1, 1)' -> 1.000000
+
+Evaluating 'lte(1, 0)'
+'lte(1, 0)' -> 0.000000
+
+Evaluating 'lt(0, 1)'
+'lt(0, 1)' -> 1.000000
+
+Evaluating 'lt(1, 1)'
+'lt(1, 1)' -> 0.000000
+
+Evaluating 'gt(1, 0)'
+'gt(1, 0)' -> 1.000000
+
+Evaluating 'gt(2, 7)'
+'gt(2, 7)' -> 0.000000
+
+Evaluating 'gte(122, 122)'
+'gte(122, 122)' -> 1.000000
+
+Evaluating 'st(0, 1); while(lte(ld(0), 100), st(1, ld(1)+ld(0));st(0, ld(0)+1)); ld(1)'
+'st(0, 1); while(lte(ld(0), 100), st(1, ld(1)+ld(0));st(0, ld(0)+1)); ld(1)' -> 5050.000000
+
+Evaluating 'st(1, 1); st(2, 2); st(0, 1); while(lte(ld(0),10), st(3, ld(1)+ld(2)); st(1, ld(2)); st(2, ld(3)); st(0, ld(0)+1)); ld(3)'
+'st(1, 1); st(2, 2); st(0, 1); while(lte(ld(0),10), st(3, ld(1)+ld(2)); st(1, ld(2)); st(2, ld(3)); st(0, ld(0)+1)); ld(3)' -> 233.000000
+
+Evaluating 'while(0, 10)'
+'while(0, 10)' -> nan
+
+Evaluating 'st(0, 1); while(lte(ld(0),100), st(1, ld(1)+ld(0)); st(0, ld(0)+1))'
+'st(0, 1); while(lte(ld(0),100), st(1, ld(1)+ld(0)); st(0, ld(0)+1))' -> 101.000000
+
+Evaluating 'isnan(1)'
+'isnan(1)' -> 0.000000
+
+Evaluating 'isnan(NAN)'
+'isnan(NAN)' -> 1.000000
+
+Evaluating 'isnan(INF)'
+'isnan(INF)' -> 0.000000
+
+Evaluating 'isinf(1)'
+'isinf(1)' -> 0.000000
+
+Evaluating 'isinf(NAN)'
+'isinf(NAN)' -> 0.000000
+
+Evaluating 'isinf(INF)'
+'isinf(INF)' -> 1.000000
+
+Evaluating 'floor(NAN)'
+'floor(NAN)' -> nan
+
+Evaluating 'floor(123.123)'
+'floor(123.123)' -> 123.000000
+
+Evaluating 'floor(-123.123)'
+'floor(-123.123)' -> -124.000000
+
+Evaluating 'trunc(123.123)'
+'trunc(123.123)' -> 123.000000
+
+Evaluating 'trunc(-123.123)'
+'trunc(-123.123)' -> -123.000000
+
+Evaluating 'ceil(123.123)'
+'ceil(123.123)' -> 124.000000
+
+Evaluating 'ceil(-123.123)'
+'ceil(-123.123)' -> -123.000000
+
+Evaluating 'sqrt(1764)'
+'sqrt(1764)' -> 42.000000
+
+Evaluating 'isnan(sqrt(-1))'
+'isnan(sqrt(-1))' -> 1.000000
+
+Evaluating 'not(1)'
+'not(1)' -> 0.000000
+
+Evaluating 'not(NAN)'
+'not(NAN)' -> 0.000000
+
+Evaluating 'not(0)'
+'not(0)' -> 1.000000
+
+Evaluating '6.0206dB'
+'6.0206dB' -> 2.000000
+
+Evaluating '-3.0103dB'
+'-3.0103dB' -> 0.707107
+
+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 'if(1, 1, 2)'
+'if(1, 1, 2)' -> 1.000000
+
+Evaluating 'if(0, 1, 2)'
+'if(0, 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 'ifnot(1, 1, 2)'
+'ifnot(1, 1, 2)' -> 2.000000
+
+Evaluating 'ifnot(0, 1, 2)'
+'ifnot(0, 1, 2)' -> 1.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
+
+Evaluating '7000000B*random(0)'
+'7000000B*random(0)' -> 0.003078
+
+Evaluating 'squish(2)'
+'squish(2)' -> 0.000335
+
+Evaluating 'gauss(0.1)'
+'gauss(0.1)' -> 0.396953
+
+Evaluating 'hypot(4,3)'
+'hypot(4,3)' -> 5.000000
+
+Evaluating 'gcd(30,55)*print(min(9,1))'
+'gcd(30,55)*print(min(9,1))' -> 5.000000
+
+Evaluating 'bitor(42, 12)'
+'bitor(42, 12)' -> 46.000000
+
+Evaluating 'bitand(42, 12)'
+'bitand(42, 12)' -> 8.000000
+
+Evaluating 'bitand(NAN, 1)'
+'bitand(NAN, 1)' -> nan
+
+12.700000 == 12.7
+0.931323 == 0.931322575
diff --git a/ffmpeg1/tests/ref/fate/ffmpeg-filter_complex b/ffmpeg1/tests/ref/fate/ffmpeg-filter_complex
new file mode 100644
index 0000000..54d318d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ffmpeg-filter_complex
@@ -0,0 +1,6 @@
+#tb 0: 1/5
+0, 0, 0, 1, 115200, 0x375ec573
+0, 1, 1, 1, 115200, 0x375ec573
+0, 2, 2, 1, 115200, 0x375ec573
+0, 3, 3, 1, 115200, 0x375ec573
+0, 4, 4, 1, 115200, 0x375ec573
diff --git a/ffmpeg1/tests/ref/fate/ffmpeg-lavfi b/ffmpeg1/tests/ref/fate/ffmpeg-lavfi
new file mode 100644
index 0000000..54d318d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ffmpeg-lavfi
@@ -0,0 +1,6 @@
+#tb 0: 1/5
+0, 0, 0, 1, 115200, 0x375ec573
+0, 1, 1, 1, 115200, 0x375ec573
+0, 2, 2, 1, 115200, 0x375ec573
+0, 3, 3, 1, 115200, 0x375ec573
+0, 4, 4, 1, 115200, 0x375ec573
diff --git a/ffmpeg1/tests/ref/fate/ffprobe_compact b/ffmpeg1/tests/ref/fate/ffprobe_compact
new file mode 100644
index 0000000..36d19ce
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ffprobe_compact
@@ -0,0 +1,32 @@
+packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=572|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=572|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=mono
+packet|codec_type=video|stream_index=1|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=2647|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=2647|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=video|stream_index=2|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=233068|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=233068|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=audio|stream_index=0|pts=1024|pts_time=0.023220|dts=1024|dts_time=0.023220|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=263073|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=1024|pkt_pts_time=0.023220|pkt_dts=1024|pkt_dts_time=0.023220|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=263073|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=mono
+packet|codec_type=video|stream_index=1|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=265151|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=265151|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=video|stream_index=2|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=495575|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=495575|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=audio|stream_index=0|pts=2048|pts_time=0.046440|dts=2048|dts_time=0.046440|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=525580|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=2048|pkt_pts_time=0.046440|pkt_dts=2048|pkt_dts_time=0.046440|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=525580|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=mono
+packet|codec_type=audio|stream_index=0|pts=3072|pts_time=0.069660|dts=3072|dts_time=0.069660|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=527651|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=3072|pkt_pts_time=0.069660|pkt_dts=3072|pkt_dts_time=0.069660|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=527651|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=mono
+packet|codec_type=video|stream_index=1|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=529729|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=529729|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=video|stream_index=2|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=760153|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=760153|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=audio|stream_index=0|pts=4096|pts_time=0.092880|dts=4096|dts_time=0.092880|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=790158|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=4096|pkt_pts_time=0.092880|pkt_dts=4096|pkt_dts_time=0.092880|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=790158|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=mono
+packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.116100|dts=5120|dts_time=0.116100|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=792229|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=5120|pkt_pts_time=0.116100|pkt_dts=5120|pkt_dts_time=0.116100|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=792229|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=mono
+packet|codec_type=video|stream_index=1|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=794307|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=794307|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=video|stream_index=2|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=1024731|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=1024731|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+stream|index=0|codec_name=pcm_s16le|profile=unknown|codec_type=audio|codec_time_base=1/44100|codec_tag_string=PSD[16]|codec_tag=0x10445350|sample_fmt=s16|sample_rate=44100|channels=1|bits_per_sample=16|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/44100|start_pts=0|start_time=0.000000|duration_ts=527406|duration=11.959320|bit_rate=705600|nb_frames=N/A|nb_read_frames=6|nb_read_packets=6|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:E=mc²
+stream|index=1|codec_name=rawvideo|profile=unknown|codec_type=video|codec_time_base=1/51200|codec_tag_string=RGB[24]|codec_tag=0x18424752|width=320|height=240|has_b_frames=0|sample_aspect_ratio=1:1|display_aspect_ratio=4:3|pix_fmt=rgb24|level=-99|timecode=N/A|id=N/A|r_frame_rate=25/1|avg_frame_rate=25/1|time_base=1/51200|start_pts=0|start_time=0.000000|duration_ts=612317|duration=11.959316|bit_rate=N/A|nb_frames=N/A|nb_read_frames=4|nb_read_packets=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:title=foobar|tag:duration_ts=field-and-tags-conflict-attempt
+stream|index=2|codec_name=rawvideo|profile=unknown|codec_type=video|codec_time_base=1/51200|codec_tag_string=RGB[24]|codec_tag=0x18424752|width=100|height=100|has_b_frames=0|sample_aspect_ratio=1:1|display_aspect_ratio=1:1|pix_fmt=rgb24|level=-99|timecode=N/A|id=N/A|r_frame_rate=25/1|avg_frame_rate=25/1|time_base=1/51200|start_pts=0|start_time=0.000000|duration_ts=612317|duration=11.959316|bit_rate=N/A|nb_frames=N/A|nb_read_frames=4|nb_read_packets=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0
+format|filename=tests/data/ffprobe-test.nut|nb_streams=3|format_name=nut|start_time=0.000000|duration=11.959320|size=1054812|bit_rate=705599|tag:title=ffprobe test file|tag:comment='A comment with CSV, XML & JSON special chars': <tag value="x">|tag:comment2=I ♥ Üñîçød€
diff --git a/ffmpeg1/tests/ref/fate/ffprobe_csv b/ffmpeg1/tests/ref/fate/ffprobe_csv
new file mode 100644
index 0000000..575eb76
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ffprobe_csv
@@ -0,0 +1,32 @@
+packet,audio,0,0,0.000000,0,0.000000,1024,0.023220,N/A,N/A,2048,572,K
+frame,audio,1,0,0.000000,0,0.000000,1024,0.023220,572,2048,s16,1024,1,mono
+packet,video,1,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,230400,2647,K
+frame,video,1,0,0.000000,0,0.000000,2048,0.040000,2647,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
+packet,video,2,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,30000,233068,K
+frame,video,1,0,0.000000,0,0.000000,2048,0.040000,233068,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
+packet,audio,0,1024,0.023220,1024,0.023220,1024,0.023220,N/A,N/A,2048,263073,K
+frame,audio,1,1024,0.023220,1024,0.023220,1024,0.023220,263073,2048,s16,1024,1,mono
+packet,video,1,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,230400,265151,K
+frame,video,1,2048,0.040000,2048,0.040000,2048,0.040000,265151,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
+packet,video,2,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,30000,495575,K
+frame,video,1,2048,0.040000,2048,0.040000,2048,0.040000,495575,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
+packet,audio,0,2048,0.046440,2048,0.046440,1024,0.023220,N/A,N/A,2048,525580,K
+frame,audio,1,2048,0.046440,2048,0.046440,1024,0.023220,525580,2048,s16,1024,1,mono
+packet,audio,0,3072,0.069660,3072,0.069660,1024,0.023220,N/A,N/A,2048,527651,K
+frame,audio,1,3072,0.069660,3072,0.069660,1024,0.023220,527651,2048,s16,1024,1,mono
+packet,video,1,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,230400,529729,K
+frame,video,1,4096,0.080000,4096,0.080000,2048,0.040000,529729,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
+packet,video,2,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,30000,760153,K
+frame,video,1,4096,0.080000,4096,0.080000,2048,0.040000,760153,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
+packet,audio,0,4096,0.092880,4096,0.092880,1024,0.023220,N/A,N/A,2048,790158,K
+frame,audio,1,4096,0.092880,4096,0.092880,1024,0.023220,790158,2048,s16,1024,1,mono
+packet,audio,0,5120,0.116100,5120,0.116100,1024,0.023220,N/A,N/A,2048,792229,K
+frame,audio,1,5120,0.116100,5120,0.116100,1024,0.023220,792229,2048,s16,1024,1,mono
+packet,video,1,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,230400,794307,K
+frame,video,1,6144,0.120000,6144,0.120000,2048,0.040000,794307,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
+packet,video,2,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,30000,1024731,K
+frame,video,1,6144,0.120000,6144,0.120000,2048,0.040000,1024731,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
+stream,0,pcm_s16le,unknown,audio,1/44100,PSD[16],0x10445350,s16,44100,1,16,N/A,0/0,0/0,1/44100,0,0.000000,527406,11.959320,705600,N/A,6,6,0,0,0,0,0,0,0,0,0,0,0,mc²
+stream,1,rawvideo,unknown,video,1/51200,RGB[24],0x18424752,320,240,0,1:1,4:3,rgb24,-99,N/A,N/A,25/1,25/1,1/51200,0,0.000000,612317,11.959316,N/A,N/A,4,4,0,0,0,0,0,0,0,0,0,0,0,foobar,field-and-tags-conflict-attempt
+stream,2,rawvideo,unknown,video,1/51200,RGB[24],0x18424752,100,100,0,1:1,1:1,rgb24,-99,N/A,N/A,25/1,25/1,1/51200,0,0.000000,612317,11.959316,N/A,N/A,4,4,0,0,0,0,0,0,0,0,0,0,0
+format,tests/data/ffprobe-test.nut,3,nut,0.000000,11.959320,1054812,705599,ffprobe test file,"'A comment with CSV, XML & JSON special chars': <tag value=""x"">",I ♥ Üñîçød€
diff --git a/ffmpeg1/tests/ref/fate/ffprobe_default b/ffmpeg1/tests/ref/fate/ffprobe_default
new file mode 100644
index 0000000..26922c1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ffprobe_default
@@ -0,0 +1,613 @@
+[PACKET]
+codec_type=audio
+stream_index=0
+pts=0
+pts_time=0.000000
+dts=0
+dts_time=0.000000
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=572
+flags=K
+[/PACKET]
+[FRAME]
+media_type=audio
+key_frame=1
+pkt_pts=0
+pkt_pts_time=0.000000
+pkt_dts=0
+pkt_dts_time=0.000000
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=572
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+[/FRAME]
+[PACKET]
+codec_type=video
+stream_index=1
+pts=0
+pts_time=0.000000
+dts=0
+dts_time=0.000000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=230400
+pos=2647
+flags=K
+[/PACKET]
+[FRAME]
+media_type=video
+key_frame=1
+pkt_pts=0
+pkt_pts_time=0.000000
+pkt_dts=0
+pkt_dts_time=0.000000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=2647
+pkt_size=N/A
+width=320
+height=240
+pix_fmt=rgb24
+sample_aspect_ratio=1:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+[/FRAME]
+[PACKET]
+codec_type=video
+stream_index=2
+pts=0
+pts_time=0.000000
+dts=0
+dts_time=0.000000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=30000
+pos=233068
+flags=K
+[/PACKET]
+[FRAME]
+media_type=video
+key_frame=1
+pkt_pts=0
+pkt_pts_time=0.000000
+pkt_dts=0
+pkt_dts_time=0.000000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=233068
+pkt_size=N/A
+width=100
+height=100
+pix_fmt=rgb24
+sample_aspect_ratio=1:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+[/FRAME]
+[PACKET]
+codec_type=audio
+stream_index=0
+pts=1024
+pts_time=0.023220
+dts=1024
+dts_time=0.023220
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=263073
+flags=K
+[/PACKET]
+[FRAME]
+media_type=audio
+key_frame=1
+pkt_pts=1024
+pkt_pts_time=0.023220
+pkt_dts=1024
+pkt_dts_time=0.023220
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=263073
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+[/FRAME]
+[PACKET]
+codec_type=video
+stream_index=1
+pts=2048
+pts_time=0.040000
+dts=2048
+dts_time=0.040000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=230400
+pos=265151
+flags=K
+[/PACKET]
+[FRAME]
+media_type=video
+key_frame=1
+pkt_pts=2048
+pkt_pts_time=0.040000
+pkt_dts=2048
+pkt_dts_time=0.040000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=265151
+pkt_size=N/A
+width=320
+height=240
+pix_fmt=rgb24
+sample_aspect_ratio=1:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+[/FRAME]
+[PACKET]
+codec_type=video
+stream_index=2
+pts=2048
+pts_time=0.040000
+dts=2048
+dts_time=0.040000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=30000
+pos=495575
+flags=K
+[/PACKET]
+[FRAME]
+media_type=video
+key_frame=1
+pkt_pts=2048
+pkt_pts_time=0.040000
+pkt_dts=2048
+pkt_dts_time=0.040000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=495575
+pkt_size=N/A
+width=100
+height=100
+pix_fmt=rgb24
+sample_aspect_ratio=1:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+[/FRAME]
+[PACKET]
+codec_type=audio
+stream_index=0
+pts=2048
+pts_time=0.046440
+dts=2048
+dts_time=0.046440
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=525580
+flags=K
+[/PACKET]
+[FRAME]
+media_type=audio
+key_frame=1
+pkt_pts=2048
+pkt_pts_time=0.046440
+pkt_dts=2048
+pkt_dts_time=0.046440
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=525580
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+[/FRAME]
+[PACKET]
+codec_type=audio
+stream_index=0
+pts=3072
+pts_time=0.069660
+dts=3072
+dts_time=0.069660
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=527651
+flags=K
+[/PACKET]
+[FRAME]
+media_type=audio
+key_frame=1
+pkt_pts=3072
+pkt_pts_time=0.069660
+pkt_dts=3072
+pkt_dts_time=0.069660
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=527651
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+[/FRAME]
+[PACKET]
+codec_type=video
+stream_index=1
+pts=4096
+pts_time=0.080000
+dts=4096
+dts_time=0.080000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=230400
+pos=529729
+flags=K
+[/PACKET]
+[FRAME]
+media_type=video
+key_frame=1
+pkt_pts=4096
+pkt_pts_time=0.080000
+pkt_dts=4096
+pkt_dts_time=0.080000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=529729
+pkt_size=N/A
+width=320
+height=240
+pix_fmt=rgb24
+sample_aspect_ratio=1:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+[/FRAME]
+[PACKET]
+codec_type=video
+stream_index=2
+pts=4096
+pts_time=0.080000
+dts=4096
+dts_time=0.080000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=30000
+pos=760153
+flags=K
+[/PACKET]
+[FRAME]
+media_type=video
+key_frame=1
+pkt_pts=4096
+pkt_pts_time=0.080000
+pkt_dts=4096
+pkt_dts_time=0.080000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=760153
+pkt_size=N/A
+width=100
+height=100
+pix_fmt=rgb24
+sample_aspect_ratio=1:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+[/FRAME]
+[PACKET]
+codec_type=audio
+stream_index=0
+pts=4096
+pts_time=0.092880
+dts=4096
+dts_time=0.092880
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=790158
+flags=K
+[/PACKET]
+[FRAME]
+media_type=audio
+key_frame=1
+pkt_pts=4096
+pkt_pts_time=0.092880
+pkt_dts=4096
+pkt_dts_time=0.092880
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=790158
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+[/FRAME]
+[PACKET]
+codec_type=audio
+stream_index=0
+pts=5120
+pts_time=0.116100
+dts=5120
+dts_time=0.116100
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=792229
+flags=K
+[/PACKET]
+[FRAME]
+media_type=audio
+key_frame=1
+pkt_pts=5120
+pkt_pts_time=0.116100
+pkt_dts=5120
+pkt_dts_time=0.116100
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=792229
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+[/FRAME]
+[PACKET]
+codec_type=video
+stream_index=1
+pts=6144
+pts_time=0.120000
+dts=6144
+dts_time=0.120000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=230400
+pos=794307
+flags=K
+[/PACKET]
+[FRAME]
+media_type=video
+key_frame=1
+pkt_pts=6144
+pkt_pts_time=0.120000
+pkt_dts=6144
+pkt_dts_time=0.120000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=794307
+pkt_size=N/A
+width=320
+height=240
+pix_fmt=rgb24
+sample_aspect_ratio=1:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+[/FRAME]
+[PACKET]
+codec_type=video
+stream_index=2
+pts=6144
+pts_time=0.120000
+dts=6144
+dts_time=0.120000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=30000
+pos=1024731
+flags=K
+[/PACKET]
+[FRAME]
+media_type=video
+key_frame=1
+pkt_pts=6144
+pkt_pts_time=0.120000
+pkt_dts=6144
+pkt_dts_time=0.120000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=1024731
+pkt_size=N/A
+width=100
+height=100
+pix_fmt=rgb24
+sample_aspect_ratio=1:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+[/FRAME]
+[STREAM]
+index=0
+codec_name=pcm_s16le
+profile=unknown
+codec_type=audio
+codec_time_base=1/44100
+codec_tag_string=PSD[16]
+codec_tag=0x10445350
+sample_fmt=s16
+sample_rate=44100
+channels=1
+bits_per_sample=16
+id=N/A
+r_frame_rate=0/0
+avg_frame_rate=0/0
+time_base=1/44100
+start_pts=0
+start_time=0.000000
+duration_ts=527406
+duration=11.959320
+bit_rate=705600
+nb_frames=N/A
+nb_read_frames=6
+nb_read_packets=6
+DISPOSITION:default=0
+DISPOSITION:dub=0
+DISPOSITION:original=0
+DISPOSITION:comment=0
+DISPOSITION:lyrics=0
+DISPOSITION:karaoke=0
+DISPOSITION:forced=0
+DISPOSITION:hearing_impaired=0
+DISPOSITION:visual_impaired=0
+DISPOSITION:clean_effects=0
+DISPOSITION:attached_pic=0
+TAG:E=mc²
+[/STREAM]
+[STREAM]
+index=1
+codec_name=rawvideo
+profile=unknown
+codec_type=video
+codec_time_base=1/51200
+codec_tag_string=RGB[24]
+codec_tag=0x18424752
+width=320
+height=240
+has_b_frames=0
+sample_aspect_ratio=1:1
+display_aspect_ratio=4:3
+pix_fmt=rgb24
+level=-99
+timecode=N/A
+id=N/A
+r_frame_rate=25/1
+avg_frame_rate=25/1
+time_base=1/51200
+start_pts=0
+start_time=0.000000
+duration_ts=612317
+duration=11.959316
+bit_rate=N/A
+nb_frames=N/A
+nb_read_frames=4
+nb_read_packets=4
+DISPOSITION:default=0
+DISPOSITION:dub=0
+DISPOSITION:original=0
+DISPOSITION:comment=0
+DISPOSITION:lyrics=0
+DISPOSITION:karaoke=0
+DISPOSITION:forced=0
+DISPOSITION:hearing_impaired=0
+DISPOSITION:visual_impaired=0
+DISPOSITION:clean_effects=0
+DISPOSITION:attached_pic=0
+TAG:title=foobar
+TAG:duration_ts=field-and-tags-conflict-attempt
+[/STREAM]
+[STREAM]
+index=2
+codec_name=rawvideo
+profile=unknown
+codec_type=video
+codec_time_base=1/51200
+codec_tag_string=RGB[24]
+codec_tag=0x18424752
+width=100
+height=100
+has_b_frames=0
+sample_aspect_ratio=1:1
+display_aspect_ratio=1:1
+pix_fmt=rgb24
+level=-99
+timecode=N/A
+id=N/A
+r_frame_rate=25/1
+avg_frame_rate=25/1
+time_base=1/51200
+start_pts=0
+start_time=0.000000
+duration_ts=612317
+duration=11.959316
+bit_rate=N/A
+nb_frames=N/A
+nb_read_frames=4
+nb_read_packets=4
+DISPOSITION:default=0
+DISPOSITION:dub=0
+DISPOSITION:original=0
+DISPOSITION:comment=0
+DISPOSITION:lyrics=0
+DISPOSITION:karaoke=0
+DISPOSITION:forced=0
+DISPOSITION:hearing_impaired=0
+DISPOSITION:visual_impaired=0
+DISPOSITION:clean_effects=0
+DISPOSITION:attached_pic=0
+[/STREAM]
+[FORMAT]
+filename=tests/data/ffprobe-test.nut
+nb_streams=3
+format_name=nut
+start_time=0.000000
+duration=11.959320
+size=1054812
+bit_rate=705599
+TAG:title=ffprobe test file
+TAG:comment='A comment with CSV, XML & JSON special chars': <tag value="x">
+TAG:comment2=I ♥ Üñîçød€
+[/FORMAT]
diff --git a/ffmpeg1/tests/ref/fate/ffprobe_flat b/ffmpeg1/tests/ref/fate/ffprobe_flat
new file mode 100644
index 0000000..d62127a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ffprobe_flat
@@ -0,0 +1,549 @@
+packets_and_frames.packet.0.codec_type="audio"
+packets_and_frames.packet.0.stream_index=0
+packets_and_frames.packet.0.pts=0
+packets_and_frames.packet.0.pts_time="0.000000"
+packets_and_frames.packet.0.dts=0
+packets_and_frames.packet.0.dts_time="0.000000"
+packets_and_frames.packet.0.duration=1024
+packets_and_frames.packet.0.duration_time="0.023220"
+packets_and_frames.packet.0.convergence_duration="N/A"
+packets_and_frames.packet.0.convergence_duration_time="N/A"
+packets_and_frames.packet.0.size="2048"
+packets_and_frames.packet.0.pos="572"
+packets_and_frames.packet.0.flags="K"
+packets_and_frames.frame.0.media_type="audio"
+packets_and_frames.frame.0.key_frame=1
+packets_and_frames.frame.0.pkt_pts=0
+packets_and_frames.frame.0.pkt_pts_time="0.000000"
+packets_and_frames.frame.0.pkt_dts=0
+packets_and_frames.frame.0.pkt_dts_time="0.000000"
+packets_and_frames.frame.0.pkt_duration=1024
+packets_and_frames.frame.0.pkt_duration_time="0.023220"
+packets_and_frames.frame.0.pkt_pos="572"
+packets_and_frames.frame.0.pkt_size="2048"
+packets_and_frames.frame.0.sample_fmt="s16"
+packets_and_frames.frame.0.nb_samples=1024
+packets_and_frames.frame.0.channels=1
+packets_and_frames.frame.0.channel_layout="mono"
+packets_and_frames.packet.1.codec_type="video"
+packets_and_frames.packet.1.stream_index=1
+packets_and_frames.packet.1.pts=0
+packets_and_frames.packet.1.pts_time="0.000000"
+packets_and_frames.packet.1.dts=0
+packets_and_frames.packet.1.dts_time="0.000000"
+packets_and_frames.packet.1.duration=2048
+packets_and_frames.packet.1.duration_time="0.040000"
+packets_and_frames.packet.1.convergence_duration="N/A"
+packets_and_frames.packet.1.convergence_duration_time="N/A"
+packets_and_frames.packet.1.size="230400"
+packets_and_frames.packet.1.pos="2647"
+packets_and_frames.packet.1.flags="K"
+packets_and_frames.frame.1.media_type="video"
+packets_and_frames.frame.1.key_frame=1
+packets_and_frames.frame.1.pkt_pts=0
+packets_and_frames.frame.1.pkt_pts_time="0.000000"
+packets_and_frames.frame.1.pkt_dts=0
+packets_and_frames.frame.1.pkt_dts_time="0.000000"
+packets_and_frames.frame.1.pkt_duration=2048
+packets_and_frames.frame.1.pkt_duration_time="0.040000"
+packets_and_frames.frame.1.pkt_pos="2647"
+packets_and_frames.frame.1.pkt_size="N/A"
+packets_and_frames.frame.1.width=320
+packets_and_frames.frame.1.height=240
+packets_and_frames.frame.1.pix_fmt="rgb24"
+packets_and_frames.frame.1.sample_aspect_ratio="1:1"
+packets_and_frames.frame.1.pict_type="I"
+packets_and_frames.frame.1.coded_picture_number=0
+packets_and_frames.frame.1.display_picture_number=0
+packets_and_frames.frame.1.interlaced_frame=0
+packets_and_frames.frame.1.top_field_first=0
+packets_and_frames.frame.1.repeat_pict=0
+packets_and_frames.packet.2.codec_type="video"
+packets_and_frames.packet.2.stream_index=2
+packets_and_frames.packet.2.pts=0
+packets_and_frames.packet.2.pts_time="0.000000"
+packets_and_frames.packet.2.dts=0
+packets_and_frames.packet.2.dts_time="0.000000"
+packets_and_frames.packet.2.duration=2048
+packets_and_frames.packet.2.duration_time="0.040000"
+packets_and_frames.packet.2.convergence_duration="N/A"
+packets_and_frames.packet.2.convergence_duration_time="N/A"
+packets_and_frames.packet.2.size="30000"
+packets_and_frames.packet.2.pos="233068"
+packets_and_frames.packet.2.flags="K"
+packets_and_frames.frame.2.media_type="video"
+packets_and_frames.frame.2.key_frame=1
+packets_and_frames.frame.2.pkt_pts=0
+packets_and_frames.frame.2.pkt_pts_time="0.000000"
+packets_and_frames.frame.2.pkt_dts=0
+packets_and_frames.frame.2.pkt_dts_time="0.000000"
+packets_and_frames.frame.2.pkt_duration=2048
+packets_and_frames.frame.2.pkt_duration_time="0.040000"
+packets_and_frames.frame.2.pkt_pos="233068"
+packets_and_frames.frame.2.pkt_size="N/A"
+packets_and_frames.frame.2.width=100
+packets_and_frames.frame.2.height=100
+packets_and_frames.frame.2.pix_fmt="rgb24"
+packets_and_frames.frame.2.sample_aspect_ratio="1:1"
+packets_and_frames.frame.2.pict_type="I"
+packets_and_frames.frame.2.coded_picture_number=0
+packets_and_frames.frame.2.display_picture_number=0
+packets_and_frames.frame.2.interlaced_frame=0
+packets_and_frames.frame.2.top_field_first=0
+packets_and_frames.frame.2.repeat_pict=0
+packets_and_frames.packet.3.codec_type="audio"
+packets_and_frames.packet.3.stream_index=0
+packets_and_frames.packet.3.pts=1024
+packets_and_frames.packet.3.pts_time="0.023220"
+packets_and_frames.packet.3.dts=1024
+packets_and_frames.packet.3.dts_time="0.023220"
+packets_and_frames.packet.3.duration=1024
+packets_and_frames.packet.3.duration_time="0.023220"
+packets_and_frames.packet.3.convergence_duration="N/A"
+packets_and_frames.packet.3.convergence_duration_time="N/A"
+packets_and_frames.packet.3.size="2048"
+packets_and_frames.packet.3.pos="263073"
+packets_and_frames.packet.3.flags="K"
+packets_and_frames.frame.3.media_type="audio"
+packets_and_frames.frame.3.key_frame=1
+packets_and_frames.frame.3.pkt_pts=1024
+packets_and_frames.frame.3.pkt_pts_time="0.023220"
+packets_and_frames.frame.3.pkt_dts=1024
+packets_and_frames.frame.3.pkt_dts_time="0.023220"
+packets_and_frames.frame.3.pkt_duration=1024
+packets_and_frames.frame.3.pkt_duration_time="0.023220"
+packets_and_frames.frame.3.pkt_pos="263073"
+packets_and_frames.frame.3.pkt_size="2048"
+packets_and_frames.frame.3.sample_fmt="s16"
+packets_and_frames.frame.3.nb_samples=1024
+packets_and_frames.frame.3.channels=1
+packets_and_frames.frame.3.channel_layout="mono"
+packets_and_frames.packet.4.codec_type="video"
+packets_and_frames.packet.4.stream_index=1
+packets_and_frames.packet.4.pts=2048
+packets_and_frames.packet.4.pts_time="0.040000"
+packets_and_frames.packet.4.dts=2048
+packets_and_frames.packet.4.dts_time="0.040000"
+packets_and_frames.packet.4.duration=2048
+packets_and_frames.packet.4.duration_time="0.040000"
+packets_and_frames.packet.4.convergence_duration="N/A"
+packets_and_frames.packet.4.convergence_duration_time="N/A"
+packets_and_frames.packet.4.size="230400"
+packets_and_frames.packet.4.pos="265151"
+packets_and_frames.packet.4.flags="K"
+packets_and_frames.frame.4.media_type="video"
+packets_and_frames.frame.4.key_frame=1
+packets_and_frames.frame.4.pkt_pts=2048
+packets_and_frames.frame.4.pkt_pts_time="0.040000"
+packets_and_frames.frame.4.pkt_dts=2048
+packets_and_frames.frame.4.pkt_dts_time="0.040000"
+packets_and_frames.frame.4.pkt_duration=2048
+packets_and_frames.frame.4.pkt_duration_time="0.040000"
+packets_and_frames.frame.4.pkt_pos="265151"
+packets_and_frames.frame.4.pkt_size="N/A"
+packets_and_frames.frame.4.width=320
+packets_and_frames.frame.4.height=240
+packets_and_frames.frame.4.pix_fmt="rgb24"
+packets_and_frames.frame.4.sample_aspect_ratio="1:1"
+packets_and_frames.frame.4.pict_type="I"
+packets_and_frames.frame.4.coded_picture_number=0
+packets_and_frames.frame.4.display_picture_number=0
+packets_and_frames.frame.4.interlaced_frame=0
+packets_and_frames.frame.4.top_field_first=0
+packets_and_frames.frame.4.repeat_pict=0
+packets_and_frames.packet.5.codec_type="video"
+packets_and_frames.packet.5.stream_index=2
+packets_and_frames.packet.5.pts=2048
+packets_and_frames.packet.5.pts_time="0.040000"
+packets_and_frames.packet.5.dts=2048
+packets_and_frames.packet.5.dts_time="0.040000"
+packets_and_frames.packet.5.duration=2048
+packets_and_frames.packet.5.duration_time="0.040000"
+packets_and_frames.packet.5.convergence_duration="N/A"
+packets_and_frames.packet.5.convergence_duration_time="N/A"
+packets_and_frames.packet.5.size="30000"
+packets_and_frames.packet.5.pos="495575"
+packets_and_frames.packet.5.flags="K"
+packets_and_frames.frame.5.media_type="video"
+packets_and_frames.frame.5.key_frame=1
+packets_and_frames.frame.5.pkt_pts=2048
+packets_and_frames.frame.5.pkt_pts_time="0.040000"
+packets_and_frames.frame.5.pkt_dts=2048
+packets_and_frames.frame.5.pkt_dts_time="0.040000"
+packets_and_frames.frame.5.pkt_duration=2048
+packets_and_frames.frame.5.pkt_duration_time="0.040000"
+packets_and_frames.frame.5.pkt_pos="495575"
+packets_and_frames.frame.5.pkt_size="N/A"
+packets_and_frames.frame.5.width=100
+packets_and_frames.frame.5.height=100
+packets_and_frames.frame.5.pix_fmt="rgb24"
+packets_and_frames.frame.5.sample_aspect_ratio="1:1"
+packets_and_frames.frame.5.pict_type="I"
+packets_and_frames.frame.5.coded_picture_number=0
+packets_and_frames.frame.5.display_picture_number=0
+packets_and_frames.frame.5.interlaced_frame=0
+packets_and_frames.frame.5.top_field_first=0
+packets_and_frames.frame.5.repeat_pict=0
+packets_and_frames.packet.6.codec_type="audio"
+packets_and_frames.packet.6.stream_index=0
+packets_and_frames.packet.6.pts=2048
+packets_and_frames.packet.6.pts_time="0.046440"
+packets_and_frames.packet.6.dts=2048
+packets_and_frames.packet.6.dts_time="0.046440"
+packets_and_frames.packet.6.duration=1024
+packets_and_frames.packet.6.duration_time="0.023220"
+packets_and_frames.packet.6.convergence_duration="N/A"
+packets_and_frames.packet.6.convergence_duration_time="N/A"
+packets_and_frames.packet.6.size="2048"
+packets_and_frames.packet.6.pos="525580"
+packets_and_frames.packet.6.flags="K"
+packets_and_frames.frame.6.media_type="audio"
+packets_and_frames.frame.6.key_frame=1
+packets_and_frames.frame.6.pkt_pts=2048
+packets_and_frames.frame.6.pkt_pts_time="0.046440"
+packets_and_frames.frame.6.pkt_dts=2048
+packets_and_frames.frame.6.pkt_dts_time="0.046440"
+packets_and_frames.frame.6.pkt_duration=1024
+packets_and_frames.frame.6.pkt_duration_time="0.023220"
+packets_and_frames.frame.6.pkt_pos="525580"
+packets_and_frames.frame.6.pkt_size="2048"
+packets_and_frames.frame.6.sample_fmt="s16"
+packets_and_frames.frame.6.nb_samples=1024
+packets_and_frames.frame.6.channels=1
+packets_and_frames.frame.6.channel_layout="mono"
+packets_and_frames.packet.7.codec_type="audio"
+packets_and_frames.packet.7.stream_index=0
+packets_and_frames.packet.7.pts=3072
+packets_and_frames.packet.7.pts_time="0.069660"
+packets_and_frames.packet.7.dts=3072
+packets_and_frames.packet.7.dts_time="0.069660"
+packets_and_frames.packet.7.duration=1024
+packets_and_frames.packet.7.duration_time="0.023220"
+packets_and_frames.packet.7.convergence_duration="N/A"
+packets_and_frames.packet.7.convergence_duration_time="N/A"
+packets_and_frames.packet.7.size="2048"
+packets_and_frames.packet.7.pos="527651"
+packets_and_frames.packet.7.flags="K"
+packets_and_frames.frame.7.media_type="audio"
+packets_and_frames.frame.7.key_frame=1
+packets_and_frames.frame.7.pkt_pts=3072
+packets_and_frames.frame.7.pkt_pts_time="0.069660"
+packets_and_frames.frame.7.pkt_dts=3072
+packets_and_frames.frame.7.pkt_dts_time="0.069660"
+packets_and_frames.frame.7.pkt_duration=1024
+packets_and_frames.frame.7.pkt_duration_time="0.023220"
+packets_and_frames.frame.7.pkt_pos="527651"
+packets_and_frames.frame.7.pkt_size="2048"
+packets_and_frames.frame.7.sample_fmt="s16"
+packets_and_frames.frame.7.nb_samples=1024
+packets_and_frames.frame.7.channels=1
+packets_and_frames.frame.7.channel_layout="mono"
+packets_and_frames.packet.8.codec_type="video"
+packets_and_frames.packet.8.stream_index=1
+packets_and_frames.packet.8.pts=4096
+packets_and_frames.packet.8.pts_time="0.080000"
+packets_and_frames.packet.8.dts=4096
+packets_and_frames.packet.8.dts_time="0.080000"
+packets_and_frames.packet.8.duration=2048
+packets_and_frames.packet.8.duration_time="0.040000"
+packets_and_frames.packet.8.convergence_duration="N/A"
+packets_and_frames.packet.8.convergence_duration_time="N/A"
+packets_and_frames.packet.8.size="230400"
+packets_and_frames.packet.8.pos="529729"
+packets_and_frames.packet.8.flags="K"
+packets_and_frames.frame.8.media_type="video"
+packets_and_frames.frame.8.key_frame=1
+packets_and_frames.frame.8.pkt_pts=4096
+packets_and_frames.frame.8.pkt_pts_time="0.080000"
+packets_and_frames.frame.8.pkt_dts=4096
+packets_and_frames.frame.8.pkt_dts_time="0.080000"
+packets_and_frames.frame.8.pkt_duration=2048
+packets_and_frames.frame.8.pkt_duration_time="0.040000"
+packets_and_frames.frame.8.pkt_pos="529729"
+packets_and_frames.frame.8.pkt_size="N/A"
+packets_and_frames.frame.8.width=320
+packets_and_frames.frame.8.height=240
+packets_and_frames.frame.8.pix_fmt="rgb24"
+packets_and_frames.frame.8.sample_aspect_ratio="1:1"
+packets_and_frames.frame.8.pict_type="I"
+packets_and_frames.frame.8.coded_picture_number=0
+packets_and_frames.frame.8.display_picture_number=0
+packets_and_frames.frame.8.interlaced_frame=0
+packets_and_frames.frame.8.top_field_first=0
+packets_and_frames.frame.8.repeat_pict=0
+packets_and_frames.packet.9.codec_type="video"
+packets_and_frames.packet.9.stream_index=2
+packets_and_frames.packet.9.pts=4096
+packets_and_frames.packet.9.pts_time="0.080000"
+packets_and_frames.packet.9.dts=4096
+packets_and_frames.packet.9.dts_time="0.080000"
+packets_and_frames.packet.9.duration=2048
+packets_and_frames.packet.9.duration_time="0.040000"
+packets_and_frames.packet.9.convergence_duration="N/A"
+packets_and_frames.packet.9.convergence_duration_time="N/A"
+packets_and_frames.packet.9.size="30000"
+packets_and_frames.packet.9.pos="760153"
+packets_and_frames.packet.9.flags="K"
+packets_and_frames.frame.9.media_type="video"
+packets_and_frames.frame.9.key_frame=1
+packets_and_frames.frame.9.pkt_pts=4096
+packets_and_frames.frame.9.pkt_pts_time="0.080000"
+packets_and_frames.frame.9.pkt_dts=4096
+packets_and_frames.frame.9.pkt_dts_time="0.080000"
+packets_and_frames.frame.9.pkt_duration=2048
+packets_and_frames.frame.9.pkt_duration_time="0.040000"
+packets_and_frames.frame.9.pkt_pos="760153"
+packets_and_frames.frame.9.pkt_size="N/A"
+packets_and_frames.frame.9.width=100
+packets_and_frames.frame.9.height=100
+packets_and_frames.frame.9.pix_fmt="rgb24"
+packets_and_frames.frame.9.sample_aspect_ratio="1:1"
+packets_and_frames.frame.9.pict_type="I"
+packets_and_frames.frame.9.coded_picture_number=0
+packets_and_frames.frame.9.display_picture_number=0
+packets_and_frames.frame.9.interlaced_frame=0
+packets_and_frames.frame.9.top_field_first=0
+packets_and_frames.frame.9.repeat_pict=0
+packets_and_frames.packet.10.codec_type="audio"
+packets_and_frames.packet.10.stream_index=0
+packets_and_frames.packet.10.pts=4096
+packets_and_frames.packet.10.pts_time="0.092880"
+packets_and_frames.packet.10.dts=4096
+packets_and_frames.packet.10.dts_time="0.092880"
+packets_and_frames.packet.10.duration=1024
+packets_and_frames.packet.10.duration_time="0.023220"
+packets_and_frames.packet.10.convergence_duration="N/A"
+packets_and_frames.packet.10.convergence_duration_time="N/A"
+packets_and_frames.packet.10.size="2048"
+packets_and_frames.packet.10.pos="790158"
+packets_and_frames.packet.10.flags="K"
+packets_and_frames.frame.10.media_type="audio"
+packets_and_frames.frame.10.key_frame=1
+packets_and_frames.frame.10.pkt_pts=4096
+packets_and_frames.frame.10.pkt_pts_time="0.092880"
+packets_and_frames.frame.10.pkt_dts=4096
+packets_and_frames.frame.10.pkt_dts_time="0.092880"
+packets_and_frames.frame.10.pkt_duration=1024
+packets_and_frames.frame.10.pkt_duration_time="0.023220"
+packets_and_frames.frame.10.pkt_pos="790158"
+packets_and_frames.frame.10.pkt_size="2048"
+packets_and_frames.frame.10.sample_fmt="s16"
+packets_and_frames.frame.10.nb_samples=1024
+packets_and_frames.frame.10.channels=1
+packets_and_frames.frame.10.channel_layout="mono"
+packets_and_frames.packet.11.codec_type="audio"
+packets_and_frames.packet.11.stream_index=0
+packets_and_frames.packet.11.pts=5120
+packets_and_frames.packet.11.pts_time="0.116100"
+packets_and_frames.packet.11.dts=5120
+packets_and_frames.packet.11.dts_time="0.116100"
+packets_and_frames.packet.11.duration=1024
+packets_and_frames.packet.11.duration_time="0.023220"
+packets_and_frames.packet.11.convergence_duration="N/A"
+packets_and_frames.packet.11.convergence_duration_time="N/A"
+packets_and_frames.packet.11.size="2048"
+packets_and_frames.packet.11.pos="792229"
+packets_and_frames.packet.11.flags="K"
+packets_and_frames.frame.11.media_type="audio"
+packets_and_frames.frame.11.key_frame=1
+packets_and_frames.frame.11.pkt_pts=5120
+packets_and_frames.frame.11.pkt_pts_time="0.116100"
+packets_and_frames.frame.11.pkt_dts=5120
+packets_and_frames.frame.11.pkt_dts_time="0.116100"
+packets_and_frames.frame.11.pkt_duration=1024
+packets_and_frames.frame.11.pkt_duration_time="0.023220"
+packets_and_frames.frame.11.pkt_pos="792229"
+packets_and_frames.frame.11.pkt_size="2048"
+packets_and_frames.frame.11.sample_fmt="s16"
+packets_and_frames.frame.11.nb_samples=1024
+packets_and_frames.frame.11.channels=1
+packets_and_frames.frame.11.channel_layout="mono"
+packets_and_frames.packet.12.codec_type="video"
+packets_and_frames.packet.12.stream_index=1
+packets_and_frames.packet.12.pts=6144
+packets_and_frames.packet.12.pts_time="0.120000"
+packets_and_frames.packet.12.dts=6144
+packets_and_frames.packet.12.dts_time="0.120000"
+packets_and_frames.packet.12.duration=2048
+packets_and_frames.packet.12.duration_time="0.040000"
+packets_and_frames.packet.12.convergence_duration="N/A"
+packets_and_frames.packet.12.convergence_duration_time="N/A"
+packets_and_frames.packet.12.size="230400"
+packets_and_frames.packet.12.pos="794307"
+packets_and_frames.packet.12.flags="K"
+packets_and_frames.frame.12.media_type="video"
+packets_and_frames.frame.12.key_frame=1
+packets_and_frames.frame.12.pkt_pts=6144
+packets_and_frames.frame.12.pkt_pts_time="0.120000"
+packets_and_frames.frame.12.pkt_dts=6144
+packets_and_frames.frame.12.pkt_dts_time="0.120000"
+packets_and_frames.frame.12.pkt_duration=2048
+packets_and_frames.frame.12.pkt_duration_time="0.040000"
+packets_and_frames.frame.12.pkt_pos="794307"
+packets_and_frames.frame.12.pkt_size="N/A"
+packets_and_frames.frame.12.width=320
+packets_and_frames.frame.12.height=240
+packets_and_frames.frame.12.pix_fmt="rgb24"
+packets_and_frames.frame.12.sample_aspect_ratio="1:1"
+packets_and_frames.frame.12.pict_type="I"
+packets_and_frames.frame.12.coded_picture_number=0
+packets_and_frames.frame.12.display_picture_number=0
+packets_and_frames.frame.12.interlaced_frame=0
+packets_and_frames.frame.12.top_field_first=0
+packets_and_frames.frame.12.repeat_pict=0
+packets_and_frames.packet.13.codec_type="video"
+packets_and_frames.packet.13.stream_index=2
+packets_and_frames.packet.13.pts=6144
+packets_and_frames.packet.13.pts_time="0.120000"
+packets_and_frames.packet.13.dts=6144
+packets_and_frames.packet.13.dts_time="0.120000"
+packets_and_frames.packet.13.duration=2048
+packets_and_frames.packet.13.duration_time="0.040000"
+packets_and_frames.packet.13.convergence_duration="N/A"
+packets_and_frames.packet.13.convergence_duration_time="N/A"
+packets_and_frames.packet.13.size="30000"
+packets_and_frames.packet.13.pos="1024731"
+packets_and_frames.packet.13.flags="K"
+packets_and_frames.frame.13.media_type="video"
+packets_and_frames.frame.13.key_frame=1
+packets_and_frames.frame.13.pkt_pts=6144
+packets_and_frames.frame.13.pkt_pts_time="0.120000"
+packets_and_frames.frame.13.pkt_dts=6144
+packets_and_frames.frame.13.pkt_dts_time="0.120000"
+packets_and_frames.frame.13.pkt_duration=2048
+packets_and_frames.frame.13.pkt_duration_time="0.040000"
+packets_and_frames.frame.13.pkt_pos="1024731"
+packets_and_frames.frame.13.pkt_size="N/A"
+packets_and_frames.frame.13.width=100
+packets_and_frames.frame.13.height=100
+packets_and_frames.frame.13.pix_fmt="rgb24"
+packets_and_frames.frame.13.sample_aspect_ratio="1:1"
+packets_and_frames.frame.13.pict_type="I"
+packets_and_frames.frame.13.coded_picture_number=0
+packets_and_frames.frame.13.display_picture_number=0
+packets_and_frames.frame.13.interlaced_frame=0
+packets_and_frames.frame.13.top_field_first=0
+packets_and_frames.frame.13.repeat_pict=0
+streams.stream.0.index=0
+streams.stream.0.codec_name="pcm_s16le"
+streams.stream.0.profile="unknown"
+streams.stream.0.codec_type="audio"
+streams.stream.0.codec_time_base="1/44100"
+streams.stream.0.codec_tag_string="PSD[16]"
+streams.stream.0.codec_tag="0x10445350"
+streams.stream.0.sample_fmt="s16"
+streams.stream.0.sample_rate="44100"
+streams.stream.0.channels=1
+streams.stream.0.bits_per_sample=16
+streams.stream.0.id="N/A"
+streams.stream.0.r_frame_rate="0/0"
+streams.stream.0.avg_frame_rate="0/0"
+streams.stream.0.time_base="1/44100"
+streams.stream.0.start_pts=0
+streams.stream.0.start_time="0.000000"
+streams.stream.0.duration_ts=527406
+streams.stream.0.duration="11.959320"
+streams.stream.0.bit_rate="705600"
+streams.stream.0.nb_frames="N/A"
+streams.stream.0.nb_read_frames="6"
+streams.stream.0.nb_read_packets="6"
+streams.stream.0.disposition.default=0
+streams.stream.0.disposition.dub=0
+streams.stream.0.disposition.original=0
+streams.stream.0.disposition.comment=0
+streams.stream.0.disposition.lyrics=0
+streams.stream.0.disposition.karaoke=0
+streams.stream.0.disposition.forced=0
+streams.stream.0.disposition.hearing_impaired=0
+streams.stream.0.disposition.visual_impaired=0
+streams.stream.0.disposition.clean_effects=0
+streams.stream.0.disposition.attached_pic=0
+streams.stream.0.tags.E="mc²"
+streams.stream.1.index=1
+streams.stream.1.codec_name="rawvideo"
+streams.stream.1.profile="unknown"
+streams.stream.1.codec_type="video"
+streams.stream.1.codec_time_base="1/51200"
+streams.stream.1.codec_tag_string="RGB[24]"
+streams.stream.1.codec_tag="0x18424752"
+streams.stream.1.width=320
+streams.stream.1.height=240
+streams.stream.1.has_b_frames=0
+streams.stream.1.sample_aspect_ratio="1:1"
+streams.stream.1.display_aspect_ratio="4:3"
+streams.stream.1.pix_fmt="rgb24"
+streams.stream.1.level=-99
+streams.stream.1.timecode="N/A"
+streams.stream.1.id="N/A"
+streams.stream.1.r_frame_rate="25/1"
+streams.stream.1.avg_frame_rate="25/1"
+streams.stream.1.time_base="1/51200"
+streams.stream.1.start_pts=0
+streams.stream.1.start_time="0.000000"
+streams.stream.1.duration_ts=612317
+streams.stream.1.duration="11.959316"
+streams.stream.1.bit_rate="N/A"
+streams.stream.1.nb_frames="N/A"
+streams.stream.1.nb_read_frames="4"
+streams.stream.1.nb_read_packets="4"
+streams.stream.1.disposition.default=0
+streams.stream.1.disposition.dub=0
+streams.stream.1.disposition.original=0
+streams.stream.1.disposition.comment=0
+streams.stream.1.disposition.lyrics=0
+streams.stream.1.disposition.karaoke=0
+streams.stream.1.disposition.forced=0
+streams.stream.1.disposition.hearing_impaired=0
+streams.stream.1.disposition.visual_impaired=0
+streams.stream.1.disposition.clean_effects=0
+streams.stream.1.disposition.attached_pic=0
+streams.stream.1.tags.title="foobar"
+streams.stream.1.tags.duration_ts="field-and-tags-conflict-attempt"
+streams.stream.2.index=2
+streams.stream.2.codec_name="rawvideo"
+streams.stream.2.profile="unknown"
+streams.stream.2.codec_type="video"
+streams.stream.2.codec_time_base="1/51200"
+streams.stream.2.codec_tag_string="RGB[24]"
+streams.stream.2.codec_tag="0x18424752"
+streams.stream.2.width=100
+streams.stream.2.height=100
+streams.stream.2.has_b_frames=0
+streams.stream.2.sample_aspect_ratio="1:1"
+streams.stream.2.display_aspect_ratio="1:1"
+streams.stream.2.pix_fmt="rgb24"
+streams.stream.2.level=-99
+streams.stream.2.timecode="N/A"
+streams.stream.2.id="N/A"
+streams.stream.2.r_frame_rate="25/1"
+streams.stream.2.avg_frame_rate="25/1"
+streams.stream.2.time_base="1/51200"
+streams.stream.2.start_pts=0
+streams.stream.2.start_time="0.000000"
+streams.stream.2.duration_ts=612317
+streams.stream.2.duration="11.959316"
+streams.stream.2.bit_rate="N/A"
+streams.stream.2.nb_frames="N/A"
+streams.stream.2.nb_read_frames="4"
+streams.stream.2.nb_read_packets="4"
+streams.stream.2.disposition.default=0
+streams.stream.2.disposition.dub=0
+streams.stream.2.disposition.original=0
+streams.stream.2.disposition.comment=0
+streams.stream.2.disposition.lyrics=0
+streams.stream.2.disposition.karaoke=0
+streams.stream.2.disposition.forced=0
+streams.stream.2.disposition.hearing_impaired=0
+streams.stream.2.disposition.visual_impaired=0
+streams.stream.2.disposition.clean_effects=0
+streams.stream.2.disposition.attached_pic=0
+format.filename="tests/data/ffprobe-test.nut"
+format.nb_streams=3
+format.format_name="nut"
+format.start_time="0.000000"
+format.duration="11.959320"
+format.size="1054812"
+format.bit_rate="705599"
+format.tags.title="ffprobe test file"
+format.tags.comment="'A comment with CSV, XML & JSON special chars': <tag value=\"x\">"
+format.tags.comment2="I ♥ Üñîçød€"
diff --git a/ffmpeg1/tests/ref/fate/ffprobe_ini b/ffmpeg1/tests/ref/fate/ffprobe_ini
new file mode 100644
index 0000000..476b1fe
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ffprobe_ini
@@ -0,0 +1,626 @@
+# ffprobe output
+
+[packets_and_frames.packet.0]
+codec_type=audio
+stream_index=0
+pts=0
+pts_time=0.000000
+dts=0
+dts_time=0.000000
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=572
+flags=K
+
+[packets_and_frames.frame.0]
+media_type=audio
+key_frame=1
+pkt_pts=0
+pkt_pts_time=0.000000
+pkt_dts=0
+pkt_dts_time=0.000000
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=572
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+
+[packets_and_frames.packet.1]
+codec_type=video
+stream_index=1
+pts=0
+pts_time=0.000000
+dts=0
+dts_time=0.000000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=230400
+pos=2647
+flags=K
+
+[packets_and_frames.frame.1]
+media_type=video
+key_frame=1
+pkt_pts=0
+pkt_pts_time=0.000000
+pkt_dts=0
+pkt_dts_time=0.000000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=2647
+pkt_size=N/A
+width=320
+height=240
+pix_fmt=rgb24
+sample_aspect_ratio=1\:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+
+[packets_and_frames.packet.2]
+codec_type=video
+stream_index=2
+pts=0
+pts_time=0.000000
+dts=0
+dts_time=0.000000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=30000
+pos=233068
+flags=K
+
+[packets_and_frames.frame.2]
+media_type=video
+key_frame=1
+pkt_pts=0
+pkt_pts_time=0.000000
+pkt_dts=0
+pkt_dts_time=0.000000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=233068
+pkt_size=N/A
+width=100
+height=100
+pix_fmt=rgb24
+sample_aspect_ratio=1\:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+
+[packets_and_frames.packet.3]
+codec_type=audio
+stream_index=0
+pts=1024
+pts_time=0.023220
+dts=1024
+dts_time=0.023220
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=263073
+flags=K
+
+[packets_and_frames.frame.3]
+media_type=audio
+key_frame=1
+pkt_pts=1024
+pkt_pts_time=0.023220
+pkt_dts=1024
+pkt_dts_time=0.023220
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=263073
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+
+[packets_and_frames.packet.4]
+codec_type=video
+stream_index=1
+pts=2048
+pts_time=0.040000
+dts=2048
+dts_time=0.040000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=230400
+pos=265151
+flags=K
+
+[packets_and_frames.frame.4]
+media_type=video
+key_frame=1
+pkt_pts=2048
+pkt_pts_time=0.040000
+pkt_dts=2048
+pkt_dts_time=0.040000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=265151
+pkt_size=N/A
+width=320
+height=240
+pix_fmt=rgb24
+sample_aspect_ratio=1\:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+
+[packets_and_frames.packet.5]
+codec_type=video
+stream_index=2
+pts=2048
+pts_time=0.040000
+dts=2048
+dts_time=0.040000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=30000
+pos=495575
+flags=K
+
+[packets_and_frames.frame.5]
+media_type=video
+key_frame=1
+pkt_pts=2048
+pkt_pts_time=0.040000
+pkt_dts=2048
+pkt_dts_time=0.040000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=495575
+pkt_size=N/A
+width=100
+height=100
+pix_fmt=rgb24
+sample_aspect_ratio=1\:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+
+[packets_and_frames.packet.6]
+codec_type=audio
+stream_index=0
+pts=2048
+pts_time=0.046440
+dts=2048
+dts_time=0.046440
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=525580
+flags=K
+
+[packets_and_frames.frame.6]
+media_type=audio
+key_frame=1
+pkt_pts=2048
+pkt_pts_time=0.046440
+pkt_dts=2048
+pkt_dts_time=0.046440
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=525580
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+
+[packets_and_frames.packet.7]
+codec_type=audio
+stream_index=0
+pts=3072
+pts_time=0.069660
+dts=3072
+dts_time=0.069660
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=527651
+flags=K
+
+[packets_and_frames.frame.7]
+media_type=audio
+key_frame=1
+pkt_pts=3072
+pkt_pts_time=0.069660
+pkt_dts=3072
+pkt_dts_time=0.069660
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=527651
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+
+[packets_and_frames.packet.8]
+codec_type=video
+stream_index=1
+pts=4096
+pts_time=0.080000
+dts=4096
+dts_time=0.080000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=230400
+pos=529729
+flags=K
+
+[packets_and_frames.frame.8]
+media_type=video
+key_frame=1
+pkt_pts=4096
+pkt_pts_time=0.080000
+pkt_dts=4096
+pkt_dts_time=0.080000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=529729
+pkt_size=N/A
+width=320
+height=240
+pix_fmt=rgb24
+sample_aspect_ratio=1\:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+
+[packets_and_frames.packet.9]
+codec_type=video
+stream_index=2
+pts=4096
+pts_time=0.080000
+dts=4096
+dts_time=0.080000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=30000
+pos=760153
+flags=K
+
+[packets_and_frames.frame.9]
+media_type=video
+key_frame=1
+pkt_pts=4096
+pkt_pts_time=0.080000
+pkt_dts=4096
+pkt_dts_time=0.080000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=760153
+pkt_size=N/A
+width=100
+height=100
+pix_fmt=rgb24
+sample_aspect_ratio=1\:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+
+[packets_and_frames.packet.10]
+codec_type=audio
+stream_index=0
+pts=4096
+pts_time=0.092880
+dts=4096
+dts_time=0.092880
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=790158
+flags=K
+
+[packets_and_frames.frame.10]
+media_type=audio
+key_frame=1
+pkt_pts=4096
+pkt_pts_time=0.092880
+pkt_dts=4096
+pkt_dts_time=0.092880
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=790158
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+
+[packets_and_frames.packet.11]
+codec_type=audio
+stream_index=0
+pts=5120
+pts_time=0.116100
+dts=5120
+dts_time=0.116100
+duration=1024
+duration_time=0.023220
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=2048
+pos=792229
+flags=K
+
+[packets_and_frames.frame.11]
+media_type=audio
+key_frame=1
+pkt_pts=5120
+pkt_pts_time=0.116100
+pkt_dts=5120
+pkt_dts_time=0.116100
+pkt_duration=1024
+pkt_duration_time=0.023220
+pkt_pos=792229
+pkt_size=2048
+sample_fmt=s16
+nb_samples=1024
+channels=1
+channel_layout=mono
+
+[packets_and_frames.packet.12]
+codec_type=video
+stream_index=1
+pts=6144
+pts_time=0.120000
+dts=6144
+dts_time=0.120000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=230400
+pos=794307
+flags=K
+
+[packets_and_frames.frame.12]
+media_type=video
+key_frame=1
+pkt_pts=6144
+pkt_pts_time=0.120000
+pkt_dts=6144
+pkt_dts_time=0.120000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=794307
+pkt_size=N/A
+width=320
+height=240
+pix_fmt=rgb24
+sample_aspect_ratio=1\:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+
+[packets_and_frames.packet.13]
+codec_type=video
+stream_index=2
+pts=6144
+pts_time=0.120000
+dts=6144
+dts_time=0.120000
+duration=2048
+duration_time=0.040000
+convergence_duration=N/A
+convergence_duration_time=N/A
+size=30000
+pos=1024731
+flags=K
+
+[packets_and_frames.frame.13]
+media_type=video
+key_frame=1
+pkt_pts=6144
+pkt_pts_time=0.120000
+pkt_dts=6144
+pkt_dts_time=0.120000
+pkt_duration=2048
+pkt_duration_time=0.040000
+pkt_pos=1024731
+pkt_size=N/A
+width=100
+height=100
+pix_fmt=rgb24
+sample_aspect_ratio=1\:1
+pict_type=I
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+
+[streams.stream.0]
+index=0
+codec_name=pcm_s16le
+profile=unknown
+codec_type=audio
+codec_time_base=1/44100
+codec_tag_string=PSD[16]
+codec_tag=0x10445350
+sample_fmt=s16
+sample_rate=44100
+channels=1
+bits_per_sample=16
+id=N/A
+r_frame_rate=0/0
+avg_frame_rate=0/0
+time_base=1/44100
+start_pts=0
+start_time=0.000000
+duration_ts=527406
+duration=11.959320
+bit_rate=705600
+nb_frames=N/A
+nb_read_frames=6
+nb_read_packets=6
+
+[streams.stream.0.disposition]
+default=0
+dub=0
+original=0
+comment=0
+lyrics=0
+karaoke=0
+forced=0
+hearing_impaired=0
+visual_impaired=0
+clean_effects=0
+attached_pic=0
+
+[streams.stream.0.tags]
+E=mc²
+
+[streams.stream.1]
+index=1
+codec_name=rawvideo
+profile=unknown
+codec_type=video
+codec_time_base=1/51200
+codec_tag_string=RGB[24]
+codec_tag=0x18424752
+width=320
+height=240
+has_b_frames=0
+sample_aspect_ratio=1\:1
+display_aspect_ratio=4\:3
+pix_fmt=rgb24
+level=-99
+timecode=N/A
+id=N/A
+r_frame_rate=25/1
+avg_frame_rate=25/1
+time_base=1/51200
+start_pts=0
+start_time=0.000000
+duration_ts=612317
+duration=11.959316
+bit_rate=N/A
+nb_frames=N/A
+nb_read_frames=4
+nb_read_packets=4
+
+[streams.stream.1.disposition]
+default=0
+dub=0
+original=0
+comment=0
+lyrics=0
+karaoke=0
+forced=0
+hearing_impaired=0
+visual_impaired=0
+clean_effects=0
+attached_pic=0
+
+[streams.stream.1.tags]
+title=foobar
+duration_ts=field-and-tags-conflict-attempt
+
+[streams.stream.2]
+index=2
+codec_name=rawvideo
+profile=unknown
+codec_type=video
+codec_time_base=1/51200
+codec_tag_string=RGB[24]
+codec_tag=0x18424752
+width=100
+height=100
+has_b_frames=0
+sample_aspect_ratio=1\:1
+display_aspect_ratio=1\:1
+pix_fmt=rgb24
+level=-99
+timecode=N/A
+id=N/A
+r_frame_rate=25/1
+avg_frame_rate=25/1
+time_base=1/51200
+start_pts=0
+start_time=0.000000
+duration_ts=612317
+duration=11.959316
+bit_rate=N/A
+nb_frames=N/A
+nb_read_frames=4
+nb_read_packets=4
+
+[streams.stream.2.disposition]
+default=0
+dub=0
+original=0
+comment=0
+lyrics=0
+karaoke=0
+forced=0
+hearing_impaired=0
+visual_impaired=0
+clean_effects=0
+attached_pic=0
+
+[format]
+filename=tests/data/ffprobe-test.nut
+nb_streams=3
+format_name=nut
+start_time=0.000000
+duration=11.959320
+size=1054812
+bit_rate=705599
+
+[format.tags]
+title=ffprobe test file
+comment='A comment with CSV, XML & JSON special chars'\: <tag value\="x">
+comment2=I ♥ Üñîçød€
diff --git a/ffmpeg1/tests/ref/fate/ffprobe_json b/ffmpeg1/tests/ref/fate/ffprobe_json
new file mode 100644
index 0000000..393ef46
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ffprobe_json
@@ -0,0 +1,610 @@
+{
+ "packets_and_frames": [
+ {
+ "type": "packet",
+ "codec_type": "audio",
+ "stream_index": 0,
+ "pts": 0,
+ "pts_time": "0.000000",
+ "dts": 0,
+ "dts_time": "0.000000",
+ "duration": 1024,
+ "duration_time": "0.023220",
+ "size": "2048",
+ "pos": "572",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "audio",
+ "key_frame": 1,
+ "pkt_pts": 0,
+ "pkt_pts_time": "0.000000",
+ "pkt_dts": 0,
+ "pkt_dts_time": "0.000000",
+ "pkt_duration": 1024,
+ "pkt_duration_time": "0.023220",
+ "pkt_pos": "572",
+ "pkt_size": "2048",
+ "sample_fmt": "s16",
+ "nb_samples": 1024,
+ "channels": 1,
+ "channel_layout": "mono"
+ },
+ {
+ "type": "packet",
+ "codec_type": "video",
+ "stream_index": 1,
+ "pts": 0,
+ "pts_time": "0.000000",
+ "dts": 0,
+ "dts_time": "0.000000",
+ "duration": 2048,
+ "duration_time": "0.040000",
+ "size": "230400",
+ "pos": "2647",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "video",
+ "key_frame": 1,
+ "pkt_pts": 0,
+ "pkt_pts_time": "0.000000",
+ "pkt_dts": 0,
+ "pkt_dts_time": "0.000000",
+ "pkt_duration": 2048,
+ "pkt_duration_time": "0.040000",
+ "pkt_pos": "2647",
+ "width": 320,
+ "height": 240,
+ "pix_fmt": "rgb24",
+ "sample_aspect_ratio": "1:1",
+ "pict_type": "I",
+ "coded_picture_number": 0,
+ "display_picture_number": 0,
+ "interlaced_frame": 0,
+ "top_field_first": 0,
+ "repeat_pict": 0
+ },
+ {
+ "type": "packet",
+ "codec_type": "video",
+ "stream_index": 2,
+ "pts": 0,
+ "pts_time": "0.000000",
+ "dts": 0,
+ "dts_time": "0.000000",
+ "duration": 2048,
+ "duration_time": "0.040000",
+ "size": "30000",
+ "pos": "233068",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "video",
+ "key_frame": 1,
+ "pkt_pts": 0,
+ "pkt_pts_time": "0.000000",
+ "pkt_dts": 0,
+ "pkt_dts_time": "0.000000",
+ "pkt_duration": 2048,
+ "pkt_duration_time": "0.040000",
+ "pkt_pos": "233068",
+ "width": 100,
+ "height": 100,
+ "pix_fmt": "rgb24",
+ "sample_aspect_ratio": "1:1",
+ "pict_type": "I",
+ "coded_picture_number": 0,
+ "display_picture_number": 0,
+ "interlaced_frame": 0,
+ "top_field_first": 0,
+ "repeat_pict": 0
+ },
+ {
+ "type": "packet",
+ "codec_type": "audio",
+ "stream_index": 0,
+ "pts": 1024,
+ "pts_time": "0.023220",
+ "dts": 1024,
+ "dts_time": "0.023220",
+ "duration": 1024,
+ "duration_time": "0.023220",
+ "size": "2048",
+ "pos": "263073",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "audio",
+ "key_frame": 1,
+ "pkt_pts": 1024,
+ "pkt_pts_time": "0.023220",
+ "pkt_dts": 1024,
+ "pkt_dts_time": "0.023220",
+ "pkt_duration": 1024,
+ "pkt_duration_time": "0.023220",
+ "pkt_pos": "263073",
+ "pkt_size": "2048",
+ "sample_fmt": "s16",
+ "nb_samples": 1024,
+ "channels": 1,
+ "channel_layout": "mono"
+ },
+ {
+ "type": "packet",
+ "codec_type": "video",
+ "stream_index": 1,
+ "pts": 2048,
+ "pts_time": "0.040000",
+ "dts": 2048,
+ "dts_time": "0.040000",
+ "duration": 2048,
+ "duration_time": "0.040000",
+ "size": "230400",
+ "pos": "265151",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "video",
+ "key_frame": 1,
+ "pkt_pts": 2048,
+ "pkt_pts_time": "0.040000",
+ "pkt_dts": 2048,
+ "pkt_dts_time": "0.040000",
+ "pkt_duration": 2048,
+ "pkt_duration_time": "0.040000",
+ "pkt_pos": "265151",
+ "width": 320,
+ "height": 240,
+ "pix_fmt": "rgb24",
+ "sample_aspect_ratio": "1:1",
+ "pict_type": "I",
+ "coded_picture_number": 0,
+ "display_picture_number": 0,
+ "interlaced_frame": 0,
+ "top_field_first": 0,
+ "repeat_pict": 0
+ },
+ {
+ "type": "packet",
+ "codec_type": "video",
+ "stream_index": 2,
+ "pts": 2048,
+ "pts_time": "0.040000",
+ "dts": 2048,
+ "dts_time": "0.040000",
+ "duration": 2048,
+ "duration_time": "0.040000",
+ "size": "30000",
+ "pos": "495575",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "video",
+ "key_frame": 1,
+ "pkt_pts": 2048,
+ "pkt_pts_time": "0.040000",
+ "pkt_dts": 2048,
+ "pkt_dts_time": "0.040000",
+ "pkt_duration": 2048,
+ "pkt_duration_time": "0.040000",
+ "pkt_pos": "495575",
+ "width": 100,
+ "height": 100,
+ "pix_fmt": "rgb24",
+ "sample_aspect_ratio": "1:1",
+ "pict_type": "I",
+ "coded_picture_number": 0,
+ "display_picture_number": 0,
+ "interlaced_frame": 0,
+ "top_field_first": 0,
+ "repeat_pict": 0
+ },
+ {
+ "type": "packet",
+ "codec_type": "audio",
+ "stream_index": 0,
+ "pts": 2048,
+ "pts_time": "0.046440",
+ "dts": 2048,
+ "dts_time": "0.046440",
+ "duration": 1024,
+ "duration_time": "0.023220",
+ "size": "2048",
+ "pos": "525580",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "audio",
+ "key_frame": 1,
+ "pkt_pts": 2048,
+ "pkt_pts_time": "0.046440",
+ "pkt_dts": 2048,
+ "pkt_dts_time": "0.046440",
+ "pkt_duration": 1024,
+ "pkt_duration_time": "0.023220",
+ "pkt_pos": "525580",
+ "pkt_size": "2048",
+ "sample_fmt": "s16",
+ "nb_samples": 1024,
+ "channels": 1,
+ "channel_layout": "mono"
+ },
+ {
+ "type": "packet",
+ "codec_type": "audio",
+ "stream_index": 0,
+ "pts": 3072,
+ "pts_time": "0.069660",
+ "dts": 3072,
+ "dts_time": "0.069660",
+ "duration": 1024,
+ "duration_time": "0.023220",
+ "size": "2048",
+ "pos": "527651",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "audio",
+ "key_frame": 1,
+ "pkt_pts": 3072,
+ "pkt_pts_time": "0.069660",
+ "pkt_dts": 3072,
+ "pkt_dts_time": "0.069660",
+ "pkt_duration": 1024,
+ "pkt_duration_time": "0.023220",
+ "pkt_pos": "527651",
+ "pkt_size": "2048",
+ "sample_fmt": "s16",
+ "nb_samples": 1024,
+ "channels": 1,
+ "channel_layout": "mono"
+ },
+ {
+ "type": "packet",
+ "codec_type": "video",
+ "stream_index": 1,
+ "pts": 4096,
+ "pts_time": "0.080000",
+ "dts": 4096,
+ "dts_time": "0.080000",
+ "duration": 2048,
+ "duration_time": "0.040000",
+ "size": "230400",
+ "pos": "529729",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "video",
+ "key_frame": 1,
+ "pkt_pts": 4096,
+ "pkt_pts_time": "0.080000",
+ "pkt_dts": 4096,
+ "pkt_dts_time": "0.080000",
+ "pkt_duration": 2048,
+ "pkt_duration_time": "0.040000",
+ "pkt_pos": "529729",
+ "width": 320,
+ "height": 240,
+ "pix_fmt": "rgb24",
+ "sample_aspect_ratio": "1:1",
+ "pict_type": "I",
+ "coded_picture_number": 0,
+ "display_picture_number": 0,
+ "interlaced_frame": 0,
+ "top_field_first": 0,
+ "repeat_pict": 0
+ },
+ {
+ "type": "packet",
+ "codec_type": "video",
+ "stream_index": 2,
+ "pts": 4096,
+ "pts_time": "0.080000",
+ "dts": 4096,
+ "dts_time": "0.080000",
+ "duration": 2048,
+ "duration_time": "0.040000",
+ "size": "30000",
+ "pos": "760153",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "video",
+ "key_frame": 1,
+ "pkt_pts": 4096,
+ "pkt_pts_time": "0.080000",
+ "pkt_dts": 4096,
+ "pkt_dts_time": "0.080000",
+ "pkt_duration": 2048,
+ "pkt_duration_time": "0.040000",
+ "pkt_pos": "760153",
+ "width": 100,
+ "height": 100,
+ "pix_fmt": "rgb24",
+ "sample_aspect_ratio": "1:1",
+ "pict_type": "I",
+ "coded_picture_number": 0,
+ "display_picture_number": 0,
+ "interlaced_frame": 0,
+ "top_field_first": 0,
+ "repeat_pict": 0
+ },
+ {
+ "type": "packet",
+ "codec_type": "audio",
+ "stream_index": 0,
+ "pts": 4096,
+ "pts_time": "0.092880",
+ "dts": 4096,
+ "dts_time": "0.092880",
+ "duration": 1024,
+ "duration_time": "0.023220",
+ "size": "2048",
+ "pos": "790158",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "audio",
+ "key_frame": 1,
+ "pkt_pts": 4096,
+ "pkt_pts_time": "0.092880",
+ "pkt_dts": 4096,
+ "pkt_dts_time": "0.092880",
+ "pkt_duration": 1024,
+ "pkt_duration_time": "0.023220",
+ "pkt_pos": "790158",
+ "pkt_size": "2048",
+ "sample_fmt": "s16",
+ "nb_samples": 1024,
+ "channels": 1,
+ "channel_layout": "mono"
+ },
+ {
+ "type": "packet",
+ "codec_type": "audio",
+ "stream_index": 0,
+ "pts": 5120,
+ "pts_time": "0.116100",
+ "dts": 5120,
+ "dts_time": "0.116100",
+ "duration": 1024,
+ "duration_time": "0.023220",
+ "size": "2048",
+ "pos": "792229",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "audio",
+ "key_frame": 1,
+ "pkt_pts": 5120,
+ "pkt_pts_time": "0.116100",
+ "pkt_dts": 5120,
+ "pkt_dts_time": "0.116100",
+ "pkt_duration": 1024,
+ "pkt_duration_time": "0.023220",
+ "pkt_pos": "792229",
+ "pkt_size": "2048",
+ "sample_fmt": "s16",
+ "nb_samples": 1024,
+ "channels": 1,
+ "channel_layout": "mono"
+ },
+ {
+ "type": "packet",
+ "codec_type": "video",
+ "stream_index": 1,
+ "pts": 6144,
+ "pts_time": "0.120000",
+ "dts": 6144,
+ "dts_time": "0.120000",
+ "duration": 2048,
+ "duration_time": "0.040000",
+ "size": "230400",
+ "pos": "794307",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "video",
+ "key_frame": 1,
+ "pkt_pts": 6144,
+ "pkt_pts_time": "0.120000",
+ "pkt_dts": 6144,
+ "pkt_dts_time": "0.120000",
+ "pkt_duration": 2048,
+ "pkt_duration_time": "0.040000",
+ "pkt_pos": "794307",
+ "width": 320,
+ "height": 240,
+ "pix_fmt": "rgb24",
+ "sample_aspect_ratio": "1:1",
+ "pict_type": "I",
+ "coded_picture_number": 0,
+ "display_picture_number": 0,
+ "interlaced_frame": 0,
+ "top_field_first": 0,
+ "repeat_pict": 0
+ },
+ {
+ "type": "packet",
+ "codec_type": "video",
+ "stream_index": 2,
+ "pts": 6144,
+ "pts_time": "0.120000",
+ "dts": 6144,
+ "dts_time": "0.120000",
+ "duration": 2048,
+ "duration_time": "0.040000",
+ "size": "30000",
+ "pos": "1024731",
+ "flags": "K"
+ },
+ {
+ "type": "frame",
+ "media_type": "video",
+ "key_frame": 1,
+ "pkt_pts": 6144,
+ "pkt_pts_time": "0.120000",
+ "pkt_dts": 6144,
+ "pkt_dts_time": "0.120000",
+ "pkt_duration": 2048,
+ "pkt_duration_time": "0.040000",
+ "pkt_pos": "1024731",
+ "width": 100,
+ "height": 100,
+ "pix_fmt": "rgb24",
+ "sample_aspect_ratio": "1:1",
+ "pict_type": "I",
+ "coded_picture_number": 0,
+ "display_picture_number": 0,
+ "interlaced_frame": 0,
+ "top_field_first": 0,
+ "repeat_pict": 0
+ }
+ ],
+ "streams": [
+ {
+ "index": 0,
+ "codec_name": "pcm_s16le",
+ "codec_type": "audio",
+ "codec_time_base": "1/44100",
+ "codec_tag_string": "PSD[16]",
+ "codec_tag": "0x10445350",
+ "sample_fmt": "s16",
+ "sample_rate": "44100",
+ "channels": 1,
+ "bits_per_sample": 16,
+ "r_frame_rate": "0/0",
+ "avg_frame_rate": "0/0",
+ "time_base": "1/44100",
+ "start_pts": 0,
+ "start_time": "0.000000",
+ "duration_ts": 527406,
+ "duration": "11.959320",
+ "bit_rate": "705600",
+ "nb_read_frames": "6",
+ "nb_read_packets": "6",
+ "disposition": {
+ "default": 0,
+ "dub": 0,
+ "original": 0,
+ "comment": 0,
+ "lyrics": 0,
+ "karaoke": 0,
+ "forced": 0,
+ "hearing_impaired": 0,
+ "visual_impaired": 0,
+ "clean_effects": 0,
+ "attached_pic": 0
+ },
+ "tags": {
+ "E": "mc²"
+ }
+ },
+ {
+ "index": 1,
+ "codec_name": "rawvideo",
+ "codec_type": "video",
+ "codec_time_base": "1/51200",
+ "codec_tag_string": "RGB[24]",
+ "codec_tag": "0x18424752",
+ "width": 320,
+ "height": 240,
+ "has_b_frames": 0,
+ "sample_aspect_ratio": "1:1",
+ "display_aspect_ratio": "4:3",
+ "pix_fmt": "rgb24",
+ "level": -99,
+ "r_frame_rate": "25/1",
+ "avg_frame_rate": "25/1",
+ "time_base": "1/51200",
+ "start_pts": 0,
+ "start_time": "0.000000",
+ "duration_ts": 612317,
+ "duration": "11.959316",
+ "nb_read_frames": "4",
+ "nb_read_packets": "4",
+ "disposition": {
+ "default": 0,
+ "dub": 0,
+ "original": 0,
+ "comment": 0,
+ "lyrics": 0,
+ "karaoke": 0,
+ "forced": 0,
+ "hearing_impaired": 0,
+ "visual_impaired": 0,
+ "clean_effects": 0,
+ "attached_pic": 0
+ },
+ "tags": {
+ "title": "foobar",
+ "duration_ts": "field-and-tags-conflict-attempt"
+ }
+ },
+ {
+ "index": 2,
+ "codec_name": "rawvideo",
+ "codec_type": "video",
+ "codec_time_base": "1/51200",
+ "codec_tag_string": "RGB[24]",
+ "codec_tag": "0x18424752",
+ "width": 100,
+ "height": 100,
+ "has_b_frames": 0,
+ "sample_aspect_ratio": "1:1",
+ "display_aspect_ratio": "1:1",
+ "pix_fmt": "rgb24",
+ "level": -99,
+ "r_frame_rate": "25/1",
+ "avg_frame_rate": "25/1",
+ "time_base": "1/51200",
+ "start_pts": 0,
+ "start_time": "0.000000",
+ "duration_ts": 612317,
+ "duration": "11.959316",
+ "nb_read_frames": "4",
+ "nb_read_packets": "4",
+ "disposition": {
+ "default": 0,
+ "dub": 0,
+ "original": 0,
+ "comment": 0,
+ "lyrics": 0,
+ "karaoke": 0,
+ "forced": 0,
+ "hearing_impaired": 0,
+ "visual_impaired": 0,
+ "clean_effects": 0,
+ "attached_pic": 0
+ }
+ }
+ ],
+ "format": {
+ "filename": "tests/data/ffprobe-test.nut",
+ "nb_streams": 3,
+ "format_name": "nut",
+ "start_time": "0.000000",
+ "duration": "11.959320",
+ "size": "1054812",
+ "bit_rate": "705599",
+ "tags": {
+ "title": "ffprobe test file",
+ "comment": "'A comment with CSV, XML & JSON special chars': <tag value=\"x\">",
+ "comment2": "I ♥ Üñîçød€"
+ }
+ }
+}
diff --git a/ffmpeg1/tests/ref/fate/ffprobe_xml b/ffmpeg1/tests/ref/fate/ffprobe_xml
new file mode 100644
index 0000000..8cec7ad
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ffprobe_xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ffprobe>
+ <packets_and_frames>
+ <packet codec_type="audio" stream_index="0" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="1024" duration_time="0.023220" size="2048" pos="572" flags="K"/>
+ <frame media_type="audio" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="572" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1" channel_layout="mono"/>
+ <packet codec_type="video" stream_index="1" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="230400" pos="2647" flags="K"/>
+ <frame media_type="video" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="2647" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+ <packet codec_type="video" stream_index="2" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="30000" pos="233068" flags="K"/>
+ <frame media_type="video" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="233068" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+ <packet codec_type="audio" stream_index="0" pts="1024" pts_time="0.023220" dts="1024" dts_time="0.023220" duration="1024" duration_time="0.023220" size="2048" pos="263073" flags="K"/>
+ <frame media_type="audio" key_frame="1" pkt_pts="1024" pkt_pts_time="0.023220" pkt_dts="1024" pkt_dts_time="0.023220" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="263073" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1" channel_layout="mono"/>
+ <packet codec_type="video" stream_index="1" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="230400" pos="265151" flags="K"/>
+ <frame media_type="video" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="265151" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+ <packet codec_type="video" stream_index="2" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="30000" pos="495575" flags="K"/>
+ <frame media_type="video" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="495575" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+ <packet codec_type="audio" stream_index="0" pts="2048" pts_time="0.046440" dts="2048" dts_time="0.046440" duration="1024" duration_time="0.023220" size="2048" pos="525580" flags="K"/>
+ <frame media_type="audio" key_frame="1" pkt_pts="2048" pkt_pts_time="0.046440" pkt_dts="2048" pkt_dts_time="0.046440" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="525580" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1" channel_layout="mono"/>
+ <packet codec_type="audio" stream_index="0" pts="3072" pts_time="0.069660" dts="3072" dts_time="0.069660" duration="1024" duration_time="0.023220" size="2048" pos="527651" flags="K"/>
+ <frame media_type="audio" key_frame="1" pkt_pts="3072" pkt_pts_time="0.069660" pkt_dts="3072" pkt_dts_time="0.069660" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="527651" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1" channel_layout="mono"/>
+ <packet codec_type="video" stream_index="1" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="230400" pos="529729" flags="K"/>
+ <frame media_type="video" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="529729" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+ <packet codec_type="video" stream_index="2" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="30000" pos="760153" flags="K"/>
+ <frame media_type="video" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="760153" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+ <packet codec_type="audio" stream_index="0" pts="4096" pts_time="0.092880" dts="4096" dts_time="0.092880" duration="1024" duration_time="0.023220" size="2048" pos="790158" flags="K"/>
+ <frame media_type="audio" key_frame="1" pkt_pts="4096" pkt_pts_time="0.092880" pkt_dts="4096" pkt_dts_time="0.092880" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="790158" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1" channel_layout="mono"/>
+ <packet codec_type="audio" stream_index="0" pts="5120" pts_time="0.116100" dts="5120" dts_time="0.116100" duration="1024" duration_time="0.023220" size="2048" pos="792229" flags="K"/>
+ <frame media_type="audio" key_frame="1" pkt_pts="5120" pkt_pts_time="0.116100" pkt_dts="5120" pkt_dts_time="0.116100" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="792229" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1" channel_layout="mono"/>
+ <packet codec_type="video" stream_index="1" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="230400" pos="794307" flags="K"/>
+ <frame media_type="video" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="794307" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+ <packet codec_type="video" stream_index="2" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="30000" pos="1024731" flags="K"/>
+ <frame media_type="video" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="1024731" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+ </packets_and_frames>
+
+ <streams>
+ <stream index="0" codec_name="pcm_s16le" codec_type="audio" codec_time_base="1/44100" codec_tag_string="PSD[16]" codec_tag="0x10445350" sample_fmt="s16" sample_rate="44100" channels="1" bits_per_sample="16" r_frame_rate="0/0" avg_frame_rate="0/0" time_base="1/44100" start_pts="0" start_time="0.000000" duration_ts="527406" duration="11.959320" bit_rate="705600" nb_read_frames="6" nb_read_packets="6">
+ <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="0" forced="0" hearing_impaired="0" visual_impaired="0" clean_effects="0" attached_pic="0"/>
+ <tag key="E" value="mc²"/>
+ </stream>
+ <stream index="1" codec_name="rawvideo" codec_type="video" codec_time_base="1/51200" codec_tag_string="RGB[24]" codec_tag="0x18424752" width="320" height="240" has_b_frames="0" sample_aspect_ratio="1:1" display_aspect_ratio="4:3" pix_fmt="rgb24" level="-99" r_frame_rate="25/1" avg_frame_rate="25/1" time_base="1/51200" start_pts="0" start_time="0.000000" duration_ts="612317" duration="11.959316" nb_read_frames="4" nb_read_packets="4">
+ <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="0" forced="0" hearing_impaired="0" visual_impaired="0" clean_effects="0" attached_pic="0"/>
+ <tag key="title" value="foobar"/>
+ <tag key="duration_ts" value="field-and-tags-conflict-attempt"/>
+ </stream>
+ <stream index="2" codec_name="rawvideo" codec_type="video" codec_time_base="1/51200" codec_tag_string="RGB[24]" codec_tag="0x18424752" width="100" height="100" has_b_frames="0" sample_aspect_ratio="1:1" display_aspect_ratio="1:1" pix_fmt="rgb24" level="-99" r_frame_rate="25/1" avg_frame_rate="25/1" time_base="1/51200" start_pts="0" start_time="0.000000" duration_ts="612317" duration="11.959316" nb_read_frames="4" nb_read_packets="4">
+ <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="0" forced="0" hearing_impaired="0" visual_impaired="0" clean_effects="0" attached_pic="0"/>
+ </stream>
+ </streams>
+
+ <format filename="tests/data/ffprobe-test.nut" nb_streams="3" format_name="nut" start_time="0.000000" duration="11.959320" size="1054812" bit_rate="705599">
+ <tag key="title" value="ffprobe test file"/>
+ <tag key="comment" value="&apos;A comment with CSV, XML &amp; JSON special chars&apos;: &lt;tag value=&quot;x&quot;&gt;"/>
+ <tag key="comment2" value="I ♥ Üñîçød€"/>
+ </format>
+</ffprobe>
diff --git a/ffmpeg1/tests/ref/fate/fifo b/ffmpeg1/tests/ref/fate/fifo
new file mode 100644
index 0000000..18a5691
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/fifo
@@ -0,0 +1,27 @@
+-12: 1
+-11: 2
+-10: 3
+-9: 4
+-8: 5
+-7: 6
+-6: 7
+-5: 8
+-4: 9
+-3: 10
+-2: 11
+-1: 12
+0: 0
+1: 1
+2: 2
+3: 3
+4: 4
+5: 5
+6: 6
+7: 7
+8: 8
+9: 9
+10: 10
+11: 11
+12: 12
+
+0 1 2 3 4 5 6 7 8 9 10 11 12
diff --git a/ffmpeg1/tests/ref/fate/film-cvid b/ffmpeg1/tests/ref/fate/film-cvid
new file mode 100644
index 0000000..3ca7b59
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/film-cvid
@@ -0,0 +1,111 @@
+#tb 0: 1/30
+0, 0, 0, 1, 215040, 0x067c5362
+0, 2, 2, 1, 215040, 0xd9eacb98
+0, 4, 4, 1, 215040, 0x3c8a4cbd
+0, 6, 6, 1, 215040, 0xbdf996e1
+0, 8, 8, 1, 215040, 0x1b7fa123
+0, 10, 10, 1, 215040, 0x834b4a8d
+0, 12, 12, 1, 215040, 0xf4b1bebe
+0, 14, 14, 1, 215040, 0x088c3802
+0, 16, 16, 1, 215040, 0xf6ddedb9
+0, 18, 18, 1, 215040, 0x2791d538
+0, 20, 20, 1, 215040, 0x81fe4688
+0, 22, 22, 1, 215040, 0xad864fbd
+0, 24, 24, 1, 215040, 0xa637a97a
+0, 26, 26, 1, 215040, 0x2287e378
+0, 28, 28, 1, 215040, 0x13a017d7
+0, 30, 30, 1, 215040, 0x89a4acee
+0, 32, 32, 1, 215040, 0x97888ffc
+0, 34, 34, 1, 215040, 0x7c2c3b58
+0, 36, 36, 1, 215040, 0x2e3ab808
+0, 38, 38, 1, 215040, 0x2d553af2
+0, 40, 40, 1, 215040, 0x929c420e
+0, 42, 42, 1, 215040, 0x4841bd6d
+0, 44, 44, 1, 215040, 0xb350fbcd
+0, 46, 46, 1, 215040, 0x0d70b918
+0, 48, 48, 1, 215040, 0xf98b0f47
+0, 50, 50, 1, 215040, 0x748b8ff2
+0, 52, 52, 1, 215040, 0x62017c38
+0, 54, 54, 1, 215040, 0x46042bb4
+0, 56, 56, 1, 215040, 0xe7a74806
+0, 58, 58, 1, 215040, 0xb4c856e6
+0, 60, 60, 1, 215040, 0xb21a28dd
+0, 62, 62, 1, 215040, 0x2a6e0834
+0, 64, 64, 1, 215040, 0x7044d6ca
+0, 66, 66, 1, 215040, 0x17780335
+0, 68, 68, 1, 215040, 0x94f51e7a
+0, 70, 70, 1, 215040, 0x5beb5f5f
+0, 72, 72, 1, 215040, 0xc7d59527
+0, 74, 74, 1, 215040, 0x40f69049
+0, 76, 76, 1, 215040, 0x1f78740e
+0, 78, 78, 1, 215040, 0x49f7265d
+0, 80, 80, 1, 215040, 0x057ac5c9
+0, 82, 82, 1, 215040, 0x649bd476
+0, 84, 84, 1, 215040, 0x1c75aa43
+0, 86, 86, 1, 215040, 0xc4bd1e29
+0, 88, 88, 1, 215040, 0x5033fa74
+0, 90, 90, 1, 215040, 0xba5c949e
+0, 92, 92, 1, 215040, 0x2fa78a0e
+0, 94, 94, 1, 215040, 0x9d363dce
+0, 96, 96, 1, 215040, 0xd1dc82b0
+0, 98, 98, 1, 215040, 0xd25be322
+0, 100, 100, 1, 215040, 0xf1374ef9
+0, 102, 102, 1, 215040, 0x33467b42
+0, 104, 104, 1, 215040, 0x7ec7dfad
+0, 106, 106, 1, 215040, 0x706ed416
+0, 108, 108, 1, 215040, 0x6576b3eb
+0, 110, 110, 1, 215040, 0x6576b3eb
+0, 112, 112, 1, 215040, 0x6576b3eb
+0, 114, 114, 1, 215040, 0x6576b3eb
+0, 116, 116, 1, 215040, 0x6576b3eb
+0, 118, 118, 1, 215040, 0x6576b3eb
+0, 120, 120, 1, 215040, 0x6576b3eb
+0, 122, 122, 1, 215040, 0x6873993d
+0, 124, 124, 1, 215040, 0x8c2a84d8
+0, 126, 126, 1, 215040, 0xdd456bd5
+0, 128, 128, 1, 215040, 0x50fa4f3d
+0, 130, 130, 1, 215040, 0x00c4369c
+0, 132, 132, 1, 215040, 0xe4c220d2
+0, 134, 134, 1, 215040, 0xe43a033b
+0, 136, 136, 1, 215040, 0x72f6e32c
+0, 138, 138, 1, 215040, 0xb738c69c
+0, 140, 140, 1, 215040, 0x56bda3fe
+0, 142, 142, 1, 215040, 0xaa2f7da3
+0, 144, 144, 1, 215040, 0xf21f5c24
+0, 146, 146, 1, 215040, 0xd33e3579
+0, 148, 148, 1, 215040, 0x6a601495
+0, 150, 150, 1, 215040, 0xdfcff1e0
+0, 152, 152, 1, 215040, 0xa774d327
+0, 154, 154, 1, 215040, 0x8e9db8c9
+0, 156, 156, 1, 215040, 0xb4fd9689
+0, 158, 158, 1, 215040, 0xa80b77ff
+0, 160, 160, 1, 215040, 0x1d9c6568
+0, 162, 162, 1, 215040, 0x388c515a
+0, 164, 164, 1, 215040, 0x388c515a
+0, 166, 166, 1, 215040, 0x388c515a
+0, 168, 168, 1, 215040, 0x388c515a
+0, 170, 170, 1, 215040, 0x388c515a
+0, 172, 172, 1, 215040, 0x388c515a
+0, 174, 174, 1, 215040, 0x388c515a
+0, 176, 176, 1, 215040, 0x388c515a
+0, 178, 178, 1, 215040, 0x388c515a
+0, 180, 180, 1, 215040, 0x388c515a
+0, 182, 182, 1, 215040, 0x388c515a
+0, 184, 184, 1, 215040, 0x3aef5fee
+0, 186, 186, 1, 215040, 0x3aef5fee
+0, 188, 188, 1, 215040, 0x3aef5fee
+0, 190, 190, 1, 215040, 0x3aef5fee
+0, 192, 192, 1, 215040, 0x7f8e4b62
+0, 194, 194, 1, 215040, 0xbf9fcae8
+0, 196, 196, 1, 215040, 0x02f9a66c
+0, 198, 198, 1, 215040, 0x00ef062f
+0, 200, 200, 1, 215040, 0xe83b132c
+0, 202, 202, 1, 215040, 0x2701d21b
+0, 204, 204, 1, 215040, 0xbea79188
+0, 206, 206, 1, 215040, 0x6f6d3109
+0, 208, 208, 1, 215040, 0x4173f1e8
+0, 210, 210, 1, 215040, 0xd7adfce1
+0, 212, 212, 1, 215040, 0xa3825ffd
+0, 214, 214, 1, 215040, 0x41e63fe4
+0, 216, 216, 1, 215040, 0xb525b9c5
+0, 218, 218, 1, 215040, 0x00000000
diff --git a/ffmpeg1/tests/ref/fate/filter-curves b/ffmpeg1/tests/ref/fate/filter-curves
new file mode 100644
index 0000000..a96f0ee
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/filter-curves
@@ -0,0 +1,6 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 921600, 0xcf426780
+0, 1, 1, 1, 921600, 0x7642892d
+0, 2, 2, 1, 921600, 0x13c1ab7e
+0, 3, 3, 1, 921600, 0x3eca04bf
+0, 4, 4, 1, 921600, 0x61539162
diff --git a/ffmpeg1/tests/ref/fate/filter-delogo b/ffmpeg1/tests/ref/fate/filter-delogo
new file mode 100644
index 0000000..bc58777
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/filter-delogo
@@ -0,0 +1,110 @@
+#tb 0: 32768/982057
+0, 0, 0, 1, 126720, 0x689de87e
+0, 1, 1, 1, 126720, 0x3db9e91c
+0, 2, 2, 1, 126720, 0x3db9e91c
+0, 3, 3, 1, 126720, 0x3db9e91c
+0, 4, 4, 1, 126720, 0xfa6ae95e
+0, 5, 5, 1, 126720, 0x5bcbf0e6
+0, 6, 6, 1, 126720, 0x94a0f126
+0, 7, 7, 1, 126720, 0x0250f106
+0, 8, 8, 1, 126720, 0xcf6ab4bc
+0, 9, 9, 1, 126720, 0x429eb57c
+0, 10, 10, 1, 126720, 0x3bf0b5bc
+0, 11, 11, 1, 126720, 0xcaedb591
+0, 12, 12, 1, 126720, 0xa492b5ec
+0, 13, 13, 1, 126720, 0x2431b85c
+0, 14, 14, 1, 126720, 0x8283b8dc
+0, 15, 15, 1, 126720, 0xd71bb871
+0, 16, 16, 1, 126720, 0x698eb5cc
+0, 17, 17, 1, 126720, 0x4719aa98
+0, 18, 18, 1, 126720, 0x9ca1962c
+0, 19, 19, 1, 126720, 0x18cda460
+0, 20, 20, 1, 126720, 0xc230b716
+0, 21, 21, 1, 126720, 0x8451a4e2
+0, 22, 22, 1, 126720, 0x59e9a7ea
+0, 23, 23, 1, 126720, 0xc77ca73d
+0, 24, 24, 1, 126720, 0x725fb976
+0, 25, 25, 1, 126720, 0xb30da3b3
+0, 26, 26, 1, 126720, 0x7af2ea86
+0, 27, 27, 1, 126720, 0x40d4b4eb
+0, 28, 28, 1, 126720, 0x49d00307
+0, 29, 29, 1, 126720, 0x0654849c
+0, 30, 30, 1, 126720, 0xe46d0107
+0, 31, 31, 1, 126720, 0xa483b963
+0, 32, 32, 1, 126720, 0xd0e903f0
+0, 33, 33, 1, 126720, 0x964ed592
+0, 34, 34, 1, 126720, 0x23fbdb3c
+0, 35, 35, 1, 126720, 0x59fdace5
+0, 36, 36, 1, 126720, 0xb1e37954
+0, 37, 37, 1, 126720, 0x8ed9c554
+0, 38, 38, 1, 126720, 0xe3c4b39f
+0, 39, 39, 1, 126720, 0xfd17e0ce
+0, 40, 40, 1, 126720, 0xf26e1dcc
+0, 41, 41, 1, 126720, 0x13cc783c
+0, 42, 42, 1, 126720, 0x47ad47a1
+0, 43, 43, 1, 126720, 0x427c8b0d
+0, 44, 44, 1, 126720, 0x59d99901
+0, 45, 45, 1, 126720, 0xc40707da
+0, 46, 46, 1, 126720, 0xcd060dce
+0, 47, 47, 1, 126720, 0xed4024f6
+0, 48, 48, 1, 126720, 0x7decd2b4
+0, 49, 49, 1, 126720, 0xd1d2e730
+0, 50, 50, 1, 126720, 0x77cee457
+0, 51, 51, 1, 126720, 0xe78d02c0
+0, 52, 52, 1, 126720, 0xad0beb29
+0, 53, 53, 1, 126720, 0xc414eea2
+0, 54, 54, 1, 126720, 0x6a15f17d
+0, 55, 55, 1, 126720, 0x516027f6
+0, 56, 56, 1, 126720, 0x4eda9dce
+0, 57, 57, 1, 126720, 0x7d9bdba3
+0, 58, 58, 1, 126720, 0x7aa3d5c0
+0, 59, 59, 1, 126720, 0x7c7a04f9
+0, 60, 60, 1, 126720, 0x3e8fb6cc
+0, 61, 61, 1, 126720, 0xd5474916
+0, 62, 62, 1, 126720, 0xf3f62bab
+0, 63, 63, 1, 126720, 0x2f054987
+0, 64, 64, 1, 126720, 0x974c2e81
+0, 65, 65, 1, 126720, 0xe7e28a97
+0, 66, 66, 1, 126720, 0x45e38b41
+0, 67, 67, 1, 126720, 0x169c7f19
+0, 68, 68, 1, 126720, 0x91d90ee8
+0, 69, 69, 1, 126720, 0xdd653e24
+0, 70, 70, 1, 126720, 0x0da598c4
+0, 71, 71, 1, 126720, 0x687e62cc
+0, 72, 72, 1, 126720, 0x7631232d
+0, 73, 73, 1, 126720, 0xbd1ea826
+0, 74, 74, 1, 126720, 0xb55f7f4b
+0, 75, 75, 1, 126720, 0x923f3fc9
+0, 76, 76, 1, 126720, 0x15515301
+0, 77, 77, 1, 126720, 0x9ee066e5
+0, 78, 78, 1, 126720, 0x7c21664b
+0, 79, 79, 1, 126720, 0x36849100
+0, 80, 80, 1, 126720, 0x08b1f61a
+0, 81, 81, 1, 126720, 0x5bfca6e2
+0, 82, 82, 1, 126720, 0x929f60e3
+0, 83, 83, 1, 126720, 0xa2b55c29
+0, 84, 84, 1, 126720, 0x68bd3ff3
+0, 85, 85, 1, 126720, 0x30db5b29
+0, 86, 86, 1, 126720, 0x00578f9b
+0, 87, 87, 1, 126720, 0x18368642
+0, 88, 88, 1, 126720, 0xbcb83a80
+0, 89, 89, 1, 126720, 0x90f36b72
+0, 90, 90, 1, 126720, 0x85e46522
+0, 91, 91, 1, 126720, 0x2429660a
+0, 92, 92, 1, 126720, 0xf283dfe2
+0, 93, 93, 1, 126720, 0x896b27dc
+0, 94, 94, 1, 126720, 0x5af4f961
+0, 95, 95, 1, 126720, 0x31897085
+0, 96, 96, 1, 126720, 0x441ce33e
+0, 97, 97, 1, 126720, 0x903f8009
+0, 98, 98, 1, 126720, 0xbdf33dba
+0, 99, 99, 1, 126720, 0x8a364f36
+0, 100, 100, 1, 126720, 0xda5513f6
+0, 101, 101, 1, 126720, 0xd60012b3
+0, 102, 102, 1, 126720, 0x67bce7be
+0, 103, 103, 1, 126720, 0x697e6174
+0, 104, 104, 1, 126720, 0xbe3e3e90
+0, 105, 105, 1, 126720, 0xf3e4bba6
+0, 106, 106, 1, 126720, 0x8124a679
+0, 107, 107, 1, 126720, 0x58d1acde
+0, 108, 108, 1, 126720, 0xd8a15ba3
diff --git a/ffmpeg1/tests/ref/fate/filter-gradfun b/ffmpeg1/tests/ref/fate/filter-gradfun
new file mode 100644
index 0000000..dca442f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/filter-gradfun
@@ -0,0 +1,21 @@
+#tb 0: 1/10
+0, 0, 0, 1, 76800, 0xc87b6728
+0, 1, 1, 1, 76800, 0xb0b24bc8
+0, 2, 2, 1, 76800, 0x45a22d68
+0, 3, 3, 1, 76800, 0x1821013b
+0, 4, 4, 1, 76800, 0xfb17dc4f
+0, 5, 5, 1, 76800, 0x8e7eb458
+0, 6, 6, 1, 76800, 0x0df37d02
+0, 7, 7, 1, 76800, 0x18e4500d
+0, 8, 8, 1, 76800, 0x639316b0
+0, 9, 9, 1, 76800, 0xce00e560
+0, 10, 10, 1, 76800, 0xd533b42c
+0, 11, 11, 1, 76800, 0x0772794c
+0, 12, 12, 1, 76800, 0x99544be0
+0, 13, 13, 1, 76800, 0x5f1a16c1
+0, 14, 14, 1, 76800, 0x90bfe8ac
+0, 15, 15, 1, 76800, 0xbd9bb834
+0, 16, 16, 1, 76800, 0x658d8053
+0, 17, 17, 1, 76800, 0x21cc5656
+0, 18, 18, 1, 76800, 0x6d39208b
+0, 19, 19, 1, 76800, 0x17b0f8cb
diff --git a/ffmpeg1/tests/ref/fate/filter-hqdn3d b/ffmpeg1/tests/ref/fate/filter-hqdn3d
new file mode 100644
index 0000000..d69e6db
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/filter-hqdn3d
@@ -0,0 +1,74 @@
+#tb 0: 1/9
+0, 0, 0, 1, 115200, 0x2c810465
+0, 1, 1, 1, 115200, 0x957c0563
+0, 2, 2, 1, 115200, 0x786c6d5b
+0, 3, 3, 1, 115200, 0xd5ef87d3
+0, 4, 4, 1, 115200, 0x3a2158e2
+0, 5, 5, 1, 115200, 0x19d7d048
+0, 6, 6, 1, 115200, 0x16d5e09a
+0, 7, 7, 1, 115200, 0x73cca454
+0, 8, 8, 1, 115200, 0x4d6be3bc
+0, 9, 9, 1, 115200, 0x672aad0f
+0, 10, 10, 1, 115200, 0x1bd103b7
+0, 11, 11, 1, 115200, 0xbc3a9c02
+0, 12, 12, 1, 115200, 0xa19cb68c
+0, 13, 13, 1, 115200, 0x83477b6c
+0, 14, 14, 1, 115200, 0x68b6898e
+0, 15, 15, 1, 115200, 0xebbc5701
+0, 16, 16, 1, 115200, 0x37e873db
+0, 17, 17, 1, 115200, 0xcf9e7ad1
+0, 18, 18, 1, 115200, 0x3fdffd3a
+0, 19, 19, 1, 115200, 0x413da058
+0, 20, 20, 1, 115200, 0xa432b2f6
+0, 21, 21, 1, 115200, 0x9c532b61
+0, 22, 22, 1, 115200, 0x40c03856
+0, 23, 23, 1, 115200, 0xf8310ec7
+0, 24, 24, 1, 115200, 0x89246da7
+0, 25, 25, 1, 115200, 0x501d4dd0
+0, 26, 26, 1, 115200, 0xe5151ebf
+0, 27, 27, 1, 115200, 0xc166e201
+0, 28, 28, 1, 115200, 0xded25b69
+0, 29, 29, 1, 115200, 0xb51ec43f
+0, 30, 30, 1, 115200, 0x9bba20eb
+0, 31, 31, 1, 115200, 0x7a7b9278
+0, 32, 32, 1, 115200, 0xe98475d0
+0, 33, 33, 1, 115200, 0x960dc933
+0, 34, 34, 1, 115200, 0xe93f558b
+0, 35, 35, 1, 115200, 0x37ae3e42
+0, 36, 36, 1, 115200, 0x0ecaf64a
+0, 37, 37, 1, 115200, 0xd5938191
+0, 38, 38, 1, 115200, 0xeb04510a
+0, 39, 39, 1, 115200, 0xf5729201
+0, 40, 40, 1, 115200, 0xb2c04015
+0, 41, 41, 1, 115200, 0xd883143e
+0, 42, 42, 1, 115200, 0x5e04197b
+0, 43, 43, 1, 115200, 0x6b846e24
+0, 44, 44, 1, 115200, 0x026e7a0b
+0, 45, 45, 1, 115200, 0xf8c6708b
+0, 46, 46, 1, 115200, 0x3fe75c63
+0, 47, 47, 1, 115200, 0xf56467b1
+0, 48, 48, 1, 115200, 0xf1230483
+0, 49, 49, 1, 115200, 0x35a615ce
+0, 50, 50, 1, 115200, 0x30b42d7b
+0, 51, 51, 1, 115200, 0x8b7f22a1
+0, 52, 52, 1, 115200, 0x03a2e789
+0, 53, 53, 1, 115200, 0x15532e9e
+0, 54, 54, 1, 115200, 0xbe85f37a
+0, 55, 55, 1, 115200, 0x2c581d60
+0, 56, 56, 1, 115200, 0xd7a506ed
+0, 57, 57, 1, 115200, 0x35e09799
+0, 58, 58, 1, 115200, 0x2d4f5499
+0, 59, 59, 1, 115200, 0x92fdc85b
+0, 60, 60, 1, 115200, 0x33f4888a
+0, 61, 61, 1, 115200, 0x65e04e05
+0, 62, 62, 1, 115200, 0x14766728
+0, 63, 63, 1, 115200, 0x2a432c3f
+0, 64, 64, 1, 115200, 0x136a1362
+0, 65, 65, 1, 115200, 0xfbf4cb01
+0, 66, 66, 1, 115200, 0x7dcaff69
+0, 67, 67, 1, 115200, 0x5afd3b9e
+0, 68, 68, 1, 115200, 0x86fcb122
+0, 69, 69, 1, 115200, 0xc988b519
+0, 70, 70, 1, 115200, 0x48fd3e75
+0, 71, 71, 1, 115200, 0x2728a2d7
+0, 72, 72, 1, 115200, 0xa2ac6418
diff --git a/ffmpeg1/tests/ref/fate/filter-metadata-ebur128 b/ffmpeg1/tests/ref/fate/filter-metadata-ebur128
new file mode 100644
index 0000000..7a060bd
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/filter-metadata-ebur128
@@ -0,0 +1,280 @@
+pkt_pts=0|tag:lavfi.r128.M=-120.691|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-70.000|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=4800|tag:lavfi.r128.M=-120.691|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-70.000|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=9600|tag:lavfi.r128.M=-120.691|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-70.000|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=14400|tag:lavfi.r128.M=-21.333|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-21.340|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=19200|tag:lavfi.r128.M=-21.249|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-21.295|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=24000|tag:lavfi.r128.M=-21.235|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-21.276|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=28800|tag:lavfi.r128.M=-21.587|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-21.353|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=33600|tag:lavfi.r128.M=-21.999|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-21.475|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=38400|tag:lavfi.r128.M=-22.371|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-21.613|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=43200|tag:lavfi.r128.M=-23.195|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-21.807|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=48000|tag:lavfi.r128.M=-23.550|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-21.991|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=52800|tag:lavfi.r128.M=-23.901|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-22.167|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=57600|tag:lavfi.r128.M=-24.461|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-22.350|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=62400|tag:lavfi.r128.M=-24.984|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-22.533|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=67200|tag:lavfi.r128.M=-25.448|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-22.714|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=72000|tag:lavfi.r128.M=-25.847|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-22.889|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=76800|tag:lavfi.r128.M=-26.187|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-23.058|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=81600|tag:lavfi.r128.M=-26.229|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-23.210|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=86400|tag:lavfi.r128.M=-26.132|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-23.346|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=91200|tag:lavfi.r128.M=-26.164|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-23.470|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=96000|tag:lavfi.r128.M=-26.282|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-23.586|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=100800|tag:lavfi.r128.M=-26.371|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-23.696|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=105600|tag:lavfi.r128.M=-26.421|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-23.799|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=110400|tag:lavfi.r128.M=-26.362|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-23.892|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=115200|tag:lavfi.r128.M=-26.278|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-23.977|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=120000|tag:lavfi.r128.M=-26.524|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-24.061|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=124800|tag:lavfi.r128.M=-26.867|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-24.148|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=129600|tag:lavfi.r128.M=-27.286|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-24.239|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=134400|tag:lavfi.r128.M=-27.372|tag:lavfi.r128.S=-120.691|tag:lavfi.r128.I=-24.326|tag:lavfi.r128.LRA=0.000|tag:lavfi.r128.LRA.low=0.000|tag:lavfi.r128.LRA.high=0.000
+pkt_pts=139200|tag:lavfi.r128.M=-27.449|tag:lavfi.r128.S=-24.296|tag:lavfi.r128.I=-24.409|tag:lavfi.r128.LRA=20.000|tag:lavfi.r128.LRA.low=-44.300|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=144000|tag:lavfi.r128.M=-27.083|tag:lavfi.r128.S=-24.455|tag:lavfi.r128.I=-24.481|tag:lavfi.r128.LRA=20.080|tag:lavfi.r128.LRA.low=-44.380|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=148800|tag:lavfi.r128.M=-26.899|tag:lavfi.r128.S=-24.719|tag:lavfi.r128.I=-24.545|tag:lavfi.r128.LRA=20.190|tag:lavfi.r128.LRA.low=-44.490|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=153600|tag:lavfi.r128.M=-26.880|tag:lavfi.r128.S=-24.962|tag:lavfi.r128.I=-24.606|tag:lavfi.r128.LRA=20.310|tag:lavfi.r128.LRA.low=-44.610|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=158400|tag:lavfi.r128.M=-26.886|tag:lavfi.r128.S=-25.214|tag:lavfi.r128.I=-24.664|tag:lavfi.r128.LRA=0.920|tag:lavfi.r128.LRA.low=-25.220|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=163200|tag:lavfi.r128.M=-27.096|tag:lavfi.r128.S=-25.459|tag:lavfi.r128.I=-24.722|tag:lavfi.r128.LRA=1.160|tag:lavfi.r128.LRA.low=-25.460|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=168000|tag:lavfi.r128.M=-26.430|tag:lavfi.r128.S=-25.729|tag:lavfi.r128.I=-24.765|tag:lavfi.r128.LRA=1.430|tag:lavfi.r128.LRA.low=-25.730|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=172800|tag:lavfi.r128.M=-25.736|tag:lavfi.r128.S=-25.816|tag:lavfi.r128.I=-24.791|tag:lavfi.r128.LRA=1.520|tag:lavfi.r128.LRA.low=-25.820|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=177600|tag:lavfi.r128.M=-25.976|tag:lavfi.r128.S=-26.011|tag:lavfi.r128.I=-24.821|tag:lavfi.r128.LRA=1.720|tag:lavfi.r128.LRA.low=-26.020|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=182400|tag:lavfi.r128.M=-26.417|tag:lavfi.r128.S=-26.240|tag:lavfi.r128.I=-24.858|tag:lavfi.r128.LRA=1.940|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=187200|tag:lavfi.r128.M=-27.102|tag:lavfi.r128.S=-26.393|tag:lavfi.r128.I=-24.906|tag:lavfi.r128.LRA=1.940|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=192000|tag:lavfi.r128.M=-28.221|tag:lavfi.r128.S=-26.511|tag:lavfi.r128.I=-24.968|tag:lavfi.r128.LRA=2.060|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=196800|tag:lavfi.r128.M=-27.900|tag:lavfi.r128.S=-26.618|tag:lavfi.r128.I=-25.023|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=201600|tag:lavfi.r128.M=-27.179|tag:lavfi.r128.S=-26.666|tag:lavfi.r128.I=-25.065|tag:lavfi.r128.LRA=2.210|tag:lavfi.r128.LRA.low=-26.670|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=206400|tag:lavfi.r128.M=-26.274|tag:lavfi.r128.S=-26.604|tag:lavfi.r128.I=-25.091|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=211200|tag:lavfi.r128.M=-25.385|tag:lavfi.r128.S=-26.501|tag:lavfi.r128.I=-25.098|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=216000|tag:lavfi.r128.M=-25.220|tag:lavfi.r128.S=-26.511|tag:lavfi.r128.I=-25.101|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=220800|tag:lavfi.r128.M=-23.888|tag:lavfi.r128.S=-26.237|tag:lavfi.r128.I=-25.069|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=225600|tag:lavfi.r128.M=-24.544|tag:lavfi.r128.S=-26.315|tag:lavfi.r128.I=-25.057|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=230400|tag:lavfi.r128.M=-25.042|tag:lavfi.r128.S=-26.325|tag:lavfi.r128.I=-25.057|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=235200|tag:lavfi.r128.M=-25.146|tag:lavfi.r128.S=-26.349|tag:lavfi.r128.I=-25.059|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=240000|tag:lavfi.r128.M=-27.510|tag:lavfi.r128.S=-26.380|tag:lavfi.r128.I=-25.098|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=244800|tag:lavfi.r128.M=-26.266|tag:lavfi.r128.S=-26.301|tag:lavfi.r128.I=-25.119|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=249600|tag:lavfi.r128.M=-26.455|tag:lavfi.r128.S=-26.329|tag:lavfi.r128.I=-25.142|tag:lavfi.r128.LRA=2.160|tag:lavfi.r128.LRA.low=-26.620|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=254400|tag:lavfi.r128.M=-26.169|tag:lavfi.r128.S=-26.323|tag:lavfi.r128.I=-25.160|tag:lavfi.r128.LRA=2.150|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=259200|tag:lavfi.r128.M=-25.834|tag:lavfi.r128.S=-26.317|tag:lavfi.r128.I=-25.172|tag:lavfi.r128.LRA=2.150|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=264000|tag:lavfi.r128.M=-26.461|tag:lavfi.r128.S=-26.293|tag:lavfi.r128.I=-25.194|tag:lavfi.r128.LRA=2.150|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=268800|tag:lavfi.r128.M=-26.327|tag:lavfi.r128.S=-26.262|tag:lavfi.r128.I=-25.212|tag:lavfi.r128.LRA=2.150|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=273600|tag:lavfi.r128.M=-26.559|tag:lavfi.r128.S=-26.239|tag:lavfi.r128.I=-25.233|tag:lavfi.r128.LRA=2.150|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=278400|tag:lavfi.r128.M=-26.657|tag:lavfi.r128.S=-26.236|tag:lavfi.r128.I=-25.255|tag:lavfi.r128.LRA=2.150|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=283200|tag:lavfi.r128.M=-26.563|tag:lavfi.r128.S=-26.193|tag:lavfi.r128.I=-25.275|tag:lavfi.r128.LRA=1.890|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=288000|tag:lavfi.r128.M=-26.632|tag:lavfi.r128.S=-26.210|tag:lavfi.r128.I=-25.295|tag:lavfi.r128.LRA=1.890|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=292800|tag:lavfi.r128.M=-26.750|tag:lavfi.r128.S=-26.222|tag:lavfi.r128.I=-25.316|tag:lavfi.r128.LRA=1.890|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=297600|tag:lavfi.r128.M=-26.727|tag:lavfi.r128.S=-26.218|tag:lavfi.r128.I=-25.336|tag:lavfi.r128.LRA=1.890|tag:lavfi.r128.LRA.low=-26.610|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=302400|tag:lavfi.r128.M=-26.945|tag:lavfi.r128.S=-26.200|tag:lavfi.r128.I=-25.358|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=307200|tag:lavfi.r128.M=-26.839|tag:lavfi.r128.S=-26.181|tag:lavfi.r128.I=-25.379|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=312000|tag:lavfi.r128.M=-26.056|tag:lavfi.r128.S=-26.172|tag:lavfi.r128.I=-25.389|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=316800|tag:lavfi.r128.M=-26.589|tag:lavfi.r128.S=-26.335|tag:lavfi.r128.I=-25.405|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=321600|tag:lavfi.r128.M=-27.190|tag:lavfi.r128.S=-26.351|tag:lavfi.r128.I=-25.428|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=326400|tag:lavfi.r128.M=-28.078|tag:lavfi.r128.S=-26.359|tag:lavfi.r128.I=-25.458|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=331200|tag:lavfi.r128.M=-27.878|tag:lavfi.r128.S=-26.250|tag:lavfi.r128.I=-25.486|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=336000|tag:lavfi.r128.M=-26.604|tag:lavfi.r128.S=-26.169|tag:lavfi.r128.I=-25.500|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=340800|tag:lavfi.r128.M=-26.289|tag:lavfi.r128.S=-26.173|tag:lavfi.r128.I=-25.511|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=345600|tag:lavfi.r128.M=-24.672|tag:lavfi.r128.S=-26.000|tag:lavfi.r128.I=-25.498|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=350400|tag:lavfi.r128.M=-25.114|tag:lavfi.r128.S=-26.077|tag:lavfi.r128.I=-25.492|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=355200|tag:lavfi.r128.M=-24.561|tag:lavfi.r128.S=-26.027|tag:lavfi.r128.I=-25.478|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=360000|tag:lavfi.r128.M=-23.558|tag:lavfi.r128.S=-25.849|tag:lavfi.r128.I=-25.445|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=364800|tag:lavfi.r128.M=-24.650|tag:lavfi.r128.S=-26.154|tag:lavfi.r128.I=-25.433|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=369600|tag:lavfi.r128.M=-23.700|tag:lavfi.r128.S=-25.903|tag:lavfi.r128.I=-25.405|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=374400|tag:lavfi.r128.M=-24.144|tag:lavfi.r128.S=-25.863|tag:lavfi.r128.I=-25.386|tag:lavfi.r128.LRA=1.800|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=379200|tag:lavfi.r128.M=-23.935|tag:lavfi.r128.S=-25.635|tag:lavfi.r128.I=-25.364|tag:lavfi.r128.LRA=1.550|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=384000|tag:lavfi.r128.M=-22.202|tag:lavfi.r128.S=-25.242|tag:lavfi.r128.I=-25.305|tag:lavfi.r128.LRA=1.550|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=388800|tag:lavfi.r128.M=-22.634|tag:lavfi.r128.S=-25.257|tag:lavfi.r128.I=-25.258|tag:lavfi.r128.LRA=1.550|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=393600|tag:lavfi.r128.M=-22.480|tag:lavfi.r128.S=-25.165|tag:lavfi.r128.I=-25.210|tag:lavfi.r128.LRA=1.550|tag:lavfi.r128.LRA.low=-26.520|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=398400|tag:lavfi.r128.M=-23.030|tag:lavfi.r128.S=-25.124|tag:lavfi.r128.I=-25.176|tag:lavfi.r128.LRA=1.540|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=403200|tag:lavfi.r128.M=-24.357|tag:lavfi.r128.S=-25.042|tag:lavfi.r128.I=-25.165|tag:lavfi.r128.LRA=1.540|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=408000|tag:lavfi.r128.M=-24.346|tag:lavfi.r128.S=-24.990|tag:lavfi.r128.I=-25.154|tag:lavfi.r128.LRA=1.540|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=412800|tag:lavfi.r128.M=-24.868|tag:lavfi.r128.S=-24.992|tag:lavfi.r128.I=-25.151|tag:lavfi.r128.LRA=1.540|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=417600|tag:lavfi.r128.M=-25.190|tag:lavfi.r128.S=-24.972|tag:lavfi.r128.I=-25.151|tag:lavfi.r128.LRA=1.540|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=422400|tag:lavfi.r128.M=-26.094|tag:lavfi.r128.S=-24.987|tag:lavfi.r128.I=-25.161|tag:lavfi.r128.LRA=1.540|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.970
+pkt_pts=427200|tag:lavfi.r128.M=-26.093|tag:lavfi.r128.S=-24.944|tag:lavfi.r128.I=-25.171|tag:lavfi.r128.LRA=1.560|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.950
+pkt_pts=432000|tag:lavfi.r128.M=-26.243|tag:lavfi.r128.S=-24.955|tag:lavfi.r128.I=-25.182|tag:lavfi.r128.LRA=1.560|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.950
+pkt_pts=436800|tag:lavfi.r128.M=-25.959|tag:lavfi.r128.S=-24.896|tag:lavfi.r128.I=-25.190|tag:lavfi.r128.LRA=1.610|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.900
+pkt_pts=441600|tag:lavfi.r128.M=-24.870|tag:lavfi.r128.S=-24.785|tag:lavfi.r128.I=-25.186|tag:lavfi.r128.LRA=1.720|tag:lavfi.r128.LRA.low=-26.510|tag:lavfi.r128.LRA.high=-24.790
+pkt_pts=446400|tag:lavfi.r128.M=-24.644|tag:lavfi.r128.S=-24.696|tag:lavfi.r128.I=-25.180|tag:lavfi.r128.LRA=1.680|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.720
+pkt_pts=451200|tag:lavfi.r128.M=-24.141|tag:lavfi.r128.S=-24.643|tag:lavfi.r128.I=-25.167|tag:lavfi.r128.LRA=1.700|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.700
+pkt_pts=456000|tag:lavfi.r128.M=-23.990|tag:lavfi.r128.S=-24.634|tag:lavfi.r128.I=-25.153|tag:lavfi.r128.LRA=1.750|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.650
+pkt_pts=460800|tag:lavfi.r128.M=-24.020|tag:lavfi.r128.S=-24.487|tag:lavfi.r128.I=-25.139|tag:lavfi.r128.LRA=1.760|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.640
+pkt_pts=465600|tag:lavfi.r128.M=-24.627|tag:lavfi.r128.S=-24.442|tag:lavfi.r128.I=-25.133|tag:lavfi.r128.LRA=1.910|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.490
+pkt_pts=470400|tag:lavfi.r128.M=-25.115|tag:lavfi.r128.S=-24.394|tag:lavfi.r128.I=-25.133|tag:lavfi.r128.LRA=1.940|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=475200|tag:lavfi.r128.M=-25.672|tag:lavfi.r128.S=-24.456|tag:lavfi.r128.I=-25.138|tag:lavfi.r128.LRA=1.940|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=480000|tag:lavfi.r128.M=-26.632|tag:lavfi.r128.S=-24.490|tag:lavfi.r128.I=-25.151|tag:lavfi.r128.LRA=1.940|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=484800|tag:lavfi.r128.M=-25.996|tag:lavfi.r128.S=-24.416|tag:lavfi.r128.I=-25.159|tag:lavfi.r128.LRA=1.940|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.460
+pkt_pts=489600|tag:lavfi.r128.M=-24.937|tag:lavfi.r128.S=-24.426|tag:lavfi.r128.I=-25.157|tag:lavfi.r128.LRA=1.950|tag:lavfi.r128.LRA.low=-26.400|tag:lavfi.r128.LRA.high=-24.450
+pkt_pts=494400|tag:lavfi.r128.M=-22.685|tag:lavfi.r128.S=-24.098|tag:lavfi.r128.I=-25.124|tag:lavfi.r128.LRA=1.960|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.430
+pkt_pts=499200|tag:lavfi.r128.M=-21.913|tag:lavfi.r128.S=-24.036|tag:lavfi.r128.I=-25.078|tag:lavfi.r128.LRA=1.970|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.420
+pkt_pts=504000|tag:lavfi.r128.M=-21.524|tag:lavfi.r128.S=-24.013|tag:lavfi.r128.I=-25.025|tag:lavfi.r128.LRA=1.990|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.400
+pkt_pts=508800|tag:lavfi.r128.M=-21.267|tag:lavfi.r128.S=-23.821|tag:lavfi.r128.I=-24.968|tag:lavfi.r128.LRA=2.090|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.300
+pkt_pts=513600|tag:lavfi.r128.M=-22.730|tag:lavfi.r128.S=-23.942|tag:lavfi.r128.I=-24.940|tag:lavfi.r128.LRA=2.290|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.100
+pkt_pts=518400|tag:lavfi.r128.M=-23.373|tag:lavfi.r128.S=-23.927|tag:lavfi.r128.I=-24.923|tag:lavfi.r128.LRA=2.350|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=523200|tag:lavfi.r128.M=-24.172|tag:lavfi.r128.S=-24.045|tag:lavfi.r128.I=-24.915|tag:lavfi.r128.LRA=2.350|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=528000|tag:lavfi.r128.M=-25.060|tag:lavfi.r128.S=-24.247|tag:lavfi.r128.I=-24.916|tag:lavfi.r128.LRA=2.350|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=532800|tag:lavfi.r128.M=-24.555|tag:lavfi.r128.S=-24.232|tag:lavfi.r128.I=-24.913|tag:lavfi.r128.LRA=2.350|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=537600|tag:lavfi.r128.M=-25.070|tag:lavfi.r128.S=-24.306|tag:lavfi.r128.I=-24.915|tag:lavfi.r128.LRA=2.350|tag:lavfi.r128.LRA.low=-26.390|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=542400|tag:lavfi.r128.M=-25.104|tag:lavfi.r128.S=-24.332|tag:lavfi.r128.I=-24.916|tag:lavfi.r128.LRA=2.320|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=547200|tag:lavfi.r128.M=-25.813|tag:lavfi.r128.S=-24.411|tag:lavfi.r128.I=-24.924|tag:lavfi.r128.LRA=2.320|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=552000|tag:lavfi.r128.M=-25.950|tag:lavfi.r128.S=-24.409|tag:lavfi.r128.I=-24.932|tag:lavfi.r128.LRA=2.320|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=556800|tag:lavfi.r128.M=-25.759|tag:lavfi.r128.S=-24.402|tag:lavfi.r128.I=-24.938|tag:lavfi.r128.LRA=2.320|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=561600|tag:lavfi.r128.M=-25.702|tag:lavfi.r128.S=-24.385|tag:lavfi.r128.I=-24.944|tag:lavfi.r128.LRA=2.320|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=566400|tag:lavfi.r128.M=-24.540|tag:lavfi.r128.S=-24.245|tag:lavfi.r128.I=-24.941|tag:lavfi.r128.LRA=2.320|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=571200|tag:lavfi.r128.M=-23.455|tag:lavfi.r128.S=-24.093|tag:lavfi.r128.I=-24.926|tag:lavfi.r128.LRA=2.310|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-24.050
+pkt_pts=576000|tag:lavfi.r128.M=-22.161|tag:lavfi.r128.S=-23.848|tag:lavfi.r128.I=-24.893|tag:lavfi.r128.LRA=2.320|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-24.040
+pkt_pts=580800|tag:lavfi.r128.M=-21.752|tag:lavfi.r128.S=-23.772|tag:lavfi.r128.I=-24.855|tag:lavfi.r128.LRA=2.340|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-24.020
+pkt_pts=585600|tag:lavfi.r128.M=-21.869|tag:lavfi.r128.S=-23.772|tag:lavfi.r128.I=-24.819|tag:lavfi.r128.LRA=2.410|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.950
+pkt_pts=590400|tag:lavfi.r128.M=-22.553|tag:lavfi.r128.S=-23.788|tag:lavfi.r128.I=-24.795|tag:lavfi.r128.LRA=2.430|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.930
+pkt_pts=595200|tag:lavfi.r128.M=-23.563|tag:lavfi.r128.S=-23.771|tag:lavfi.r128.I=-24.783|tag:lavfi.r128.LRA=2.510|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.850
+pkt_pts=600000|tag:lavfi.r128.M=-23.930|tag:lavfi.r128.S=-23.764|tag:lavfi.r128.I=-24.776|tag:lavfi.r128.LRA=2.530|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.830
+pkt_pts=604800|tag:lavfi.r128.M=-24.599|tag:lavfi.r128.S=-23.841|tag:lavfi.r128.I=-24.774|tag:lavfi.r128.LRA=2.530|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.830
+pkt_pts=609600|tag:lavfi.r128.M=-24.476|tag:lavfi.r128.S=-23.772|tag:lavfi.r128.I=-24.772|tag:lavfi.r128.LRA=2.570|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.790
+pkt_pts=614400|tag:lavfi.r128.M=-24.380|tag:lavfi.r128.S=-23.694|tag:lavfi.r128.I=-24.769|tag:lavfi.r128.LRA=2.580|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.780
+pkt_pts=619200|tag:lavfi.r128.M=-23.440|tag:lavfi.r128.S=-23.520|tag:lavfi.r128.I=-24.756|tag:lavfi.r128.LRA=2.580|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.780
+pkt_pts=624000|tag:lavfi.r128.M=-22.290|tag:lavfi.r128.S=-23.347|tag:lavfi.r128.I=-24.731|tag:lavfi.r128.LRA=2.580|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.780
+pkt_pts=628800|tag:lavfi.r128.M=-21.092|tag:lavfi.r128.S=-23.100|tag:lavfi.r128.I=-24.687|tag:lavfi.r128.LRA=2.580|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.780
+pkt_pts=633600|tag:lavfi.r128.M=-20.607|tag:lavfi.r128.S=-23.007|tag:lavfi.r128.I=-24.635|tag:lavfi.r128.LRA=2.590|tag:lavfi.r128.LRA.low=-26.360|tag:lavfi.r128.LRA.high=-23.770
+pkt_pts=638400|tag:lavfi.r128.M=-20.608|tag:lavfi.r128.S=-23.110|tag:lavfi.r128.I=-24.585|tag:lavfi.r128.LRA=2.650|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.700
+pkt_pts=643200|tag:lavfi.r128.M=-20.622|tag:lavfi.r128.S=-23.077|tag:lavfi.r128.I=-24.536|tag:lavfi.r128.LRA=2.820|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.530
+pkt_pts=648000|tag:lavfi.r128.M=-21.543|tag:lavfi.r128.S=-23.104|tag:lavfi.r128.I=-24.504|tag:lavfi.r128.LRA=3.000|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.350
+pkt_pts=652800|tag:lavfi.r128.M=-22.071|tag:lavfi.r128.S=-23.156|tag:lavfi.r128.I=-24.480|tag:lavfi.r128.LRA=3.190|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.160
+pkt_pts=657600|tag:lavfi.r128.M=-22.327|tag:lavfi.r128.S=-23.049|tag:lavfi.r128.I=-24.459|tag:lavfi.r128.LRA=3.240|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.110
+pkt_pts=662400|tag:lavfi.r128.M=-22.810|tag:lavfi.r128.S=-23.003|tag:lavfi.r128.I=-24.445|tag:lavfi.r128.LRA=3.240|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.110
+pkt_pts=667200|tag:lavfi.r128.M=-22.676|tag:lavfi.r128.S=-22.921|tag:lavfi.r128.I=-24.429|tag:lavfi.r128.LRA=3.240|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.110
+pkt_pts=672000|tag:lavfi.r128.M=-22.942|tag:lavfi.r128.S=-22.927|tag:lavfi.r128.I=-24.416|tag:lavfi.r128.LRA=3.250|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.100
+pkt_pts=676800|tag:lavfi.r128.M=-23.165|tag:lavfi.r128.S=-22.897|tag:lavfi.r128.I=-24.406|tag:lavfi.r128.LRA=3.270|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.080
+pkt_pts=681600|tag:lavfi.r128.M=-23.339|tag:lavfi.r128.S=-22.830|tag:lavfi.r128.I=-24.397|tag:lavfi.r128.LRA=3.300|tag:lavfi.r128.LRA.low=-26.350|tag:lavfi.r128.LRA.high=-23.050
+pkt_pts=686400|tag:lavfi.r128.M=-23.672|tag:lavfi.r128.S=-22.786|tag:lavfi.r128.I=-24.392|tag:lavfi.r128.LRA=3.330|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-23.010
+pkt_pts=691200|tag:lavfi.r128.M=-23.306|tag:lavfi.r128.S=-22.701|tag:lavfi.r128.I=-24.383|tag:lavfi.r128.LRA=3.330|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-23.010
+pkt_pts=696000|tag:lavfi.r128.M=-23.384|tag:lavfi.r128.S=-22.672|tag:lavfi.r128.I=-24.375|tag:lavfi.r128.LRA=3.410|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-22.930
+pkt_pts=700800|tag:lavfi.r128.M=-23.531|tag:lavfi.r128.S=-22.637|tag:lavfi.r128.I=-24.369|tag:lavfi.r128.LRA=3.410|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-22.930
+pkt_pts=705600|tag:lavfi.r128.M=-23.311|tag:lavfi.r128.S=-22.574|tag:lavfi.r128.I=-24.361|tag:lavfi.r128.LRA=3.440|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-22.900
+pkt_pts=710400|tag:lavfi.r128.M=-23.705|tag:lavfi.r128.S=-22.621|tag:lavfi.r128.I=-24.356|tag:lavfi.r128.LRA=3.500|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-22.840
+pkt_pts=715200|tag:lavfi.r128.M=-24.104|tag:lavfi.r128.S=-22.740|tag:lavfi.r128.I=-24.354|tag:lavfi.r128.LRA=3.550|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-22.790
+pkt_pts=720000|tag:lavfi.r128.M=-24.403|tag:lavfi.r128.S=-22.905|tag:lavfi.r128.I=-24.355|tag:lavfi.r128.LRA=3.550|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-22.790
+pkt_pts=724800|tag:lavfi.r128.M=-24.337|tag:lavfi.r128.S=-22.900|tag:lavfi.r128.I=-24.354|tag:lavfi.r128.LRA=3.550|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-22.790
+pkt_pts=729600|tag:lavfi.r128.M=-23.538|tag:lavfi.r128.S=-22.846|tag:lavfi.r128.I=-24.348|tag:lavfi.r128.LRA=3.550|tag:lavfi.r128.LRA.low=-26.340|tag:lavfi.r128.LRA.high=-22.790
+pkt_pts=734400|tag:lavfi.r128.M=-22.774|tag:lavfi.r128.S=-22.770|tag:lavfi.r128.I=-24.336|tag:lavfi.r128.LRA=3.560|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.770
+pkt_pts=739200|tag:lavfi.r128.M=-21.589|tag:lavfi.r128.S=-22.628|tag:lavfi.r128.I=-24.311|tag:lavfi.r128.LRA=3.590|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.740
+pkt_pts=744000|tag:lavfi.r128.M=-21.003|tag:lavfi.r128.S=-22.482|tag:lavfi.r128.I=-24.279|tag:lavfi.r128.LRA=3.620|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.710
+pkt_pts=748800|tag:lavfi.r128.M=-21.057|tag:lavfi.r128.S=-22.384|tag:lavfi.r128.I=-24.248|tag:lavfi.r128.LRA=3.650|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.680
+pkt_pts=753600|tag:lavfi.r128.M=-20.378|tag:lavfi.r128.S=-22.196|tag:lavfi.r128.I=-24.208|tag:lavfi.r128.LRA=3.690|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.640
+pkt_pts=758400|tag:lavfi.r128.M=-20.735|tag:lavfi.r128.S=-22.147|tag:lavfi.r128.I=-24.174|tag:lavfi.r128.LRA=3.700|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.630
+pkt_pts=763200|tag:lavfi.r128.M=-21.502|tag:lavfi.r128.S=-22.228|tag:lavfi.r128.I=-24.150|tag:lavfi.r128.LRA=3.700|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.630
+pkt_pts=768000|tag:lavfi.r128.M=-21.158|tag:lavfi.r128.S=-22.211|tag:lavfi.r128.I=-24.123|tag:lavfi.r128.LRA=3.700|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.630
+pkt_pts=772800|tag:lavfi.r128.M=-22.252|tag:lavfi.r128.S=-22.375|tag:lavfi.r128.I=-24.109|tag:lavfi.r128.LRA=3.750|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.580
+pkt_pts=777600|tag:lavfi.r128.M=-22.753|tag:lavfi.r128.S=-22.481|tag:lavfi.r128.I=-24.099|tag:lavfi.r128.LRA=3.840|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.490
+pkt_pts=782400|tag:lavfi.r128.M=-22.726|tag:lavfi.r128.S=-22.565|tag:lavfi.r128.I=-24.089|tag:lavfi.r128.LRA=3.840|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.490
+pkt_pts=787200|tag:lavfi.r128.M=-23.676|tag:lavfi.r128.S=-22.655|tag:lavfi.r128.I=-24.086|tag:lavfi.r128.LRA=3.840|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.490
+pkt_pts=792000|tag:lavfi.r128.M=-23.719|tag:lavfi.r128.S=-22.660|tag:lavfi.r128.I=-24.084|tag:lavfi.r128.LRA=3.840|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.490
+pkt_pts=796800|tag:lavfi.r128.M=-23.765|tag:lavfi.r128.S=-22.692|tag:lavfi.r128.I=-24.082|tag:lavfi.r128.LRA=3.840|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.490
+pkt_pts=801600|tag:lavfi.r128.M=-22.760|tag:lavfi.r128.S=-22.624|tag:lavfi.r128.I=-24.073|tag:lavfi.r128.LRA=3.840|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.490
+pkt_pts=806400|tag:lavfi.r128.M=-21.532|tag:lavfi.r128.S=-22.468|tag:lavfi.r128.I=-24.052|tag:lavfi.r128.LRA=3.840|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.490
+pkt_pts=811200|tag:lavfi.r128.M=-21.329|tag:lavfi.r128.S=-22.455|tag:lavfi.r128.I=-24.029|tag:lavfi.r128.LRA=3.860|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.470
+pkt_pts=816000|tag:lavfi.r128.M=-20.701|tag:lavfi.r128.S=-22.338|tag:lavfi.r128.I=-24.000|tag:lavfi.r128.LRA=3.870|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.460
+pkt_pts=820800|tag:lavfi.r128.M=-20.533|tag:lavfi.r128.S=-22.218|tag:lavfi.r128.I=-23.969|tag:lavfi.r128.LRA=3.940|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.390
+pkt_pts=825600|tag:lavfi.r128.M=-21.049|tag:lavfi.r128.S=-22.151|tag:lavfi.r128.I=-23.944|tag:lavfi.r128.LRA=3.950|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.380
+pkt_pts=830400|tag:lavfi.r128.M=-21.066|tag:lavfi.r128.S=-22.110|tag:lavfi.r128.I=-23.920|tag:lavfi.r128.LRA=3.990|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.340
+pkt_pts=835200|tag:lavfi.r128.M=-20.990|tag:lavfi.r128.S=-22.023|tag:lavfi.r128.I=-23.896|tag:lavfi.r128.LRA=4.100|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.230
+pkt_pts=840000|tag:lavfi.r128.M=-21.658|tag:lavfi.r128.S=-22.007|tag:lavfi.r128.I=-23.879|tag:lavfi.r128.LRA=4.110|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.220
+pkt_pts=844800|tag:lavfi.r128.M=-21.649|tag:lavfi.r128.S=-21.928|tag:lavfi.r128.I=-23.863|tag:lavfi.r128.LRA=4.110|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.220
+pkt_pts=849600|tag:lavfi.r128.M=-22.120|tag:lavfi.r128.S=-21.973|tag:lavfi.r128.I=-23.850|tag:lavfi.r128.LRA=4.130|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.200
+pkt_pts=854400|tag:lavfi.r128.M=-23.297|tag:lavfi.r128.S=-21.984|tag:lavfi.r128.I=-23.847|tag:lavfi.r128.LRA=4.170|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.160
+pkt_pts=859200|tag:lavfi.r128.M=-22.936|tag:lavfi.r128.S=-21.898|tag:lavfi.r128.I=-23.841|tag:lavfi.r128.LRA=4.170|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.160
+pkt_pts=864000|tag:lavfi.r128.M=-22.360|tag:lavfi.r128.S=-21.736|tag:lavfi.r128.I=-23.831|tag:lavfi.r128.LRA=4.180|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.150
+pkt_pts=868800|tag:lavfi.r128.M=-20.997|tag:lavfi.r128.S=-21.601|tag:lavfi.r128.I=-23.809|tag:lavfi.r128.LRA=4.220|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.110
+pkt_pts=873600|tag:lavfi.r128.M=-20.852|tag:lavfi.r128.S=-21.651|tag:lavfi.r128.I=-23.786|tag:lavfi.r128.LRA=4.300|tag:lavfi.r128.LRA.low=-26.330|tag:lavfi.r128.LRA.high=-22.030
+pkt_pts=878400|tag:lavfi.r128.M=-21.194|tag:lavfi.r128.S=-21.695|tag:lavfi.r128.I=-23.766|tag:lavfi.r128.LRA=4.310|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-22.010
+pkt_pts=883200|tag:lavfi.r128.M=-22.598|tag:lavfi.r128.S=-21.862|tag:lavfi.r128.I=-23.759|tag:lavfi.r128.LRA=4.330|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.990
+pkt_pts=888000|tag:lavfi.r128.M=-24.897|tag:lavfi.r128.S=-22.013|tag:lavfi.r128.I=-23.764|tag:lavfi.r128.LRA=4.330|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.990
+pkt_pts=892800|tag:lavfi.r128.M=-25.212|tag:lavfi.r128.S=-22.080|tag:lavfi.r128.I=-23.771|tag:lavfi.r128.LRA=4.330|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.990
+pkt_pts=897600|tag:lavfi.r128.M=-24.334|tag:lavfi.r128.S=-22.191|tag:lavfi.r128.I=-23.774|tag:lavfi.r128.LRA=4.330|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.990
+pkt_pts=902400|tag:lavfi.r128.M=-22.984|tag:lavfi.r128.S=-22.176|tag:lavfi.r128.I=-23.769|tag:lavfi.r128.LRA=4.330|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.990
+pkt_pts=907200|tag:lavfi.r128.M=-21.388|tag:lavfi.r128.S=-21.996|tag:lavfi.r128.I=-23.753|tag:lavfi.r128.LRA=4.330|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.990
+pkt_pts=912000|tag:lavfi.r128.M=-20.307|tag:lavfi.r128.S=-21.928|tag:lavfi.r128.I=-23.725|tag:lavfi.r128.LRA=4.340|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.980
+pkt_pts=916800|tag:lavfi.r128.M=-20.094|tag:lavfi.r128.S=-21.838|tag:lavfi.r128.I=-23.695|tag:lavfi.r128.LRA=4.390|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.930
+pkt_pts=921600|tag:lavfi.r128.M=-20.032|tag:lavfi.r128.S=-21.756|tag:lavfi.r128.I=-23.665|tag:lavfi.r128.LRA=4.390|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.930
+pkt_pts=926400|tag:lavfi.r128.M=-20.060|tag:lavfi.r128.S=-21.599|tag:lavfi.r128.I=-23.635|tag:lavfi.r128.LRA=4.420|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.900
+pkt_pts=931200|tag:lavfi.r128.M=-20.372|tag:lavfi.r128.S=-21.507|tag:lavfi.r128.I=-23.610|tag:lavfi.r128.LRA=4.450|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.870
+pkt_pts=936000|tag:lavfi.r128.M=-20.643|tag:lavfi.r128.S=-21.468|tag:lavfi.r128.I=-23.588|tag:lavfi.r128.LRA=4.480|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.840
+pkt_pts=940800|tag:lavfi.r128.M=-20.647|tag:lavfi.r128.S=-21.389|tag:lavfi.r128.I=-23.567|tag:lavfi.r128.LRA=4.560|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.760
+pkt_pts=945600|tag:lavfi.r128.M=-21.341|tag:lavfi.r128.S=-21.431|tag:lavfi.r128.I=-23.552|tag:lavfi.r128.LRA=4.580|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.740
+pkt_pts=950400|tag:lavfi.r128.M=-21.704|tag:lavfi.r128.S=-21.530|tag:lavfi.r128.I=-23.540|tag:lavfi.r128.LRA=4.620|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.700
+pkt_pts=955200|tag:lavfi.r128.M=-21.778|tag:lavfi.r128.S=-21.527|tag:lavfi.r128.I=-23.529|tag:lavfi.r128.LRA=4.620|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.700
+pkt_pts=960000|tag:lavfi.r128.M=-22.390|tag:lavfi.r128.S=-21.613|tag:lavfi.r128.I=-23.523|tag:lavfi.r128.LRA=4.660|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=964800|tag:lavfi.r128.M=-22.355|tag:lavfi.r128.S=-21.682|tag:lavfi.r128.I=-23.516|tag:lavfi.r128.LRA=4.660|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=969600|tag:lavfi.r128.M=-22.697|tag:lavfi.r128.S=-21.739|tag:lavfi.r128.I=-23.512|tag:lavfi.r128.LRA=4.660|tag:lavfi.r128.LRA.low=-26.320|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=974400|tag:lavfi.r128.M=-22.814|tag:lavfi.r128.S=-21.745|tag:lavfi.r128.I=-23.508|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=979200|tag:lavfi.r128.M=-22.749|tag:lavfi.r128.S=-21.842|tag:lavfi.r128.I=-23.504|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=984000|tag:lavfi.r128.M=-23.155|tag:lavfi.r128.S=-21.856|tag:lavfi.r128.I=-23.502|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=988800|tag:lavfi.r128.M=-22.927|tag:lavfi.r128.S=-21.893|tag:lavfi.r128.I=-23.499|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=993600|tag:lavfi.r128.M=-22.583|tag:lavfi.r128.S=-21.800|tag:lavfi.r128.I=-23.494|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=998400|tag:lavfi.r128.M=-22.022|tag:lavfi.r128.S=-21.702|tag:lavfi.r128.I=-23.486|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=1003200|tag:lavfi.r128.M=-21.852|tag:lavfi.r128.S=-21.729|tag:lavfi.r128.I=-23.476|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=1008000|tag:lavfi.r128.M=-21.746|tag:lavfi.r128.S=-21.814|tag:lavfi.r128.I=-23.466|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=1012800|tag:lavfi.r128.M=-21.751|tag:lavfi.r128.S=-21.912|tag:lavfi.r128.I=-23.456|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=1017600|tag:lavfi.r128.M=-21.891|tag:lavfi.r128.S=-21.855|tag:lavfi.r128.I=-23.447|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.310|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=1022400|tag:lavfi.r128.M=-21.392|tag:lavfi.r128.S=-21.759|tag:lavfi.r128.I=-23.435|tag:lavfi.r128.LRA=4.640|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=1027200|tag:lavfi.r128.M=-21.375|tag:lavfi.r128.S=-21.660|tag:lavfi.r128.I=-23.422|tag:lavfi.r128.LRA=4.640|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.660
+pkt_pts=1032000|tag:lavfi.r128.M=-21.806|tag:lavfi.r128.S=-21.620|tag:lavfi.r128.I=-23.413|tag:lavfi.r128.LRA=4.680|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1036800|tag:lavfi.r128.M=-21.826|tag:lavfi.r128.S=-21.550|tag:lavfi.r128.I=-23.404|tag:lavfi.r128.LRA=4.680|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1041600|tag:lavfi.r128.M=-22.447|tag:lavfi.r128.S=-21.588|tag:lavfi.r128.I=-23.399|tag:lavfi.r128.LRA=4.690|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.610
+pkt_pts=1046400|tag:lavfi.r128.M=-22.717|tag:lavfi.r128.S=-21.633|tag:lavfi.r128.I=-23.396|tag:lavfi.r128.LRA=4.690|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.610
+pkt_pts=1051200|tag:lavfi.r128.M=-23.325|tag:lavfi.r128.S=-21.845|tag:lavfi.r128.I=-23.396|tag:lavfi.r128.LRA=4.680|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1056000|tag:lavfi.r128.M=-23.105|tag:lavfi.r128.S=-21.933|tag:lavfi.r128.I=-23.394|tag:lavfi.r128.LRA=4.680|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1060800|tag:lavfi.r128.M=-23.086|tag:lavfi.r128.S=-22.015|tag:lavfi.r128.I=-23.393|tag:lavfi.r128.LRA=4.680|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1065600|tag:lavfi.r128.M=-22.412|tag:lavfi.r128.S=-22.001|tag:lavfi.r128.I=-23.388|tag:lavfi.r128.LRA=4.680|tag:lavfi.r128.LRA.low=-26.300|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1070400|tag:lavfi.r128.M=-20.845|tag:lavfi.r128.S=-21.992|tag:lavfi.r128.I=-23.372|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1075200|tag:lavfi.r128.M=-20.738|tag:lavfi.r128.S=-22.001|tag:lavfi.r128.I=-23.356|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1080000|tag:lavfi.r128.M=-20.165|tag:lavfi.r128.S=-21.924|tag:lavfi.r128.I=-23.335|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1084800|tag:lavfi.r128.M=-19.829|tag:lavfi.r128.S=-21.840|tag:lavfi.r128.I=-23.311|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1089600|tag:lavfi.r128.M=-20.699|tag:lavfi.r128.S=-21.887|tag:lavfi.r128.I=-23.295|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1094400|tag:lavfi.r128.M=-20.677|tag:lavfi.r128.S=-21.838|tag:lavfi.r128.I=-23.279|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1099200|tag:lavfi.r128.M=-20.121|tag:lavfi.r128.S=-21.654|tag:lavfi.r128.I=-23.259|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1104000|tag:lavfi.r128.M=-20.893|tag:lavfi.r128.S=-21.635|tag:lavfi.r128.I=-23.245|tag:lavfi.r128.LRA=4.650|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.620
+pkt_pts=1108800|tag:lavfi.r128.M=-19.603|tag:lavfi.r128.S=-21.450|tag:lavfi.r128.I=-23.220|tag:lavfi.r128.LRA=4.660|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.610
+pkt_pts=1113600|tag:lavfi.r128.M=-19.675|tag:lavfi.r128.S=-21.385|tag:lavfi.r128.I=-23.197|tag:lavfi.r128.LRA=4.670|tag:lavfi.r128.LRA.low=-26.270|tag:lavfi.r128.LRA.high=-21.600
+pkt_pts=1118400|tag:lavfi.r128.M=-20.415|tag:lavfi.r128.S=-21.339|tag:lavfi.r128.I=-23.180|tag:lavfi.r128.LRA=4.660|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.590
+pkt_pts=1123200|tag:lavfi.r128.M=-20.446|tag:lavfi.r128.S=-21.333|tag:lavfi.r128.I=-23.164|tag:lavfi.r128.LRA=4.690|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.560
+pkt_pts=1128000|tag:lavfi.r128.M=-21.361|tag:lavfi.r128.S=-21.254|tag:lavfi.r128.I=-23.154|tag:lavfi.r128.LRA=4.720|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.530
+pkt_pts=1132800|tag:lavfi.r128.M=-21.725|tag:lavfi.r128.S=-21.257|tag:lavfi.r128.I=-23.147|tag:lavfi.r128.LRA=4.720|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.530
+pkt_pts=1137600|tag:lavfi.r128.M=-22.311|tag:lavfi.r128.S=-21.311|tag:lavfi.r128.I=-23.143|tag:lavfi.r128.LRA=4.740|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.510
+pkt_pts=1142400|tag:lavfi.r128.M=-21.973|tag:lavfi.r128.S=-21.327|tag:lavfi.r128.I=-23.137|tag:lavfi.r128.LRA=4.780|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.470
+pkt_pts=1147200|tag:lavfi.r128.M=-22.032|tag:lavfi.r128.S=-21.275|tag:lavfi.r128.I=-23.132|tag:lavfi.r128.LRA=4.780|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.470
+pkt_pts=1152000|tag:lavfi.r128.M=-21.631|tag:lavfi.r128.S=-21.243|tag:lavfi.r128.I=-23.125|tag:lavfi.r128.LRA=4.800|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.450
+pkt_pts=1156800|tag:lavfi.r128.M=-20.494|tag:lavfi.r128.S=-21.139|tag:lavfi.r128.I=-23.110|tag:lavfi.r128.LRA=4.810|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.440
+pkt_pts=1161600|tag:lavfi.r128.M=-19.902|tag:lavfi.r128.S=-21.041|tag:lavfi.r128.I=-23.090|tag:lavfi.r128.LRA=4.860|tag:lavfi.r128.LRA.low=-26.250|tag:lavfi.r128.LRA.high=-21.390
+pkt_pts=1166400|tag:lavfi.r128.M=-20.221|tag:lavfi.r128.S=-21.104|tag:lavfi.r128.I=-23.073|tag:lavfi.r128.LRA=4.850|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.390
+pkt_pts=1171200|tag:lavfi.r128.M=-20.245|tag:lavfi.r128.S=-21.080|tag:lavfi.r128.I=-23.057|tag:lavfi.r128.LRA=4.900|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.340
+pkt_pts=1176000|tag:lavfi.r128.M=-21.470|tag:lavfi.r128.S=-21.099|tag:lavfi.r128.I=-23.049|tag:lavfi.r128.LRA=4.900|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.340
+pkt_pts=1180800|tag:lavfi.r128.M=-22.623|tag:lavfi.r128.S=-21.123|tag:lavfi.r128.I=-23.047|tag:lavfi.r128.LRA=4.910|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.330
+pkt_pts=1185600|tag:lavfi.r128.M=-22.312|tag:lavfi.r128.S=-21.090|tag:lavfi.r128.I=-23.044|tag:lavfi.r128.LRA=4.920|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.320
+pkt_pts=1190400|tag:lavfi.r128.M=-22.937|tag:lavfi.r128.S=-21.099|tag:lavfi.r128.I=-23.043|tag:lavfi.r128.LRA=4.960|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.280
+pkt_pts=1195200|tag:lavfi.r128.M=-22.401|tag:lavfi.r128.S=-21.017|tag:lavfi.r128.I=-23.041|tag:lavfi.r128.LRA=4.980|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.260
+pkt_pts=1200000|tag:lavfi.r128.M=-22.004|tag:lavfi.r128.S=-21.018|tag:lavfi.r128.I=-23.036|tag:lavfi.r128.LRA=4.980|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.260
+pkt_pts=1204800|tag:lavfi.r128.M=-22.416|tag:lavfi.r128.S=-21.030|tag:lavfi.r128.I=-23.033|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1209600|tag:lavfi.r128.M=-22.481|tag:lavfi.r128.S=-21.106|tag:lavfi.r128.I=-23.031|tag:lavfi.r128.LRA=5.100|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.140
+pkt_pts=1214400|tag:lavfi.r128.M=-22.841|tag:lavfi.r128.S=-21.245|tag:lavfi.r128.I=-23.030|tag:lavfi.r128.LRA=5.100|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.140
+pkt_pts=1219200|tag:lavfi.r128.M=-23.663|tag:lavfi.r128.S=-21.332|tag:lavfi.r128.I=-23.033|tag:lavfi.r128.LRA=5.100|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.140
+pkt_pts=1224000|tag:lavfi.r128.M=-22.728|tag:lavfi.r128.S=-21.357|tag:lavfi.r128.I=-23.031|tag:lavfi.r128.LRA=5.100|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.140
+pkt_pts=1228800|tag:lavfi.r128.M=-23.016|tag:lavfi.r128.S=-21.530|tag:lavfi.r128.I=-23.031|tag:lavfi.r128.LRA=5.100|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.140
+pkt_pts=1233600|tag:lavfi.r128.M=-22.934|tag:lavfi.r128.S=-21.518|tag:lavfi.r128.I=-23.031|tag:lavfi.r128.LRA=5.100|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.140
+pkt_pts=1238400|tag:lavfi.r128.M=-21.320|tag:lavfi.r128.S=-21.426|tag:lavfi.r128.I=-23.023|tag:lavfi.r128.LRA=5.100|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.140
+pkt_pts=1243200|tag:lavfi.r128.M=-21.282|tag:lavfi.r128.S=-21.541|tag:lavfi.r128.I=-23.015|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1248000|tag:lavfi.r128.M=-20.639|tag:lavfi.r128.S=-21.490|tag:lavfi.r128.I=-23.002|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1252800|tag:lavfi.r128.M=-20.626|tag:lavfi.r128.S=-21.711|tag:lavfi.r128.I=-22.990|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1257600|tag:lavfi.r128.M=-21.333|tag:lavfi.r128.S=-21.710|tag:lavfi.r128.I=-22.982|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1262400|tag:lavfi.r128.M=-21.384|tag:lavfi.r128.S=-21.694|tag:lavfi.r128.I=-22.975|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1267200|tag:lavfi.r128.M=-21.410|tag:lavfi.r128.S=-21.639|tag:lavfi.r128.I=-22.968|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1272000|tag:lavfi.r128.M=-21.461|tag:lavfi.r128.S=-21.725|tag:lavfi.r128.I=-22.961|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1276800|tag:lavfi.r128.M=-21.846|tag:lavfi.r128.S=-21.726|tag:lavfi.r128.I=-22.956|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1281600|tag:lavfi.r128.M=-22.482|tag:lavfi.r128.S=-21.713|tag:lavfi.r128.I=-22.954|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1286400|tag:lavfi.r128.M=-22.681|tag:lavfi.r128.S=-21.720|tag:lavfi.r128.I=-22.953|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1291200|tag:lavfi.r128.M=-22.718|tag:lavfi.r128.S=-21.804|tag:lavfi.r128.I=-22.952|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1296000|tag:lavfi.r128.M=-22.849|tag:lavfi.r128.S=-21.873|tag:lavfi.r128.I=-22.952|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1300800|tag:lavfi.r128.M=-23.041|tag:lavfi.r128.S=-22.068|tag:lavfi.r128.I=-22.952|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1305600|tag:lavfi.r128.M=-23.898|tag:lavfi.r128.S=-22.285|tag:lavfi.r128.I=-22.956|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1310400|tag:lavfi.r128.M=-24.280|tag:lavfi.r128.S=-22.343|tag:lavfi.r128.I=-22.960|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1315200|tag:lavfi.r128.M=-25.072|tag:lavfi.r128.S=-22.479|tag:lavfi.r128.I=-22.966|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1320000|tag:lavfi.r128.M=-25.530|tag:lavfi.r128.S=-22.491|tag:lavfi.r128.I=-22.973|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1324800|tag:lavfi.r128.M=-25.269|tag:lavfi.r128.S=-22.536|tag:lavfi.r128.I=-22.980|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1329600|tag:lavfi.r128.M=-25.127|tag:lavfi.r128.S=-22.630|tag:lavfi.r128.I=-22.986|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1334400|tag:lavfi.r128.M=-24.909|tag:lavfi.r128.S=-22.673|tag:lavfi.r128.I=-22.991|tag:lavfi.r128.LRA=4.990|tag:lavfi.r128.LRA.low=-26.240|tag:lavfi.r128.LRA.high=-21.250
+pkt_pts=1339200
diff --git a/ffmpeg1/tests/ref/fate/filter-metadata-scenedetect b/ffmpeg1/tests/ref/fate/filter-metadata-scenedetect
new file mode 100644
index 0000000..67251df
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/filter-metadata-scenedetect
@@ -0,0 +1,10 @@
+pkt_pts=1620|tag:lavfi.scene_score=1.000000
+pkt_pts=4140|tag:lavfi.scene_score=0.880000
+pkt_pts=5800|tag:lavfi.scene_score=1.000000
+pkt_pts=6720|tag:lavfi.scene_score=0.460000
+pkt_pts=8160|tag:lavfi.scene_score=1.000000
+pkt_pts=9760|tag:lavfi.scene_score=1.000000
+pkt_pts=14080|tag:lavfi.scene_score=0.840000
+pkt_pts=15700|tag:lavfi.scene_score=1.000000
+pkt_pts=18500|tag:lavfi.scene_score=0.470000
+pkt_pts=21760|tag:lavfi.scene_score=1.000000
diff --git a/ffmpeg1/tests/ref/fate/filter-metadata-silencedetect b/ffmpeg1/tests/ref/fate/filter-metadata-silencedetect
new file mode 100644
index 0000000..4161287
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/filter-metadata-silencedetect
@@ -0,0 +1,512 @@
+pkt_pts=0
+pkt_pts=320
+pkt_pts=640
+pkt_pts=960
+pkt_pts=1280
+pkt_pts=1600
+pkt_pts=1920|tag:lavfi.silence_start=0.02
+pkt_pts=2240
+pkt_pts=2560|tag:lavfi.silence_end=0.16|tag:lavfi.silence_duration=0.14
+pkt_pts=2880
+pkt_pts=3200
+pkt_pts=3520
+pkt_pts=3840
+pkt_pts=4160
+pkt_pts=4480
+pkt_pts=4800
+pkt_pts=5120
+pkt_pts=5440
+pkt_pts=5760|tag:lavfi.silence_start=0.26|tag:lavfi.silence_end=0.36|tag:lavfi.silence_duration=0.1
+pkt_pts=6080
+pkt_pts=6400
+pkt_pts=6720
+pkt_pts=7040
+pkt_pts=7360
+pkt_pts=7680
+pkt_pts=8000
+pkt_pts=8320
+pkt_pts=8640
+pkt_pts=8960
+pkt_pts=9280
+pkt_pts=9600
+pkt_pts=9920
+pkt_pts=10240
+pkt_pts=10560
+pkt_pts=10880
+pkt_pts=11200
+pkt_pts=11520
+pkt_pts=11840
+pkt_pts=12160
+pkt_pts=12480
+pkt_pts=12800
+pkt_pts=13120
+pkt_pts=13440
+pkt_pts=13760
+pkt_pts=14080
+pkt_pts=14400
+pkt_pts=14720
+pkt_pts=15040
+pkt_pts=15360
+pkt_pts=15680
+pkt_pts=16000
+pkt_pts=16320
+pkt_pts=16640
+pkt_pts=16960
+pkt_pts=17280
+pkt_pts=17600
+pkt_pts=17920
+pkt_pts=18240
+pkt_pts=18560
+pkt_pts=18880
+pkt_pts=19200
+pkt_pts=19520
+pkt_pts=19840
+pkt_pts=20160
+pkt_pts=20480
+pkt_pts=20800
+pkt_pts=21120
+pkt_pts=21440
+pkt_pts=21760
+pkt_pts=22080|tag:lavfi.silence_start=1.28
+pkt_pts=22400
+pkt_pts=22720
+pkt_pts=23040
+pkt_pts=23360
+pkt_pts=23680
+pkt_pts=24000
+pkt_pts=24320
+pkt_pts=24640
+pkt_pts=24960
+pkt_pts=25280
+pkt_pts=25600
+pkt_pts=25920
+pkt_pts=26240
+pkt_pts=26560
+pkt_pts=26880
+pkt_pts=27200
+pkt_pts=27520
+pkt_pts=27840
+pkt_pts=28160
+pkt_pts=28480
+pkt_pts=28800
+pkt_pts=29120
+pkt_pts=29440
+pkt_pts=29760
+pkt_pts=30080
+pkt_pts=30400
+pkt_pts=30720
+pkt_pts=31040
+pkt_pts=31360
+pkt_pts=31680|tag:lavfi.silence_end=1.98|tag:lavfi.silence_duration=0.7
+pkt_pts=32000
+pkt_pts=32320
+pkt_pts=32640
+pkt_pts=32960
+pkt_pts=33280
+pkt_pts=33600
+pkt_pts=33920
+pkt_pts=34240
+pkt_pts=34560
+pkt_pts=34880
+pkt_pts=35200
+pkt_pts=35520
+pkt_pts=35840
+pkt_pts=36160
+pkt_pts=36480
+pkt_pts=36800
+pkt_pts=37120
+pkt_pts=37440
+pkt_pts=37760
+pkt_pts=38080
+pkt_pts=38400
+pkt_pts=38720
+pkt_pts=39040
+pkt_pts=39360
+pkt_pts=39680
+pkt_pts=40000
+pkt_pts=40320
+pkt_pts=40640
+pkt_pts=40960
+pkt_pts=41280
+pkt_pts=41600
+pkt_pts=41920
+pkt_pts=42240
+pkt_pts=42560
+pkt_pts=42880
+pkt_pts=43200
+pkt_pts=43520
+pkt_pts=43840
+pkt_pts=44160
+pkt_pts=44480
+pkt_pts=44800
+pkt_pts=45120
+pkt_pts=45440
+pkt_pts=45760
+pkt_pts=46080
+pkt_pts=46400
+pkt_pts=46720
+pkt_pts=47040
+pkt_pts=47360
+pkt_pts=47680
+pkt_pts=48000
+pkt_pts=48320
+pkt_pts=48640
+pkt_pts=48960
+pkt_pts=49280
+pkt_pts=49600
+pkt_pts=49920
+pkt_pts=50240
+pkt_pts=50560
+pkt_pts=50880
+pkt_pts=51200
+pkt_pts=51520
+pkt_pts=51840
+pkt_pts=52160
+pkt_pts=52480
+pkt_pts=52800|tag:lavfi.silence_start=3.2
+pkt_pts=53120
+pkt_pts=53440
+pkt_pts=53760
+pkt_pts=54080
+pkt_pts=54400
+pkt_pts=54720
+pkt_pts=55040
+pkt_pts=55360
+pkt_pts=55680
+pkt_pts=56000
+pkt_pts=56320
+pkt_pts=56640
+pkt_pts=56960
+pkt_pts=57280
+pkt_pts=57600
+pkt_pts=57920
+pkt_pts=58240
+pkt_pts=58560
+pkt_pts=58880
+pkt_pts=59200
+pkt_pts=59520
+pkt_pts=59840
+pkt_pts=60160
+pkt_pts=60480
+pkt_pts=60800
+pkt_pts=61120
+pkt_pts=61440
+pkt_pts=61760
+pkt_pts=62080
+pkt_pts=62400|tag:lavfi.silence_end=3.9|tag:lavfi.silence_duration=0.7
+pkt_pts=62720
+pkt_pts=63040
+pkt_pts=63360
+pkt_pts=63680
+pkt_pts=64000
+pkt_pts=64320
+pkt_pts=64640
+pkt_pts=64960
+pkt_pts=65280
+pkt_pts=65600
+pkt_pts=65920
+pkt_pts=66240
+pkt_pts=66560
+pkt_pts=66880
+pkt_pts=67200
+pkt_pts=67520
+pkt_pts=67840
+pkt_pts=68160
+pkt_pts=68480
+pkt_pts=68800
+pkt_pts=69120
+pkt_pts=69440
+pkt_pts=69760
+pkt_pts=70080
+pkt_pts=70400
+pkt_pts=70720
+pkt_pts=71040
+pkt_pts=71360
+pkt_pts=71680
+pkt_pts=72000
+pkt_pts=72320
+pkt_pts=72640
+pkt_pts=72960
+pkt_pts=73280
+pkt_pts=73600
+pkt_pts=73920
+pkt_pts=74240
+pkt_pts=74560
+pkt_pts=74880
+pkt_pts=75200
+pkt_pts=75520
+pkt_pts=75840
+pkt_pts=76160
+pkt_pts=76480
+pkt_pts=76800
+pkt_pts=77120
+pkt_pts=77440
+pkt_pts=77760
+pkt_pts=78080
+pkt_pts=78400
+pkt_pts=78720
+pkt_pts=79040
+pkt_pts=79360
+pkt_pts=79680
+pkt_pts=80000|tag:lavfi.silence_start=4.9
+pkt_pts=80320
+pkt_pts=80640
+pkt_pts=80960
+pkt_pts=81280
+pkt_pts=81600
+pkt_pts=81920
+pkt_pts=82240
+pkt_pts=82560
+pkt_pts=82880
+pkt_pts=83200
+pkt_pts=83520
+pkt_pts=83840
+pkt_pts=84160
+pkt_pts=84480
+pkt_pts=84800
+pkt_pts=85120
+pkt_pts=85440
+pkt_pts=85760
+pkt_pts=86080
+pkt_pts=86400
+pkt_pts=86720
+pkt_pts=87040|tag:lavfi.silence_end=5.44|tag:lavfi.silence_duration=0.54
+pkt_pts=87360
+pkt_pts=87680
+pkt_pts=88000
+pkt_pts=88320
+pkt_pts=88640
+pkt_pts=88960
+pkt_pts=89280
+pkt_pts=89600
+pkt_pts=89920
+pkt_pts=90240
+pkt_pts=90560
+pkt_pts=90880
+pkt_pts=91200
+pkt_pts=91520
+pkt_pts=91840
+pkt_pts=92160
+pkt_pts=92480
+pkt_pts=92800
+pkt_pts=93120
+pkt_pts=93440
+pkt_pts=93760
+pkt_pts=94080
+pkt_pts=94400
+pkt_pts=94720
+pkt_pts=95040
+pkt_pts=95360
+pkt_pts=95680
+pkt_pts=96000
+pkt_pts=96320
+pkt_pts=96640
+pkt_pts=96960
+pkt_pts=97280
+pkt_pts=97600
+pkt_pts=97920
+pkt_pts=98240
+pkt_pts=98560
+pkt_pts=98880
+pkt_pts=99200
+pkt_pts=99520
+pkt_pts=99840
+pkt_pts=100160
+pkt_pts=100480
+pkt_pts=100800
+pkt_pts=101120
+pkt_pts=101440
+pkt_pts=101760
+pkt_pts=102080
+pkt_pts=102400
+pkt_pts=102720
+pkt_pts=103040
+pkt_pts=103360
+pkt_pts=103680
+pkt_pts=104000
+pkt_pts=104320
+pkt_pts=104640|tag:lavfi.silence_start=6.44
+pkt_pts=104960
+pkt_pts=105280
+pkt_pts=105600
+pkt_pts=105920
+pkt_pts=106240
+pkt_pts=106560
+pkt_pts=106880
+pkt_pts=107200
+pkt_pts=107520
+pkt_pts=107840
+pkt_pts=108160
+pkt_pts=108480
+pkt_pts=108800
+pkt_pts=109120
+pkt_pts=109440
+pkt_pts=109760
+pkt_pts=110080
+pkt_pts=110400
+pkt_pts=110720
+pkt_pts=111040
+pkt_pts=111360
+pkt_pts=111680
+pkt_pts=112000
+pkt_pts=112320
+pkt_pts=112640
+pkt_pts=112960
+pkt_pts=113280
+pkt_pts=113600
+pkt_pts=113920
+pkt_pts=114240
+pkt_pts=114560
+pkt_pts=114880
+pkt_pts=115200
+pkt_pts=115520
+pkt_pts=115840
+pkt_pts=116160|tag:lavfi.silence_end=7.26|tag:lavfi.silence_duration=0.82
+pkt_pts=116480
+pkt_pts=116800
+pkt_pts=117120
+pkt_pts=117440
+pkt_pts=117760
+pkt_pts=118080
+pkt_pts=118400
+pkt_pts=118720
+pkt_pts=119040
+pkt_pts=119360
+pkt_pts=119680
+pkt_pts=120000
+pkt_pts=120320
+pkt_pts=120640
+pkt_pts=120960
+pkt_pts=121280
+pkt_pts=121600
+pkt_pts=121920
+pkt_pts=122240
+pkt_pts=122560
+pkt_pts=122880
+pkt_pts=123200
+pkt_pts=123520
+pkt_pts=123840
+pkt_pts=124160
+pkt_pts=124480
+pkt_pts=124800
+pkt_pts=125120
+pkt_pts=125440
+pkt_pts=125760
+pkt_pts=126080
+pkt_pts=126400
+pkt_pts=126720
+pkt_pts=127040
+pkt_pts=127360
+pkt_pts=127680
+pkt_pts=128000
+pkt_pts=128320
+pkt_pts=128640
+pkt_pts=128960
+pkt_pts=129280
+pkt_pts=129600
+pkt_pts=129920
+pkt_pts=130240
+pkt_pts=130560
+pkt_pts=130880
+pkt_pts=131200
+pkt_pts=131520
+pkt_pts=131840
+pkt_pts=132160
+pkt_pts=132480
+pkt_pts=132800
+pkt_pts=133120
+pkt_pts=133440
+pkt_pts=133760
+pkt_pts=134080
+pkt_pts=134400
+pkt_pts=134720
+pkt_pts=135040
+pkt_pts=135360
+pkt_pts=135680
+pkt_pts=136000
+pkt_pts=136320
+pkt_pts=136640
+pkt_pts=136960
+pkt_pts=137280
+pkt_pts=137600|tag:lavfi.silence_start=8.5
+pkt_pts=137920
+pkt_pts=138240
+pkt_pts=138560
+pkt_pts=138880|tag:lavfi.silence_end=8.68|tag:lavfi.silence_duration=0.18
+pkt_pts=139200
+pkt_pts=139520
+pkt_pts=139840
+pkt_pts=140160
+pkt_pts=140480|tag:lavfi.silence_start=8.68
+pkt_pts=140800
+pkt_pts=141120
+pkt_pts=141440
+pkt_pts=141760
+pkt_pts=142080
+pkt_pts=142400
+pkt_pts=142720
+pkt_pts=143040
+pkt_pts=143360
+pkt_pts=143680|tag:lavfi.silence_end=8.98|tag:lavfi.silence_duration=0.3
+pkt_pts=144000
+pkt_pts=144320
+pkt_pts=144640
+pkt_pts=144960
+pkt_pts=145280
+pkt_pts=145600
+pkt_pts=145920
+pkt_pts=146240
+pkt_pts=146560
+pkt_pts=146880
+pkt_pts=147200
+pkt_pts=147520
+pkt_pts=147840
+pkt_pts=148160
+pkt_pts=148480
+pkt_pts=148800
+pkt_pts=149120
+pkt_pts=149440
+pkt_pts=149760
+pkt_pts=150080
+pkt_pts=150400
+pkt_pts=150720
+pkt_pts=151040
+pkt_pts=151360
+pkt_pts=151680
+pkt_pts=152000
+pkt_pts=152320
+pkt_pts=152640
+pkt_pts=152960
+pkt_pts=153280
+pkt_pts=153600
+pkt_pts=153920
+pkt_pts=154240
+pkt_pts=154560
+pkt_pts=154880
+pkt_pts=155200
+pkt_pts=155520
+pkt_pts=155840
+pkt_pts=156160
+pkt_pts=156480
+pkt_pts=156800
+pkt_pts=157120
+pkt_pts=157440
+pkt_pts=157760
+pkt_pts=158080
+pkt_pts=158400
+pkt_pts=158720
+pkt_pts=159040
+pkt_pts=159360
+pkt_pts=159680
+pkt_pts=160000
+pkt_pts=160320
+pkt_pts=160640
+pkt_pts=160960
+pkt_pts=161280
+pkt_pts=161600|tag:lavfi.silence_start=10
+pkt_pts=161920
+pkt_pts=162240
+pkt_pts=162560
+pkt_pts=162880
+pkt_pts=163200
+pkt_pts=163520
diff --git a/ffmpeg1/tests/ref/fate/filter-yadif-mode0 b/ffmpeg1/tests/ref/fate/filter-yadif-mode0
new file mode 100644
index 0000000..162ba96
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/filter-yadif-mode0
@@ -0,0 +1,32 @@
+#tb 0: 1/25
+0, 9, 9, 1, 622080, 0x6331caee
+0, 10, 10, 1, 622080, 0xa459e690
+0, 11, 11, 1, 622080, 0x6429c648
+0, 12, 12, 1, 622080, 0xa49891ca
+0, 13, 13, 1, 622080, 0x2a887404
+0, 14, 14, 1, 622080, 0xe8d49705
+0, 15, 15, 1, 622080, 0x1b627835
+0, 16, 16, 1, 622080, 0x686858fd
+0, 17, 17, 1, 622080, 0x2675174f
+0, 18, 18, 1, 622080, 0x78470e7f
+0, 19, 19, 1, 622080, 0xffb366ec
+0, 20, 20, 1, 622080, 0xd575da72
+0, 21, 21, 1, 622080, 0x5fb297f7
+0, 22, 22, 1, 622080, 0xbac77ca0
+0, 23, 23, 1, 622080, 0x3276ed72
+0, 24, 24, 1, 622080, 0x264092b2
+0, 25, 25, 1, 622080, 0x20ba1094
+0, 26, 26, 1, 622080, 0x76cc3139
+0, 27, 27, 1, 622080, 0x469a4902
+0, 28, 28, 1, 622080, 0x0ed7b8f5
+0, 29, 29, 1, 622080, 0xdc51aeac
+0, 30, 30, 1, 622080, 0xee06aa36
+0, 31, 31, 1, 622080, 0x7372405f
+0, 32, 32, 1, 622080, 0x9e0ee776
+0, 33, 33, 1, 622080, 0x39e6d8c9
+0, 34, 34, 1, 622080, 0x51d9ac9a
+0, 35, 35, 1, 622080, 0x2b63441d
+0, 36, 36, 1, 622080, 0x58afbd5e
+0, 37, 37, 1, 622080, 0xb972f716
+0, 38, 38, 1, 622080, 0x6a6df129
+0, 39, 39, 1, 622080, 0x28b1373d
diff --git a/ffmpeg1/tests/ref/fate/filter-yadif-mode1 b/ffmpeg1/tests/ref/fate/filter-yadif-mode1
new file mode 100644
index 0000000..f1f513e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/filter-yadif-mode1
@@ -0,0 +1,63 @@
+#tb 0: 1/50
+0, 18, 18, 1, 622080, 0x6331caee
+0, 19, 19, 1, 622080, 0x625da883
+0, 20, 20, 1, 622080, 0xa459e690
+0, 21, 21, 1, 622080, 0xce5d891e
+0, 22, 22, 1, 622080, 0x6429c648
+0, 23, 23, 1, 622080, 0x608cc0ba
+0, 24, 24, 1, 622080, 0xa49891ca
+0, 25, 25, 1, 622080, 0x9721987f
+0, 26, 26, 1, 622080, 0x2a887404
+0, 27, 27, 1, 622080, 0x60d71d47
+0, 28, 28, 1, 622080, 0xe8d49705
+0, 29, 29, 1, 622080, 0x821e13cb
+0, 30, 30, 1, 622080, 0x1b627835
+0, 31, 31, 1, 622080, 0x1806c5f4
+0, 32, 32, 1, 622080, 0x686858fd
+0, 33, 33, 1, 622080, 0xab865773
+0, 34, 34, 1, 622080, 0x2675174f
+0, 35, 35, 1, 622080, 0x43a61a14
+0, 36, 36, 1, 622080, 0x78470e7f
+0, 37, 37, 1, 622080, 0xeb877bc6
+0, 38, 38, 1, 622080, 0xffb366ec
+0, 39, 39, 1, 622080, 0xda0906e7
+0, 40, 40, 1, 622080, 0xd575da72
+0, 41, 41, 1, 622080, 0x23ae25a4
+0, 42, 42, 1, 622080, 0x5fb297f7
+0, 43, 43, 1, 622080, 0x99b32978
+0, 44, 44, 1, 622080, 0xbac77ca0
+0, 45, 45, 1, 622080, 0xc1cdcbf9
+0, 46, 46, 1, 622080, 0x3276ed72
+0, 47, 47, 1, 622080, 0x4061f5ab
+0, 48, 48, 1, 622080, 0x264092b2
+0, 49, 49, 1, 622080, 0xa4e2039e
+0, 50, 50, 1, 622080, 0x20ba1094
+0, 51, 51, 1, 622080, 0x984e906e
+0, 52, 52, 1, 622080, 0x76cc3139
+0, 53, 53, 1, 622080, 0xf70e2cf6
+0, 54, 54, 1, 622080, 0x469a4902
+0, 55, 55, 1, 622080, 0x235312e6
+0, 56, 56, 1, 622080, 0x0ed7b8f5
+0, 57, 57, 1, 622080, 0xd0269cc3
+0, 58, 58, 1, 622080, 0xdc51aeac
+0, 59, 59, 1, 622080, 0x1aa5f76e
+0, 60, 60, 1, 622080, 0xee06aa36
+0, 61, 61, 1, 622080, 0xa7103230
+0, 62, 62, 1, 622080, 0x7372405f
+0, 63, 63, 1, 622080, 0x8d7a44b5
+0, 64, 64, 1, 622080, 0x9e0ee776
+0, 65, 65, 1, 622080, 0xd41e8560
+0, 66, 66, 1, 622080, 0x39e6d8c9
+0, 67, 67, 1, 622080, 0x7a23d70c
+0, 68, 68, 1, 622080, 0x51d9ac9a
+0, 69, 69, 1, 622080, 0x8eacf7f2
+0, 70, 70, 1, 622080, 0x2b63441d
+0, 71, 71, 1, 622080, 0x9f71b742
+0, 72, 72, 1, 622080, 0x58afbd5e
+0, 73, 73, 1, 622080, 0x4d645292
+0, 74, 74, 1, 622080, 0xb972f716
+0, 75, 75, 1, 622080, 0xbb5d01a2
+0, 76, 76, 1, 622080, 0x6a6df129
+0, 77, 77, 1, 622080, 0x9e45371e
+0, 78, 78, 1, 622080, 0x28b1373d
+0, 79, 79, 1, 622080, 0xa1cdb1f2
diff --git a/ffmpeg1/tests/ref/fate/flic-af11-palette-change b/ffmpeg1/tests/ref/fate/flic-af11-palette-change
new file mode 100644
index 0000000..cd702b6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/flic-af11-palette-change
@@ -0,0 +1,117 @@
+#tb 0: 1/35
+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/ffmpeg1/tests/ref/fate/flic-af12 b/ffmpeg1/tests/ref/fate/flic-af12
new file mode 100644
index 0000000..227f26a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/flic-af12
@@ -0,0 +1,28 @@
+#tb 0: 9/125
+0, 0, 0, 1, 921600, 0x50a87396
+0, 1, 1, 1, 921600, 0xa6e65d9e
+0, 2, 2, 1, 921600, 0x05956f62
+0, 3, 3, 1, 921600, 0xffd6a5d7
+0, 4, 4, 1, 921600, 0xaab0a179
+0, 5, 5, 1, 921600, 0x289db2db
+0, 6, 6, 1, 921600, 0x3d3840cf
+0, 7, 7, 1, 921600, 0xec0a4142
+0, 8, 8, 1, 921600, 0x713a9f65
+0, 9, 9, 1, 921600, 0x28a8f0cd
+0, 10, 10, 1, 921600, 0x0fd95ba9
+0, 11, 11, 1, 921600, 0xa744bdfd
+0, 12, 12, 1, 921600, 0x3cdea2a5
+0, 13, 13, 1, 921600, 0xe7d671e4
+0, 14, 14, 1, 921600, 0x75824cdf
+0, 15, 15, 1, 921600, 0x82067d95
+0, 16, 16, 1, 921600, 0xee143a4c
+0, 17, 17, 1, 921600, 0xa53d3f2b
+0, 18, 18, 1, 921600, 0xb491c0c5
+0, 19, 19, 1, 921600, 0x6aaaef07
+0, 20, 20, 1, 921600, 0xad23cca8
+0, 21, 21, 1, 921600, 0xdce91bd8
+0, 22, 22, 1, 921600, 0x1a1499bc
+0, 23, 23, 1, 921600, 0x4cbe505a
+0, 24, 24, 1, 921600, 0x24006f65
+0, 25, 25, 1, 921600, 0x0711906e
+0, 26, 26, 1, 921600, 0x50a87396
diff --git a/ffmpeg1/tests/ref/fate/flic-magiccarpet b/ffmpeg1/tests/ref/fate/flic-magiccarpet
new file mode 100644
index 0000000..23a9342
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/flic-magiccarpet
@@ -0,0 +1,43 @@
+#tb 0: 1/14
+0, 0, 0, 1, 192000, 0x00000000
+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/ffmpeg1/tests/ref/fate/force_key_frames b/ffmpeg1/tests/ref/fate/force_key_frames
new file mode 100644
index 0000000..b93adca
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/force_key_frames
@@ -0,0 +1,4 @@
+5423335cd809e631a2e03f97585348e0 *tests/data/fate/force_key_frames.avi
+113308 tests/data/fate/force_key_frames.avi
+8f68ad2e602ecd87a3e0c097ba99d773 *tests/data/fate/force_key_frames.out.framecrc
+stddev:34363.01 PSNR: 5.61 MAXDIFF:56305 bytes: 7603200/ 186
diff --git a/ffmpeg1/tests/ref/fate/fraps-v0 b/ffmpeg1/tests/ref/fate/fraps-v0
new file mode 100644
index 0000000..3cba831
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/fraps-v0
@@ -0,0 +1,21 @@
+#tb 0: 1/25
+0, 0, 0, 1, 101088, 0x7bf448f8
+0, 1, 1, 1, 101088, 0x1ba749ec
+0, 2, 2, 1, 101088, 0x94eb4dc4
+0, 3, 3, 1, 101088, 0xd80b4f54
+0, 4, 4, 1, 101088, 0x6fd44fff
+0, 5, 5, 1, 101088, 0xf30e4f12
+0, 6, 6, 1, 101088, 0x67a04fef
+0, 7, 7, 1, 101088, 0xd92b4f8e
+0, 8, 8, 1, 101088, 0x92cd4cde
+0, 9, 9, 1, 101088, 0x93a34973
+0, 10, 10, 1, 101088, 0x79a646cb
+0, 11, 11, 1, 101088, 0x5d9c4227
+0, 12, 12, 1, 101088, 0x239941ff
+0, 13, 13, 1, 101088, 0x147e11de
+0, 14, 14, 1, 101088, 0x3943cbd5
+0, 15, 15, 1, 101088, 0x2ce1c01f
+0, 16, 16, 1, 101088, 0xe0b7ec06
+0, 17, 17, 1, 101088, 0xfe5b9baa
+0, 18, 18, 1, 101088, 0x9acb4d37
+0, 19, 19, 1, 101088, 0xbdbd9af5
diff --git a/ffmpeg1/tests/ref/fate/fraps-v1 b/ffmpeg1/tests/ref/fate/fraps-v1
new file mode 100644
index 0000000..29c7e37
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/fraps-v1
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 230400, 0x23c29d17
diff --git a/ffmpeg1/tests/ref/fate/fraps-v2 b/ffmpeg1/tests/ref/fate/fraps-v2
new file mode 100644
index 0000000..06e0024
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/fraps-v2
@@ -0,0 +1,3 @@
+#tb 0: 1/30
+0, 0, 0, 1, 1179648, 0x99f80436
+0, 5, 5, 1, 1179648, 0xe8ae7a30
diff --git a/ffmpeg1/tests/ref/fate/fraps-v3 b/ffmpeg1/tests/ref/fate/fraps-v3
new file mode 100644
index 0000000..139ee7e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/fraps-v3
@@ -0,0 +1,8 @@
+#tb 0: 1/30
+0, 0, 0, 1, 589824, 0x0b181bbf
+0, 1, 1, 1, 589824, 0xcd740f79
+0, 2, 2, 1, 589824, 0x16f8f90e
+0, 3, 3, 1, 589824, 0x1aaaceba
+0, 5, 5, 1, 589824, 0x902e8fe4
+0, 6, 6, 1, 589824, 0x019a4443
+0, 8, 8, 1, 589824, 0x04eff6c6
diff --git a/ffmpeg1/tests/ref/fate/fraps-v4 b/ffmpeg1/tests/ref/fate/fraps-v4
new file mode 100644
index 0000000..007916d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/fraps-v4
@@ -0,0 +1,8 @@
+#tb 0: 1/30
+0, 0, 0, 1, 491520, 0x68ff12c0
+0, 1, 1, 1, 491520, 0x22d36f0d
+0, 2, 2, 1, 491520, 0xce6f877d
+0, 3, 3, 1, 491520, 0x85d6744c
+0, 4, 4, 1, 491520, 0x1aa85794
+0, 5, 5, 1, 491520, 0x528d1274
+0, 6, 6, 1, 491520, 0x357ec61c
diff --git a/ffmpeg1/tests/ref/fate/fraps-v5 b/ffmpeg1/tests/ref/fate/fraps-v5
new file mode 100644
index 0000000..599683a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/fraps-v5
@@ -0,0 +1,59 @@
+#tb 0: 1/30
+0, 0, 0, 1, 145152, 0x8458d4cb
+0, 1, 1, 1, 145152, 0xa694d7c7
+0, 2, 2, 1, 145152, 0x2bd4bfc9
+0, 3, 3, 1, 145152, 0xe53b1616
+0, 4, 4, 1, 145152, 0x6a0a806a
+0, 5, 5, 1, 145152, 0x45f7b8e6
+0, 6, 6, 1, 145152, 0x4e14150e
+0, 7, 7, 1, 145152, 0xe1cd9b6f
+0, 8, 8, 1, 145152, 0x5b5802d7
+0, 9, 9, 1, 145152, 0xb03da5e7
+0, 10, 10, 1, 145152, 0x3436b06e
+0, 11, 11, 1, 145152, 0x4535e638
+0, 12, 12, 1, 145152, 0x72934af1
+0, 13, 13, 1, 145152, 0xb672d459
+0, 14, 14, 1, 145152, 0xab57491b
+0, 15, 15, 1, 145152, 0xdbac3480
+0, 16, 16, 1, 145152, 0x54215962
+0, 17, 17, 1, 145152, 0x451f456e
+0, 18, 18, 1, 145152, 0xa17655d1
+0, 19, 19, 1, 145152, 0xce95422c
+0, 20, 20, 1, 145152, 0xe0ee8e77
+0, 21, 21, 1, 145152, 0xdaabe277
+0, 22, 22, 1, 145152, 0xc21bb665
+0, 23, 23, 1, 145152, 0x1e74270e
+0, 24, 24, 1, 145152, 0xae7bac5f
+0, 25, 25, 1, 145152, 0xf62442ed
+0, 26, 26, 1, 145152, 0x5c8d8984
+0, 27, 27, 1, 145152, 0x97a69fe7
+0, 28, 28, 1, 145152, 0x1f244d19
+0, 29, 29, 1, 145152, 0x2758bc25
+0, 30, 30, 1, 145152, 0xf43ddb89
+0, 31, 31, 1, 145152, 0x086a524e
+0, 32, 32, 1, 145152, 0x8b464d4d
+0, 33, 33, 1, 145152, 0xb77b63d2
+0, 34, 34, 1, 145152, 0xfd842fa8
+0, 35, 35, 1, 145152, 0xa98b6dbe
+0, 36, 36, 1, 145152, 0xdedbab2c
+0, 37, 37, 1, 145152, 0x24e19172
+0, 38, 38, 1, 145152, 0x1ef456f6
+0, 39, 39, 1, 145152, 0xaceabdf0
+0, 40, 40, 1, 145152, 0xb54de3d9
+0, 41, 41, 1, 145152, 0x3af0df9b
+0, 42, 42, 1, 145152, 0xf89fbd9a
+0, 43, 43, 1, 145152, 0xc6a9673c
+0, 44, 44, 1, 145152, 0x6d5a929e
+0, 45, 45, 1, 145152, 0x879e7d9b
+0, 46, 46, 1, 145152, 0x233c14eb
+0, 47, 47, 1, 145152, 0x8246f081
+0, 48, 48, 1, 145152, 0x3366c4bf
+0, 49, 49, 1, 145152, 0x6b0203da
+0, 50, 50, 1, 145152, 0x48a00163
+0, 51, 51, 1, 145152, 0xe956ac2c
+0, 52, 52, 1, 145152, 0xa2511283
+0, 53, 53, 1, 145152, 0x7e03222d
+0, 54, 54, 1, 145152, 0xc31a7a40
+0, 55, 55, 1, 145152, 0x80448031
+0, 56, 56, 1, 145152, 0xe3b1fbf7
+0, 57, 57, 1, 145152, 0xa00395a4
diff --git a/ffmpeg1/tests/ref/fate/frwu b/ffmpeg1/tests/ref/fate/frwu
new file mode 100644
index 0000000..32eaa6f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/frwu
@@ -0,0 +1,11 @@
+#tb 0: 1/15
+0, 0, 0, 1, 153600, 0x050422c0
+0, 1, 1, 1, 153600, 0x0cf35359
+0, 2, 2, 1, 153600, 0x2ae95db0
+0, 3, 3, 1, 153600, 0x8c855b14
+0, 4, 4, 1, 153600, 0xc7a890b4
+0, 5, 5, 1, 153600, 0x755bed3b
+0, 6, 6, 1, 153600, 0x454a4e27
+0, 7, 7, 1, 153600, 0xdc3eaecb
+0, 8, 8, 1, 153600, 0x190f9a82
+0, 9, 9, 1, 153600, 0x4f67511f
diff --git a/ffmpeg1/tests/ref/fate/g722-encode b/ffmpeg1/tests/ref/fate/g722-encode
new file mode 100644
index 0000000..c7198cf
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g722-encode
@@ -0,0 +1 @@
+MD5=7106189574186051c0497b287e2e5f19
diff --git a/ffmpeg1/tests/ref/fate/g722dec-1 b/ffmpeg1/tests/ref/fate/g722dec-1
new file mode 100644
index 0000000..e94c3e6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g722dec-1
@@ -0,0 +1,168 @@
+#tb 0: 1/16000
+0, 0, 0, 2048, 4096, 0x4f9228b3
+0, 2048, 2048, 2048, 4096, 0xfab58157
+0, 4096, 4096, 2048, 4096, 0x0b641c78
+0, 6144, 6144, 2048, 4096, 0x601c6803
+0, 8192, 8192, 2048, 4096, 0xb3e2f166
+0, 10240, 10240, 2048, 4096, 0x5681f206
+0, 12288, 12288, 2048, 4096, 0x1e69e71f
+0, 14336, 14336, 2048, 4096, 0x05628be3
+0, 16384, 16384, 2048, 4096, 0x109b1aef
+0, 18432, 18432, 2048, 4096, 0xd5435a9e
+0, 20480, 20480, 2048, 4096, 0xb38b5d28
+0, 22528, 22528, 2048, 4096, 0x64514c93
+0, 24576, 24576, 2048, 4096, 0x453350e7
+0, 26624, 26624, 2048, 4096, 0x6deccce6
+0, 28672, 28672, 2048, 4096, 0xd427ede1
+0, 30720, 30720, 2048, 4096, 0xdecb8c42
+0, 32768, 32768, 2048, 4096, 0x3841e4d2
+0, 34816, 34816, 2048, 4096, 0x858ac1b1
+0, 36864, 36864, 2048, 4096, 0x8e9dbfa0
+0, 38912, 38912, 2048, 4096, 0xcbc0766f
+0, 40960, 40960, 2048, 4096, 0x78d52555
+0, 43008, 43008, 2048, 4096, 0x600ac7d5
+0, 45056, 45056, 2048, 4096, 0xafadb7ee
+0, 47104, 47104, 2048, 4096, 0x8009d5a1
+0, 49152, 49152, 2048, 4096, 0xb07d475e
+0, 51200, 51200, 2048, 4096, 0xfcfecceb
+0, 53248, 53248, 2048, 4096, 0x38b5d85f
+0, 55296, 55296, 2048, 4096, 0xbd48072e
+0, 57344, 57344, 2048, 4096, 0xd04724d8
+0, 59392, 59392, 2048, 4096, 0x08425144
+0, 61440, 61440, 2048, 4096, 0x7b14483e
+0, 63488, 63488, 2048, 4096, 0x8858ef4c
+0, 65536, 65536, 2048, 4096, 0x1e3024c2
+0, 67584, 67584, 2048, 4096, 0xcd6bfe4f
+0, 69632, 69632, 2048, 4096, 0x8cde8d18
+0, 71680, 71680, 2048, 4096, 0xbbd856b8
+0, 73728, 73728, 2048, 4096, 0x988c9b7a
+0, 75776, 75776, 2048, 4096, 0x2a858e03
+0, 77824, 77824, 2048, 4096, 0x6dee1e4a
+0, 79872, 79872, 2048, 4096, 0x8cc38b41
+0, 81920, 81920, 2048, 4096, 0x48bd5cec
+0, 83968, 83968, 2048, 4096, 0xeb7f606b
+0, 86016, 86016, 2048, 4096, 0x75f5d28c
+0, 88064, 88064, 2048, 4096, 0x5bfeec4b
+0, 90112, 90112, 2048, 4096, 0xfc35c22a
+0, 92160, 92160, 2048, 4096, 0x3a95efba
+0, 94208, 94208, 2048, 4096, 0xefdbce9c
+0, 96256, 96256, 2048, 4096, 0x00594ada
+0, 98304, 98304, 2048, 4096, 0x20ffebfa
+0, 100352, 100352, 2048, 4096, 0x1b31370a
+0, 102400, 102400, 2048, 4096, 0x50766a56
+0, 104448, 104448, 2048, 4096, 0x0058315a
+0, 106496, 106496, 2048, 4096, 0x98090cbf
+0, 108544, 108544, 2048, 4096, 0x66ed2d40
+0, 110592, 110592, 2048, 4096, 0xdfd7c0a7
+0, 112640, 112640, 2048, 4096, 0x2adc57e1
+0, 114688, 114688, 2048, 4096, 0x838bbc82
+0, 116736, 116736, 2048, 4096, 0x2c55de1a
+0, 118784, 118784, 2048, 4096, 0xeae027f4
+0, 120832, 120832, 2048, 4096, 0x09fe00f6
+0, 122880, 122880, 2048, 4096, 0xa25d9970
+0, 124928, 124928, 2048, 4096, 0xedb11a20
+0, 126976, 126976, 2048, 4096, 0x9ce2e63e
+0, 129024, 129024, 2048, 4096, 0xeb699974
+0, 131072, 131072, 2048, 4096, 0xcc04a296
+0, 133120, 133120, 2048, 4096, 0xe90e9a12
+0, 135168, 135168, 2048, 4096, 0xae85c0f7
+0, 137216, 137216, 2048, 4096, 0x7ee877db
+0, 139264, 139264, 2048, 4096, 0x9ecf14ee
+0, 141312, 141312, 2048, 4096, 0xa821cecd
+0, 143360, 143360, 2048, 4096, 0x2714bb11
+0, 145408, 145408, 2048, 4096, 0x28f1c1e0
+0, 147456, 147456, 2048, 4096, 0xf81c4f60
+0, 149504, 149504, 2048, 4096, 0x1ae0e5a1
+0, 151552, 151552, 2048, 4096, 0xbdae9d9a
+0, 153600, 153600, 2048, 4096, 0x5202e560
+0, 155648, 155648, 2048, 4096, 0x82408396
+0, 157696, 157696, 2048, 4096, 0xc850ce0c
+0, 159744, 159744, 2048, 4096, 0x1d732d88
+0, 161792, 161792, 2048, 4096, 0xc5c01e33
+0, 163840, 163840, 2048, 4096, 0x84942d6c
+0, 165888, 165888, 2048, 4096, 0x7c27cd3a
+0, 167936, 167936, 2048, 4096, 0x22adc503
+0, 169984, 169984, 2048, 4096, 0xfbc3af31
+0, 172032, 172032, 2048, 4096, 0xe9652b18
+0, 174080, 174080, 2048, 4096, 0xae75987e
+0, 176128, 176128, 2048, 4096, 0x0f7ea428
+0, 178176, 178176, 2048, 4096, 0x92b89582
+0, 180224, 180224, 2048, 4096, 0xf393d910
+0, 182272, 182272, 2048, 4096, 0x6349b600
+0, 184320, 184320, 2048, 4096, 0x16918dbd
+0, 186368, 186368, 2048, 4096, 0x14ee15ad
+0, 188416, 188416, 2048, 4096, 0x26b510d3
+0, 190464, 190464, 2048, 4096, 0x97007bf8
+0, 192512, 192512, 2048, 4096, 0x3718c509
+0, 194560, 194560, 2048, 4096, 0x24a54ccd
+0, 196608, 196608, 2048, 4096, 0xc960df4e
+0, 198656, 198656, 2048, 4096, 0xc7cb6e6f
+0, 200704, 200704, 2048, 4096, 0x4c563ae5
+0, 202752, 202752, 2048, 4096, 0x0dd51432
+0, 204800, 204800, 2048, 4096, 0xdb4243c8
+0, 206848, 206848, 2048, 4096, 0x9bb6417f
+0, 208896, 208896, 2048, 4096, 0xec6a40a1
+0, 210944, 210944, 2048, 4096, 0x82d6c3b4
+0, 212992, 212992, 2048, 4096, 0xd181e2ec
+0, 215040, 215040, 2048, 4096, 0xba5d7b55
+0, 217088, 217088, 2048, 4096, 0x78fcb938
+0, 219136, 219136, 2048, 4096, 0x6691671c
+0, 221184, 221184, 2048, 4096, 0x44fadee7
+0, 223232, 223232, 2048, 4096, 0xa42720d5
+0, 225280, 225280, 2048, 4096, 0xc1165a91
+0, 227328, 227328, 2048, 4096, 0x86aa3e3f
+0, 229376, 229376, 2048, 4096, 0xab5ae57d
+0, 231424, 231424, 2048, 4096, 0x291a91f3
+0, 233472, 233472, 2048, 4096, 0xfdf0dcfc
+0, 235520, 235520, 2048, 4096, 0x1ef91f67
+0, 237568, 237568, 2048, 4096, 0xc899efee
+0, 239616, 239616, 2048, 4096, 0x5ade15ac
+0, 241664, 241664, 2048, 4096, 0x04516beb
+0, 243712, 243712, 2048, 4096, 0xbf5ebbb9
+0, 245760, 245760, 2048, 4096, 0x4a235122
+0, 247808, 247808, 2048, 4096, 0xd7a3f4a6
+0, 249856, 249856, 2048, 4096, 0x5f900f20
+0, 251904, 251904, 2048, 4096, 0xa90b4365
+0, 253952, 253952, 2048, 4096, 0x63149dc4
+0, 256000, 256000, 2048, 4096, 0xf12c1ee8
+0, 258048, 258048, 2048, 4096, 0x6d0fec8c
+0, 260096, 260096, 2048, 4096, 0x65e07850
+0, 262144, 262144, 2048, 4096, 0x16d951cc
+0, 264192, 264192, 2048, 4096, 0xd296d0c4
+0, 266240, 266240, 2048, 4096, 0x619b2a53
+0, 268288, 268288, 2048, 4096, 0x316972d5
+0, 270336, 270336, 2048, 4096, 0xcfd64e21
+0, 272384, 272384, 2048, 4096, 0xcbcb10c6
+0, 274432, 274432, 2048, 4096, 0x20aeff7c
+0, 276480, 276480, 2048, 4096, 0xd205dabd
+0, 278528, 278528, 2048, 4096, 0xac9d3001
+0, 280576, 280576, 2048, 4096, 0x6d53dfdd
+0, 282624, 282624, 2048, 4096, 0xbb9fe15c
+0, 284672, 284672, 2048, 4096, 0x1852b88b
+0, 286720, 286720, 2048, 4096, 0xb0acec01
+0, 288768, 288768, 2048, 4096, 0xb52a9342
+0, 290816, 290816, 2048, 4096, 0x7529faee
+0, 292864, 292864, 2048, 4096, 0x150ff449
+0, 294912, 294912, 2048, 4096, 0xa81d31d9
+0, 296960, 296960, 2048, 4096, 0xbcb8084a
+0, 299008, 299008, 2048, 4096, 0x07229514
+0, 301056, 301056, 2048, 4096, 0xa85cfd88
+0, 303104, 303104, 2048, 4096, 0x0aef9c27
+0, 305152, 305152, 2048, 4096, 0x8ec47b39
+0, 307200, 307200, 2048, 4096, 0x910b0560
+0, 309248, 309248, 2048, 4096, 0x99a8578e
+0, 311296, 311296, 2048, 4096, 0xb3df1d84
+0, 313344, 313344, 2048, 4096, 0x48e52559
+0, 315392, 315392, 2048, 4096, 0xb25c4800
+0, 317440, 317440, 2048, 4096, 0x913bc8ce
+0, 319488, 319488, 2048, 4096, 0xb736cc8c
+0, 321536, 321536, 2048, 4096, 0x13c66646
+0, 323584, 323584, 2048, 4096, 0x70a71221
+0, 325632, 325632, 2048, 4096, 0x3a50a08e
+0, 327680, 327680, 2048, 4096, 0xc0a037b0
+0, 329728, 329728, 2048, 4096, 0x9a789475
+0, 331776, 331776, 2048, 4096, 0xc890ca16
+0, 333824, 333824, 2048, 4096, 0xa0d34bed
+0, 335872, 335872, 2048, 4096, 0x1689fa60
+0, 337920, 337920, 2048, 4096, 0x5bac4c83
+0, 339968, 339968, 684, 1368, 0x904be5e5
diff --git a/ffmpeg1/tests/ref/fate/g723_1-dec-1 b/ffmpeg1/tests/ref/fate/g723_1-dec-1
new file mode 100644
index 0000000..a3a7f67
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g723_1-dec-1
@@ -0,0 +1,3 @@
+#tb 0: 1/8000
+0, 0, 0, 240, 480, 0x7f6f3970
+0, 240, 240, 240, 480, 0x1105a0d3
diff --git a/ffmpeg1/tests/ref/fate/g723_1-dec-2 b/ffmpeg1/tests/ref/fate/g723_1-dec-2
new file mode 100644
index 0000000..e7fc9b2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g723_1-dec-2
@@ -0,0 +1,27 @@
+#tb 0: 1/8000
+0, 0, 0, 240, 480, 0x5d9d9091
+0, 240, 240, 240, 480, 0x425095b7
+0, 480, 480, 240, 480, 0xe7b6a1a7
+0, 720, 720, 240, 480, 0x9397af19
+0, 960, 960, 240, 480, 0xe671adf7
+0, 1200, 1200, 240, 480, 0x77deb313
+0, 1440, 1440, 240, 480, 0x64abbb5f
+0, 1680, 1680, 240, 480, 0x000bc879
+0, 1920, 1920, 240, 480, 0x5a88c7aa
+0, 2160, 2160, 240, 480, 0xb041cbad
+0, 2400, 2400, 240, 480, 0x3257cd54
+0, 2640, 2640, 240, 480, 0xd6e7d4b3
+0, 2880, 2880, 240, 480, 0x0054d6b6
+0, 3120, 3120, 240, 480, 0x10bcd58e
+0, 3360, 3360, 240, 480, 0x702ed981
+0, 3600, 3600, 240, 480, 0x9870d4e3
+0, 3840, 3840, 240, 480, 0x9c12d6d1
+0, 4080, 4080, 240, 480, 0xc41be449
+0, 4320, 4320, 240, 480, 0xf4bddc5a
+0, 4560, 4560, 240, 480, 0x1c03e0d4
+0, 4800, 4800, 240, 480, 0xc287e4f8
+0, 5040, 5040, 240, 480, 0xf705ec20
+0, 5280, 5280, 240, 480, 0x7835f458
+0, 5520, 5520, 240, 480, 0xa8b3e632
+0, 5760, 5760, 240, 480, 0xd358df57
+0, 6000, 6000, 240, 480, 0x934dab80
diff --git a/ffmpeg1/tests/ref/fate/g723_1-dec-3 b/ffmpeg1/tests/ref/fate/g723_1-dec-3
new file mode 100644
index 0000000..d1a2946
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g723_1-dec-3
@@ -0,0 +1,34 @@
+#tb 0: 1/8000
+0, 0, 0, 240, 480, 0xce908869
+0, 240, 240, 240, 480, 0xfa63588e
+0, 480, 480, 240, 480, 0x11ce850c
+0, 720, 720, 240, 480, 0x76c459cf
+0, 960, 960, 240, 480, 0x13ed8bf0
+0, 1200, 1200, 240, 480, 0x33d10b77
+0, 1440, 1440, 240, 480, 0xdf41e03c
+0, 1680, 1680, 240, 480, 0xa31aad71
+0, 1920, 1920, 240, 480, 0x83c2b48d
+0, 2160, 2160, 240, 480, 0xaf41ba01
+0, 2400, 2400, 240, 480, 0xeeecbadc
+0, 2640, 2640, 240, 480, 0xe253c7e1
+0, 2880, 2880, 240, 480, 0x672cbf0a
+0, 3120, 3120, 240, 480, 0x5f32aa27
+0, 3360, 3360, 240, 480, 0x0b3da147
+0, 3600, 3600, 240, 480, 0x4819e5bc
+0, 3840, 3840, 240, 480, 0x423dec60
+0, 4080, 4080, 240, 480, 0xafefe289
+0, 4320, 4320, 240, 480, 0x8dc5f136
+0, 4560, 4560, 240, 480, 0x549cee78
+0, 4800, 4800, 240, 480, 0xe589ebdc
+0, 5040, 5040, 240, 480, 0x786cef17
+0, 5280, 5280, 240, 480, 0xdafded31
+0, 5520, 5520, 240, 480, 0xe58bedf8
+0, 5760, 5760, 240, 480, 0x44daf26c
+0, 6000, 6000, 240, 480, 0x03fcf149
+0, 6240, 6240, 240, 480, 0x97a5f4ae
+0, 6480, 6480, 240, 480, 0x2114f4f6
+0, 6720, 6720, 240, 480, 0x9a44f234
+0, 6960, 6960, 240, 480, 0x5b47f339
+0, 7200, 7200, 240, 480, 0x9248edcb
+0, 7440, 7440, 240, 480, 0x47caf226
+0, 7680, 7680, 240, 480, 0x73d4ef48
diff --git a/ffmpeg1/tests/ref/fate/g723_1-dec-4 b/ffmpeg1/tests/ref/fate/g723_1-dec-4
new file mode 100644
index 0000000..792899d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g723_1-dec-4
@@ -0,0 +1,5 @@
+#tb 0: 1/8000
+0, 0, 0, 240, 480, 0xa697b314
+0, 240, 240, 240, 480, 0x43c5dc5a
+0, 480, 480, 240, 480, 0xd2438147
+0, 720, 720, 240, 480, 0x3b1ead64
diff --git a/ffmpeg1/tests/ref/fate/g723_1-dec-5 b/ffmpeg1/tests/ref/fate/g723_1-dec-5
new file mode 100644
index 0000000..bdc2982
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g723_1-dec-5
@@ -0,0 +1,101 @@
+#tb 0: 1/8000
+0, 0, 0, 240, 480, 0x4dce9773
+0, 240, 240, 240, 480, 0xe6367ab8
+0, 480, 480, 240, 480, 0xf36a589d
+0, 720, 720, 240, 480, 0xf94efd31
+0, 960, 960, 240, 480, 0x984e6d33
+0, 1200, 1200, 240, 480, 0x84eaa191
+0, 1440, 1440, 240, 480, 0xed6e0c10
+0, 1680, 1680, 240, 480, 0x3627e7a0
+0, 1920, 1920, 240, 480, 0x2421b42d
+0, 2160, 2160, 240, 480, 0x71e00d6f
+0, 2400, 2400, 240, 480, 0xd49cdb95
+0, 2640, 2640, 240, 480, 0xa167e890
+0, 2880, 2880, 240, 480, 0xbb3fd7c0
+0, 3120, 3120, 240, 480, 0xa3d5bc27
+0, 3360, 3360, 240, 480, 0x8107ca9c
+0, 3600, 3600, 240, 480, 0xcd4ce998
+0, 3840, 3840, 240, 480, 0x14e3ee73
+0, 4080, 4080, 240, 480, 0x5fc3eaf0
+0, 4320, 4320, 240, 480, 0xf166f33d
+0, 4560, 4560, 240, 480, 0xe8b3f701
+0, 4800, 4800, 240, 480, 0x50aaeafd
+0, 5040, 5040, 240, 480, 0xc7f2daec
+0, 5280, 5280, 240, 480, 0x3960e5d0
+0, 5520, 5520, 240, 480, 0xadc8ec32
+0, 5760, 5760, 240, 480, 0x8741e7b0
+0, 6000, 6000, 240, 480, 0x1a1bd910
+0, 6240, 6240, 240, 480, 0x76a4ef7f
+0, 6480, 6480, 240, 480, 0x19e6e5f5
+0, 6720, 6720, 240, 480, 0x6365e871
+0, 6960, 6960, 240, 480, 0xb2bee161
+0, 7200, 7200, 240, 480, 0x5098cba4
+0, 7440, 7440, 240, 480, 0x1009c4c5
+0, 7680, 7680, 240, 480, 0xbf20cfe3
+0, 7920, 7920, 240, 480, 0x91ddd028
+0, 8160, 8160, 240, 480, 0x4fedce37
+0, 8400, 8400, 240, 480, 0x43bcd4d8
+0, 8640, 8640, 240, 480, 0x41b3e782
+0, 8880, 8880, 240, 480, 0xa272f4a6
+0, 9120, 9120, 240, 480, 0x46b2f2cb
+0, 9360, 9360, 240, 480, 0xc47dee7d
+0, 9600, 9600, 240, 480, 0x699fe668
+0, 9840, 9840, 240, 480, 0x72b5daf8
+0, 10080, 10080, 240, 480, 0x0c0cf25e
+0, 10320, 10320, 240, 480, 0xdafff519
+0, 10560, 10560, 240, 480, 0xf1f2e42f
+0, 10800, 10800, 240, 480, 0xe04fe7f4
+0, 11040, 11040, 240, 480, 0x1157d789
+0, 11280, 11280, 240, 480, 0xe598ede6
+0, 11520, 11520, 240, 480, 0xbd06dc2f
+0, 11760, 11760, 240, 480, 0x2aa6d2d9
+0, 12000, 12000, 240, 480, 0xa61ff1a3
+0, 12240, 12240, 240, 480, 0x6f57eb35
+0, 12480, 12480, 240, 480, 0x68c1f4a9
+0, 12720, 12720, 240, 480, 0x5c0ae6f2
+0, 12960, 12960, 240, 480, 0xdffbef45
+0, 13200, 13200, 240, 480, 0xf0daf893
+0, 13440, 13440, 240, 480, 0x680cf0c4
+0, 13680, 13680, 240, 480, 0xbbc1d42f
+0, 13920, 13920, 240, 480, 0x9b66eddd
+0, 14160, 14160, 240, 480, 0xc18be7a3
+0, 14400, 14400, 240, 480, 0x1deae025
+0, 14640, 14640, 240, 480, 0x6c12e002
+0, 14880, 14880, 240, 480, 0x004bf27e
+0, 15120, 15120, 240, 480, 0xc97de444
+0, 15360, 15360, 240, 480, 0xc650de6b
+0, 15600, 15600, 240, 480, 0xe614ecd6
+0, 15840, 15840, 240, 480, 0x2c20d111
+0, 16080, 16080, 240, 480, 0x8562c091
+0, 16320, 16320, 240, 480, 0x4fcddd08
+0, 16560, 16560, 240, 480, 0xc1b2c3cb
+0, 16800, 16800, 240, 480, 0x5dcfdf24
+0, 17040, 17040, 240, 480, 0xf348d7be
+0, 17280, 17280, 240, 480, 0x31b3ead7
+0, 17520, 17520, 240, 480, 0xb30dee68
+0, 17760, 17760, 240, 480, 0x1f44e9ac
+0, 18000, 18000, 240, 480, 0x3cafe61e
+0, 18240, 18240, 240, 480, 0x5800ea95
+0, 18480, 18480, 240, 480, 0xeaeeec19
+0, 18720, 18720, 240, 480, 0x47f9eff3
+0, 18960, 18960, 240, 480, 0xdc10edf1
+0, 19200, 19200, 240, 480, 0x5b1bd3ff
+0, 19440, 19440, 240, 480, 0x039bea64
+0, 19680, 19680, 240, 480, 0xa93ac953
+0, 19920, 19920, 240, 480, 0x1b55f01c
+0, 20160, 20160, 240, 480, 0x32b7db90
+0, 20400, 20400, 240, 480, 0x2f8ce0a8
+0, 20640, 20640, 240, 480, 0x53f4f7d5
+0, 20880, 20880, 240, 480, 0x880ee517
+0, 21120, 21120, 240, 480, 0xe793f2fd
+0, 21360, 21360, 240, 480, 0x498beaf5
+0, 21600, 21600, 240, 480, 0x8c25f623
+0, 21840, 21840, 240, 480, 0xdc0df527
+0, 22080, 22080, 240, 480, 0x9d21e9b4
+0, 22320, 22320, 240, 480, 0x6d51d9e6
+0, 22560, 22560, 240, 480, 0xaf3ee6ba
+0, 22800, 22800, 240, 480, 0xbef0ea44
+0, 23040, 23040, 240, 480, 0x50c6e9ab
+0, 23280, 23280, 240, 480, 0x76a7d80c
+0, 23520, 23520, 240, 480, 0x8d68ef94
+0, 23760, 23760, 240, 480, 0x213ce600
diff --git a/ffmpeg1/tests/ref/fate/g723_1-dec-6 b/ffmpeg1/tests/ref/fate/g723_1-dec-6
new file mode 100644
index 0000000..eb0e4fa
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g723_1-dec-6
@@ -0,0 +1,101 @@
+#tb 0: 1/8000
+0, 0, 0, 240, 480, 0x4fa1aed9
+0, 240, 240, 240, 480, 0x6d7ef391
+0, 480, 480, 240, 480, 0xaecaf2c1
+0, 720, 720, 240, 480, 0xd3b2ed0a
+0, 960, 960, 240, 480, 0x33dceb4e
+0, 1200, 1200, 240, 480, 0xc10eeb64
+0, 1440, 1440, 240, 480, 0x7c0febff
+0, 1680, 1680, 240, 480, 0x0c09eecd
+0, 1920, 1920, 240, 480, 0xa5efdcf8
+0, 2160, 2160, 240, 480, 0xb643edd2
+0, 2400, 2400, 240, 480, 0x46bef26d
+0, 2640, 2640, 240, 480, 0x4310f101
+0, 2880, 2880, 240, 480, 0x3664ec16
+0, 3120, 3120, 240, 480, 0xcc17e5e8
+0, 3360, 3360, 240, 480, 0xff4cf35b
+0, 3600, 3600, 240, 480, 0xdf4cf2e5
+0, 3840, 3840, 240, 480, 0x093bf570
+0, 4080, 4080, 240, 480, 0xd950ec75
+0, 4320, 4320, 240, 480, 0xa469f2f8
+0, 4560, 4560, 240, 480, 0x3558ee9d
+0, 4800, 4800, 240, 480, 0x4102f252
+0, 5040, 5040, 240, 480, 0xf9dff318
+0, 5280, 5280, 240, 480, 0xd7cbef4d
+0, 5520, 5520, 240, 480, 0x76c4eed3
+0, 5760, 5760, 240, 480, 0xe3d6e9d1
+0, 6000, 6000, 240, 480, 0x63baf340
+0, 6240, 6240, 240, 480, 0xd2dff2ff
+0, 6480, 6480, 240, 480, 0x3355ebc4
+0, 6720, 6720, 240, 480, 0x7183ed76
+0, 6960, 6960, 240, 480, 0x9806eff7
+0, 7200, 7200, 240, 480, 0xc090ec04
+0, 7440, 7440, 240, 480, 0xe76ff174
+0, 7680, 7680, 240, 480, 0x2cdfe8f1
+0, 7920, 7920, 240, 480, 0xbb69ee8a
+0, 8160, 8160, 240, 480, 0x3e03f522
+0, 8400, 8400, 240, 480, 0xe7e6e659
+0, 8640, 8640, 240, 480, 0x4dbaf063
+0, 8880, 8880, 240, 480, 0xc9b9f381
+0, 9120, 9120, 240, 480, 0x3866edc9
+0, 9360, 9360, 240, 480, 0x7e0defca
+0, 9600, 9600, 240, 480, 0xa88bf700
+0, 9840, 9840, 240, 480, 0x65a7f029
+0, 10080, 10080, 240, 480, 0xaf8cf09d
+0, 10320, 10320, 240, 480, 0x679bee1e
+0, 10560, 10560, 240, 480, 0x8dc1e9a4
+0, 10800, 10800, 240, 480, 0xe3c2f0ac
+0, 11040, 11040, 240, 480, 0x35d0eb14
+0, 11280, 11280, 240, 480, 0xfeb3ed00
+0, 11520, 11520, 240, 480, 0x9da3ecb4
+0, 11760, 11760, 240, 480, 0xa0e3f3c2
+0, 12000, 12000, 240, 480, 0x05ffe9de
+0, 12240, 12240, 240, 480, 0xf7adef05
+0, 12480, 12480, 240, 480, 0x71bef669
+0, 12720, 12720, 240, 480, 0x4b9feca8
+0, 12960, 12960, 240, 480, 0x85e5ecd8
+0, 13200, 13200, 240, 480, 0xa4cbe90e
+0, 13440, 13440, 240, 480, 0xe689f958
+0, 13680, 13680, 240, 480, 0xa936f168
+0, 13920, 13920, 240, 480, 0x496ff059
+0, 14160, 14160, 240, 480, 0x0bb6eb82
+0, 14400, 14400, 240, 480, 0x7727ef53
+0, 14640, 14640, 240, 480, 0xede3eaab
+0, 14880, 14880, 240, 480, 0xe961ef58
+0, 15120, 15120, 240, 480, 0x454fef58
+0, 15360, 15360, 240, 480, 0x9305e76d
+0, 15600, 15600, 240, 480, 0xfe5ce6ed
+0, 15840, 15840, 240, 480, 0x84d1efdc
+0, 16080, 16080, 240, 480, 0x4b23ed7a
+0, 16320, 16320, 240, 480, 0x1380eb91
+0, 16560, 16560, 240, 480, 0xf705eca3
+0, 16800, 16800, 240, 480, 0x26f7e707
+0, 17040, 17040, 240, 480, 0x3fe3f27f
+0, 17280, 17280, 240, 480, 0xa030f177
+0, 17520, 17520, 240, 480, 0xaf72ed92
+0, 17760, 17760, 240, 480, 0x00b8f1e7
+0, 18000, 18000, 240, 480, 0x681fecca
+0, 18240, 18240, 240, 480, 0x3ca1ef63
+0, 18480, 18480, 240, 480, 0xd6fcedac
+0, 18720, 18720, 240, 480, 0x6928ed04
+0, 18960, 18960, 240, 480, 0x8bdeeebe
+0, 19200, 19200, 240, 480, 0x24b6f59d
+0, 19440, 19440, 240, 480, 0xd49deebf
+0, 19680, 19680, 240, 480, 0xe798f2c8
+0, 19920, 19920, 240, 480, 0x280fefb8
+0, 20160, 20160, 240, 480, 0xe0a8f40d
+0, 20400, 20400, 240, 480, 0x4d48f511
+0, 20640, 20640, 240, 480, 0x6bf3eef0
+0, 20880, 20880, 240, 480, 0x1573f1cd
+0, 21120, 21120, 240, 480, 0x6245e961
+0, 21360, 21360, 240, 480, 0xe05af091
+0, 21600, 21600, 240, 480, 0xfcc3e9e3
+0, 21840, 21840, 240, 480, 0x6d5febae
+0, 22080, 22080, 240, 480, 0x4a96ef58
+0, 22320, 22320, 240, 480, 0x1586f156
+0, 22560, 22560, 240, 480, 0x50b0e99e
+0, 22800, 22800, 240, 480, 0xf25dfa9b
+0, 23040, 23040, 240, 480, 0x49b5f932
+0, 23280, 23280, 240, 480, 0xe1ddef32
+0, 23520, 23520, 240, 480, 0x2307ed94
+0, 23760, 23760, 240, 480, 0x6a2beb17
diff --git a/ffmpeg1/tests/ref/fate/g723_1-dec-7 b/ffmpeg1/tests/ref/fate/g723_1-dec-7
new file mode 100644
index 0000000..cc30187
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g723_1-dec-7
@@ -0,0 +1,12 @@
+#tb 0: 1/8000
+0, 0, 0, 240, 480, 0x35e4a1fd
+0, 240, 240, 240, 480, 0x2f7bdd60
+0, 480, 480, 240, 480, 0x0407e499
+0, 720, 720, 240, 480, 0x5f5ef209
+0, 960, 960, 240, 480, 0xe936e8d1
+0, 1200, 1200, 240, 480, 0x0896ddba
+0, 1440, 1440, 240, 480, 0xa885ea94
+0, 1680, 1680, 240, 480, 0x40bff3d0
+0, 1920, 1920, 240, 480, 0xe05ce4c3
+0, 2160, 2160, 240, 480, 0x80c4f790
+0, 2400, 2400, 240, 480, 0x65d5e8f9
diff --git a/ffmpeg1/tests/ref/fate/g723_1-dec-8 b/ffmpeg1/tests/ref/fate/g723_1-dec-8
new file mode 100644
index 0000000..fc4d9f3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g723_1-dec-8
@@ -0,0 +1,121 @@
+#tb 0: 1/8000
+0, 0, 0, 240, 480, 0x17930e0f
+0, 240, 240, 240, 480, 0x7c7f4247
+0, 480, 480, 240, 480, 0xbf3489e5
+0, 720, 720, 240, 480, 0x24319fc9
+0, 960, 960, 240, 480, 0xb327eec0
+0, 1200, 1200, 240, 480, 0xc2ddcbca
+0, 1440, 1440, 240, 480, 0xeebad740
+0, 1680, 1680, 240, 480, 0x77fcb933
+0, 1920, 1920, 240, 480, 0x9677c5b7
+0, 2160, 2160, 240, 480, 0xb49dcb9e
+0, 2400, 2400, 240, 480, 0x0e78d7e6
+0, 2640, 2640, 240, 480, 0xf752dc3e
+0, 2880, 2880, 240, 480, 0xc95af091
+0, 3120, 3120, 240, 480, 0xa25de399
+0, 3360, 3360, 240, 480, 0x34e7e0da
+0, 3600, 3600, 240, 480, 0x6c84e3f4
+0, 3840, 3840, 240, 480, 0x2c7dda20
+0, 4080, 4080, 240, 480, 0x00a5f112
+0, 4320, 4320, 240, 480, 0x943ddd89
+0, 4560, 4560, 240, 480, 0x4ad4ebac
+0, 4800, 4800, 240, 480, 0xa4ff0aa8
+0, 5040, 5040, 240, 480, 0xc0f805f2
+0, 5280, 5280, 240, 480, 0x859ce987
+0, 5520, 5520, 240, 480, 0x9ebcd0de
+0, 5760, 5760, 240, 480, 0x3de2db0b
+0, 6000, 6000, 240, 480, 0x0affea9c
+0, 6240, 6240, 240, 480, 0xcb1bf81e
+0, 6480, 6480, 240, 480, 0x8a72d71d
+0, 6720, 6720, 240, 480, 0x583cd5cd
+0, 6960, 6960, 240, 480, 0x4be7dc7b
+0, 7200, 7200, 240, 480, 0xb08108c0
+0, 7440, 7440, 240, 480, 0xd0b3ed59
+0, 7680, 7680, 240, 480, 0x7d33f822
+0, 7920, 7920, 240, 480, 0x199c0111
+0, 8160, 8160, 240, 480, 0x7d29f2a8
+0, 8400, 8400, 240, 480, 0x424dec5e
+0, 8640, 8640, 240, 480, 0x946cf258
+0, 8880, 8880, 240, 480, 0xd429da7a
+0, 9120, 9120, 240, 480, 0x0f11df46
+0, 9360, 9360, 240, 480, 0xf4dce502
+0, 9600, 9600, 240, 480, 0x01c1de78
+0, 9840, 9840, 240, 480, 0xd1d3da59
+0, 10080, 10080, 240, 480, 0x5822f3ec
+0, 10320, 10320, 240, 480, 0xadd5fe67
+0, 10560, 10560, 240, 480, 0xdcf5f2c3
+0, 10800, 10800, 240, 480, 0x5176e39b
+0, 11040, 11040, 240, 480, 0xf947e0b1
+0, 11280, 11280, 240, 480, 0x33b1eb36
+0, 11520, 11520, 240, 480, 0x57bce9bd
+0, 11760, 11760, 240, 480, 0x806eec1f
+0, 12000, 12000, 240, 480, 0x0a60f94a
+0, 12240, 12240, 240, 480, 0x9eddf27d
+0, 12480, 12480, 240, 480, 0x3d28ef2f
+0, 12720, 12720, 240, 480, 0x52f0e562
+0, 12960, 12960, 240, 480, 0xf2d6c8a0
+0, 13200, 13200, 240, 480, 0xfa0df4a1
+0, 13440, 13440, 240, 480, 0x9cccfda9
+0, 13680, 13680, 240, 480, 0xa7c1e528
+0, 13920, 13920, 240, 480, 0xe130e8f9
+0, 14160, 14160, 240, 480, 0x80f6eabe
+0, 14400, 14400, 240, 480, 0x9bbb027e
+0, 14640, 14640, 240, 480, 0x33cdea7f
+0, 14880, 14880, 240, 480, 0x84d8e761
+0, 15120, 15120, 240, 480, 0xb99ce457
+0, 15360, 15360, 240, 480, 0x5dc1e324
+0, 15600, 15600, 240, 480, 0xc914e6c3
+0, 15840, 15840, 240, 480, 0x8e77f5c2
+0, 16080, 16080, 240, 480, 0x3997034d
+0, 16320, 16320, 240, 480, 0x820cfd49
+0, 16560, 16560, 240, 480, 0x8ad5f24c
+0, 16800, 16800, 240, 480, 0xe21be71c
+0, 17040, 17040, 240, 480, 0x516ae8c8
+0, 17280, 17280, 240, 480, 0x595bdc3d
+0, 17520, 17520, 240, 480, 0x8a4bee79
+0, 17760, 17760, 240, 480, 0x307fed64
+0, 18000, 18000, 240, 480, 0xe71cf219
+0, 18240, 18240, 240, 480, 0xdb0be1a1
+0, 18480, 18480, 240, 480, 0x7947dfbd
+0, 18720, 18720, 240, 480, 0x5d90fbf0
+0, 18960, 18960, 240, 480, 0xa449fc55
+0, 19200, 19200, 240, 480, 0x45b2f979
+0, 19440, 19440, 240, 480, 0x2b2be378
+0, 19680, 19680, 240, 480, 0x2d2edf42
+0, 19920, 19920, 240, 480, 0x568ee04f
+0, 20160, 20160, 240, 480, 0x66f0debe
+0, 20400, 20400, 240, 480, 0xc943eab7
+0, 20640, 20640, 240, 480, 0xc9ade3c9
+0, 20880, 20880, 240, 480, 0x6971f92d
+0, 21120, 21120, 240, 480, 0x48d0ecbc
+0, 21360, 21360, 240, 480, 0xf641dc98
+0, 21600, 21600, 240, 480, 0xbb18e167
+0, 21840, 21840, 240, 480, 0x72ce0968
+0, 22080, 22080, 240, 480, 0x15bee6f6
+0, 22320, 22320, 240, 480, 0x93d5e91f
+0, 22560, 22560, 240, 480, 0x7aee010b
+0, 22800, 22800, 240, 480, 0x9e82dc87
+0, 23040, 23040, 240, 480, 0x4ee6f547
+0, 23280, 23280, 240, 480, 0x3072d102
+0, 23520, 23520, 240, 480, 0x74d4fb04
+0, 23760, 23760, 240, 480, 0xc670f958
+0, 24000, 24000, 240, 480, 0x3965c41f
+0, 24240, 24240, 240, 480, 0x6a2de869
+0, 24480, 24480, 240, 480, 0xa757f44b
+0, 24720, 24720, 240, 480, 0x94a5168c
+0, 24960, 24960, 240, 480, 0xef0f0c28
+0, 25200, 25200, 240, 480, 0x3770ebb3
+0, 25440, 25440, 240, 480, 0x4343de6f
+0, 25680, 25680, 240, 480, 0x3ec8d816
+0, 25920, 25920, 240, 480, 0x1661e3d3
+0, 26160, 26160, 240, 480, 0x077cd9fd
+0, 26400, 26400, 240, 480, 0xb5ece07e
+0, 26640, 26640, 240, 480, 0xf303e151
+0, 26880, 26880, 240, 480, 0x95e4d019
+0, 27120, 27120, 240, 480, 0x4bd0ddc0
+0, 27360, 27360, 240, 480, 0x6cebd341
+0, 27600, 27600, 240, 480, 0xea3fea9e
+0, 27840, 27840, 240, 480, 0x5ad30c3f
+0, 28080, 28080, 240, 480, 0x218c02a5
+0, 28320, 28320, 240, 480, 0x662decd0
+0, 28560, 28560, 240, 480, 0x6865e2f2
diff --git a/ffmpeg1/tests/ref/fate/g726-encode-2bit b/ffmpeg1/tests/ref/fate/g726-encode-2bit
new file mode 100644
index 0000000..26a1219
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g726-encode-2bit
@@ -0,0 +1 @@
+MD5=215eaef5778a16e2bf4f3725a557f355
diff --git a/ffmpeg1/tests/ref/fate/g726-encode-3bit b/ffmpeg1/tests/ref/fate/g726-encode-3bit
new file mode 100644
index 0000000..f9c6940
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g726-encode-3bit
@@ -0,0 +1 @@
+MD5=0bebd949dfd5ac0ae3f2c3ceb2e3fac1
diff --git a/ffmpeg1/tests/ref/fate/g726-encode-4bit b/ffmpeg1/tests/ref/fate/g726-encode-4bit
new file mode 100644
index 0000000..6d03517
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g726-encode-4bit
@@ -0,0 +1 @@
+MD5=a21cfea116ab2179eabe5d84b6bfc09a
diff --git a/ffmpeg1/tests/ref/fate/g726-encode-5bit b/ffmpeg1/tests/ref/fate/g726-encode-5bit
new file mode 100644
index 0000000..459ebb3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/g726-encode-5bit
@@ -0,0 +1 @@
+MD5=9cad98cf5205bf76d6e9d1241e56141a
diff --git a/ffmpeg1/tests/ref/fate/g729-0 b/ffmpeg1/tests/ref/fate/g729-0
new file mode 100644
index 0000000..36c6634
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/g729-1 b/ffmpeg1/tests/ref/fate/g729-1
new file mode 100644
index 0000000..6bf05c5
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/gif-color b/ffmpeg1/tests/ref/fate/gif-color
new file mode 100644
index 0000000..6abb565
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/gif-color
@@ -0,0 +1,174 @@
+#tb 0: 1/100
+0, 0, 0, 1, 188356, 0xf0944065
+0, 10, 10, 1, 188356, 0x146ed4c4
+0, 20, 20, 1, 188356, 0x96866a6f
+0, 30, 30, 1, 188356, 0xe15e1f1c
+0, 40, 40, 1, 188356, 0x0662c1d0
+0, 50, 50, 1, 188356, 0x88fa6cc4
+0, 60, 60, 1, 188356, 0x3cce2f71
+0, 70, 70, 1, 188356, 0x1510f9f3
+0, 80, 80, 1, 188356, 0xf27e9fa8
+0, 90, 90, 1, 188356, 0x0f4b64a2
+0, 100, 100, 1, 188356, 0x3d2714a5
+0, 110, 110, 1, 188356, 0x392ce45d
+0, 120, 120, 1, 188356, 0x2eadb79f
+0, 130, 130, 1, 188356, 0x68109314
+0, 140, 140, 1, 188356, 0x4eca71ac
+0, 150, 150, 1, 188356, 0xa9aa5907
+0, 160, 160, 1, 188356, 0x2a5d08c0
+0, 170, 170, 1, 188356, 0x942bba84
+0, 180, 180, 1, 188356, 0xbee38983
+0, 190, 190, 1, 188356, 0xa0d65a5a
+0, 200, 200, 1, 188356, 0x47270bee
+0, 210, 210, 1, 188356, 0xc020dc40
+0, 220, 220, 1, 188356, 0x978dbc8f
+0, 230, 230, 1, 188356, 0x6b1e9f1b
+0, 240, 240, 1, 188356, 0xd8078bf4
+0, 250, 250, 1, 188356, 0x94ca7bd7
+0, 260, 260, 1, 188356, 0xac745e77
+0, 270, 270, 1, 188356, 0x73154f2c
+0, 280, 280, 1, 188356, 0x31200601
+0, 290, 290, 1, 188356, 0x6525dd42
+0, 300, 300, 1, 188356, 0xa29b985a
+0, 310, 310, 1, 188356, 0xe3e074d8
+0, 320, 320, 1, 188356, 0xb87b3222
+0, 330, 330, 1, 188356, 0x5b9a11f2
+0, 340, 340, 1, 188356, 0x25f7f8c9
+0, 350, 350, 1, 188356, 0x0235e93c
+0, 360, 360, 1, 188356, 0x2a42d643
+0, 370, 370, 1, 188356, 0xfb7acddb
+0, 380, 380, 1, 188356, 0xecbbbf5e
+0, 390, 390, 1, 188356, 0xeba4bc9a
+0, 400, 400, 1, 188356, 0x4317b36b
+0, 410, 410, 1, 188356, 0x7316ae1a
+0, 420, 420, 1, 188356, 0xb5ccad05
+0, 430, 430, 1, 188356, 0x38afb0dc
+0, 440, 440, 1, 188356, 0xf11cad55
+0, 450, 450, 1, 188356, 0x3d77b400
+0, 460, 460, 1, 188356, 0xf084b9b9
+0, 470, 470, 1, 188356, 0x02a4c584
+0, 480, 480, 1, 188356, 0x14f4d52e
+0, 490, 490, 1, 188356, 0x55118432
+0, 500, 500, 1, 188356, 0x4ad82e9f
+0, 510, 510, 1, 188356, 0xc6eafc52
+0, 520, 520, 1, 188356, 0xf4bdc575
+0, 530, 530, 1, 188356, 0x8429689e
+0, 540, 540, 1, 188356, 0xaa23019e
+0, 550, 550, 1, 188356, 0xaf52c3a5
+0, 560, 560, 1, 188356, 0x1d387c32
+0, 570, 570, 1, 188356, 0x543d5cd2
+0, 580, 580, 1, 188356, 0x8cdb399c
+0, 590, 590, 1, 188356, 0xcceb292f
+0, 600, 600, 1, 188356, 0xa87115e8
+0, 610, 610, 1, 188356, 0x9665ec8f
+0, 620, 620, 1, 188356, 0xad99baf4
+0, 630, 630, 1, 188356, 0xc6e5a2b5
+0, 640, 640, 1, 188356, 0xe2a48359
+0, 650, 650, 1, 188356, 0x3a270df0
+0, 660, 660, 1, 188356, 0xcc34826b
+0, 670, 670, 1, 188356, 0x15ec2dcc
+0, 680, 680, 1, 188356, 0x8874c5f9
+0, 690, 690, 1, 188356, 0x829966e8
+0, 700, 700, 1, 188356, 0x691f1ebb
+0, 710, 710, 1, 188356, 0x00e3e184
+0, 720, 720, 1, 188356, 0x97739332
+0, 730, 730, 1, 188356, 0x507769aa
+0, 740, 740, 1, 188356, 0xddfb3069
+0, 750, 750, 1, 188356, 0x7296f749
+0, 760, 760, 1, 188356, 0x0555ca32
+0, 770, 770, 1, 188356, 0x4554c683
+0, 780, 780, 1, 188356, 0x2398c10f
+0, 790, 790, 1, 188356, 0x1c5ccfa0
+0, 800, 800, 1, 188356, 0xa580f3c8
+0, 810, 810, 1, 188356, 0x4fadea78
+0, 820, 820, 1, 188356, 0x4a57db38
+0, 830, 830, 1, 188356, 0x9e98df6d
+0, 840, 840, 1, 188356, 0xfeb3dec9
+0, 850, 850, 1, 188356, 0xbf16ef7a
+0, 860, 860, 1, 188356, 0xdc23fc48
+0, 870, 870, 1, 188356, 0x3bf2e401
+0, 880, 880, 1, 188356, 0xc832bcf4
+0, 890, 890, 1, 188356, 0x977db44f
+0, 900, 900, 1, 188356, 0x18d39d96
+0, 910, 910, 1, 188356, 0x9adf60d8
+0, 920, 920, 1, 188356, 0x567b667a
+0, 930, 930, 1, 188356, 0xd4a45e8e
+0, 940, 940, 1, 188356, 0x94a24cc7
+0, 950, 950, 1, 188356, 0x086f0a53
+0, 960, 960, 1, 188356, 0xcbf3ebcb
+0, 970, 970, 1, 188356, 0x1a40a7b9
+0, 980, 980, 1, 188356, 0xe16d8964
+0, 990, 990, 1, 188356, 0x3edd7dfa
+0, 1000, 1000, 1, 188356, 0xba417fa5
+0, 1010, 1010, 1, 188356, 0x734a7611
+0, 1020, 1020, 1, 188356, 0xfa1e7b1e
+0, 1030, 1030, 1, 188356, 0x1af23355
+0, 1040, 1040, 1, 188356, 0x28d41390
+0, 1050, 1050, 1, 188356, 0x2838c58d
+0, 1060, 1060, 1, 188356, 0x4e2ba2a8
+0, 1070, 1070, 1, 188356, 0xcedc99ae
+0, 1080, 1080, 1, 188356, 0xb06ba12d
+0, 1090, 1090, 1, 188356, 0x38c997b6
+0, 1100, 1100, 1, 188356, 0x12dba0dc
+0, 1110, 1110, 1, 188356, 0x5f86496a
+0, 1120, 1120, 1, 188356, 0x0b74216d
+0, 1130, 1130, 1, 188356, 0xdbddbada
+0, 1140, 1140, 1, 188356, 0x7d168af2
+0, 1150, 1150, 1, 188356, 0x22d4462b
+0, 1160, 1160, 1, 188356, 0xc248265d
+0, 1170, 1170, 1, 188356, 0x37a41b0d
+0, 1180, 1180, 1, 188356, 0x9ebd24f1
+0, 1190, 1190, 1, 188356, 0xf21f1633
+0, 1200, 1200, 1, 188356, 0x1db62004
+0, 1210, 1210, 1, 188356, 0xcc241ac1
+0, 1220, 1220, 1, 188356, 0x224d2637
+0, 1230, 1230, 1, 188356, 0x1bd8390c
+0, 1240, 1240, 1, 188356, 0xd8e64966
+0, 1250, 1250, 1, 188356, 0x96e66287
+0, 1260, 1260, 1, 188356, 0xa83c9a32
+0, 1270, 1270, 1, 188356, 0x3a5faeba
+0, 1280, 1280, 1, 188356, 0x8200cd87
+0, 1290, 1290, 1, 188356, 0x6326e591
+0, 1300, 1300, 1, 188356, 0xb5d70993
+0, 1310, 1310, 1, 188356, 0x954d5da2
+0, 1320, 1320, 1, 188356, 0x38b1788b
+0, 1330, 1330, 1, 188356, 0x4aafa131
+0, 1340, 1340, 1, 188356, 0xaff2be78
+0, 1350, 1350, 1, 188356, 0x9bd7eb69
+0, 1360, 1360, 1, 188356, 0x0d2b17c9
+0, 1370, 1370, 1, 188356, 0xf5d8a764
+0, 1380, 1380, 1, 188356, 0xa302dfb2
+0, 1390, 1390, 1, 188356, 0xe8a32ac1
+0, 1400, 1400, 1, 188356, 0x50a8470d
+0, 1410, 1410, 1, 188356, 0x52826061
+0, 1420, 1420, 1, 188356, 0x26e88798
+0, 1430, 1430, 1, 188356, 0x1448acb8
+0, 1440, 1440, 1, 188356, 0xfb380972
+0, 1450, 1450, 1, 188356, 0x184976e8
+0, 1460, 1460, 1, 188356, 0xa349a871
+0, 1470, 1470, 1, 188356, 0x617ed8b1
+0, 1480, 1480, 1, 188356, 0xb6bc1425
+0, 1490, 1490, 1, 188356, 0xafe74efd
+0, 1500, 1500, 1, 188356, 0x0b8b61e5
+0, 1510, 1510, 1, 188356, 0xc6ad67a7
+0, 1520, 1520, 1, 188356, 0x4da186fe
+0, 1530, 1530, 1, 188356, 0xe08f9975
+0, 1540, 1540, 1, 188356, 0xa43f8ba4
+0, 1550, 1550, 1, 188356, 0xcad4b6b5
+0, 1560, 1560, 1, 188356, 0x7e70d51e
+0, 1570, 1570, 1, 188356, 0x429b0b5b
+0, 1580, 1580, 1, 188356, 0xea92350d
+0, 1590, 1590, 1, 188356, 0x9a7440f8
+0, 1600, 1600, 1, 188356, 0x63a2be6e
+0, 1610, 1610, 1, 188356, 0x59b64b50
+0, 1620, 1620, 1, 188356, 0x63c4a10e
+0, 1630, 1630, 1, 188356, 0x6146e5e0
+0, 1640, 1640, 1, 188356, 0x603b2ae5
+0, 1650, 1650, 1, 188356, 0x818bc774
+0, 1660, 1660, 1, 188356, 0xa5ce278f
+0, 1670, 1670, 1, 188356, 0x4d85684d
+0, 1680, 1680, 1, 188356, 0xbbda9cad
+0, 1690, 1690, 1, 188356, 0xfee2e78e
+0, 1700, 1700, 1, 188356, 0x681d2635
+0, 1710, 1710, 1, 188356, 0x05354903
+0, 1720, 1720, 1, 188356, 0x8eecac99
diff --git a/ffmpeg1/tests/ref/fate/gif-demux b/ffmpeg1/tests/ref/fate/gif-demux
new file mode 100644
index 0000000..547b9ce
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/gif-demux
@@ -0,0 +1,37 @@
+#tb 0: 1/100
+0, 0, 0, 5, 74699, 0xef7e91c8
+0, 5, 5, 2, 10079, 0x2892d9e2, F=0x0
+0, 7, 7, 2, 12369, 0xd7d73286, F=0x0
+0, 9, 9, 2, 8868, 0x4bb59b6d, F=0x0
+0, 11, 11, 2, 8249, 0x23d5d174, F=0x0
+0, 13, 13, 2, 8381, 0x10acf0cd, F=0x0
+0, 15, 15, 2, 8579, 0xdfe108b2, F=0x0
+0, 17, 17, 2, 8200, 0x46ec6c55, F=0x0
+0, 19, 19, 2, 7261, 0xaf328999, F=0x0
+0, 21, 21, 4, 7047, 0xab3d2bd0, F=0x0
+0, 25, 25, 2, 6486, 0xa1629769, F=0x0
+0, 27, 27, 2, 7278, 0x4c55b7ce, F=0x0
+0, 29, 29, 2, 7761, 0x54368171, F=0x0
+0, 31, 31, 2, 7794, 0xbde2dbcd, F=0x0
+0, 33, 33, 2, 7935, 0xe6202c65, F=0x0
+0, 35, 35, 2, 8499, 0x1d5ceb7e, F=0x0
+0, 37, 37, 2, 8841, 0xc962be37, F=0x0
+0, 39, 39, 2, 9281, 0x7ec29c31, F=0x0
+0, 41, 41, 5, 9606, 0x3de06d48, F=0x0
+0, 46, 46, 2, 6319, 0xb3e94478, F=0x0
+0, 48, 48, 2, 5521, 0xc8157edc, F=0x0
+0, 50, 50, 2, 5052, 0x23e8ea7c, F=0x0
+0, 52, 52, 2, 4651, 0xa73f25c9, F=0x0
+0, 54, 54, 2, 4477, 0x1ddcc2c3, F=0x0
+0, 56, 56, 2, 4736, 0x6ead0d5e, F=0x0
+0, 58, 58, 2, 4609, 0x8bc7faa3, F=0x0
+0, 60, 60, 2, 4474, 0x3926975e, F=0x0
+0, 62, 62, 4, 4381, 0x28c392d5, F=0x0
+0, 66, 66, 2, 4443, 0x9c33b143, F=0x0
+0, 68, 68, 2, 4540, 0xb1d1c8b9, F=0x0
+0, 70, 70, 2, 4530, 0x773bc617, F=0x0
+0, 72, 72, 2, 4558, 0xa1e8cdf3, F=0x0
+0, 74, 74, 2, 4633, 0x8f64fda7, F=0x0
+0, 76, 76, 2, 4700, 0x45f40805, F=0x0
+0, 78, 78, 2, 5117, 0x4eb4c5fb, F=0x0
+0, 80, 80, 2, 5370, 0xb10c6910, F=0x0
diff --git a/ffmpeg1/tests/ref/fate/gif-disposal-restore b/ffmpeg1/tests/ref/fate/gif-disposal-restore
new file mode 100644
index 0000000..0ce4112
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/gif-disposal-restore
@@ -0,0 +1,4 @@
+#tb 0: 1/100
+0, 0, 0, 1, 112320, 0xb8afe429
+0, 10, 10, 1, 112320, 0xae588a4b
+0, 310, 310, 1, 112320, 0xccdd27b7
diff --git a/ffmpeg1/tests/ref/fate/gif-gray b/ffmpeg1/tests/ref/fate/gif-gray
new file mode 100644
index 0000000..5a133bd
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/gif-gray
@@ -0,0 +1,37 @@
+#tb 0: 1/100
+0, 0, 0, 1, 691200, 0xef6c0f3d
+0, 5, 5, 1, 691200, 0xc18b32de
+0, 7, 7, 1, 691200, 0x2395a3d7
+0, 9, 9, 1, 691200, 0x81dc3cf2
+0, 11, 11, 1, 691200, 0xabe2390e
+0, 13, 13, 1, 691200, 0xb2955c2a
+0, 15, 15, 1, 691200, 0x868d9ca2
+0, 17, 17, 1, 691200, 0x3016c2b6
+0, 19, 19, 1, 691200, 0x4501cffa
+0, 21, 21, 1, 691200, 0x8661d79e
+0, 25, 25, 1, 691200, 0xbc96d02e
+0, 27, 27, 1, 691200, 0x5f90bf5e
+0, 29, 29, 1, 691200, 0xf18da09a
+0, 31, 31, 1, 691200, 0x540467ce
+0, 33, 33, 1, 691200, 0x60d24012
+0, 35, 35, 1, 691200, 0x24323d36
+0, 37, 37, 1, 691200, 0x9e07c84b
+0, 39, 39, 1, 691200, 0xc18b32de
+0, 41, 41, 1, 691200, 0xef6c0f3d
+0, 46, 46, 1, 691200, 0xc9461045
+0, 48, 48, 1, 691200, 0x23ed4b99
+0, 50, 50, 1, 691200, 0x7e351d69
+0, 52, 52, 1, 691200, 0x0513e0aa
+0, 54, 54, 1, 691200, 0x28a4b6f2
+0, 56, 56, 1, 691200, 0xce10a94e
+0, 58, 58, 1, 691200, 0x63929d4e
+0, 60, 60, 1, 691200, 0xd26c9bb6
+0, 62, 62, 1, 691200, 0xb2a29842
+0, 66, 66, 1, 691200, 0x9fd69a16
+0, 68, 68, 1, 691200, 0x10f99e46
+0, 70, 70, 1, 691200, 0xea95a9fa
+0, 72, 72, 1, 691200, 0x97dbb9d6
+0, 74, 74, 1, 691200, 0xf4e9e2d6
+0, 76, 76, 1, 691200, 0x46b1230d
+0, 78, 78, 1, 691200, 0xb4a54ccd
+0, 80, 80, 1, 691200, 0x40cc103d
diff --git a/ffmpeg1/tests/ref/fate/gsm-ms b/ffmpeg1/tests/ref/fate/gsm-ms
new file mode 100644
index 0000000..6d15cb8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/gsm-ms
@@ -0,0 +1,90 @@
+#tb 0: 1/8000
+0, 0, 0, 320, 640, 0xf79c59ee
+0, 320, 320, 320, 640, 0x6e6248be
+0, 640, 640, 320, 640, 0x2a5b3aed
+0, 960, 960, 320, 640, 0xf7012e06
+0, 1280, 1280, 320, 640, 0x626645cd
+0, 1600, 1600, 320, 640, 0x9f482b66
+0, 1920, 1920, 320, 640, 0xea443886
+0, 2240, 2240, 320, 640, 0xa79b3dc0
+0, 2560, 2560, 320, 640, 0x0161263f
+0, 2880, 2880, 320, 640, 0x61b33154
+0, 3200, 3200, 320, 640, 0xf7fa388c
+0, 3520, 3520, 320, 640, 0xb63038e9
+0, 3840, 3840, 320, 640, 0x61b03506
+0, 4160, 4160, 320, 640, 0xed4e2eac
+0, 4480, 4480, 320, 640, 0x9b8127f1
+0, 4800, 4800, 320, 640, 0xe50627be
+0, 5120, 5120, 320, 640, 0x6b5038f9
+0, 5440, 5440, 320, 640, 0x8e794c10
+0, 5760, 5760, 320, 640, 0x426d2c93
+0, 6080, 6080, 320, 640, 0x9a373111
+0, 6400, 6400, 320, 640, 0x94132ccb
+0, 6720, 6720, 320, 640, 0x610b3788
+0, 7040, 7040, 320, 640, 0x27204206
+0, 7360, 7360, 320, 640, 0xbdf82268
+0, 7680, 7680, 320, 640, 0x2e653066
+0, 8000, 8000, 320, 640, 0xccfd2328
+0, 8320, 8320, 320, 640, 0xf2431e04
+0, 8640, 8640, 320, 640, 0x7b412094
+0, 8960, 8960, 320, 640, 0x5c2635fa
+0, 9280, 9280, 320, 640, 0xdcbd2c60
+0, 9600, 9600, 320, 640, 0x65173699
+0, 9920, 9920, 320, 640, 0xbcff19ed
+0, 10240, 10240, 320, 640, 0xf5b2206c
+0, 10560, 10560, 320, 640, 0x587e460c
+0, 10880, 10880, 320, 640, 0x2418382d
+0, 11200, 11200, 320, 640, 0xbfad2f9b
+0, 11520, 11520, 320, 640, 0x87d92d6c
+0, 11840, 11840, 320, 640, 0xdc582c69
+0, 12160, 12160, 320, 640, 0xcfe52ebf
+0, 12480, 12480, 320, 640, 0xe0032e70
+0, 12800, 12800, 320, 640, 0xf8a61b57
+0, 13120, 13120, 320, 640, 0xa9ef2ee5
+0, 13440, 13440, 320, 640, 0x7f513313
+0, 13760, 13760, 320, 640, 0x93731177
+0, 14080, 14080, 320, 640, 0xed2c2340
+0, 14400, 14400, 320, 640, 0x85b02913
+0, 14720, 14720, 320, 640, 0xa5a92f3e
+0, 15040, 15040, 320, 640, 0x72472490
+0, 15360, 15360, 320, 640, 0x856231fc
+0, 15680, 15680, 320, 640, 0xda2e3c22
+0, 16000, 16000, 320, 640, 0xcce84c36
+0, 16320, 16320, 320, 640, 0x39312c78
+0, 16640, 16640, 320, 640, 0xf1aa2365
+0, 16960, 16960, 320, 640, 0x1dba3f7e
+0, 17280, 17280, 320, 640, 0x21953579
+0, 17600, 17600, 320, 640, 0xbbd52c22
+0, 17920, 17920, 320, 640, 0x45c71537
+0, 18240, 18240, 320, 640, 0x26051cec
+0, 18560, 18560, 320, 640, 0x27ae223e
+0, 18880, 18880, 320, 640, 0x223c0bb8
+0, 19200, 19200, 320, 640, 0xc5b72796
+0, 19520, 19520, 320, 640, 0xe7fd294d
+0, 19840, 19840, 320, 640, 0x19042293
+0, 20160, 20160, 320, 640, 0xa6572c6b
+0, 20480, 20480, 320, 640, 0x58ac1d16
+0, 20800, 20800, 320, 640, 0xd0631bd6
+0, 21120, 21120, 320, 640, 0xe74f276c
+0, 21440, 21440, 320, 640, 0x87d0295f
+0, 21760, 21760, 320, 640, 0x054e3dc8
+0, 22080, 22080, 320, 640, 0x0ca51c2d
+0, 22400, 22400, 320, 640, 0x17a02616
+0, 22720, 22720, 320, 640, 0x56b2235d
+0, 23040, 23040, 320, 640, 0x1cd93302
+0, 23360, 23360, 320, 640, 0xe3672352
+0, 23680, 23680, 320, 640, 0xc99f2e45
+0, 24000, 24000, 320, 640, 0x36a43e9d
+0, 24320, 24320, 320, 640, 0xfcd73e87
+0, 24640, 24640, 320, 640, 0x813b2e20
+0, 24960, 24960, 320, 640, 0x8f7a4cac
+0, 25280, 25280, 320, 640, 0xcf3e4106
+0, 25600, 25600, 320, 640, 0x8a752b07
+0, 25920, 25920, 320, 640, 0xe5013dcd
+0, 26240, 26240, 320, 640, 0xda4a3d03
+0, 26560, 26560, 320, 640, 0x05ce2c64
+0, 26880, 26880, 320, 640, 0x1e0f42b5
+0, 27200, 27200, 320, 640, 0xe4bd326a
+0, 27520, 27520, 320, 640, 0x701c28de
+0, 27840, 27840, 320, 640, 0xd0b02f97
+0, 28160, 28160, 320, 640, 0x7950419b
diff --git a/ffmpeg1/tests/ref/fate/gsm-toast b/ffmpeg1/tests/ref/fate/gsm-toast
new file mode 100644
index 0000000..721e4e4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/gsm-toast
@@ -0,0 +1,501 @@
+#tb 0: 1/8000
+0, 0, 0, 160, 320, 0x4c32ab06
+0, 160, 160, 160, 320, 0x2052a4e7
+0, 320, 320, 160, 320, 0xe9aeafca
+0, 480, 480, 160, 320, 0xde83b450
+0, 640, 640, 160, 320, 0x06a6a80e
+0, 800, 800, 160, 320, 0xf6aeb1e2
+0, 960, 960, 160, 320, 0x2623b40c
+0, 1120, 1120, 160, 320, 0x8ec69f25
+0, 1280, 1280, 160, 320, 0xddaaac88
+0, 1440, 1440, 160, 320, 0x9e60b713
+0, 1600, 1600, 160, 320, 0xb738ab30
+0, 1760, 1760, 160, 320, 0xdb4bbb92
+0, 1920, 1920, 160, 320, 0x0370ae8b
+0, 2080, 2080, 160, 320, 0xb611a3fb
+0, 2240, 2240, 160, 320, 0x07ee8e3b
+0, 2400, 2400, 160, 320, 0xdb1ec628
+0, 2560, 2560, 160, 320, 0xd5f1bda2
+0, 2720, 2720, 160, 320, 0xcabb9a9c
+0, 2880, 2880, 160, 320, 0x16c8ad61
+0, 3040, 3040, 160, 320, 0xf76fc25e
+0, 3200, 3200, 160, 320, 0x7118a10d
+0, 3360, 3360, 160, 320, 0x29f9a0db
+0, 3520, 3520, 160, 320, 0x41f2a4ef
+0, 3680, 3680, 160, 320, 0x36dfb231
+0, 3840, 3840, 160, 320, 0xc5399eda
+0, 4000, 4000, 160, 320, 0x17d4b9e0
+0, 4160, 4160, 160, 320, 0x2b5797ac
+0, 4320, 4320, 160, 320, 0x0128c5e7
+0, 4480, 4480, 160, 320, 0xf4f38037
+0, 4640, 4640, 160, 320, 0x77d6b5f2
+0, 4800, 4800, 160, 320, 0xd94a93e0
+0, 4960, 4960, 160, 320, 0x968daae3
+0, 5120, 5120, 160, 320, 0xda5ba0ec
+0, 5280, 5280, 160, 320, 0x316da1ec
+0, 5440, 5440, 160, 320, 0x3a35b2d2
+0, 5600, 5600, 160, 320, 0xca0b988f
+0, 5760, 5760, 160, 320, 0x1295b0b1
+0, 5920, 5920, 160, 320, 0xe121ae72
+0, 6080, 6080, 160, 320, 0x7da7ad43
+0, 6240, 6240, 160, 320, 0x96a49cfe
+0, 6400, 6400, 160, 320, 0x70c2b1de
+0, 6560, 6560, 160, 320, 0x668d88c0
+0, 6720, 6720, 160, 320, 0x5460b5a8
+0, 6880, 6880, 160, 320, 0x6ac78eab
+0, 7040, 7040, 160, 320, 0x0d8dab87
+0, 7200, 7200, 160, 320, 0xe2be94af
+0, 7360, 7360, 160, 320, 0x3487acdc
+0, 7520, 7520, 160, 320, 0x5048955a
+0, 7680, 7680, 160, 320, 0x2ef4ae0d
+0, 7840, 7840, 160, 320, 0xc765b773
+0, 8000, 8000, 160, 320, 0xad96a486
+0, 8160, 8160, 160, 320, 0xb9fdbf1f
+0, 8320, 8320, 160, 320, 0xf26c9ecf
+0, 8480, 8480, 160, 320, 0xbcadb535
+0, 8640, 8640, 160, 320, 0xa8c897bc
+0, 8800, 8800, 160, 320, 0xaa58b520
+0, 8960, 8960, 160, 320, 0xcb48a716
+0, 9120, 9120, 160, 320, 0x4d5da564
+0, 9280, 9280, 160, 320, 0x9809ae28
+0, 9440, 9440, 160, 320, 0x5baeb1e4
+0, 9600, 9600, 160, 320, 0x6a719b63
+0, 9760, 9760, 160, 320, 0xc27d92f0
+0, 9920, 9920, 160, 320, 0x0e9b9fe9
+0, 10080, 10080, 160, 320, 0xbf9d9bf7
+0, 10240, 10240, 160, 320, 0xf35aa64d
+0, 10400, 10400, 160, 320, 0x26449ce8
+0, 10560, 10560, 160, 320, 0x58f4a997
+0, 10720, 10720, 160, 320, 0x155da289
+0, 10880, 10880, 160, 320, 0x63b19a5c
+0, 11040, 11040, 160, 320, 0xe01aad38
+0, 11200, 11200, 160, 320, 0x4e0f9c43
+0, 11360, 11360, 160, 320, 0x9447a284
+0, 11520, 11520, 160, 320, 0xdb36a433
+0, 11680, 11680, 160, 320, 0x799a9b2c
+0, 11840, 11840, 160, 320, 0x1526a162
+0, 12000, 12000, 160, 320, 0x0a4ea140
+0, 12160, 12160, 160, 320, 0xb08f9ed7
+0, 12320, 12320, 160, 320, 0x221bab76
+0, 12480, 12480, 160, 320, 0x4befacf0
+0, 12640, 12640, 160, 320, 0xac489509
+0, 12800, 12800, 160, 320, 0x57a1a5b4
+0, 12960, 12960, 160, 320, 0x81e8ab97
+0, 13120, 13120, 160, 320, 0xc6ada4d6
+0, 13280, 13280, 160, 320, 0x12489975
+0, 13440, 13440, 160, 320, 0x1da59ba9
+0, 13600, 13600, 160, 320, 0xf225ac62
+0, 13760, 13760, 160, 320, 0x8c8e9eab
+0, 13920, 13920, 160, 320, 0x10599dec
+0, 14080, 14080, 160, 320, 0x06c39fa5
+0, 14240, 14240, 160, 320, 0xb0efa3c4
+0, 14400, 14400, 160, 320, 0x72caadab
+0, 14560, 14560, 160, 320, 0xe4619ff0
+0, 14720, 14720, 160, 320, 0x49bca017
+0, 14880, 14880, 160, 320, 0x413f9fbe
+0, 15040, 15040, 160, 320, 0x6eaed0ee
+0, 15200, 15200, 160, 320, 0x27e4b1eb
+0, 15360, 15360, 160, 320, 0x8c42a30f
+0, 15520, 15520, 160, 320, 0x0afaa0f4
+0, 15680, 15680, 160, 320, 0x0f74b76b
+0, 15840, 15840, 160, 320, 0xa9a2b9d5
+0, 16000, 16000, 160, 320, 0xde2a8712
+0, 16160, 16160, 160, 320, 0xcfc8b3a2
+0, 16320, 16320, 160, 320, 0x768cadce
+0, 16480, 16480, 160, 320, 0x3a8a97f1
+0, 16640, 16640, 160, 320, 0x502fa59b
+0, 16800, 16800, 160, 320, 0x4c3e9b0f
+0, 16960, 16960, 160, 320, 0x1cd2b111
+0, 17120, 17120, 160, 320, 0xa845a5a3
+0, 17280, 17280, 160, 320, 0xa6b8b982
+0, 17440, 17440, 160, 320, 0x4d5caab9
+0, 17600, 17600, 160, 320, 0x7993b604
+0, 17760, 17760, 160, 320, 0x8d19b37b
+0, 17920, 17920, 160, 320, 0xbe48adb6
+0, 18080, 18080, 160, 320, 0x7d68ab8e
+0, 18240, 18240, 160, 320, 0xbfffb0e2
+0, 18400, 18400, 160, 320, 0x90b5b7e3
+0, 18560, 18560, 160, 320, 0x9fa1b016
+0, 18720, 18720, 160, 320, 0x70abafc9
+0, 18880, 18880, 160, 320, 0x82cfad9c
+0, 19040, 19040, 160, 320, 0x05f6aa2c
+0, 19200, 19200, 160, 320, 0x511cbb5b
+0, 19360, 19360, 160, 320, 0xd27caaa6
+0, 19520, 19520, 160, 320, 0x781ca481
+0, 19680, 19680, 160, 320, 0x12e9ad1a
+0, 19840, 19840, 160, 320, 0xe46b989d
+0, 20000, 20000, 160, 320, 0x76dbb0a7
+0, 20160, 20160, 160, 320, 0x10eba486
+0, 20320, 20320, 160, 320, 0x2269a7c8
+0, 20480, 20480, 160, 320, 0x084a9c7e
+0, 20640, 20640, 160, 320, 0x84eda891
+0, 20800, 20800, 160, 320, 0x2ef9a639
+0, 20960, 20960, 160, 320, 0x8bb2a0dd
+0, 21120, 21120, 160, 320, 0x47e5a169
+0, 21280, 21280, 160, 320, 0x98faae42
+0, 21440, 21440, 160, 320, 0x81d2aba4
+0, 21600, 21600, 160, 320, 0x5af8bb33
+0, 21760, 21760, 160, 320, 0x331e8d9f
+0, 21920, 21920, 160, 320, 0xd9b0c09a
+0, 22080, 22080, 160, 320, 0xbaf9bfcf
+0, 22240, 22240, 160, 320, 0x54e89ab5
+0, 22400, 22400, 160, 320, 0x1d62c1d2
+0, 22560, 22560, 160, 320, 0xead6b436
+0, 22720, 22720, 160, 320, 0x465f98bc
+0, 22880, 22880, 160, 320, 0xe707a346
+0, 23040, 23040, 160, 320, 0xf66cb1c2
+0, 23200, 23200, 160, 320, 0xcfc89ae6
+0, 23360, 23360, 160, 320, 0x0b10b796
+0, 23520, 23520, 160, 320, 0xb29caf2c
+0, 23680, 23680, 160, 320, 0x0284a9d1
+0, 23840, 23840, 160, 320, 0xb966b5fc
+0, 24000, 24000, 160, 320, 0x2defa630
+0, 24160, 24160, 160, 320, 0xcdcd8ef3
+0, 24320, 24320, 160, 320, 0xa81bba2b
+0, 24480, 24480, 160, 320, 0x6bc0aeb1
+0, 24640, 24640, 160, 320, 0x38d8ac82
+0, 24800, 24800, 160, 320, 0xeb66a865
+0, 24960, 24960, 160, 320, 0x4fff9cd9
+0, 25120, 25120, 160, 320, 0x6819a19b
+0, 25280, 25280, 160, 320, 0xfd7c93ce
+0, 25440, 25440, 160, 320, 0xa7419f63
+0, 25600, 25600, 160, 320, 0x572caacb
+0, 25760, 25760, 160, 320, 0x918fb1de
+0, 25920, 25920, 160, 320, 0x0088a675
+0, 26080, 26080, 160, 320, 0x19229cf7
+0, 26240, 26240, 160, 320, 0x827ea812
+0, 26400, 26400, 160, 320, 0x6c258ef7
+0, 26560, 26560, 160, 320, 0x6a89b8fe
+0, 26720, 26720, 160, 320, 0x166c9ce0
+0, 26880, 26880, 160, 320, 0x68b39db7
+0, 27040, 27040, 160, 320, 0x3d5aa8ec
+0, 27200, 27200, 160, 320, 0x25e09ff3
+0, 27360, 27360, 160, 320, 0x759aa4ce
+0, 27520, 27520, 160, 320, 0xe5aab0ea
+0, 27680, 27680, 160, 320, 0xf0359e9a
+0, 27840, 27840, 160, 320, 0x51199fff
+0, 28000, 28000, 160, 320, 0xb04aa236
+0, 28160, 28160, 160, 320, 0xe09da0e3
+0, 28320, 28320, 160, 320, 0x144f98a9
+0, 28480, 28480, 160, 320, 0x0b4e9f8d
+0, 28640, 28640, 160, 320, 0xbb69a090
+0, 28800, 28800, 160, 320, 0xec6e9b5b
+0, 28960, 28960, 160, 320, 0x4f86a477
+0, 29120, 29120, 160, 320, 0x4a179d04
+0, 29280, 29280, 160, 320, 0x9682a375
+0, 29440, 29440, 160, 320, 0x3c6ba55e
+0, 29600, 29600, 160, 320, 0x50c0ab50
+0, 29760, 29760, 160, 320, 0xe58ea907
+0, 29920, 29920, 160, 320, 0xc5eaa021
+0, 30080, 30080, 160, 320, 0x38859f01
+0, 30240, 30240, 160, 320, 0x73f8a540
+0, 30400, 30400, 160, 320, 0x395da234
+0, 30560, 30560, 160, 320, 0x7f50b144
+0, 30720, 30720, 160, 320, 0x45568ceb
+0, 30880, 30880, 160, 320, 0xd0508dec
+0, 31040, 31040, 160, 320, 0x60aba7e4
+0, 31200, 31200, 160, 320, 0x4b24b15f
+0, 31360, 31360, 160, 320, 0xbfc9afd6
+0, 31520, 31520, 160, 320, 0xf0f2ad49
+0, 31680, 31680, 160, 320, 0xeea0a426
+0, 31840, 31840, 160, 320, 0xff07a7c9
+0, 32000, 32000, 160, 320, 0xce1fc788
+0, 32160, 32160, 160, 320, 0xc074ae9b
+0, 32320, 32320, 160, 320, 0x51649696
+0, 32480, 32480, 160, 320, 0x24399744
+0, 32640, 32640, 160, 320, 0xfb0eb920
+0, 32800, 32800, 160, 320, 0x3bf8af5c
+0, 32960, 32960, 160, 320, 0xeab69ee0
+0, 33120, 33120, 160, 320, 0x182696bb
+0, 33280, 33280, 160, 320, 0x36e6af72
+0, 33440, 33440, 160, 320, 0x48cc9ecc
+0, 33600, 33600, 160, 320, 0xfb3ca7b8
+0, 33760, 33760, 160, 320, 0xe01aa4b4
+0, 33920, 33920, 160, 320, 0x5c6dac8c
+0, 34080, 34080, 160, 320, 0x072fbd93
+0, 34240, 34240, 160, 320, 0xc8899ccc
+0, 34400, 34400, 160, 320, 0xdcc990ac
+0, 34560, 34560, 160, 320, 0x28e0a9d0
+0, 34720, 34720, 160, 320, 0x0cdbaa11
+0, 34880, 34880, 160, 320, 0x8f4ca093
+0, 35040, 35040, 160, 320, 0x7ee79ea9
+0, 35200, 35200, 160, 320, 0xa762b695
+0, 35360, 35360, 160, 320, 0x9af0b5da
+0, 35520, 35520, 160, 320, 0x1f2cb0e7
+0, 35680, 35680, 160, 320, 0x6029b8bb
+0, 35840, 35840, 160, 320, 0xf2f7acec
+0, 36000, 36000, 160, 320, 0xb3e5b5be
+0, 36160, 36160, 160, 320, 0x266ba8a6
+0, 36320, 36320, 160, 320, 0x4ff59296
+0, 36480, 36480, 160, 320, 0x11d1b9ac
+0, 36640, 36640, 160, 320, 0x749197f7
+0, 36800, 36800, 160, 320, 0x8192b517
+0, 36960, 36960, 160, 320, 0xde129dbe
+0, 37120, 37120, 160, 320, 0x85e4a096
+0, 37280, 37280, 160, 320, 0xdebf9182
+0, 37440, 37440, 160, 320, 0x7a4ba0bf
+0, 37600, 37600, 160, 320, 0x55fe9fcd
+0, 37760, 37760, 160, 320, 0xd242adec
+0, 37920, 37920, 160, 320, 0xeaf5b159
+0, 38080, 38080, 160, 320, 0xfcb1a571
+0, 38240, 38240, 160, 320, 0x62fabda0
+0, 38400, 38400, 160, 320, 0x45a9abcc
+0, 38560, 38560, 160, 320, 0x07af974b
+0, 38720, 38720, 160, 320, 0xc2a0b4fd
+0, 38880, 38880, 160, 320, 0xc30abccd
+0, 39040, 39040, 160, 320, 0xd33ca61c
+0, 39200, 39200, 160, 320, 0x3c33d11a
+0, 39360, 39360, 160, 320, 0x9c2ca0ac
+0, 39520, 39520, 160, 320, 0xa5d69777
+0, 39680, 39680, 160, 320, 0xb7d2c6b8
+0, 39840, 39840, 160, 320, 0x34bbaab9
+0, 40000, 40000, 160, 320, 0x3e7baccb
+0, 40160, 40160, 160, 320, 0x92c6b7e6
+0, 40320, 40320, 160, 320, 0xc810a18a
+0, 40480, 40480, 160, 320, 0x06a09f56
+0, 40640, 40640, 160, 320, 0x8804a504
+0, 40800, 40800, 160, 320, 0x783ba7d5
+0, 40960, 40960, 160, 320, 0x24dcada6
+0, 41120, 41120, 160, 320, 0x4af796be
+0, 41280, 41280, 160, 320, 0x1454b19c
+0, 41440, 41440, 160, 320, 0x0ad0a56e
+0, 41600, 41600, 160, 320, 0x8944a44e
+0, 41760, 41760, 160, 320, 0x31069ebd
+0, 41920, 41920, 160, 320, 0x19cb9812
+0, 42080, 42080, 160, 320, 0xac75abe2
+0, 42240, 42240, 160, 320, 0x0162a200
+0, 42400, 42400, 160, 320, 0xa2d7a4b2
+0, 42560, 42560, 160, 320, 0x078ca611
+0, 42720, 42720, 160, 320, 0x0ec39b40
+0, 42880, 42880, 160, 320, 0xe8f794b2
+0, 43040, 43040, 160, 320, 0xc2cfb258
+0, 43200, 43200, 160, 320, 0xe4759061
+0, 43360, 43360, 160, 320, 0xb1b6aea4
+0, 43520, 43520, 160, 320, 0x9bfb96df
+0, 43680, 43680, 160, 320, 0xcc61b5d3
+0, 43840, 43840, 160, 320, 0xd14e8df9
+0, 44000, 44000, 160, 320, 0xd9d5bbf5
+0, 44160, 44160, 160, 320, 0x4d9fa9b0
+0, 44320, 44320, 160, 320, 0xf606abfc
+0, 44480, 44480, 160, 320, 0x720baa19
+0, 44640, 44640, 160, 320, 0x7f7cac49
+0, 44800, 44800, 160, 320, 0xceab9b54
+0, 44960, 44960, 160, 320, 0x645fa70a
+0, 45120, 45120, 160, 320, 0xa081a40f
+0, 45280, 45280, 160, 320, 0x21d78f8c
+0, 45440, 45440, 160, 320, 0xedf3abc6
+0, 45600, 45600, 160, 320, 0x17679637
+0, 45760, 45760, 160, 320, 0x1cb1ae04
+0, 45920, 45920, 160, 320, 0x17cd9f62
+0, 46080, 46080, 160, 320, 0xf4bca3ab
+0, 46240, 46240, 160, 320, 0xb3bd9152
+0, 46400, 46400, 160, 320, 0x4e1e9825
+0, 46560, 46560, 160, 320, 0x037e9a56
+0, 46720, 46720, 160, 320, 0xd7589fcc
+0, 46880, 46880, 160, 320, 0x5f949e90
+0, 47040, 47040, 160, 320, 0xe133a495
+0, 47200, 47200, 160, 320, 0x7cb7a52c
+0, 47360, 47360, 160, 320, 0xb8b29d95
+0, 47520, 47520, 160, 320, 0x01bca472
+0, 47680, 47680, 160, 320, 0xbcc69895
+0, 47840, 47840, 160, 320, 0xabffa0ee
+0, 48000, 48000, 160, 320, 0xe6629eca
+0, 48160, 48160, 160, 320, 0x572da7cd
+0, 48320, 48320, 160, 320, 0x3017972d
+0, 48480, 48480, 160, 320, 0xac4e9c78
+0, 48640, 48640, 160, 320, 0x112f9c45
+0, 48800, 48800, 160, 320, 0x05e9a64d
+0, 48960, 48960, 160, 320, 0x8f7394d4
+0, 49120, 49120, 160, 320, 0xbaeea07e
+0, 49280, 49280, 160, 320, 0xd757c00e
+0, 49440, 49440, 160, 320, 0x8aa09783
+0, 49600, 49600, 160, 320, 0x31d4ae7a
+0, 49760, 49760, 160, 320, 0x221493e8
+0, 49920, 49920, 160, 320, 0x92f4a3a7
+0, 50080, 50080, 160, 320, 0xbd5bafd9
+0, 50240, 50240, 160, 320, 0x1895b760
+0, 50400, 50400, 160, 320, 0x7a4eacdd
+0, 50560, 50560, 160, 320, 0xc9f7a1c3
+0, 50720, 50720, 160, 320, 0xd750be06
+0, 50880, 50880, 160, 320, 0x641d9a6f
+0, 51040, 51040, 160, 320, 0x70d6b6ff
+0, 51200, 51200, 160, 320, 0x1fd3a546
+0, 51360, 51360, 160, 320, 0x72cfaabe
+0, 51520, 51520, 160, 320, 0x2e61b6ce
+0, 51680, 51680, 160, 320, 0x4813a091
+0, 51840, 51840, 160, 320, 0xbfe7bc0f
+0, 52000, 52000, 160, 320, 0x8c759c1f
+0, 52160, 52160, 160, 320, 0xf4c1c952
+0, 52320, 52320, 160, 320, 0x00fdaa79
+0, 52480, 52480, 160, 320, 0x2ffda252
+0, 52640, 52640, 160, 320, 0x841aa523
+0, 52800, 52800, 160, 320, 0x8c079e5e
+0, 52960, 52960, 160, 320, 0x96e9a83f
+0, 53120, 53120, 160, 320, 0x5926a639
+0, 53280, 53280, 160, 320, 0x02e1a07b
+0, 53440, 53440, 160, 320, 0x2972a999
+0, 53600, 53600, 160, 320, 0x30c89c62
+0, 53760, 53760, 160, 320, 0x83f5a263
+0, 53920, 53920, 160, 320, 0xa3909667
+0, 54080, 54080, 160, 320, 0xd5309fd4
+0, 54240, 54240, 160, 320, 0x3154a571
+0, 54400, 54400, 160, 320, 0x51039a5e
+0, 54560, 54560, 160, 320, 0xf167a344
+0, 54720, 54720, 160, 320, 0x8e709d7d
+0, 54880, 54880, 160, 320, 0x936fa0fd
+0, 55040, 55040, 160, 320, 0x024b9e3c
+0, 55200, 55200, 160, 320, 0x2ea1aa75
+0, 55360, 55360, 160, 320, 0x33f0a2bb
+0, 55520, 55520, 160, 320, 0xbf079d2d
+0, 55680, 55680, 160, 320, 0x847ba2c8
+0, 55840, 55840, 160, 320, 0x37e1a767
+0, 56000, 56000, 160, 320, 0xb607acbb
+0, 56160, 56160, 160, 320, 0x1288ac6d
+0, 56320, 56320, 160, 320, 0xf60e98b3
+0, 56480, 56480, 160, 320, 0xc6b5abdd
+0, 56640, 56640, 160, 320, 0x7feaa710
+0, 56800, 56800, 160, 320, 0x77329fcd
+0, 56960, 56960, 160, 320, 0x91a6a715
+0, 57120, 57120, 160, 320, 0xd0e99f24
+0, 57280, 57280, 160, 320, 0x07089f61
+0, 57440, 57440, 160, 320, 0x2bbda900
+0, 57600, 57600, 160, 320, 0xad3da0d5
+0, 57760, 57760, 160, 320, 0x997ba6d2
+0, 57920, 57920, 160, 320, 0xb15b9dcb
+0, 58080, 58080, 160, 320, 0x17cea82f
+0, 58240, 58240, 160, 320, 0xab51a73e
+0, 58400, 58400, 160, 320, 0x77a1abd6
+0, 58560, 58560, 160, 320, 0x0bddacad
+0, 58720, 58720, 160, 320, 0x43b3bdc4
+0, 58880, 58880, 160, 320, 0xefe0a9ba
+0, 59040, 59040, 160, 320, 0x8eb4bc2f
+0, 59200, 59200, 160, 320, 0x39cdc190
+0, 59360, 59360, 160, 320, 0x1ef3baff
+0, 59520, 59520, 160, 320, 0x1a6ab7e2
+0, 59680, 59680, 160, 320, 0x444ccc69
+0, 59840, 59840, 160, 320, 0x05ebb598
+0, 60000, 60000, 160, 320, 0x4ac5b0ad
+0, 60160, 60160, 160, 320, 0x0ee5ba52
+0, 60320, 60320, 160, 320, 0x501d9fa0
+0, 60480, 60480, 160, 320, 0x2038a9f4
+0, 60640, 60640, 160, 320, 0xa61cb8b3
+0, 60800, 60800, 160, 320, 0xdd009777
+0, 60960, 60960, 160, 320, 0x2a2db86d
+0, 61120, 61120, 160, 320, 0xe9bab3bc
+0, 61280, 61280, 160, 320, 0xf7f8a056
+0, 61440, 61440, 160, 320, 0x514caf14
+0, 61600, 61600, 160, 320, 0xa220b149
+0, 61760, 61760, 160, 320, 0xbf7ea183
+0, 61920, 61920, 160, 320, 0x1d8dc5c6
+0, 62080, 62080, 160, 320, 0x9182a8ea
+0, 62240, 62240, 160, 320, 0x31eba026
+0, 62400, 62400, 160, 320, 0xcfbcc3df
+0, 62560, 62560, 160, 320, 0x3d8cb7ae
+0, 62720, 62720, 160, 320, 0xbe39aec0
+0, 62880, 62880, 160, 320, 0xd236bf71
+0, 63040, 63040, 160, 320, 0x9377b0b2
+0, 63200, 63200, 160, 320, 0xb5e6b2df
+0, 63360, 63360, 160, 320, 0xa3b9bbce
+0, 63520, 63520, 160, 320, 0xa7bda251
+0, 63680, 63680, 160, 320, 0xbf9ab162
+0, 63840, 63840, 160, 320, 0x6928b9cb
+0, 64000, 64000, 160, 320, 0xf5cca209
+0, 64160, 64160, 160, 320, 0xfdf4afad
+0, 64320, 64320, 160, 320, 0xe7e7c216
+0, 64480, 64480, 160, 320, 0x0c5797c6
+0, 64640, 64640, 160, 320, 0x66c1a9ca
+0, 64800, 64800, 160, 320, 0x6b5ca48d
+0, 64960, 64960, 160, 320, 0xec04968a
+0, 65120, 65120, 160, 320, 0xaaada691
+0, 65280, 65280, 160, 320, 0x77c3a624
+0, 65440, 65440, 160, 320, 0xaed9a5d5
+0, 65600, 65600, 160, 320, 0x360fac41
+0, 65760, 65760, 160, 320, 0xa05ea727
+0, 65920, 65920, 160, 320, 0x9f7b9f83
+0, 66080, 66080, 160, 320, 0x474bc4c2
+0, 66240, 66240, 160, 320, 0xb6078d3b
+0, 66400, 66400, 160, 320, 0x8e15a8f9
+0, 66560, 66560, 160, 320, 0x7dc7d4a8
+0, 66720, 66720, 160, 320, 0x55ceab6b
+0, 66880, 66880, 160, 320, 0x982cc94f
+0, 67040, 67040, 160, 320, 0x6153948f
+0, 67200, 67200, 160, 320, 0x5338c621
+0, 67360, 67360, 160, 320, 0x2e2db6e8
+0, 67520, 67520, 160, 320, 0x28e3a9c3
+0, 67680, 67680, 160, 320, 0x74d7b435
+0, 67840, 67840, 160, 320, 0xcf17a10c
+0, 68000, 68000, 160, 320, 0xf1f9ac8c
+0, 68160, 68160, 160, 320, 0x35e0b480
+0, 68320, 68320, 160, 320, 0x5e60b3a4
+0, 68480, 68480, 160, 320, 0x20579b26
+0, 68640, 68640, 160, 320, 0x3e27b89b
+0, 68800, 68800, 160, 320, 0x02e4af94
+0, 68960, 68960, 160, 320, 0x6d6897f1
+0, 69120, 69120, 160, 320, 0x1582b267
+0, 69280, 69280, 160, 320, 0x33ba9eb3
+0, 69440, 69440, 160, 320, 0xb6acad7d
+0, 69600, 69600, 160, 320, 0x1969a6c2
+0, 69760, 69760, 160, 320, 0x363fa350
+0, 69920, 69920, 160, 320, 0xae50bf65
+0, 70080, 70080, 160, 320, 0x0877a50f
+0, 70240, 70240, 160, 320, 0x66e2a42f
+0, 70400, 70400, 160, 320, 0x0b0abcb3
+0, 70560, 70560, 160, 320, 0x23a9afaa
+0, 70720, 70720, 160, 320, 0xc3729b40
+0, 70880, 70880, 160, 320, 0xdd3fc7e2
+0, 71040, 71040, 160, 320, 0x7e0494af
+0, 71200, 71200, 160, 320, 0xcbd096fb
+0, 71360, 71360, 160, 320, 0x5d71b303
+0, 71520, 71520, 160, 320, 0xeedca04a
+0, 71680, 71680, 160, 320, 0x2836a47d
+0, 71840, 71840, 160, 320, 0x7237c2a0
+0, 72000, 72000, 160, 320, 0x7c009bc0
+0, 72160, 72160, 160, 320, 0xc9dcb366
+0, 72320, 72320, 160, 320, 0x4993aac8
+0, 72480, 72480, 160, 320, 0x05ec9954
+0, 72640, 72640, 160, 320, 0xa955bd5c
+0, 72800, 72800, 160, 320, 0x9018aea3
+0, 72960, 72960, 160, 320, 0x780cca52
+0, 73120, 73120, 160, 320, 0x9b8f95f6
+0, 73280, 73280, 160, 320, 0xcd7bb178
+0, 73440, 73440, 160, 320, 0xfec6b443
+0, 73600, 73600, 160, 320, 0xe214abb6
+0, 73760, 73760, 160, 320, 0xdcbebb38
+0, 73920, 73920, 160, 320, 0xe683a30d
+0, 74080, 74080, 160, 320, 0xe4cdb197
+0, 74240, 74240, 160, 320, 0xa426c432
+0, 74400, 74400, 160, 320, 0x761ba6cc
+0, 74560, 74560, 160, 320, 0xcc9aa6aa
+0, 74720, 74720, 160, 320, 0x742bd03d
+0, 74880, 74880, 160, 320, 0x61d9a511
+0, 75040, 75040, 160, 320, 0x3021a4dd
+0, 75200, 75200, 160, 320, 0x6970bbc0
+0, 75360, 75360, 160, 320, 0x76f5a037
+0, 75520, 75520, 160, 320, 0x758d91f2
+0, 75680, 75680, 160, 320, 0xe854a2f1
+0, 75840, 75840, 160, 320, 0xf994a6f8
+0, 76000, 76000, 160, 320, 0x31ebaf40
+0, 76160, 76160, 160, 320, 0x24699970
+0, 76320, 76320, 160, 320, 0x37dda53e
+0, 76480, 76480, 160, 320, 0xa857a752
+0, 76640, 76640, 160, 320, 0xc483ad1d
+0, 76800, 76800, 160, 320, 0x5966add9
+0, 76960, 76960, 160, 320, 0x4dbab89c
+0, 77120, 77120, 160, 320, 0x2f0bb0e6
+0, 77280, 77280, 160, 320, 0x913aaa88
+0, 77440, 77440, 160, 320, 0x245dc1c3
+0, 77600, 77600, 160, 320, 0xb085c5ad
+0, 77760, 77760, 160, 320, 0x9cf1b0fa
+0, 77920, 77920, 160, 320, 0x6887b543
+0, 78080, 78080, 160, 320, 0xcad69feb
+0, 78240, 78240, 160, 320, 0xc12a8ddb
+0, 78400, 78400, 160, 320, 0x01d1bc5a
+0, 78560, 78560, 160, 320, 0x3018b7e8
+0, 78720, 78720, 160, 320, 0x6431b0ef
+0, 78880, 78880, 160, 320, 0x3a53998e
+0, 79040, 79040, 160, 320, 0x1c80a6c6
+0, 79200, 79200, 160, 320, 0x6639adc5
+0, 79360, 79360, 160, 320, 0x92489f9a
+0, 79520, 79520, 160, 320, 0x8cafad00
+0, 79680, 79680, 160, 320, 0xca0392e1
+0, 79840, 79840, 160, 320, 0x30a9ae88
diff --git a/ffmpeg1/tests/ref/fate/h264-bsf-mp4toannexb b/ffmpeg1/tests/ref/fate/h264-bsf-mp4toannexb
new file mode 100644
index 0000000..2049f39
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-bsf-mp4toannexb
@@ -0,0 +1 @@
+5f04c27cc6ee8625fe2405fb0f7da9a3
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-aud_mw_e b/ffmpeg1/tests/ref/fate/h264-conformance-aud_mw_e
new file mode 100644
index 0000000..83c6fae
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-aud_mw_e
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xa6d63b2e
+0, 1, 1, 1, 38016, 0x28bae101
+0, 2, 2, 1, 38016, 0x139f9b29
+0, 3, 3, 1, 38016, 0xa7b463e8
+0, 4, 4, 1, 38016, 0xdcdc5130
+0, 5, 5, 1, 38016, 0x3cf17039
+0, 6, 6, 1, 38016, 0xdeeb9ae9
+0, 7, 7, 1, 38016, 0xdc8da889
+0, 8, 8, 1, 38016, 0x7a32a81c
+0, 9, 9, 1, 38016, 0xaf15908b
+0, 10, 10, 1, 38016, 0x4c8b5461
+0, 11, 11, 1, 38016, 0x1d4826db
+0, 12, 12, 1, 38016, 0x5ca72731
+0, 13, 13, 1, 38016, 0xb09732e6
+0, 14, 14, 1, 38016, 0xa65252eb
+0, 15, 15, 1, 38016, 0x09fa7644
+0, 16, 16, 1, 38016, 0x5262af8f
+0, 17, 17, 1, 38016, 0x50d6c6ac
+0, 18, 18, 1, 38016, 0x6895c300
+0, 19, 19, 1, 38016, 0x2d58bf4f
+0, 20, 20, 1, 38016, 0x50dfc4c0
+0, 21, 21, 1, 38016, 0x12d2cb90
+0, 22, 22, 1, 38016, 0xe465c7d7
+0, 23, 23, 1, 38016, 0x47c5c615
+0, 24, 24, 1, 38016, 0x76fdc6e6
+0, 25, 25, 1, 38016, 0xefeec7ae
+0, 26, 26, 1, 38016, 0x2cebcdf7
+0, 27, 27, 1, 38016, 0x49abd265
+0, 28, 28, 1, 38016, 0x157bdfe4
+0, 29, 29, 1, 38016, 0x3635e5da
+0, 30, 30, 1, 38016, 0x6263aace
+0, 31, 31, 1, 38016, 0x7fff72f0
+0, 32, 32, 1, 38016, 0x83994b85
+0, 33, 33, 1, 38016, 0xa8c990a7
+0, 34, 34, 1, 38016, 0xce5204c4
+0, 35, 35, 1, 38016, 0xf1176131
+0, 36, 36, 1, 38016, 0x4252bdca
+0, 37, 37, 1, 38016, 0xd8f447c3
+0, 38, 38, 1, 38016, 0xc5e79075
+0, 39, 39, 1, 38016, 0x5291ca60
+0, 40, 40, 1, 38016, 0x5dffe889
+0, 41, 41, 1, 38016, 0x6dc4fad6
+0, 42, 42, 1, 38016, 0xbcc7f16a
+0, 43, 43, 1, 38016, 0xcd5c059a
+0, 44, 44, 1, 38016, 0x452314ad
+0, 45, 45, 1, 38016, 0x19d1fd99
+0, 46, 46, 1, 38016, 0x93f4ca3c
+0, 47, 47, 1, 38016, 0x23dd9d81
+0, 48, 48, 1, 38016, 0x4a4cabdb
+0, 49, 49, 1, 38016, 0x15a3d785
+0, 50, 50, 1, 38016, 0xaa34e055
+0, 51, 51, 1, 38016, 0x8a34b88d
+0, 52, 52, 1, 38016, 0x1955d649
+0, 53, 53, 1, 38016, 0xf6dc0782
+0, 54, 54, 1, 38016, 0x66cb360a
+0, 55, 55, 1, 38016, 0xf3615cfb
+0, 56, 56, 1, 38016, 0xca466b6d
+0, 57, 57, 1, 38016, 0xe0ad3523
+0, 58, 58, 1, 38016, 0x8181323e
+0, 59, 59, 1, 38016, 0x93324bab
+0, 60, 60, 1, 38016, 0xce2c38b6
+0, 61, 61, 1, 38016, 0xe50a20fc
+0, 62, 62, 1, 38016, 0x8a74ce30
+0, 63, 63, 1, 38016, 0x893ca7d8
+0, 64, 64, 1, 38016, 0x716fd810
+0, 65, 65, 1, 38016, 0x352aeb3c
+0, 66, 66, 1, 38016, 0xdf14e4d1
+0, 67, 67, 1, 38016, 0x7e87dd42
+0, 68, 68, 1, 38016, 0xe084c706
+0, 69, 69, 1, 38016, 0x4000ba1f
+0, 70, 70, 1, 38016, 0x10679f5a
+0, 71, 71, 1, 38016, 0x5cb686b2
+0, 72, 72, 1, 38016, 0x5dea8ffe
+0, 73, 73, 1, 38016, 0x8bd27fc8
+0, 74, 74, 1, 38016, 0x72912b15
+0, 75, 75, 1, 38016, 0xb86be965
+0, 76, 76, 1, 38016, 0x7a42da39
+0, 77, 77, 1, 38016, 0x9ddacae0
+0, 78, 78, 1, 38016, 0xb767ff5b
+0, 79, 79, 1, 38016, 0xa3c64887
+0, 80, 80, 1, 38016, 0xbc6981f2
+0, 81, 81, 1, 38016, 0xc2506c22
+0, 82, 82, 1, 38016, 0x6e785862
+0, 83, 83, 1, 38016, 0xfade2b2d
+0, 84, 84, 1, 38016, 0xada1d917
+0, 85, 85, 1, 38016, 0x459beba1
+0, 86, 86, 1, 38016, 0x8b491f3c
+0, 87, 87, 1, 38016, 0x917b0fab
+0, 88, 88, 1, 38016, 0x053fb1d2
+0, 89, 89, 1, 38016, 0x96e44e17
+0, 90, 90, 1, 38016, 0x4d34f7e0
+0, 91, 91, 1, 38016, 0x2265c386
+0, 92, 92, 1, 38016, 0xc45dd284
+0, 93, 93, 1, 38016, 0x0638fca3
+0, 94, 94, 1, 38016, 0xcd9c2bbc
+0, 95, 95, 1, 38016, 0x3220dea3
+0, 96, 96, 1, 38016, 0x72dfb576
+0, 97, 97, 1, 38016, 0xb804ee86
+0, 98, 98, 1, 38016, 0xbd516400
+0, 99, 99, 1, 38016, 0x737fa296
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-ba1_ft_c b/ffmpeg1/tests/ref/fate/h264-conformance-ba1_ft_c
new file mode 100644
index 0000000..9f6bc23
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-ba1_ft_c
@@ -0,0 +1,300 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xa6f9b2a8
+0, 1, 1, 1, 152064, 0x936a8ed6
+0, 2, 2, 1, 152064, 0xa9f47652
+0, 3, 3, 1, 152064, 0xf53ea804
+0, 4, 4, 1, 152064, 0xc951304d
+0, 5, 5, 1, 152064, 0x59b786b9
+0, 6, 6, 1, 152064, 0x01b3d9e9
+0, 7, 7, 1, 152064, 0x94db5883
+0, 8, 8, 1, 152064, 0xef01ce6c
+0, 9, 9, 1, 152064, 0x18401484
+0, 10, 10, 1, 152064, 0xf8773e58
+0, 11, 11, 1, 152064, 0x09d07ae7
+0, 12, 12, 1, 152064, 0xbbec5291
+0, 13, 13, 1, 152064, 0x1ddcbb1e
+0, 14, 14, 1, 152064, 0x51b257f2
+0, 15, 15, 1, 152064, 0x2e537d43
+0, 16, 16, 1, 152064, 0xc4d3c391
+0, 17, 17, 1, 152064, 0xe6d0ed1c
+0, 18, 18, 1, 152064, 0x99d81859
+0, 19, 19, 1, 152064, 0xba1c1693
+0, 20, 20, 1, 152064, 0x60a22321
+0, 21, 21, 1, 152064, 0xfe000aee
+0, 22, 22, 1, 152064, 0x3b056f2d
+0, 23, 23, 1, 152064, 0xf735caf9
+0, 24, 24, 1, 152064, 0x81b94a66
+0, 25, 25, 1, 152064, 0x28ad08af
+0, 26, 26, 1, 152064, 0x69b316f5
+0, 27, 27, 1, 152064, 0xa90e6480
+0, 28, 28, 1, 152064, 0x2600a97a
+0, 29, 29, 1, 152064, 0x28b1e894
+0, 30, 30, 1, 152064, 0x8caaeb3c
+0, 31, 31, 1, 152064, 0xeaa3cd5d
+0, 32, 32, 1, 152064, 0x2aeab842
+0, 33, 33, 1, 152064, 0x8781b8fe
+0, 34, 34, 1, 152064, 0xd5829de5
+0, 35, 35, 1, 152064, 0xd04489cd
+0, 36, 36, 1, 152064, 0xfe268158
+0, 37, 37, 1, 152064, 0x43917137
+0, 38, 38, 1, 152064, 0x99963053
+0, 39, 39, 1, 152064, 0xe085087d
+0, 40, 40, 1, 152064, 0x0344f8d3
+0, 41, 41, 1, 152064, 0xe353b02a
+0, 42, 42, 1, 152064, 0x3f84816d
+0, 43, 43, 1, 152064, 0x3c3a8145
+0, 44, 44, 1, 152064, 0x478caf10
+0, 45, 45, 1, 152064, 0xdc879176
+0, 46, 46, 1, 152064, 0x502f3b81
+0, 47, 47, 1, 152064, 0x49997d1a
+0, 48, 48, 1, 152064, 0x6375e30f
+0, 49, 49, 1, 152064, 0x2abd5994
+0, 50, 50, 1, 152064, 0xa32a06a0
+0, 51, 51, 1, 152064, 0x9a2aed47
+0, 52, 52, 1, 152064, 0x1963fa9d
+0, 53, 53, 1, 152064, 0xa429cc58
+0, 54, 54, 1, 152064, 0x8f08abca
+0, 55, 55, 1, 152064, 0xdabe3408
+0, 56, 56, 1, 152064, 0x5b94b0f1
+0, 57, 57, 1, 152064, 0xb2565ba5
+0, 58, 58, 1, 152064, 0x6eaf3500
+0, 59, 59, 1, 152064, 0x04d79374
+0, 60, 60, 1, 152064, 0x0a9281d7
+0, 61, 61, 1, 152064, 0x97bf672b
+0, 62, 62, 1, 152064, 0x996d0b1a
+0, 63, 63, 1, 152064, 0xb5c4d52d
+0, 64, 64, 1, 152064, 0x8ab3897b
+0, 65, 65, 1, 152064, 0xd3303ae0
+0, 66, 66, 1, 152064, 0x2c217280
+0, 67, 67, 1, 152064, 0xcc21c7ff
+0, 68, 68, 1, 152064, 0xf9ae50ea
+0, 69, 69, 1, 152064, 0xa8af67a2
+0, 70, 70, 1, 152064, 0xba2cbf40
+0, 71, 71, 1, 152064, 0x80364875
+0, 72, 72, 1, 152064, 0xe7028c24
+0, 73, 73, 1, 152064, 0x6730636d
+0, 74, 74, 1, 152064, 0xd5d9bf5f
+0, 75, 75, 1, 152064, 0x2ec4cf74
+0, 76, 76, 1, 152064, 0x47c0e7ec
+0, 77, 77, 1, 152064, 0x0e1741fb
+0, 78, 78, 1, 152064, 0x4b39d9b6
+0, 79, 79, 1, 152064, 0x30737f2e
+0, 80, 80, 1, 152064, 0xce133061
+0, 81, 81, 1, 152064, 0x3b7ce6b9
+0, 82, 82, 1, 152064, 0x5b11d100
+0, 83, 83, 1, 152064, 0x8bd801ca
+0, 84, 84, 1, 152064, 0x5d322cf6
+0, 85, 85, 1, 152064, 0xdd47a0a3
+0, 86, 86, 1, 152064, 0x0e3b3c60
+0, 87, 87, 1, 152064, 0x8b69ac27
+0, 88, 88, 1, 152064, 0xef66b267
+0, 89, 89, 1, 152064, 0x29140655
+0, 90, 90, 1, 152064, 0x25f6ae5c
+0, 91, 91, 1, 152064, 0xc1a48b89
+0, 92, 92, 1, 152064, 0xc3eee9e4
+0, 93, 93, 1, 152064, 0xec23534a
+0, 94, 94, 1, 152064, 0x9eed2a2e
+0, 95, 95, 1, 152064, 0x7e5de8e7
+0, 96, 96, 1, 152064, 0x8d824e10
+0, 97, 97, 1, 152064, 0x841ebdc5
+0, 98, 98, 1, 152064, 0x9bc03542
+0, 99, 99, 1, 152064, 0xd77d5b14
+0, 100, 100, 1, 152064, 0x2b4597ed
+0, 101, 101, 1, 152064, 0xf460a0c5
+0, 102, 102, 1, 152064, 0x01f58bf9
+0, 103, 103, 1, 152064, 0xa5cb8dd9
+0, 104, 104, 1, 152064, 0x12e49e6f
+0, 105, 105, 1, 152064, 0x6aaac311
+0, 106, 106, 1, 152064, 0x0ff1d37a
+0, 107, 107, 1, 152064, 0x0e5ca8ce
+0, 108, 108, 1, 152064, 0x997c3a1f
+0, 109, 109, 1, 152064, 0x83c1d64e
+0, 110, 110, 1, 152064, 0xed2379a3
+0, 111, 111, 1, 152064, 0xe6b83696
+0, 112, 112, 1, 152064, 0x1a7c1864
+0, 113, 113, 1, 152064, 0xb0bcf08e
+0, 114, 114, 1, 152064, 0x74deb96f
+0, 115, 115, 1, 152064, 0xe86a9396
+0, 116, 116, 1, 152064, 0xf78a916b
+0, 117, 117, 1, 152064, 0x8d35a888
+0, 118, 118, 1, 152064, 0xb01a956d
+0, 119, 119, 1, 152064, 0xc8d37b7d
+0, 120, 120, 1, 152064, 0x903251c9
+0, 121, 121, 1, 152064, 0x93b819ac
+0, 122, 122, 1, 152064, 0xb949f48f
+0, 123, 123, 1, 152064, 0x7dbfeaba
+0, 124, 124, 1, 152064, 0x951903ae
+0, 125, 125, 1, 152064, 0x05742b8e
+0, 126, 126, 1, 152064, 0xb270514a
+0, 127, 127, 1, 152064, 0xf729867a
+0, 128, 128, 1, 152064, 0x7e05f652
+0, 129, 129, 1, 152064, 0x32a99f23
+0, 130, 130, 1, 152064, 0x57e7394b
+0, 131, 131, 1, 152064, 0xc0ffc453
+0, 132, 132, 1, 152064, 0x7b1e79fa
+0, 133, 133, 1, 152064, 0x90ee1d52
+0, 134, 134, 1, 152064, 0xaed672a8
+0, 135, 135, 1, 152064, 0xa253ccc4
+0, 136, 136, 1, 152064, 0x2d0807f9
+0, 137, 137, 1, 152064, 0xdc7ec4cc
+0, 138, 138, 1, 152064, 0x3c624e2e
+0, 139, 139, 1, 152064, 0xfa4a91dd
+0, 140, 140, 1, 152064, 0xcaa83992
+0, 141, 141, 1, 152064, 0x81e5c52d
+0, 142, 142, 1, 152064, 0x46ab76f8
+0, 143, 143, 1, 152064, 0x4ab115d8
+0, 144, 144, 1, 152064, 0x65d8c9d7
+0, 145, 145, 1, 152064, 0xcb1e16b1
+0, 146, 146, 1, 152064, 0xb766c029
+0, 147, 147, 1, 152064, 0x2a49c7c0
+0, 148, 148, 1, 152064, 0x37f35440
+0, 149, 149, 1, 152064, 0x33b4940f
+0, 150, 150, 1, 152064, 0x6b22fb9a
+0, 151, 151, 1, 152064, 0x785e138a
+0, 152, 152, 1, 152064, 0xc7a1954a
+0, 153, 153, 1, 152064, 0x6f325026
+0, 154, 154, 1, 152064, 0x23d6bf8d
+0, 155, 155, 1, 152064, 0x8e6f5815
+0, 156, 156, 1, 152064, 0x434c4770
+0, 157, 157, 1, 152064, 0x22319908
+0, 158, 158, 1, 152064, 0xec368ac8
+0, 159, 159, 1, 152064, 0xc69d7306
+0, 160, 160, 1, 152064, 0xc10ab1c8
+0, 161, 161, 1, 152064, 0x2497f329
+0, 162, 162, 1, 152064, 0x95782b50
+0, 163, 163, 1, 152064, 0xe0481c57
+0, 164, 164, 1, 152064, 0xa656f1e6
+0, 165, 165, 1, 152064, 0x562da8a1
+0, 166, 166, 1, 152064, 0x21716296
+0, 167, 167, 1, 152064, 0xb1ffd9de
+0, 168, 168, 1, 152064, 0x49204932
+0, 169, 169, 1, 152064, 0x88e1ac93
+0, 170, 170, 1, 152064, 0x6abb5dfb
+0, 171, 171, 1, 152064, 0xacdede42
+0, 172, 172, 1, 152064, 0xca28f448
+0, 173, 173, 1, 152064, 0x6b7e5e84
+0, 174, 174, 1, 152064, 0x464d4b58
+0, 175, 175, 1, 152064, 0xd39620f1
+0, 176, 176, 1, 152064, 0x67336772
+0, 177, 177, 1, 152064, 0x6de386c2
+0, 178, 178, 1, 152064, 0x6d8fbc97
+0, 179, 179, 1, 152064, 0x09fbc88d
+0, 180, 180, 1, 152064, 0x08dfa188
+0, 181, 181, 1, 152064, 0xf3461401
+0, 182, 182, 1, 152064, 0xdd6d1ce5
+0, 183, 183, 1, 152064, 0x90182ee8
+0, 184, 184, 1, 152064, 0xcb7cf9a2
+0, 185, 185, 1, 152064, 0x237e59bd
+0, 186, 186, 1, 152064, 0xf2efa664
+0, 187, 187, 1, 152064, 0x6565d69b
+0, 188, 188, 1, 152064, 0x321ce6e5
+0, 189, 189, 1, 152064, 0xc7035cb7
+0, 190, 190, 1, 152064, 0xbfcf2ecc
+0, 191, 191, 1, 152064, 0x8a2eb353
+0, 192, 192, 1, 152064, 0x5224b608
+0, 193, 193, 1, 152064, 0xc0c51491
+0, 194, 194, 1, 152064, 0xdeadac32
+0, 195, 195, 1, 152064, 0x8ffd15fe
+0, 196, 196, 1, 152064, 0x6a7fda8c
+0, 197, 197, 1, 152064, 0x32ae6c5a
+0, 198, 198, 1, 152064, 0x9668d580
+0, 199, 199, 1, 152064, 0xb10325d6
+0, 200, 200, 1, 152064, 0x1cfa4e12
+0, 201, 201, 1, 152064, 0x87cb2dc6
+0, 202, 202, 1, 152064, 0x03636041
+0, 203, 203, 1, 152064, 0x266df3d6
+0, 204, 204, 1, 152064, 0x48cd5b1b
+0, 205, 205, 1, 152064, 0xf42e4dde
+0, 206, 206, 1, 152064, 0x63b21de2
+0, 207, 207, 1, 152064, 0xef377b16
+0, 208, 208, 1, 152064, 0x540a3c21
+0, 209, 209, 1, 152064, 0xbc7576a4
+0, 210, 210, 1, 152064, 0x38508049
+0, 211, 211, 1, 152064, 0x5c120e6f
+0, 212, 212, 1, 152064, 0x5f7dae8a
+0, 213, 213, 1, 152064, 0x84632e15
+0, 214, 214, 1, 152064, 0xe6200a58
+0, 215, 215, 1, 152064, 0xeef9c63d
+0, 216, 216, 1, 152064, 0xe5c60794
+0, 217, 217, 1, 152064, 0x387849c9
+0, 218, 218, 1, 152064, 0x165744e6
+0, 219, 219, 1, 152064, 0xdc9cce84
+0, 220, 220, 1, 152064, 0xea3604e0
+0, 221, 221, 1, 152064, 0xaf9f5a76
+0, 222, 222, 1, 152064, 0x05ee7254
+0, 223, 223, 1, 152064, 0x62ed20cf
+0, 224, 224, 1, 152064, 0x6e038a86
+0, 225, 225, 1, 152064, 0xc782f21c
+0, 226, 226, 1, 152064, 0x9d214e66
+0, 227, 227, 1, 152064, 0xd33ad489
+0, 228, 228, 1, 152064, 0x5b04dd7a
+0, 229, 229, 1, 152064, 0xaf9a865d
+0, 230, 230, 1, 152064, 0x9eb4912a
+0, 231, 231, 1, 152064, 0x677628d8
+0, 232, 232, 1, 152064, 0x0b15e1b6
+0, 233, 233, 1, 152064, 0xda66848a
+0, 234, 234, 1, 152064, 0xd29a27a8
+0, 235, 235, 1, 152064, 0x2d74c6a2
+0, 236, 236, 1, 152064, 0xafa69b91
+0, 237, 237, 1, 152064, 0xf065a24b
+0, 238, 238, 1, 152064, 0xe9d5fe63
+0, 239, 239, 1, 152064, 0xe0428668
+0, 240, 240, 1, 152064, 0x2cfe6235
+0, 241, 241, 1, 152064, 0x6506229d
+0, 242, 242, 1, 152064, 0xc8cddb6b
+0, 243, 243, 1, 152064, 0x1b827b12
+0, 244, 244, 1, 152064, 0x366af54b
+0, 245, 245, 1, 152064, 0x810b5998
+0, 246, 246, 1, 152064, 0x40d8d09e
+0, 247, 247, 1, 152064, 0xf5bd32c5
+0, 248, 248, 1, 152064, 0xb7af7607
+0, 249, 249, 1, 152064, 0x005ac53b
+0, 250, 250, 1, 152064, 0x1a28f754
+0, 251, 251, 1, 152064, 0x8e15108e
+0, 252, 252, 1, 152064, 0xb40515ec
+0, 253, 253, 1, 152064, 0x43a30620
+0, 254, 254, 1, 152064, 0x000beec8
+0, 255, 255, 1, 152064, 0x1f6e9253
+0, 256, 256, 1, 152064, 0x14695f50
+0, 257, 257, 1, 152064, 0x056359d6
+0, 258, 258, 1, 152064, 0xdc4360e5
+0, 259, 259, 1, 152064, 0x3716abb2
+0, 260, 260, 1, 152064, 0xee1cff6a
+0, 261, 261, 1, 152064, 0x7b251ba9
+0, 262, 262, 1, 152064, 0xe4f81d2e
+0, 263, 263, 1, 152064, 0x01411136
+0, 264, 264, 1, 152064, 0xcff2f30a
+0, 265, 265, 1, 152064, 0xc8bcd80d
+0, 266, 266, 1, 152064, 0x94e8a397
+0, 267, 267, 1, 152064, 0x6fd071c8
+0, 268, 268, 1, 152064, 0xb6145d60
+0, 269, 269, 1, 152064, 0x593f5f70
+0, 270, 270, 1, 152064, 0xb5133bb7
+0, 271, 271, 1, 152064, 0x40ad1ae8
+0, 272, 272, 1, 152064, 0xedfc0faa
+0, 273, 273, 1, 152064, 0xa2ab0578
+0, 274, 274, 1, 152064, 0x3038fb4f
+0, 275, 275, 1, 152064, 0xdf10fb53
+0, 276, 276, 1, 152064, 0x6b63ff01
+0, 277, 277, 1, 152064, 0xb34af6cd
+0, 278, 278, 1, 152064, 0xc7e9cfb0
+0, 279, 279, 1, 152064, 0x22ffb57c
+0, 280, 280, 1, 152064, 0xf429b3eb
+0, 281, 281, 1, 152064, 0x3861e0db
+0, 282, 282, 1, 152064, 0x166321b7
+0, 283, 283, 1, 152064, 0x3058744c
+0, 284, 284, 1, 152064, 0x6e1dc37a
+0, 285, 285, 1, 152064, 0xef2aee63
+0, 286, 286, 1, 152064, 0x1a9c3957
+0, 287, 287, 1, 152064, 0x93807ed4
+0, 288, 288, 1, 152064, 0x117fcbe1
+0, 289, 289, 1, 152064, 0x80502017
+0, 290, 290, 1, 152064, 0xba5a3dac
+0, 291, 291, 1, 152064, 0x157764f1
+0, 292, 292, 1, 152064, 0xc7577daf
+0, 293, 293, 1, 152064, 0xe9e8ae69
+0, 294, 294, 1, 152064, 0x04f9ddac
+0, 295, 295, 1, 152064, 0x90441226
+0, 296, 296, 1, 152064, 0xaa594ed2
+0, 297, 297, 1, 152064, 0x59258b49
+0, 298, 298, 1, 152064, 0x13ec85c6
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-ba1_sony_d b/ffmpeg1/tests/ref/fate/h264-conformance-ba1_sony_d
new file mode 100644
index 0000000..b0145cd
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-ba1_sony_d
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb3883478
+0, 1, 1, 1, 38016, 0x99e1fe60
+0, 2, 2, 1, 38016, 0x65eace24
+0, 3, 3, 1, 38016, 0xb2b0a513
+0, 4, 4, 1, 38016, 0x8af47c64
+0, 5, 5, 1, 38016, 0xa56670c6
+0, 6, 6, 1, 38016, 0x11d45ac9
+0, 7, 7, 1, 38016, 0xcd4e4f18
+0, 8, 8, 1, 38016, 0x399934b2
+0, 9, 9, 1, 38016, 0xedd23f7b
+0, 10, 10, 1, 38016, 0x38c350b9
+0, 11, 11, 1, 38016, 0xdd937244
+0, 12, 12, 1, 38016, 0x39c67be6
+0, 13, 13, 1, 38016, 0xabb7a34d
+0, 14, 14, 1, 38016, 0x535d971f
+0, 15, 15, 1, 38016, 0xd41c9cf7
+0, 16, 16, 1, 38016, 0xfddda183
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-ba2_sony_f b/ffmpeg1/tests/ref/fate/h264-conformance-ba2_sony_f
new file mode 100644
index 0000000..13a6462
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-ba2_sony_f
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb3883478
+0, 1, 1, 1, 38016, 0x47b90d4b
+0, 2, 2, 1, 38016, 0x3e99dfcf
+0, 3, 3, 1, 38016, 0xeb18bb85
+0, 4, 4, 1, 38016, 0xcf1e9658
+0, 5, 5, 1, 38016, 0xf01b7bf1
+0, 6, 6, 1, 38016, 0x92e06ac5
+0, 7, 7, 1, 38016, 0x8ae35c1f
+0, 8, 8, 1, 38016, 0x4bda52c8
+0, 9, 9, 1, 38016, 0xbffe59e5
+0, 10, 10, 1, 38016, 0x56c96cad
+0, 11, 11, 1, 38016, 0x8a278da1
+0, 12, 12, 1, 38016, 0xce6f97d6
+0, 13, 13, 1, 38016, 0x69edad2e
+0, 14, 14, 1, 38016, 0x5134a67c
+0, 15, 15, 1, 38016, 0x1abfb2a1
+0, 16, 16, 1, 38016, 0x4a37b185
+0, 17, 17, 1, 38016, 0x5270a90e
+0, 18, 18, 1, 38016, 0xe28f9d5d
+0, 19, 19, 1, 38016, 0x3fcc87b0
+0, 20, 20, 1, 38016, 0x719e6605
+0, 21, 21, 1, 38016, 0x8b824ca3
+0, 22, 22, 1, 38016, 0x5f6a3544
+0, 23, 23, 1, 38016, 0x2ecd2ada
+0, 24, 24, 1, 38016, 0x5d4f3055
+0, 25, 25, 1, 38016, 0xc54441d3
+0, 26, 26, 1, 38016, 0x93f83f2c
+0, 27, 27, 1, 38016, 0xaa4d46a8
+0, 28, 28, 1, 38016, 0x7ca45c1f
+0, 29, 29, 1, 38016, 0x59de7854
+0, 30, 30, 1, 38016, 0xc8f98709
+0, 31, 31, 1, 38016, 0x9a199eeb
+0, 32, 32, 1, 38016, 0xfd82b785
+0, 33, 33, 1, 38016, 0x319fd17f
+0, 34, 34, 1, 38016, 0xc6ebd362
+0, 35, 35, 1, 38016, 0xbd60d5dc
+0, 36, 36, 1, 38016, 0x6e27d260
+0, 37, 37, 1, 38016, 0x96b7cf93
+0, 38, 38, 1, 38016, 0x6787cbcf
+0, 39, 39, 1, 38016, 0x48dacd76
+0, 40, 40, 1, 38016, 0xbef1d08e
+0, 41, 41, 1, 38016, 0xbb1bd9a4
+0, 42, 42, 1, 38016, 0xa420d63b
+0, 43, 43, 1, 38016, 0xfa26d0ab
+0, 44, 44, 1, 38016, 0xa349d2e0
+0, 45, 45, 1, 38016, 0x9946ce09
+0, 46, 46, 1, 38016, 0xb101cabe
+0, 47, 47, 1, 38016, 0x9e18c6b2
+0, 48, 48, 1, 38016, 0xe7cccbd9
+0, 49, 49, 1, 38016, 0x1067d145
+0, 50, 50, 1, 38016, 0xae13cd75
+0, 51, 51, 1, 38016, 0x8e06cce5
+0, 52, 52, 1, 38016, 0x0b3dcbf8
+0, 53, 53, 1, 38016, 0xc6cbcfbe
+0, 54, 54, 1, 38016, 0x1eced2f7
+0, 55, 55, 1, 38016, 0x5d72da04
+0, 56, 56, 1, 38016, 0x0643e191
+0, 57, 57, 1, 38016, 0x3cace7f7
+0, 58, 58, 1, 38016, 0x5e31f1f0
+0, 59, 59, 1, 38016, 0x04d1ef46
+0, 60, 60, 1, 38016, 0xffdbe794
+0, 61, 61, 1, 38016, 0x106ad275
+0, 62, 62, 1, 38016, 0x5c64a147
+0, 63, 63, 1, 38016, 0xb7676212
+0, 64, 64, 1, 38016, 0x86ea653e
+0, 65, 65, 1, 38016, 0xabb48937
+0, 66, 66, 1, 38016, 0x6b1cadc4
+0, 67, 67, 1, 38016, 0xa4eaf34b
+0, 68, 68, 1, 38016, 0x4174280f
+0, 69, 69, 1, 38016, 0xfe845818
+0, 70, 70, 1, 38016, 0xc64a838e
+0, 71, 71, 1, 38016, 0x5e24aaf0
+0, 72, 72, 1, 38016, 0x8bffd9d8
+0, 73, 73, 1, 38016, 0x00d912c9
+0, 74, 74, 1, 38016, 0x0dba50f0
+0, 75, 75, 1, 38016, 0x80958628
+0, 76, 76, 1, 38016, 0x4e81a356
+0, 77, 77, 1, 38016, 0x121dc289
+0, 78, 78, 1, 38016, 0x4885de6f
+0, 79, 79, 1, 38016, 0x5329e4f9
+0, 80, 80, 1, 38016, 0xa129ef6b
+0, 81, 81, 1, 38016, 0x3ea6fd46
+0, 82, 82, 1, 38016, 0x9a68fbb4
+0, 83, 83, 1, 38016, 0xea1dffdd
+0, 84, 84, 1, 38016, 0x7bf9f719
+0, 85, 85, 1, 38016, 0x9aa5ff2a
+0, 86, 86, 1, 38016, 0xf050fe90
+0, 87, 87, 1, 38016, 0xb6f50938
+0, 88, 88, 1, 38016, 0xbe900b57
+0, 89, 89, 1, 38016, 0x27b90a6b
+0, 90, 90, 1, 38016, 0xe87bf703
+0, 91, 91, 1, 38016, 0xaf0fdbe1
+0, 92, 92, 1, 38016, 0x3f2cc304
+0, 93, 93, 1, 38016, 0x0114b42f
+0, 94, 94, 1, 38016, 0x7f739915
+0, 95, 95, 1, 38016, 0xcc3da414
+0, 96, 96, 1, 38016, 0x57e2afe8
+0, 97, 97, 1, 38016, 0x59b6bdc5
+0, 98, 98, 1, 38016, 0xb3eacf6a
+0, 99, 99, 1, 38016, 0xa10ddcd8
+0, 100, 100, 1, 38016, 0xae05e697
+0, 101, 101, 1, 38016, 0x8cb9d81c
+0, 102, 102, 1, 38016, 0x5d5cc3b1
+0, 103, 103, 1, 38016, 0x8f89c0c0
+0, 104, 104, 1, 38016, 0x593cda26
+0, 105, 105, 1, 38016, 0xd5d1f2fc
+0, 106, 106, 1, 38016, 0x2586ff00
+0, 107, 107, 1, 38016, 0x1c2613f0
+0, 108, 108, 1, 38016, 0x236133bd
+0, 109, 109, 1, 38016, 0x92c5439b
+0, 110, 110, 1, 38016, 0xd1145724
+0, 111, 111, 1, 38016, 0xf2fa5c12
+0, 112, 112, 1, 38016, 0x810d5f50
+0, 113, 113, 1, 38016, 0x196f4470
+0, 114, 114, 1, 38016, 0xcba71d6b
+0, 115, 115, 1, 38016, 0x58ab17b0
+0, 116, 116, 1, 38016, 0x4a96278d
+0, 117, 117, 1, 38016, 0x4afe2f7d
+0, 118, 118, 1, 38016, 0xe1ca3d55
+0, 119, 119, 1, 38016, 0x4f6844ab
+0, 120, 120, 1, 38016, 0x7ad24bc5
+0, 121, 121, 1, 38016, 0x068c49f0
+0, 122, 122, 1, 38016, 0x23b92dae
+0, 123, 123, 1, 38016, 0x0e9a0793
+0, 124, 124, 1, 38016, 0xc1d2dd4a
+0, 125, 125, 1, 38016, 0x1b5cbc00
+0, 126, 126, 1, 38016, 0xa951b88d
+0, 127, 127, 1, 38016, 0x8b4ac1df
+0, 128, 128, 1, 38016, 0x91d3d98d
+0, 129, 129, 1, 38016, 0xa42aeb49
+0, 130, 130, 1, 38016, 0x21b5f1f6
+0, 131, 131, 1, 38016, 0xd632f07f
+0, 132, 132, 1, 38016, 0x6566ec26
+0, 133, 133, 1, 38016, 0x03f4ee70
+0, 134, 134, 1, 38016, 0x62b6e999
+0, 135, 135, 1, 38016, 0xfd1de6fb
+0, 136, 136, 1, 38016, 0xb07bdc79
+0, 137, 137, 1, 38016, 0xace9d441
+0, 138, 138, 1, 38016, 0x7d98c788
+0, 139, 139, 1, 38016, 0x3c7dbae4
+0, 140, 140, 1, 38016, 0x6e85b20f
+0, 141, 141, 1, 38016, 0x86a5a6bc
+0, 142, 142, 1, 38016, 0xacbe93ca
+0, 143, 143, 1, 38016, 0x8e438bde
+0, 144, 144, 1, 38016, 0x88b4963d
+0, 145, 145, 1, 38016, 0x86119504
+0, 146, 146, 1, 38016, 0x0ccc8932
+0, 147, 147, 1, 38016, 0x69a45f01
+0, 148, 148, 1, 38016, 0x8f173148
+0, 149, 149, 1, 38016, 0x1e320daf
+0, 150, 150, 1, 38016, 0x3957e834
+0, 151, 151, 1, 38016, 0x57c1dcee
+0, 152, 152, 1, 38016, 0x2a9edf52
+0, 153, 153, 1, 38016, 0x116ed4bc
+0, 154, 154, 1, 38016, 0x81cfc686
+0, 155, 155, 1, 38016, 0x6685db47
+0, 156, 156, 1, 38016, 0xab79fd2f
+0, 157, 157, 1, 38016, 0x65201bdd
+0, 158, 158, 1, 38016, 0x06e64eb6
+0, 159, 159, 1, 38016, 0xbcb77ac0
+0, 160, 160, 1, 38016, 0x65679028
+0, 161, 161, 1, 38016, 0xf33e837e
+0, 162, 162, 1, 38016, 0xa77d7b6c
+0, 163, 163, 1, 38016, 0x0e7b64f6
+0, 164, 164, 1, 38016, 0x2d1f597c
+0, 165, 165, 1, 38016, 0x1b6748a1
+0, 166, 166, 1, 38016, 0x12a91f4f
+0, 167, 167, 1, 38016, 0xc09df3ee
+0, 168, 168, 1, 38016, 0x1b9dcd6f
+0, 169, 169, 1, 38016, 0xf3c2bce4
+0, 170, 170, 1, 38016, 0xfe05d34b
+0, 171, 171, 1, 38016, 0x421deb25
+0, 172, 172, 1, 38016, 0x0f8d0725
+0, 173, 173, 1, 38016, 0xa03d0a3d
+0, 174, 174, 1, 38016, 0xe00cf88f
+0, 175, 175, 1, 38016, 0xa55abfdf
+0, 176, 176, 1, 38016, 0x11618891
+0, 177, 177, 1, 38016, 0x45835caf
+0, 178, 178, 1, 38016, 0x7be63a3b
+0, 179, 179, 1, 38016, 0x1ebb2104
+0, 180, 180, 1, 38016, 0x055b0b26
+0, 181, 181, 1, 38016, 0x076ef47e
+0, 182, 182, 1, 38016, 0xa828e6e1
+0, 183, 183, 1, 38016, 0x0de5eb60
+0, 184, 184, 1, 38016, 0x5238f229
+0, 185, 185, 1, 38016, 0x332cff7c
+0, 186, 186, 1, 38016, 0x74072063
+0, 187, 187, 1, 38016, 0x1e623ceb
+0, 188, 188, 1, 38016, 0xad2448c9
+0, 189, 189, 1, 38016, 0x32065043
+0, 190, 190, 1, 38016, 0x2e7ff976
+0, 191, 191, 1, 38016, 0xf1a8c805
+0, 192, 192, 1, 38016, 0x3f64d1cc
+0, 193, 193, 1, 38016, 0xc855efbd
+0, 194, 194, 1, 38016, 0x152b0fed
+0, 195, 195, 1, 38016, 0x43335881
+0, 196, 196, 1, 38016, 0xec5c7979
+0, 197, 197, 1, 38016, 0x150e9488
+0, 198, 198, 1, 38016, 0x1a63b67a
+0, 199, 199, 1, 38016, 0x24a4cca6
+0, 200, 200, 1, 38016, 0x3838dba2
+0, 201, 201, 1, 38016, 0xef1bec71
+0, 202, 202, 1, 38016, 0x0478f12a
+0, 203, 203, 1, 38016, 0x478fee17
+0, 204, 204, 1, 38016, 0x1d09f0ac
+0, 205, 205, 1, 38016, 0x3daef591
+0, 206, 206, 1, 38016, 0xf7f3033c
+0, 207, 207, 1, 38016, 0xfb09faa0
+0, 208, 208, 1, 38016, 0xd87de6c9
+0, 209, 209, 1, 38016, 0xbd99d6bc
+0, 210, 210, 1, 38016, 0x87d8bd7d
+0, 211, 211, 1, 38016, 0xf244b18a
+0, 212, 212, 1, 38016, 0x3a34a2da
+0, 213, 213, 1, 38016, 0x25739701
+0, 214, 214, 1, 38016, 0x346b8b9a
+0, 215, 215, 1, 38016, 0xc67379ec
+0, 216, 216, 1, 38016, 0xbd30780d
+0, 217, 217, 1, 38016, 0xc5197c2b
+0, 218, 218, 1, 38016, 0xd5ce73e8
+0, 219, 219, 1, 38016, 0x63ce72d1
+0, 220, 220, 1, 38016, 0x140d688d
+0, 221, 221, 1, 38016, 0x027158aa
+0, 222, 222, 1, 38016, 0x90884ce3
+0, 223, 223, 1, 38016, 0x4faa38c5
+0, 224, 224, 1, 38016, 0x78693f54
+0, 225, 225, 1, 38016, 0xe1fa41c1
+0, 226, 226, 1, 38016, 0x9b524771
+0, 227, 227, 1, 38016, 0xbb3056c8
+0, 228, 228, 1, 38016, 0xa93b67df
+0, 229, 229, 1, 38016, 0xe661909f
+0, 230, 230, 1, 38016, 0x55a0af6d
+0, 231, 231, 1, 38016, 0xa5f6d0a8
+0, 232, 232, 1, 38016, 0xa44300f8
+0, 233, 233, 1, 38016, 0xc7cc265e
+0, 234, 234, 1, 38016, 0xe7384598
+0, 235, 235, 1, 38016, 0x77e4589a
+0, 236, 236, 1, 38016, 0x073c7054
+0, 237, 237, 1, 38016, 0xe50e6ea8
+0, 238, 238, 1, 38016, 0xcedf518f
+0, 239, 239, 1, 38016, 0x8674266b
+0, 240, 240, 1, 38016, 0x360e0517
+0, 241, 241, 1, 38016, 0x19acdb3a
+0, 242, 242, 1, 38016, 0xd029d91b
+0, 243, 243, 1, 38016, 0x3101277f
+0, 244, 244, 1, 38016, 0x3a919153
+0, 245, 245, 1, 38016, 0x0646ffaf
+0, 246, 246, 1, 38016, 0xffdd13a5
+0, 247, 247, 1, 38016, 0x13e2e641
+0, 248, 248, 1, 38016, 0xc6f6a13b
+0, 249, 249, 1, 38016, 0x984f2ecd
+0, 250, 250, 1, 38016, 0xafaec63a
+0, 251, 251, 1, 38016, 0x9025817a
+0, 252, 252, 1, 38016, 0x20d574d7
+0, 253, 253, 1, 38016, 0x72eacc49
+0, 254, 254, 1, 38016, 0x6297335a
+0, 255, 255, 1, 38016, 0xc69adba1
+0, 256, 256, 1, 38016, 0x7852d515
+0, 257, 257, 1, 38016, 0x0e846003
+0, 258, 258, 1, 38016, 0xeb294c5e
+0, 259, 259, 1, 38016, 0x0913448f
+0, 260, 260, 1, 38016, 0xea2c4fc1
+0, 261, 261, 1, 38016, 0xb8165b3f
+0, 262, 262, 1, 38016, 0x5f596c9d
+0, 263, 263, 1, 38016, 0x3a1370d1
+0, 264, 264, 1, 38016, 0x25dd6a9a
+0, 265, 265, 1, 38016, 0x70075f7a
+0, 266, 266, 1, 38016, 0xaf6749f0
+0, 267, 267, 1, 38016, 0xd5c22d02
+0, 268, 268, 1, 38016, 0xf6e80af2
+0, 269, 269, 1, 38016, 0x42d1dcf7
+0, 270, 270, 1, 38016, 0x232cb536
+0, 271, 271, 1, 38016, 0x7c848ebf
+0, 272, 272, 1, 38016, 0x4c756c28
+0, 273, 273, 1, 38016, 0x720e1f07
+0, 274, 274, 1, 38016, 0x2385ccb2
+0, 275, 275, 1, 38016, 0xcd97bf76
+0, 276, 276, 1, 38016, 0xebcad10b
+0, 277, 277, 1, 38016, 0xbed8ceeb
+0, 278, 278, 1, 38016, 0x660ffaf8
+0, 279, 279, 1, 38016, 0x6a1662a9
+0, 280, 280, 1, 38016, 0x71f20775
+0, 281, 281, 1, 38016, 0x597ecf26
+0, 282, 282, 1, 38016, 0x7a81a050
+0, 283, 283, 1, 38016, 0x05f6676a
+0, 284, 284, 1, 38016, 0xd0065042
+0, 285, 285, 1, 38016, 0x17ca9cd9
+0, 286, 286, 1, 38016, 0x76956633
+0, 287, 287, 1, 38016, 0x9211a2b0
+0, 288, 288, 1, 38016, 0xc134b304
+0, 289, 289, 1, 38016, 0xdaca9260
+0, 290, 290, 1, 38016, 0x10252d19
+0, 291, 291, 1, 38016, 0xf52a44af
+0, 292, 292, 1, 38016, 0x4053d2d1
+0, 293, 293, 1, 38016, 0x165e0bed
+0, 294, 294, 1, 38016, 0x577352d0
+0, 295, 295, 1, 38016, 0xf9564a09
+0, 296, 296, 1, 38016, 0x78a8295f
+0, 297, 297, 1, 38016, 0xb2d7182a
+0, 298, 298, 1, 38016, 0x9a0c2487
+0, 299, 299, 1, 38016, 0x1b044efa
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-ba3_sva_c b/ffmpeg1/tests/ref/fate/h264-conformance-ba3_sva_c
new file mode 100644
index 0000000..cb775db
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-ba3_sva_c
@@ -0,0 +1,34 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xbf5f1df5
+0, 1, 1, 1, 38016, 0x8de61f39
+0, 2, 2, 1, 38016, 0xaeec0a18
+0, 3, 3, 1, 38016, 0x386c2599
+0, 4, 4, 1, 38016, 0x8fcf2df0
+0, 5, 5, 1, 38016, 0x34fe57ec
+0, 6, 6, 1, 38016, 0x7e6c5e1a
+0, 7, 7, 1, 38016, 0x8f319659
+0, 8, 8, 1, 38016, 0x1e1291e2
+0, 9, 9, 1, 38016, 0x97e9bf55
+0, 10, 10, 1, 38016, 0x35bcad1a
+0, 11, 11, 1, 38016, 0xea39d354
+0, 12, 12, 1, 38016, 0xca7db081
+0, 13, 13, 1, 38016, 0x2c069b6c
+0, 14, 14, 1, 38016, 0x32f86a99
+0, 15, 15, 1, 38016, 0xb4019668
+0, 16, 16, 1, 38016, 0x04038324
+0, 17, 17, 1, 38016, 0xe4f0b032
+0, 18, 18, 1, 38016, 0xe6119a63
+0, 19, 19, 1, 38016, 0xdf17b9fa
+0, 20, 20, 1, 38016, 0xe199a348
+0, 21, 21, 1, 38016, 0x6704b749
+0, 22, 22, 1, 38016, 0x33fc7592
+0, 23, 23, 1, 38016, 0xc0c371b2
+0, 24, 24, 1, 38016, 0x017628aa
+0, 25, 25, 1, 38016, 0xa46b3ab5
+0, 26, 26, 1, 38016, 0x216f1fdb
+0, 27, 27, 1, 38016, 0x28c54669
+0, 28, 28, 1, 38016, 0x070c4ac1
+0, 29, 29, 1, 38016, 0x4d4c6765
+0, 30, 30, 1, 38016, 0xb496626c
+0, 31, 31, 1, 38016, 0x9f767057
+0, 32, 32, 1, 38016, 0xe2bc4de1
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-ba_mw_d b/ffmpeg1/tests/ref/fate/h264-conformance-ba_mw_d
new file mode 100644
index 0000000..18a6717
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-ba_mw_d
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x3ae838ee
+0, 1, 1, 1, 38016, 0x9ed7e141
+0, 2, 2, 1, 38016, 0x393097f9
+0, 3, 3, 1, 38016, 0x8fb56676
+0, 4, 4, 1, 38016, 0x39d64fd2
+0, 5, 5, 1, 38016, 0x7fad729a
+0, 6, 6, 1, 38016, 0x7e25955f
+0, 7, 7, 1, 38016, 0xc4d9a359
+0, 8, 8, 1, 38016, 0x30afaca4
+0, 9, 9, 1, 38016, 0x9ee195ea
+0, 10, 10, 1, 38016, 0x09f65805
+0, 11, 11, 1, 38016, 0x58d126ab
+0, 12, 12, 1, 38016, 0x4f29282c
+0, 13, 13, 1, 38016, 0x8af235a1
+0, 14, 14, 1, 38016, 0x6dfe525a
+0, 15, 15, 1, 38016, 0xd51c793f
+0, 16, 16, 1, 38016, 0x4e90abba
+0, 17, 17, 1, 38016, 0xe706c5b7
+0, 18, 18, 1, 38016, 0x35fab7ef
+0, 19, 19, 1, 38016, 0xed78b8fc
+0, 20, 20, 1, 38016, 0x2907bb4e
+0, 21, 21, 1, 38016, 0x1749bb47
+0, 22, 22, 1, 38016, 0x284ec688
+0, 23, 23, 1, 38016, 0x534abc24
+0, 24, 24, 1, 38016, 0xcd01bd13
+0, 25, 25, 1, 38016, 0xe97bbd51
+0, 26, 26, 1, 38016, 0xac1cb9e9
+0, 27, 27, 1, 38016, 0xd861c0a3
+0, 28, 28, 1, 38016, 0xf0f1ced4
+0, 29, 29, 1, 38016, 0xa9e8d2bf
+0, 30, 30, 1, 38016, 0x4c6aa7c5
+0, 31, 31, 1, 38016, 0xe2eb6bde
+0, 32, 32, 1, 38016, 0x92eb44a1
+0, 33, 33, 1, 38016, 0x376b8919
+0, 34, 34, 1, 38016, 0x291bfdd9
+0, 35, 35, 1, 38016, 0xed0c60a0
+0, 36, 36, 1, 38016, 0xf505b70d
+0, 37, 37, 1, 38016, 0x26b33a9b
+0, 38, 38, 1, 38016, 0xc9269664
+0, 39, 39, 1, 38016, 0xe21dc61e
+0, 40, 40, 1, 38016, 0xe88fe653
+0, 41, 41, 1, 38016, 0xd4cff39c
+0, 42, 42, 1, 38016, 0x02bdecdf
+0, 43, 43, 1, 38016, 0xec48fc13
+0, 44, 44, 1, 38016, 0x363f071c
+0, 45, 45, 1, 38016, 0x7fcbf2fd
+0, 46, 46, 1, 38016, 0xc3d1c265
+0, 47, 47, 1, 38016, 0x818a94e9
+0, 48, 48, 1, 38016, 0x30b5a52f
+0, 49, 49, 1, 38016, 0x7a1acd17
+0, 50, 50, 1, 38016, 0xb5a6dc91
+0, 51, 51, 1, 38016, 0x7d39b673
+0, 52, 52, 1, 38016, 0x341ad3f9
+0, 53, 53, 1, 38016, 0x264cff5f
+0, 54, 54, 1, 38016, 0x613a445b
+0, 55, 55, 1, 38016, 0x42a55cd6
+0, 56, 56, 1, 38016, 0xe84f6a39
+0, 57, 57, 1, 38016, 0xd8e93151
+0, 58, 58, 1, 38016, 0xc7333ac4
+0, 59, 59, 1, 38016, 0xa08a4b2c
+0, 60, 60, 1, 38016, 0xeb8a3531
+0, 61, 61, 1, 38016, 0x88bf1883
+0, 62, 62, 1, 38016, 0x0043c104
+0, 63, 63, 1, 38016, 0xa9d6a35d
+0, 64, 64, 1, 38016, 0x01dec5af
+0, 65, 65, 1, 38016, 0x673cdf0e
+0, 66, 66, 1, 38016, 0xc8d0ce67
+0, 67, 67, 1, 38016, 0xcac2d0bd
+0, 68, 68, 1, 38016, 0x8575c7b9
+0, 69, 69, 1, 38016, 0x71c1b4f4
+0, 70, 70, 1, 38016, 0x2affa1d4
+0, 71, 71, 1, 38016, 0xae947cfd
+0, 72, 72, 1, 38016, 0x48b2821d
+0, 73, 73, 1, 38016, 0x1c5d77f4
+0, 74, 74, 1, 38016, 0x3625233b
+0, 75, 75, 1, 38016, 0xcfc8e3ff
+0, 76, 76, 1, 38016, 0x6d04cfa5
+0, 77, 77, 1, 38016, 0x2c4ec463
+0, 78, 78, 1, 38016, 0x72b1ea07
+0, 79, 79, 1, 38016, 0x448d3996
+0, 80, 80, 1, 38016, 0x89256b87
+0, 81, 81, 1, 38016, 0x69af5fea
+0, 82, 82, 1, 38016, 0x908f46b0
+0, 83, 83, 1, 38016, 0x56e11a8b
+0, 84, 84, 1, 38016, 0x7fd4c5f5
+0, 85, 85, 1, 38016, 0x560bd701
+0, 86, 86, 1, 38016, 0x71570820
+0, 87, 87, 1, 38016, 0x11b20b14
+0, 88, 88, 1, 38016, 0xa3fd9f19
+0, 89, 89, 1, 38016, 0x4a564d33
+0, 90, 90, 1, 38016, 0x1722db32
+0, 91, 91, 1, 38016, 0xf853a971
+0, 92, 92, 1, 38016, 0xb136bf89
+0, 93, 93, 1, 38016, 0xb686e8c3
+0, 94, 94, 1, 38016, 0x8afc1a4c
+0, 95, 95, 1, 38016, 0xa24adb65
+0, 96, 96, 1, 38016, 0xd951ae27
+0, 97, 97, 1, 38016, 0xa731f04e
+0, 98, 98, 1, 38016, 0xabd65795
+0, 99, 99, 1, 38016, 0x46bc95e1
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-bamq1_jvc_c b/ffmpeg1/tests/ref/fate/h264-conformance-bamq1_jvc_c
new file mode 100644
index 0000000..4a3066c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-bamq1_jvc_c
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x6951213f
+0, 1, 1, 1, 38016, 0x82ddf39d
+0, 2, 2, 1, 38016, 0x3f81c6b1
+0, 3, 3, 1, 38016, 0x55149f23
+0, 4, 4, 1, 38016, 0x366a74e1
+0, 5, 5, 1, 38016, 0xe6f465cf
+0, 6, 6, 1, 38016, 0x14fd4999
+0, 7, 7, 1, 38016, 0x49273f0f
+0, 8, 8, 1, 38016, 0xa20a2ebe
+0, 9, 9, 1, 38016, 0x701b32a4
+0, 10, 10, 1, 38016, 0x8a394066
+0, 11, 11, 1, 38016, 0xe9b766a6
+0, 12, 12, 1, 38016, 0x4e7f766d
+0, 13, 13, 1, 38016, 0x2c159585
+0, 14, 14, 1, 38016, 0x31b38c2b
+0, 15, 15, 1, 38016, 0xde58937f
+0, 16, 16, 1, 38016, 0xf69e94f9
+0, 17, 17, 1, 38016, 0x849e8a08
+0, 18, 18, 1, 38016, 0xe53f79e9
+0, 19, 19, 1, 38016, 0xf2ce6103
+0, 20, 20, 1, 38016, 0xe98d3c96
+0, 21, 21, 1, 38016, 0xea8c17c5
+0, 22, 22, 1, 38016, 0xea0a01d8
+0, 23, 23, 1, 38016, 0x6a45fd53
+0, 24, 24, 1, 38016, 0xaad9fd47
+0, 25, 25, 1, 38016, 0xabc603b7
+0, 26, 26, 1, 38016, 0x89410350
+0, 27, 27, 1, 38016, 0x1fac129b
+0, 28, 28, 1, 38016, 0x1af529ee
+0, 29, 29, 1, 38016, 0x384141b6
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-bamq2_jvc_c b/ffmpeg1/tests/ref/fate/h264-conformance-bamq2_jvc_c
new file mode 100644
index 0000000..3308f77
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-bamq2_jvc_c
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x6951213f
+0, 1, 1, 1, 38016, 0xd1bbf830
+0, 2, 2, 1, 38016, 0x79dcc8cb
+0, 3, 3, 1, 38016, 0xa426a50e
+0, 4, 4, 1, 38016, 0x002275d6
+0, 5, 5, 1, 38016, 0xab9a666e
+0, 6, 6, 1, 38016, 0x9bd54be9
+0, 7, 7, 1, 38016, 0x09003ed1
+0, 8, 8, 1, 38016, 0x75e0340a
+0, 9, 9, 1, 38016, 0x65ae3b23
+0, 10, 10, 1, 38016, 0x4c1049a8
+0, 11, 11, 1, 38016, 0x6e336a25
+0, 12, 12, 1, 38016, 0x4d3579ee
+0, 13, 13, 1, 38016, 0x81f89545
+0, 14, 14, 1, 38016, 0xc9358e56
+0, 15, 15, 1, 38016, 0x3fa69885
+0, 16, 16, 1, 38016, 0x1ea49bea
+0, 17, 17, 1, 38016, 0xce939241
+0, 18, 18, 1, 38016, 0xbc278236
+0, 19, 19, 1, 38016, 0xf11868d2
+0, 20, 20, 1, 38016, 0xe4124537
+0, 21, 21, 1, 38016, 0xd5831e16
+0, 22, 22, 1, 38016, 0x9f5608e8
+0, 23, 23, 1, 38016, 0x30ad0448
+0, 24, 24, 1, 38016, 0x06a00523
+0, 25, 25, 1, 38016, 0x25e50e24
+0, 26, 26, 1, 38016, 0x2c220a92
+0, 27, 27, 1, 38016, 0xd4b7185e
+0, 28, 28, 1, 38016, 0x80f92d07
+0, 29, 29, 1, 38016, 0x285a4586
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-banm_mw_d b/ffmpeg1/tests/ref/fate/h264-conformance-banm_mw_d
new file mode 100644
index 0000000..6108ca3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-banm_mw_d
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x3ae838ee
+0, 1, 1, 1, 38016, 0x9ed7e141
+0, 2, 2, 1, 38016, 0xaf9d9753
+0, 3, 3, 1, 38016, 0x8a6f6906
+0, 4, 4, 1, 38016, 0xcfe85810
+0, 5, 5, 1, 38016, 0x00ed737f
+0, 6, 6, 1, 38016, 0x93509e20
+0, 7, 7, 1, 38016, 0xa02ba402
+0, 8, 8, 1, 38016, 0xce09afd9
+0, 9, 9, 1, 38016, 0xc7a49dcf
+0, 10, 10, 1, 38016, 0x0da163c6
+0, 11, 11, 1, 38016, 0xb3be2fcf
+0, 12, 12, 1, 38016, 0x0d564479
+0, 13, 13, 1, 38016, 0x5c554f55
+0, 14, 14, 1, 38016, 0x05d06d25
+0, 15, 15, 1, 38016, 0x352687bc
+0, 16, 16, 1, 38016, 0x9e13b74d
+0, 17, 17, 1, 38016, 0x1c3dd2af
+0, 18, 18, 1, 38016, 0x3c1ad091
+0, 19, 19, 1, 38016, 0x0461cad8
+0, 20, 20, 1, 38016, 0xa002cc91
+0, 21, 21, 1, 38016, 0x9c06d06e
+0, 22, 22, 1, 38016, 0xfad0cee0
+0, 23, 23, 1, 38016, 0x5cbbd4a5
+0, 24, 24, 1, 38016, 0x9a99d463
+0, 25, 25, 1, 38016, 0xa115d051
+0, 26, 26, 1, 38016, 0x5b63cc22
+0, 27, 27, 1, 38016, 0x53b3cfd2
+0, 28, 28, 1, 38016, 0x7b22db61
+0, 29, 29, 1, 38016, 0x4f28e319
+0, 30, 30, 1, 38016, 0x4c6aa7c5
+0, 31, 31, 1, 38016, 0xe2eb6bde
+0, 32, 32, 1, 38016, 0xdfc84927
+0, 33, 33, 1, 38016, 0xa0098eab
+0, 34, 34, 1, 38016, 0x607a00e2
+0, 35, 35, 1, 38016, 0x58da68d0
+0, 36, 36, 1, 38016, 0x1290c8c6
+0, 37, 37, 1, 38016, 0x40615120
+0, 38, 38, 1, 38016, 0x070e9d9c
+0, 39, 39, 1, 38016, 0x5295d213
+0, 40, 40, 1, 38016, 0xaaa0f00a
+0, 41, 41, 1, 38016, 0x0ef7f99d
+0, 42, 42, 1, 38016, 0x018cf596
+0, 43, 43, 1, 38016, 0xb9010555
+0, 44, 44, 1, 38016, 0x54b10d05
+0, 45, 45, 1, 38016, 0xa06ff53b
+0, 46, 46, 1, 38016, 0x9a2ec1aa
+0, 47, 47, 1, 38016, 0x75999938
+0, 48, 48, 1, 38016, 0xda6ba315
+0, 49, 49, 1, 38016, 0xaa38cc4e
+0, 50, 50, 1, 38016, 0x87f6e751
+0, 51, 51, 1, 38016, 0x2318c2b9
+0, 52, 52, 1, 38016, 0xdebfd9c8
+0, 53, 53, 1, 38016, 0xdc9a115f
+0, 54, 54, 1, 38016, 0x6d1e495d
+0, 55, 55, 1, 38016, 0x53d46db4
+0, 56, 56, 1, 38016, 0x53287856
+0, 57, 57, 1, 38016, 0x0ce93af7
+0, 58, 58, 1, 38016, 0x44974b42
+0, 59, 59, 1, 38016, 0x65a16170
+0, 60, 60, 1, 38016, 0xeb8a3531
+0, 61, 61, 1, 38016, 0x65da180b
+0, 62, 62, 1, 38016, 0x6eb1cd77
+0, 63, 63, 1, 38016, 0xc890b0c1
+0, 64, 64, 1, 38016, 0x359ad301
+0, 65, 65, 1, 38016, 0x4be2e140
+0, 66, 66, 1, 38016, 0x5094da18
+0, 67, 67, 1, 38016, 0x9ef9d904
+0, 68, 68, 1, 38016, 0x0ad8cbb4
+0, 69, 69, 1, 38016, 0xd68cb3db
+0, 70, 70, 1, 38016, 0x7fcd9d3c
+0, 71, 71, 1, 38016, 0x017385aa
+0, 72, 72, 1, 38016, 0xa2328d96
+0, 73, 73, 1, 38016, 0x18858630
+0, 74, 74, 1, 38016, 0x795228e0
+0, 75, 75, 1, 38016, 0xb70ce750
+0, 76, 76, 1, 38016, 0x55d9da49
+0, 77, 77, 1, 38016, 0x7714cc94
+0, 78, 78, 1, 38016, 0xec39f711
+0, 79, 79, 1, 38016, 0x561e4366
+0, 80, 80, 1, 38016, 0xd91c83e0
+0, 81, 81, 1, 38016, 0x8b3379e2
+0, 82, 82, 1, 38016, 0xdee36b36
+0, 83, 83, 1, 38016, 0x1b4940fd
+0, 84, 84, 1, 38016, 0x9b13e7b2
+0, 85, 85, 1, 38016, 0xb0b2f2eb
+0, 86, 86, 1, 38016, 0x0e7c2373
+0, 87, 87, 1, 38016, 0x87401fb0
+0, 88, 88, 1, 38016, 0xc4bdb8be
+0, 89, 89, 1, 38016, 0xbbfc4f40
+0, 90, 90, 1, 38016, 0x1722db32
+0, 91, 91, 1, 38016, 0xf7e8a749
+0, 92, 92, 1, 38016, 0x8c66b366
+0, 93, 93, 1, 38016, 0x9823f33e
+0, 94, 94, 1, 38016, 0x5013240a
+0, 95, 95, 1, 38016, 0xf174d83a
+0, 96, 96, 1, 38016, 0xe49cae19
+0, 97, 97, 1, 38016, 0xadc2f8f7
+0, 98, 98, 1, 38016, 0x667961b0
+0, 99, 99, 1, 38016, 0xcb6d9bcd
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-basqp1_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-basqp1_sony_c
new file mode 100644
index 0000000..a5038e4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-basqp1_sony_c
@@ -0,0 +1,5 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xe2d73230
+0, 1, 1, 1, 38016, 0xda4dfc8e
+0, 2, 2, 1, 38016, 0x7334cb99
+0, 3, 3, 1, 38016, 0xd8feab7d
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-caba1_sony_d b/ffmpeg1/tests/ref/fate/h264-conformance-caba1_sony_d
new file mode 100644
index 0000000..3579820
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-caba1_sony_d
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb3883478
+0, 1, 1, 1, 38016, 0x99e1fe60
+0, 2, 2, 1, 38016, 0x65eace24
+0, 3, 3, 1, 38016, 0xb2b0a513
+0, 4, 4, 1, 38016, 0x8af47c64
+0, 5, 5, 1, 38016, 0xa56670c6
+0, 6, 6, 1, 38016, 0x11d45ac9
+0, 7, 7, 1, 38016, 0xcd4e4f18
+0, 8, 8, 1, 38016, 0x399934b2
+0, 9, 9, 1, 38016, 0xedd23f7b
+0, 10, 10, 1, 38016, 0x38c350b9
+0, 11, 11, 1, 38016, 0xdd937244
+0, 12, 12, 1, 38016, 0x39c67be6
+0, 13, 13, 1, 38016, 0xabb7a34d
+0, 14, 14, 1, 38016, 0x535d971f
+0, 15, 15, 1, 38016, 0xd41c9cf7
+0, 16, 16, 1, 38016, 0xfddda183
+0, 17, 17, 1, 38016, 0x7b659dc5
+0, 18, 18, 1, 38016, 0x06978b0c
+0, 19, 19, 1, 38016, 0x62596b00
+0, 20, 20, 1, 38016, 0x5e504719
+0, 21, 21, 1, 38016, 0x55252349
+0, 22, 22, 1, 38016, 0xdbdd0d9e
+0, 23, 23, 1, 38016, 0x550a0918
+0, 24, 24, 1, 38016, 0xb890feeb
+0, 25, 25, 1, 38016, 0x8aa01221
+0, 26, 26, 1, 38016, 0xfcc01085
+0, 27, 27, 1, 38016, 0x78f11d7d
+0, 28, 28, 1, 38016, 0xfcd33487
+0, 29, 29, 1, 38016, 0x9b444cfc
+0, 30, 30, 1, 38016, 0xed9563d3
+0, 31, 31, 1, 38016, 0x07e17628
+0, 32, 32, 1, 38016, 0x9bb792fd
+0, 33, 33, 1, 38016, 0xa6aea73d
+0, 34, 34, 1, 38016, 0x4b90b778
+0, 35, 35, 1, 38016, 0x6df2b998
+0, 36, 36, 1, 38016, 0x799eb2db
+0, 37, 37, 1, 38016, 0x48dab272
+0, 38, 38, 1, 38016, 0x9877b4eb
+0, 39, 39, 1, 38016, 0x901ab58e
+0, 40, 40, 1, 38016, 0x32c2beb1
+0, 41, 41, 1, 38016, 0xe542b56e
+0, 42, 42, 1, 38016, 0x1edf9ff4
+0, 43, 43, 1, 38016, 0xf103942c
+0, 44, 44, 1, 38016, 0x097a8dc7
+0, 45, 45, 1, 38016, 0xe3728780
+0, 46, 46, 1, 38016, 0xce9a9026
+0, 47, 47, 1, 38016, 0x78ba841b
+0, 48, 48, 1, 38016, 0x5fc687ab
+0, 49, 49, 1, 38016, 0x03a49472
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-caba1_sva_b b/ffmpeg1/tests/ref/fate/h264-conformance-caba1_sva_b
new file mode 100644
index 0000000..8b255bc
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-caba1_sva_b
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xee831fe4
+0, 1, 1, 1, 38016, 0x1098ff23
+0, 2, 2, 1, 38016, 0x8fc3e078
+0, 3, 3, 1, 38016, 0x86530991
+0, 4, 4, 1, 38016, 0xdc8e279e
+0, 5, 5, 1, 38016, 0x54ea3234
+0, 6, 6, 1, 38016, 0x79014662
+0, 7, 7, 1, 38016, 0x5d0a5a88
+0, 8, 8, 1, 38016, 0xf712805d
+0, 9, 9, 1, 38016, 0x0a09937e
+0, 10, 10, 1, 38016, 0xfa62a1d7
+0, 11, 11, 1, 38016, 0x67c6a41b
+0, 12, 12, 1, 38016, 0x6452ab94
+0, 13, 13, 1, 38016, 0xdb269049
+0, 14, 14, 1, 38016, 0xc7ab8864
+0, 15, 15, 1, 38016, 0xbb828f4a
+0, 16, 16, 1, 38016, 0x4fb3a61a
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-caba2_sony_e b/ffmpeg1/tests/ref/fate/h264-conformance-caba2_sony_e
new file mode 100644
index 0000000..c30083c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-caba2_sony_e
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb3883478
+0, 1, 1, 1, 38016, 0x23a30e47
+0, 2, 2, 1, 38016, 0xa0b7df0f
+0, 3, 3, 1, 38016, 0x5cd9beed
+0, 4, 4, 1, 38016, 0x13b09699
+0, 5, 5, 1, 38016, 0x66697d65
+0, 6, 6, 1, 38016, 0xf0486d0d
+0, 7, 7, 1, 38016, 0xaf94644e
+0, 8, 8, 1, 38016, 0x43c45981
+0, 9, 9, 1, 38016, 0x8f655e70
+0, 10, 10, 1, 38016, 0x3d747a52
+0, 11, 11, 1, 38016, 0x906e95f9
+0, 12, 12, 1, 38016, 0xdd3ea1a0
+0, 13, 13, 1, 38016, 0x216eb0ee
+0, 14, 14, 1, 38016, 0x06cbabfe
+0, 15, 15, 1, 38016, 0xd41c9cf7
+0, 16, 16, 1, 38016, 0x6d2fa58e
+0, 17, 17, 1, 38016, 0x0adca6fc
+0, 18, 18, 1, 38016, 0x51c49ad9
+0, 19, 19, 1, 38016, 0x83e57a42
+0, 20, 20, 1, 38016, 0xe47b5dad
+0, 21, 21, 1, 38016, 0x5e123c13
+0, 22, 22, 1, 38016, 0xad682f93
+0, 23, 23, 1, 38016, 0x77b02d2c
+0, 24, 24, 1, 38016, 0x976d316e
+0, 25, 25, 1, 38016, 0x3d923c72
+0, 26, 26, 1, 38016, 0xf073398d
+0, 27, 27, 1, 38016, 0x6dc547b4
+0, 28, 28, 1, 38016, 0xfa9859b3
+0, 29, 29, 1, 38016, 0xfc3f77b9
+0, 30, 30, 1, 38016, 0xed9563d3
+0, 31, 31, 1, 38016, 0xc040929e
+0, 32, 32, 1, 38016, 0x5562af3c
+0, 33, 33, 1, 38016, 0xa56abc78
+0, 34, 34, 1, 38016, 0x702ec702
+0, 35, 35, 1, 38016, 0x8ee7c909
+0, 36, 36, 1, 38016, 0x9065c44f
+0, 37, 37, 1, 38016, 0x11e3c40b
+0, 38, 38, 1, 38016, 0x20fbc27a
+0, 39, 39, 1, 38016, 0xaeecc582
+0, 40, 40, 1, 38016, 0x3b32ca4f
+0, 41, 41, 1, 38016, 0x5464ce6c
+0, 42, 42, 1, 38016, 0x41d4cd66
+0, 43, 43, 1, 38016, 0x8a69c6ef
+0, 44, 44, 1, 38016, 0x2c63c59e
+0, 45, 45, 1, 38016, 0xe3728780
+0, 46, 46, 1, 38016, 0xc60c9ca3
+0, 47, 47, 1, 38016, 0x8299a65a
+0, 48, 48, 1, 38016, 0x67d4b3d5
+0, 49, 49, 1, 38016, 0xd650bd19
+0, 50, 50, 1, 38016, 0xe8c9b285
+0, 51, 51, 1, 38016, 0x9a3dba0c
+0, 52, 52, 1, 38016, 0xb3f4bfc3
+0, 53, 53, 1, 38016, 0xe3edbe71
+0, 54, 54, 1, 38016, 0xea7fc14f
+0, 55, 55, 1, 38016, 0x4560cb94
+0, 56, 56, 1, 38016, 0x3b48ce1b
+0, 57, 57, 1, 38016, 0xc668d24c
+0, 58, 58, 1, 38016, 0x8bdcd514
+0, 59, 59, 1, 38016, 0xd0f8d380
+0, 60, 60, 1, 38016, 0x98a59a5a
+0, 61, 61, 1, 38016, 0x086d9c52
+0, 62, 62, 1, 38016, 0x50417af3
+0, 63, 63, 1, 38016, 0xe8ae428b
+0, 64, 64, 1, 38016, 0xb5663f68
+0, 65, 65, 1, 38016, 0x452e6045
+0, 66, 66, 1, 38016, 0x0412991e
+0, 67, 67, 1, 38016, 0xa791d0c8
+0, 68, 68, 1, 38016, 0x952c13e8
+0, 69, 69, 1, 38016, 0x9356462c
+0, 70, 70, 1, 38016, 0x34026bf3
+0, 71, 71, 1, 38016, 0x3a109e70
+0, 72, 72, 1, 38016, 0xc28dccb1
+0, 73, 73, 1, 38016, 0x445f08e7
+0, 74, 74, 1, 38016, 0x1e0c4781
+0, 75, 75, 1, 38016, 0x4c0b3afa
+0, 76, 76, 1, 38016, 0x90147b21
+0, 77, 77, 1, 38016, 0xe6fb9ee6
+0, 78, 78, 1, 38016, 0x3bbac15a
+0, 79, 79, 1, 38016, 0x113ecc97
+0, 80, 80, 1, 38016, 0xa271e248
+0, 81, 81, 1, 38016, 0xbc97f36a
+0, 82, 82, 1, 38016, 0x2a5af366
+0, 83, 83, 1, 38016, 0xc171ec49
+0, 84, 84, 1, 38016, 0x2393e85e
+0, 85, 85, 1, 38016, 0xbf59eeb0
+0, 86, 86, 1, 38016, 0xcec2f989
+0, 87, 87, 1, 38016, 0x3cb8fcb3
+0, 88, 88, 1, 38016, 0x28150278
+0, 89, 89, 1, 38016, 0x27f70026
+0, 90, 90, 1, 38016, 0x8fa69f07
+0, 91, 91, 1, 38016, 0x198b9a79
+0, 92, 92, 1, 38016, 0x40928d52
+0, 93, 93, 1, 38016, 0x1504834e
+0, 94, 94, 1, 38016, 0xb53677ab
+0, 95, 95, 1, 38016, 0x2e2c783d
+0, 96, 96, 1, 38016, 0x5fd38e3a
+0, 97, 97, 1, 38016, 0x697e9cd3
+0, 98, 98, 1, 38016, 0x0b18ad4b
+0, 99, 99, 1, 38016, 0x6ad7b78f
+0, 100, 100, 1, 38016, 0x6af3c654
+0, 101, 101, 1, 38016, 0x5aabb804
+0, 102, 102, 1, 38016, 0x9b5aa6e5
+0, 103, 103, 1, 38016, 0x2993a311
+0, 104, 104, 1, 38016, 0x1382b8e5
+0, 105, 105, 1, 38016, 0xf294a253
+0, 106, 106, 1, 38016, 0xafa5c2a5
+0, 107, 107, 1, 38016, 0x621ce2b5
+0, 108, 108, 1, 38016, 0x676c0440
+0, 109, 109, 1, 38016, 0xa7c31e07
+0, 110, 110, 1, 38016, 0x29612ba2
+0, 111, 111, 1, 38016, 0xb38c3920
+0, 112, 112, 1, 38016, 0xfcce3ee5
+0, 113, 113, 1, 38016, 0x3ee81fac
+0, 114, 114, 1, 38016, 0x635cfdb0
+0, 115, 115, 1, 38016, 0x222afa63
+0, 116, 116, 1, 38016, 0x230c09cb
+0, 117, 117, 1, 38016, 0x2b491802
+0, 118, 118, 1, 38016, 0x9cac2164
+0, 119, 119, 1, 38016, 0xa0532de8
+0, 120, 120, 1, 38016, 0x32e93592
+0, 121, 121, 1, 38016, 0x724033a9
+0, 122, 122, 1, 38016, 0x74411884
+0, 123, 123, 1, 38016, 0xae14efcf
+0, 124, 124, 1, 38016, 0x0188cdc7
+0, 125, 125, 1, 38016, 0x5708b5c1
+0, 126, 126, 1, 38016, 0x54aba6da
+0, 127, 127, 1, 38016, 0x7364b397
+0, 128, 128, 1, 38016, 0xf676c547
+0, 129, 129, 1, 38016, 0x6926db3a
+0, 130, 130, 1, 38016, 0xccdbe5be
+0, 131, 131, 1, 38016, 0x8fc8e490
+0, 132, 132, 1, 38016, 0x5d7fdd35
+0, 133, 133, 1, 38016, 0x0e27e010
+0, 134, 134, 1, 38016, 0x8120dd43
+0, 135, 135, 1, 38016, 0x1612a173
+0, 136, 136, 1, 38016, 0x3f1cb4b7
+0, 137, 137, 1, 38016, 0xd1c7b0a6
+0, 138, 138, 1, 38016, 0x472baad5
+0, 139, 139, 1, 38016, 0xfe37a1f3
+0, 140, 140, 1, 38016, 0x42a391ba
+0, 141, 141, 1, 38016, 0xdb618cac
+0, 142, 142, 1, 38016, 0x7af879bf
+0, 143, 143, 1, 38016, 0xe6f27644
+0, 144, 144, 1, 38016, 0x550a7f0c
+0, 145, 145, 1, 38016, 0x7d297eaa
+0, 146, 146, 1, 38016, 0xaeb57623
+0, 147, 147, 1, 38016, 0x6d5e4995
+0, 148, 148, 1, 38016, 0x57df1be0
+0, 149, 149, 1, 38016, 0x7617f825
+0, 150, 150, 1, 38016, 0xf731aef2
+0, 151, 151, 1, 38016, 0x489aae6c
+0, 152, 152, 1, 38016, 0x2d80b7a4
+0, 153, 153, 1, 38016, 0xe4b6ac4e
+0, 154, 154, 1, 38016, 0xd243a374
+0, 155, 155, 1, 38016, 0x5cf9b85b
+0, 156, 156, 1, 38016, 0xe824d798
+0, 157, 157, 1, 38016, 0x8a46f630
+0, 158, 158, 1, 38016, 0x4a03337f
+0, 159, 159, 1, 38016, 0xefe25cf7
+0, 160, 160, 1, 38016, 0xed876efa
+0, 161, 161, 1, 38016, 0xdf1b6b65
+0, 162, 162, 1, 38016, 0xd3225d8c
+0, 163, 163, 1, 38016, 0x0cf04d8d
+0, 164, 164, 1, 38016, 0x0fdc3bb3
+0, 165, 165, 1, 38016, 0xc31bf5da
+0, 166, 166, 1, 38016, 0x09e0ec79
+0, 167, 167, 1, 38016, 0x6521c8fb
+0, 168, 168, 1, 38016, 0x6f67a94c
+0, 169, 169, 1, 38016, 0xa0a49f38
+0, 170, 170, 1, 38016, 0x759fb6f2
+0, 171, 171, 1, 38016, 0xea41ddf8
+0, 172, 172, 1, 38016, 0xe559f0a6
+0, 173, 173, 1, 38016, 0x1dcbec38
+0, 174, 174, 1, 38016, 0xfb62dc6a
+0, 175, 175, 1, 38016, 0x3d0fac24
+0, 176, 176, 1, 38016, 0x87c373a1
+0, 177, 177, 1, 38016, 0x97a84562
+0, 178, 178, 1, 38016, 0xe4361c2e
+0, 179, 179, 1, 38016, 0x21170c47
+0, 180, 180, 1, 38016, 0x0769ec52
+0, 181, 181, 1, 38016, 0xac1ad44d
+0, 182, 182, 1, 38016, 0xdf87cb3e
+0, 183, 183, 1, 38016, 0x95c0d66f
+0, 184, 184, 1, 38016, 0xba33da6f
+0, 185, 185, 1, 38016, 0x71b2e866
+0, 186, 186, 1, 38016, 0x64540dd1
+0, 187, 187, 1, 38016, 0x79cb2d92
+0, 188, 188, 1, 38016, 0xfe8e394b
+0, 189, 189, 1, 38016, 0x648f443f
+0, 190, 190, 1, 38016, 0x491eee56
+0, 191, 191, 1, 38016, 0x6195b91b
+0, 192, 192, 1, 38016, 0x3935c2b0
+0, 193, 193, 1, 38016, 0x2408e296
+0, 194, 194, 1, 38016, 0xe17106b5
+0, 195, 195, 1, 38016, 0xd8d01ad1
+0, 196, 196, 1, 38016, 0x85d15104
+0, 197, 197, 1, 38016, 0xacc16731
+0, 198, 198, 1, 38016, 0xb6a990b7
+0, 199, 199, 1, 38016, 0x8153a9cd
+0, 200, 200, 1, 38016, 0xef5ab92a
+0, 201, 201, 1, 38016, 0x392acfab
+0, 202, 202, 1, 38016, 0x7031d48e
+0, 203, 203, 1, 38016, 0x5d3ed39f
+0, 204, 204, 1, 38016, 0x004fd516
+0, 205, 205, 1, 38016, 0x8de7dc94
+0, 206, 206, 1, 38016, 0x7e21db4a
+0, 207, 207, 1, 38016, 0x518dd829
+0, 208, 208, 1, 38016, 0xf780cf45
+0, 209, 209, 1, 38016, 0x0a49bd6f
+0, 210, 210, 1, 38016, 0xadb65d17
+0, 211, 211, 1, 38016, 0xbe79629d
+0, 212, 212, 1, 38016, 0x2daa65c8
+0, 213, 213, 1, 38016, 0x0b4a6737
+0, 214, 214, 1, 38016, 0x8e705885
+0, 215, 215, 1, 38016, 0x6d2a4af2
+0, 216, 216, 1, 38016, 0x89fe4b54
+0, 217, 217, 1, 38016, 0x90cb4dde
+0, 218, 218, 1, 38016, 0x2d9e4f4e
+0, 219, 219, 1, 38016, 0x5fcd4a7b
+0, 220, 220, 1, 38016, 0xdb4143e7
+0, 221, 221, 1, 38016, 0xd9343662
+0, 222, 222, 1, 38016, 0xdf4a2af2
+0, 223, 223, 1, 38016, 0xbe8f1fd2
+0, 224, 224, 1, 38016, 0x4658200f
+0, 225, 225, 1, 38016, 0x92b51315
+0, 226, 226, 1, 38016, 0x441f1576
+0, 227, 227, 1, 38016, 0x970b29b4
+0, 228, 228, 1, 38016, 0x93ac40f2
+0, 229, 229, 1, 38016, 0xa0ac6b06
+0, 230, 230, 1, 38016, 0xdd5b8f01
+0, 231, 231, 1, 38016, 0xa921b3d5
+0, 232, 232, 1, 38016, 0xdd6fdf01
+0, 233, 233, 1, 38016, 0x1c6c0306
+0, 234, 234, 1, 38016, 0xcea2235d
+0, 235, 235, 1, 38016, 0x43853758
+0, 236, 236, 1, 38016, 0xa0234e29
+0, 237, 237, 1, 38016, 0x94c85022
+0, 238, 238, 1, 38016, 0xaf4e33ab
+0, 239, 239, 1, 38016, 0x07f90e0c
+0, 240, 240, 1, 38016, 0x99cee4bd
+0, 241, 241, 1, 38016, 0xb7cdcf79
+0, 242, 242, 1, 38016, 0x5923c14c
+0, 243, 243, 1, 38016, 0x771f15d4
+0, 244, 244, 1, 38016, 0x20f08043
+0, 245, 245, 1, 38016, 0xb7bfeab2
+0, 246, 246, 1, 38016, 0x53440996
+0, 247, 247, 1, 38016, 0x6452d384
+0, 248, 248, 1, 38016, 0xabcb975e
+0, 249, 249, 1, 38016, 0x146123b9
+0, 250, 250, 1, 38016, 0xbeddbfff
+0, 251, 251, 1, 38016, 0xa0c97c47
+0, 252, 252, 1, 38016, 0x1dca7308
+0, 253, 253, 1, 38016, 0x16c5c832
+0, 254, 254, 1, 38016, 0xcab326b9
+0, 255, 255, 1, 38016, 0xe952c9bd
+0, 256, 256, 1, 38016, 0x216ec182
+0, 257, 257, 1, 38016, 0xb21a5074
+0, 258, 258, 1, 38016, 0xcbe73c15
+0, 259, 259, 1, 38016, 0xb5e532de
+0, 260, 260, 1, 38016, 0x3a693aa5
+0, 261, 261, 1, 38016, 0x157f4a20
+0, 262, 262, 1, 38016, 0x9f9a5868
+0, 263, 263, 1, 38016, 0x50f65ea1
+0, 264, 264, 1, 38016, 0xe1735d4f
+0, 265, 265, 1, 38016, 0x15284ec7
+0, 266, 266, 1, 38016, 0x32433d94
+0, 267, 267, 1, 38016, 0x768f2092
+0, 268, 268, 1, 38016, 0x6b01f5ad
+0, 269, 269, 1, 38016, 0xadcbce27
+0, 270, 270, 1, 38016, 0x6faca613
+0, 271, 271, 1, 38016, 0xd9327d40
+0, 272, 272, 1, 38016, 0xbc1060ef
+0, 273, 273, 1, 38016, 0xbe071251
+0, 274, 274, 1, 38016, 0x47abbfaa
+0, 275, 275, 1, 38016, 0x4851af88
+0, 276, 276, 1, 38016, 0xff53c772
+0, 277, 277, 1, 38016, 0xa1dcbef5
+0, 278, 278, 1, 38016, 0x106df309
+0, 279, 279, 1, 38016, 0x92e65f13
+0, 280, 280, 1, 38016, 0x7e8ffdb9
+0, 281, 281, 1, 38016, 0x0ba4d317
+0, 282, 282, 1, 38016, 0xe038a2a2
+0, 283, 283, 1, 38016, 0xc479675b
+0, 284, 284, 1, 38016, 0xadbc4d18
+0, 285, 285, 1, 38016, 0x2d41a44b
+0, 286, 286, 1, 38016, 0x3240617d
+0, 287, 287, 1, 38016, 0xa60f9b98
+0, 288, 288, 1, 38016, 0x3aeea379
+0, 289, 289, 1, 38016, 0x45a0936c
+0, 290, 290, 1, 38016, 0xf0c42d2f
+0, 291, 291, 1, 38016, 0x930343ee
+0, 292, 292, 1, 38016, 0xe074d631
+0, 293, 293, 1, 38016, 0xc6f20ab5
+0, 294, 294, 1, 38016, 0x3f5a4ef7
+0, 295, 295, 1, 38016, 0x94d44b16
+0, 296, 296, 1, 38016, 0xa52427da
+0, 297, 297, 1, 38016, 0x2f2116a1
+0, 298, 298, 1, 38016, 0x566c2541
+0, 299, 299, 1, 38016, 0x0b894c8b
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-caba2_sva_b b/ffmpeg1/tests/ref/fate/h264-conformance-caba2_sva_b
new file mode 100644
index 0000000..ca89226
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-caba2_sva_b
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xee831fe4
+0, 1, 1, 1, 38016, 0xd9130e19
+0, 2, 2, 1, 38016, 0x8ad70cae
+0, 3, 3, 1, 38016, 0x98f11d0e
+0, 4, 4, 1, 38016, 0x311d46ea
+0, 5, 5, 1, 38016, 0xe2f15cc5
+0, 6, 6, 1, 38016, 0xb4c174c6
+0, 7, 7, 1, 38016, 0x22708406
+0, 8, 8, 1, 38016, 0x7116a2d2
+0, 9, 9, 1, 38016, 0x7937b29b
+0, 10, 10, 1, 38016, 0xfa62a1d7
+0, 11, 11, 1, 38016, 0x2066b1c6
+0, 12, 12, 1, 38016, 0x18ecaa40
+0, 13, 13, 1, 38016, 0xe5dc8d99
+0, 14, 14, 1, 38016, 0x77046f4a
+0, 15, 15, 1, 38016, 0x1c50704f
+0, 16, 16, 1, 38016, 0x87f1879d
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-caba3_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-caba3_sony_c
new file mode 100644
index 0000000..c7aee37
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-caba3_sony_c
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb3883478
+0, 1, 1, 1, 38016, 0xb6261cdd
+0, 2, 2, 1, 38016, 0x42ecede9
+0, 3, 3, 1, 38016, 0xfcd6aec1
+0, 4, 4, 1, 38016, 0xb3ffa014
+0, 5, 5, 1, 38016, 0xc65383e3
+0, 6, 6, 1, 38016, 0xa8494fb1
+0, 7, 7, 1, 38016, 0x7fb14e0f
+0, 8, 8, 1, 38016, 0x7dd3462a
+0, 9, 9, 1, 38016, 0x4bd43dda
+0, 10, 10, 1, 38016, 0x717e736f
+0, 11, 11, 1, 38016, 0x2a9b8e47
+0, 12, 12, 1, 38016, 0x1bc272be
+0, 13, 13, 1, 38016, 0x0127afb5
+0, 14, 14, 1, 38016, 0xfd7aacda
+0, 15, 15, 1, 38016, 0xd41c9cf7
+0, 16, 16, 1, 38016, 0xd205b1ee
+0, 17, 17, 1, 38016, 0x967ca895
+0, 18, 18, 1, 38016, 0x25978063
+0, 19, 19, 1, 38016, 0x632081b3
+0, 20, 20, 1, 38016, 0x8ccf5f0b
+0, 21, 21, 1, 38016, 0x21cc2141
+0, 22, 22, 1, 38016, 0x477d2543
+0, 23, 23, 1, 38016, 0xff971bb8
+0, 24, 24, 1, 38016, 0x0dc21005
+0, 25, 25, 1, 38016, 0xc69c2d90
+0, 26, 26, 1, 38016, 0xd7922b5d
+0, 27, 27, 1, 38016, 0x59a3278f
+0, 28, 28, 1, 38016, 0x83c55d4d
+0, 29, 29, 1, 38016, 0xaac96f23
+0, 30, 30, 1, 38016, 0xed9563d3
+0, 31, 31, 1, 38016, 0xf86b9ef4
+0, 32, 32, 1, 38016, 0xe616b81c
+0, 33, 33, 1, 38016, 0xde60a57b
+0, 34, 34, 1, 38016, 0x5fe8d130
+0, 35, 35, 1, 38016, 0x11decaca
+0, 36, 36, 1, 38016, 0x526fa8e2
+0, 37, 37, 1, 38016, 0xc5e7ccfb
+0, 38, 38, 1, 38016, 0x10e1c588
+0, 39, 39, 1, 38016, 0x78aeb05b
+0, 40, 40, 1, 38016, 0xff85c717
+0, 41, 41, 1, 38016, 0x3f02c1b2
+0, 42, 42, 1, 38016, 0xf45eb015
+0, 43, 43, 1, 38016, 0x0211b84d
+0, 44, 44, 1, 38016, 0x3864ba1f
+0, 45, 45, 1, 38016, 0xe3728780
+0, 46, 46, 1, 38016, 0x575da8b5
+0, 47, 47, 1, 38016, 0xc841ad98
+0, 48, 48, 1, 38016, 0xe69ea78f
+0, 49, 49, 1, 38016, 0x45cabf16
+0, 50, 50, 1, 38016, 0x0e00b8eb
+0, 51, 51, 1, 38016, 0xa774a808
+0, 52, 52, 1, 38016, 0xfb1bbc2b
+0, 53, 53, 1, 38016, 0xcfb4b41d
+0, 54, 54, 1, 38016, 0x66abaff8
+0, 55, 55, 1, 38016, 0xc39ac9a9
+0, 56, 56, 1, 38016, 0xbec0cc9a
+0, 57, 57, 1, 38016, 0xf393c7fc
+0, 58, 58, 1, 38016, 0xedb5d4ef
+0, 59, 59, 1, 38016, 0x4b0fd4fe
+0, 60, 60, 1, 38016, 0x98a59a5a
+0, 61, 61, 1, 38016, 0x0a69a4f3
+0, 62, 62, 1, 38016, 0x72bc89ce
+0, 63, 63, 1, 38016, 0xfe8538b6
+0, 64, 64, 1, 38016, 0xc8a158a3
+0, 65, 65, 1, 38016, 0x1cb57fcd
+0, 66, 66, 1, 38016, 0x76c29215
+0, 67, 67, 1, 38016, 0xdb36ec21
+0, 68, 68, 1, 38016, 0xc2e22427
+0, 69, 69, 1, 38016, 0xafb433cd
+0, 70, 70, 1, 38016, 0x4d736e28
+0, 71, 71, 1, 38016, 0xc6ab9949
+0, 72, 72, 1, 38016, 0xaa9bb9e6
+0, 73, 73, 1, 38016, 0x0d41f894
+0, 74, 74, 1, 38016, 0x603332b0
+0, 75, 75, 1, 38016, 0x4c0b3afa
+0, 76, 76, 1, 38016, 0x8fd3845e
+0, 77, 77, 1, 38016, 0x8cf09ae3
+0, 78, 78, 1, 38016, 0x1e02adfb
+0, 79, 79, 1, 38016, 0x3c9ac38e
+0, 80, 80, 1, 38016, 0xb5fdd2d9
+0, 81, 81, 1, 38016, 0x82c5dd7f
+0, 82, 82, 1, 38016, 0x4b6ee80a
+0, 83, 83, 1, 38016, 0xaeaee46f
+0, 84, 84, 1, 38016, 0x390ed382
+0, 85, 85, 1, 38016, 0xedbfde44
+0, 86, 86, 1, 38016, 0xabf6eba0
+0, 87, 87, 1, 38016, 0x5bf5efd0
+0, 88, 88, 1, 38016, 0x9a88ebe3
+0, 89, 89, 1, 38016, 0x2af7ec3b
+0, 90, 90, 1, 38016, 0x8fa69f07
+0, 91, 91, 1, 38016, 0xff8fb3b5
+0, 92, 92, 1, 38016, 0xd06fa3c1
+0, 93, 93, 1, 38016, 0xe5a97d39
+0, 94, 94, 1, 38016, 0x961e7c6f
+0, 95, 95, 1, 38016, 0x18b278af
+0, 96, 96, 1, 38016, 0x9a0d73d2
+0, 97, 97, 1, 38016, 0x378f9d74
+0, 98, 98, 1, 38016, 0x42e5a7a3
+0, 99, 99, 1, 38016, 0x4595a78e
+0, 100, 100, 1, 38016, 0x6c09c035
+0, 101, 101, 1, 38016, 0xec58ab98
+0, 102, 102, 1, 38016, 0x1b4b8d2b
+0, 103, 103, 1, 38016, 0xf5199117
+0, 104, 104, 1, 38016, 0xcd31af4d
+0, 105, 105, 1, 38016, 0xf294a253
+0, 106, 106, 1, 38016, 0x360dde6b
+0, 107, 107, 1, 38016, 0x101cf70c
+0, 108, 108, 1, 38016, 0x4b34ff17
+0, 109, 109, 1, 38016, 0x520639c0
+0, 110, 110, 1, 38016, 0x901840a9
+0, 111, 111, 1, 38016, 0x4cb03284
+0, 112, 112, 1, 38016, 0x6929470c
+0, 113, 113, 1, 38016, 0x21282bdf
+0, 114, 114, 1, 38016, 0xee8df0ec
+0, 115, 115, 1, 38016, 0x24970e16
+0, 116, 116, 1, 38016, 0x280118e3
+0, 117, 117, 1, 38016, 0x00a10b64
+0, 118, 118, 1, 38016, 0xb0673f83
+0, 119, 119, 1, 38016, 0x838644de
+0, 120, 120, 1, 38016, 0x32e93592
+0, 121, 121, 1, 38016, 0xedfc477a
+0, 122, 122, 1, 38016, 0x41062501
+0, 123, 123, 1, 38016, 0xf218ebf2
+0, 124, 124, 1, 38016, 0x3430dc73
+0, 125, 125, 1, 38016, 0xb2fab8f0
+0, 126, 126, 1, 38016, 0x11b19bab
+0, 127, 127, 1, 38016, 0x8e30b8e7
+0, 128, 128, 1, 38016, 0xc8b9c646
+0, 129, 129, 1, 38016, 0xc902d559
+0, 130, 130, 1, 38016, 0x3a24ec30
+0, 131, 131, 1, 38016, 0x744de424
+0, 132, 132, 1, 38016, 0xc40cd059
+0, 133, 133, 1, 38016, 0xd98dd9ec
+0, 134, 134, 1, 38016, 0x9719d698
+0, 135, 135, 1, 38016, 0x1612a173
+0, 136, 136, 1, 38016, 0xc044b9f1
+0, 137, 137, 1, 38016, 0xc433af2f
+0, 138, 138, 1, 38016, 0x559891e3
+0, 139, 139, 1, 38016, 0x969e9a33
+0, 140, 140, 1, 38016, 0x8a6a8e77
+0, 141, 141, 1, 38016, 0x9d7b76bf
+0, 142, 142, 1, 38016, 0x3725711a
+0, 143, 143, 1, 38016, 0x5b316bd0
+0, 144, 144, 1, 38016, 0x4c616abd
+0, 145, 145, 1, 38016, 0x43637e2b
+0, 146, 146, 1, 38016, 0xd9e36c4c
+0, 147, 147, 1, 38016, 0x823d3596
+0, 148, 148, 1, 38016, 0x57361a59
+0, 149, 149, 1, 38016, 0x4a91f007
+0, 150, 150, 1, 38016, 0xf731aef2
+0, 151, 151, 1, 38016, 0x8ed2c618
+0, 152, 152, 1, 38016, 0x6f1cc918
+0, 153, 153, 1, 38016, 0x2a8ba336
+0, 154, 154, 1, 38016, 0x8159b595
+0, 155, 155, 1, 38016, 0x07cfced9
+0, 156, 156, 1, 38016, 0x8804c878
+0, 157, 157, 1, 38016, 0x624e0656
+0, 158, 158, 1, 38016, 0x8628302b
+0, 159, 159, 1, 38016, 0xd155461e
+0, 160, 160, 1, 38016, 0x3c1c647c
+0, 161, 161, 1, 38016, 0x8a485727
+0, 162, 162, 1, 38016, 0x144934f7
+0, 163, 163, 1, 38016, 0x43183494
+0, 164, 164, 1, 38016, 0x20fd2ef2
+0, 165, 165, 1, 38016, 0xc31bf5da
+0, 166, 166, 1, 38016, 0x4c70f0f2
+0, 167, 167, 1, 38016, 0xba1bcbcc
+0, 168, 168, 1, 38016, 0x11039c6c
+0, 169, 169, 1, 38016, 0x67c59b61
+0, 170, 170, 1, 38016, 0xdc0aa2ba
+0, 171, 171, 1, 38016, 0x1e2dbec9
+0, 172, 172, 1, 38016, 0xacacdc6c
+0, 173, 173, 1, 38016, 0x2049defe
+0, 174, 174, 1, 38016, 0x7488cc3e
+0, 175, 175, 1, 38016, 0x14bca829
+0, 176, 176, 1, 38016, 0xc19c76ee
+0, 177, 177, 1, 38016, 0xeca33612
+0, 178, 178, 1, 38016, 0x93b027a5
+0, 179, 179, 1, 38016, 0x82ae1e62
+0, 180, 180, 1, 38016, 0x0769ec52
+0, 181, 181, 1, 38016, 0x7cdee8dd
+0, 182, 182, 1, 38016, 0x7d22d43d
+0, 183, 183, 1, 38016, 0x65d8cd49
+0, 184, 184, 1, 38016, 0xa7d2ede4
+0, 185, 185, 1, 38016, 0x6bd2ffa1
+0, 186, 186, 1, 38016, 0xb4db0734
+0, 187, 187, 1, 38016, 0x69cb35ac
+0, 188, 188, 1, 38016, 0x05e52e88
+0, 189, 189, 1, 38016, 0x4dc92a43
+0, 190, 190, 1, 38016, 0x8ca0e858
+0, 191, 191, 1, 38016, 0x74fbae53
+0, 192, 192, 1, 38016, 0x19f0aa17
+0, 193, 193, 1, 38016, 0x04c9dc83
+0, 194, 194, 1, 38016, 0x0a8ff4b9
+0, 195, 195, 1, 38016, 0xd8d01ad1
+0, 196, 196, 1, 38016, 0xa41b5100
+0, 197, 197, 1, 38016, 0xfaf96547
+0, 198, 198, 1, 38016, 0xadab8265
+0, 199, 199, 1, 38016, 0x6e12a9c3
+0, 200, 200, 1, 38016, 0x1de7b7d1
+0, 201, 201, 1, 38016, 0x2279bc4a
+0, 202, 202, 1, 38016, 0x4f62ca0f
+0, 203, 203, 1, 38016, 0xfaf2cc43
+0, 204, 204, 1, 38016, 0xbf68c7df
+0, 205, 205, 1, 38016, 0xb927d1ea
+0, 206, 206, 1, 38016, 0x8b93d7c6
+0, 207, 207, 1, 38016, 0x13f3d7d6
+0, 208, 208, 1, 38016, 0x9ee4cc7b
+0, 209, 209, 1, 38016, 0x16deb1a0
+0, 210, 210, 1, 38016, 0xadb65d17
+0, 211, 211, 1, 38016, 0x0b9e7542
+0, 212, 212, 1, 38016, 0x05777490
+0, 213, 213, 1, 38016, 0x6805549f
+0, 214, 214, 1, 38016, 0xe3246225
+0, 215, 215, 1, 38016, 0x4003551b
+0, 216, 216, 1, 38016, 0x1e083a01
+0, 217, 217, 1, 38016, 0x756e4f22
+0, 218, 218, 1, 38016, 0xf2f24967
+0, 219, 219, 1, 38016, 0x680d37f2
+0, 220, 220, 1, 38016, 0x85b34185
+0, 221, 221, 1, 38016, 0xefa32eeb
+0, 222, 222, 1, 38016, 0xca791448
+0, 223, 223, 1, 38016, 0x7c6b2b13
+0, 224, 224, 1, 38016, 0x0d8232a6
+0, 225, 225, 1, 38016, 0x92b51315
+0, 226, 226, 1, 38016, 0xcfde349c
+0, 227, 227, 1, 38016, 0xdc1a488b
+0, 228, 228, 1, 38016, 0xdcf94106
+0, 229, 229, 1, 38016, 0xc205829b
+0, 230, 230, 1, 38016, 0x0aff9da3
+0, 231, 231, 1, 38016, 0x3295b04e
+0, 232, 232, 1, 38016, 0xc42dfaab
+0, 233, 233, 1, 38016, 0x799e14a2
+0, 234, 234, 1, 38016, 0xf658150c
+0, 235, 235, 1, 38016, 0x4c8751fe
+0, 236, 236, 1, 38016, 0xe57d58ed
+0, 237, 237, 1, 38016, 0x28f83c49
+0, 238, 238, 1, 38016, 0x9760453c
+0, 239, 239, 1, 38016, 0x1d550fcf
+0, 240, 240, 1, 38016, 0x99cee4bd
+0, 241, 241, 1, 38016, 0x743ad122
+0, 242, 242, 1, 38016, 0xb533ab7c
+0, 243, 243, 1, 38016, 0x5ca5fc65
+0, 244, 244, 1, 38016, 0x491c7076
+0, 245, 245, 1, 38016, 0x8a96d9e5
+0, 246, 246, 1, 38016, 0x23c3f207
+0, 247, 247, 1, 38016, 0x3181d62d
+0, 248, 248, 1, 38016, 0xc72e9636
+0, 249, 249, 1, 38016, 0xe0c31ae9
+0, 250, 250, 1, 38016, 0x2f91c0ce
+0, 251, 251, 1, 38016, 0x17937763
+0, 252, 252, 1, 38016, 0x61986c20
+0, 253, 253, 1, 38016, 0x6adeca83
+0, 254, 254, 1, 38016, 0x894a376b
+0, 255, 255, 1, 38016, 0xe952c9bd
+0, 256, 256, 1, 38016, 0x0418d8e9
+0, 257, 257, 1, 38016, 0x30de606e
+0, 258, 258, 1, 38016, 0xd15e3116
+0, 259, 259, 1, 38016, 0xee0446ac
+0, 260, 260, 1, 38016, 0x34ee44f7
+0, 261, 261, 1, 38016, 0x825745d4
+0, 262, 262, 1, 38016, 0xb8046176
+0, 263, 263, 1, 38016, 0xa812588a
+0, 264, 264, 1, 38016, 0xed754b26
+0, 265, 265, 1, 38016, 0xa39c51cd
+0, 266, 266, 1, 38016, 0x315b38d5
+0, 267, 267, 1, 38016, 0x12550e05
+0, 268, 268, 1, 38016, 0xbda6fd9a
+0, 269, 269, 1, 38016, 0xd10bd86c
+0, 270, 270, 1, 38016, 0x6faca613
+0, 271, 271, 1, 38016, 0x6268848a
+0, 272, 272, 1, 38016, 0x2b8367e6
+0, 273, 273, 1, 38016, 0xdb6806fd
+0, 274, 274, 1, 38016, 0x4f58d418
+0, 275, 275, 1, 38016, 0x59beb628
+0, 276, 276, 1, 38016, 0x8017aae2
+0, 277, 277, 1, 38016, 0xb26ad1b3
+0, 278, 278, 1, 38016, 0xa058f3a3
+0, 279, 279, 1, 38016, 0x4fee4ac2
+0, 280, 280, 1, 38016, 0x5dd20ae9
+0, 281, 281, 1, 38016, 0x6365dbda
+0, 282, 282, 1, 38016, 0x25b47f80
+0, 283, 283, 1, 38016, 0x468b8ecb
+0, 284, 284, 1, 38016, 0x0b0760f9
+0, 285, 285, 1, 38016, 0x2d41a44b
+0, 286, 286, 1, 38016, 0x4bb47357
+0, 287, 287, 1, 38016, 0x2c0ca74c
+0, 288, 288, 1, 38016, 0x6484a271
+0, 289, 289, 1, 38016, 0xa55871df
+0, 290, 290, 1, 38016, 0xa617ecd8
+0, 291, 291, 1, 38016, 0xf7231cc5
+0, 292, 292, 1, 38016, 0x15dba20b
+0, 293, 293, 1, 38016, 0x56a7d8c7
+0, 294, 294, 1, 38016, 0x5e78382b
+0, 295, 295, 1, 38016, 0x8edf243b
+0, 296, 296, 1, 38016, 0x571effaf
+0, 297, 297, 1, 38016, 0x274302d2
+0, 298, 298, 1, 38016, 0xc950203d
+0, 299, 299, 1, 38016, 0x4a744324
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-caba3_sva_b b/ffmpeg1/tests/ref/fate/h264-conformance-caba3_sva_b
new file mode 100644
index 0000000..7bdb3f8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-caba3_sva_b
@@ -0,0 +1,34 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x0e091175
+0, 1, 1, 1, 38016, 0xe8f81506
+0, 2, 2, 1, 38016, 0xf706f5cd
+0, 3, 3, 1, 38016, 0x9aeb21b1
+0, 4, 4, 1, 38016, 0xdc533379
+0, 5, 5, 1, 38016, 0xd26d534b
+0, 6, 6, 1, 38016, 0xdcb25dc5
+0, 7, 7, 1, 38016, 0x1b258cc2
+0, 8, 8, 1, 38016, 0xdfb58ff8
+0, 9, 9, 1, 38016, 0x143abf85
+0, 10, 10, 1, 38016, 0xace399ea
+0, 11, 11, 1, 38016, 0x1ad6bb8e
+0, 12, 12, 1, 38016, 0xf01d9b78
+0, 13, 13, 1, 38016, 0x5a0c99ed
+0, 14, 14, 1, 38016, 0x9d4e684c
+0, 15, 15, 1, 38016, 0xca3d811f
+0, 16, 16, 1, 38016, 0x388c7bc4
+0, 17, 17, 1, 38016, 0x36329ae0
+0, 18, 18, 1, 38016, 0x7ca686ac
+0, 19, 19, 1, 38016, 0x9d7ababf
+0, 20, 20, 1, 38016, 0x563eaf2a
+0, 21, 21, 1, 38016, 0xce22a4be
+0, 22, 22, 1, 38016, 0xb7cb719a
+0, 23, 23, 1, 38016, 0x7b706edf
+0, 24, 24, 1, 38016, 0x009a30b5
+0, 25, 25, 1, 38016, 0xf1fe3fbc
+0, 26, 26, 1, 38016, 0x7f732436
+0, 27, 27, 1, 38016, 0x055147ec
+0, 28, 28, 1, 38016, 0x1670494c
+0, 29, 29, 1, 38016, 0xfede7bab
+0, 30, 30, 1, 38016, 0xa3b660d8
+0, 31, 31, 1, 38016, 0x33db7209
+0, 32, 32, 1, 38016, 0xb7b25559
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-caba3_toshiba_e b/ffmpeg1/tests/ref/fate/h264-conformance-caba3_toshiba_e
new file mode 100644
index 0000000..b31efe1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-caba3_toshiba_e
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x72723ce4
+0, 1, 1, 1, 38016, 0x347219d7
+0, 2, 2, 1, 38016, 0x813ff182
+0, 3, 3, 1, 38016, 0x4e69d41a
+0, 4, 4, 1, 38016, 0x5e56acb6
+0, 5, 5, 1, 38016, 0xe72197e5
+0, 6, 6, 1, 38016, 0xd035807a
+0, 7, 7, 1, 38016, 0x9ee57559
+0, 8, 8, 1, 38016, 0xd0f56f28
+0, 9, 9, 1, 38016, 0xa5097788
+0, 10, 10, 1, 38016, 0xf108978d
+0, 11, 11, 1, 38016, 0xf76cb475
+0, 12, 12, 1, 38016, 0x0184cc3a
+0, 13, 13, 1, 38016, 0xa4b5dc15
+0, 14, 14, 1, 38016, 0x209cdc42
+0, 15, 15, 1, 38016, 0xd9e69a8c
+0, 16, 16, 1, 38016, 0xa2c3a9ba
+0, 17, 17, 1, 38016, 0xdf84a52e
+0, 18, 18, 1, 38016, 0xfe48a7f0
+0, 19, 19, 1, 38016, 0xb0279a19
+0, 20, 20, 1, 38016, 0xf3b48652
+0, 21, 21, 1, 38016, 0xc12b61b5
+0, 22, 22, 1, 38016, 0x13065a22
+0, 23, 23, 1, 38016, 0x804853d4
+0, 24, 24, 1, 38016, 0x40935736
+0, 25, 25, 1, 38016, 0x1a135ecb
+0, 26, 26, 1, 38016, 0x125f6116
+0, 27, 27, 1, 38016, 0x53286da3
+0, 28, 28, 1, 38016, 0xd49287ac
+0, 29, 29, 1, 38016, 0xc70a9c2c
+0, 30, 30, 1, 38016, 0x0c0c6998
+0, 31, 31, 1, 38016, 0xf37d9141
+0, 32, 32, 1, 38016, 0xd36eafa2
+0, 33, 33, 1, 38016, 0x0d1fc298
+0, 34, 34, 1, 38016, 0xf84ad5d9
+0, 35, 35, 1, 38016, 0xc1e8d93d
+0, 36, 36, 1, 38016, 0xe190dabd
+0, 37, 37, 1, 38016, 0x9542db28
+0, 38, 38, 1, 38016, 0xa67edc7f
+0, 39, 39, 1, 38016, 0x65efdfa7
+0, 40, 40, 1, 38016, 0x7039e6c6
+0, 41, 41, 1, 38016, 0x8307ee87
+0, 42, 42, 1, 38016, 0x1f83ec00
+0, 43, 43, 1, 38016, 0x9e33ea6e
+0, 44, 44, 1, 38016, 0xb53ef238
+0, 45, 45, 1, 38016, 0x6d04930c
+0, 46, 46, 1, 38016, 0xed90a50e
+0, 47, 47, 1, 38016, 0xd98cb4a6
+0, 48, 48, 1, 38016, 0xa7f5bd5e
+0, 49, 49, 1, 38016, 0x4df9ca95
+0, 50, 50, 1, 38016, 0xc8e7cb40
+0, 51, 51, 1, 38016, 0x93d9d23c
+0, 52, 52, 1, 38016, 0xc07fd34f
+0, 53, 53, 1, 38016, 0xf7c5d645
+0, 54, 54, 1, 38016, 0x3c1ddf53
+0, 55, 55, 1, 38016, 0x0bafe394
+0, 56, 56, 1, 38016, 0x9179ec6f
+0, 57, 57, 1, 38016, 0x3483efc3
+0, 58, 58, 1, 38016, 0xf7ccf70d
+0, 59, 59, 1, 38016, 0x289ef13b
+0, 60, 60, 1, 38016, 0xb00c99dc
+0, 61, 61, 1, 38016, 0x59409b34
+0, 62, 62, 1, 38016, 0x3fc079a2
+0, 63, 63, 1, 38016, 0x90ad49d9
+0, 64, 64, 1, 38016, 0x8e7751e2
+0, 65, 65, 1, 38016, 0xed20743d
+0, 66, 66, 1, 38016, 0x66a1a470
+0, 67, 67, 1, 38016, 0x7a77e252
+0, 68, 68, 1, 38016, 0x6bb427fe
+0, 69, 69, 1, 38016, 0x87126360
+0, 70, 70, 1, 38016, 0x330789d0
+0, 71, 71, 1, 38016, 0xc298b987
+0, 72, 72, 1, 38016, 0x4959f143
+0, 73, 73, 1, 38016, 0xa66e3082
+0, 74, 74, 1, 38016, 0xb9f67824
+0, 75, 75, 1, 38016, 0x27fe46a2
+0, 76, 76, 1, 38016, 0xc50c87ed
+0, 77, 77, 1, 38016, 0x9523a9f6
+0, 78, 78, 1, 38016, 0xbe28d1d7
+0, 79, 79, 1, 38016, 0x3c0ee964
+0, 80, 80, 1, 38016, 0x65c7f36c
+0, 81, 81, 1, 38016, 0xe5030946
+0, 82, 82, 1, 38016, 0x4bbb11fa
+0, 83, 83, 1, 38016, 0xeaf209ed
+0, 84, 84, 1, 38016, 0x96c80987
+0, 85, 85, 1, 38016, 0x69820c58
+0, 86, 86, 1, 38016, 0x5f951aa7
+0, 87, 87, 1, 38016, 0xfe6122d9
+0, 88, 88, 1, 38016, 0xa202301a
+0, 89, 89, 1, 38016, 0xdd2628fb
+0, 90, 90, 1, 38016, 0xe081a5ff
+0, 91, 91, 1, 38016, 0x5b858e9e
+0, 92, 92, 1, 38016, 0x7a368229
+0, 93, 93, 1, 38016, 0x3791829a
+0, 94, 94, 1, 38016, 0x9c68723d
+0, 95, 95, 1, 38016, 0xef26778e
+0, 96, 96, 1, 38016, 0x39a491cf
+0, 97, 97, 1, 38016, 0x776ea867
+0, 98, 98, 1, 38016, 0xda9ac03b
+0, 99, 99, 1, 38016, 0x653bc9a3
+0, 100, 100, 1, 38016, 0x79e1da19
+0, 101, 101, 1, 38016, 0x3b98c6eb
+0, 102, 102, 1, 38016, 0x42cdb846
+0, 103, 103, 1, 38016, 0x7872ada1
+0, 104, 104, 1, 38016, 0xb2f6d2ef
+0, 105, 105, 1, 38016, 0x9468b16a
+0, 106, 106, 1, 38016, 0xe793c91a
+0, 107, 107, 1, 38016, 0x80bde366
+0, 108, 108, 1, 38016, 0xa7250446
+0, 109, 109, 1, 38016, 0x7039280b
+0, 110, 110, 1, 38016, 0x1665350c
+0, 111, 111, 1, 38016, 0xb5c93f1f
+0, 112, 112, 1, 38016, 0xf77a4c44
+0, 113, 113, 1, 38016, 0x3a093143
+0, 114, 114, 1, 38016, 0x1d6b1005
+0, 115, 115, 1, 38016, 0xe1a10c01
+0, 116, 116, 1, 38016, 0x2d4d1d54
+0, 117, 117, 1, 38016, 0x902f2b14
+0, 118, 118, 1, 38016, 0xb26e3e73
+0, 119, 119, 1, 38016, 0xed7a469e
+0, 120, 120, 1, 38016, 0xbc663d2a
+0, 121, 121, 1, 38016, 0x60a5488e
+0, 122, 122, 1, 38016, 0x451b31ca
+0, 123, 123, 1, 38016, 0x54311166
+0, 124, 124, 1, 38016, 0x57d9f31e
+0, 125, 125, 1, 38016, 0x567dd693
+0, 126, 126, 1, 38016, 0x0e58d88c
+0, 127, 127, 1, 38016, 0xa555e124
+0, 128, 128, 1, 38016, 0x94e2f835
+0, 129, 129, 1, 38016, 0xe49e0ec0
+0, 130, 130, 1, 38016, 0x585d188e
+0, 131, 131, 1, 38016, 0x696e1a0d
+0, 132, 132, 1, 38016, 0xac9014b1
+0, 133, 133, 1, 38016, 0x915413c6
+0, 134, 134, 1, 38016, 0x5fa30be7
+0, 135, 135, 1, 38016, 0x8fbfb69c
+0, 136, 136, 1, 38016, 0xcaeabfab
+0, 137, 137, 1, 38016, 0xe494bf5c
+0, 138, 138, 1, 38016, 0xae03be55
+0, 139, 139, 1, 38016, 0xb734b4d3
+0, 140, 140, 1, 38016, 0xdc6fb56f
+0, 141, 141, 1, 38016, 0xfea0a853
+0, 142, 142, 1, 38016, 0xb4919381
+0, 143, 143, 1, 38016, 0x13a792fe
+0, 144, 144, 1, 38016, 0xc8829fd8
+0, 145, 145, 1, 38016, 0x2113a62b
+0, 146, 146, 1, 38016, 0x171f98d2
+0, 147, 147, 1, 38016, 0x1a6d6d17
+0, 148, 148, 1, 38016, 0xd4ab41c3
+0, 149, 149, 1, 38016, 0xd2df1c80
+0, 150, 150, 1, 38016, 0x14cdbb35
+0, 151, 151, 1, 38016, 0x2b74b829
+0, 152, 152, 1, 38016, 0x6433bd55
+0, 153, 153, 1, 38016, 0xd11dbc28
+0, 154, 154, 1, 38016, 0x4981ad33
+0, 155, 155, 1, 38016, 0xc38bbbad
+0, 156, 156, 1, 38016, 0x048de367
+0, 157, 157, 1, 38016, 0x6c9a0c5a
+0, 158, 158, 1, 38016, 0x384c4255
+0, 159, 159, 1, 38016, 0x3e9873ba
+0, 160, 160, 1, 38016, 0xe4988671
+0, 161, 161, 1, 38016, 0x05b4843c
+0, 162, 162, 1, 38016, 0xed0a7e13
+0, 163, 163, 1, 38016, 0x750c6f90
+0, 164, 164, 1, 38016, 0x9d296035
+0, 165, 165, 1, 38016, 0xbaa006bd
+0, 166, 166, 1, 38016, 0x8289f8ae
+0, 167, 167, 1, 38016, 0x3f3de147
+0, 168, 168, 1, 38016, 0xc5debc49
+0, 169, 169, 1, 38016, 0x1fe9bbfc
+0, 170, 170, 1, 38016, 0x006cd4a9
+0, 171, 171, 1, 38016, 0xe551f2b3
+0, 172, 172, 1, 38016, 0xb370140e
+0, 173, 173, 1, 38016, 0xc9441c24
+0, 174, 174, 1, 38016, 0x7f5c01c5
+0, 175, 175, 1, 38016, 0x352ad9f6
+0, 176, 176, 1, 38016, 0xe0909a17
+0, 177, 177, 1, 38016, 0x49bf5ea8
+0, 178, 178, 1, 38016, 0x7f1d387b
+0, 179, 179, 1, 38016, 0x30812233
+0, 180, 180, 1, 38016, 0xb0bdf16f
+0, 181, 181, 1, 38016, 0x5372d0e9
+0, 182, 182, 1, 38016, 0xbf1bc91c
+0, 183, 183, 1, 38016, 0xaef5d647
+0, 184, 184, 1, 38016, 0xf007e86c
+0, 185, 185, 1, 38016, 0x683bf72b
+0, 186, 186, 1, 38016, 0xbb722114
+0, 187, 187, 1, 38016, 0xc5864b63
+0, 188, 188, 1, 38016, 0xfefd5cf4
+0, 189, 189, 1, 38016, 0xa0f263d5
+0, 190, 190, 1, 38016, 0x18401a02
+0, 191, 191, 1, 38016, 0x55cdd97b
+0, 192, 192, 1, 38016, 0x5a4ee22d
+0, 193, 193, 1, 38016, 0xa60706b3
+0, 194, 194, 1, 38016, 0x644422bb
+0, 195, 195, 1, 38016, 0xc22421c9
+0, 196, 196, 1, 38016, 0x1d6b54e4
+0, 197, 197, 1, 38016, 0xc7627820
+0, 198, 198, 1, 38016, 0x0a6ea609
+0, 199, 199, 1, 38016, 0x4315c087
+0, 200, 200, 1, 38016, 0x3164d978
+0, 201, 201, 1, 38016, 0x08e3e7eb
+0, 202, 202, 1, 38016, 0x4f04eaed
+0, 203, 203, 1, 38016, 0x9f83eb5a
+0, 204, 204, 1, 38016, 0xfbbcf0b2
+0, 205, 205, 1, 38016, 0xee1efb8a
+0, 206, 206, 1, 38016, 0x87710ba0
+0, 207, 207, 1, 38016, 0xb96b05c1
+0, 208, 208, 1, 38016, 0xd5a4fc50
+0, 209, 209, 1, 38016, 0xad85ea19
+0, 210, 210, 1, 38016, 0x5f606058
+0, 211, 211, 1, 38016, 0xdaf55ad0
+0, 212, 212, 1, 38016, 0xee8564d6
+0, 213, 213, 1, 38016, 0xa1846cad
+0, 214, 214, 1, 38016, 0xcd316a62
+0, 215, 215, 1, 38016, 0xdcf5638f
+0, 216, 216, 1, 38016, 0xc5e36d1d
+0, 217, 217, 1, 38016, 0x958369a6
+0, 218, 218, 1, 38016, 0x05826bf0
+0, 219, 219, 1, 38016, 0x22146914
+0, 220, 220, 1, 38016, 0xf5086111
+0, 221, 221, 1, 38016, 0x88f35468
+0, 222, 222, 1, 38016, 0x3ae94126
+0, 223, 223, 1, 38016, 0xf4473aa8
+0, 224, 224, 1, 38016, 0x430c3da2
+0, 225, 225, 1, 38016, 0xaf95113e
+0, 226, 226, 1, 38016, 0xa8a216d6
+0, 227, 227, 1, 38016, 0xad2f328c
+0, 228, 228, 1, 38016, 0xea724415
+0, 229, 229, 1, 38016, 0x34016af4
+0, 230, 230, 1, 38016, 0x4829a4cb
+0, 231, 231, 1, 38016, 0x4b24bc67
+0, 232, 232, 1, 38016, 0xb523f023
+0, 233, 233, 1, 38016, 0x5c6d2305
+0, 234, 234, 1, 38016, 0x39e63adc
+0, 235, 235, 1, 38016, 0xf7c64a7c
+0, 236, 236, 1, 38016, 0xd601680a
+0, 237, 237, 1, 38016, 0xbbad6a12
+0, 238, 238, 1, 38016, 0xddc1500f
+0, 239, 239, 1, 38016, 0x1f1726e6
+0, 240, 240, 1, 38016, 0x48aee68f
+0, 241, 241, 1, 38016, 0xc1fbd4f0
+0, 242, 242, 1, 38016, 0x4a89dc83
+0, 243, 243, 1, 38016, 0xa7cd2b02
+0, 244, 244, 1, 38016, 0xf52aa0b8
+0, 245, 245, 1, 38016, 0x1f260626
+0, 246, 246, 1, 38016, 0x80561eac
+0, 247, 247, 1, 38016, 0x6687f8ef
+0, 248, 248, 1, 38016, 0x986ab08f
+0, 249, 249, 1, 38016, 0xb4923773
+0, 250, 250, 1, 38016, 0x5cc2d603
+0, 251, 251, 1, 38016, 0x9e8d93db
+0, 252, 252, 1, 38016, 0x33fd8981
+0, 253, 253, 1, 38016, 0xaf45e630
+0, 254, 254, 1, 38016, 0x1227448e
+0, 255, 255, 1, 38016, 0x424cccf0
+0, 256, 256, 1, 38016, 0x03b0cb3e
+0, 257, 257, 1, 38016, 0x7aad547d
+0, 258, 258, 1, 38016, 0xbf8544b2
+0, 259, 259, 1, 38016, 0x54a843ca
+0, 260, 260, 1, 38016, 0x759d4dd0
+0, 261, 261, 1, 38016, 0x000162da
+0, 262, 262, 1, 38016, 0x87ec74b0
+0, 263, 263, 1, 38016, 0xefee8259
+0, 264, 264, 1, 38016, 0x7b547eea
+0, 265, 265, 1, 38016, 0xcae96b73
+0, 266, 266, 1, 38016, 0x730f59c3
+0, 267, 267, 1, 38016, 0x7d9b3e82
+0, 268, 268, 1, 38016, 0x3bb11ef0
+0, 269, 269, 1, 38016, 0x7581fa6b
+0, 270, 270, 1, 38016, 0xe594a982
+0, 271, 271, 1, 38016, 0xde3888d6
+0, 272, 272, 1, 38016, 0x0e096d6b
+0, 273, 273, 1, 38016, 0x297c20dc
+0, 274, 274, 1, 38016, 0x51f7ce7f
+0, 275, 275, 1, 38016, 0x23d2c247
+0, 276, 276, 1, 38016, 0x0bdcd0d0
+0, 277, 277, 1, 38016, 0x63cfd4f3
+0, 278, 278, 1, 38016, 0x6d4b01f8
+0, 279, 279, 1, 38016, 0xa50d72f0
+0, 280, 280, 1, 38016, 0xccad0d72
+0, 281, 281, 1, 38016, 0x10c9e33e
+0, 282, 282, 1, 38016, 0xba6daf97
+0, 283, 283, 1, 38016, 0xd65074e0
+0, 284, 284, 1, 38016, 0xd36954aa
+0, 285, 285, 1, 38016, 0xd9a2a642
+0, 286, 286, 1, 38016, 0xce755f9f
+0, 287, 287, 1, 38016, 0x81d29c44
+0, 288, 288, 1, 38016, 0x23b0aef5
+0, 289, 289, 1, 38016, 0xb0ef9efa
+0, 290, 290, 1, 38016, 0xf20d4a7a
+0, 291, 291, 1, 38016, 0xa0c86899
+0, 292, 292, 1, 38016, 0x1ae4f865
+0, 293, 293, 1, 38016, 0x3a5731c8
+0, 294, 294, 1, 38016, 0x75f17ec5
+0, 295, 295, 1, 38016, 0x8f447aa9
+0, 296, 296, 1, 38016, 0x71615441
+0, 297, 297, 1, 38016, 0x90c13e26
+0, 298, 298, 1, 38016, 0x08d04aaf
+0, 299, 299, 1, 38016, 0x14fd7b04
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_fld0_full b/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
new file mode 100644
index 0000000..b131cda
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_frm0_full b/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_frm0_full
new file mode 100644
index 0000000..58949e2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_frm0_full
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x40c7e2d9
+0, 1, 1, 1, 518400, 0xb16701a5
+0, 2, 2, 1, 518400, 0x12c2f5b1
+0, 3, 3, 1, 518400, 0x9832aecc
+0, 4, 4, 1, 518400, 0x2b8bcdec
+0, 5, 5, 1, 518400, 0x04448f3a
+0, 6, 6, 1, 518400, 0xc7ac82d8
+0, 7, 7, 1, 518400, 0xe746bb8a
+0, 8, 8, 1, 518400, 0xc7ac92d3
+0, 9, 9, 1, 518400, 0x38d89443
+0, 10, 10, 1, 518400, 0xcb9fbe74
+0, 11, 11, 1, 518400, 0x5543867d
+0, 12, 12, 1, 518400, 0xaf1b147f
+0, 13, 13, 1, 518400, 0xe5f07e40
+0, 14, 14, 1, 518400, 0x66dc6734
+0, 15, 15, 1, 518400, 0x0f9491be
+0, 16, 16, 1, 518400, 0xbcdaacac
+0, 17, 17, 1, 518400, 0xf4480ae7
+0, 18, 18, 1, 518400, 0xa5cef4d5
+0, 19, 19, 1, 518400, 0x9e4e4320
+0, 20, 20, 1, 518400, 0x620c3212
+0, 21, 21, 1, 518400, 0x4350df1d
+0, 22, 22, 1, 518400, 0x6360ef84
+0, 23, 23, 1, 518400, 0xc1866d03
+0, 24, 24, 1, 518400, 0x38eb3b5b
+0, 25, 25, 1, 518400, 0x00166df1
+0, 26, 26, 1, 518400, 0x841ea87c
+0, 27, 27, 1, 518400, 0x8b40f836
+0, 28, 28, 1, 518400, 0x3b380ddf
+0, 29, 29, 1, 518400, 0x275adf46
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full b/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full
new file mode 100644
index 0000000..1e9313e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x8336b7db
+0, 1, 1, 1, 518400, 0x9818c309
+0, 2, 2, 1, 518400, 0x5417b6f9
+0, 3, 3, 1, 518400, 0x8f0a5de4
+0, 4, 4, 1, 518400, 0xa4ce43f3
+0, 5, 5, 1, 518400, 0xfe748339
+0, 6, 6, 1, 518400, 0xeab93a93
+0, 7, 7, 1, 518400, 0x095176e4
+0, 8, 8, 1, 518400, 0x99a45050
+0, 9, 9, 1, 518400, 0xad3766e8
+0, 10, 10, 1, 518400, 0xea133c1b
+0, 11, 11, 1, 518400, 0xdcb2188b
+0, 12, 12, 1, 518400, 0xec08c8ce
+0, 13, 13, 1, 518400, 0xf38cd4f2
+0, 14, 14, 1, 518400, 0x06177f80
+0, 15, 15, 1, 518400, 0x2c68b642
+0, 16, 16, 1, 518400, 0x7d290881
+0, 17, 17, 1, 518400, 0x26c939d8
+0, 18, 18, 1, 518400, 0xa0391a6e
+0, 19, 19, 1, 518400, 0x3b9f02c1
+0, 20, 20, 1, 518400, 0x335a0ff9
+0, 21, 21, 1, 518400, 0x0deafb41
+0, 22, 22, 1, 518400, 0xbf00bfe4
+0, 23, 23, 1, 518400, 0xc9145210
+0, 24, 24, 1, 518400, 0xb6e16a54
+0, 25, 25, 1, 518400, 0xc31664da
+0, 26, 26, 1, 518400, 0xfd3be55d
+0, 27, 27, 1, 518400, 0xf33b134c
+0, 28, 28, 1, 518400, 0xc6977304
+0, 29, 29, 1, 518400, 0xa605bdb6
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full b/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
new file mode 100644
index 0000000..484025e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cabaci3_sony_b b/ffmpeg1/tests/ref/fate/h264-conformance-cabaci3_sony_b
new file mode 100644
index 0000000..9dc4884
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cabaci3_sony_b
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x705f2f41
+0, 1, 1, 1, 38016, 0xa76d1766
+0, 2, 2, 1, 38016, 0xf367e6f4
+0, 3, 3, 1, 38016, 0xdce8a69a
+0, 4, 4, 1, 38016, 0xda9d986e
+0, 5, 5, 1, 38016, 0x50117ea5
+0, 6, 6, 1, 38016, 0x07a848eb
+0, 7, 7, 1, 38016, 0x28ab4f59
+0, 8, 8, 1, 38016, 0xf6913e4c
+0, 9, 9, 1, 38016, 0x3daa3500
+0, 10, 10, 1, 38016, 0xe9f67703
+0, 11, 11, 1, 38016, 0x9a5289e6
+0, 12, 12, 1, 38016, 0x9efd705f
+0, 13, 13, 1, 38016, 0x1193b01d
+0, 14, 14, 1, 38016, 0x30a5acd7
+0, 15, 15, 1, 38016, 0x7e3da07d
+0, 16, 16, 1, 38016, 0x0f85afc6
+0, 17, 17, 1, 38016, 0x8b7ba455
+0, 18, 18, 1, 38016, 0xac327dfb
+0, 19, 19, 1, 38016, 0x3eee7fdb
+0, 20, 20, 1, 38016, 0x37fa626b
+0, 21, 21, 1, 38016, 0x2c4f2501
+0, 22, 22, 1, 38016, 0xa25a239a
+0, 23, 23, 1, 38016, 0xe69b2327
+0, 24, 24, 1, 38016, 0x6bd6164e
+0, 25, 25, 1, 38016, 0xae9c2daa
+0, 26, 26, 1, 38016, 0xe115331d
+0, 27, 27, 1, 38016, 0xde8f2833
+0, 28, 28, 1, 38016, 0xd0b45915
+0, 29, 29, 1, 38016, 0x3ab16824
+0, 30, 30, 1, 38016, 0x4df45e8d
+0, 31, 31, 1, 38016, 0x48569b82
+0, 32, 32, 1, 38016, 0x75c5b1ee
+0, 33, 33, 1, 38016, 0x64e5a3ba
+0, 34, 34, 1, 38016, 0x3190d133
+0, 35, 35, 1, 38016, 0x4825ce86
+0, 36, 36, 1, 38016, 0x8f85ab8e
+0, 37, 37, 1, 38016, 0x3fb1cbc5
+0, 38, 38, 1, 38016, 0x2b2cbe7d
+0, 39, 39, 1, 38016, 0xa905a6a6
+0, 40, 40, 1, 38016, 0x6365c188
+0, 41, 41, 1, 38016, 0xff23c08d
+0, 42, 42, 1, 38016, 0x73edada6
+0, 43, 43, 1, 38016, 0x6be0b8a9
+0, 44, 44, 1, 38016, 0x604bb6c9
+0, 45, 45, 1, 38016, 0x62468a3b
+0, 46, 46, 1, 38016, 0x994aad7a
+0, 47, 47, 1, 38016, 0xfee1b59e
+0, 48, 48, 1, 38016, 0xf722aa78
+0, 49, 49, 1, 38016, 0x0ddfbf68
+0, 50, 50, 1, 38016, 0x510ab7b1
+0, 51, 51, 1, 38016, 0x156ca919
+0, 52, 52, 1, 38016, 0xb176b488
+0, 53, 53, 1, 38016, 0xd70cb8f8
+0, 54, 54, 1, 38016, 0x3844b2d2
+0, 55, 55, 1, 38016, 0x0ed8c6ee
+0, 56, 56, 1, 38016, 0x0c6ac5ff
+0, 57, 57, 1, 38016, 0x1284c442
+0, 58, 58, 1, 38016, 0x0486d06c
+0, 59, 59, 1, 38016, 0x0d42d1c1
+0, 60, 60, 1, 38016, 0xd24297f3
+0, 61, 61, 1, 38016, 0xe05cab59
+0, 62, 62, 1, 38016, 0x12f1921f
+0, 63, 63, 1, 38016, 0x0dc6403e
+0, 64, 64, 1, 38016, 0x277f593c
+0, 65, 65, 1, 38016, 0xfb7c81f8
+0, 66, 66, 1, 38016, 0xb31b90b0
+0, 67, 67, 1, 38016, 0x8be3e8ae
+0, 68, 68, 1, 38016, 0x9aaa1ff1
+0, 69, 69, 1, 38016, 0x4e6832b9
+0, 70, 70, 1, 38016, 0x93fd6a5e
+0, 71, 71, 1, 38016, 0xd9438f08
+0, 72, 72, 1, 38016, 0x5e41b067
+0, 73, 73, 1, 38016, 0xee80f32a
+0, 74, 74, 1, 38016, 0x75632fe3
+0, 75, 75, 1, 38016, 0xc0a93ec1
+0, 76, 76, 1, 38016, 0x4e3e80c4
+0, 77, 77, 1, 38016, 0x9e5398d6
+0, 78, 78, 1, 38016, 0xd20aac32
+0, 79, 79, 1, 38016, 0xacf5c5da
+0, 80, 80, 1, 38016, 0xbe6bca1a
+0, 81, 81, 1, 38016, 0x098bdac2
+0, 82, 82, 1, 38016, 0xe706e491
+0, 83, 83, 1, 38016, 0xcda7d8ee
+0, 84, 84, 1, 38016, 0xb1d4d3f4
+0, 85, 85, 1, 38016, 0x3e20d6cd
+0, 86, 86, 1, 38016, 0xf368e66a
+0, 87, 87, 1, 38016, 0xbfbee5b1
+0, 88, 88, 1, 38016, 0xb580ec3d
+0, 89, 89, 1, 38016, 0xce8dec65
+0, 90, 90, 1, 38016, 0xb6fda1c2
+0, 91, 91, 1, 38016, 0xb2d5ad04
+0, 92, 92, 1, 38016, 0x28959c5a
+0, 93, 93, 1, 38016, 0x7b1d7c65
+0, 94, 94, 1, 38016, 0x357e79cd
+0, 95, 95, 1, 38016, 0x08f57396
+0, 96, 96, 1, 38016, 0xe59973b8
+0, 97, 97, 1, 38016, 0x288a9c28
+0, 98, 98, 1, 38016, 0x09a4a82f
+0, 99, 99, 1, 38016, 0x61b5a518
+0, 100, 100, 1, 38016, 0xddbfb88d
+0, 101, 101, 1, 38016, 0x14b5a41e
+0, 102, 102, 1, 38016, 0x56588add
+0, 103, 103, 1, 38016, 0x7e3890c1
+0, 104, 104, 1, 38016, 0xbb1eb4df
+0, 105, 105, 1, 38016, 0x3b34a7d8
+0, 106, 106, 1, 38016, 0xe15ddc56
+0, 107, 107, 1, 38016, 0x9ed7ff21
+0, 108, 108, 1, 38016, 0x03200458
+0, 109, 109, 1, 38016, 0x74493572
+0, 110, 110, 1, 38016, 0x73d14274
+0, 111, 111, 1, 38016, 0x02933587
+0, 112, 112, 1, 38016, 0x5ea74e05
+0, 113, 113, 1, 38016, 0xd73d303e
+0, 114, 114, 1, 38016, 0x0a17f1ea
+0, 115, 115, 1, 38016, 0x915f0dcd
+0, 116, 116, 1, 38016, 0xca041a88
+0, 117, 117, 1, 38016, 0xc6a303b2
+0, 118, 118, 1, 38016, 0x2c903df2
+0, 119, 119, 1, 38016, 0x2dd04691
+0, 120, 120, 1, 38016, 0xfe783551
+0, 121, 121, 1, 38016, 0x900c419c
+0, 122, 122, 1, 38016, 0x01b92a15
+0, 123, 123, 1, 38016, 0xcce4e851
+0, 124, 124, 1, 38016, 0x0167d6f6
+0, 125, 125, 1, 38016, 0x023eb3fa
+0, 126, 126, 1, 38016, 0xafc29caa
+0, 127, 127, 1, 38016, 0xf205b88c
+0, 128, 128, 1, 38016, 0x5518cc46
+0, 129, 129, 1, 38016, 0x64cdd1d5
+0, 130, 130, 1, 38016, 0x8e9eecb4
+0, 131, 131, 1, 38016, 0xd1e0e2f8
+0, 132, 132, 1, 38016, 0xb849cf3c
+0, 133, 133, 1, 38016, 0xb5e4d916
+0, 134, 134, 1, 38016, 0xc6c5da7e
+0, 135, 135, 1, 38016, 0xcbcda68d
+0, 136, 136, 1, 38016, 0x21d7bd73
+0, 137, 137, 1, 38016, 0x6737b4b9
+0, 138, 138, 1, 38016, 0x379f9a5f
+0, 139, 139, 1, 38016, 0xa13da6cc
+0, 140, 140, 1, 38016, 0x06fc941a
+0, 141, 141, 1, 38016, 0x78c57e95
+0, 142, 142, 1, 38016, 0x2f6674d4
+0, 143, 143, 1, 38016, 0x37776db9
+0, 144, 144, 1, 38016, 0x257268db
+0, 145, 145, 1, 38016, 0x1dbe7e72
+0, 146, 146, 1, 38016, 0x2cb96bb0
+0, 147, 147, 1, 38016, 0x46a840f2
+0, 148, 148, 1, 38016, 0x95951fd6
+0, 149, 149, 1, 38016, 0x627ef7b2
+0, 150, 150, 1, 38016, 0xa5b0b2d3
+0, 151, 151, 1, 38016, 0x69fdcae9
+0, 152, 152, 1, 38016, 0x0c25c873
+0, 153, 153, 1, 38016, 0x3533a2cc
+0, 154, 154, 1, 38016, 0x3a74b6c2
+0, 155, 155, 1, 38016, 0x9d1dcbc1
+0, 156, 156, 1, 38016, 0xce33cf86
+0, 157, 157, 1, 38016, 0xf34201f5
+0, 158, 158, 1, 38016, 0xab5f2e2b
+0, 159, 159, 1, 38016, 0xf062405d
+0, 160, 160, 1, 38016, 0xe7f85f7c
+0, 161, 161, 1, 38016, 0x684f4ee4
+0, 162, 162, 1, 38016, 0x41b83014
+0, 163, 163, 1, 38016, 0x70142f5f
+0, 164, 164, 1, 38016, 0x3cb229b1
+0, 165, 165, 1, 38016, 0x6bd1f24c
+0, 166, 166, 1, 38016, 0x9366ec77
+0, 167, 167, 1, 38016, 0x6af0c1ec
+0, 168, 168, 1, 38016, 0xb11a9005
+0, 169, 169, 1, 38016, 0x83e390b7
+0, 170, 170, 1, 38016, 0x97679ab5
+0, 171, 171, 1, 38016, 0xabe3b114
+0, 172, 172, 1, 38016, 0x2efed19f
+0, 173, 173, 1, 38016, 0x18eddb2e
+0, 174, 174, 1, 38016, 0x0a37c6fb
+0, 175, 175, 1, 38016, 0xddb0a2fe
+0, 176, 176, 1, 38016, 0xf8627091
+0, 177, 177, 1, 38016, 0x97123074
+0, 178, 178, 1, 38016, 0x33af3174
+0, 179, 179, 1, 38016, 0x5caa22fe
+0, 180, 180, 1, 38016, 0xa203eccf
+0, 181, 181, 1, 38016, 0x506eee0c
+0, 182, 182, 1, 38016, 0x2066d541
+0, 183, 183, 1, 38016, 0xe08acab1
+0, 184, 184, 1, 38016, 0x6740ecc4
+0, 185, 185, 1, 38016, 0x954dfd6d
+0, 186, 186, 1, 38016, 0xbd7ffef8
+0, 187, 187, 1, 38016, 0x629f2cca
+0, 188, 188, 1, 38016, 0xebd92f12
+0, 189, 189, 1, 38016, 0xe5bd297f
+0, 190, 190, 1, 38016, 0xcb2be670
+0, 191, 191, 1, 38016, 0x51d7b529
+0, 192, 192, 1, 38016, 0x95d7ab30
+0, 193, 193, 1, 38016, 0x18e3df99
+0, 194, 194, 1, 38016, 0xae3af726
+0, 195, 195, 1, 38016, 0x9b831ee3
+0, 196, 196, 1, 38016, 0x3c614e45
+0, 197, 197, 1, 38016, 0x3c0a600c
+0, 198, 198, 1, 38016, 0xdade838b
+0, 199, 199, 1, 38016, 0xbbe3a0a7
+0, 200, 200, 1, 38016, 0xd4d5b780
+0, 201, 201, 1, 38016, 0xceebb4b7
+0, 202, 202, 1, 38016, 0x1a8ccbb3
+0, 203, 203, 1, 38016, 0x95dccfab
+0, 204, 204, 1, 38016, 0xea9bc737
+0, 205, 205, 1, 38016, 0xa0f6d561
+0, 206, 206, 1, 38016, 0x7877d698
+0, 207, 207, 1, 38016, 0xd6aad54c
+0, 208, 208, 1, 38016, 0xca62c8b7
+0, 209, 209, 1, 38016, 0xebc9ae1c
+0, 210, 210, 1, 38016, 0x46c96194
+0, 211, 211, 1, 38016, 0x61197fc4
+0, 212, 212, 1, 38016, 0x9ae97570
+0, 213, 213, 1, 38016, 0x7cd254da
+0, 214, 214, 1, 38016, 0xe4816953
+0, 215, 215, 1, 38016, 0x68685b2c
+0, 216, 216, 1, 38016, 0x08d93f79
+0, 217, 217, 1, 38016, 0xb4cc526b
+0, 218, 218, 1, 38016, 0xc0d253d9
+0, 219, 219, 1, 38016, 0x95b83d64
+0, 220, 220, 1, 38016, 0xadf7454f
+0, 221, 221, 1, 38016, 0xaa1d339b
+0, 222, 222, 1, 38016, 0xae0417f8
+0, 223, 223, 1, 38016, 0x09d2294d
+0, 224, 224, 1, 38016, 0xbd892e9d
+0, 225, 225, 1, 38016, 0xbccd0f97
+0, 226, 226, 1, 38016, 0x03c13bd3
+0, 227, 227, 1, 38016, 0x09d045d7
+0, 228, 228, 1, 38016, 0xaa484278
+0, 229, 229, 1, 38016, 0x054b8639
+0, 230, 230, 1, 38016, 0x45e29e62
+0, 231, 231, 1, 38016, 0x38bbb067
+0, 232, 232, 1, 38016, 0x9f5cfc30
+0, 233, 233, 1, 38016, 0x38551b76
+0, 234, 234, 1, 38016, 0x3e1b18ee
+0, 235, 235, 1, 38016, 0x7baf4e34
+0, 236, 236, 1, 38016, 0xff6458d1
+0, 237, 237, 1, 38016, 0xb7963c49
+0, 238, 238, 1, 38016, 0xdaee3f6a
+0, 239, 239, 1, 38016, 0xc88e09c9
+0, 240, 240, 1, 38016, 0x88a7de38
+0, 241, 241, 1, 38016, 0x9e81cb62
+0, 242, 242, 1, 38016, 0x84d0aca7
+0, 243, 243, 1, 38016, 0x3312f41e
+0, 244, 244, 1, 38016, 0x550065dc
+0, 245, 245, 1, 38016, 0x7e88d07e
+0, 246, 246, 1, 38016, 0x9370ed4f
+0, 247, 247, 1, 38016, 0xd9c9d592
+0, 248, 248, 1, 38016, 0xec7589ce
+0, 249, 249, 1, 38016, 0xeca71251
+0, 250, 250, 1, 38016, 0xf183b951
+0, 251, 251, 1, 38016, 0x9a1b740a
+0, 252, 252, 1, 38016, 0x97ea5ffc
+0, 253, 253, 1, 38016, 0x058dc572
+0, 254, 254, 1, 38016, 0xae44345a
+0, 255, 255, 1, 38016, 0xef22c82e
+0, 256, 256, 1, 38016, 0x8364d583
+0, 257, 257, 1, 38016, 0x2f725dfa
+0, 258, 258, 1, 38016, 0x5eda3160
+0, 259, 259, 1, 38016, 0x4a464613
+0, 260, 260, 1, 38016, 0x447f444d
+0, 261, 261, 1, 38016, 0x076b3dd8
+0, 262, 262, 1, 38016, 0x690f58de
+0, 263, 263, 1, 38016, 0xf4635e91
+0, 264, 264, 1, 38016, 0xd5db44e7
+0, 265, 265, 1, 38016, 0xced25176
+0, 266, 266, 1, 38016, 0x227a2f9a
+0, 267, 267, 1, 38016, 0x72100520
+0, 268, 268, 1, 38016, 0x6549f9b4
+0, 269, 269, 1, 38016, 0x3f77cef4
+0, 270, 270, 1, 38016, 0x3d1ba72f
+0, 271, 271, 1, 38016, 0xa1dd85d2
+0, 272, 272, 1, 38016, 0x9a35655e
+0, 273, 273, 1, 38016, 0xdc900dc6
+0, 274, 274, 1, 38016, 0xca05d5cb
+0, 275, 275, 1, 38016, 0xeff0be86
+0, 276, 276, 1, 38016, 0xdcceb22e
+0, 277, 277, 1, 38016, 0x5952d133
+0, 278, 278, 1, 38016, 0x3ab3facb
+0, 279, 279, 1, 38016, 0xdb8d4de4
+0, 280, 280, 1, 38016, 0x0afc170d
+0, 281, 281, 1, 38016, 0xd14ddc59
+0, 282, 282, 1, 38016, 0xbabf89eb
+0, 283, 283, 1, 38016, 0x09d38f7b
+0, 284, 284, 1, 38016, 0xe4805dba
+0, 285, 285, 1, 38016, 0x4d919dcf
+0, 286, 286, 1, 38016, 0x3e8c60be
+0, 287, 287, 1, 38016, 0x6c1fa94b
+0, 288, 288, 1, 38016, 0x6b68a320
+0, 289, 289, 1, 38016, 0x9de774f6
+0, 290, 290, 1, 38016, 0x38d0ecc6
+0, 291, 291, 1, 38016, 0x0623207f
+0, 292, 292, 1, 38016, 0x36429915
+0, 293, 293, 1, 38016, 0x659fdd42
+0, 294, 294, 1, 38016, 0x59c93475
+0, 295, 295, 1, 38016, 0xecd1200d
+0, 296, 296, 1, 38016, 0x3b2af9c2
+0, 297, 297, 1, 38016, 0xd00600da
+0, 298, 298, 1, 38016, 0xb0bc21ee
+0, 299, 299, 1, 38016, 0xc11f3ec2
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cabast3_sony_e b/ffmpeg1/tests/ref/fate/h264-conformance-cabast3_sony_e
new file mode 100644
index 0000000..00519ef
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cabast3_sony_e
@@ -0,0 +1,26 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x96ebb3a2
+0, 1, 1, 1, 152064, 0x5184d912
+0, 2, 2, 1, 152064, 0xfa0c9abe
+0, 3, 3, 1, 152064, 0x6dd81860
+0, 4, 4, 1, 152064, 0xc5202966
+0, 5, 5, 1, 152064, 0xa7dfdf71
+0, 6, 6, 1, 152064, 0xffa5609f
+0, 7, 7, 1, 152064, 0x352e7ce5
+0, 8, 8, 1, 152064, 0xc9e52c2a
+0, 9, 9, 1, 152064, 0x12dfd28d
+0, 10, 10, 1, 152064, 0x962af5fe
+0, 11, 11, 1, 152064, 0xa8459cb1
+0, 12, 12, 1, 152064, 0xc0771945
+0, 13, 13, 1, 152064, 0xfcbc351d
+0, 14, 14, 1, 152064, 0xd925dfa3
+0, 15, 15, 1, 152064, 0x7c627c21
+0, 16, 16, 1, 152064, 0x617d8d96
+0, 17, 17, 1, 152064, 0x91816b34
+0, 18, 18, 1, 152064, 0xece0eaf8
+0, 19, 19, 1, 152064, 0x7b1408ef
+0, 20, 20, 1, 152064, 0x7430c4d2
+0, 21, 21, 1, 152064, 0xdb5844fa
+0, 22, 22, 1, 152064, 0xcc874ff7
+0, 23, 23, 1, 152064, 0x97630fb8
+0, 24, 24, 1, 152064, 0x16ae9c92
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cabastbr3_sony_b b/ffmpeg1/tests/ref/fate/h264-conformance-cabastbr3_sony_b
new file mode 100644
index 0000000..765f53f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cabastbr3_sony_b
@@ -0,0 +1,26 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x96ebb3a2
+0, 1, 1, 1, 152064, 0x5184d912
+0, 2, 2, 1, 152064, 0xb7b5ba68
+0, 3, 3, 1, 152064, 0x6dd81860
+0, 4, 4, 1, 152064, 0xcffe2ff0
+0, 5, 5, 1, 152064, 0x27740140
+0, 6, 6, 1, 152064, 0xffa5609f
+0, 7, 7, 1, 152064, 0x05e9a6c6
+0, 8, 8, 1, 152064, 0xa5ea5692
+0, 9, 9, 1, 152064, 0x78a9dd79
+0, 10, 10, 1, 152064, 0x2bf218b3
+0, 11, 11, 1, 152064, 0x4591cadc
+0, 12, 12, 1, 152064, 0x075428a8
+0, 13, 13, 1, 152064, 0xbbda56d8
+0, 14, 14, 1, 152064, 0xc8fa1a28
+0, 15, 15, 1, 152064, 0x7c627c21
+0, 16, 16, 1, 152064, 0x9043ba42
+0, 17, 17, 1, 152064, 0xb426940d
+0, 18, 18, 1, 152064, 0x51d4058b
+0, 19, 19, 1, 152064, 0xb7513536
+0, 20, 20, 1, 152064, 0xe906ffab
+0, 21, 21, 1, 152064, 0x3d075443
+0, 22, 22, 1, 152064, 0x85c37afd
+0, 23, 23, 1, 152064, 0x2ac74040
+0, 24, 24, 1, 152064, 0x3a08aa90
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cabref3_sand_d b/ffmpeg1/tests/ref/fate/h264-conformance-cabref3_sand_d
new file mode 100644
index 0000000..9e555f6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cabref3_sand_d
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cacqp3_sony_d b/ffmpeg1/tests/ref/fate/h264-conformance-cacqp3_sony_d
new file mode 100644
index 0000000..c368529
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cacqp3_sony_d
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x295a375c
+0, 1, 1, 1, 38016, 0xd0da1f37
+0, 2, 2, 1, 38016, 0x0e5ed514
+0, 3, 3, 1, 38016, 0x477dcbe7
+0, 4, 4, 1, 38016, 0x2e0980f3
+0, 5, 5, 1, 38016, 0xf6d0888f
+0, 6, 6, 1, 38016, 0x884f4bf2
+0, 7, 7, 1, 38016, 0x75135ea9
+0, 8, 8, 1, 38016, 0xc85031bd
+0, 9, 9, 1, 38016, 0x4dde6353
+0, 10, 10, 1, 38016, 0x8c8f4f2a
+0, 11, 11, 1, 38016, 0xbdae892b
+0, 12, 12, 1, 38016, 0x4898783a
+0, 13, 13, 1, 38016, 0xb4cc9d6b
+0, 14, 14, 1, 38016, 0xd24f8797
+0, 15, 15, 1, 38016, 0x74c4a0df
+0, 16, 16, 1, 38016, 0x43e58a83
+0, 17, 17, 1, 38016, 0x05bba901
+0, 18, 18, 1, 38016, 0xe2d57f63
+0, 19, 19, 1, 38016, 0xdb398611
+0, 20, 20, 1, 38016, 0x7f143de2
+0, 21, 21, 1, 38016, 0xff39406f
+0, 22, 22, 1, 38016, 0xfed61162
+0, 23, 23, 1, 38016, 0xb9e62a1e
+0, 24, 24, 1, 38016, 0x65f316d1
+0, 25, 25, 1, 38016, 0xda782b9c
+0, 26, 26, 1, 38016, 0xb64b202c
+0, 27, 27, 1, 38016, 0xb2b141ea
+0, 28, 28, 1, 38016, 0xdb6b421b
+0, 29, 29, 1, 38016, 0xf3287342
+0, 30, 30, 1, 38016, 0xfbb35b92
+0, 31, 31, 1, 38016, 0x8c77a0de
+0, 32, 32, 1, 38016, 0x326c9cb4
+0, 33, 33, 1, 38016, 0x7e73cc0c
+0, 34, 34, 1, 38016, 0xb948b8e9
+0, 35, 35, 1, 38016, 0x6f7adb29
+0, 36, 36, 1, 38016, 0xb629b8c5
+0, 37, 37, 1, 38016, 0xf798ccd4
+0, 38, 38, 1, 38016, 0xde5bb331
+0, 39, 39, 1, 38016, 0xbca4d8dc
+0, 40, 40, 1, 38016, 0x9369ba10
+0, 41, 41, 1, 38016, 0x581ed965
+0, 42, 42, 1, 38016, 0xce7bbd59
+0, 43, 43, 1, 38016, 0x95d9ce3d
+0, 44, 44, 1, 38016, 0x6154bd98
+0, 45, 45, 1, 38016, 0xa279c487
+0, 46, 46, 1, 38016, 0x8169b5a6
+0, 47, 47, 1, 38016, 0x709dc334
+0, 48, 48, 1, 38016, 0x82aabea1
+0, 49, 49, 1, 38016, 0x6923c4c3
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cafi1_sva_c b/ffmpeg1/tests/ref/fate/h264-conformance-cafi1_sva_c
new file mode 100644
index 0000000..180adf1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cafi1_sva_c
@@ -0,0 +1,34 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cama1_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-cama1_sony_c
new file mode 100644
index 0000000..6685216
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cama1_sony_c
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x75701511
+0, 1, 1, 1, 518400, 0xa7eeaa16
+0, 2, 2, 1, 518400, 0xe0f32e35
+0, 3, 3, 1, 518400, 0x7a1dadd9
+0, 4, 4, 1, 518400, 0x4a1672a6
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cama1_toshiba_b b/ffmpeg1/tests/ref/fate/h264-conformance-cama1_toshiba_b
new file mode 100644
index 0000000..ab2da4a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cama1_toshiba_b
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x9a9ce366
+0, 1, 1, 1, 152064, 0xf4639828
+0, 2, 2, 1, 152064, 0x625024a3
+0, 3, 3, 1, 152064, 0x80dc2f9d
+0, 4, 4, 1, 152064, 0xb2c4feea
+0, 5, 5, 1, 152064, 0x4ec6ad64
+0, 6, 6, 1, 152064, 0x1957bec3
+0, 7, 7, 1, 152064, 0xb682799d
+0, 8, 8, 1, 152064, 0x34cd2053
+0, 9, 9, 1, 152064, 0x81490b4c
+0, 10, 10, 1, 152064, 0x242dc943
+0, 11, 11, 1, 152064, 0x3e126734
+0, 12, 12, 1, 152064, 0x8e474ff8
+0, 13, 13, 1, 152064, 0x239d2fbd
+0, 14, 14, 1, 152064, 0x0ca3e16f
+0, 15, 15, 1, 152064, 0x6161d7c2
+0, 16, 16, 1, 152064, 0xca7ad1af
+0, 17, 17, 1, 152064, 0xf8ef9026
+0, 18, 18, 1, 152064, 0x01f2f4c1
+0, 19, 19, 1, 152064, 0x510b19ec
+0, 20, 20, 1, 152064, 0xe489028b
+0, 21, 21, 1, 152064, 0x7a693c1e
+0, 22, 22, 1, 152064, 0x276b23fe
+0, 23, 23, 1, 152064, 0x0e9ced3a
+0, 24, 24, 1, 152064, 0x658228f7
+0, 25, 25, 1, 152064, 0x6a271bc3
+0, 26, 26, 1, 152064, 0x431ecd8b
+0, 27, 27, 1, 152064, 0x23a5ed14
+0, 28, 28, 1, 152064, 0x76fbe121
+0, 29, 29, 1, 152064, 0x471f919d
+0, 30, 30, 1, 152064, 0x16bfabbc
+0, 31, 31, 1, 152064, 0x0762993f
+0, 32, 32, 1, 152064, 0x5a2b0b0e
+0, 33, 33, 1, 152064, 0x81415ef7
+0, 34, 34, 1, 152064, 0xb96e4164
+0, 35, 35, 1, 152064, 0xf77aee83
+0, 36, 36, 1, 152064, 0x6af81633
+0, 37, 37, 1, 152064, 0xed78e5b5
+0, 38, 38, 1, 152064, 0x67e38e2c
+0, 39, 39, 1, 152064, 0x0417ae01
+0, 40, 40, 1, 152064, 0x3887b312
+0, 41, 41, 1, 152064, 0x3a4b70fb
+0, 42, 42, 1, 152064, 0xcaae9e7f
+0, 43, 43, 1, 152064, 0xaf9597be
+0, 44, 44, 1, 152064, 0x9bae63d3
+0, 45, 45, 1, 152064, 0x0e80825f
+0, 46, 46, 1, 152064, 0x915661fd
+0, 47, 47, 1, 152064, 0x67d3dc94
+0, 48, 48, 1, 152064, 0x3dcf240c
+0, 49, 49, 1, 152064, 0x127ff832
+0, 50, 50, 1, 152064, 0xc8969981
+0, 51, 51, 1, 152064, 0x57179c77
+0, 52, 52, 1, 152064, 0x9f88656c
+0, 53, 53, 1, 152064, 0xc28ff5d3
+0, 54, 54, 1, 152064, 0xf100fad9
+0, 55, 55, 1, 152064, 0xb570ce12
+0, 56, 56, 1, 152064, 0xe8f28955
+0, 57, 57, 1, 152064, 0x1f0a9549
+0, 58, 58, 1, 152064, 0x22b17e9b
+0, 59, 59, 1, 152064, 0x7cf1400e
+0, 60, 60, 1, 152064, 0xafd273b7
+0, 61, 61, 1, 152064, 0xeb9b712e
+0, 62, 62, 1, 152064, 0x0f81de24
+0, 63, 63, 1, 152064, 0x8f4e1953
+0, 64, 64, 1, 152064, 0x682e2170
+0, 65, 65, 1, 152064, 0xc32ad1b2
+0, 66, 66, 1, 152064, 0x53a81d79
+0, 67, 67, 1, 152064, 0x54002596
+0, 68, 68, 1, 152064, 0x4b5fdbd9
+0, 69, 69, 1, 152064, 0x96613368
+0, 70, 70, 1, 152064, 0xd6ac0171
+0, 71, 71, 1, 152064, 0xf1c1b7b7
+0, 72, 72, 1, 152064, 0xc730d82f
+0, 73, 73, 1, 152064, 0x0415d934
+0, 74, 74, 1, 152064, 0x5338915e
+0, 75, 75, 1, 152064, 0x8e9dda6d
+0, 76, 76, 1, 152064, 0xe3a8b0a0
+0, 77, 77, 1, 152064, 0x5fa36e44
+0, 78, 78, 1, 152064, 0x0e63dc72
+0, 79, 79, 1, 152064, 0xd0dad71f
+0, 80, 80, 1, 152064, 0x0c4aac94
+0, 81, 81, 1, 152064, 0x60d50e8d
+0, 82, 82, 1, 152064, 0x96872d7c
+0, 83, 83, 1, 152064, 0x4fcefc33
+0, 84, 84, 1, 152064, 0x6b8157c9
+0, 85, 85, 1, 152064, 0xa40d527d
+0, 86, 86, 1, 152064, 0x9884480a
+0, 87, 87, 1, 152064, 0xff5d9754
+0, 88, 88, 1, 152064, 0x4a26a74d
+0, 89, 89, 1, 152064, 0x81059e82
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cama1_vtc_c b/ffmpeg1/tests/ref/fate/h264-conformance-cama1_vtc_c
new file mode 100644
index 0000000..eeb66b0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cama1_vtc_c
@@ -0,0 +1,5 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cama2_vtc_b b/ffmpeg1/tests/ref/fate/h264-conformance-cama2_vtc_b
new file mode 100644
index 0000000..0dfe6a9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cama2_vtc_b
@@ -0,0 +1,5 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cama3_sand_e b/ffmpeg1/tests/ref/fate/h264-conformance-cama3_sand_e
new file mode 100644
index 0000000..f89bc40
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cama3_sand_e
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xf772f152
+0, 1, 1, 1, 152064, 0x7c501772
+0, 2, 2, 1, 152064, 0x98ed0a07
+0, 3, 3, 1, 152064, 0x8f9289ae
+0, 4, 4, 1, 152064, 0x4047c5e6
+0, 5, 5, 1, 152064, 0xf1f11922
+0, 6, 6, 1, 152064, 0xef8d8130
+0, 7, 7, 1, 152064, 0x6cef489d
+0, 8, 8, 1, 152064, 0x3743a97f
+0, 9, 9, 1, 152064, 0x9d6b9846
+0, 10, 10, 1, 152064, 0x332e05a7
+0, 11, 11, 1, 152064, 0x7dad10af
+0, 12, 12, 1, 152064, 0x835c99de
+0, 13, 13, 1, 152064, 0x2ba3f9bb
+0, 14, 14, 1, 152064, 0xf8ab5286
+0, 15, 15, 1, 152064, 0x76624cca
+0, 16, 16, 1, 152064, 0x8ebf6342
+0, 17, 17, 1, 152064, 0x8756f87b
+0, 18, 18, 1, 152064, 0xf005bc2f
+0, 19, 19, 1, 152064, 0x9b1ae18e
+0, 20, 20, 1, 152064, 0x3e1154aa
+0, 21, 21, 1, 152064, 0x851e28d6
+0, 22, 22, 1, 152064, 0x940a2518
+0, 23, 23, 1, 152064, 0x861be99c
+0, 24, 24, 1, 152064, 0x21a788a7
+0, 25, 25, 1, 152064, 0x53e216eb
+0, 26, 26, 1, 152064, 0x053cb9ec
+0, 27, 27, 1, 152064, 0x3bb5cfc6
+0, 28, 28, 1, 152064, 0x92b250c3
+0, 29, 29, 1, 152064, 0xacc20f1c
+0, 30, 30, 1, 152064, 0xb01256d3
+0, 31, 31, 1, 152064, 0x6db62cf2
+0, 32, 32, 1, 152064, 0x7fa3074d
+0, 33, 33, 1, 152064, 0x63385103
+0, 34, 34, 1, 152064, 0x83ba02b6
+0, 35, 35, 1, 152064, 0x3731edbb
+0, 36, 36, 1, 152064, 0xb73d5b99
+0, 37, 37, 1, 152064, 0xd2e743e2
+0, 38, 38, 1, 152064, 0x4bcd5bf2
+0, 39, 39, 1, 152064, 0x45ef7b97
+0, 40, 40, 1, 152064, 0x757952c6
+0, 41, 41, 1, 152064, 0xed73e3db
+0, 42, 42, 1, 152064, 0x8cf41b15
+0, 43, 43, 1, 152064, 0x86e2b02d
+0, 44, 44, 1, 152064, 0xf8d16c87
+0, 45, 45, 1, 152064, 0x6720db65
+0, 46, 46, 1, 152064, 0x67a5a150
+0, 47, 47, 1, 152064, 0x1849fa2a
+0, 48, 48, 1, 152064, 0xb0156742
+0, 49, 49, 1, 152064, 0xde75b1fd
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cama3_vtc_b b/ffmpeg1/tests/ref/fate/h264-conformance-cama3_vtc_b
new file mode 100644
index 0000000..46821c1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cama3_vtc_b
@@ -0,0 +1,5 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-camaci3_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-camaci3_sony_c
new file mode 100644
index 0000000..5896460
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-camaci3_sony_c
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 36864, 0x9b5dcf28
+0, 1, 1, 1, 36864, 0xb13d4fee
+0, 2, 2, 1, 36864, 0x11c512ac
+0, 3, 3, 1, 36864, 0xc013b0e3
+0, 4, 4, 1, 36864, 0x25002dae
+0, 5, 5, 1, 36864, 0xefd0055a
+0, 6, 6, 1, 36864, 0x6be2d3b2
+0, 7, 7, 1, 36864, 0xa8a0d525
+0, 8, 8, 1, 36864, 0x1bf942e8
+0, 9, 9, 1, 36864, 0x5c08c94f
+0, 10, 10, 1, 36864, 0x5555e762
+0, 11, 11, 1, 36864, 0xcc1429c7
+0, 12, 12, 1, 36864, 0xa3cc1535
+0, 13, 13, 1, 36864, 0x14dc2b75
+0, 14, 14, 1, 36864, 0x6b965ce9
+0, 15, 15, 1, 36864, 0x7424d19b
+0, 16, 16, 1, 36864, 0xcada6a7f
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-camanl1_toshiba_b b/ffmpeg1/tests/ref/fate/h264-conformance-camanl1_toshiba_b
new file mode 100644
index 0000000..2c3c557
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-camanl1_toshiba_b
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xb1edd842
+0, 1, 1, 1, 152064, 0x551f8f45
+0, 2, 2, 1, 152064, 0xb4931cb2
+0, 3, 3, 1, 152064, 0x78882b27
+0, 4, 4, 1, 152064, 0x3afef36d
+0, 5, 5, 1, 152064, 0x85afad0a
+0, 6, 6, 1, 152064, 0x3a8bab81
+0, 7, 7, 1, 152064, 0x2a437174
+0, 8, 8, 1, 152064, 0x22421437
+0, 9, 9, 1, 152064, 0x39c5f125
+0, 10, 10, 1, 152064, 0x256eaad2
+0, 11, 11, 1, 152064, 0x668a5d31
+0, 12, 12, 1, 152064, 0x412a4aa7
+0, 13, 13, 1, 152064, 0x3f091baf
+0, 14, 14, 1, 152064, 0xbf16d262
+0, 15, 15, 1, 152064, 0x2fc4ce67
+0, 16, 16, 1, 152064, 0x119cde3e
+0, 17, 17, 1, 152064, 0xb40b8632
+0, 18, 18, 1, 152064, 0x4be4f192
+0, 19, 19, 1, 152064, 0x906c1237
+0, 20, 20, 1, 152064, 0x95380024
+0, 21, 21, 1, 152064, 0x6a833025
+0, 22, 22, 1, 152064, 0x681d1c4f
+0, 23, 23, 1, 152064, 0x08c8dea4
+0, 24, 24, 1, 152064, 0xc69226f0
+0, 25, 25, 1, 152064, 0x86631102
+0, 26, 26, 1, 152064, 0x7f40c77a
+0, 27, 27, 1, 152064, 0xc746ddd4
+0, 28, 28, 1, 152064, 0x5f2bd3cb
+0, 29, 29, 1, 152064, 0x643c8316
+0, 30, 30, 1, 152064, 0x5b7fa380
+0, 31, 31, 1, 152064, 0x82438cf7
+0, 32, 32, 1, 152064, 0xdee0f7e7
+0, 33, 33, 1, 152064, 0xc50d41f1
+0, 34, 34, 1, 152064, 0xf3453631
+0, 35, 35, 1, 152064, 0x90bce66b
+0, 36, 36, 1, 152064, 0x045b03f7
+0, 37, 37, 1, 152064, 0xf64bd756
+0, 38, 38, 1, 152064, 0xff997ef2
+0, 39, 39, 1, 152064, 0x3613a0a5
+0, 40, 40, 1, 152064, 0xe6a7a8d6
+0, 41, 41, 1, 152064, 0xb0906c42
+0, 42, 42, 1, 152064, 0x4dfc912b
+0, 43, 43, 1, 152064, 0x81e3991c
+0, 44, 44, 1, 152064, 0x4efc61fb
+0, 45, 45, 1, 152064, 0xed478395
+0, 46, 46, 1, 152064, 0x4cb25ab6
+0, 47, 47, 1, 152064, 0x28e7d51f
+0, 48, 48, 1, 152064, 0x8bcc1a8d
+0, 49, 49, 1, 152064, 0x2fe1f240
+0, 50, 50, 1, 152064, 0xb4978ef8
+0, 51, 51, 1, 152064, 0xe3929556
+0, 52, 52, 1, 152064, 0xd370632a
+0, 53, 53, 1, 152064, 0xba86ffb2
+0, 54, 54, 1, 152064, 0x444bf18c
+0, 55, 55, 1, 152064, 0xab40bd14
+0, 56, 56, 1, 152064, 0xfd488a5d
+0, 57, 57, 1, 152064, 0xe1f09568
+0, 58, 58, 1, 152064, 0x09ee7a7e
+0, 59, 59, 1, 152064, 0x9360397c
+0, 60, 60, 1, 152064, 0xdbd467e9
+0, 61, 61, 1, 152064, 0x99726777
+0, 62, 62, 1, 152064, 0x009fd46c
+0, 63, 63, 1, 152064, 0xcf770fdb
+0, 64, 64, 1, 152064, 0x2a890fd9
+0, 65, 65, 1, 152064, 0x7f40de4b
+0, 66, 66, 1, 152064, 0x04191304
+0, 67, 67, 1, 152064, 0x15722022
+0, 68, 68, 1, 152064, 0x59f4ea93
+0, 69, 69, 1, 152064, 0x28ba373f
+0, 70, 70, 1, 152064, 0xf9e400b8
+0, 71, 71, 1, 152064, 0x85c4bd98
+0, 72, 72, 1, 152064, 0x6917d2a5
+0, 73, 73, 1, 152064, 0x61cae234
+0, 74, 74, 1, 152064, 0x752a9a2d
+0, 75, 75, 1, 152064, 0x1ee2d9bd
+0, 76, 76, 1, 152064, 0xdce9ab8e
+0, 77, 77, 1, 152064, 0x51225fd0
+0, 78, 78, 1, 152064, 0x10e8cb60
+0, 79, 79, 1, 152064, 0x8d07cd25
+0, 80, 80, 1, 152064, 0xb18ba61b
+0, 81, 81, 1, 152064, 0xb0f10280
+0, 82, 82, 1, 152064, 0x76a71f13
+0, 83, 83, 1, 152064, 0x3004f5a1
+0, 84, 84, 1, 152064, 0x9aba5724
+0, 85, 85, 1, 152064, 0x5db85385
+0, 86, 86, 1, 152064, 0xbe9d3f5b
+0, 87, 87, 1, 152064, 0xa71e85bb
+0, 88, 88, 1, 152064, 0xdcf59cd7
+0, 89, 89, 1, 152064, 0x5e319459
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-camanl2_toshiba_b b/ffmpeg1/tests/ref/fate/h264-conformance-camanl2_toshiba_b
new file mode 100644
index 0000000..066c57f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-camanl2_toshiba_b
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xb1edd842
+0, 1, 1, 1, 152064, 0x551f8f45
+0, 2, 2, 1, 152064, 0xb4931cb2
+0, 3, 3, 1, 152064, 0x5f352e98
+0, 4, 4, 1, 152064, 0xeba5fe28
+0, 5, 5, 1, 152064, 0x85afad0a
+0, 6, 6, 1, 152064, 0x1120b6a4
+0, 7, 7, 1, 152064, 0x67506e16
+0, 8, 8, 1, 152064, 0x22421437
+0, 9, 9, 1, 152064, 0x929becd6
+0, 10, 10, 1, 152064, 0x6ffcb4b0
+0, 11, 11, 1, 152064, 0x668a5d31
+0, 12, 12, 1, 152064, 0x1b034ebb
+0, 13, 13, 1, 152064, 0x7e2d213c
+0, 14, 14, 1, 152064, 0xbf16d262
+0, 15, 15, 1, 152064, 0xdeaecab3
+0, 16, 16, 1, 152064, 0xd220d704
+0, 17, 17, 1, 152064, 0xb40b8632
+0, 18, 18, 1, 152064, 0xbdf0ef57
+0, 19, 19, 1, 152064, 0x7e2e10df
+0, 20, 20, 1, 152064, 0x95380024
+0, 21, 21, 1, 152064, 0xdb80256d
+0, 22, 22, 1, 152064, 0xa4561c61
+0, 23, 23, 1, 152064, 0x08c8dea4
+0, 24, 24, 1, 152064, 0x7bb917d6
+0, 25, 25, 1, 152064, 0x796f0e2b
+0, 26, 26, 1, 152064, 0x7f40c77a
+0, 27, 27, 1, 152064, 0xda32de2e
+0, 28, 28, 1, 152064, 0x00ffc15a
+0, 29, 29, 1, 152064, 0x643c8316
+0, 30, 30, 1, 152064, 0xb7588f7f
+0, 31, 31, 1, 152064, 0xa4e07c02
+0, 32, 32, 1, 152064, 0xdee0f7e7
+0, 33, 33, 1, 152064, 0x2c3245ee
+0, 34, 34, 1, 152064, 0x6565355b
+0, 35, 35, 1, 152064, 0x90bce66b
+0, 36, 36, 1, 152064, 0x0abffe08
+0, 37, 37, 1, 152064, 0x119ccc3e
+0, 38, 38, 1, 152064, 0xff997ef2
+0, 39, 39, 1, 152064, 0xba4b9820
+0, 40, 40, 1, 152064, 0xb6dfa596
+0, 41, 41, 1, 152064, 0xb0906c42
+0, 42, 42, 1, 152064, 0xf3c29133
+0, 43, 43, 1, 152064, 0x08cd8e2b
+0, 44, 44, 1, 152064, 0x4efc61fb
+0, 45, 45, 1, 152064, 0x5b7c6e48
+0, 46, 46, 1, 152064, 0xd28a47c2
+0, 47, 47, 1, 152064, 0x28e7d51f
+0, 48, 48, 1, 152064, 0x3a5619b1
+0, 49, 49, 1, 152064, 0xa517e7f2
+0, 50, 50, 1, 152064, 0xb4978ef8
+0, 51, 51, 1, 152064, 0x25929175
+0, 52, 52, 1, 152064, 0x20f05834
+0, 53, 53, 1, 152064, 0xba86ffb2
+0, 54, 54, 1, 152064, 0xa265f06f
+0, 55, 55, 1, 152064, 0x97bbbfb7
+0, 56, 56, 1, 152064, 0xfd488a5d
+0, 57, 57, 1, 152064, 0x1b0989da
+0, 58, 58, 1, 152064, 0xfd1878ce
+0, 59, 59, 1, 152064, 0x9360397c
+0, 60, 60, 1, 152064, 0x0d8151a7
+0, 61, 61, 1, 152064, 0xe7a05bb8
+0, 62, 62, 1, 152064, 0x009fd46c
+0, 63, 63, 1, 152064, 0x8751123f
+0, 64, 64, 1, 152064, 0x8252101a
+0, 65, 65, 1, 152064, 0x7f40de4b
+0, 66, 66, 1, 152064, 0x4ea317fe
+0, 67, 67, 1, 152064, 0x519224d9
+0, 68, 68, 1, 152064, 0x59f4ea93
+0, 69, 69, 1, 152064, 0xc93c1dba
+0, 70, 70, 1, 152064, 0xe3c9fb61
+0, 71, 71, 1, 152064, 0x85c4bd98
+0, 72, 72, 1, 152064, 0xcebacfd3
+0, 73, 73, 1, 152064, 0x7327da99
+0, 74, 74, 1, 152064, 0x752a9a2d
+0, 75, 75, 1, 152064, 0x5ea6c8d2
+0, 76, 76, 1, 152064, 0x66fd8c6f
+0, 77, 77, 1, 152064, 0x51225fd0
+0, 78, 78, 1, 152064, 0x58b9be96
+0, 79, 79, 1, 152064, 0xa5abcdb7
+0, 80, 80, 1, 152064, 0xb18ba61b
+0, 81, 81, 1, 152064, 0xc7d20190
+0, 82, 82, 1, 152064, 0xb6da14aa
+0, 83, 83, 1, 152064, 0x3004f5a1
+0, 84, 84, 1, 152064, 0x129354e2
+0, 85, 85, 1, 152064, 0xffa148d5
+0, 86, 86, 1, 152064, 0xbe9d3f5b
+0, 87, 87, 1, 152064, 0x1c7f8976
+0, 88, 88, 1, 152064, 0xa107a54d
+0, 89, 89, 1, 152064, 0x5e319459
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-camanl3_sand_e b/ffmpeg1/tests/ref/fate/h264-conformance-camanl3_sand_e
new file mode 100644
index 0000000..a76170c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-camanl3_sand_e
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x6c1ff6a7
+0, 1, 1, 1, 152064, 0x17f1ff3a
+0, 2, 2, 1, 152064, 0xf7ddcda8
+0, 3, 3, 1, 152064, 0xdcb64a37
+0, 4, 4, 1, 152064, 0x4d2ad1db
+0, 5, 5, 1, 152064, 0x2e49028a
+0, 6, 6, 1, 152064, 0xcebb0f39
+0, 7, 7, 1, 152064, 0xac74e574
+0, 8, 8, 1, 152064, 0x8cd667e5
+0, 9, 9, 1, 152064, 0xda511cf6
+0, 10, 10, 1, 152064, 0x795c45c1
+0, 11, 11, 1, 152064, 0x6034397c
+0, 12, 12, 1, 152064, 0xafb4b03d
+0, 13, 13, 1, 152064, 0xd73b1785
+0, 14, 14, 1, 152064, 0xd873a98f
+0, 15, 15, 1, 152064, 0x07ac191e
+0, 16, 16, 1, 152064, 0x14fa5413
+0, 17, 17, 1, 152064, 0xe6d1667e
+0, 18, 18, 1, 152064, 0x1cc2a92e
+0, 19, 19, 1, 152064, 0x4a878e35
+0, 20, 20, 1, 152064, 0x4adfa52c
+0, 21, 21, 1, 152064, 0x8dbb370b
+0, 22, 22, 1, 152064, 0x4d66a69a
+0, 23, 23, 1, 152064, 0x2dcb66da
+0, 24, 24, 1, 152064, 0x74591150
+0, 25, 25, 1, 152064, 0x259eb13f
+0, 26, 26, 1, 152064, 0xe5c96dd3
+0, 27, 27, 1, 152064, 0x0fb52fe3
+0, 28, 28, 1, 152064, 0x47c506a0
+0, 29, 29, 1, 152064, 0xcc09ca7a
+0, 30, 30, 1, 152064, 0xc3430f03
+0, 31, 31, 1, 152064, 0x702b1a73
+0, 32, 32, 1, 152064, 0x4f385186
+0, 33, 33, 1, 152064, 0x07a34aa5
+0, 34, 34, 1, 152064, 0x698310b0
+0, 35, 35, 1, 152064, 0x5fa469bc
+0, 36, 36, 1, 152064, 0xb6ab39ef
+0, 37, 37, 1, 152064, 0xbb6dc59d
+0, 38, 38, 1, 152064, 0xe5fa7503
+0, 39, 39, 1, 152064, 0xd367512a
+0, 40, 40, 1, 152064, 0x215c0ca7
+0, 41, 41, 1, 152064, 0x6bea4847
+0, 42, 42, 1, 152064, 0xba03f875
+0, 43, 43, 1, 152064, 0x3ac282cd
+0, 44, 44, 1, 152064, 0x23aee807
+0, 45, 45, 1, 152064, 0x4274c84c
+0, 46, 46, 1, 152064, 0xdfdacf4b
+0, 47, 47, 1, 152064, 0xb2de9e6e
+0, 48, 48, 1, 152064, 0x456b684e
+0, 49, 49, 1, 152064, 0xa6297c83
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-camasl3_sony_b b/ffmpeg1/tests/ref/fate/h264-conformance-camasl3_sony_b
new file mode 100644
index 0000000..0cb41e1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-camasl3_sony_b
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 36864, 0xfe2ad849
+0, 1, 1, 1, 36864, 0x37954ba1
+0, 2, 2, 1, 36864, 0xaf0e0877
+0, 3, 3, 1, 36864, 0xf28cadd1
+0, 4, 4, 1, 36864, 0xe182365a
+0, 5, 5, 1, 36864, 0xdcdc03b7
+0, 6, 6, 1, 36864, 0x2eded02f
+0, 7, 7, 1, 36864, 0xa706ca87
+0, 8, 8, 1, 36864, 0x446f4c83
+0, 9, 9, 1, 36864, 0x766acab3
+0, 10, 10, 1, 36864, 0x651feaed
+0, 11, 11, 1, 36864, 0x834a2a75
+0, 12, 12, 1, 36864, 0xb1811822
+0, 13, 13, 1, 36864, 0xd8e12e21
+0, 14, 14, 1, 36864, 0x6b445b13
+0, 15, 15, 1, 36864, 0xa4ded223
+0, 16, 16, 1, 36864, 0xbd1161b5
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30 b/ffmpeg1/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30
new file mode 100644
index 0000000..c4f2782
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x672279df
+0, 1, 1, 1, 518400, 0xb248a762
+0, 2, 2, 1, 518400, 0x4399de88
+0, 3, 3, 1, 518400, 0x14200d2d
+0, 4, 4, 1, 518400, 0x14a704cf
+0, 5, 5, 1, 518400, 0xcaac5431
+0, 6, 6, 1, 518400, 0x69d77cee
+0, 7, 7, 1, 518400, 0x420d5f92
+0, 8, 8, 1, 518400, 0x083a357d
+0, 9, 9, 1, 518400, 0x01777426
+0, 10, 10, 1, 518400, 0x474640e9
+0, 11, 11, 1, 518400, 0x3d690eab
+0, 12, 12, 1, 518400, 0x58074830
+0, 13, 13, 1, 518400, 0x3e3f0fcc
+0, 14, 14, 1, 518400, 0x8c72de01
+0, 15, 15, 1, 518400, 0xbf0a4f6f
+0, 16, 16, 1, 518400, 0xbdea010d
+0, 17, 17, 1, 518400, 0x54bdc458
+0, 18, 18, 1, 518400, 0xdcd00ed0
+0, 19, 19, 1, 518400, 0x64ba9ba9
+0, 20, 20, 1, 518400, 0x5c0c6790
+0, 21, 21, 1, 518400, 0x178674ed
+0, 22, 22, 1, 518400, 0x9ebec8d3
+0, 23, 23, 1, 518400, 0x375c5426
+0, 24, 24, 1, 518400, 0x19987af8
+0, 25, 25, 1, 518400, 0x347ec12c
+0, 26, 26, 1, 518400, 0x96856c36
+0, 27, 27, 1, 518400, 0xb81264a6
+0, 28, 28, 1, 518400, 0xde0a08d6
+0, 29, 29, 1, 518400, 0x19cb10be
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31 b/ffmpeg1/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31
new file mode 100644
index 0000000..1bee037
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x077637bf
+0, 1, 1, 1, 518400, 0xbd096d55
+0, 2, 2, 1, 518400, 0x58b58820
+0, 3, 3, 1, 518400, 0xdf24aced
+0, 4, 4, 1, 518400, 0x2354c6a2
+0, 5, 5, 1, 518400, 0xedaaffdf
+0, 6, 6, 1, 518400, 0x28a8f027
+0, 7, 7, 1, 518400, 0x05dee3d2
+0, 8, 8, 1, 518400, 0x2ae9dbe4
+0, 9, 9, 1, 518400, 0x361fec4a
+0, 10, 10, 1, 518400, 0xd9c7b07d
+0, 11, 11, 1, 518400, 0xa9d69c9f
+0, 12, 12, 1, 518400, 0x7f44c08c
+0, 13, 13, 1, 518400, 0xbfed83b4
+0, 14, 14, 1, 518400, 0x65a5588c
+0, 15, 15, 1, 518400, 0xf4859855
+0, 16, 16, 1, 518400, 0xcba96df9
+0, 17, 17, 1, 518400, 0x8ae11dfd
+0, 18, 18, 1, 518400, 0xf0e36904
+0, 19, 19, 1, 518400, 0x45cf1cb3
+0, 20, 20, 1, 518400, 0xffefde04
+0, 21, 21, 1, 518400, 0xc2a8edef
+0, 22, 22, 1, 518400, 0x72b15456
+0, 23, 23, 1, 518400, 0x67b8dd35
+0, 24, 24, 1, 518400, 0x8b91f38e
+0, 25, 25, 1, 518400, 0xe7055df1
+0, 26, 26, 1, 518400, 0x5c32200d
+0, 27, 27, 1, 518400, 0xfbb709dc
+0, 28, 28, 1, 518400, 0x5c45b17f
+0, 29, 29, 1, 518400, 0x3a25903f
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canl1_sony_e b/ffmpeg1/tests/ref/fate/h264-conformance-canl1_sony_e
new file mode 100644
index 0000000..d90e957
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canl1_sony_e
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xc805351d
+0, 1, 1, 1, 38016, 0x3809fec3
+0, 2, 2, 1, 38016, 0xf698ce3c
+0, 3, 3, 1, 38016, 0x7e3da603
+0, 4, 4, 1, 38016, 0x68b07d81
+0, 5, 5, 1, 38016, 0xd91f717a
+0, 6, 6, 1, 38016, 0x48885dd6
+0, 7, 7, 1, 38016, 0x27e64e8e
+0, 8, 8, 1, 38016, 0x955835ce
+0, 9, 9, 1, 38016, 0xf19940a0
+0, 10, 10, 1, 38016, 0x9a1c51e4
+0, 11, 11, 1, 38016, 0xf59373af
+0, 12, 12, 1, 38016, 0x5d6c7d06
+0, 13, 13, 1, 38016, 0x32fca533
+0, 14, 14, 1, 38016, 0x37e69987
+0, 15, 15, 1, 38016, 0x96929e05
+0, 16, 16, 1, 38016, 0xee37a1f9
+0, 17, 17, 1, 38016, 0xc6279d8f
+0, 18, 18, 1, 38016, 0x33d28b0a
+0, 19, 19, 1, 38016, 0x42946b72
+0, 20, 20, 1, 38016, 0x51e947bf
+0, 21, 21, 1, 38016, 0xb10b2399
+0, 22, 22, 1, 38016, 0x250c0fe4
+0, 23, 23, 1, 38016, 0x81e20b18
+0, 24, 24, 1, 38016, 0xb93f00db
+0, 25, 25, 1, 38016, 0x4f9d13d8
+0, 26, 26, 1, 38016, 0x7d9c1184
+0, 27, 27, 1, 38016, 0xd3271d2c
+0, 28, 28, 1, 38016, 0x9b253539
+0, 29, 29, 1, 38016, 0xc4fd4d89
+0, 30, 30, 1, 38016, 0x006f63cc
+0, 31, 31, 1, 38016, 0xa7d976b4
+0, 32, 32, 1, 38016, 0x30de94d6
+0, 33, 33, 1, 38016, 0x2cb7a745
+0, 34, 34, 1, 38016, 0xa7a2b854
+0, 35, 35, 1, 38016, 0x1ca1ba1a
+0, 36, 36, 1, 38016, 0x13b2b430
+0, 37, 37, 1, 38016, 0x82bbb2de
+0, 38, 38, 1, 38016, 0x5fa0b4f9
+0, 39, 39, 1, 38016, 0xedefb64d
+0, 40, 40, 1, 38016, 0x5ccdbf33
+0, 41, 41, 1, 38016, 0x4fd0b4bb
+0, 42, 42, 1, 38016, 0x195fa008
+0, 43, 43, 1, 38016, 0xda1494e0
+0, 44, 44, 1, 38016, 0x98ac8fa6
+0, 45, 45, 1, 38016, 0xd1548835
+0, 46, 46, 1, 38016, 0x35c790ee
+0, 47, 47, 1, 38016, 0xecda84f1
+0, 48, 48, 1, 38016, 0x9d9f8710
+0, 49, 49, 1, 38016, 0x72d89581
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canl1_sva_b b/ffmpeg1/tests/ref/fate/h264-conformance-canl1_sva_b
new file mode 100644
index 0000000..0436f43
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canl1_sva_b
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x0bd22424
+0, 1, 1, 1, 38016, 0x4eb601f0
+0, 2, 2, 1, 38016, 0xe16de459
+0, 3, 3, 1, 38016, 0xde2e0c37
+0, 4, 4, 1, 38016, 0x14a0286b
+0, 5, 5, 1, 38016, 0x37bc35b5
+0, 6, 6, 1, 38016, 0xcfa24923
+0, 7, 7, 1, 38016, 0xac755ba0
+0, 8, 8, 1, 38016, 0x27d1822a
+0, 9, 9, 1, 38016, 0xa8039548
+0, 10, 10, 1, 38016, 0x400ea1fb
+0, 11, 11, 1, 38016, 0x7d2ca44a
+0, 12, 12, 1, 38016, 0xd42dae4f
+0, 13, 13, 1, 38016, 0x39ce9599
+0, 14, 14, 1, 38016, 0x37498aa1
+0, 15, 15, 1, 38016, 0x8558911f
+0, 16, 16, 1, 38016, 0x06a8a9ad
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canl1_toshiba_g b/ffmpeg1/tests/ref/fate/h264-conformance-canl1_toshiba_g
new file mode 100644
index 0000000..ced4c92
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canl1_toshiba_g
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x58892149
+0, 1, 1, 1, 38016, 0xda2ded74
+0, 2, 2, 1, 38016, 0x2661cdb0
+0, 3, 3, 1, 38016, 0xb581a73a
+0, 4, 4, 1, 38016, 0xa04a7e93
+0, 5, 5, 1, 38016, 0x149e7861
+0, 6, 6, 1, 38016, 0x53725080
+0, 7, 7, 1, 38016, 0x341a4d3f
+0, 8, 8, 1, 38016, 0x2ecc41ac
+0, 9, 9, 1, 38016, 0x99b85127
+0, 10, 10, 1, 38016, 0x7bdc50bc
+0, 11, 11, 1, 38016, 0xd3d58663
+0, 12, 12, 1, 38016, 0x717485e9
+0, 13, 13, 1, 38016, 0x2ac29c85
+0, 14, 14, 1, 38016, 0x36daa429
+0, 15, 15, 1, 38016, 0x8bb7a48e
+0, 16, 16, 1, 38016, 0xb38aab11
+0, 17, 17, 1, 38016, 0xacd89c4c
+0, 18, 18, 1, 38016, 0x676b71e1
+0, 19, 19, 1, 38016, 0xa2e7731e
+0, 20, 20, 1, 38016, 0x4a2f5766
+0, 21, 21, 1, 38016, 0x04ef1873
+0, 22, 22, 1, 38016, 0x52ac0171
+0, 23, 23, 1, 38016, 0xdd0a027a
+0, 24, 24, 1, 38016, 0x700810c6
+0, 25, 25, 1, 38016, 0x417f0cd3
+0, 26, 26, 1, 38016, 0xf8ef0da9
+0, 27, 27, 1, 38016, 0xfce62a5a
+0, 28, 28, 1, 38016, 0x03592b0a
+0, 29, 29, 1, 38016, 0x9b7b5373
+0, 30, 30, 1, 38016, 0xab015505
+0, 31, 31, 1, 38016, 0xf3387ae1
+0, 32, 32, 1, 38016, 0x1d09a5b6
+0, 33, 33, 1, 38016, 0x9159a5e2
+0, 34, 34, 1, 38016, 0x8887c177
+0, 35, 35, 1, 38016, 0x914dbacd
+0, 36, 36, 1, 38016, 0xaa97c0f6
+0, 37, 37, 1, 38016, 0x0837b14a
+0, 38, 38, 1, 38016, 0x0198be16
+0, 39, 39, 1, 38016, 0xc14bc9c6
+0, 40, 40, 1, 38016, 0xdb58c2a7
+0, 41, 41, 1, 38016, 0xa751ae90
+0, 42, 42, 1, 38016, 0x5813a64d
+0, 43, 43, 1, 38016, 0x73959f9b
+0, 44, 44, 1, 38016, 0xb0de8994
+0, 45, 45, 1, 38016, 0x79ea9214
+0, 46, 46, 1, 38016, 0x0b388957
+0, 47, 47, 1, 38016, 0x31aa91c9
+0, 48, 48, 1, 38016, 0xadcf88ec
+0, 49, 49, 1, 38016, 0x5bc99b68
+0, 50, 50, 1, 38016, 0x535e7c2e
+0, 51, 51, 1, 38016, 0xbfef8e0a
+0, 52, 52, 1, 38016, 0xc56285aa
+0, 53, 53, 1, 38016, 0x76758edc
+0, 54, 54, 1, 38016, 0xd8c3a20b
+0, 55, 55, 1, 38016, 0xd2aa918b
+0, 56, 56, 1, 38016, 0xfe1ea23b
+0, 57, 57, 1, 38016, 0x3533a68d
+0, 58, 58, 1, 38016, 0xd8679427
+0, 59, 59, 1, 38016, 0x76be9c98
+0, 60, 60, 1, 38016, 0xc37a9a7a
+0, 61, 61, 1, 38016, 0x1ebe9463
+0, 62, 62, 1, 38016, 0xab4c63d2
+0, 63, 63, 1, 38016, 0x761b3c50
+0, 64, 64, 1, 38016, 0xb57c4bb7
+0, 65, 65, 1, 38016, 0x86117755
+0, 66, 66, 1, 38016, 0xd89dacf3
+0, 67, 67, 1, 38016, 0x8940eee9
+0, 68, 68, 1, 38016, 0x2f7c3abf
+0, 69, 69, 1, 38016, 0x98366678
+0, 70, 70, 1, 38016, 0x14348147
+0, 71, 71, 1, 38016, 0x4e3ba8f8
+0, 72, 72, 1, 38016, 0xc167c205
+0, 73, 73, 1, 38016, 0x0581e211
+0, 74, 74, 1, 38016, 0x62cd0ea6
+0, 75, 75, 1, 38016, 0x753b3a2b
+0, 76, 76, 1, 38016, 0x25ce507a
+0, 77, 77, 1, 38016, 0x726f64af
+0, 78, 78, 1, 38016, 0xa13c7c58
+0, 79, 79, 1, 38016, 0xa27b7584
+0, 80, 80, 1, 38016, 0x45b47c12
+0, 81, 81, 1, 38016, 0x0f6a9456
+0, 82, 82, 1, 38016, 0x30ae9e92
+0, 83, 83, 1, 38016, 0xf59fa16d
+0, 84, 84, 1, 38016, 0x16d292d7
+0, 85, 85, 1, 38016, 0x828791cc
+0, 86, 86, 1, 38016, 0x71769267
+0, 87, 87, 1, 38016, 0xf297a0e0
+0, 88, 88, 1, 38016, 0x33a4a00a
+0, 89, 89, 1, 38016, 0xda96c5b8
+0, 90, 90, 1, 38016, 0x742daf25
+0, 91, 91, 1, 38016, 0x603f8bba
+0, 92, 92, 1, 38016, 0x89d18e70
+0, 93, 93, 1, 38016, 0x8c2b8c29
+0, 94, 94, 1, 38016, 0x9ccf6983
+0, 95, 95, 1, 38016, 0x8ddd5a29
+0, 96, 96, 1, 38016, 0x5679718d
+0, 97, 97, 1, 38016, 0x28aa80b3
+0, 98, 98, 1, 38016, 0x3b08780e
+0, 99, 99, 1, 38016, 0x9e408cbc
+0, 100, 100, 1, 38016, 0xe7c18e94
+0, 101, 101, 1, 38016, 0xaba57f22
+0, 102, 102, 1, 38016, 0xd8826dc5
+0, 103, 103, 1, 38016, 0x2ed2710e
+0, 104, 104, 1, 38016, 0x59748443
+0, 105, 105, 1, 38016, 0x5076b247
+0, 106, 106, 1, 38016, 0xf6ae9bcd
+0, 107, 107, 1, 38016, 0x4d83d68f
+0, 108, 108, 1, 38016, 0x118ff589
+0, 109, 109, 1, 38016, 0x65b3f2c0
+0, 110, 110, 1, 38016, 0x8f341576
+0, 111, 111, 1, 38016, 0xbeac1816
+0, 112, 112, 1, 38016, 0x19073cf9
+0, 113, 113, 1, 38016, 0xcfdb2e55
+0, 114, 114, 1, 38016, 0x99fd08f8
+0, 115, 115, 1, 38016, 0x025c0249
+0, 116, 116, 1, 38016, 0x4d311afc
+0, 117, 117, 1, 38016, 0xef532038
+0, 118, 118, 1, 38016, 0x7c353d9a
+0, 119, 119, 1, 38016, 0x9fed4678
+0, 120, 120, 1, 38016, 0x67062dad
+0, 121, 121, 1, 38016, 0x1e5b2069
+0, 122, 122, 1, 38016, 0x8b25fd3f
+0, 123, 123, 1, 38016, 0x06a9e566
+0, 124, 124, 1, 38016, 0x263badf5
+0, 125, 125, 1, 38016, 0x35a99a45
+0, 126, 126, 1, 38016, 0x930a8491
+0, 127, 127, 1, 38016, 0xf9d49dfd
+0, 128, 128, 1, 38016, 0xbc8cb0a6
+0, 129, 129, 1, 38016, 0x8f10d1a9
+0, 130, 130, 1, 38016, 0xb6dbc51b
+0, 131, 131, 1, 38016, 0x2f1bc747
+0, 132, 132, 1, 38016, 0xecdac1ac
+0, 133, 133, 1, 38016, 0x6391bdcc
+0, 134, 134, 1, 38016, 0x7e5eb209
+0, 135, 135, 1, 38016, 0x8f5ea1e8
+0, 136, 136, 1, 38016, 0x969195a9
+0, 137, 137, 1, 38016, 0x18579903
+0, 138, 138, 1, 38016, 0x4cfe8893
+0, 139, 139, 1, 38016, 0x68c57143
+0, 140, 140, 1, 38016, 0x297f6420
+0, 141, 141, 1, 38016, 0x36b1669c
+0, 142, 142, 1, 38016, 0x3d78362e
+0, 143, 143, 1, 38016, 0xaba14c36
+0, 144, 144, 1, 38016, 0xe6914a59
+0, 145, 145, 1, 38016, 0x3733481a
+0, 146, 146, 1, 38016, 0xb6df4c6d
+0, 147, 147, 1, 38016, 0x20631838
+0, 148, 148, 1, 38016, 0x014df835
+0, 149, 149, 1, 38016, 0xcb36db94
+0, 150, 150, 1, 38016, 0x4cb8b44a
+0, 151, 151, 1, 38016, 0xa49da6e5
+0, 152, 152, 1, 38016, 0x8dbfb72d
+0, 153, 153, 1, 38016, 0x3ba5b7d5
+0, 154, 154, 1, 38016, 0xc8ebad2d
+0, 155, 155, 1, 38016, 0x36fad594
+0, 156, 156, 1, 38016, 0x6302f0f2
+0, 157, 157, 1, 38016, 0xc799139e
+0, 158, 158, 1, 38016, 0x947947d0
+0, 159, 159, 1, 38016, 0x39756224
+0, 160, 160, 1, 38016, 0x1d995e51
+0, 161, 161, 1, 38016, 0x56274435
+0, 162, 162, 1, 38016, 0x3cfc2b1d
+0, 163, 163, 1, 38016, 0x5a4a178f
+0, 164, 164, 1, 38016, 0xca212af1
+0, 165, 165, 1, 38016, 0x885af884
+0, 166, 166, 1, 38016, 0x3241c9c1
+0, 167, 167, 1, 38016, 0x4ef997a4
+0, 168, 168, 1, 38016, 0x5ecb8030
+0, 169, 169, 1, 38016, 0x2eb76daa
+0, 170, 170, 1, 38016, 0x485780ba
+0, 171, 171, 1, 38016, 0xf5f88241
+0, 172, 172, 1, 38016, 0x563f97d0
+0, 173, 173, 1, 38016, 0x4a01a6c4
+0, 174, 174, 1, 38016, 0xd7ea8457
+0, 175, 175, 1, 38016, 0x08ae6916
+0, 176, 176, 1, 38016, 0x4c933e75
+0, 177, 177, 1, 38016, 0x49541e4a
+0, 178, 178, 1, 38016, 0xd14e028a
+0, 179, 179, 1, 38016, 0xabd5f4e6
+0, 180, 180, 1, 38016, 0xfe3bdd0f
+0, 181, 181, 1, 38016, 0xbb30cef4
+0, 182, 182, 1, 38016, 0xd724d0e3
+0, 183, 183, 1, 38016, 0x7537d6bf
+0, 184, 184, 1, 38016, 0x3da3e67a
+0, 185, 185, 1, 38016, 0xf02606eb
+0, 186, 186, 1, 38016, 0x2dde399b
+0, 187, 187, 1, 38016, 0xafe94c86
+0, 188, 188, 1, 38016, 0x923d6081
+0, 189, 189, 1, 38016, 0x9c733e4e
+0, 190, 190, 1, 38016, 0x2b16d821
+0, 191, 191, 1, 38016, 0x1edf9cd1
+0, 192, 192, 1, 38016, 0xa9c3b601
+0, 193, 193, 1, 38016, 0x9adeb02b
+0, 194, 194, 1, 38016, 0xf5eaddc3
+0, 195, 195, 1, 38016, 0xac871bea
+0, 196, 196, 1, 38016, 0x060429f4
+0, 197, 197, 1, 38016, 0xf80b421d
+0, 198, 198, 1, 38016, 0x7dcd6c50
+0, 199, 199, 1, 38016, 0x46e46798
+0, 200, 200, 1, 38016, 0xdbee759f
+0, 201, 201, 1, 38016, 0xbbe78774
+0, 202, 202, 1, 38016, 0xb85990ed
+0, 203, 203, 1, 38016, 0xda0e8530
+0, 204, 204, 1, 38016, 0x5eaf8508
+0, 205, 205, 1, 38016, 0x5c2c83fa
+0, 206, 206, 1, 38016, 0x6dfe9322
+0, 207, 207, 1, 38016, 0xa3059a60
+0, 208, 208, 1, 38016, 0x357c8237
+0, 209, 209, 1, 38016, 0xccae6b20
+0, 210, 210, 1, 38016, 0x25fe57c1
+0, 211, 211, 1, 38016, 0xfa65376b
+0, 212, 212, 1, 38016, 0xd9b12ef8
+0, 213, 213, 1, 38016, 0x3ab73fa0
+0, 214, 214, 1, 38016, 0xcb6a2f96
+0, 215, 215, 1, 38016, 0x8a973915
+0, 216, 216, 1, 38016, 0x71ac1dd2
+0, 217, 217, 1, 38016, 0x71802085
+0, 218, 218, 1, 38016, 0x4de728d9
+0, 219, 219, 1, 38016, 0xdf3a1de7
+0, 220, 220, 1, 38016, 0x36270e93
+0, 221, 221, 1, 38016, 0x90d4fe93
+0, 222, 222, 1, 38016, 0x3477fb4e
+0, 223, 223, 1, 38016, 0xd410fa81
+0, 224, 224, 1, 38016, 0xfc230675
+0, 225, 225, 1, 38016, 0xbda40c03
+0, 226, 226, 1, 38016, 0x7a47fc07
+0, 227, 227, 1, 38016, 0x53fe2a37
+0, 228, 228, 1, 38016, 0x342d3bec
+0, 229, 229, 1, 38016, 0xf13163a3
+0, 230, 230, 1, 38016, 0x03f087da
+0, 231, 231, 1, 38016, 0xbc03c466
+0, 232, 232, 1, 38016, 0x6318d676
+0, 233, 233, 1, 38016, 0xbc2f0b68
+0, 234, 234, 1, 38016, 0xcb57354b
+0, 235, 235, 1, 38016, 0x7e9a5b48
+0, 236, 236, 1, 38016, 0x9dca693a
+0, 237, 237, 1, 38016, 0xd0776497
+0, 238, 238, 1, 38016, 0x05a24093
+0, 239, 239, 1, 38016, 0x69b21063
+0, 240, 240, 1, 38016, 0x15f3ed8b
+0, 241, 241, 1, 38016, 0x2417bc52
+0, 242, 242, 1, 38016, 0xabc2a564
+0, 243, 243, 1, 38016, 0x67f2dd90
+0, 244, 244, 1, 38016, 0xa5fe4b6e
+0, 245, 245, 1, 38016, 0x7801add2
+0, 246, 246, 1, 38016, 0xf4abc321
+0, 247, 247, 1, 38016, 0x1d06a837
+0, 248, 248, 1, 38016, 0x2e0d6fc2
+0, 249, 249, 1, 38016, 0xc4f30535
+0, 250, 250, 1, 38016, 0x67d09a80
+0, 251, 251, 1, 38016, 0xca505a1e
+0, 252, 252, 1, 38016, 0x2e2e56c8
+0, 253, 253, 1, 38016, 0x689ea3e2
+0, 254, 254, 1, 38016, 0x9989165a
+0, 255, 255, 1, 38016, 0xd8e2c30e
+0, 256, 256, 1, 38016, 0x2a98bf3f
+0, 257, 257, 1, 38016, 0x44664d3e
+0, 258, 258, 1, 38016, 0x53a939de
+0, 259, 259, 1, 38016, 0x4c153702
+0, 260, 260, 1, 38016, 0x03c73e88
+0, 261, 261, 1, 38016, 0x7cd649d4
+0, 262, 262, 1, 38016, 0x7d7c5687
+0, 263, 263, 1, 38016, 0x8f3c53a6
+0, 264, 264, 1, 38016, 0x24634dd1
+0, 265, 265, 1, 38016, 0x5d00442c
+0, 266, 266, 1, 38016, 0xdcc72906
+0, 267, 267, 1, 38016, 0x5def12f3
+0, 268, 268, 1, 38016, 0x95e6e8be
+0, 269, 269, 1, 38016, 0x2675c694
+0, 270, 270, 1, 38016, 0x906aa24e
+0, 271, 271, 1, 38016, 0x09468fe4
+0, 272, 272, 1, 38016, 0xaec9736d
+0, 273, 273, 1, 38016, 0xa5812142
+0, 274, 274, 1, 38016, 0x9986d55f
+0, 275, 275, 1, 38016, 0x9f7fc399
+0, 276, 276, 1, 38016, 0xc345d526
+0, 277, 277, 1, 38016, 0x3ae3b9bd
+0, 278, 278, 1, 38016, 0xb103ec45
+0, 279, 279, 1, 38016, 0x3ff462c2
+0, 280, 280, 1, 38016, 0x5c07ed68
+0, 281, 281, 1, 38016, 0xccbad189
+0, 282, 282, 1, 38016, 0x6f3f9a18
+0, 283, 283, 1, 38016, 0x26406fa1
+0, 284, 284, 1, 38016, 0x06cf5f62
+0, 285, 285, 1, 38016, 0x3eb29bd1
+0, 286, 286, 1, 38016, 0x12ab807e
+0, 287, 287, 1, 38016, 0x7621bf0d
+0, 288, 288, 1, 38016, 0x88eabc0c
+0, 289, 289, 1, 38016, 0x21386662
+0, 290, 290, 1, 38016, 0x5839e3e4
+0, 291, 291, 1, 38016, 0xd196ee7c
+0, 292, 292, 1, 38016, 0x84dc8477
+0, 293, 293, 1, 38016, 0xbf2dcc7a
+0, 294, 294, 1, 38016, 0x29e3fe96
+0, 295, 295, 1, 38016, 0xf115ffc3
+0, 296, 296, 1, 38016, 0x7585d699
+0, 297, 297, 1, 38016, 0x7a7dcb8a
+0, 298, 298, 1, 38016, 0x03cfdb04
+0, 299, 299, 1, 38016, 0xd56e028c
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canl2_sony_e b/ffmpeg1/tests/ref/fate/h264-conformance-canl2_sony_e
new file mode 100644
index 0000000..9a3b48f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canl2_sony_e
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xc805351d
+0, 1, 1, 1, 38016, 0x3017107e
+0, 2, 2, 1, 38016, 0xe172e2d2
+0, 3, 3, 1, 38016, 0x7fefbb5b
+0, 4, 4, 1, 38016, 0x331097e6
+0, 5, 5, 1, 38016, 0x47de825a
+0, 6, 6, 1, 38016, 0x0bf36d87
+0, 7, 7, 1, 38016, 0x03ae60c5
+0, 8, 8, 1, 38016, 0x986b5930
+0, 9, 9, 1, 38016, 0x398b6450
+0, 10, 10, 1, 38016, 0x8e1b77e7
+0, 11, 11, 1, 38016, 0xefb198a6
+0, 12, 12, 1, 38016, 0x395aa9ee
+0, 13, 13, 1, 38016, 0x1918b963
+0, 14, 14, 1, 38016, 0xe6cab421
+0, 15, 15, 1, 38016, 0x96929e05
+0, 16, 16, 1, 38016, 0xf076abc7
+0, 17, 17, 1, 38016, 0xd0f4ab70
+0, 18, 18, 1, 38016, 0x7a39a75c
+0, 19, 19, 1, 38016, 0xb04f8bad
+0, 20, 20, 1, 38016, 0xe4996ff5
+0, 21, 21, 1, 38016, 0x096e549a
+0, 22, 22, 1, 38016, 0x36d73f1a
+0, 23, 23, 1, 38016, 0x25f53bbf
+0, 24, 24, 1, 38016, 0x7ebd3f9f
+0, 25, 25, 1, 38016, 0x464c4b4c
+0, 26, 26, 1, 38016, 0x2d794a40
+0, 27, 27, 1, 38016, 0x1599532d
+0, 28, 28, 1, 38016, 0xf8326999
+0, 29, 29, 1, 38016, 0x858e789b
+0, 30, 30, 1, 38016, 0x006f63cc
+0, 31, 31, 1, 38016, 0x488a9614
+0, 32, 32, 1, 38016, 0x950fb7cc
+0, 33, 33, 1, 38016, 0x6deac9dd
+0, 34, 34, 1, 38016, 0x0a82d725
+0, 35, 35, 1, 38016, 0x2702d5fe
+0, 36, 36, 1, 38016, 0xf7ead782
+0, 37, 37, 1, 38016, 0x560fd1f1
+0, 38, 38, 1, 38016, 0xa3cdd31a
+0, 39, 39, 1, 38016, 0xa19ed45c
+0, 40, 40, 1, 38016, 0x8d85d757
+0, 41, 41, 1, 38016, 0x7fa6e1b5
+0, 42, 42, 1, 38016, 0x8a31db0e
+0, 43, 43, 1, 38016, 0x9dead6ff
+0, 44, 44, 1, 38016, 0x8a8adf44
+0, 45, 45, 1, 38016, 0xd1548835
+0, 46, 46, 1, 38016, 0xf696a62c
+0, 47, 47, 1, 38016, 0x5edbb219
+0, 48, 48, 1, 38016, 0x0d9db749
+0, 49, 49, 1, 38016, 0xc109c379
+0, 50, 50, 1, 38016, 0xe814c2b1
+0, 51, 51, 1, 38016, 0x4a8dc84b
+0, 52, 52, 1, 38016, 0x6bcac28c
+0, 53, 53, 1, 38016, 0xa37ec8da
+0, 54, 54, 1, 38016, 0x3202d5e9
+0, 55, 55, 1, 38016, 0x3d65ddb6
+0, 56, 56, 1, 38016, 0x165de082
+0, 57, 57, 1, 38016, 0x5702e231
+0, 58, 58, 1, 38016, 0x034fe8f4
+0, 59, 59, 1, 38016, 0x96f0ea58
+0, 60, 60, 1, 38016, 0x65539ad7
+0, 61, 61, 1, 38016, 0xdf98a7cf
+0, 62, 62, 1, 38016, 0xda007de0
+0, 63, 63, 1, 38016, 0xdf43520e
+0, 64, 64, 1, 38016, 0xc5d553d2
+0, 65, 65, 1, 38016, 0xc3327450
+0, 66, 66, 1, 38016, 0x81c4a2e0
+0, 67, 67, 1, 38016, 0x7c56e2d1
+0, 68, 68, 1, 38016, 0x813f20a4
+0, 69, 69, 1, 38016, 0xe48257ad
+0, 70, 70, 1, 38016, 0x261b812f
+0, 71, 71, 1, 38016, 0x8836ae43
+0, 72, 72, 1, 38016, 0x4c52e30f
+0, 73, 73, 1, 38016, 0x0614245f
+0, 74, 74, 1, 38016, 0xbf275e2e
+0, 75, 75, 1, 38016, 0x2f0f3e49
+0, 76, 76, 1, 38016, 0xfaf57eb1
+0, 77, 77, 1, 38016, 0xd1b49f95
+0, 78, 78, 1, 38016, 0x10f4c2f6
+0, 79, 79, 1, 38016, 0x2322d359
+0, 80, 80, 1, 38016, 0x994de596
+0, 81, 81, 1, 38016, 0x2a0df115
+0, 82, 82, 1, 38016, 0xfcb7f1ec
+0, 83, 83, 1, 38016, 0xcbc2ee10
+0, 84, 84, 1, 38016, 0x49f5ee5c
+0, 85, 85, 1, 38016, 0x4eb9f286
+0, 86, 86, 1, 38016, 0xe5d80039
+0, 87, 87, 1, 38016, 0xfa57fa81
+0, 88, 88, 1, 38016, 0x2bea01f7
+0, 89, 89, 1, 38016, 0x4e7c07a0
+0, 90, 90, 1, 38016, 0x43b6a0f7
+0, 91, 91, 1, 38016, 0x996e93cc
+0, 92, 92, 1, 38016, 0x8e5c8a40
+0, 93, 93, 1, 38016, 0x15cc7fe7
+0, 94, 94, 1, 38016, 0x7f0a6c35
+0, 95, 95, 1, 38016, 0x031677a4
+0, 96, 96, 1, 38016, 0x14dd8b6d
+0, 97, 97, 1, 38016, 0x143ca592
+0, 98, 98, 1, 38016, 0x8e56b262
+0, 99, 99, 1, 38016, 0x01c7c2b9
+0, 100, 100, 1, 38016, 0xc117cbfa
+0, 101, 101, 1, 38016, 0x609bbe4b
+0, 102, 102, 1, 38016, 0x9a9fad05
+0, 103, 103, 1, 38016, 0xba959d79
+0, 104, 104, 1, 38016, 0x8773c00e
+0, 105, 105, 1, 38016, 0xea22a35b
+0, 106, 106, 1, 38016, 0x4b76c5fa
+0, 107, 107, 1, 38016, 0x5088e610
+0, 108, 108, 1, 38016, 0xb6db1234
+0, 109, 109, 1, 38016, 0xef631cf7
+0, 110, 110, 1, 38016, 0x7d993030
+0, 111, 111, 1, 38016, 0xa9b24013
+0, 112, 112, 1, 38016, 0xc3a14055
+0, 113, 113, 1, 38016, 0x5e7e2b4c
+0, 114, 114, 1, 38016, 0xae3505e0
+0, 115, 115, 1, 38016, 0x48880369
+0, 116, 116, 1, 38016, 0x844e1316
+0, 117, 117, 1, 38016, 0x1d501951
+0, 118, 118, 1, 38016, 0x36ae2e34
+0, 119, 119, 1, 38016, 0xe48b385f
+0, 120, 120, 1, 38016, 0xd88d3691
+0, 121, 121, 1, 38016, 0xf38f3ad4
+0, 122, 122, 1, 38016, 0x2a0e256e
+0, 123, 123, 1, 38016, 0x0c25fbbd
+0, 124, 124, 1, 38016, 0x13dbd8fc
+0, 125, 125, 1, 38016, 0x8c4dc0b1
+0, 126, 126, 1, 38016, 0x054bb5d5
+0, 127, 127, 1, 38016, 0x19f8c259
+0, 128, 128, 1, 38016, 0x4037d8fd
+0, 129, 129, 1, 38016, 0x13f4ecda
+0, 130, 130, 1, 38016, 0xde8af5a1
+0, 131, 131, 1, 38016, 0x5997f541
+0, 132, 132, 1, 38016, 0x876bebfe
+0, 133, 133, 1, 38016, 0x7322ef36
+0, 134, 134, 1, 38016, 0xe6a7ecc3
+0, 135, 135, 1, 38016, 0x20e5a1eb
+0, 136, 136, 1, 38016, 0xd1e5b985
+0, 137, 137, 1, 38016, 0xe83cb437
+0, 138, 138, 1, 38016, 0x8928a6f2
+0, 139, 139, 1, 38016, 0xc6b1a7f4
+0, 140, 140, 1, 38016, 0xcaf79531
+0, 141, 141, 1, 38016, 0x3ded956e
+0, 142, 142, 1, 38016, 0x494b82c5
+0, 143, 143, 1, 38016, 0x86cb794a
+0, 144, 144, 1, 38016, 0x548687e6
+0, 145, 145, 1, 38016, 0x8f478a9f
+0, 146, 146, 1, 38016, 0x32a97cbb
+0, 147, 147, 1, 38016, 0x587b56cf
+0, 148, 148, 1, 38016, 0x933428a9
+0, 149, 149, 1, 38016, 0xcb610212
+0, 150, 150, 1, 38016, 0x0d27b12d
+0, 151, 151, 1, 38016, 0xf5a9b7e0
+0, 152, 152, 1, 38016, 0x5287bdb7
+0, 153, 153, 1, 38016, 0xa4e9b762
+0, 154, 154, 1, 38016, 0x289da6d8
+0, 155, 155, 1, 38016, 0x1969bb3e
+0, 156, 156, 1, 38016, 0x29cbe019
+0, 157, 157, 1, 38016, 0xe01403c6
+0, 158, 158, 1, 38016, 0xce003f90
+0, 159, 159, 1, 38016, 0x455d67e1
+0, 160, 160, 1, 38016, 0xb57f7724
+0, 161, 161, 1, 38016, 0x7fce73b9
+0, 162, 162, 1, 38016, 0x7f136bbe
+0, 163, 163, 1, 38016, 0xf096599f
+0, 164, 164, 1, 38016, 0xe6df4c3a
+0, 165, 165, 1, 38016, 0x98d2f70e
+0, 166, 166, 1, 38016, 0xb500f2d7
+0, 167, 167, 1, 38016, 0x95d3ce30
+0, 168, 168, 1, 38016, 0x02a9ae41
+0, 169, 169, 1, 38016, 0xb146a958
+0, 170, 170, 1, 38016, 0x86a0bf3d
+0, 171, 171, 1, 38016, 0x0c58d90a
+0, 172, 172, 1, 38016, 0x27aef37f
+0, 173, 173, 1, 38016, 0x3933fc3e
+0, 174, 174, 1, 38016, 0x9ce9dc1c
+0, 175, 175, 1, 38016, 0x3161ac45
+0, 176, 176, 1, 38016, 0x4e8174cd
+0, 177, 177, 1, 38016, 0xd8904d4b
+0, 178, 178, 1, 38016, 0x933c2a55
+0, 179, 179, 1, 38016, 0x85371555
+0, 180, 180, 1, 38016, 0x3bb3ecd3
+0, 181, 181, 1, 38016, 0x6b6ad873
+0, 182, 182, 1, 38016, 0xa04dcf64
+0, 183, 183, 1, 38016, 0x7869dc82
+0, 184, 184, 1, 38016, 0x1c11e371
+0, 185, 185, 1, 38016, 0x91eef557
+0, 186, 186, 1, 38016, 0x27a30e42
+0, 187, 187, 1, 38016, 0xcba73491
+0, 188, 188, 1, 38016, 0xdffc402e
+0, 189, 189, 1, 38016, 0x49b543c6
+0, 190, 190, 1, 38016, 0xe3f7f438
+0, 191, 191, 1, 38016, 0xed3ec663
+0, 192, 192, 1, 38016, 0x174ad199
+0, 193, 193, 1, 38016, 0x5330eef8
+0, 194, 194, 1, 38016, 0x19d9074b
+0, 195, 195, 1, 38016, 0x25961ad1
+0, 196, 196, 1, 38016, 0x63024e80
+0, 197, 197, 1, 38016, 0x25de6e2e
+0, 198, 198, 1, 38016, 0x4cc594e8
+0, 199, 199, 1, 38016, 0x8b25afcf
+0, 200, 200, 1, 38016, 0x7b29bfcf
+0, 201, 201, 1, 38016, 0x93abce16
+0, 202, 202, 1, 38016, 0xc7f1d8fb
+0, 203, 203, 1, 38016, 0x277ed79e
+0, 204, 204, 1, 38016, 0x30dbdfe4
+0, 205, 205, 1, 38016, 0xbd8be711
+0, 206, 206, 1, 38016, 0xf072ea62
+0, 207, 207, 1, 38016, 0xbfd0e5a5
+0, 208, 208, 1, 38016, 0xedffdb3d
+0, 209, 209, 1, 38016, 0x5238cb59
+0, 210, 210, 1, 38016, 0x39305ec1
+0, 211, 211, 1, 38016, 0x07816d20
+0, 212, 212, 1, 38016, 0x61416e5b
+0, 213, 213, 1, 38016, 0xc39d6ae2
+0, 214, 214, 1, 38016, 0x1de95fe1
+0, 215, 215, 1, 38016, 0x0530552f
+0, 216, 216, 1, 38016, 0xa48f5b19
+0, 217, 217, 1, 38016, 0x11305e31
+0, 218, 218, 1, 38016, 0x9ae25bda
+0, 219, 219, 1, 38016, 0xf16e5b67
+0, 220, 220, 1, 38016, 0x9a375284
+0, 221, 221, 1, 38016, 0x5a744019
+0, 222, 222, 1, 38016, 0x811631e5
+0, 223, 223, 1, 38016, 0x178a20e6
+0, 224, 224, 1, 38016, 0xcab02bf2
+0, 225, 225, 1, 38016, 0x6fca13cb
+0, 226, 226, 1, 38016, 0xa1a71ba8
+0, 227, 227, 1, 38016, 0x95f52de5
+0, 228, 228, 1, 38016, 0xd2744451
+0, 229, 229, 1, 38016, 0x717f6ef6
+0, 230, 230, 1, 38016, 0x1f9e8ca9
+0, 231, 231, 1, 38016, 0xc931b115
+0, 232, 232, 1, 38016, 0xa4c1db05
+0, 233, 233, 1, 38016, 0x92e80cc1
+0, 234, 234, 1, 38016, 0x5ac5276c
+0, 235, 235, 1, 38016, 0x624340ca
+0, 236, 236, 1, 38016, 0x774a5a7c
+0, 237, 237, 1, 38016, 0x1da55863
+0, 238, 238, 1, 38016, 0x1bbc3b98
+0, 239, 239, 1, 38016, 0x953b1479
+0, 240, 240, 1, 38016, 0x8b11e5a8
+0, 241, 241, 1, 38016, 0xf749d359
+0, 242, 242, 1, 38016, 0xb54fcb8a
+0, 243, 243, 1, 38016, 0xb64b1951
+0, 244, 244, 1, 38016, 0x99778550
+0, 245, 245, 1, 38016, 0x5e70e9e2
+0, 246, 246, 1, 38016, 0x22550b80
+0, 247, 247, 1, 38016, 0xfe3ddcde
+0, 248, 248, 1, 38016, 0x1e28989e
+0, 249, 249, 1, 38016, 0x25b926a4
+0, 250, 250, 1, 38016, 0xf2c3c536
+0, 251, 251, 1, 38016, 0x534a8643
+0, 252, 252, 1, 38016, 0xf44b7f07
+0, 253, 253, 1, 38016, 0x2873c895
+0, 254, 254, 1, 38016, 0x67a7388d
+0, 255, 255, 1, 38016, 0x0e5eca3b
+0, 256, 256, 1, 38016, 0xc50dc747
+0, 257, 257, 1, 38016, 0x6a3a4f1e
+0, 258, 258, 1, 38016, 0x77d83b5f
+0, 259, 259, 1, 38016, 0x91213d43
+0, 260, 260, 1, 38016, 0x28344889
+0, 261, 261, 1, 38016, 0xd1155a3f
+0, 262, 262, 1, 38016, 0x5c7a65c5
+0, 263, 263, 1, 38016, 0x3d4e7104
+0, 264, 264, 1, 38016, 0x91d96a37
+0, 265, 265, 1, 38016, 0xbc7f63f3
+0, 266, 266, 1, 38016, 0x79275184
+0, 267, 267, 1, 38016, 0xa6b43348
+0, 268, 268, 1, 38016, 0x9e1d105a
+0, 269, 269, 1, 38016, 0x14bce053
+0, 270, 270, 1, 38016, 0x0ce3a7ca
+0, 271, 271, 1, 38016, 0x4b5980fe
+0, 272, 272, 1, 38016, 0x32745e1c
+0, 273, 273, 1, 38016, 0x85b91358
+0, 274, 274, 1, 38016, 0x9e26c66c
+0, 275, 275, 1, 38016, 0x9735b157
+0, 276, 276, 1, 38016, 0xfeaac3d1
+0, 277, 277, 1, 38016, 0x8c95ca9f
+0, 278, 278, 1, 38016, 0x1336fa92
+0, 279, 279, 1, 38016, 0x37bb65f8
+0, 280, 280, 1, 38016, 0x830c078a
+0, 281, 281, 1, 38016, 0x088dd912
+0, 282, 282, 1, 38016, 0x8ef1a5a0
+0, 283, 283, 1, 38016, 0x9a1e642d
+0, 284, 284, 1, 38016, 0xa165517e
+0, 285, 285, 1, 38016, 0x0a34a67f
+0, 286, 286, 1, 38016, 0xaf0a662a
+0, 287, 287, 1, 38016, 0x3a5fa553
+0, 288, 288, 1, 38016, 0xda92b1f8
+0, 289, 289, 1, 38016, 0xac2997f4
+0, 290, 290, 1, 38016, 0x5df32cfc
+0, 291, 291, 1, 38016, 0x5cea491d
+0, 292, 292, 1, 38016, 0xeafbd139
+0, 293, 293, 1, 38016, 0x9ced0e69
+0, 294, 294, 1, 38016, 0x89514e3f
+0, 295, 295, 1, 38016, 0x3f0b4842
+0, 296, 296, 1, 38016, 0xc9902325
+0, 297, 297, 1, 38016, 0xdb3e1585
+0, 298, 298, 1, 38016, 0x3cf31e95
+0, 299, 299, 1, 38016, 0x60f14679
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canl2_sva_b b/ffmpeg1/tests/ref/fate/h264-conformance-canl2_sva_b
new file mode 100644
index 0000000..0436f43
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canl2_sva_b
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x0bd22424
+0, 1, 1, 1, 38016, 0x4eb601f0
+0, 2, 2, 1, 38016, 0xe16de459
+0, 3, 3, 1, 38016, 0xde2e0c37
+0, 4, 4, 1, 38016, 0x14a0286b
+0, 5, 5, 1, 38016, 0x37bc35b5
+0, 6, 6, 1, 38016, 0xcfa24923
+0, 7, 7, 1, 38016, 0xac755ba0
+0, 8, 8, 1, 38016, 0x27d1822a
+0, 9, 9, 1, 38016, 0xa8039548
+0, 10, 10, 1, 38016, 0x400ea1fb
+0, 11, 11, 1, 38016, 0x7d2ca44a
+0, 12, 12, 1, 38016, 0xd42dae4f
+0, 13, 13, 1, 38016, 0x39ce9599
+0, 14, 14, 1, 38016, 0x37498aa1
+0, 15, 15, 1, 38016, 0x8558911f
+0, 16, 16, 1, 38016, 0x06a8a9ad
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canl3_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-canl3_sony_c
new file mode 100644
index 0000000..2e726cf
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canl3_sony_c
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xc805351d
+0, 1, 1, 1, 38016, 0xa0b41fef
+0, 2, 2, 1, 38016, 0x965cf070
+0, 3, 3, 1, 38016, 0x4552af45
+0, 4, 4, 1, 38016, 0x8429a576
+0, 5, 5, 1, 38016, 0xf6df8fc0
+0, 6, 6, 1, 38016, 0x5d85554c
+0, 7, 7, 1, 38016, 0x9c9d5b96
+0, 8, 8, 1, 38016, 0xbc4a4b71
+0, 9, 9, 1, 38016, 0xae4d3fc8
+0, 10, 10, 1, 38016, 0xf4da7f25
+0, 11, 11, 1, 38016, 0xf7d89a46
+0, 12, 12, 1, 38016, 0x204977fd
+0, 13, 13, 1, 38016, 0xa505b626
+0, 14, 14, 1, 38016, 0xc7b8b3f8
+0, 15, 15, 1, 38016, 0x96929e05
+0, 16, 16, 1, 38016, 0xfcfab8cc
+0, 17, 17, 1, 38016, 0x750caf2d
+0, 18, 18, 1, 38016, 0xa2c682ca
+0, 19, 19, 1, 38016, 0x3dcd8f07
+0, 20, 20, 1, 38016, 0x48fb69b3
+0, 21, 21, 1, 38016, 0x128e3310
+0, 22, 22, 1, 38016, 0x03803338
+0, 23, 23, 1, 38016, 0x11362bda
+0, 24, 24, 1, 38016, 0xc672229a
+0, 25, 25, 1, 38016, 0x68e540d0
+0, 26, 26, 1, 38016, 0x9d3a3deb
+0, 27, 27, 1, 38016, 0x53b233af
+0, 28, 28, 1, 38016, 0x3c6767eb
+0, 29, 29, 1, 38016, 0x2a8d75f2
+0, 30, 30, 1, 38016, 0x006f63cc
+0, 31, 31, 1, 38016, 0x3652a79e
+0, 32, 32, 1, 38016, 0x42f8c0fa
+0, 33, 33, 1, 38016, 0x052eb292
+0, 34, 34, 1, 38016, 0xbe7de0e7
+0, 35, 35, 1, 38016, 0xf9f9d46f
+0, 36, 36, 1, 38016, 0xb6d9b200
+0, 37, 37, 1, 38016, 0xc3bcd2d2
+0, 38, 38, 1, 38016, 0x23b5c8c2
+0, 39, 39, 1, 38016, 0x67caaf99
+0, 40, 40, 1, 38016, 0xb365cd31
+0, 41, 41, 1, 38016, 0x7cabc68f
+0, 42, 42, 1, 38016, 0xca8bb87a
+0, 43, 43, 1, 38016, 0x66a4be22
+0, 44, 44, 1, 38016, 0x2d10c1b0
+0, 45, 45, 1, 38016, 0xd1548835
+0, 46, 46, 1, 38016, 0x8b15b359
+0, 47, 47, 1, 38016, 0x2337b654
+0, 48, 48, 1, 38016, 0x56cfac2b
+0, 49, 49, 1, 38016, 0x7ad4c642
+0, 50, 50, 1, 38016, 0x6666c353
+0, 51, 51, 1, 38016, 0x053fb0f2
+0, 52, 52, 1, 38016, 0x2547c115
+0, 53, 53, 1, 38016, 0xf202c045
+0, 54, 54, 1, 38016, 0x94a8b95f
+0, 55, 55, 1, 38016, 0x439ccb13
+0, 56, 56, 1, 38016, 0xdfe4d54f
+0, 57, 57, 1, 38016, 0x2a0aceae
+0, 58, 58, 1, 38016, 0x1293dbd5
+0, 59, 59, 1, 38016, 0x9a62d994
+0, 60, 60, 1, 38016, 0x65539ad7
+0, 61, 61, 1, 38016, 0xc415ad58
+0, 62, 62, 1, 38016, 0x47bb9417
+0, 63, 63, 1, 38016, 0x92b745ea
+0, 64, 64, 1, 38016, 0x8fe8646e
+0, 65, 65, 1, 38016, 0x2b94857a
+0, 66, 66, 1, 38016, 0x12ac9aa4
+0, 67, 67, 1, 38016, 0x856bf0ea
+0, 68, 68, 1, 38016, 0xdbb32674
+0, 69, 69, 1, 38016, 0x96b53747
+0, 70, 70, 1, 38016, 0x875a7548
+0, 71, 71, 1, 38016, 0xdba4985c
+0, 72, 72, 1, 38016, 0x47cbb86c
+0, 73, 73, 1, 38016, 0x32dcfb99
+0, 74, 74, 1, 38016, 0x18b53b26
+0, 75, 75, 1, 38016, 0x2f0f3e49
+0, 76, 76, 1, 38016, 0x27b1880d
+0, 77, 77, 1, 38016, 0xbcc19dac
+0, 78, 78, 1, 38016, 0x7b6caeb1
+0, 79, 79, 1, 38016, 0xf3eece06
+0, 80, 80, 1, 38016, 0x7d93d4c9
+0, 81, 81, 1, 38016, 0xe6b8d923
+0, 82, 82, 1, 38016, 0xf47ce844
+0, 83, 83, 1, 38016, 0x74fce21c
+0, 84, 84, 1, 38016, 0x8e87d8cd
+0, 85, 85, 1, 38016, 0x9675d3ce
+0, 86, 86, 1, 38016, 0xd797ec75
+0, 87, 87, 1, 38016, 0x70aeeef1
+0, 88, 88, 1, 38016, 0x47baef32
+0, 89, 89, 1, 38016, 0x5054ec56
+0, 90, 90, 1, 38016, 0x43b6a0f7
+0, 91, 91, 1, 38016, 0x95dfb688
+0, 92, 92, 1, 38016, 0xc878a574
+0, 93, 93, 1, 38016, 0xeb928019
+0, 94, 94, 1, 38016, 0x304b7fec
+0, 95, 95, 1, 38016, 0x02cd7ea4
+0, 96, 96, 1, 38016, 0x505f7a7a
+0, 97, 97, 1, 38016, 0x09f59eaf
+0, 98, 98, 1, 38016, 0x513faaf7
+0, 99, 99, 1, 38016, 0xbd0daaa8
+0, 100, 100, 1, 38016, 0x8012be0f
+0, 101, 101, 1, 38016, 0xb663aa15
+0, 102, 102, 1, 38016, 0xd138981a
+0, 103, 103, 1, 38016, 0xc16b98a2
+0, 104, 104, 1, 38016, 0xf43eb8f8
+0, 105, 105, 1, 38016, 0xea22a35b
+0, 106, 106, 1, 38016, 0x9a0be0bb
+0, 107, 107, 1, 38016, 0x2a77ff9d
+0, 108, 108, 1, 38016, 0x2e350431
+0, 109, 109, 1, 38016, 0x9d0335ba
+0, 110, 110, 1, 38016, 0x62f23f21
+0, 111, 111, 1, 38016, 0x3e973351
+0, 112, 112, 1, 38016, 0x9d8f4ac5
+0, 113, 113, 1, 38016, 0x91e132ba
+0, 114, 114, 1, 38016, 0xfd04f69a
+0, 115, 115, 1, 38016, 0x481a1778
+0, 116, 116, 1, 38016, 0x27fa1dc4
+0, 117, 117, 1, 38016, 0x23ae0a6a
+0, 118, 118, 1, 38016, 0xc3ec426a
+0, 119, 119, 1, 38016, 0xc2a54ac1
+0, 120, 120, 1, 38016, 0xd88d3691
+0, 121, 121, 1, 38016, 0x46014ba7
+0, 122, 122, 1, 38016, 0xbf902815
+0, 123, 123, 1, 38016, 0x2af5ee16
+0, 124, 124, 1, 38016, 0xd183dc64
+0, 125, 125, 1, 38016, 0xf0c5bdd8
+0, 126, 126, 1, 38016, 0xb21aa102
+0, 127, 127, 1, 38016, 0xb35bbec2
+0, 128, 128, 1, 38016, 0x7efad1ce
+0, 129, 129, 1, 38016, 0x04e3d71d
+0, 130, 130, 1, 38016, 0x901ff71b
+0, 131, 131, 1, 38016, 0xc6c6e640
+0, 132, 132, 1, 38016, 0xd292d5d3
+0, 133, 133, 1, 38016, 0x2ce4e3fe
+0, 134, 134, 1, 38016, 0xe7fedf8a
+0, 135, 135, 1, 38016, 0x20e5a1eb
+0, 136, 136, 1, 38016, 0xbc39be76
+0, 137, 137, 1, 38016, 0xf749b4dd
+0, 138, 138, 1, 38016, 0xbc3f97a4
+0, 139, 139, 1, 38016, 0xa058a244
+0, 140, 140, 1, 38016, 0x77eb961b
+0, 141, 141, 1, 38016, 0xa92e7f25
+0, 142, 142, 1, 38016, 0xc75e796f
+0, 143, 143, 1, 38016, 0x114c79bd
+0, 144, 144, 1, 38016, 0x3fb96da3
+0, 145, 145, 1, 38016, 0x1c6f87b8
+0, 146, 146, 1, 38016, 0x25567ae4
+0, 147, 147, 1, 38016, 0xf5dd42b2
+0, 148, 148, 1, 38016, 0xe6172d0c
+0, 149, 149, 1, 38016, 0xcec0fd48
+0, 150, 150, 1, 38016, 0x0d27b12d
+0, 151, 151, 1, 38016, 0x3ec7cd24
+0, 152, 152, 1, 38016, 0xb2dccabe
+0, 153, 153, 1, 38016, 0xa977a844
+0, 154, 154, 1, 38016, 0x4b3bbfed
+0, 155, 155, 1, 38016, 0xed6dd876
+0, 156, 156, 1, 38016, 0x751bd34e
+0, 157, 157, 1, 38016, 0x80160cf9
+0, 158, 158, 1, 38016, 0xfbf53be8
+0, 159, 159, 1, 38016, 0x726e4f3b
+0, 160, 160, 1, 38016, 0x8ebb730c
+0, 161, 161, 1, 38016, 0x2c0c5fe6
+0, 162, 162, 1, 38016, 0x450940c0
+0, 163, 163, 1, 38016, 0xeed63ff8
+0, 164, 164, 1, 38016, 0x6f233d75
+0, 165, 165, 1, 38016, 0x98d2f70e
+0, 166, 166, 1, 38016, 0x8d38f2e8
+0, 167, 167, 1, 38016, 0x905dcbc9
+0, 168, 168, 1, 38016, 0x68c3a0f7
+0, 169, 169, 1, 38016, 0x4bb8a40c
+0, 170, 170, 1, 38016, 0x3650b08e
+0, 171, 171, 1, 38016, 0x3c3bbfd7
+0, 172, 172, 1, 38016, 0xcbc9da56
+0, 173, 173, 1, 38016, 0x576de6cd
+0, 174, 174, 1, 38016, 0x95f5c8c1
+0, 175, 175, 1, 38016, 0xbbcaacc8
+0, 176, 176, 1, 38016, 0x1b547ba4
+0, 177, 177, 1, 38016, 0x8f5238b2
+0, 178, 178, 1, 38016, 0x4c0f35c4
+0, 179, 179, 1, 38016, 0x894f278d
+0, 180, 180, 1, 38016, 0x3bb3ecd3
+0, 181, 181, 1, 38016, 0x177bf317
+0, 182, 182, 1, 38016, 0xdb1fdada
+0, 183, 183, 1, 38016, 0xec27cc28
+0, 184, 184, 1, 38016, 0x6a12eec7
+0, 185, 185, 1, 38016, 0x0168ff3f
+0, 186, 186, 1, 38016, 0x3fa206ba
+0, 187, 187, 1, 38016, 0x47cc30b5
+0, 188, 188, 1, 38016, 0xb2d02ddd
+0, 189, 189, 1, 38016, 0x306626bb
+0, 190, 190, 1, 38016, 0xfb06eb5b
+0, 191, 191, 1, 38016, 0x5881b60e
+0, 192, 192, 1, 38016, 0xd58caaf8
+0, 193, 193, 1, 38016, 0x840bdd0c
+0, 194, 194, 1, 38016, 0xb71efac1
+0, 195, 195, 1, 38016, 0x25961ad1
+0, 196, 196, 1, 38016, 0xbec156eb
+0, 197, 197, 1, 38016, 0xe2d1695c
+0, 198, 198, 1, 38016, 0x3fbe83d4
+0, 199, 199, 1, 38016, 0x10d8afe2
+0, 200, 200, 1, 38016, 0xa61fb9aa
+0, 201, 201, 1, 38016, 0x0c20be29
+0, 202, 202, 1, 38016, 0xc273cdd4
+0, 203, 203, 1, 38016, 0xfb21cfa0
+0, 204, 204, 1, 38016, 0xb1ccc643
+0, 205, 205, 1, 38016, 0x30f5d7a2
+0, 206, 206, 1, 38016, 0xe742da0f
+0, 207, 207, 1, 38016, 0x0a08d6a3
+0, 208, 208, 1, 38016, 0x85c4cf6c
+0, 209, 209, 1, 38016, 0xc117b8f4
+0, 210, 210, 1, 38016, 0x39305ec1
+0, 211, 211, 1, 38016, 0xf2867b2d
+0, 212, 212, 1, 38016, 0x81147a22
+0, 213, 213, 1, 38016, 0x308b59c3
+0, 214, 214, 1, 38016, 0xfd076bbd
+0, 215, 215, 1, 38016, 0x11bf57f5
+0, 216, 216, 1, 38016, 0x8c103fb7
+0, 217, 217, 1, 38016, 0x4f5e5a48
+0, 218, 218, 1, 38016, 0xa0fd54dc
+0, 219, 219, 1, 38016, 0x69d7429b
+0, 220, 220, 1, 38016, 0x93154a7c
+0, 221, 221, 1, 38016, 0xc72e3995
+0, 222, 222, 1, 38016, 0x86541ae0
+0, 223, 223, 1, 38016, 0xa9c93120
+0, 224, 224, 1, 38016, 0x602d368a
+0, 225, 225, 1, 38016, 0x6fca13cb
+0, 226, 226, 1, 38016, 0x314f3702
+0, 227, 227, 1, 38016, 0x4d1647bd
+0, 228, 228, 1, 38016, 0x73673c96
+0, 229, 229, 1, 38016, 0x62897c6f
+0, 230, 230, 1, 38016, 0x918e9a7d
+0, 231, 231, 1, 38016, 0x9fb9ad4f
+0, 232, 232, 1, 38016, 0xc4c30339
+0, 233, 233, 1, 38016, 0x137017df
+0, 234, 234, 1, 38016, 0xa98a1b61
+0, 235, 235, 1, 38016, 0xf74c4b4f
+0, 236, 236, 1, 38016, 0x3eac5cb1
+0, 237, 237, 1, 38016, 0x5d403e50
+0, 238, 238, 1, 38016, 0xa33a4eb6
+0, 239, 239, 1, 38016, 0x3f0a13fb
+0, 240, 240, 1, 38016, 0x8b11e5a8
+0, 241, 241, 1, 38016, 0x536bca4b
+0, 242, 242, 1, 38016, 0xe1daa789
+0, 243, 243, 1, 38016, 0xab37f6d1
+0, 244, 244, 1, 38016, 0xbefe6f58
+0, 245, 245, 1, 38016, 0xa5fdd2ff
+0, 246, 246, 1, 38016, 0x6065ec01
+0, 247, 247, 1, 38016, 0x939dd93a
+0, 248, 248, 1, 38016, 0x3a7593d5
+0, 249, 249, 1, 38016, 0x30fe19fe
+0, 250, 250, 1, 38016, 0xb507c21c
+0, 251, 251, 1, 38016, 0xf47f73ac
+0, 252, 252, 1, 38016, 0xe9fc669a
+0, 253, 253, 1, 38016, 0x2b85d19a
+0, 254, 254, 1, 38016, 0x57033999
+0, 255, 255, 1, 38016, 0x0e5eca3b
+0, 256, 256, 1, 38016, 0x6a7bda2c
+0, 257, 257, 1, 38016, 0x3517638d
+0, 258, 258, 1, 38016, 0x1f5432e3
+0, 259, 259, 1, 38016, 0x584d4c96
+0, 260, 260, 1, 38016, 0x92474c0c
+0, 261, 261, 1, 38016, 0x8c5e44a5
+0, 262, 262, 1, 38016, 0x07dd64d4
+0, 263, 263, 1, 38016, 0x828d632b
+0, 264, 264, 1, 38016, 0x142254b6
+0, 265, 265, 1, 38016, 0x8f9b60a4
+0, 266, 266, 1, 38016, 0x44f745dd
+0, 267, 267, 1, 38016, 0xc3321666
+0, 268, 268, 1, 38016, 0x95520396
+0, 269, 269, 1, 38016, 0x3eb3de27
+0, 270, 270, 1, 38016, 0x0ce3a7ca
+0, 271, 271, 1, 38016, 0x58258838
+0, 272, 272, 1, 38016, 0x5725627a
+0, 273, 273, 1, 38016, 0x901907ab
+0, 274, 274, 1, 38016, 0xf965da2f
+0, 275, 275, 1, 38016, 0xf542bae9
+0, 276, 276, 1, 38016, 0x3dc4b3c3
+0, 277, 277, 1, 38016, 0x8a1dd1e9
+0, 278, 278, 1, 38016, 0x4f6ef803
+0, 279, 279, 1, 38016, 0xde384800
+0, 280, 280, 1, 38016, 0x7251116f
+0, 281, 281, 1, 38016, 0x89f9e1ca
+0, 282, 282, 1, 38016, 0xc9818624
+0, 283, 283, 1, 38016, 0x30e391a6
+0, 284, 284, 1, 38016, 0x7aab6887
+0, 285, 285, 1, 38016, 0x0a34a67f
+0, 286, 286, 1, 38016, 0xe1258086
+0, 287, 287, 1, 38016, 0x5b16a887
+0, 288, 288, 1, 38016, 0x3297a135
+0, 289, 289, 1, 38016, 0x45a77236
+0, 290, 290, 1, 38016, 0xa414013a
+0, 291, 291, 1, 38016, 0xfab52c7e
+0, 292, 292, 1, 38016, 0x9074aca1
+0, 293, 293, 1, 38016, 0x843ad8a6
+0, 294, 294, 1, 38016, 0xccc63573
+0, 295, 295, 1, 38016, 0x3ba52a5f
+0, 296, 296, 1, 38016, 0x2f7b0236
+0, 297, 297, 1, 38016, 0x0ad407ec
+0, 298, 298, 1, 38016, 0x42082369
+0, 299, 299, 1, 38016, 0x5a9d3f63
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canl3_sva_b b/ffmpeg1/tests/ref/fate/h264-conformance-canl3_sva_b
new file mode 100644
index 0000000..dd56a43
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canl3_sva_b
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x0bd22424
+0, 1, 1, 1, 38016, 0xc45d1947
+0, 2, 2, 1, 38016, 0x9d3d1218
+0, 3, 3, 1, 38016, 0x79b71e03
+0, 4, 4, 1, 38016, 0xd11e4a14
+0, 5, 5, 1, 38016, 0x44c66b22
+0, 6, 6, 1, 38016, 0xb9cc7acf
+0, 7, 7, 1, 38016, 0x8ccd92a1
+0, 8, 8, 1, 38016, 0x4a76aec4
+0, 9, 9, 1, 38016, 0x6e2fc27e
+0, 10, 10, 1, 38016, 0x400ea1fb
+0, 11, 11, 1, 38016, 0xd1e2b7c4
+0, 12, 12, 1, 38016, 0xb45eb08d
+0, 13, 13, 1, 38016, 0x15079991
+0, 14, 14, 1, 38016, 0x0fc97188
+0, 15, 15, 1, 38016, 0xf9fc81af
+0, 16, 16, 1, 38016, 0x020f992d
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canl4_sva_b b/ffmpeg1/tests/ref/fate/h264-conformance-canl4_sva_b
new file mode 100644
index 0000000..a9a2dd3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canl4_sva_b
@@ -0,0 +1,34 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x5d9514e3
+0, 1, 1, 1, 38016, 0xf5e8155c
+0, 2, 2, 1, 38016, 0xc0a5f88b
+0, 3, 3, 1, 38016, 0x421d2610
+0, 4, 4, 1, 38016, 0x971838af
+0, 5, 5, 1, 38016, 0xbd645dfc
+0, 6, 6, 1, 38016, 0xaab5626a
+0, 7, 7, 1, 38016, 0xc8fc9b6b
+0, 8, 8, 1, 38016, 0x8be593f4
+0, 9, 9, 1, 38016, 0x6560c0f4
+0, 10, 10, 1, 38016, 0x29009b56
+0, 11, 11, 1, 38016, 0x20b4bd2a
+0, 12, 12, 1, 38016, 0xe8a7a51e
+0, 13, 13, 1, 38016, 0x8c5e906a
+0, 14, 14, 1, 38016, 0x15496f1e
+0, 15, 15, 1, 38016, 0xdc788399
+0, 16, 16, 1, 38016, 0x2b1e89b2
+0, 17, 17, 1, 38016, 0xe9fda9bd
+0, 18, 18, 1, 38016, 0x7c319f69
+0, 19, 19, 1, 38016, 0x2921cbc4
+0, 20, 20, 1, 38016, 0xb4fab1e2
+0, 21, 21, 1, 38016, 0x6af6ba57
+0, 22, 22, 1, 38016, 0xb36e7df5
+0, 23, 23, 1, 38016, 0x57517aec
+0, 24, 24, 1, 38016, 0x9f5f331a
+0, 25, 25, 1, 38016, 0xafde3f8a
+0, 26, 26, 1, 38016, 0x97f32b54
+0, 27, 27, 1, 38016, 0x0c194bf7
+0, 28, 28, 1, 38016, 0x58a054c2
+0, 29, 29, 1, 38016, 0x6a637e5f
+0, 30, 30, 1, 38016, 0x8b2d63d0
+0, 31, 31, 1, 38016, 0x521772c5
+0, 32, 32, 1, 38016, 0xae555677
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canlma2_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-canlma2_sony_c
new file mode 100644
index 0000000..b6a759a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canlma2_sony_c
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0xfbca00c6
+0, 1, 1, 1, 518400, 0x82b80adf
+0, 2, 2, 1, 518400, 0x87ecdf4a
+0, 3, 3, 1, 518400, 0xf6ca8cbe
+0, 4, 4, 1, 518400, 0x8e9bb8a0
+0, 5, 5, 1, 518400, 0x6512caa2
+0, 6, 6, 1, 518400, 0xc015e43e
+0, 7, 7, 1, 518400, 0x5f504a5c
+0, 8, 8, 1, 518400, 0x4c7458a4
+0, 9, 9, 1, 518400, 0x630f4004
+0, 10, 10, 1, 518400, 0x889af20e
+0, 11, 11, 1, 518400, 0x4437a5a4
+0, 12, 12, 1, 518400, 0x1e19a254
+0, 13, 13, 1, 518400, 0xb7ef1763
+0, 14, 14, 1, 518400, 0xc966c95a
+0, 15, 15, 1, 518400, 0x0c9074d6
+0, 16, 16, 1, 518400, 0x24c906c9
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-canlma3_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-canlma3_sony_c
new file mode 100644
index 0000000..87ce786
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-canlma3_sony_c
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0xfbca00c6
+0, 1, 1, 1, 518400, 0x82b80adf
+0, 2, 2, 1, 518400, 0x4874c24c
+0, 3, 3, 1, 518400, 0xdb19528a
+0, 4, 4, 1, 518400, 0x27888656
+0, 5, 5, 1, 518400, 0x5e7aa98f
+0, 6, 6, 1, 518400, 0xb43ecd8b
+0, 7, 7, 1, 518400, 0xef772cbd
+0, 8, 8, 1, 518400, 0x4f1e1d7e
+0, 9, 9, 1, 518400, 0x0e9fe921
+0, 10, 10, 1, 518400, 0xe4dab3d2
+0, 11, 11, 1, 518400, 0x9279587b
+0, 12, 12, 1, 518400, 0xa8248296
+0, 13, 13, 1, 518400, 0x7be6c0d6
+0, 14, 14, 1, 518400, 0x85ea92b1
+0, 15, 15, 1, 518400, 0x0c9074d6
+0, 16, 16, 1, 518400, 0x5c95bf41
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-capa1_toshiba_b b/ffmpeg1/tests/ref/fate/h264-conformance-capa1_toshiba_b
new file mode 100644
index 0000000..a0336f8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-capa1_toshiba_b
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-capama3_sand_f b/ffmpeg1/tests/ref/fate/h264-conformance-capama3_sand_f
new file mode 100644
index 0000000..b621b81
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-capama3_sand_f
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-capcm1_sand_e b/ffmpeg1/tests/ref/fate/h264-conformance-capcm1_sand_e
new file mode 100644
index 0000000..392e8b4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-capcm1_sand_e
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x9989b588
+0, 1, 1, 1, 152064, 0x7cbf85d4
+0, 2, 2, 1, 152064, 0x72615cf1
+0, 3, 3, 1, 152064, 0xcf98053c
+0, 4, 4, 1, 152064, 0x42daddb0
+0, 5, 5, 1, 152064, 0x460ca616
+0, 6, 6, 1, 152064, 0x54cc5ab1
+0, 7, 7, 1, 152064, 0xd146396e
+0, 8, 8, 1, 152064, 0xefbbffc3
+0, 9, 9, 1, 152064, 0x41ecd870
+0, 10, 10, 1, 152064, 0x57bba322
+0, 11, 11, 1, 152064, 0x7e7270f8
+0, 12, 12, 1, 152064, 0x1f5d1f0e
+0, 13, 13, 1, 152064, 0x5478eb60
+0, 14, 14, 1, 152064, 0xd9abb62a
+0, 15, 15, 1, 152064, 0x97997f6d
+0, 16, 16, 1, 152064, 0xfc405569
+0, 17, 17, 1, 152064, 0x4e49329b
+0, 18, 18, 1, 152064, 0x6b98f9c6
+0, 19, 19, 1, 152064, 0xa872cf59
+0, 20, 20, 1, 152064, 0x478a897d
+0, 21, 21, 1, 152064, 0xf6744e5d
+0, 22, 22, 1, 152064, 0x7ddf110d
+0, 23, 23, 1, 152064, 0xe6bde4be
+0, 24, 24, 1, 152064, 0x5c3ba029
+0, 25, 25, 1, 152064, 0x07759146
+0, 26, 26, 1, 152064, 0x4beb510f
+0, 27, 27, 1, 152064, 0x5b063ad9
+0, 28, 28, 1, 152064, 0xc2930366
+0, 29, 29, 1, 152064, 0x5435e658
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-capcmnl1_sand_e b/ffmpeg1/tests/ref/fate/h264-conformance-capcmnl1_sand_e
new file mode 100644
index 0000000..baee0ae
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-capcmnl1_sand_e
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xf973b384
+0, 1, 1, 1, 152064, 0x84418532
+0, 2, 2, 1, 152064, 0x63165bc0
+0, 3, 3, 1, 152064, 0x54b5049d
+0, 4, 4, 1, 152064, 0xde66dbbc
+0, 5, 5, 1, 152064, 0x8001a4f5
+0, 6, 6, 1, 152064, 0x6b5259b7
+0, 7, 7, 1, 152064, 0xd15137a1
+0, 8, 8, 1, 152064, 0x1d19fdb9
+0, 9, 9, 1, 152064, 0x3533d5a1
+0, 10, 10, 1, 152064, 0xf82ba039
+0, 11, 11, 1, 152064, 0x04366ee9
+0, 12, 12, 1, 152064, 0xf7ac1dfb
+0, 13, 13, 1, 152064, 0x6d0aebd7
+0, 14, 14, 1, 152064, 0x4f2bb62d
+0, 15, 15, 1, 152064, 0x6a7a7d50
+0, 16, 16, 1, 152064, 0xc9c95422
+0, 17, 17, 1, 152064, 0x35a13150
+0, 18, 18, 1, 152064, 0xb576f7e4
+0, 19, 19, 1, 152064, 0x5ad3cde5
+0, 20, 20, 1, 152064, 0xbcb18908
+0, 21, 21, 1, 152064, 0xa2a24ca7
+0, 22, 22, 1, 152064, 0x95700ea5
+0, 23, 23, 1, 152064, 0xfdb5e316
+0, 24, 24, 1, 152064, 0x56e3a003
+0, 25, 25, 1, 152064, 0x09ae905c
+0, 26, 26, 1, 152064, 0xa1175024
+0, 27, 27, 1, 152064, 0x8b82395e
+0, 28, 28, 1, 152064, 0x032202da
+0, 29, 29, 1, 152064, 0xae15e5e7
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-capm3_sony_d b/ffmpeg1/tests/ref/fate/h264-conformance-capm3_sony_d
new file mode 100644
index 0000000..ab2b280
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-capm3_sony_d
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xa3b72d2f
+0, 1, 1, 1, 38016, 0x77d918ae
+0, 2, 2, 1, 38016, 0x181ad684
+0, 3, 3, 1, 38016, 0x0dafa49c
+0, 4, 4, 1, 38016, 0x8250a733
+0, 5, 5, 1, 38016, 0x5d4f79b5
+0, 6, 6, 1, 38016, 0x59664665
+0, 7, 7, 1, 38016, 0xdce3491c
+0, 8, 8, 1, 38016, 0xaffc395f
+0, 9, 9, 1, 38016, 0xfb09320d
+0, 10, 10, 1, 38016, 0x9b776724
+0, 11, 11, 1, 38016, 0x30497da7
+0, 12, 12, 1, 38016, 0xffd16ea0
+0, 13, 13, 1, 38016, 0x5b7da1b5
+0, 14, 14, 1, 38016, 0x764a9cc4
+0, 15, 15, 1, 38016, 0xc4c79c41
+0, 16, 16, 1, 38016, 0x883299dd
+0, 17, 17, 1, 38016, 0xd5f39350
+0, 18, 18, 1, 38016, 0x892f6808
+0, 19, 19, 1, 38016, 0x5b0572d7
+0, 20, 20, 1, 38016, 0x53c84a0c
+0, 21, 21, 1, 38016, 0xe6ff14e2
+0, 22, 22, 1, 38016, 0xd66d1924
+0, 23, 23, 1, 38016, 0x7bec105f
+0, 24, 24, 1, 38016, 0x405ffc8d
+0, 25, 25, 1, 38016, 0xfccc2019
+0, 26, 26, 1, 38016, 0x639f25a2
+0, 27, 27, 1, 38016, 0xf89e179b
+0, 28, 28, 1, 38016, 0x3e49456e
+0, 29, 29, 1, 38016, 0x8d7d5d8e
+0, 30, 30, 1, 38016, 0x89d15f1e
+0, 31, 31, 1, 38016, 0x413d8c6a
+0, 32, 32, 1, 38016, 0xf1a0a555
+0, 33, 33, 1, 38016, 0x61249a1f
+0, 34, 34, 1, 38016, 0xbd91c000
+0, 35, 35, 1, 38016, 0x3209c225
+0, 36, 36, 1, 38016, 0xfebca72f
+0, 37, 37, 1, 38016, 0x839abdfd
+0, 38, 38, 1, 38016, 0xa47cbc00
+0, 39, 39, 1, 38016, 0x4537a269
+0, 40, 40, 1, 38016, 0xbf19c0b2
+0, 41, 41, 1, 38016, 0x7487c290
+0, 42, 42, 1, 38016, 0xfbf8ab0c
+0, 43, 43, 1, 38016, 0xce2ab41e
+0, 44, 44, 1, 38016, 0xb505acf2
+0, 45, 45, 1, 38016, 0x758489bc
+0, 46, 46, 1, 38016, 0x7eae9aca
+0, 47, 47, 1, 38016, 0x67b59692
+0, 48, 48, 1, 38016, 0x074d9354
+0, 49, 49, 1, 38016, 0xb6f6ae8a
+0, 50, 50, 1, 38016, 0xe3b9a825
+0, 51, 51, 1, 38016, 0x5f4e9cb2
+0, 52, 52, 1, 38016, 0x88b3abcd
+0, 53, 53, 1, 38016, 0x0cd7acdb
+0, 54, 54, 1, 38016, 0xa731a3e4
+0, 55, 55, 1, 38016, 0x9414c055
+0, 56, 56, 1, 38016, 0x6cfec34a
+0, 57, 57, 1, 38016, 0x6c89bce0
+0, 58, 58, 1, 38016, 0xdabdc781
+0, 59, 59, 1, 38016, 0x1afcc587
+0, 60, 60, 1, 38016, 0xb4e79851
+0, 61, 61, 1, 38016, 0x383ca78a
+0, 62, 62, 1, 38016, 0x461f83fb
+0, 63, 63, 1, 38016, 0x55f039e3
+0, 64, 64, 1, 38016, 0xb6ec5d3f
+0, 65, 65, 1, 38016, 0x645888af
+0, 66, 66, 1, 38016, 0x37bc9e52
+0, 67, 67, 1, 38016, 0x12a4f603
+0, 68, 68, 1, 38016, 0x63e92df7
+0, 69, 69, 1, 38016, 0x1a0246e3
+0, 70, 70, 1, 38016, 0x1a6282fe
+0, 71, 71, 1, 38016, 0x4e99a785
+0, 72, 72, 1, 38016, 0xdaefbf23
+0, 73, 73, 1, 38016, 0x9e8f00f1
+0, 74, 74, 1, 38016, 0x85ea26c5
+0, 75, 75, 1, 38016, 0x495e2ddb
+0, 76, 76, 1, 38016, 0xab6278a4
+0, 77, 77, 1, 38016, 0x48a78708
+0, 78, 78, 1, 38016, 0x6fe99535
+0, 79, 79, 1, 38016, 0xc3d9b8eb
+0, 80, 80, 1, 38016, 0x4491c577
+0, 81, 81, 1, 38016, 0x4d42cc30
+0, 82, 82, 1, 38016, 0x3469d8bd
+0, 83, 83, 1, 38016, 0x563dd0ad
+0, 84, 84, 1, 38016, 0x681dbdef
+0, 85, 85, 1, 38016, 0x5da9d2a7
+0, 86, 86, 1, 38016, 0x75abdf2e
+0, 87, 87, 1, 38016, 0x9bf0d13a
+0, 88, 88, 1, 38016, 0x3c24dd7c
+0, 89, 89, 1, 38016, 0x5132df96
+0, 90, 90, 1, 38016, 0x01bd9d86
+0, 91, 91, 1, 38016, 0x2b97bdfe
+0, 92, 92, 1, 38016, 0xa7fdb2f1
+0, 93, 93, 1, 38016, 0xcf908cfd
+0, 94, 94, 1, 38016, 0xd18e7e52
+0, 95, 95, 1, 38016, 0x6a1d78d3
+0, 96, 96, 1, 38016, 0xd9cc83af
+0, 97, 97, 1, 38016, 0xf6329ca1
+0, 98, 98, 1, 38016, 0x1976aaeb
+0, 99, 99, 1, 38016, 0xa3e8a3ce
+0, 100, 100, 1, 38016, 0x73a2bd65
+0, 101, 101, 1, 38016, 0xfd00a552
+0, 102, 102, 1, 38016, 0x2df18642
+0, 103, 103, 1, 38016, 0x85ad82fb
+0, 104, 104, 1, 38016, 0x0456a864
+0, 105, 105, 1, 38016, 0x0d6da3b6
+0, 106, 106, 1, 38016, 0xabf0de94
+0, 107, 107, 1, 38016, 0x68aef77e
+0, 108, 108, 1, 38016, 0xd6aefd84
+0, 109, 109, 1, 38016, 0x01953184
+0, 110, 110, 1, 38016, 0xff324067
+0, 111, 111, 1, 38016, 0x49aa300f
+0, 112, 112, 1, 38016, 0xc146456b
+0, 113, 113, 1, 38016, 0xfe5c2980
+0, 114, 114, 1, 38016, 0x8f4df7eb
+0, 115, 115, 1, 38016, 0x137c1373
+0, 116, 116, 1, 38016, 0xfb9d1006
+0, 117, 117, 1, 38016, 0x7f5409f9
+0, 118, 118, 1, 38016, 0xa6ff29fc
+0, 119, 119, 1, 38016, 0xc63e3807
+0, 120, 120, 1, 38016, 0xd77c313a
+0, 121, 121, 1, 38016, 0xdd3832dd
+0, 122, 122, 1, 38016, 0xe70d140c
+0, 123, 123, 1, 38016, 0xa559d731
+0, 124, 124, 1, 38016, 0x3593d345
+0, 125, 125, 1, 38016, 0x7497ad8a
+0, 126, 126, 1, 38016, 0x9906919f
+0, 127, 127, 1, 38016, 0x18bfb034
+0, 128, 128, 1, 38016, 0xa4fbbd76
+0, 129, 129, 1, 38016, 0xbd6cc31c
+0, 130, 130, 1, 38016, 0x6ddde005
+0, 131, 131, 1, 38016, 0x0072dd5f
+0, 132, 132, 1, 38016, 0x62c5c5c0
+0, 133, 133, 1, 38016, 0x1093cf81
+0, 134, 134, 1, 38016, 0x46dbc9ff
+0, 135, 135, 1, 38016, 0x0269a169
+0, 136, 136, 1, 38016, 0xc96daa27
+0, 137, 137, 1, 38016, 0xa0319cf4
+0, 138, 138, 1, 38016, 0x1cae87fd
+0, 139, 139, 1, 38016, 0xf1a0977f
+0, 140, 140, 1, 38016, 0xc4d48a56
+0, 141, 141, 1, 38016, 0xd3b1704c
+0, 142, 142, 1, 38016, 0xd5e46a6c
+0, 143, 143, 1, 38016, 0xb73e68fb
+0, 144, 144, 1, 38016, 0xc0585fcf
+0, 145, 145, 1, 38016, 0x1b3978fe
+0, 146, 146, 1, 38016, 0xdda66c02
+0, 147, 147, 1, 38016, 0x581033d6
+0, 148, 148, 1, 38016, 0x0737185f
+0, 149, 149, 1, 38016, 0xa0c9f494
+0, 150, 150, 1, 38016, 0x916eae22
+0, 151, 151, 1, 38016, 0xfdf7d6cd
+0, 152, 152, 1, 38016, 0x6978ce4c
+0, 153, 153, 1, 38016, 0x6783b016
+0, 154, 154, 1, 38016, 0x528ac304
+0, 155, 155, 1, 38016, 0x245de0ae
+0, 156, 156, 1, 38016, 0x1dade956
+0, 157, 157, 1, 38016, 0xa8f316da
+0, 158, 158, 1, 38016, 0x95f04ca6
+0, 159, 159, 1, 38016, 0x76615822
+0, 160, 160, 1, 38016, 0x21de6ff4
+0, 161, 161, 1, 38016, 0x12be5e8b
+0, 162, 162, 1, 38016, 0x47ea3cbd
+0, 163, 163, 1, 38016, 0x113631b5
+0, 164, 164, 1, 38016, 0x546b2789
+0, 165, 165, 1, 38016, 0x0505f2bb
+0, 166, 166, 1, 38016, 0x90eee299
+0, 167, 167, 1, 38016, 0x305cb341
+0, 168, 168, 1, 38016, 0x5921841b
+0, 169, 169, 1, 38016, 0x1449922d
+0, 170, 170, 1, 38016, 0xca8f9f0a
+0, 171, 171, 1, 38016, 0x0daeab19
+0, 172, 172, 1, 38016, 0xde20dc27
+0, 173, 173, 1, 38016, 0xb6ffd92c
+0, 174, 174, 1, 38016, 0xedb1bc49
+0, 175, 175, 1, 38016, 0x4ccf9ff5
+0, 176, 176, 1, 38016, 0xfb636cd5
+0, 177, 177, 1, 38016, 0x9c562c3d
+0, 178, 178, 1, 38016, 0x0b021c95
+0, 179, 179, 1, 38016, 0x8da50f21
+0, 180, 180, 1, 38016, 0xa043ec8c
+0, 181, 181, 1, 38016, 0x0143f4f2
+0, 182, 182, 1, 38016, 0x77bece5b
+0, 183, 183, 1, 38016, 0x147ccc68
+0, 184, 184, 1, 38016, 0xa90cf948
+0, 185, 185, 1, 38016, 0x8764066e
+0, 186, 186, 1, 38016, 0x26c61821
+0, 187, 187, 1, 38016, 0x39dd3be4
+0, 188, 188, 1, 38016, 0xe2203c69
+0, 189, 189, 1, 38016, 0x00e73014
+0, 190, 190, 1, 38016, 0x0024f9eb
+0, 191, 191, 1, 38016, 0x3a0da880
+0, 192, 192, 1, 38016, 0x0336a353
+0, 193, 193, 1, 38016, 0x721ed897
+0, 194, 194, 1, 38016, 0x1c51f53f
+0, 195, 195, 1, 38016, 0xeec91a00
+0, 196, 196, 1, 38016, 0x73074864
+0, 197, 197, 1, 38016, 0x672e5ff8
+0, 198, 198, 1, 38016, 0xe7ea7aba
+0, 199, 199, 1, 38016, 0x11899f08
+0, 200, 200, 1, 38016, 0xa98daf03
+0, 201, 201, 1, 38016, 0x4553af5c
+0, 202, 202, 1, 38016, 0x4892c5d5
+0, 203, 203, 1, 38016, 0x0ddbc2eb
+0, 204, 204, 1, 38016, 0x0ce5b867
+0, 205, 205, 1, 38016, 0xb0e6ce2c
+0, 206, 206, 1, 38016, 0x8a2bd4da
+0, 207, 207, 1, 38016, 0xf9f4cbec
+0, 208, 208, 1, 38016, 0x77aeba8f
+0, 209, 209, 1, 38016, 0xc1839e46
+0, 210, 210, 1, 38016, 0x34845d3a
+0, 211, 211, 1, 38016, 0xc3227ad7
+0, 212, 212, 1, 38016, 0x2dad7051
+0, 213, 213, 1, 38016, 0x7145565a
+0, 214, 214, 1, 38016, 0x1e056ef1
+0, 215, 215, 1, 38016, 0x9baa5195
+0, 216, 216, 1, 38016, 0xacb53a1a
+0, 217, 217, 1, 38016, 0x825d4fb7
+0, 218, 218, 1, 38016, 0x63194b14
+0, 219, 219, 1, 38016, 0xcb16360e
+0, 220, 220, 1, 38016, 0x35104320
+0, 221, 221, 1, 38016, 0x7e4c33dc
+0, 222, 222, 1, 38016, 0x84811693
+0, 223, 223, 1, 38016, 0x242b1811
+0, 224, 224, 1, 38016, 0xb4af2667
+0, 225, 225, 1, 38016, 0x77a20da2
+0, 226, 226, 1, 38016, 0x8e4f36a8
+0, 227, 227, 1, 38016, 0xe72435cb
+0, 228, 228, 1, 38016, 0xf38a381b
+0, 229, 229, 1, 38016, 0xb2b876d6
+0, 230, 230, 1, 38016, 0x1c359b35
+0, 231, 231, 1, 38016, 0x4fb8b180
+0, 232, 232, 1, 38016, 0x90fdf94b
+0, 233, 233, 1, 38016, 0xb8680c40
+0, 234, 234, 1, 38016, 0x99331edd
+0, 235, 235, 1, 38016, 0xd8e3433d
+0, 236, 236, 1, 38016, 0x6d4d5aa2
+0, 237, 237, 1, 38016, 0x4c3545c4
+0, 238, 238, 1, 38016, 0x25b8376f
+0, 239, 239, 1, 38016, 0xc4fe09df
+0, 240, 240, 1, 38016, 0x6a9fe4f8
+0, 241, 241, 1, 38016, 0x8fd2c2f3
+0, 242, 242, 1, 38016, 0x78199f41
+0, 243, 243, 1, 38016, 0x27b6e9f0
+0, 244, 244, 1, 38016, 0xd8316400
+0, 245, 245, 1, 38016, 0x0a70cd14
+0, 246, 246, 1, 38016, 0x2075e91c
+0, 247, 247, 1, 38016, 0xcd3cd7cb
+0, 248, 248, 1, 38016, 0x4edc8cf5
+0, 249, 249, 1, 38016, 0xf02e0bc7
+0, 250, 250, 1, 38016, 0xcdd1b487
+0, 251, 251, 1, 38016, 0xea5f6c8f
+0, 252, 252, 1, 38016, 0x6b635e22
+0, 253, 253, 1, 38016, 0xd548c435
+0, 254, 254, 1, 38016, 0x455826ee
+0, 255, 255, 1, 38016, 0x120ac7ed
+0, 256, 256, 1, 38016, 0xf86adc5a
+0, 257, 257, 1, 38016, 0x8dbd5c4e
+0, 258, 258, 1, 38016, 0xe4c62dae
+0, 259, 259, 1, 38016, 0x0a2a3be7
+0, 260, 260, 1, 38016, 0xf8a243d7
+0, 261, 261, 1, 38016, 0x898a3afb
+0, 262, 262, 1, 38016, 0x39e661bb
+0, 263, 263, 1, 38016, 0xe4e65f22
+0, 264, 264, 1, 38016, 0x014846ff
+0, 265, 265, 1, 38016, 0xf392509c
+0, 266, 266, 1, 38016, 0x34623207
+0, 267, 267, 1, 38016, 0xac4a09ed
+0, 268, 268, 1, 38016, 0x9d18eb07
+0, 269, 269, 1, 38016, 0x4594c90e
+0, 270, 270, 1, 38016, 0x624f9b6b
+0, 271, 271, 1, 38016, 0x8adc89d3
+0, 272, 272, 1, 38016, 0xf4dd64f6
+0, 273, 273, 1, 38016, 0x4c121386
+0, 274, 274, 1, 38016, 0xfb5ddc7e
+0, 275, 275, 1, 38016, 0x837fc31e
+0, 276, 276, 1, 38016, 0xa4f4bd31
+0, 277, 277, 1, 38016, 0x0445def7
+0, 278, 278, 1, 38016, 0xbac0fe62
+0, 279, 279, 1, 38016, 0x050b5778
+0, 280, 280, 1, 38016, 0x3d0723e5
+0, 281, 281, 1, 38016, 0x9967eae7
+0, 282, 282, 1, 38016, 0xf4be9ec7
+0, 283, 283, 1, 38016, 0x870377d2
+0, 284, 284, 1, 38016, 0x5c9d648a
+0, 285, 285, 1, 38016, 0x2d41a44b
+0, 286, 286, 1, 38016, 0xa50e7c6f
+0, 287, 287, 1, 38016, 0x2bd1b477
+0, 288, 288, 1, 38016, 0xd123ae8d
+0, 289, 289, 1, 38016, 0xf2fc7a6b
+0, 290, 290, 1, 38016, 0xaa3ee416
+0, 291, 291, 1, 38016, 0x5f8801d6
+0, 292, 292, 1, 38016, 0xbee7924a
+0, 293, 293, 1, 38016, 0x6e47c3e1
+0, 294, 294, 1, 38016, 0xf34f1223
+0, 295, 295, 1, 38016, 0x7a610876
+0, 296, 296, 1, 38016, 0x15e9e47f
+0, 297, 297, 1, 38016, 0x557ddcf1
+0, 298, 298, 1, 38016, 0xf0cd02e2
+0, 299, 299, 1, 38016, 0xe98f1deb
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-caqp1_sony_b b/ffmpeg1/tests/ref/fate/h264-conformance-caqp1_sony_b
new file mode 100644
index 0000000..beca1c5
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-caqp1_sony_b
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x25f92b0e
+0, 1, 1, 1, 38016, 0x2ecbe752
+0, 2, 2, 1, 38016, 0x3432e744
+0, 3, 3, 1, 38016, 0x7970aa2e
+0, 4, 4, 1, 38016, 0x250787bf
+0, 5, 5, 1, 38016, 0xd58e5e56
+0, 6, 6, 1, 38016, 0xf4b8580f
+0, 7, 7, 1, 38016, 0x9acb4096
+0, 8, 8, 1, 38016, 0xeed0476f
+0, 9, 9, 1, 38016, 0xe33846ef
+0, 10, 10, 1, 38016, 0x02da4e76
+0, 11, 11, 1, 38016, 0xd3e572f8
+0, 12, 12, 1, 38016, 0x5fd27f8a
+0, 13, 13, 1, 38016, 0xfa169823
+0, 14, 14, 1, 38016, 0xcc6b8d76
+0, 15, 15, 1, 38016, 0xcc4da11f
+0, 16, 16, 1, 38016, 0x32259b9d
+0, 17, 17, 1, 38016, 0xf1e39b70
+0, 18, 18, 1, 38016, 0xb49d7480
+0, 19, 19, 1, 38016, 0x3dc158e9
+0, 20, 20, 1, 38016, 0x4ce134db
+0, 21, 21, 1, 38016, 0x4fb30b43
+0, 22, 22, 1, 38016, 0xda49fe5f
+0, 23, 23, 1, 38016, 0x7fda0d68
+0, 24, 24, 1, 38016, 0x3a8b25e3
+0, 25, 25, 1, 38016, 0x3df11d4e
+0, 26, 26, 1, 38016, 0x26e11107
+0, 27, 27, 1, 38016, 0xdc3b03a7
+0, 28, 28, 1, 38016, 0x72b2434d
+0, 29, 29, 1, 38016, 0x2a013e27
+0, 30, 30, 1, 38016, 0xf95a4c2e
+0, 31, 31, 1, 38016, 0x1e7b6656
+0, 32, 32, 1, 38016, 0x776a81c8
+0, 33, 33, 1, 38016, 0x162cb0bf
+0, 34, 34, 1, 38016, 0x7ff4aaf5
+0, 35, 35, 1, 38016, 0x7150b50b
+0, 36, 36, 1, 38016, 0xf7d0b889
+0, 37, 37, 1, 38016, 0xbe09b5c2
+0, 38, 38, 1, 38016, 0xf6f7d29c
+0, 39, 39, 1, 38016, 0x4356b996
+0, 40, 40, 1, 38016, 0xb056c4b4
+0, 41, 41, 1, 38016, 0x38e9c6e6
+0, 42, 42, 1, 38016, 0x9c64ab45
+0, 43, 43, 1, 38016, 0x31189eef
+0, 44, 44, 1, 38016, 0x1ee3a3b1
+0, 45, 45, 1, 38016, 0x8bed7c95
+0, 46, 46, 1, 38016, 0x30357cee
+0, 47, 47, 1, 38016, 0x5d828428
+0, 48, 48, 1, 38016, 0xc06388b3
+0, 49, 49, 1, 38016, 0x2af597b4
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b b/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
new file mode 100644
index 0000000..f80c3be
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b b/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b
new file mode 100644
index 0000000..edee4bf
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x21baedbf
+0, 1, 1, 1, 518400, 0x6003273c
+0, 2, 2, 1, 518400, 0x935d45d7
+0, 3, 3, 1, 518400, 0x00485000
+0, 4, 4, 1, 518400, 0x31b191ff
+0, 5, 5, 1, 518400, 0xe334135a
+0, 6, 6, 1, 518400, 0xc4d7bf2c
+0, 7, 7, 1, 518400, 0x7106ac82
+0, 8, 8, 1, 518400, 0xeb277b07
+0, 9, 9, 1, 518400, 0xaf1ee80f
+0, 10, 10, 1, 518400, 0x8c7d1bad
+0, 11, 11, 1, 518400, 0x0e24ae6c
+0, 12, 12, 1, 518400, 0x89c216b4
+0, 13, 13, 1, 518400, 0x991fbcb1
+0, 14, 14, 1, 518400, 0x87411486
+0, 15, 15, 1, 518400, 0x0151b48f
+0, 16, 16, 1, 518400, 0x3f4d5a91
+0, 17, 17, 1, 518400, 0x48ea911b
+0, 18, 18, 1, 518400, 0x6bec19a0
+0, 19, 19, 1, 518400, 0x10233bf6
+0, 20, 20, 1, 518400, 0x2a36ae4d
+0, 21, 21, 1, 518400, 0xd8d3224b
+0, 22, 22, 1, 518400, 0xf5c5f81f
+0, 23, 23, 1, 518400, 0x30054561
+0, 24, 24, 1, 518400, 0x67ea1c9f
+0, 25, 25, 1, 518400, 0xbbda3984
+0, 26, 26, 1, 518400, 0x9af40c71
+0, 27, 27, 1, 518400, 0xb0cf0d12
+0, 28, 28, 1, 518400, 0x569b9866
+0, 29, 29, 1, 518400, 0xffd72ee5
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b b/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b
new file mode 100644
index 0000000..7d3ae3e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x4cecc821
+0, 1, 1, 1, 518400, 0xee49ea81
+0, 2, 2, 1, 518400, 0x78b0d65f
+0, 3, 3, 1, 518400, 0x7fa72010
+0, 4, 4, 1, 518400, 0xbc7fecdb
+0, 5, 5, 1, 518400, 0xe54cf951
+0, 6, 6, 1, 518400, 0x1e2795e0
+0, 7, 7, 1, 518400, 0x7db968b9
+0, 8, 8, 1, 518400, 0xcecb446b
+0, 9, 9, 1, 518400, 0x4f813fc5
+0, 10, 10, 1, 518400, 0xd0816131
+0, 11, 11, 1, 518400, 0x6cf66cb7
+0, 12, 12, 1, 518400, 0xac9913a1
+0, 13, 13, 1, 518400, 0x0a2dd6ae
+0, 14, 14, 1, 518400, 0x5de1acef
+0, 15, 15, 1, 518400, 0x5ac7741e
+0, 16, 16, 1, 518400, 0x4d2726de
+0, 17, 17, 1, 518400, 0x6b9b2677
+0, 18, 18, 1, 518400, 0x99b70e82
+0, 19, 19, 1, 518400, 0x6a01ed56
+0, 20, 20, 1, 518400, 0xa6976f95
+0, 21, 21, 1, 518400, 0x645f6562
+0, 22, 22, 1, 518400, 0xf750796b
+0, 23, 23, 1, 518400, 0xe381ee9c
+0, 24, 24, 1, 518400, 0xb7d45f84
+0, 25, 25, 1, 518400, 0x7c9d79df
+0, 26, 26, 1, 518400, 0x8a306a11
+0, 27, 27, 1, 518400, 0x766fcf15
+0, 28, 28, 1, 518400, 0x45c3cbdd
+0, 29, 29, 1, 518400, 0x6a22610e
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b b/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
new file mode 100644
index 0000000..ed5e02e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cawp1_toshiba_e b/ffmpeg1/tests/ref/fate/h264-conformance-cawp1_toshiba_e
new file mode 100644
index 0000000..e5a6944
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cawp1_toshiba_e
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xabf9ae05
+0, 1, 1, 1, 152064, 0x20418b16
+0, 2, 2, 1, 152064, 0xc26760ae
+0, 3, 3, 1, 152064, 0x7ed0c861
+0, 4, 4, 1, 152064, 0x1a13d207
+0, 5, 5, 1, 152064, 0x700bdb09
+0, 6, 6, 1, 152064, 0x7fa6476e
+0, 7, 7, 1, 152064, 0x951158c6
+0, 8, 8, 1, 152064, 0x263a2dfc
+0, 9, 9, 1, 152064, 0xa25c5371
+0, 10, 10, 1, 152064, 0xd67bd5c5
+0, 11, 11, 1, 152064, 0x73e6d7c0
+0, 12, 12, 1, 152064, 0x509967e4
+0, 13, 13, 1, 152064, 0x27574b8f
+0, 14, 14, 1, 152064, 0xa701d36f
+0, 15, 15, 1, 152064, 0x3d457728
+0, 16, 16, 1, 152064, 0xe9977098
+0, 17, 17, 1, 152064, 0x33b3542b
+0, 18, 18, 1, 152064, 0x5635d3fa
+0, 19, 19, 1, 152064, 0x51dbc0bd
+0, 20, 20, 1, 152064, 0xa2287df1
+0, 21, 21, 1, 152064, 0x24533377
+0, 22, 22, 1, 152064, 0xfd05e083
+0, 23, 23, 1, 152064, 0xfadce02d
+0, 24, 24, 1, 152064, 0xf67cc1da
+0, 25, 25, 1, 152064, 0x4e7bc654
+0, 26, 26, 1, 152064, 0x5b686f11
+0, 27, 27, 1, 152064, 0xb8e33dc8
+0, 28, 28, 1, 152064, 0x0ff224ca
+0, 29, 29, 1, 152064, 0xcd98c152
+0, 30, 30, 1, 152064, 0x4fdfb595
+0, 31, 31, 1, 152064, 0xb1b7f4fc
+0, 32, 32, 1, 152064, 0x666ccd6a
+0, 33, 33, 1, 152064, 0x80e9c1a3
+0, 34, 34, 1, 152064, 0x304b9be3
+0, 35, 35, 1, 152064, 0x9741fb13
+0, 36, 36, 1, 152064, 0x5e016501
+0, 37, 37, 1, 152064, 0x50dd4139
+0, 38, 38, 1, 152064, 0x9a4ef972
+0, 39, 39, 1, 152064, 0x03b7da4e
+0, 40, 40, 1, 152064, 0x17fd7d8a
+0, 41, 41, 1, 152064, 0xc0137bb0
+0, 42, 42, 1, 152064, 0xaf167d40
+0, 43, 43, 1, 152064, 0xde191051
+0, 44, 44, 1, 152064, 0x1cdcee05
+0, 45, 45, 1, 152064, 0xa8d1b139
+0, 46, 46, 1, 152064, 0xade6bf62
+0, 47, 47, 1, 152064, 0x4515a552
+0, 48, 48, 1, 152064, 0xb05036fe
+0, 49, 49, 1, 152064, 0xfa500b17
+0, 50, 50, 1, 152064, 0x512dec06
+0, 51, 51, 1, 152064, 0x0e77ff69
+0, 52, 52, 1, 152064, 0x06f7b2cd
+0, 53, 53, 1, 152064, 0x9bc99b67
+0, 54, 54, 1, 152064, 0x6b68301b
+0, 55, 55, 1, 152064, 0xe31321ba
+0, 56, 56, 1, 152064, 0x9ad0192e
+0, 57, 57, 1, 152064, 0xcc14d7c8
+0, 58, 58, 1, 152064, 0xf6ab91ec
+0, 59, 59, 1, 152064, 0xf76afbce
+0, 60, 60, 1, 152064, 0xb7d7f1dc
+0, 61, 61, 1, 152064, 0xca95e688
+0, 62, 62, 1, 152064, 0xc36bb8ac
+0, 63, 63, 1, 152064, 0xc1c06a2e
+0, 64, 64, 1, 152064, 0xf2a08f2a
+0, 65, 65, 1, 152064, 0xb81013d2
+0, 66, 66, 1, 152064, 0xf30cee41
+0, 67, 67, 1, 152064, 0xad85c0d6
+0, 68, 68, 1, 152064, 0x087b7807
+0, 69, 69, 1, 152064, 0x178c39f0
+0, 70, 70, 1, 152064, 0x6e0e3e66
+0, 71, 71, 1, 152064, 0x9a020bcf
+0, 72, 72, 1, 152064, 0xc33d4749
+0, 73, 73, 1, 152064, 0x6370dbad
+0, 74, 74, 1, 152064, 0x928cbe47
+0, 75, 75, 1, 152064, 0xb8b036cc
+0, 76, 76, 1, 152064, 0x79d92c37
+0, 77, 77, 1, 152064, 0xc4cf0d8f
+0, 78, 78, 1, 152064, 0xfe706c76
+0, 79, 79, 1, 152064, 0x6a37de81
+0, 80, 80, 1, 152064, 0x659eb2c1
+0, 81, 81, 1, 152064, 0x0630855f
+0, 82, 82, 1, 152064, 0xfa964f67
+0, 83, 83, 1, 152064, 0xc5a1ff95
+0, 84, 84, 1, 152064, 0xa131b89f
+0, 85, 85, 1, 152064, 0x73007c16
+0, 86, 86, 1, 152064, 0x4d237a3b
+0, 87, 87, 1, 152064, 0xe68f44be
+0, 88, 88, 1, 152064, 0x065f0be3
+0, 89, 89, 1, 152064, 0x39cab454
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cawp5_toshiba_e b/ffmpeg1/tests/ref/fate/h264-conformance-cawp5_toshiba_e
new file mode 100644
index 0000000..5b48f8f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cawp5_toshiba_e
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xabf9ae05
+0, 1, 1, 1, 152064, 0x20418b16
+0, 2, 2, 1, 152064, 0x20f72775
+0, 3, 3, 1, 152064, 0x57c07111
+0, 4, 4, 1, 152064, 0x1b49267f
+0, 5, 5, 1, 152064, 0x024cd238
+0, 6, 6, 1, 152064, 0x044d1ae0
+0, 7, 7, 1, 152064, 0xbfec1b59
+0, 8, 8, 1, 152064, 0x1a91f935
+0, 9, 9, 1, 152064, 0x9ee184dc
+0, 10, 10, 1, 152064, 0x65047dbe
+0, 11, 11, 1, 152064, 0xd1632fb5
+0, 12, 12, 1, 152064, 0x56f64c3e
+0, 13, 13, 1, 152064, 0xe6122f37
+0, 14, 14, 1, 152064, 0x0575e670
+0, 15, 15, 1, 152064, 0x3d457728
+0, 16, 16, 1, 152064, 0x6b508105
+0, 17, 17, 1, 152064, 0xcaaf5ea7
+0, 18, 18, 1, 152064, 0x9f4e4501
+0, 19, 19, 1, 152064, 0x1c661a73
+0, 20, 20, 1, 152064, 0x2fd9d1c8
+0, 21, 21, 1, 152064, 0x4ac99ab1
+0, 22, 22, 1, 152064, 0xf2d36809
+0, 23, 23, 1, 152064, 0xa8e32ffb
+0, 24, 24, 1, 152064, 0xd4da2fd2
+0, 25, 25, 1, 152064, 0xac3adde0
+0, 26, 26, 1, 152064, 0xf014ed0f
+0, 27, 27, 1, 152064, 0xca2e7d28
+0, 28, 28, 1, 152064, 0x3a875e51
+0, 29, 29, 1, 152064, 0xc03e4bda
+0, 30, 30, 1, 152064, 0x4fdfb595
+0, 31, 31, 1, 152064, 0x9243f098
+0, 32, 32, 1, 152064, 0x9361bae6
+0, 33, 33, 1, 152064, 0x7a1dadee
+0, 34, 34, 1, 152064, 0x72a59e15
+0, 35, 35, 1, 152064, 0xb5b47170
+0, 36, 36, 1, 152064, 0x5eb16651
+0, 37, 37, 1, 152064, 0xe7894af7
+0, 38, 38, 1, 152064, 0x2683bb0b
+0, 39, 39, 1, 152064, 0x90b4c8c5
+0, 40, 40, 1, 152064, 0xf800c5b5
+0, 41, 41, 1, 152064, 0xc2f5a895
+0, 42, 42, 1, 152064, 0x213c65d4
+0, 43, 43, 1, 152064, 0x01c65a19
+0, 44, 44, 1, 152064, 0xd9f1b04b
+0, 45, 45, 1, 152064, 0xa8d1b139
+0, 46, 46, 1, 152064, 0x2d0cb0cd
+0, 47, 47, 1, 152064, 0x5b0783fe
+0, 48, 48, 1, 152064, 0x29e628ec
+0, 49, 49, 1, 152064, 0x1b8527e5
+0, 50, 50, 1, 152064, 0x4b46d179
+0, 51, 51, 1, 152064, 0x6184c708
+0, 52, 52, 1, 152064, 0x697bb8e2
+0, 53, 53, 1, 152064, 0x5fd3a772
+0, 54, 54, 1, 152064, 0x91456c86
+0, 55, 55, 1, 152064, 0x376c4dae
+0, 56, 56, 1, 152064, 0x00ba2b3f
+0, 57, 57, 1, 152064, 0xf6f0f553
+0, 58, 58, 1, 152064, 0xc0020855
+0, 59, 59, 1, 152064, 0xec3d13d2
+0, 60, 60, 1, 152064, 0xb7d7f1dc
+0, 61, 61, 1, 152064, 0xf9dae37b
+0, 62, 62, 1, 152064, 0x50d9cc93
+0, 63, 63, 1, 152064, 0xba1eb592
+0, 64, 64, 1, 152064, 0x67616557
+0, 65, 65, 1, 152064, 0x09804760
+0, 66, 66, 1, 152064, 0xc2ffba00
+0, 67, 67, 1, 152064, 0xb71fcf46
+0, 68, 68, 1, 152064, 0x6cd975af
+0, 69, 69, 1, 152064, 0x19189167
+0, 70, 70, 1, 152064, 0xbca8fe71
+0, 71, 71, 1, 152064, 0xb0b3f607
+0, 72, 72, 1, 152064, 0x7614d73a
+0, 73, 73, 1, 152064, 0x7de9d87d
+0, 74, 74, 1, 152064, 0x81f58cf2
+0, 75, 75, 1, 152064, 0xb8b036cc
+0, 76, 76, 1, 152064, 0x26d1e2e4
+0, 77, 77, 1, 152064, 0xb41a1e6c
+0, 78, 78, 1, 152064, 0x4f9be4a9
+0, 79, 79, 1, 152064, 0xe95ad5d3
+0, 80, 80, 1, 152064, 0xdffc9335
+0, 81, 81, 1, 152064, 0x01d658c0
+0, 82, 82, 1, 152064, 0x631b4b75
+0, 83, 83, 1, 152064, 0x80ae282f
+0, 84, 84, 1, 152064, 0xb34bf688
+0, 85, 85, 1, 152064, 0xd0cc7d65
+0, 86, 86, 1, 152064, 0x86aa4590
+0, 87, 87, 1, 152064, 0xcb515a57
+0, 88, 88, 1, 152064, 0x68650834
+0, 89, 89, 1, 152064, 0x444ee2a4
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-ci1_ft_b b/ffmpeg1/tests/ref/fate/h264-conformance-ci1_ft_b
new file mode 100644
index 0000000..08e40f4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-ci1_ft_b
@@ -0,0 +1,292 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xb291a678
+0, 1, 1, 1, 152064, 0x913c5a5d
+0, 2, 2, 1, 152064, 0x9558a372
+0, 3, 3, 1, 152064, 0x5e521e9b
+0, 4, 4, 1, 152064, 0xbc2c7bd7
+0, 5, 5, 1, 152064, 0x8867cc80
+0, 6, 6, 1, 152064, 0xae394b0b
+0, 7, 7, 1, 152064, 0x15d9c120
+0, 8, 8, 1, 152064, 0xffe01d0f
+0, 9, 9, 1, 152064, 0xf90a1d50
+0, 10, 10, 1, 152064, 0x7b9b6a02
+0, 11, 11, 1, 152064, 0x687f5afa
+0, 12, 12, 1, 152064, 0x6bf7b8a2
+0, 13, 13, 1, 152064, 0x45cb58e9
+0, 14, 14, 1, 152064, 0xc4246ef0
+0, 15, 15, 1, 152064, 0xa19dbe0a
+0, 16, 16, 1, 152064, 0xe297eaa9
+0, 17, 17, 1, 152064, 0x8f4300bc
+0, 18, 18, 1, 152064, 0x9a541a18
+0, 19, 19, 1, 152064, 0xf3b51480
+0, 20, 20, 1, 152064, 0x5a191303
+0, 21, 21, 1, 152064, 0x2e887f27
+0, 22, 22, 1, 152064, 0xf050d46d
+0, 23, 23, 1, 152064, 0xc31c6716
+0, 24, 24, 1, 152064, 0x37761725
+0, 25, 25, 1, 152064, 0x81141cf6
+0, 26, 26, 1, 152064, 0x181f7e61
+0, 27, 27, 1, 152064, 0x9fc2b668
+0, 28, 28, 1, 152064, 0x3716f5da
+0, 29, 29, 1, 152064, 0x3b28f0c9
+0, 30, 30, 1, 152064, 0xe33bd972
+0, 31, 31, 1, 152064, 0x948ccdaa
+0, 32, 32, 1, 152064, 0x21fdc6c2
+0, 33, 33, 1, 152064, 0x3874b6fc
+0, 34, 34, 1, 152064, 0x07b7a748
+0, 35, 35, 1, 152064, 0x7aee8b8d
+0, 36, 36, 1, 152064, 0x013d7552
+0, 37, 37, 1, 152064, 0x9631487e
+0, 38, 38, 1, 152064, 0xd9a109d6
+0, 39, 39, 1, 152064, 0x7b450b1b
+0, 40, 40, 1, 152064, 0x25f0cb06
+0, 41, 41, 1, 152064, 0x6542aa9c
+0, 42, 42, 1, 152064, 0x40ba9bd7
+0, 43, 43, 1, 152064, 0x2dc7d564
+0, 44, 44, 1, 152064, 0x4534a83f
+0, 45, 45, 1, 152064, 0x671551a3
+0, 46, 46, 1, 152064, 0xc69a9a28
+0, 47, 47, 1, 152064, 0x899be59a
+0, 48, 48, 1, 152064, 0x1adb6455
+0, 49, 49, 1, 152064, 0x5d34066b
+0, 50, 50, 1, 152064, 0x17f4dcec
+0, 51, 51, 1, 152064, 0xcc9fd4b1
+0, 52, 52, 1, 152064, 0x329aaeb5
+0, 53, 53, 1, 152064, 0x4532a3f0
+0, 54, 54, 1, 152064, 0xb0440be3
+0, 55, 55, 1, 152064, 0x9055a9e2
+0, 56, 56, 1, 152064, 0x1f5b4730
+0, 57, 57, 1, 152064, 0x55fc2ba8
+0, 58, 58, 1, 152064, 0x6adc911a
+0, 59, 59, 1, 152064, 0x4968851f
+0, 60, 60, 1, 152064, 0x31a86628
+0, 61, 61, 1, 152064, 0x7223240a
+0, 62, 62, 1, 152064, 0xb982e88e
+0, 63, 63, 1, 152064, 0xba45b5ea
+0, 64, 64, 1, 152064, 0x72f55121
+0, 65, 65, 1, 152064, 0x36c59af9
+0, 66, 66, 1, 152064, 0x6fc51449
+0, 67, 67, 1, 152064, 0xbd9d99b7
+0, 68, 68, 1, 152064, 0x0bd3a6e7
+0, 69, 69, 1, 152064, 0x5a5d0203
+0, 70, 70, 1, 152064, 0x44a26951
+0, 71, 71, 1, 152064, 0xfe9fcff5
+0, 72, 72, 1, 152064, 0xce25a939
+0, 73, 73, 1, 152064, 0xdf7c1b79
+0, 74, 74, 1, 152064, 0xe82a1c4c
+0, 75, 75, 1, 152064, 0x946b20d7
+0, 76, 76, 1, 152064, 0x5d4887d2
+0, 77, 77, 1, 152064, 0xadfe1034
+0, 78, 78, 1, 152064, 0x6d20b119
+0, 79, 79, 1, 152064, 0x8e414e12
+0, 80, 80, 1, 152064, 0x06effdf9
+0, 81, 81, 1, 152064, 0x3073e4f5
+0, 82, 82, 1, 152064, 0xa0ef2291
+0, 83, 83, 1, 152064, 0x3feb2cf6
+0, 84, 84, 1, 152064, 0x3e77b0c8
+0, 85, 85, 1, 152064, 0xdbce3b7a
+0, 86, 86, 1, 152064, 0x15e0b088
+0, 87, 87, 1, 152064, 0xb05bb465
+0, 88, 88, 1, 152064, 0x63423915
+0, 89, 89, 1, 152064, 0x290210f4
+0, 90, 90, 1, 152064, 0x4d14cc43
+0, 91, 91, 1, 152064, 0x4a5509fe
+0, 92, 92, 1, 152064, 0x110c6420
+0, 93, 93, 1, 152064, 0xbe614dfb
+0, 94, 94, 1, 152064, 0xa6311469
+0, 95, 95, 1, 152064, 0x198b6b73
+0, 96, 96, 1, 152064, 0xe96fe872
+0, 97, 97, 1, 152064, 0x7a7a6937
+0, 98, 98, 1, 152064, 0xfe2b868d
+0, 99, 99, 1, 152064, 0x9e0bbb2b
+0, 100, 100, 1, 152064, 0x53dbdf39
+0, 101, 101, 1, 152064, 0xee90ba8e
+0, 102, 102, 1, 152064, 0x38bcb94d
+0, 103, 103, 1, 152064, 0x16a6d9bb
+0, 104, 104, 1, 152064, 0x450ae454
+0, 105, 105, 1, 152064, 0x7d98fcf4
+0, 106, 106, 1, 152064, 0xc54ed4cf
+0, 107, 107, 1, 152064, 0x560d74ac
+0, 108, 108, 1, 152064, 0xb203fc98
+0, 109, 109, 1, 152064, 0xb085b576
+0, 110, 110, 1, 152064, 0x05e16f79
+0, 111, 111, 1, 152064, 0x90cd4c73
+0, 112, 112, 1, 152064, 0x4dd42a7f
+0, 113, 113, 1, 152064, 0x26b9e35c
+0, 114, 114, 1, 152064, 0x70cbb417
+0, 115, 115, 1, 152064, 0x0a1bc4a9
+0, 116, 116, 1, 152064, 0xe08fdbc9
+0, 117, 117, 1, 152064, 0x8768cd49
+0, 118, 118, 1, 152064, 0x80a4b575
+0, 119, 119, 1, 152064, 0x68478ea6
+0, 120, 120, 1, 152064, 0x8f8c589d
+0, 121, 121, 1, 152064, 0x8ee4345c
+0, 122, 122, 1, 152064, 0x93911901
+0, 123, 123, 1, 152064, 0x38fb4298
+0, 124, 124, 1, 152064, 0x8bee60e7
+0, 125, 125, 1, 152064, 0x3f906dbd
+0, 126, 126, 1, 152064, 0x9de2a984
+0, 127, 127, 1, 152064, 0x64c804e0
+0, 128, 128, 1, 152064, 0x4757c864
+0, 129, 129, 1, 152064, 0xe6f43905
+0, 130, 130, 1, 152064, 0x8ad2e577
+0, 131, 131, 1, 152064, 0x1b06977e
+0, 132, 132, 1, 152064, 0xe92a2dfa
+0, 133, 133, 1, 152064, 0x97b993fa
+0, 134, 134, 1, 152064, 0x1602de2d
+0, 135, 135, 1, 152064, 0x6dda24f1
+0, 136, 136, 1, 152064, 0x5552ec9d
+0, 137, 137, 1, 152064, 0xcce058e8
+0, 138, 138, 1, 152064, 0x4359bccd
+0, 139, 139, 1, 152064, 0xe41d77d0
+0, 140, 140, 1, 152064, 0x05730d21
+0, 141, 141, 1, 152064, 0xa963bf92
+0, 142, 142, 1, 152064, 0x3f4d8e29
+0, 143, 143, 1, 152064, 0x385d2403
+0, 144, 144, 1, 152064, 0xd8e279d6
+0, 145, 145, 1, 152064, 0xcfcb3713
+0, 146, 146, 1, 152064, 0xd68d57d4
+0, 147, 147, 1, 152064, 0xdaecd2d6
+0, 148, 148, 1, 152064, 0x7c1805cf
+0, 149, 149, 1, 152064, 0x19969137
+0, 150, 150, 1, 152064, 0x15007e0c
+0, 151, 151, 1, 152064, 0xf4f5011a
+0, 152, 152, 1, 152064, 0x792793e3
+0, 153, 153, 1, 152064, 0x1c4126f9
+0, 154, 154, 1, 152064, 0xfaeb9465
+0, 155, 155, 1, 152064, 0x3366c5c6
+0, 156, 156, 1, 152064, 0x8efa29ed
+0, 157, 157, 1, 152064, 0x2b36d937
+0, 158, 158, 1, 152064, 0x4cfc993f
+0, 159, 159, 1, 152064, 0x0809f8f8
+0, 160, 160, 1, 152064, 0x5be26710
+0, 161, 161, 1, 152064, 0x6d757860
+0, 162, 162, 1, 152064, 0xf4e8706d
+0, 163, 163, 1, 152064, 0xec42387d
+0, 164, 164, 1, 152064, 0x828f02e1
+0, 165, 165, 1, 152064, 0x45a0954c
+0, 166, 166, 1, 152064, 0xbcca1065
+0, 167, 167, 1, 152064, 0xd5946707
+0, 168, 168, 1, 152064, 0x6887cbcb
+0, 169, 169, 1, 152064, 0x63fc7423
+0, 170, 170, 1, 152064, 0x3339ebc2
+0, 171, 171, 1, 152064, 0x6419e277
+0, 172, 172, 1, 152064, 0xe9cd70aa
+0, 173, 173, 1, 152064, 0x23903b35
+0, 174, 174, 1, 152064, 0xd83d028a
+0, 175, 175, 1, 152064, 0x79e21536
+0, 176, 176, 1, 152064, 0x81cc6027
+0, 177, 177, 1, 152064, 0x56334e89
+0, 178, 178, 1, 152064, 0xe32e532e
+0, 179, 179, 1, 152064, 0x528832b4
+0, 180, 180, 1, 152064, 0x348da007
+0, 181, 181, 1, 152064, 0x5104b2e8
+0, 182, 182, 1, 152064, 0x7b0d1f8f
+0, 183, 183, 1, 152064, 0x6750c77c
+0, 184, 184, 1, 152064, 0x3a8f2faa
+0, 185, 185, 1, 152064, 0x8a24a116
+0, 186, 186, 1, 152064, 0x82d00d82
+0, 187, 187, 1, 152064, 0xc6f5b11a
+0, 188, 188, 1, 152064, 0x2b352039
+0, 189, 189, 1, 152064, 0x7c067e22
+0, 190, 190, 1, 152064, 0xc975d80d
+0, 191, 191, 1, 152064, 0xa49978ed
+0, 192, 192, 1, 152064, 0x441f703e
+0, 193, 193, 1, 152064, 0x5cb150c5
+0, 194, 194, 1, 152064, 0xeeda6c8e
+0, 195, 195, 1, 152064, 0xe9e0ce47
+0, 196, 196, 1, 152064, 0xba55acbd
+0, 197, 197, 1, 152064, 0xae8250e5
+0, 198, 198, 1, 152064, 0xf438f2e8
+0, 199, 199, 1, 152064, 0xe6263d10
+0, 200, 200, 1, 152064, 0x8d13277a
+0, 201, 201, 1, 152064, 0x4bfb4aab
+0, 202, 202, 1, 152064, 0x1c0a78ea
+0, 203, 203, 1, 152064, 0xa0651778
+0, 204, 204, 1, 152064, 0xa309ca66
+0, 205, 205, 1, 152064, 0x294c750b
+0, 206, 206, 1, 152064, 0xd55d6881
+0, 207, 207, 1, 152064, 0x8d002b72
+0, 208, 208, 1, 152064, 0xe0ae5976
+0, 209, 209, 1, 152064, 0xc6f28961
+0, 210, 210, 1, 152064, 0x6fb5899d
+0, 211, 211, 1, 152064, 0x046f3445
+0, 212, 212, 1, 152064, 0x9b2d5779
+0, 213, 213, 1, 152064, 0xeb9db946
+0, 214, 214, 1, 152064, 0x190bdc3b
+0, 215, 215, 1, 152064, 0xb9ae5c7b
+0, 216, 216, 1, 152064, 0xca07ad32
+0, 217, 217, 1, 152064, 0x8d1fee22
+0, 218, 218, 1, 152064, 0x446470dd
+0, 219, 219, 1, 152064, 0x8802cf93
+0, 220, 220, 1, 152064, 0x8bbaeb30
+0, 221, 221, 1, 152064, 0xfe4e7fdf
+0, 222, 222, 1, 152064, 0xc6379dc7
+0, 223, 223, 1, 152064, 0xaa53198b
+0, 224, 224, 1, 152064, 0x88d6d37c
+0, 225, 225, 1, 152064, 0xd1b89370
+0, 226, 226, 1, 152064, 0xdab349f4
+0, 227, 227, 1, 152064, 0x4702c238
+0, 228, 228, 1, 152064, 0xfaa893bb
+0, 229, 229, 1, 152064, 0x515b940e
+0, 230, 230, 1, 152064, 0x4d86d838
+0, 231, 231, 1, 152064, 0xe3815641
+0, 232, 232, 1, 152064, 0x0e501c17
+0, 233, 233, 1, 152064, 0x449df073
+0, 234, 234, 1, 152064, 0xc06daa27
+0, 235, 235, 1, 152064, 0x72f5394c
+0, 236, 236, 1, 152064, 0x18be9f70
+0, 237, 237, 1, 152064, 0xc508213a
+0, 238, 238, 1, 152064, 0xa616a322
+0, 239, 239, 1, 152064, 0x1a5d09e5
+0, 240, 240, 1, 152064, 0xf6e78051
+0, 241, 241, 1, 152064, 0x8945ad83
+0, 242, 242, 1, 152064, 0xa06fd95d
+0, 243, 243, 1, 152064, 0x7d86f015
+0, 244, 244, 1, 152064, 0x768af87c
+0, 245, 245, 1, 152064, 0xffa2e8d9
+0, 246, 246, 1, 152064, 0x2ac0d2df
+0, 247, 247, 1, 152064, 0x40c27662
+0, 248, 248, 1, 152064, 0xfcc7580a
+0, 249, 249, 1, 152064, 0xcdbd51f0
+0, 250, 250, 1, 152064, 0xe0d754ec
+0, 251, 251, 1, 152064, 0xbfb59395
+0, 252, 252, 1, 152064, 0x26f6db71
+0, 253, 253, 1, 152064, 0x1d85f144
+0, 254, 254, 1, 152064, 0xfacbfbd9
+0, 255, 255, 1, 152064, 0x55bdf6b8
+0, 256, 256, 1, 152064, 0x9c89e3f8
+0, 257, 257, 1, 152064, 0x6e90c4bd
+0, 258, 258, 1, 152064, 0x3b19a944
+0, 259, 259, 1, 152064, 0xcb527670
+0, 260, 260, 1, 152064, 0xc0ec5c7b
+0, 261, 261, 1, 152064, 0x7f5f4814
+0, 262, 262, 1, 152064, 0xb0983900
+0, 263, 263, 1, 152064, 0xc57534a6
+0, 264, 264, 1, 152064, 0xd37b30b9
+0, 265, 265, 1, 152064, 0x61fe2e9f
+0, 266, 266, 1, 152064, 0x613d2e8a
+0, 267, 267, 1, 152064, 0x9bc5224b
+0, 268, 268, 1, 152064, 0x246122c2
+0, 269, 269, 1, 152064, 0x28811a8f
+0, 270, 270, 1, 152064, 0x609cfcbf
+0, 271, 271, 1, 152064, 0x9c5aee70
+0, 272, 272, 1, 152064, 0x06d7e997
+0, 273, 273, 1, 152064, 0xcb3e1e4a
+0, 274, 274, 1, 152064, 0x65e36256
+0, 275, 275, 1, 152064, 0x571eb628
+0, 276, 276, 1, 152064, 0x9e940be8
+0, 277, 277, 1, 152064, 0x425a374b
+0, 278, 278, 1, 152064, 0xbeed72a2
+0, 279, 279, 1, 152064, 0x295bb61d
+0, 280, 280, 1, 152064, 0xfe2df639
+0, 281, 281, 1, 152064, 0xbd4f441a
+0, 282, 282, 1, 152064, 0x61ce59bc
+0, 283, 283, 1, 152064, 0xd5eb825f
+0, 284, 284, 1, 152064, 0xc03cb656
+0, 285, 285, 1, 152064, 0xfc10c1f6
+0, 286, 286, 1, 152064, 0xb93908dc
+0, 287, 287, 1, 152064, 0xbc2d3209
+0, 288, 288, 1, 152064, 0xcc267ab3
+0, 289, 289, 1, 152064, 0x32629fa0
+0, 290, 290, 1, 152064, 0x5d5bb942
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-ci_mw_d b/ffmpeg1/tests/ref/fate/h264-conformance-ci_mw_d
new file mode 100644
index 0000000..7b5a7dc
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-ci_mw_d
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x3ae838ee
+0, 1, 1, 1, 38016, 0x8523e136
+0, 2, 2, 1, 38016, 0xcffc99dd
+0, 3, 3, 1, 38016, 0xd42c63b0
+0, 4, 4, 1, 38016, 0x6ba94f84
+0, 5, 5, 1, 38016, 0xa5c56dd3
+0, 6, 6, 1, 38016, 0x6f6a929e
+0, 7, 7, 1, 38016, 0x84f89b27
+0, 8, 8, 1, 38016, 0x35bd9f0f
+0, 9, 9, 1, 38016, 0x69058ed2
+0, 10, 10, 1, 38016, 0x44c05088
+0, 11, 11, 1, 38016, 0xed9725f0
+0, 12, 12, 1, 38016, 0x37b92a40
+0, 13, 13, 1, 38016, 0xbeed3c7c
+0, 14, 14, 1, 38016, 0x833a5669
+0, 15, 15, 1, 38016, 0xf37b78b1
+0, 16, 16, 1, 38016, 0x84e2aff4
+0, 17, 17, 1, 38016, 0x8c69c59c
+0, 18, 18, 1, 38016, 0x40fdbe25
+0, 19, 19, 1, 38016, 0x1c7cba40
+0, 20, 20, 1, 38016, 0x052abe29
+0, 21, 21, 1, 38016, 0x398ec317
+0, 22, 22, 1, 38016, 0xa157bb47
+0, 23, 23, 1, 38016, 0x6acfc1a0
+0, 24, 24, 1, 38016, 0xfa77bdba
+0, 25, 25, 1, 38016, 0x2254bb0d
+0, 26, 26, 1, 38016, 0xefdfbdb3
+0, 27, 27, 1, 38016, 0x80eec1f4
+0, 28, 28, 1, 38016, 0x48b6c903
+0, 29, 29, 1, 38016, 0x277dd23b
+0, 30, 30, 1, 38016, 0x4c6aa7c5
+0, 31, 31, 1, 38016, 0x223f6bb7
+0, 32, 32, 1, 38016, 0xdbee4420
+0, 33, 33, 1, 38016, 0x5f888bdc
+0, 34, 34, 1, 38016, 0xe5aef9b8
+0, 35, 35, 1, 38016, 0x6a68596e
+0, 36, 36, 1, 38016, 0x47feb0d4
+0, 37, 37, 1, 38016, 0x46d13363
+0, 38, 38, 1, 38016, 0x31758ae0
+0, 39, 39, 1, 38016, 0xa9b3c513
+0, 40, 40, 1, 38016, 0x041ce805
+0, 41, 41, 1, 38016, 0xd3aef1e9
+0, 42, 42, 1, 38016, 0x8c51ecf8
+0, 43, 43, 1, 38016, 0x60a5f20d
+0, 44, 44, 1, 38016, 0xf3c80bfb
+0, 45, 45, 1, 38016, 0xcec4f6af
+0, 46, 46, 1, 38016, 0x70a1c28c
+0, 47, 47, 1, 38016, 0x1c579938
+0, 48, 48, 1, 38016, 0x07a8a63d
+0, 49, 49, 1, 38016, 0xd16ccd4e
+0, 50, 50, 1, 38016, 0xceb5e478
+0, 51, 51, 1, 38016, 0x81c0bf00
+0, 52, 52, 1, 38016, 0x4867d846
+0, 53, 53, 1, 38016, 0xd8650fd3
+0, 54, 54, 1, 38016, 0x1d8f375c
+0, 55, 55, 1, 38016, 0x5ce65ef5
+0, 56, 56, 1, 38016, 0xbc766bf0
+0, 57, 57, 1, 38016, 0x73cd27ee
+0, 58, 58, 1, 38016, 0xd1433004
+0, 59, 59, 1, 38016, 0xc5bc4798
+0, 60, 60, 1, 38016, 0xeb8a3531
+0, 61, 61, 1, 38016, 0xd4b014b8
+0, 62, 62, 1, 38016, 0xaaa2c77e
+0, 63, 63, 1, 38016, 0xa0a5a94e
+0, 64, 64, 1, 38016, 0x74edcf2e
+0, 65, 65, 1, 38016, 0x2925e32a
+0, 66, 66, 1, 38016, 0x5400da3a
+0, 67, 67, 1, 38016, 0xc50eda9b
+0, 68, 68, 1, 38016, 0xfd4acbe7
+0, 69, 69, 1, 38016, 0xa75eb6ee
+0, 70, 70, 1, 38016, 0xc0dca463
+0, 71, 71, 1, 38016, 0xfd1b83b7
+0, 72, 72, 1, 38016, 0x5b378f02
+0, 73, 73, 1, 38016, 0x608983d5
+0, 74, 74, 1, 38016, 0x6f6f2cda
+0, 75, 75, 1, 38016, 0x9367e1b2
+0, 76, 76, 1, 38016, 0x12d7d677
+0, 77, 77, 1, 38016, 0xd02cc0c5
+0, 78, 78, 1, 38016, 0xbe2fed59
+0, 79, 79, 1, 38016, 0x66c1402d
+0, 80, 80, 1, 38016, 0x150e75cf
+0, 81, 81, 1, 38016, 0x83c959ea
+0, 82, 82, 1, 38016, 0xa9c048f4
+0, 83, 83, 1, 38016, 0xffa9237f
+0, 84, 84, 1, 38016, 0x0ab0d668
+0, 85, 85, 1, 38016, 0xae4de2a4
+0, 86, 86, 1, 38016, 0xfc4322e8
+0, 87, 87, 1, 38016, 0x21f026dd
+0, 88, 88, 1, 38016, 0x7582b6a6
+0, 89, 89, 1, 38016, 0x4ddc5306
+0, 90, 90, 1, 38016, 0x1722db32
+0, 91, 91, 1, 38016, 0x33a0ace6
+0, 92, 92, 1, 38016, 0xe96ebd07
+0, 93, 93, 1, 38016, 0xdff2e5ef
+0, 94, 94, 1, 38016, 0xbf941880
+0, 95, 95, 1, 38016, 0x12ffcea4
+0, 96, 96, 1, 38016, 0x1ef6aaef
+0, 97, 97, 1, 38016, 0x2b01f811
+0, 98, 98, 1, 38016, 0x422b5992
+0, 99, 99, 1, 38016, 0x68ba9d2d
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvbs3_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-cvbs3_sony_c
new file mode 100644
index 0000000..ad7485a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvbs3_sony_c
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb3883478
+0, 1, 1, 1, 38016, 0xddf01d9d
+0, 2, 2, 1, 38016, 0xb177ece2
+0, 3, 3, 1, 38016, 0xfcd6aec1
+0, 4, 4, 1, 38016, 0x5cb5a017
+0, 5, 5, 1, 38016, 0xeb3884e7
+0, 6, 6, 1, 38016, 0xa8494fb1
+0, 7, 7, 1, 38016, 0xe0084edb
+0, 8, 8, 1, 38016, 0x605845e7
+0, 9, 9, 1, 38016, 0xe2103e96
+0, 10, 10, 1, 38016, 0x3b057699
+0, 11, 11, 1, 38016, 0x130b9413
+0, 12, 12, 1, 38016, 0x1af773f6
+0, 13, 13, 1, 38016, 0x1a77b1f3
+0, 14, 14, 1, 38016, 0xbb5bac34
+0, 15, 15, 1, 38016, 0xd41c9cf7
+0, 16, 16, 1, 38016, 0x6df3ac7f
+0, 17, 17, 1, 38016, 0xba44a850
+0, 18, 18, 1, 38016, 0xe8887fc4
+0, 19, 19, 1, 38016, 0xa50387fa
+0, 20, 20, 1, 38016, 0x164c6317
+0, 21, 21, 1, 38016, 0xb9c52925
+0, 22, 22, 1, 38016, 0xfbcc2f11
+0, 23, 23, 1, 38016, 0x5c0f258c
+0, 24, 24, 1, 38016, 0x0d61186e
+0, 25, 25, 1, 38016, 0xec173b07
+0, 26, 26, 1, 38016, 0x322c353a
+0, 27, 27, 1, 38016, 0x30f72be0
+0, 28, 28, 1, 38016, 0xb0aa5d52
+0, 29, 29, 1, 38016, 0x915a70e2
+0, 30, 30, 1, 38016, 0xed9563d3
+0, 31, 31, 1, 38016, 0x2122a450
+0, 32, 32, 1, 38016, 0xc8a6ba0a
+0, 33, 33, 1, 38016, 0x7fbaad08
+0, 34, 34, 1, 38016, 0xef19d83b
+0, 35, 35, 1, 38016, 0x4fb1d339
+0, 36, 36, 1, 38016, 0xe73eb1a3
+0, 37, 37, 1, 38016, 0xfd23d6f0
+0, 38, 38, 1, 38016, 0xfc21ca53
+0, 39, 39, 1, 38016, 0xa6c7b2c9
+0, 40, 40, 1, 38016, 0x4fb3c8e0
+0, 41, 41, 1, 38016, 0xdb7acc62
+0, 42, 42, 1, 38016, 0x281db765
+0, 43, 43, 1, 38016, 0x2e11b6e9
+0, 44, 44, 1, 38016, 0x8237b906
+0, 45, 45, 1, 38016, 0xe3728780
+0, 46, 46, 1, 38016, 0x2932a82c
+0, 47, 47, 1, 38016, 0x8a0ab2ca
+0, 48, 48, 1, 38016, 0xdb38a893
+0, 49, 49, 1, 38016, 0xd64cbfc3
+0, 50, 50, 1, 38016, 0x8a53b992
+0, 51, 51, 1, 38016, 0xef29abc9
+0, 52, 52, 1, 38016, 0x6d64baf6
+0, 53, 53, 1, 38016, 0xc402bf13
+0, 54, 54, 1, 38016, 0x00c7b709
+0, 55, 55, 1, 38016, 0x55ddcb84
+0, 56, 56, 1, 38016, 0x22cac705
+0, 57, 57, 1, 38016, 0xfa1bc59d
+0, 58, 58, 1, 38016, 0x82a1d3d0
+0, 59, 59, 1, 38016, 0x7db8d411
+0, 60, 60, 1, 38016, 0x98a59a5a
+0, 61, 61, 1, 38016, 0x02bda814
+0, 62, 62, 1, 38016, 0xc4a288d9
+0, 63, 63, 1, 38016, 0x799a3804
+0, 64, 64, 1, 38016, 0x11474f82
+0, 65, 65, 1, 38016, 0x0b807846
+0, 66, 66, 1, 38016, 0x2a118c7e
+0, 67, 67, 1, 38016, 0xa076e441
+0, 68, 68, 1, 38016, 0x9b2c1c2b
+0, 69, 69, 1, 38016, 0xf1433098
+0, 70, 70, 1, 38016, 0xbf68697b
+0, 71, 71, 1, 38016, 0x0c2c94de
+0, 72, 72, 1, 38016, 0x5fdcb88b
+0, 73, 73, 1, 38016, 0x543dfb09
+0, 74, 74, 1, 38016, 0x4c602fc8
+0, 75, 75, 1, 38016, 0x4c0b3afa
+0, 76, 76, 1, 38016, 0x97dd846b
+0, 77, 77, 1, 38016, 0xb5cb97f7
+0, 78, 78, 1, 38016, 0x42dba91c
+0, 79, 79, 1, 38016, 0x827cc117
+0, 80, 80, 1, 38016, 0xd589cd88
+0, 81, 81, 1, 38016, 0x15bfdd09
+0, 82, 82, 1, 38016, 0x77cbe929
+0, 83, 83, 1, 38016, 0x499edfb2
+0, 84, 84, 1, 38016, 0x3bd5d22c
+0, 85, 85, 1, 38016, 0xed0ed545
+0, 86, 86, 1, 38016, 0x1751e754
+0, 87, 87, 1, 38016, 0x042feed4
+0, 88, 88, 1, 38016, 0x24dde6b3
+0, 89, 89, 1, 38016, 0x8aa2ed66
+0, 90, 90, 1, 38016, 0x8fa69f07
+0, 91, 91, 1, 38016, 0xe018ad28
+0, 92, 92, 1, 38016, 0x0b31992e
+0, 93, 93, 1, 38016, 0xf8aa6dbc
+0, 94, 94, 1, 38016, 0x0eb36da4
+0, 95, 95, 1, 38016, 0x392b6658
+0, 96, 96, 1, 38016, 0xb8056967
+0, 97, 97, 1, 38016, 0x16899181
+0, 98, 98, 1, 38016, 0x44b9a1b2
+0, 99, 99, 1, 38016, 0x20ee9b98
+0, 100, 100, 1, 38016, 0x42cdad98
+0, 101, 101, 1, 38016, 0xd438a3d6
+0, 102, 102, 1, 38016, 0x551e8751
+0, 103, 103, 1, 38016, 0x68428f39
+0, 104, 104, 1, 38016, 0x7449b249
+0, 105, 105, 1, 38016, 0xf294a253
+0, 106, 106, 1, 38016, 0x8628d899
+0, 107, 107, 1, 38016, 0xba05f633
+0, 108, 108, 1, 38016, 0x329bfacb
+0, 109, 109, 1, 38016, 0xaa5c33dd
+0, 110, 110, 1, 38016, 0x2b9437d9
+0, 111, 111, 1, 38016, 0x8bd8273b
+0, 112, 112, 1, 38016, 0xc6d541fb
+0, 113, 113, 1, 38016, 0xb42c1e45
+0, 114, 114, 1, 38016, 0xdd39e610
+0, 115, 115, 1, 38016, 0xae56fe66
+0, 116, 116, 1, 38016, 0x812a16e4
+0, 117, 117, 1, 38016, 0x47fdff0f
+0, 118, 118, 1, 38016, 0xfbb33b56
+0, 119, 119, 1, 38016, 0x792a486f
+0, 120, 120, 1, 38016, 0x32e93592
+0, 121, 121, 1, 38016, 0xbd2142ca
+0, 122, 122, 1, 38016, 0x2d412532
+0, 123, 123, 1, 38016, 0x5ee8e957
+0, 124, 124, 1, 38016, 0x57c3de13
+0, 125, 125, 1, 38016, 0xad94b6f1
+0, 126, 126, 1, 38016, 0x8cda97a1
+0, 127, 127, 1, 38016, 0x3563b54e
+0, 128, 128, 1, 38016, 0x1d2bc4fb
+0, 129, 129, 1, 38016, 0xada2cf01
+0, 130, 130, 1, 38016, 0x8dabed0a
+0, 131, 131, 1, 38016, 0x441ae3c0
+0, 132, 132, 1, 38016, 0x5514cc85
+0, 133, 133, 1, 38016, 0xd20cddad
+0, 134, 134, 1, 38016, 0x5286d569
+0, 135, 135, 1, 38016, 0x1612a173
+0, 136, 136, 1, 38016, 0x5946be84
+0, 137, 137, 1, 38016, 0x1925b1fe
+0, 138, 138, 1, 38016, 0xf34f93eb
+0, 139, 139, 1, 38016, 0xac3d9add
+0, 140, 140, 1, 38016, 0x12d18ba6
+0, 141, 141, 1, 38016, 0xcc7f7e5a
+0, 142, 142, 1, 38016, 0x449270ec
+0, 143, 143, 1, 38016, 0x04416f83
+0, 144, 144, 1, 38016, 0x50d36abf
+0, 145, 145, 1, 38016, 0x8605799f
+0, 146, 146, 1, 38016, 0xe6ec6cfd
+0, 147, 147, 1, 38016, 0x1f2d3baf
+0, 148, 148, 1, 38016, 0x9f3e1a4c
+0, 149, 149, 1, 38016, 0x5c3ef4c8
+0, 150, 150, 1, 38016, 0xf731aef2
+0, 151, 151, 1, 38016, 0x90b4c921
+0, 152, 152, 1, 38016, 0xa12dc74f
+0, 153, 153, 1, 38016, 0x1fe2a278
+0, 154, 154, 1, 38016, 0xa6b0b432
+0, 155, 155, 1, 38016, 0xf9e9cb79
+0, 156, 156, 1, 38016, 0xef58d10e
+0, 157, 157, 1, 38016, 0x957805c0
+0, 158, 158, 1, 38016, 0x76e03b1f
+0, 159, 159, 1, 38016, 0xcb2a4905
+0, 160, 160, 1, 38016, 0xb863646d
+0, 161, 161, 1, 38016, 0x3e5f57fe
+0, 162, 162, 1, 38016, 0xbe7d3d77
+0, 163, 163, 1, 38016, 0x4f3c3ce5
+0, 164, 164, 1, 38016, 0x806033d0
+0, 165, 165, 1, 38016, 0xc31bf5da
+0, 166, 166, 1, 38016, 0x6f8ef69e
+0, 167, 167, 1, 38016, 0x010ac670
+0, 168, 168, 1, 38016, 0x374e9bdd
+0, 169, 169, 1, 38016, 0xd8499c26
+0, 170, 170, 1, 38016, 0x5901a512
+0, 171, 171, 1, 38016, 0x31b2bcdf
+0, 172, 172, 1, 38016, 0x972cdda0
+0, 173, 173, 1, 38016, 0x10c8ded1
+0, 174, 174, 1, 38016, 0xc6e3c839
+0, 175, 175, 1, 38016, 0xf661aa12
+0, 176, 176, 1, 38016, 0x6ca379d0
+0, 177, 177, 1, 38016, 0xc5a53d41
+0, 178, 178, 1, 38016, 0x317d353c
+0, 179, 179, 1, 38016, 0xb9962522
+0, 180, 180, 1, 38016, 0x0769ec52
+0, 181, 181, 1, 38016, 0x4463ea8b
+0, 182, 182, 1, 38016, 0xdd7dd585
+0, 183, 183, 1, 38016, 0x6039ca99
+0, 184, 184, 1, 38016, 0x87beeba1
+0, 185, 185, 1, 38016, 0x2503fd5d
+0, 186, 186, 1, 38016, 0xde950c40
+0, 187, 187, 1, 38016, 0xd6f5332f
+0, 188, 188, 1, 38016, 0xa95b3137
+0, 189, 189, 1, 38016, 0x37c026b4
+0, 190, 190, 1, 38016, 0x93f9e3e3
+0, 191, 191, 1, 38016, 0x5826b471
+0, 192, 192, 1, 38016, 0xef81ac84
+0, 193, 193, 1, 38016, 0x6361dfa0
+0, 194, 194, 1, 38016, 0x9774f041
+0, 195, 195, 1, 38016, 0xd8d01ad1
+0, 196, 196, 1, 38016, 0x456252f3
+0, 197, 197, 1, 38016, 0x448c6119
+0, 198, 198, 1, 38016, 0x12157fca
+0, 199, 199, 1, 38016, 0x145ca727
+0, 200, 200, 1, 38016, 0x17a5b174
+0, 201, 201, 1, 38016, 0xc0c0bb0c
+0, 202, 202, 1, 38016, 0x9afbc5e8
+0, 203, 203, 1, 38016, 0xc8c7cc3a
+0, 204, 204, 1, 38016, 0x489dc5dd
+0, 205, 205, 1, 38016, 0x6da6c7c8
+0, 206, 206, 1, 38016, 0x6408d491
+0, 207, 207, 1, 38016, 0x0820d9ce
+0, 208, 208, 1, 38016, 0xebcfc8d6
+0, 209, 209, 1, 38016, 0xf462b2a2
+0, 210, 210, 1, 38016, 0xadb65d17
+0, 211, 211, 1, 38016, 0xecde79e9
+0, 212, 212, 1, 38016, 0x81786ed0
+0, 213, 213, 1, 38016, 0x3cfc51f8
+0, 214, 214, 1, 38016, 0x307560ba
+0, 215, 215, 1, 38016, 0xc4f95361
+0, 216, 216, 1, 38016, 0xe2fe384b
+0, 217, 217, 1, 38016, 0x95de4e60
+0, 218, 218, 1, 38016, 0x1b6147f9
+0, 219, 219, 1, 38016, 0xe1bc385b
+0, 220, 220, 1, 38016, 0x14cc446a
+0, 221, 221, 1, 38016, 0x5fcb313f
+0, 222, 222, 1, 38016, 0xf33f1721
+0, 223, 223, 1, 38016, 0x49fc2fbb
+0, 224, 224, 1, 38016, 0x33ad3314
+0, 225, 225, 1, 38016, 0x92b51315
+0, 226, 226, 1, 38016, 0x7e4d3139
+0, 227, 227, 1, 38016, 0xb99e432b
+0, 228, 228, 1, 38016, 0x52cb3c30
+0, 229, 229, 1, 38016, 0xe5e48199
+0, 230, 230, 1, 38016, 0x59419769
+0, 231, 231, 1, 38016, 0x3e90b130
+0, 232, 232, 1, 38016, 0x85fbfbd6
+0, 233, 233, 1, 38016, 0xba8912ac
+0, 234, 234, 1, 38016, 0x3fc3128c
+0, 235, 235, 1, 38016, 0x61db4d37
+0, 236, 236, 1, 38016, 0x3c405a46
+0, 237, 237, 1, 38016, 0x9c113b43
+0, 238, 238, 1, 38016, 0x739c43f4
+0, 239, 239, 1, 38016, 0xffab0fe6
+0, 240, 240, 1, 38016, 0x99cee4bd
+0, 241, 241, 1, 38016, 0xd76dcff5
+0, 242, 242, 1, 38016, 0xe8ccb16c
+0, 243, 243, 1, 38016, 0x43d8ff1f
+0, 244, 244, 1, 38016, 0xffde708b
+0, 245, 245, 1, 38016, 0xe5cfd3d4
+0, 246, 246, 1, 38016, 0x0b67ef9f
+0, 247, 247, 1, 38016, 0xd54cd697
+0, 248, 248, 1, 38016, 0x5879926e
+0, 249, 249, 1, 38016, 0x9cb01428
+0, 250, 250, 1, 38016, 0x09b0c0b7
+0, 251, 251, 1, 38016, 0xbbef721e
+0, 252, 252, 1, 38016, 0xcebd66ea
+0, 253, 253, 1, 38016, 0x7492c956
+0, 254, 254, 1, 38016, 0xeaa5317b
+0, 255, 255, 1, 38016, 0xe952c9bd
+0, 256, 256, 1, 38016, 0xb4cfd878
+0, 257, 257, 1, 38016, 0xa8675f14
+0, 258, 258, 1, 38016, 0x24653121
+0, 259, 259, 1, 38016, 0xeec9425e
+0, 260, 260, 1, 38016, 0x14413e58
+0, 261, 261, 1, 38016, 0xc8e13f0a
+0, 262, 262, 1, 38016, 0x09045f0f
+0, 263, 263, 1, 38016, 0xa021583e
+0, 264, 264, 1, 38016, 0x26384591
+0, 265, 265, 1, 38016, 0x157b55d2
+0, 266, 266, 1, 38016, 0x22973c65
+0, 267, 267, 1, 38016, 0x2fe30f64
+0, 268, 268, 1, 38016, 0xf640fab4
+0, 269, 269, 1, 38016, 0x2b82d807
+0, 270, 270, 1, 38016, 0x6faca613
+0, 271, 271, 1, 38016, 0x8a5b89c3
+0, 272, 272, 1, 38016, 0xb7d76316
+0, 273, 273, 1, 38016, 0x3e3a0a82
+0, 274, 274, 1, 38016, 0x7d93d78b
+0, 275, 275, 1, 38016, 0xa3bcc050
+0, 276, 276, 1, 38016, 0x41d4b2ba
+0, 277, 277, 1, 38016, 0x7a08d518
+0, 278, 278, 1, 38016, 0xd6b0f72b
+0, 279, 279, 1, 38016, 0x9c794c7b
+0, 280, 280, 1, 38016, 0xc2680d18
+0, 281, 281, 1, 38016, 0x9fa6db96
+0, 282, 282, 1, 38016, 0xd90c83c3
+0, 283, 283, 1, 38016, 0xf1278cf5
+0, 284, 284, 1, 38016, 0xf2ce5e19
+0, 285, 285, 1, 38016, 0x2d41a44b
+0, 286, 286, 1, 38016, 0xade2715b
+0, 287, 287, 1, 38016, 0xd21da6fe
+0, 288, 288, 1, 38016, 0x37c89e7f
+0, 289, 289, 1, 38016, 0x6bad76e8
+0, 290, 290, 1, 38016, 0xfefce893
+0, 291, 291, 1, 38016, 0xcd301b29
+0, 292, 292, 1, 38016, 0x0e80a08d
+0, 293, 293, 1, 38016, 0x88f3d605
+0, 294, 294, 1, 38016, 0x80273791
+0, 295, 295, 1, 38016, 0x36472009
+0, 296, 296, 1, 38016, 0xe8b6fc54
+0, 297, 297, 1, 38016, 0x5d9bfd2d
+0, 298, 298, 1, 38016, 0x61df1820
+0, 299, 299, 1, 38016, 0x8db23b5c
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvcanlma2_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-cvcanlma2_sony_c
new file mode 100644
index 0000000..b6a759a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvcanlma2_sony_c
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0xfbca00c6
+0, 1, 1, 1, 518400, 0x82b80adf
+0, 2, 2, 1, 518400, 0x87ecdf4a
+0, 3, 3, 1, 518400, 0xf6ca8cbe
+0, 4, 4, 1, 518400, 0x8e9bb8a0
+0, 5, 5, 1, 518400, 0x6512caa2
+0, 6, 6, 1, 518400, 0xc015e43e
+0, 7, 7, 1, 518400, 0x5f504a5c
+0, 8, 8, 1, 518400, 0x4c7458a4
+0, 9, 9, 1, 518400, 0x630f4004
+0, 10, 10, 1, 518400, 0x889af20e
+0, 11, 11, 1, 518400, 0x4437a5a4
+0, 12, 12, 1, 518400, 0x1e19a254
+0, 13, 13, 1, 518400, 0xb7ef1763
+0, 14, 14, 1, 518400, 0xc966c95a
+0, 15, 15, 1, 518400, 0x0c9074d6
+0, 16, 16, 1, 518400, 0x24c906c9
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvfi1_sony_d b/ffmpeg1/tests/ref/fate/h264-conformance-cvfi1_sony_d
new file mode 100644
index 0000000..195c7d6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvfi1_sony_d
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvfi1_sva_c b/ffmpeg1/tests/ref/fate/h264-conformance-cvfi1_sva_c
new file mode 100644
index 0000000..c19bc0d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvfi1_sva_c
@@ -0,0 +1,8 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvfi2_sony_h b/ffmpeg1/tests/ref/fate/h264-conformance-cvfi2_sony_h
new file mode 100644
index 0000000..0914e22
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvfi2_sony_h
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvfi2_sva_c b/ffmpeg1/tests/ref/fate/h264-conformance-cvfi2_sva_c
new file mode 100644
index 0000000..7c3162a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvfi2_sva_c
@@ -0,0 +1,14 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvma1_sony_d b/ffmpeg1/tests/ref/fate/h264-conformance-cvma1_sony_d
new file mode 100644
index 0000000..6685216
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvma1_sony_d
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x75701511
+0, 1, 1, 1, 518400, 0xa7eeaa16
+0, 2, 2, 1, 518400, 0xe0f32e35
+0, 3, 3, 1, 518400, 0x7a1dadd9
+0, 4, 4, 1, 518400, 0x4a1672a6
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvma1_toshiba_b b/ffmpeg1/tests/ref/fate/h264-conformance-cvma1_toshiba_b
new file mode 100644
index 0000000..ab2da4a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvma1_toshiba_b
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x9a9ce366
+0, 1, 1, 1, 152064, 0xf4639828
+0, 2, 2, 1, 152064, 0x625024a3
+0, 3, 3, 1, 152064, 0x80dc2f9d
+0, 4, 4, 1, 152064, 0xb2c4feea
+0, 5, 5, 1, 152064, 0x4ec6ad64
+0, 6, 6, 1, 152064, 0x1957bec3
+0, 7, 7, 1, 152064, 0xb682799d
+0, 8, 8, 1, 152064, 0x34cd2053
+0, 9, 9, 1, 152064, 0x81490b4c
+0, 10, 10, 1, 152064, 0x242dc943
+0, 11, 11, 1, 152064, 0x3e126734
+0, 12, 12, 1, 152064, 0x8e474ff8
+0, 13, 13, 1, 152064, 0x239d2fbd
+0, 14, 14, 1, 152064, 0x0ca3e16f
+0, 15, 15, 1, 152064, 0x6161d7c2
+0, 16, 16, 1, 152064, 0xca7ad1af
+0, 17, 17, 1, 152064, 0xf8ef9026
+0, 18, 18, 1, 152064, 0x01f2f4c1
+0, 19, 19, 1, 152064, 0x510b19ec
+0, 20, 20, 1, 152064, 0xe489028b
+0, 21, 21, 1, 152064, 0x7a693c1e
+0, 22, 22, 1, 152064, 0x276b23fe
+0, 23, 23, 1, 152064, 0x0e9ced3a
+0, 24, 24, 1, 152064, 0x658228f7
+0, 25, 25, 1, 152064, 0x6a271bc3
+0, 26, 26, 1, 152064, 0x431ecd8b
+0, 27, 27, 1, 152064, 0x23a5ed14
+0, 28, 28, 1, 152064, 0x76fbe121
+0, 29, 29, 1, 152064, 0x471f919d
+0, 30, 30, 1, 152064, 0x16bfabbc
+0, 31, 31, 1, 152064, 0x0762993f
+0, 32, 32, 1, 152064, 0x5a2b0b0e
+0, 33, 33, 1, 152064, 0x81415ef7
+0, 34, 34, 1, 152064, 0xb96e4164
+0, 35, 35, 1, 152064, 0xf77aee83
+0, 36, 36, 1, 152064, 0x6af81633
+0, 37, 37, 1, 152064, 0xed78e5b5
+0, 38, 38, 1, 152064, 0x67e38e2c
+0, 39, 39, 1, 152064, 0x0417ae01
+0, 40, 40, 1, 152064, 0x3887b312
+0, 41, 41, 1, 152064, 0x3a4b70fb
+0, 42, 42, 1, 152064, 0xcaae9e7f
+0, 43, 43, 1, 152064, 0xaf9597be
+0, 44, 44, 1, 152064, 0x9bae63d3
+0, 45, 45, 1, 152064, 0x0e80825f
+0, 46, 46, 1, 152064, 0x915661fd
+0, 47, 47, 1, 152064, 0x67d3dc94
+0, 48, 48, 1, 152064, 0x3dcf240c
+0, 49, 49, 1, 152064, 0x127ff832
+0, 50, 50, 1, 152064, 0xc8969981
+0, 51, 51, 1, 152064, 0x57179c77
+0, 52, 52, 1, 152064, 0x9f88656c
+0, 53, 53, 1, 152064, 0xc28ff5d3
+0, 54, 54, 1, 152064, 0xf100fad9
+0, 55, 55, 1, 152064, 0xb570ce12
+0, 56, 56, 1, 152064, 0xe8f28955
+0, 57, 57, 1, 152064, 0x1f0a9549
+0, 58, 58, 1, 152064, 0x22b17e9b
+0, 59, 59, 1, 152064, 0x7cf1400e
+0, 60, 60, 1, 152064, 0xafd273b7
+0, 61, 61, 1, 152064, 0xeb9b712e
+0, 62, 62, 1, 152064, 0x0f81de24
+0, 63, 63, 1, 152064, 0x8f4e1953
+0, 64, 64, 1, 152064, 0x682e2170
+0, 65, 65, 1, 152064, 0xc32ad1b2
+0, 66, 66, 1, 152064, 0x53a81d79
+0, 67, 67, 1, 152064, 0x54002596
+0, 68, 68, 1, 152064, 0x4b5fdbd9
+0, 69, 69, 1, 152064, 0x96613368
+0, 70, 70, 1, 152064, 0xd6ac0171
+0, 71, 71, 1, 152064, 0xf1c1b7b7
+0, 72, 72, 1, 152064, 0xc730d82f
+0, 73, 73, 1, 152064, 0x0415d934
+0, 74, 74, 1, 152064, 0x5338915e
+0, 75, 75, 1, 152064, 0x8e9dda6d
+0, 76, 76, 1, 152064, 0xe3a8b0a0
+0, 77, 77, 1, 152064, 0x5fa36e44
+0, 78, 78, 1, 152064, 0x0e63dc72
+0, 79, 79, 1, 152064, 0xd0dad71f
+0, 80, 80, 1, 152064, 0x0c4aac94
+0, 81, 81, 1, 152064, 0x60d50e8d
+0, 82, 82, 1, 152064, 0x96872d7c
+0, 83, 83, 1, 152064, 0x4fcefc33
+0, 84, 84, 1, 152064, 0x6b8157c9
+0, 85, 85, 1, 152064, 0xa40d527d
+0, 86, 86, 1, 152064, 0x9884480a
+0, 87, 87, 1, 152064, 0xff5d9754
+0, 88, 88, 1, 152064, 0x4a26a74d
+0, 89, 89, 1, 152064, 0x81059e82
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b b/ffmpeg1/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b
new file mode 100644
index 0000000..2c3c557
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xb1edd842
+0, 1, 1, 1, 152064, 0x551f8f45
+0, 2, 2, 1, 152064, 0xb4931cb2
+0, 3, 3, 1, 152064, 0x78882b27
+0, 4, 4, 1, 152064, 0x3afef36d
+0, 5, 5, 1, 152064, 0x85afad0a
+0, 6, 6, 1, 152064, 0x3a8bab81
+0, 7, 7, 1, 152064, 0x2a437174
+0, 8, 8, 1, 152064, 0x22421437
+0, 9, 9, 1, 152064, 0x39c5f125
+0, 10, 10, 1, 152064, 0x256eaad2
+0, 11, 11, 1, 152064, 0x668a5d31
+0, 12, 12, 1, 152064, 0x412a4aa7
+0, 13, 13, 1, 152064, 0x3f091baf
+0, 14, 14, 1, 152064, 0xbf16d262
+0, 15, 15, 1, 152064, 0x2fc4ce67
+0, 16, 16, 1, 152064, 0x119cde3e
+0, 17, 17, 1, 152064, 0xb40b8632
+0, 18, 18, 1, 152064, 0x4be4f192
+0, 19, 19, 1, 152064, 0x906c1237
+0, 20, 20, 1, 152064, 0x95380024
+0, 21, 21, 1, 152064, 0x6a833025
+0, 22, 22, 1, 152064, 0x681d1c4f
+0, 23, 23, 1, 152064, 0x08c8dea4
+0, 24, 24, 1, 152064, 0xc69226f0
+0, 25, 25, 1, 152064, 0x86631102
+0, 26, 26, 1, 152064, 0x7f40c77a
+0, 27, 27, 1, 152064, 0xc746ddd4
+0, 28, 28, 1, 152064, 0x5f2bd3cb
+0, 29, 29, 1, 152064, 0x643c8316
+0, 30, 30, 1, 152064, 0x5b7fa380
+0, 31, 31, 1, 152064, 0x82438cf7
+0, 32, 32, 1, 152064, 0xdee0f7e7
+0, 33, 33, 1, 152064, 0xc50d41f1
+0, 34, 34, 1, 152064, 0xf3453631
+0, 35, 35, 1, 152064, 0x90bce66b
+0, 36, 36, 1, 152064, 0x045b03f7
+0, 37, 37, 1, 152064, 0xf64bd756
+0, 38, 38, 1, 152064, 0xff997ef2
+0, 39, 39, 1, 152064, 0x3613a0a5
+0, 40, 40, 1, 152064, 0xe6a7a8d6
+0, 41, 41, 1, 152064, 0xb0906c42
+0, 42, 42, 1, 152064, 0x4dfc912b
+0, 43, 43, 1, 152064, 0x81e3991c
+0, 44, 44, 1, 152064, 0x4efc61fb
+0, 45, 45, 1, 152064, 0xed478395
+0, 46, 46, 1, 152064, 0x4cb25ab6
+0, 47, 47, 1, 152064, 0x28e7d51f
+0, 48, 48, 1, 152064, 0x8bcc1a8d
+0, 49, 49, 1, 152064, 0x2fe1f240
+0, 50, 50, 1, 152064, 0xb4978ef8
+0, 51, 51, 1, 152064, 0xe3929556
+0, 52, 52, 1, 152064, 0xd370632a
+0, 53, 53, 1, 152064, 0xba86ffb2
+0, 54, 54, 1, 152064, 0x444bf18c
+0, 55, 55, 1, 152064, 0xab40bd14
+0, 56, 56, 1, 152064, 0xfd488a5d
+0, 57, 57, 1, 152064, 0xe1f09568
+0, 58, 58, 1, 152064, 0x09ee7a7e
+0, 59, 59, 1, 152064, 0x9360397c
+0, 60, 60, 1, 152064, 0xdbd467e9
+0, 61, 61, 1, 152064, 0x99726777
+0, 62, 62, 1, 152064, 0x009fd46c
+0, 63, 63, 1, 152064, 0xcf770fdb
+0, 64, 64, 1, 152064, 0x2a890fd9
+0, 65, 65, 1, 152064, 0x7f40de4b
+0, 66, 66, 1, 152064, 0x04191304
+0, 67, 67, 1, 152064, 0x15722022
+0, 68, 68, 1, 152064, 0x59f4ea93
+0, 69, 69, 1, 152064, 0x28ba373f
+0, 70, 70, 1, 152064, 0xf9e400b8
+0, 71, 71, 1, 152064, 0x85c4bd98
+0, 72, 72, 1, 152064, 0x6917d2a5
+0, 73, 73, 1, 152064, 0x61cae234
+0, 74, 74, 1, 152064, 0x752a9a2d
+0, 75, 75, 1, 152064, 0x1ee2d9bd
+0, 76, 76, 1, 152064, 0xdce9ab8e
+0, 77, 77, 1, 152064, 0x51225fd0
+0, 78, 78, 1, 152064, 0x10e8cb60
+0, 79, 79, 1, 152064, 0x8d07cd25
+0, 80, 80, 1, 152064, 0xb18ba61b
+0, 81, 81, 1, 152064, 0xb0f10280
+0, 82, 82, 1, 152064, 0x76a71f13
+0, 83, 83, 1, 152064, 0x3004f5a1
+0, 84, 84, 1, 152064, 0x9aba5724
+0, 85, 85, 1, 152064, 0x5db85385
+0, 86, 86, 1, 152064, 0xbe9d3f5b
+0, 87, 87, 1, 152064, 0xa71e85bb
+0, 88, 88, 1, 152064, 0xdcf59cd7
+0, 89, 89, 1, 152064, 0x5e319459
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b b/ffmpeg1/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b
new file mode 100644
index 0000000..066c57f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xb1edd842
+0, 1, 1, 1, 152064, 0x551f8f45
+0, 2, 2, 1, 152064, 0xb4931cb2
+0, 3, 3, 1, 152064, 0x5f352e98
+0, 4, 4, 1, 152064, 0xeba5fe28
+0, 5, 5, 1, 152064, 0x85afad0a
+0, 6, 6, 1, 152064, 0x1120b6a4
+0, 7, 7, 1, 152064, 0x67506e16
+0, 8, 8, 1, 152064, 0x22421437
+0, 9, 9, 1, 152064, 0x929becd6
+0, 10, 10, 1, 152064, 0x6ffcb4b0
+0, 11, 11, 1, 152064, 0x668a5d31
+0, 12, 12, 1, 152064, 0x1b034ebb
+0, 13, 13, 1, 152064, 0x7e2d213c
+0, 14, 14, 1, 152064, 0xbf16d262
+0, 15, 15, 1, 152064, 0xdeaecab3
+0, 16, 16, 1, 152064, 0xd220d704
+0, 17, 17, 1, 152064, 0xb40b8632
+0, 18, 18, 1, 152064, 0xbdf0ef57
+0, 19, 19, 1, 152064, 0x7e2e10df
+0, 20, 20, 1, 152064, 0x95380024
+0, 21, 21, 1, 152064, 0xdb80256d
+0, 22, 22, 1, 152064, 0xa4561c61
+0, 23, 23, 1, 152064, 0x08c8dea4
+0, 24, 24, 1, 152064, 0x7bb917d6
+0, 25, 25, 1, 152064, 0x796f0e2b
+0, 26, 26, 1, 152064, 0x7f40c77a
+0, 27, 27, 1, 152064, 0xda32de2e
+0, 28, 28, 1, 152064, 0x00ffc15a
+0, 29, 29, 1, 152064, 0x643c8316
+0, 30, 30, 1, 152064, 0xb7588f7f
+0, 31, 31, 1, 152064, 0xa4e07c02
+0, 32, 32, 1, 152064, 0xdee0f7e7
+0, 33, 33, 1, 152064, 0x2c3245ee
+0, 34, 34, 1, 152064, 0x6565355b
+0, 35, 35, 1, 152064, 0x90bce66b
+0, 36, 36, 1, 152064, 0x0abffe08
+0, 37, 37, 1, 152064, 0x119ccc3e
+0, 38, 38, 1, 152064, 0xff997ef2
+0, 39, 39, 1, 152064, 0xba4b9820
+0, 40, 40, 1, 152064, 0xb6dfa596
+0, 41, 41, 1, 152064, 0xb0906c42
+0, 42, 42, 1, 152064, 0xf3c29133
+0, 43, 43, 1, 152064, 0x08cd8e2b
+0, 44, 44, 1, 152064, 0x4efc61fb
+0, 45, 45, 1, 152064, 0x5b7c6e48
+0, 46, 46, 1, 152064, 0xd28a47c2
+0, 47, 47, 1, 152064, 0x28e7d51f
+0, 48, 48, 1, 152064, 0x3a5619b1
+0, 49, 49, 1, 152064, 0xa517e7f2
+0, 50, 50, 1, 152064, 0xb4978ef8
+0, 51, 51, 1, 152064, 0x25929175
+0, 52, 52, 1, 152064, 0x20f05834
+0, 53, 53, 1, 152064, 0xba86ffb2
+0, 54, 54, 1, 152064, 0xa265f06f
+0, 55, 55, 1, 152064, 0x97bbbfb7
+0, 56, 56, 1, 152064, 0xfd488a5d
+0, 57, 57, 1, 152064, 0x1b0989da
+0, 58, 58, 1, 152064, 0xfd1878ce
+0, 59, 59, 1, 152064, 0x9360397c
+0, 60, 60, 1, 152064, 0x0d8151a7
+0, 61, 61, 1, 152064, 0xe7a05bb8
+0, 62, 62, 1, 152064, 0x009fd46c
+0, 63, 63, 1, 152064, 0x8751123f
+0, 64, 64, 1, 152064, 0x8252101a
+0, 65, 65, 1, 152064, 0x7f40de4b
+0, 66, 66, 1, 152064, 0x4ea317fe
+0, 67, 67, 1, 152064, 0x519224d9
+0, 68, 68, 1, 152064, 0x59f4ea93
+0, 69, 69, 1, 152064, 0xc93c1dba
+0, 70, 70, 1, 152064, 0xe3c9fb61
+0, 71, 71, 1, 152064, 0x85c4bd98
+0, 72, 72, 1, 152064, 0xcebacfd3
+0, 73, 73, 1, 152064, 0x7327da99
+0, 74, 74, 1, 152064, 0x752a9a2d
+0, 75, 75, 1, 152064, 0x5ea6c8d2
+0, 76, 76, 1, 152064, 0x66fd8c6f
+0, 77, 77, 1, 152064, 0x51225fd0
+0, 78, 78, 1, 152064, 0x58b9be96
+0, 79, 79, 1, 152064, 0xa5abcdb7
+0, 80, 80, 1, 152064, 0xb18ba61b
+0, 81, 81, 1, 152064, 0xc7d20190
+0, 82, 82, 1, 152064, 0xb6da14aa
+0, 83, 83, 1, 152064, 0x3004f5a1
+0, 84, 84, 1, 152064, 0x129354e2
+0, 85, 85, 1, 152064, 0xffa148d5
+0, 86, 86, 1, 152064, 0xbe9d3f5b
+0, 87, 87, 1, 152064, 0x1c7f8976
+0, 88, 88, 1, 152064, 0xa107a54d
+0, 89, 89, 1, 152064, 0x5e319459
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e b/ffmpeg1/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
new file mode 100644
index 0000000..094fc98
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvmaqp2_sony_g b/ffmpeg1/tests/ref/fate/h264-conformance-cvmaqp2_sony_g
new file mode 100644
index 0000000..886ea4c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvmaqp2_sony_g
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 36864, 0xdee3d4e3
+0, 1, 1, 1, 36864, 0xaa1a67ca
+0, 2, 2, 1, 36864, 0xe00e0dec
+0, 3, 3, 1, 36864, 0x31f0b63f
+0, 4, 4, 1, 36864, 0xd0cc34d9
+0, 5, 5, 1, 36864, 0x3e76eba5
+0, 6, 6, 1, 36864, 0x0e7dcc9c
+0, 7, 7, 1, 36864, 0xd71bc457
+0, 8, 8, 1, 36864, 0x11c81ebe
+0, 9, 9, 1, 36864, 0x1d4ca6d7
+0, 10, 10, 1, 36864, 0xb191d155
+0, 11, 11, 1, 36864, 0x435a188c
+0, 12, 12, 1, 36864, 0x99d7227c
+0, 13, 13, 1, 36864, 0x700637fc
+0, 14, 14, 1, 36864, 0x351f7dd3
+0, 15, 15, 1, 36864, 0x1658c18b
+0, 16, 16, 1, 36864, 0x60034b90
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvmaqp3_sony_d b/ffmpeg1/tests/ref/fate/h264-conformance-cvmaqp3_sony_d
new file mode 100644
index 0000000..7c3d96d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvmaqp3_sony_d
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 36864, 0xdee3d4e3
+0, 1, 1, 1, 36864, 0xabec8d44
+0, 2, 2, 1, 36864, 0x95d029fe
+0, 3, 3, 1, 36864, 0x4daeb4b9
+0, 4, 4, 1, 36864, 0x320a6301
+0, 5, 5, 1, 36864, 0x6b881d0c
+0, 6, 6, 1, 36864, 0xfe6eda15
+0, 7, 7, 1, 36864, 0xda72d0b2
+0, 8, 8, 1, 36864, 0x3232651b
+0, 9, 9, 1, 36864, 0x9f20cbf1
+0, 10, 10, 1, 36864, 0x5dfbd085
+0, 11, 11, 1, 36864, 0x2bb62dd1
+0, 12, 12, 1, 36864, 0xf8ed11cf
+0, 13, 13, 1, 36864, 0x1ed62476
+0, 14, 14, 1, 36864, 0x65b18976
+0, 15, 15, 1, 36864, 0x1658c18b
+0, 16, 16, 1, 36864, 0x76073a08
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b b/ffmpeg1/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
new file mode 100644
index 0000000..57fa2f7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b b/ffmpeg1/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
new file mode 100644
index 0000000..bc7e81e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvnlfi1_sony_c b/ffmpeg1/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
new file mode 100644
index 0000000..aa3c220
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvnlfi2_sony_h b/ffmpeg1/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
new file mode 100644
index 0000000..fe2e4d1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvpa1_toshiba_b b/ffmpeg1/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
new file mode 100644
index 0000000..fd0911b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c b/ffmpeg1/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c
new file mode 100644
index 0000000..95c9903
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x19b8407d
+0, 1, 1, 1, 152064, 0xab8bede6
+0, 2, 2, 1, 152064, 0xf59acd09
+0, 3, 3, 1, 152064, 0xc905853b
+0, 4, 4, 1, 152064, 0x1c3d32f8
+0, 5, 5, 1, 152064, 0x26a91508
+0, 6, 6, 1, 152064, 0x9443e44a
+0, 7, 7, 1, 152064, 0x0d158c55
+0, 8, 8, 1, 152064, 0x4b207062
+0, 9, 9, 1, 152064, 0x31d8543f
+0, 10, 10, 1, 152064, 0x43520337
+0, 11, 11, 1, 152064, 0x4676dd14
+0, 12, 12, 1, 152064, 0x8b4291d4
+0, 13, 13, 1, 152064, 0xb35e4950
+0, 14, 14, 1, 152064, 0xd7164390
+0, 15, 15, 1, 152064, 0x7cce0af7
+0, 16, 16, 1, 152064, 0x4f67ca7d
+0, 17, 17, 1, 152064, 0xd517af08
+0, 18, 18, 1, 152064, 0x519b8322
+0, 19, 19, 1, 152064, 0xa87d2987
+0, 20, 20, 1, 152064, 0xfe8cfd89
+0, 21, 21, 1, 152064, 0x3b40b919
+0, 22, 22, 1, 152064, 0x83398526
+0, 23, 23, 1, 152064, 0x309b6168
+0, 24, 24, 1, 152064, 0xa8351c37
+0, 25, 25, 1, 152064, 0x7977f8fd
+0, 26, 26, 1, 152064, 0x5b24e5a7
+0, 27, 27, 1, 152064, 0x0ad0a48e
+0, 28, 28, 1, 152064, 0xd93a7d3e
+0, 29, 29, 1, 152064, 0xae0f6631
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c b/ffmpeg1/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c
new file mode 100644
index 0000000..4f92eab
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0xccbe6bf8
+0, 1, 1, 1, 1382400, 0x49c0cfd7
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvwp1_toshiba_e b/ffmpeg1/tests/ref/fate/h264-conformance-cvwp1_toshiba_e
new file mode 100644
index 0000000..b184c84
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvwp1_toshiba_e
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xabf9ae05
+0, 1, 1, 1, 152064, 0x20418b16
+0, 2, 2, 1, 152064, 0xe941572f
+0, 3, 3, 1, 152064, 0xcf63e20e
+0, 4, 4, 1, 152064, 0x57dedcde
+0, 5, 5, 1, 152064, 0x4de7bf34
+0, 6, 6, 1, 152064, 0xc8014983
+0, 7, 7, 1, 152064, 0x5ab946fc
+0, 8, 8, 1, 152064, 0x2ca02582
+0, 9, 9, 1, 152064, 0x9c95435d
+0, 10, 10, 1, 152064, 0x8371b963
+0, 11, 11, 1, 152064, 0xa0f1af67
+0, 12, 12, 1, 152064, 0xf1155345
+0, 13, 13, 1, 152064, 0x66a71c79
+0, 14, 14, 1, 152064, 0x509db08a
+0, 15, 15, 1, 152064, 0x3d457728
+0, 16, 16, 1, 152064, 0x66035e2b
+0, 17, 17, 1, 152064, 0xa4113115
+0, 18, 18, 1, 152064, 0x3d35d3c0
+0, 19, 19, 1, 152064, 0x5117d324
+0, 20, 20, 1, 152064, 0x7b0c7660
+0, 21, 21, 1, 152064, 0x0eacf9ba
+0, 22, 22, 1, 152064, 0x358d0486
+0, 23, 23, 1, 152064, 0xc2dbeadc
+0, 24, 24, 1, 152064, 0x61b2c275
+0, 25, 25, 1, 152064, 0xbb3697d2
+0, 26, 26, 1, 152064, 0x44e58e8a
+0, 27, 27, 1, 152064, 0x21f6464f
+0, 28, 28, 1, 152064, 0xdb3416f2
+0, 29, 29, 1, 152064, 0x8201d928
+0, 30, 30, 1, 152064, 0x4fdfb595
+0, 31, 31, 1, 152064, 0x28cff0a5
+0, 32, 32, 1, 152064, 0x5d77cab2
+0, 33, 33, 1, 152064, 0x2218b509
+0, 34, 34, 1, 152064, 0xaf40790a
+0, 35, 35, 1, 152064, 0xaed42b3b
+0, 36, 36, 1, 152064, 0x866d2462
+0, 37, 37, 1, 152064, 0x23a7111a
+0, 38, 38, 1, 152064, 0xceefc9d0
+0, 39, 39, 1, 152064, 0x88dba819
+0, 40, 40, 1, 152064, 0x19b350f3
+0, 41, 41, 1, 152064, 0x85a857e5
+0, 42, 42, 1, 152064, 0x02ca7c6f
+0, 43, 43, 1, 152064, 0xe2de12d0
+0, 44, 44, 1, 152064, 0x84a36173
+0, 45, 45, 1, 152064, 0xa8d1b139
+0, 46, 46, 1, 152064, 0x6b72ab43
+0, 47, 47, 1, 152064, 0x5fba909e
+0, 48, 48, 1, 152064, 0x43ab27f2
+0, 49, 49, 1, 152064, 0x414cdd60
+0, 50, 50, 1, 152064, 0x080fde7b
+0, 51, 51, 1, 152064, 0xb1b7e4db
+0, 52, 52, 1, 152064, 0xf17db2da
+0, 53, 53, 1, 152064, 0x248b88e9
+0, 54, 54, 1, 152064, 0x6b68301b
+0, 55, 55, 1, 152064, 0xc581100d
+0, 56, 56, 1, 152064, 0x8e9cf443
+0, 57, 57, 1, 152064, 0x3c4ec87a
+0, 58, 58, 1, 152064, 0x6e417a1f
+0, 59, 59, 1, 152064, 0x02c7ecc4
+0, 60, 60, 1, 152064, 0xb7d7f1dc
+0, 61, 61, 1, 152064, 0xc44cf3fa
+0, 62, 62, 1, 152064, 0x0f8db331
+0, 63, 63, 1, 152064, 0x71fe651b
+0, 64, 64, 1, 152064, 0xdd0b9b70
+0, 65, 65, 1, 152064, 0x4f6114c3
+0, 66, 66, 1, 152064, 0x5a64e819
+0, 67, 67, 1, 152064, 0x20bce1a1
+0, 68, 68, 1, 152064, 0x6b196d49
+0, 69, 69, 1, 152064, 0x7c1535a6
+0, 70, 70, 1, 152064, 0x9b5225a4
+0, 71, 71, 1, 152064, 0x72c5f185
+0, 72, 72, 1, 152064, 0x3da4f50d
+0, 73, 73, 1, 152064, 0xd7f7af48
+0, 74, 74, 1, 152064, 0x0e1a8f2e
+0, 75, 75, 1, 152064, 0xb8b036cc
+0, 76, 76, 1, 152064, 0x003a2b62
+0, 77, 77, 1, 152064, 0x7777f6bd
+0, 78, 78, 1, 152064, 0x91003021
+0, 79, 79, 1, 152064, 0xb2e1af8c
+0, 80, 80, 1, 152064, 0xae6676bc
+0, 81, 81, 1, 152064, 0x72f55c98
+0, 82, 82, 1, 152064, 0x9dfb52bc
+0, 83, 83, 1, 152064, 0x4b6b0db4
+0, 84, 84, 1, 152064, 0xba8bab86
+0, 85, 85, 1, 152064, 0x775a8da0
+0, 86, 86, 1, 152064, 0x96a35194
+0, 87, 87, 1, 152064, 0x17732a58
+0, 88, 88, 1, 152064, 0x45eef560
+0, 89, 89, 1, 152064, 0x95c79208
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvwp2_toshiba_e b/ffmpeg1/tests/ref/fate/h264-conformance-cvwp2_toshiba_e
new file mode 100644
index 0000000..627f4b8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvwp2_toshiba_e
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xf503fb79
+0, 1, 1, 1, 152064, 0xeaa4ba5d
+0, 2, 2, 1, 152064, 0x50865a33
+0, 3, 3, 1, 152064, 0x34125f86
+0, 4, 4, 1, 152064, 0xc5a8bb68
+0, 5, 5, 1, 152064, 0xe6e9b376
+0, 6, 6, 1, 152064, 0x4e41d48e
+0, 7, 7, 1, 152064, 0xea73cc5d
+0, 8, 8, 1, 152064, 0xc0c60ac0
+0, 9, 9, 1, 152064, 0xd7110670
+0, 10, 10, 1, 152064, 0x00465d0d
+0, 11, 11, 1, 152064, 0xa37a726b
+0, 12, 12, 1, 152064, 0x5dd13b2a
+0, 13, 13, 1, 152064, 0x08471f31
+0, 14, 14, 1, 152064, 0x2bb2b055
+0, 15, 15, 1, 152064, 0xd06d7f1c
+0, 16, 16, 1, 152064, 0x91fde84a
+0, 17, 17, 1, 152064, 0xdbb52d2b
+0, 18, 18, 1, 152064, 0x505c08b4
+0, 19, 19, 1, 152064, 0xd8aeef9f
+0, 20, 20, 1, 152064, 0x4e3f8721
+0, 21, 21, 1, 152064, 0xce534aee
+0, 22, 22, 1, 152064, 0x51f80737
+0, 23, 23, 1, 152064, 0x8fa0e443
+0, 24, 24, 1, 152064, 0xe8c9db17
+0, 25, 25, 1, 152064, 0xc84bcee6
+0, 26, 26, 1, 152064, 0xa7916158
+0, 27, 27, 1, 152064, 0x16149c36
+0, 28, 28, 1, 152064, 0xe55213fd
+0, 29, 29, 1, 152064, 0xa701e59d
+0, 30, 30, 1, 152064, 0xad65e200
+0, 31, 31, 1, 152064, 0x4606dc82
+0, 32, 32, 1, 152064, 0x582f9f64
+0, 33, 33, 1, 152064, 0xc630662a
+0, 34, 34, 1, 152064, 0xe54bacf5
+0, 35, 35, 1, 152064, 0x230e387f
+0, 36, 36, 1, 152064, 0x1a9c746c
+0, 37, 37, 1, 152064, 0xfa002d7c
+0, 38, 38, 1, 152064, 0xe617c4a9
+0, 39, 39, 1, 152064, 0xd3a4df19
+0, 40, 40, 1, 152064, 0x25b9ca8c
+0, 41, 41, 1, 152064, 0x0c505f7c
+0, 42, 42, 1, 152064, 0x43f84f88
+0, 43, 43, 1, 152064, 0x859fb3af
+0, 44, 44, 1, 152064, 0x9680fc13
+0, 45, 45, 1, 152064, 0x3fe6ecb6
+0, 46, 46, 1, 152064, 0xf4c05a9c
+0, 47, 47, 1, 152064, 0x16ba3b13
+0, 48, 48, 1, 152064, 0x72f33fb9
+0, 49, 49, 1, 152064, 0x3076e567
+0, 50, 50, 1, 152064, 0x4e69b604
+0, 51, 51, 1, 152064, 0x9c37a98b
+0, 52, 52, 1, 152064, 0x0d5756c7
+0, 53, 53, 1, 152064, 0xa4a46a81
+0, 54, 54, 1, 152064, 0xadfc89d7
+0, 55, 55, 1, 152064, 0x35693493
+0, 56, 56, 1, 152064, 0xe3baedbf
+0, 57, 57, 1, 152064, 0x78cfb405
+0, 58, 58, 1, 152064, 0xd85c7074
+0, 59, 59, 1, 152064, 0x14ab350e
+0, 60, 60, 1, 152064, 0xaf55433e
+0, 61, 61, 1, 152064, 0x75a8e79f
+0, 62, 62, 1, 152064, 0x2fb599f6
+0, 63, 63, 1, 152064, 0xbe30bdfe
+0, 64, 64, 1, 152064, 0x8b07a5ce
+0, 65, 65, 1, 152064, 0x99b32730
+0, 66, 66, 1, 152064, 0x9265182d
+0, 67, 67, 1, 152064, 0x91e789fd
+0, 68, 68, 1, 152064, 0x1c1e6d16
+0, 69, 69, 1, 152064, 0xfa06bdaa
+0, 70, 70, 1, 152064, 0x7177041f
+0, 71, 71, 1, 152064, 0xd902f99d
+0, 72, 72, 1, 152064, 0x29bdc134
+0, 73, 73, 1, 152064, 0xd713ab76
+0, 74, 74, 1, 152064, 0x60e4788e
+0, 75, 75, 1, 152064, 0xb18c7789
+0, 76, 76, 1, 152064, 0x0b7829a5
+0, 77, 77, 1, 152064, 0xf676d780
+0, 78, 78, 1, 152064, 0xa88a3a57
+0, 79, 79, 1, 152064, 0x825cf289
+0, 80, 80, 1, 152064, 0x78928201
+0, 81, 81, 1, 152064, 0x013a589c
+0, 82, 82, 1, 152064, 0x9269fa64
+0, 83, 83, 1, 152064, 0x6db5f5fa
+0, 84, 84, 1, 152064, 0x49ad9d6a
+0, 85, 85, 1, 152064, 0x1b7c290f
+0, 86, 86, 1, 152064, 0x99716ad1
+0, 87, 87, 1, 152064, 0x371527c2
+0, 88, 88, 1, 152064, 0x9f351841
+0, 89, 89, 1, 152064, 0x884bb432
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvwp3_toshiba_e b/ffmpeg1/tests/ref/fate/h264-conformance-cvwp3_toshiba_e
new file mode 100644
index 0000000..ca3b7b8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvwp3_toshiba_e
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x3b3ffd31
+0, 1, 1, 1, 152064, 0x14e0b899
+0, 2, 2, 1, 152064, 0x50865a33
+0, 3, 3, 1, 152064, 0x12e749e5
+0, 4, 4, 1, 152064, 0xe5921130
+0, 5, 5, 1, 152064, 0x2ca3b10d
+0, 6, 6, 1, 152064, 0xa9a39f04
+0, 7, 7, 1, 152064, 0x2c78761a
+0, 8, 8, 1, 152064, 0x70890ad7
+0, 9, 9, 1, 152064, 0x4fc30132
+0, 10, 10, 1, 152064, 0x10e4d2c9
+0, 11, 11, 1, 152064, 0xa3326b50
+0, 12, 12, 1, 152064, 0x8e054bf1
+0, 13, 13, 1, 152064, 0x5bd91687
+0, 14, 14, 1, 152064, 0x70bab119
+0, 15, 15, 1, 152064, 0x9a1ab472
+0, 16, 16, 1, 152064, 0x490776a0
+0, 17, 17, 1, 152064, 0xdbb52d2b
+0, 18, 18, 1, 152064, 0x142714b9
+0, 19, 19, 1, 152064, 0xa051ee6f
+0, 20, 20, 1, 152064, 0xafa97fdf
+0, 21, 21, 1, 152064, 0x1ae67347
+0, 22, 22, 1, 152064, 0xc4f42ed6
+0, 23, 23, 1, 152064, 0x4445dc60
+0, 24, 24, 1, 152064, 0xaef4d04b
+0, 25, 25, 1, 152064, 0x6a51be82
+0, 26, 26, 1, 152064, 0x48356190
+0, 27, 27, 1, 152064, 0xc09b5f5d
+0, 28, 28, 1, 152064, 0x933d3379
+0, 29, 29, 1, 152064, 0xfb57e471
+0, 30, 30, 1, 152064, 0xb5b2f45c
+0, 31, 31, 1, 152064, 0xce36e45e
+0, 32, 32, 1, 152064, 0x582f9f64
+0, 33, 33, 1, 152064, 0x2f45b1fd
+0, 34, 34, 1, 152064, 0x90708fa0
+0, 35, 35, 1, 152064, 0xee483b8f
+0, 36, 36, 1, 152064, 0xd2163e6c
+0, 37, 37, 1, 152064, 0x39492dfe
+0, 38, 38, 1, 152064, 0xf89cc57f
+0, 39, 39, 1, 152064, 0xbfc3c411
+0, 40, 40, 1, 152064, 0x919eb007
+0, 41, 41, 1, 152064, 0x2c526309
+0, 42, 42, 1, 152064, 0x39f067a2
+0, 43, 43, 1, 152064, 0xb7653abb
+0, 44, 44, 1, 152064, 0xe26a035c
+0, 45, 45, 1, 152064, 0xcef1eb3b
+0, 46, 46, 1, 152064, 0xb8b3c55f
+0, 47, 47, 1, 152064, 0x16ba3b13
+0, 48, 48, 1, 152064, 0x153a3117
+0, 49, 49, 1, 152064, 0x90a21859
+0, 50, 50, 1, 152064, 0x9231b756
+0, 51, 51, 1, 152064, 0x65fcbcb9
+0, 52, 52, 1, 152064, 0x447eaf44
+0, 53, 53, 1, 152064, 0xa26b6a8e
+0, 54, 54, 1, 152064, 0x100464f8
+0, 55, 55, 1, 152064, 0x479648ec
+0, 56, 56, 1, 152064, 0x6742f51f
+0, 57, 57, 1, 152064, 0x14e9d906
+0, 58, 58, 1, 152064, 0xa058ab87
+0, 59, 59, 1, 152064, 0x8d093874
+0, 60, 60, 1, 152064, 0xef7f2965
+0, 61, 61, 1, 152064, 0x200d02bd
+0, 62, 62, 1, 152064, 0x2fb599f6
+0, 63, 63, 1, 152064, 0xf65fb6e4
+0, 64, 64, 1, 152064, 0x489a9152
+0, 65, 65, 1, 152064, 0xbe8a2fc2
+0, 66, 66, 1, 152064, 0xea04097e
+0, 67, 67, 1, 152064, 0xaf0cd627
+0, 68, 68, 1, 152064, 0xc0a26b27
+0, 69, 69, 1, 152064, 0x985f67e7
+0, 70, 70, 1, 152064, 0x7d1b4c4c
+0, 71, 71, 1, 152064, 0x9908f838
+0, 72, 72, 1, 152064, 0xb8fef131
+0, 73, 73, 1, 152064, 0xb1feaf6c
+0, 74, 74, 1, 152064, 0x37b16bda
+0, 75, 75, 1, 152064, 0x242471aa
+0, 76, 76, 1, 152064, 0xf18c3839
+0, 77, 77, 1, 152064, 0xf676d780
+0, 78, 78, 1, 152064, 0x17bd0f76
+0, 79, 79, 1, 152064, 0x3703e7a6
+0, 80, 80, 1, 152064, 0x69ba8a8a
+0, 81, 81, 1, 152064, 0x205281b3
+0, 82, 82, 1, 152064, 0x54bf51e1
+0, 83, 83, 1, 152064, 0xf6daf8ed
+0, 84, 84, 1, 152064, 0x8728e805
+0, 85, 85, 1, 152064, 0xe98cd2b0
+0, 86, 86, 1, 152064, 0x7ef76e26
+0, 87, 87, 1, 152064, 0x0fbf5230
+0, 88, 88, 1, 152064, 0x9e4d104b
+0, 89, 89, 1, 152064, 0xd562b815
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-cvwp5_toshiba_e b/ffmpeg1/tests/ref/fate/h264-conformance-cvwp5_toshiba_e
new file mode 100644
index 0000000..5b48f8f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-cvwp5_toshiba_e
@@ -0,0 +1,91 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xabf9ae05
+0, 1, 1, 1, 152064, 0x20418b16
+0, 2, 2, 1, 152064, 0x20f72775
+0, 3, 3, 1, 152064, 0x57c07111
+0, 4, 4, 1, 152064, 0x1b49267f
+0, 5, 5, 1, 152064, 0x024cd238
+0, 6, 6, 1, 152064, 0x044d1ae0
+0, 7, 7, 1, 152064, 0xbfec1b59
+0, 8, 8, 1, 152064, 0x1a91f935
+0, 9, 9, 1, 152064, 0x9ee184dc
+0, 10, 10, 1, 152064, 0x65047dbe
+0, 11, 11, 1, 152064, 0xd1632fb5
+0, 12, 12, 1, 152064, 0x56f64c3e
+0, 13, 13, 1, 152064, 0xe6122f37
+0, 14, 14, 1, 152064, 0x0575e670
+0, 15, 15, 1, 152064, 0x3d457728
+0, 16, 16, 1, 152064, 0x6b508105
+0, 17, 17, 1, 152064, 0xcaaf5ea7
+0, 18, 18, 1, 152064, 0x9f4e4501
+0, 19, 19, 1, 152064, 0x1c661a73
+0, 20, 20, 1, 152064, 0x2fd9d1c8
+0, 21, 21, 1, 152064, 0x4ac99ab1
+0, 22, 22, 1, 152064, 0xf2d36809
+0, 23, 23, 1, 152064, 0xa8e32ffb
+0, 24, 24, 1, 152064, 0xd4da2fd2
+0, 25, 25, 1, 152064, 0xac3adde0
+0, 26, 26, 1, 152064, 0xf014ed0f
+0, 27, 27, 1, 152064, 0xca2e7d28
+0, 28, 28, 1, 152064, 0x3a875e51
+0, 29, 29, 1, 152064, 0xc03e4bda
+0, 30, 30, 1, 152064, 0x4fdfb595
+0, 31, 31, 1, 152064, 0x9243f098
+0, 32, 32, 1, 152064, 0x9361bae6
+0, 33, 33, 1, 152064, 0x7a1dadee
+0, 34, 34, 1, 152064, 0x72a59e15
+0, 35, 35, 1, 152064, 0xb5b47170
+0, 36, 36, 1, 152064, 0x5eb16651
+0, 37, 37, 1, 152064, 0xe7894af7
+0, 38, 38, 1, 152064, 0x2683bb0b
+0, 39, 39, 1, 152064, 0x90b4c8c5
+0, 40, 40, 1, 152064, 0xf800c5b5
+0, 41, 41, 1, 152064, 0xc2f5a895
+0, 42, 42, 1, 152064, 0x213c65d4
+0, 43, 43, 1, 152064, 0x01c65a19
+0, 44, 44, 1, 152064, 0xd9f1b04b
+0, 45, 45, 1, 152064, 0xa8d1b139
+0, 46, 46, 1, 152064, 0x2d0cb0cd
+0, 47, 47, 1, 152064, 0x5b0783fe
+0, 48, 48, 1, 152064, 0x29e628ec
+0, 49, 49, 1, 152064, 0x1b8527e5
+0, 50, 50, 1, 152064, 0x4b46d179
+0, 51, 51, 1, 152064, 0x6184c708
+0, 52, 52, 1, 152064, 0x697bb8e2
+0, 53, 53, 1, 152064, 0x5fd3a772
+0, 54, 54, 1, 152064, 0x91456c86
+0, 55, 55, 1, 152064, 0x376c4dae
+0, 56, 56, 1, 152064, 0x00ba2b3f
+0, 57, 57, 1, 152064, 0xf6f0f553
+0, 58, 58, 1, 152064, 0xc0020855
+0, 59, 59, 1, 152064, 0xec3d13d2
+0, 60, 60, 1, 152064, 0xb7d7f1dc
+0, 61, 61, 1, 152064, 0xf9dae37b
+0, 62, 62, 1, 152064, 0x50d9cc93
+0, 63, 63, 1, 152064, 0xba1eb592
+0, 64, 64, 1, 152064, 0x67616557
+0, 65, 65, 1, 152064, 0x09804760
+0, 66, 66, 1, 152064, 0xc2ffba00
+0, 67, 67, 1, 152064, 0xb71fcf46
+0, 68, 68, 1, 152064, 0x6cd975af
+0, 69, 69, 1, 152064, 0x19189167
+0, 70, 70, 1, 152064, 0xbca8fe71
+0, 71, 71, 1, 152064, 0xb0b3f607
+0, 72, 72, 1, 152064, 0x7614d73a
+0, 73, 73, 1, 152064, 0x7de9d87d
+0, 74, 74, 1, 152064, 0x81f58cf2
+0, 75, 75, 1, 152064, 0xb8b036cc
+0, 76, 76, 1, 152064, 0x26d1e2e4
+0, 77, 77, 1, 152064, 0xb41a1e6c
+0, 78, 78, 1, 152064, 0x4f9be4a9
+0, 79, 79, 1, 152064, 0xe95ad5d3
+0, 80, 80, 1, 152064, 0xdffc9335
+0, 81, 81, 1, 152064, 0x01d658c0
+0, 82, 82, 1, 152064, 0x631b4b75
+0, 83, 83, 1, 152064, 0x80ae282f
+0, 84, 84, 1, 152064, 0xb34bf688
+0, 85, 85, 1, 152064, 0xd0cc7d65
+0, 86, 86, 1, 152064, 0x86aa4590
+0, 87, 87, 1, 152064, 0xcb515a57
+0, 88, 88, 1, 152064, 0x68650834
+0, 89, 89, 1, 152064, 0x444ee2a4
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-fi1_sony_e b/ffmpeg1/tests/ref/fate/h264-conformance-fi1_sony_e
new file mode 100644
index 0000000..6b5e0db
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-fi1_sony_e
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-alphaconformanceg b/ffmpeg1/tests/ref/fate/h264-conformance-frext-alphaconformanceg
new file mode 100644
index 0000000..dee1c42
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-alphaconformanceg
@@ -0,0 +1,44 @@
+#tb 0: 1/25
+0, 0, 0, 1, 783360, 0xbc458a9a
+0, 1, 1, 1, 783360, 0xc2b4a765
+0, 2, 2, 1, 783360, 0x40a8ca87
+0, 3, 3, 1, 783360, 0xdd0cbc2c
+0, 4, 4, 1, 783360, 0xecf8e434
+0, 5, 5, 1, 783360, 0xcc87e3d4
+0, 6, 6, 1, 783360, 0x386e1a34
+0, 7, 7, 1, 783360, 0x6ac4a62e
+0, 8, 8, 1, 783360, 0xf23d89bb
+0, 9, 9, 1, 783360, 0x52f7b94c
+0, 10, 10, 1, 783360, 0x2b4ea2c2
+0, 11, 11, 1, 783360, 0x0a43839c
+0, 12, 12, 1, 783360, 0xad4b81ea
+0, 13, 13, 1, 783360, 0xcb4fe0d4
+0, 14, 14, 1, 783360, 0x6c3ca755
+0, 15, 15, 1, 783360, 0x17d37f49
+0, 16, 16, 1, 783360, 0x8fdfebec
+0, 17, 17, 1, 783360, 0x1a177b49
+0, 18, 18, 1, 783360, 0x72d230ad
+0, 19, 19, 1, 783360, 0x62147d69
+0, 20, 20, 1, 783360, 0xeed9b62c
+0, 21, 21, 1, 783360, 0x7fc45b23
+0, 22, 22, 1, 783360, 0x5dc60681
+0, 23, 23, 1, 783360, 0x2d91c001
+0, 24, 24, 1, 783360, 0x259ab608
+0, 25, 25, 1, 783360, 0x29112b29
+0, 26, 26, 1, 783360, 0x7e4d497e
+0, 27, 27, 1, 783360, 0x616e5507
+0, 28, 28, 1, 783360, 0x299473c9
+0, 29, 29, 1, 783360, 0x4d63d722
+0, 30, 30, 1, 783360, 0xa89e4bc6
+0, 31, 31, 1, 783360, 0xbdef585a
+0, 32, 32, 1, 783360, 0x5b12c72c
+0, 33, 33, 1, 783360, 0x5a884bd8
+0, 34, 34, 1, 783360, 0x97728ade
+0, 35, 35, 1, 783360, 0x27dd8999
+0, 36, 36, 1, 783360, 0x94104d66
+0, 37, 37, 1, 783360, 0xf30244f1
+0, 38, 38, 1, 783360, 0xfc98c63e
+0, 39, 39, 1, 783360, 0x8b27de2e
+0, 40, 40, 1, 783360, 0xfc6bbbf2
+0, 41, 41, 1, 783360, 0x4527b6a3
+0, 42, 42, 1, 783360, 0x4070daf0
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-bcrm_freh10 b/ffmpeg1/tests/ref/fate/h264-conformance-frext-bcrm_freh10
new file mode 100644
index 0000000..272a4aa
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-bcrm_freh10
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh11 b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh11
new file mode 100644
index 0000000..3183c4d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh11
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh3 b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh3
new file mode 100644
index 0000000..9a40148
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh3
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x9f9caf3c
+0, 1, 1, 1, 152064, 0x4e8e9dc4
+0, 2, 2, 1, 152064, 0x7eab62be
+0, 3, 3, 1, 152064, 0x79de6e48
+0, 4, 4, 1, 152064, 0x6bb843f3
+0, 5, 5, 1, 152064, 0xd0e96c36
+0, 6, 6, 1, 152064, 0x061a9036
+0, 7, 7, 1, 152064, 0x342c42ea
+0, 8, 8, 1, 152064, 0x9835cfc3
+0, 9, 9, 1, 152064, 0x129ed3dd
+0, 10, 10, 1, 152064, 0x81413cf7
+0, 11, 11, 1, 152064, 0xcd16539e
+0, 12, 12, 1, 152064, 0x927728cd
+0, 13, 13, 1, 152064, 0x5ebd1126
+0, 14, 14, 1, 152064, 0x9ad29eb3
+0, 15, 15, 1, 152064, 0x0ae5a447
+0, 16, 16, 1, 152064, 0xaf275266
+0, 17, 17, 1, 152064, 0x98f96209
+0, 18, 18, 1, 152064, 0x5fcf241f
+0, 19, 19, 1, 152064, 0x17507ee5
+0, 20, 20, 1, 152064, 0xb4ad5f2d
+0, 21, 21, 1, 152064, 0x02fff6da
+0, 22, 22, 1, 152064, 0x8726c662
+0, 23, 23, 1, 152064, 0x8ca707d5
+0, 24, 24, 1, 152064, 0xe41f3946
+0, 25, 25, 1, 152064, 0xc7b34d1e
+0, 26, 26, 1, 152064, 0x25146571
+0, 27, 27, 1, 152064, 0xeb4868f4
+0, 28, 28, 1, 152064, 0xd0fe149d
+0, 29, 29, 1, 152064, 0x31043d0a
+0, 30, 30, 1, 152064, 0xdaf2ba1c
+0, 31, 31, 1, 152064, 0xb474076c
+0, 32, 32, 1, 152064, 0x0cf7f1a2
+0, 33, 33, 1, 152064, 0x2e427793
+0, 34, 34, 1, 152064, 0x08d9a655
+0, 35, 35, 1, 152064, 0x79bc8fc9
+0, 36, 36, 1, 152064, 0xb9871e5c
+0, 37, 37, 1, 152064, 0xca1246df
+0, 38, 38, 1, 152064, 0x08c8d524
+0, 39, 39, 1, 152064, 0xb9be5ecb
+0, 40, 40, 1, 152064, 0x807f87f0
+0, 41, 41, 1, 152064, 0x72eb3ab2
+0, 42, 42, 1, 152064, 0xf463d15f
+0, 43, 43, 1, 152064, 0x857d0471
+0, 44, 44, 1, 152064, 0x5dda5ede
+0, 45, 45, 1, 152064, 0xec33b550
+0, 46, 46, 1, 152064, 0x2217b9bb
+0, 47, 47, 1, 152064, 0x060b0fa4
+0, 48, 48, 1, 152064, 0x5a785b49
+0, 49, 49, 1, 152064, 0x6969268b
+0, 50, 50, 1, 152064, 0xe145d3a4
+0, 51, 51, 1, 152064, 0xb7256e99
+0, 52, 52, 1, 152064, 0x5bbebf16
+0, 53, 53, 1, 152064, 0x9234b31e
+0, 54, 54, 1, 152064, 0x9f0f8c7e
+0, 55, 55, 1, 152064, 0x15e271c4
+0, 56, 56, 1, 152064, 0xe8110297
+0, 57, 57, 1, 152064, 0x1a4364f3
+0, 58, 58, 1, 152064, 0xb7b336f8
+0, 59, 59, 1, 152064, 0x31657acb
+0, 60, 60, 1, 152064, 0xd8e1de00
+0, 61, 61, 1, 152064, 0x9a57117a
+0, 62, 62, 1, 152064, 0xfb828be8
+0, 63, 63, 1, 152064, 0x30bf2ab7
+0, 64, 64, 1, 152064, 0xaf840b27
+0, 65, 65, 1, 152064, 0x900cbcd4
+0, 66, 66, 1, 152064, 0x6439acfc
+0, 67, 67, 1, 152064, 0x716036fd
+0, 68, 68, 1, 152064, 0xc3d9baa8
+0, 69, 69, 1, 152064, 0x455f7d1f
+0, 70, 70, 1, 152064, 0x84c10d78
+0, 71, 71, 1, 152064, 0x2cd76642
+0, 72, 72, 1, 152064, 0x5c746b3a
+0, 73, 73, 1, 152064, 0x92e39e7d
+0, 74, 74, 1, 152064, 0xae610df8
+0, 75, 75, 1, 152064, 0xc8bac3fa
+0, 76, 76, 1, 152064, 0x04be8a35
+0, 77, 77, 1, 152064, 0xaaf91b17
+0, 78, 78, 1, 152064, 0x5afa8764
+0, 79, 79, 1, 152064, 0x31828a12
+0, 80, 80, 1, 152064, 0xf1bd3da9
+0, 81, 81, 1, 152064, 0xbbb2aaef
+0, 82, 82, 1, 152064, 0xcf69efa1
+0, 83, 83, 1, 152064, 0x54e85e1b
+0, 84, 84, 1, 152064, 0x89ff3a1a
+0, 85, 85, 1, 152064, 0x86c80511
+0, 86, 86, 1, 152064, 0x41c886f2
+0, 87, 87, 1, 152064, 0x9f2ebd74
+0, 88, 88, 1, 152064, 0x74d3d0e0
+0, 89, 89, 1, 152064, 0xc79501cc
+0, 90, 90, 1, 152064, 0x123e23e2
+0, 91, 91, 1, 152064, 0xb6122ea0
+0, 92, 92, 1, 152064, 0x551f95df
+0, 93, 93, 1, 152064, 0x0652ac2d
+0, 94, 94, 1, 152064, 0x6483a8ad
+0, 95, 95, 1, 152064, 0x7f632ae2
+0, 96, 96, 1, 152064, 0xae74622f
+0, 97, 97, 1, 152064, 0xdd411339
+0, 98, 98, 1, 152064, 0xff0e7f69
+0, 99, 99, 1, 152064, 0x8b3a5933
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh4 b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh4
new file mode 100644
index 0000000..ad3a3ec
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh4
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh5 b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh5
new file mode 100644
index 0000000..9057c82
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh5
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xd816ae9a
+0, 1, 1, 1, 152064, 0x970e9c33
+0, 2, 2, 1, 152064, 0xbdd14635
+0, 3, 3, 1, 152064, 0x103f667c
+0, 4, 4, 1, 152064, 0x752b1ebb
+0, 5, 5, 1, 152064, 0x1e9d59d4
+0, 6, 6, 1, 152064, 0x4b9d89b6
+0, 7, 7, 1, 152064, 0x16c1362e
+0, 8, 8, 1, 152064, 0x3ea9a977
+0, 9, 9, 1, 152064, 0x24e3c7fe
+0, 10, 10, 1, 152064, 0xe64132fa
+0, 11, 11, 1, 152064, 0xb2074e31
+0, 12, 12, 1, 152064, 0x87e61824
+0, 13, 13, 1, 152064, 0xf3e7f2d3
+0, 14, 14, 1, 152064, 0x36856b98
+0, 15, 15, 1, 152064, 0xe2be97dd
+0, 16, 16, 1, 152064, 0xb99a3a3d
+0, 17, 17, 1, 152064, 0xf4d04afa
+0, 18, 18, 1, 152064, 0x20a92205
+0, 19, 19, 1, 152064, 0x5f6272ca
+0, 20, 20, 1, 152064, 0xe1f45d11
+0, 21, 21, 1, 152064, 0x7ff113ee
+0, 22, 22, 1, 152064, 0x47e8befb
+0, 23, 23, 1, 152064, 0x562c03c6
+0, 24, 24, 1, 152064, 0x197a311c
+0, 25, 25, 1, 152064, 0x30017402
+0, 26, 26, 1, 152064, 0x27e6384e
+0, 27, 27, 1, 152064, 0x456f6152
+0, 28, 28, 1, 152064, 0x368810d1
+0, 29, 29, 1, 152064, 0x7be61b5f
+0, 30, 30, 1, 152064, 0x5fa9aaef
+0, 31, 31, 1, 152064, 0x957de9da
+0, 32, 32, 1, 152064, 0x47c6bc4f
+0, 33, 33, 1, 152064, 0xb2247b98
+0, 34, 34, 1, 152064, 0xd045a416
+0, 35, 35, 1, 152064, 0xa0b16da9
+0, 36, 36, 1, 152064, 0xe9bd1d8f
+0, 37, 37, 1, 152064, 0xe7881f4d
+0, 38, 38, 1, 152064, 0x85e2d4a9
+0, 39, 39, 1, 152064, 0x00a967cd
+0, 40, 40, 1, 152064, 0x02507278
+0, 41, 41, 1, 152064, 0xc511370e
+0, 42, 42, 1, 152064, 0x7963cf0b
+0, 43, 43, 1, 152064, 0xf99ef0fd
+0, 44, 44, 1, 152064, 0x00813540
+0, 45, 45, 1, 152064, 0xa9aeaf2b
+0, 46, 46, 1, 152064, 0x559eb849
+0, 47, 47, 1, 152064, 0x315605c1
+0, 48, 48, 1, 152064, 0xe2594b7c
+0, 49, 49, 1, 152064, 0x844ef85c
+0, 50, 50, 1, 152064, 0x5012c785
+0, 51, 51, 1, 152064, 0x239f600d
+0, 52, 52, 1, 152064, 0x80a2a156
+0, 53, 53, 1, 152064, 0xec239895
+0, 54, 54, 1, 152064, 0xd7387dbe
+0, 55, 55, 1, 152064, 0xe8aa6125
+0, 56, 56, 1, 152064, 0x4742d997
+0, 57, 57, 1, 152064, 0x88515422
+0, 58, 58, 1, 152064, 0x3dd02167
+0, 59, 59, 1, 152064, 0xe36855d1
+0, 60, 60, 1, 152064, 0x202edeb9
+0, 61, 61, 1, 152064, 0xf5a5eed3
+0, 62, 62, 1, 152064, 0xd3bc6e68
+0, 63, 63, 1, 152064, 0xba902a0a
+0, 64, 64, 1, 152064, 0x4db4f721
+0, 65, 65, 1, 152064, 0x293c90bd
+0, 66, 66, 1, 152064, 0xa651a49f
+0, 67, 67, 1, 152064, 0x5c1a2a7d
+0, 68, 68, 1, 152064, 0xa67986de
+0, 69, 69, 1, 152064, 0xe5fe7d26
+0, 70, 70, 1, 152064, 0xde191b31
+0, 71, 71, 1, 152064, 0x5e303cb1
+0, 72, 72, 1, 152064, 0x657f6d5d
+0, 73, 73, 1, 152064, 0x5c44adaa
+0, 74, 74, 1, 152064, 0x8c3c0422
+0, 75, 75, 1, 152064, 0x161cb54f
+0, 76, 76, 1, 152064, 0xc96355c8
+0, 77, 77, 1, 152064, 0xeb02fdec
+0, 78, 78, 1, 152064, 0xd18a7989
+0, 79, 79, 1, 152064, 0xc7d671bf
+0, 80, 80, 1, 152064, 0x2e1637cc
+0, 81, 81, 1, 152064, 0xd0d5958a
+0, 82, 82, 1, 152064, 0x2f9dd79c
+0, 83, 83, 1, 152064, 0xa96b4dd1
+0, 84, 84, 1, 152064, 0x7bfc2eb9
+0, 85, 85, 1, 152064, 0xc3c91809
+0, 86, 86, 1, 152064, 0x9e167aa3
+0, 87, 87, 1, 152064, 0xb47e9f6e
+0, 88, 88, 1, 152064, 0x70e6c184
+0, 89, 89, 1, 152064, 0x0d92e4e7
+0, 90, 90, 1, 152064, 0xf4891b11
+0, 91, 91, 1, 152064, 0x93f912c7
+0, 92, 92, 1, 152064, 0xa3bc52c5
+0, 93, 93, 1, 152064, 0xc6fca440
+0, 94, 94, 1, 152064, 0x045aa5d4
+0, 95, 95, 1, 152064, 0x15ba1dd0
+0, 96, 96, 1, 152064, 0x59f45a8b
+0, 97, 97, 1, 152064, 0x9dc20832
+0, 98, 98, 1, 152064, 0x36316eb4
+0, 99, 99, 1, 152064, 0x28ba54f4
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh8 b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh8
new file mode 100644
index 0000000..4cc7f0e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh8
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xdcc4ac76
+0, 1, 1, 1, 152064, 0xfde6871a
+0, 2, 2, 1, 152064, 0xe8a351b5
+0, 3, 3, 1, 152064, 0x0e586608
+0, 4, 4, 1, 152064, 0xbe3c2adc
+0, 5, 5, 1, 152064, 0x244a5b3c
+0, 6, 6, 1, 152064, 0x7cad919e
+0, 7, 7, 1, 152064, 0x24c452c0
+0, 8, 8, 1, 152064, 0x089dc7f0
+0, 9, 9, 1, 152064, 0x6ee5d1dd
+0, 10, 10, 1, 152064, 0x177430f0
+0, 11, 11, 1, 152064, 0xf2af65f6
+0, 12, 12, 1, 152064, 0x4c4626a7
+0, 13, 13, 1, 152064, 0x897af1da
+0, 14, 14, 1, 152064, 0xf16199b1
+0, 15, 15, 1, 152064, 0x2979a469
+0, 16, 16, 1, 152064, 0x5ce345a0
+0, 17, 17, 1, 152064, 0x1a044ff3
+0, 18, 18, 1, 152064, 0x9075241f
+0, 19, 19, 1, 152064, 0xd1457558
+0, 20, 20, 1, 152064, 0xdfe3669f
+0, 21, 21, 1, 152064, 0x4961fc7a
+0, 22, 22, 1, 152064, 0xb84daee5
+0, 23, 23, 1, 152064, 0xc4efe5c3
+0, 24, 24, 1, 152064, 0x35f73410
+0, 25, 25, 1, 152064, 0xf99a2c73
+0, 26, 26, 1, 152064, 0xe5c12391
+0, 27, 27, 1, 152064, 0xc2056236
+0, 28, 28, 1, 152064, 0xce2bff90
+0, 29, 29, 1, 152064, 0x01d92bb1
+0, 30, 30, 1, 152064, 0xc55eb558
+0, 31, 31, 1, 152064, 0xf02ef0ff
+0, 32, 32, 1, 152064, 0x069dd1c6
+0, 33, 33, 1, 152064, 0x49718229
+0, 34, 34, 1, 152064, 0x0e9ea401
+0, 35, 35, 1, 152064, 0x307e7f8b
+0, 36, 36, 1, 152064, 0xf5071e31
+0, 37, 37, 1, 152064, 0xac2c2ad0
+0, 38, 38, 1, 152064, 0x5586d665
+0, 39, 39, 1, 152064, 0xa62a6a2b
+0, 40, 40, 1, 152064, 0xff167d1b
+0, 41, 41, 1, 152064, 0x02d225c2
+0, 42, 42, 1, 152064, 0x868ccb0b
+0, 43, 43, 1, 152064, 0x36edfa29
+0, 44, 44, 1, 152064, 0xb6244864
+0, 45, 45, 1, 152064, 0xd891b5dc
+0, 46, 46, 1, 152064, 0x9246b763
+0, 47, 47, 1, 152064, 0xea240b61
+0, 48, 48, 1, 152064, 0x2d985877
+0, 49, 49, 1, 152064, 0xe6b92603
+0, 50, 50, 1, 152064, 0x102ac84f
+0, 51, 51, 1, 152064, 0xddaf709b
+0, 52, 52, 1, 152064, 0x48dfb25e
+0, 53, 53, 1, 152064, 0xf2acadbb
+0, 54, 54, 1, 152064, 0x647685f5
+0, 55, 55, 1, 152064, 0x893874c9
+0, 56, 56, 1, 152064, 0xdfd7ed77
+0, 57, 57, 1, 152064, 0x97b36277
+0, 58, 58, 1, 152064, 0x59f33282
+0, 59, 59, 1, 152064, 0xba5c6a0e
+0, 60, 60, 1, 152064, 0x7856ddf0
+0, 61, 61, 1, 152064, 0x74e5f095
+0, 62, 62, 1, 152064, 0x76167a60
+0, 63, 63, 1, 152064, 0xa6cf2255
+0, 64, 64, 1, 152064, 0x9f8b1446
+0, 65, 65, 1, 152064, 0xa775aa79
+0, 66, 66, 1, 152064, 0x5662a698
+0, 67, 67, 1, 152064, 0xe6321e5b
+0, 68, 68, 1, 152064, 0xdaea9a83
+0, 69, 69, 1, 152064, 0xd89d835f
+0, 70, 70, 1, 152064, 0x0b1503e2
+0, 71, 71, 1, 152064, 0x7fef6395
+0, 72, 72, 1, 152064, 0xc27273f2
+0, 73, 73, 1, 152064, 0xff9288fd
+0, 74, 74, 1, 152064, 0xb76aee35
+0, 75, 75, 1, 152064, 0xbd0dc4b2
+0, 76, 76, 1, 152064, 0x3085598e
+0, 77, 77, 1, 152064, 0x22e408f6
+0, 78, 78, 1, 152064, 0xc054866d
+0, 79, 79, 1, 152064, 0x881377f8
+0, 80, 80, 1, 152064, 0x0dd7311e
+0, 81, 81, 1, 152064, 0x627ea688
+0, 82, 82, 1, 152064, 0x95bbe693
+0, 83, 83, 1, 152064, 0x806c480f
+0, 84, 84, 1, 152064, 0x6feb3d47
+0, 85, 85, 1, 152064, 0x639f0a72
+0, 86, 86, 1, 152064, 0x4922909d
+0, 87, 87, 1, 152064, 0x44bbc195
+0, 88, 88, 1, 152064, 0xf119ca8f
+0, 89, 89, 1, 152064, 0x6f46e9c8
+0, 90, 90, 1, 152064, 0xd68e222a
+0, 91, 91, 1, 152064, 0xedc716eb
+0, 92, 92, 1, 152064, 0x090a7702
+0, 93, 93, 1, 152064, 0xc94eac7a
+0, 94, 94, 1, 152064, 0x629d8823
+0, 95, 95, 1, 152064, 0x30a51f8c
+0, 96, 96, 1, 152064, 0x4265666b
+0, 97, 97, 1, 152064, 0x766dfd25
+0, 98, 98, 1, 152064, 0x7dc37c52
+0, 99, 99, 1, 152064, 0x07c65fbe
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh9 b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh9
new file mode 100644
index 0000000..44d5d1a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-brcm_freh9
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x9f9caf3c
+0, 1, 1, 1, 152064, 0x68f285b1
+0, 2, 2, 1, 152064, 0x28bd4987
+0, 3, 3, 1, 152064, 0x79de6e48
+0, 4, 4, 1, 152064, 0x48301bf9
+0, 5, 5, 1, 152064, 0x2c9e516c
+0, 6, 6, 1, 152064, 0xf774946a
+0, 7, 7, 1, 152064, 0x36534317
+0, 8, 8, 1, 152064, 0x98b7bd86
+0, 9, 9, 1, 152064, 0x2aa3d50b
+0, 10, 10, 1, 152064, 0xc4343429
+0, 11, 11, 1, 152064, 0x276c5f04
+0, 12, 12, 1, 152064, 0x042d2916
+0, 13, 13, 1, 152064, 0x777ee739
+0, 14, 14, 1, 152064, 0x1ce186d8
+0, 15, 15, 1, 152064, 0x0ae5a447
+0, 16, 16, 1, 152064, 0x179435a8
+0, 17, 17, 1, 152064, 0x96d743b8
+0, 18, 18, 1, 152064, 0x7dcc26b7
+0, 19, 19, 1, 152064, 0x72c860c8
+0, 20, 20, 1, 152064, 0x12a95052
+0, 21, 21, 1, 152064, 0x1ed00304
+0, 22, 22, 1, 152064, 0xf9f698be
+0, 23, 23, 1, 152064, 0x768ef04d
+0, 24, 24, 1, 152064, 0x873833ee
+0, 25, 25, 1, 152064, 0x1b4a1e1e
+0, 26, 26, 1, 152064, 0x67462224
+0, 27, 27, 1, 152064, 0x0206612a
+0, 28, 28, 1, 152064, 0xd203f197
+0, 29, 29, 1, 152064, 0x5dc020b0
+0, 30, 30, 1, 152064, 0xdaf2ba1c
+0, 31, 31, 1, 152064, 0xad54e4b2
+0, 32, 32, 1, 152064, 0x4273c281
+0, 33, 33, 1, 152064, 0x0655817d
+0, 34, 34, 1, 152064, 0xdea79e1c
+0, 35, 35, 1, 152064, 0x60ae6d1e
+0, 36, 36, 1, 152064, 0x45401d1b
+0, 37, 37, 1, 152064, 0xc6b12160
+0, 38, 38, 1, 152064, 0x163fbde9
+0, 39, 39, 1, 152064, 0x91636a0c
+0, 40, 40, 1, 152064, 0x442173a4
+0, 41, 41, 1, 152064, 0x0f941379
+0, 42, 42, 1, 152064, 0x0649caad
+0, 43, 43, 1, 152064, 0x1238eaa4
+0, 44, 44, 1, 152064, 0x86013d55
+0, 45, 45, 1, 152064, 0xec33b550
+0, 46, 46, 1, 152064, 0x4cc7b33d
+0, 47, 47, 1, 152064, 0x4c93f8ab
+0, 48, 48, 1, 152064, 0x0cf15a34
+0, 49, 49, 1, 152064, 0x04b71770
+0, 50, 50, 1, 152064, 0xf860cea8
+0, 51, 51, 1, 152064, 0x77fb76a3
+0, 52, 52, 1, 152064, 0xa494b27c
+0, 53, 53, 1, 152064, 0xf7a0b0b2
+0, 54, 54, 1, 152064, 0x4cae843b
+0, 55, 55, 1, 152064, 0x590e6403
+0, 56, 56, 1, 152064, 0xe439e63e
+0, 57, 57, 1, 152064, 0xbeca5f92
+0, 58, 58, 1, 152064, 0x31d9164f
+0, 59, 59, 1, 152064, 0xedab54a9
+0, 60, 60, 1, 152064, 0xd8e1de00
+0, 61, 61, 1, 152064, 0xd04fe391
+0, 62, 62, 1, 152064, 0xef6568b3
+0, 63, 63, 1, 152064, 0x859a2811
+0, 64, 64, 1, 152064, 0x9d5ffe6f
+0, 65, 65, 1, 152064, 0x5a679908
+0, 66, 66, 1, 152064, 0xc264a830
+0, 67, 67, 1, 152064, 0xbfdf08c0
+0, 68, 68, 1, 152064, 0x4fd68cb7
+0, 69, 69, 1, 152064, 0x0a7b86f3
+0, 70, 70, 1, 152064, 0xe4fe043b
+0, 71, 71, 1, 152064, 0x8b186a22
+0, 72, 72, 1, 152064, 0xf715765a
+0, 73, 73, 1, 152064, 0xfd7b77e5
+0, 74, 74, 1, 152064, 0x9e3fdd06
+0, 75, 75, 1, 152064, 0xc8bac3fa
+0, 76, 76, 1, 152064, 0x4e83449f
+0, 77, 77, 1, 152064, 0xe5fefcff
+0, 78, 78, 1, 152064, 0x89d77b09
+0, 79, 79, 1, 152064, 0x77fd6f7e
+0, 80, 80, 1, 152064, 0xa7ec356c
+0, 81, 81, 1, 152064, 0x2000aa87
+0, 82, 82, 1, 152064, 0xa9a1e267
+0, 83, 83, 1, 152064, 0xf67c3fcc
+0, 84, 84, 1, 152064, 0x10143acc
+0, 85, 85, 1, 152064, 0xa5fa0476
+0, 86, 86, 1, 152064, 0x2e8d8966
+0, 87, 87, 1, 152064, 0x74ccbbde
+0, 88, 88, 1, 152064, 0xf903b2cf
+0, 89, 89, 1, 152064, 0x66a8d7ab
+0, 90, 90, 1, 152064, 0x123e23e2
+0, 91, 91, 1, 152064, 0x8bd70865
+0, 92, 92, 1, 152064, 0x2b017249
+0, 93, 93, 1, 152064, 0x17f1aba6
+0, 94, 94, 1, 152064, 0x38368449
+0, 95, 95, 1, 152064, 0x72ee1b69
+0, 96, 96, 1, 152064, 0x0f1c6a1d
+0, 97, 97, 1, 152064, 0xbeea0040
+0, 98, 98, 1, 152064, 0x4a9e73b9
+0, 99, 99, 1, 152064, 0x51a46120
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh12_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh12_b
new file mode 100644
index 0000000..9455cc2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh12_b
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x9f9caf3c
+0, 1, 1, 1, 152064, 0x0ff688a6
+0, 2, 2, 1, 152064, 0x247d4215
+0, 3, 3, 1, 152064, 0x6d075b1b
+0, 4, 4, 1, 152064, 0x23893f77
+0, 5, 5, 1, 152064, 0x46db7dfc
+0, 6, 6, 1, 152064, 0x6438c4b9
+0, 7, 7, 1, 152064, 0x1f468257
+0, 8, 8, 1, 152064, 0xd534ff36
+0, 9, 9, 1, 152064, 0xb230f7b8
+0, 10, 10, 1, 152064, 0xd8f66983
+0, 11, 11, 1, 152064, 0x2068b7a9
+0, 12, 12, 1, 152064, 0xd5748d8c
+0, 13, 13, 1, 152064, 0x1d701770
+0, 14, 14, 1, 152064, 0xe505c973
+0, 15, 15, 1, 152064, 0x0ae5a447
+0, 16, 16, 1, 152064, 0x3cf356bc
+0, 17, 17, 1, 152064, 0x7d735625
+0, 18, 18, 1, 152064, 0x3ce6438f
+0, 19, 19, 1, 152064, 0xef3d947c
+0, 20, 20, 1, 152064, 0xa35872be
+0, 21, 21, 1, 152064, 0xcb9d1a37
+0, 22, 22, 1, 152064, 0x9ad4cda1
+0, 23, 23, 1, 152064, 0xc8d00a24
+0, 24, 24, 1, 152064, 0xadab390b
+0, 25, 25, 1, 152064, 0x530837a5
+0, 26, 26, 1, 152064, 0xfda73274
+0, 27, 27, 1, 152064, 0x7a297022
+0, 28, 28, 1, 152064, 0x0d5f16a1
+0, 29, 29, 1, 152064, 0xb0453e15
+0, 30, 30, 1, 152064, 0xdaf2ba1c
+0, 31, 31, 1, 152064, 0x55e5f451
+0, 32, 32, 1, 152064, 0x723ecbce
+0, 33, 33, 1, 152064, 0xb8376dfa
+0, 34, 34, 1, 152064, 0xf53d97b7
+0, 35, 35, 1, 152064, 0x1e2065cb
+0, 36, 36, 1, 152064, 0x79ab0d75
+0, 37, 37, 1, 152064, 0xc5da27ed
+0, 38, 38, 1, 152064, 0x37c9d744
+0, 39, 39, 1, 152064, 0xa8ab8bc3
+0, 40, 40, 1, 152064, 0xab16a630
+0, 41, 41, 1, 152064, 0xbbd76705
+0, 42, 42, 1, 152064, 0xe67b2032
+0, 43, 43, 1, 152064, 0xe1e02979
+0, 44, 44, 1, 152064, 0xe79260b2
+0, 45, 45, 1, 152064, 0xec33b550
+0, 46, 46, 1, 152064, 0x679cca25
+0, 47, 47, 1, 152064, 0x464b0935
+0, 48, 48, 1, 152064, 0xa4c36a2a
+0, 49, 49, 1, 152064, 0xe9593764
+0, 50, 50, 1, 152064, 0x10f9ff42
+0, 51, 51, 1, 152064, 0x6518a6fa
+0, 52, 52, 1, 152064, 0xd161e4f3
+0, 53, 53, 1, 152064, 0xc9d9be11
+0, 54, 54, 1, 152064, 0x0db78ff6
+0, 55, 55, 1, 152064, 0xd47d7e0f
+0, 56, 56, 1, 152064, 0xdf34e3a3
+0, 57, 57, 1, 152064, 0x13b68bd6
+0, 58, 58, 1, 152064, 0x90e845bd
+0, 59, 59, 1, 152064, 0xb434883a
+0, 60, 60, 1, 152064, 0xd8e1de00
+0, 61, 61, 1, 152064, 0xc9a3df1f
+0, 62, 62, 1, 152064, 0x01476f54
+0, 63, 63, 1, 152064, 0xd52824a4
+0, 64, 64, 1, 152064, 0x63d43662
+0, 65, 65, 1, 152064, 0x40a90d0f
+0, 66, 66, 1, 152064, 0x332b22eb
+0, 67, 67, 1, 152064, 0x1c267e8c
+0, 68, 68, 1, 152064, 0x9be230d3
+0, 69, 69, 1, 152064, 0x0ca308e8
+0, 70, 70, 1, 152064, 0xfb5c5fdd
+0, 71, 71, 1, 152064, 0x0d386358
+0, 72, 72, 1, 152064, 0x3c7148b3
+0, 73, 73, 1, 152064, 0xc2c07dab
+0, 74, 74, 1, 152064, 0x76bbf8eb
+0, 75, 75, 1, 152064, 0xc8bac3fa
+0, 76, 76, 1, 152064, 0x35ef5e12
+0, 77, 77, 1, 152064, 0x5d1fea8d
+0, 78, 78, 1, 152064, 0xafbb54ef
+0, 79, 79, 1, 152064, 0xf5d3396e
+0, 80, 80, 1, 152064, 0xc4f4f8eb
+0, 81, 81, 1, 152064, 0x60a17fa1
+0, 82, 82, 1, 152064, 0x8804cdf9
+0, 83, 83, 1, 152064, 0x3227412f
+0, 84, 84, 1, 152064, 0x130e5026
+0, 85, 85, 1, 152064, 0xcb17344e
+0, 86, 86, 1, 152064, 0x4f0dde70
+0, 87, 87, 1, 152064, 0x57422405
+0, 88, 88, 1, 152064, 0x48070e40
+0, 89, 89, 1, 152064, 0x5c2f134d
+0, 90, 90, 1, 152064, 0x123e23e2
+0, 91, 91, 1, 152064, 0x393c1185
+0, 92, 92, 1, 152064, 0x59919a69
+0, 93, 93, 1, 152064, 0xc1dad5c4
+0, 94, 94, 1, 152064, 0x49b8c9a9
+0, 95, 95, 1, 152064, 0x8dab7b1c
+0, 96, 96, 1, 152064, 0x3a63c0c0
+0, 97, 97, 1, 152064, 0x224860bc
+0, 98, 98, 1, 152064, 0xdc40c9b2
+0, 99, 99, 1, 152064, 0xd3a0b8a1
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh1_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh1_b
new file mode 100644
index 0000000..c5c0b25
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh1_b
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x42a3d9ce
+0, 1, 1, 1, 152064, 0xa95cc2ed
+0, 2, 2, 1, 152064, 0xc48f8fdc
+0, 3, 3, 1, 152064, 0x1584b7e8
+0, 4, 4, 1, 152064, 0xd6f34b7e
+0, 5, 5, 1, 152064, 0xbb196ee4
+0, 6, 6, 1, 152064, 0xdfe79cbd
+0, 7, 7, 1, 152064, 0x023799b7
+0, 8, 8, 1, 152064, 0x156b1932
+0, 9, 9, 1, 152064, 0x6dd14765
+0, 10, 10, 1, 152064, 0xd2bd86b9
+0, 11, 11, 1, 152064, 0xee62c71d
+0, 12, 12, 1, 152064, 0x60667d48
+0, 13, 13, 1, 152064, 0x09df084c
+0, 14, 14, 1, 152064, 0xc1a0b8d7
+0, 15, 15, 1, 152064, 0x55adc538
+0, 16, 16, 1, 152064, 0xf6d28a14
+0, 17, 17, 1, 152064, 0x1adab322
+0, 18, 18, 1, 152064, 0xa6c796aa
+0, 19, 19, 1, 152064, 0x60d8dc6a
+0, 20, 20, 1, 152064, 0x20f9c609
+0, 21, 21, 1, 152064, 0x299f4059
+0, 22, 22, 1, 152064, 0x93eb0fea
+0, 23, 23, 1, 152064, 0x76e7547e
+0, 24, 24, 1, 152064, 0xc4b76f90
+0, 25, 25, 1, 152064, 0x4b7a85ea
+0, 26, 26, 1, 152064, 0x2e138df4
+0, 27, 27, 1, 152064, 0x7df1a421
+0, 28, 28, 1, 152064, 0x0e9a1a3e
+0, 29, 29, 1, 152064, 0x56124293
+0, 30, 30, 1, 152064, 0x1faee8f7
+0, 31, 31, 1, 152064, 0x7f551572
+0, 32, 32, 1, 152064, 0x8974cbf0
+0, 33, 33, 1, 152064, 0x1c5dc5e9
+0, 34, 34, 1, 152064, 0x2498eb5b
+0, 35, 35, 1, 152064, 0x861ed634
+0, 36, 36, 1, 152064, 0x0e62a433
+0, 37, 37, 1, 152064, 0xf3648cc0
+0, 38, 38, 1, 152064, 0x69bc344b
+0, 39, 39, 1, 152064, 0x797eaafe
+0, 40, 40, 1, 152064, 0x722fbff8
+0, 41, 41, 1, 152064, 0xa8895582
+0, 42, 42, 1, 152064, 0xde1bcffb
+0, 43, 43, 1, 152064, 0xf558ed3f
+0, 44, 44, 1, 152064, 0xa5173e0e
+0, 45, 45, 1, 152064, 0x6872d018
+0, 46, 46, 1, 152064, 0x6af6c55d
+0, 47, 47, 1, 152064, 0x7c6b1f26
+0, 48, 48, 1, 152064, 0xa8086db3
+0, 49, 49, 1, 152064, 0x70b762e1
+0, 50, 50, 1, 152064, 0x85b7eb76
+0, 51, 51, 1, 152064, 0x3a4393f1
+0, 52, 52, 1, 152064, 0xdabdda42
+0, 53, 53, 1, 152064, 0xbb84b84c
+0, 54, 54, 1, 152064, 0xabe880d8
+0, 55, 55, 1, 152064, 0xe7303cc5
+0, 56, 56, 1, 152064, 0xecdcc142
+0, 57, 57, 1, 152064, 0x591118db
+0, 58, 58, 1, 152064, 0x37a715c6
+0, 59, 59, 1, 152064, 0x9106221e
+0, 60, 60, 1, 152064, 0xb1821a2e
+0, 61, 61, 1, 152064, 0x3adeccdb
+0, 62, 62, 1, 152064, 0xd4ac64a8
+0, 63, 63, 1, 152064, 0x8f34134f
+0, 64, 64, 1, 152064, 0x1f3cf03d
+0, 65, 65, 1, 152064, 0x7b5da3b0
+0, 66, 66, 1, 152064, 0x23f69e68
+0, 67, 67, 1, 152064, 0x67e62093
+0, 68, 68, 1, 152064, 0xf226d12e
+0, 69, 69, 1, 152064, 0x2eb08a1f
+0, 70, 70, 1, 152064, 0x5bb70c54
+0, 71, 71, 1, 152064, 0x2edb3578
+0, 72, 72, 1, 152064, 0x9d0c1b30
+0, 73, 73, 1, 152064, 0xd8266732
+0, 74, 74, 1, 152064, 0xad67cd45
+0, 75, 75, 1, 152064, 0x7a11d3cc
+0, 76, 76, 1, 152064, 0xac534ec1
+0, 77, 77, 1, 152064, 0x7ff6ba17
+0, 78, 78, 1, 152064, 0xf9741b77
+0, 79, 79, 1, 152064, 0x318d25fa
+0, 80, 80, 1, 152064, 0xff4ae686
+0, 81, 81, 1, 152064, 0x26a05ae2
+0, 82, 82, 1, 152064, 0x95619a34
+0, 83, 83, 1, 152064, 0xec2b1136
+0, 84, 84, 1, 152064, 0xf93ebeca
+0, 85, 85, 1, 152064, 0xd8237aaa
+0, 86, 86, 1, 152064, 0x1c362a05
+0, 87, 87, 1, 152064, 0x6fc74faa
+0, 88, 88, 1, 152064, 0x875e5b67
+0, 89, 89, 1, 152064, 0xc04093be
+0, 90, 90, 1, 152064, 0x4c2340a1
+0, 91, 91, 1, 152064, 0x7af99e63
+0, 92, 92, 1, 152064, 0xf5b89a4e
+0, 93, 93, 1, 152064, 0xb7759e48
+0, 94, 94, 1, 152064, 0x61a15c06
+0, 95, 95, 1, 152064, 0x91a5ae4c
+0, 96, 96, 1, 152064, 0x6aedf226
+0, 97, 97, 1, 152064, 0x870dbf36
+0, 98, 98, 1, 152064, 0x814d04a3
+0, 99, 99, 1, 152064, 0xd5a30892
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh2_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh2_b
new file mode 100644
index 0000000..ff12025
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh2_b
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x1668b41a
+0, 1, 1, 1, 152064, 0x953ca7fb
+0, 2, 2, 1, 152064, 0x3e38bc6e
+0, 3, 3, 1, 152064, 0x18dff6cc
+0, 4, 4, 1, 152064, 0x03105f7a
+0, 5, 5, 1, 152064, 0x6fe79efb
+0, 6, 6, 1, 152064, 0xbd4ccb6f
+0, 7, 7, 1, 152064, 0xaf398a10
+0, 8, 8, 1, 152064, 0x4f281075
+0, 9, 9, 1, 152064, 0x88f63791
+0, 10, 10, 1, 152064, 0x7500b606
+0, 11, 11, 1, 152064, 0xebebd6e6
+0, 12, 12, 1, 152064, 0x3ed7c35e
+0, 13, 13, 1, 152064, 0xc95826d6
+0, 14, 14, 1, 152064, 0x0989ab63
+0, 15, 15, 1, 152064, 0xddd5d22b
+0, 16, 16, 1, 152064, 0x11683b8a
+0, 17, 17, 1, 152064, 0x5ce36d50
+0, 18, 18, 1, 152064, 0xa5185ccf
+0, 19, 19, 1, 152064, 0xf47583b5
+0, 20, 20, 1, 152064, 0xac6e82b6
+0, 21, 21, 1, 152064, 0xf8dc25c0
+0, 22, 22, 1, 152064, 0x5a6aba8e
+0, 23, 23, 1, 152064, 0x43790f6d
+0, 24, 24, 1, 152064, 0x787c4377
+0, 25, 25, 1, 152064, 0xe6833159
+0, 26, 26, 1, 152064, 0xe5c21131
+0, 27, 27, 1, 152064, 0x16ae69bb
+0, 28, 28, 1, 152064, 0x754fcc9e
+0, 29, 29, 1, 152064, 0x71aaf1e1
+0, 30, 30, 1, 152064, 0xce9de9ee
+0, 31, 31, 1, 152064, 0x05e6d832
+0, 32, 32, 1, 152064, 0x5773b413
+0, 33, 33, 1, 152064, 0xe518881c
+0, 34, 34, 1, 152064, 0xe248bce9
+0, 35, 35, 1, 152064, 0x421e8c0d
+0, 36, 36, 1, 152064, 0x30135143
+0, 37, 37, 1, 152064, 0xf02347f4
+0, 38, 38, 1, 152064, 0x3fa71a0e
+0, 39, 39, 1, 152064, 0x2c14d955
+0, 40, 40, 1, 152064, 0x18b2d558
+0, 41, 41, 1, 152064, 0x54cb7fa2
+0, 42, 42, 1, 152064, 0x90ae2332
+0, 43, 43, 1, 152064, 0x7957129a
+0, 44, 44, 1, 152064, 0x6c9b463e
+0, 45, 45, 1, 152064, 0x8c44e126
+0, 46, 46, 1, 152064, 0xde3ba475
+0, 47, 47, 1, 152064, 0x9823e3ed
+0, 48, 48, 1, 152064, 0x3ce03b21
+0, 49, 49, 1, 152064, 0x930007a2
+0, 50, 50, 1, 152064, 0x6f94bf67
+0, 51, 51, 1, 152064, 0x3e113ce9
+0, 52, 52, 1, 152064, 0xa31c8828
+0, 53, 53, 1, 152064, 0xe65260e0
+0, 54, 54, 1, 152064, 0x4c612620
+0, 55, 55, 1, 152064, 0xdc41f17f
+0, 56, 56, 1, 152064, 0x6d3f6a84
+0, 57, 57, 1, 152064, 0xfb55e9e9
+0, 58, 58, 1, 152064, 0x21e2c8b5
+0, 59, 59, 1, 152064, 0x2d0939a9
+0, 60, 60, 1, 152064, 0xe1f422d2
+0, 61, 61, 1, 152064, 0xab0ad4a3
+0, 62, 62, 1, 152064, 0x948f46df
+0, 63, 63, 1, 152064, 0x61f50c16
+0, 64, 64, 1, 152064, 0x7f5edb05
+0, 65, 65, 1, 152064, 0x8d8c4782
+0, 66, 66, 1, 152064, 0xe8644529
+0, 67, 67, 1, 152064, 0x1e7ce779
+0, 68, 68, 1, 152064, 0x22f355a9
+0, 69, 69, 1, 152064, 0x4dd736d4
+0, 70, 70, 1, 152064, 0x3d968c63
+0, 71, 71, 1, 152064, 0xa629c711
+0, 72, 72, 1, 152064, 0xae87c4c6
+0, 73, 73, 1, 152064, 0xcd482dd2
+0, 74, 74, 1, 152064, 0x6bbbbd25
+0, 75, 75, 1, 152064, 0x4f0ad3d2
+0, 76, 76, 1, 152064, 0x66052e88
+0, 77, 77, 1, 152064, 0xa09dff03
+0, 78, 78, 1, 152064, 0xb3837263
+0, 79, 79, 1, 152064, 0x3c91fdde
+0, 80, 80, 1, 152064, 0x4d9309a9
+0, 81, 81, 1, 152064, 0x6b624164
+0, 82, 82, 1, 152064, 0xaa425ecb
+0, 83, 83, 1, 152064, 0x37aec7c9
+0, 84, 84, 1, 152064, 0xf4b3d359
+0, 85, 85, 1, 152064, 0x85d3af2b
+0, 86, 86, 1, 152064, 0xe5c1f190
+0, 87, 87, 1, 152064, 0x8cb00e09
+0, 88, 88, 1, 152064, 0x59406ebc
+0, 89, 89, 1, 152064, 0xd7ac351f
+0, 90, 90, 1, 152064, 0x998238b6
+0, 91, 91, 1, 152064, 0x8e89d064
+0, 92, 92, 1, 152064, 0x644223c5
+0, 93, 93, 1, 152064, 0x90ad366f
+0, 94, 94, 1, 152064, 0x40a12122
+0, 95, 95, 1, 152064, 0x3045024c
+0, 96, 96, 1, 152064, 0x58673cfb
+0, 97, 97, 1, 152064, 0x567cf1fe
+0, 98, 98, 1, 152064, 0x2d236e41
+0, 99, 99, 1, 152064, 0xc493577d
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh6 b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh6
new file mode 100644
index 0000000..c769038
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh6
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh7_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh7_b
new file mode 100644
index 0000000..519c346
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-freh7_b
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext01_jvc_d b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext01_jvc_d
new file mode 100644
index 0000000..b82151e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext01_jvc_d
@@ -0,0 +1,17 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x31bc935e
+0, 1, 1, 1, 152064, 0x501ea92a
+0, 2, 2, 1, 152064, 0x8b2f6ead
+0, 3, 3, 1, 152064, 0xa86277e3
+0, 4, 4, 1, 152064, 0xe5936250
+0, 5, 5, 1, 152064, 0x497794cb
+0, 6, 6, 1, 152064, 0xcb34c39a
+0, 7, 7, 1, 152064, 0xa739994d
+0, 8, 8, 1, 152064, 0x01e804b7
+0, 9, 9, 1, 152064, 0xfcf00627
+0, 10, 10, 1, 152064, 0xcd747bda
+0, 11, 11, 1, 152064, 0x1d979394
+0, 12, 12, 1, 152064, 0xd5d52a6a
+0, 13, 13, 1, 152064, 0xd7fb147b
+0, 14, 14, 1, 152064, 0x5d7cb44a
+0, 15, 15, 1, 152064, 0x9b87803b
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext02_jvc_c b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext02_jvc_c
new file mode 100644
index 0000000..b82151e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext02_jvc_c
@@ -0,0 +1,17 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x31bc935e
+0, 1, 1, 1, 152064, 0x501ea92a
+0, 2, 2, 1, 152064, 0x8b2f6ead
+0, 3, 3, 1, 152064, 0xa86277e3
+0, 4, 4, 1, 152064, 0xe5936250
+0, 5, 5, 1, 152064, 0x497794cb
+0, 6, 6, 1, 152064, 0xcb34c39a
+0, 7, 7, 1, 152064, 0xa739994d
+0, 8, 8, 1, 152064, 0x01e804b7
+0, 9, 9, 1, 152064, 0xfcf00627
+0, 10, 10, 1, 152064, 0xcd747bda
+0, 11, 11, 1, 152064, 0x1d979394
+0, 12, 12, 1, 152064, 0xd5d52a6a
+0, 13, 13, 1, 152064, 0xd7fb147b
+0, 14, 14, 1, 152064, 0x5d7cb44a
+0, 15, 15, 1, 152064, 0x9b87803b
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c
new file mode 100644
index 0000000..81748f7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xf9c30518
+0, 1, 1, 1, 152064, 0x509dd18f
+0, 2, 2, 1, 152064, 0x7f5c8f07
+0, 3, 3, 1, 152064, 0x8ce42210
+0, 4, 4, 1, 152064, 0x59fd527a
+0, 5, 5, 1, 152064, 0xd987ceea
+0, 6, 6, 1, 152064, 0xc53167fa
+0, 7, 7, 1, 152064, 0xb3179926
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
new file mode 100644
index 0000000..7c53b5c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
@@ -0,0 +1,16 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d
new file mode 100644
index 0000000..71b743e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d
@@ -0,0 +1,12 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xdd346292
+0, 1, 1, 1, 152064, 0xb07e6efd
+0, 2, 2, 1, 152064, 0x81b4d540
+0, 3, 3, 1, 152064, 0xc50066cf
+0, 4, 4, 1, 152064, 0x30a49588
+0, 5, 5, 1, 152064, 0x57520bfa
+0, 6, 6, 1, 152064, 0xc0409dd9
+0, 7, 7, 1, 152064, 0x8e6453e9
+0, 8, 8, 1, 152064, 0x7ca86d86
+0, 9, 9, 1, 152064, 0xf937b3b5
+0, 10, 10, 1, 152064, 0x6c1f4604
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
new file mode 100644
index 0000000..c0886e4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b
new file mode 100644
index 0000000..a964a38
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x24846654
+0, 1, 1, 1, 152064, 0xd33945be
+0, 2, 2, 1, 152064, 0x961cbbfb
+0, 3, 3, 1, 152064, 0x91eb854d
+0, 4, 4, 1, 152064, 0x998351b4
+0, 5, 5, 1, 152064, 0xe7515c67
+0, 6, 6, 1, 152064, 0xd32058ae
+0, 7, 7, 1, 152064, 0x99cb5695
+0, 8, 8, 1, 152064, 0x281de175
+0, 9, 9, 1, 152064, 0xf4146f55
+0, 10, 10, 1, 152064, 0x63abbb61
+0, 11, 11, 1, 152064, 0xf44550c5
+0, 12, 12, 1, 152064, 0x5797a5c2
+0, 13, 13, 1, 152064, 0x13b15c60
+0, 14, 14, 1, 152064, 0x6521e682
+0, 15, 15, 1, 152064, 0x780c32a4
+0, 16, 16, 1, 152064, 0x6289f37c
+0, 17, 17, 1, 152064, 0x96d64d81
+0, 18, 18, 1, 152064, 0x12ac80ef
+0, 19, 19, 1, 152064, 0x470956e4
+0, 20, 20, 1, 152064, 0x3954f944
+0, 21, 21, 1, 152064, 0x2147f0db
+0, 22, 22, 1, 152064, 0xca7c9a39
+0, 23, 23, 1, 152064, 0x727e7772
+0, 24, 24, 1, 152064, 0xb3b0f8c8
+0, 25, 25, 1, 152064, 0x6d6eb7ba
+0, 26, 26, 1, 152064, 0x1eaf5734
+0, 27, 27, 1, 152064, 0xd7938056
+0, 28, 28, 1, 152064, 0xcae1ead3
+0, 29, 29, 1, 152064, 0x6411b82c
+0, 30, 30, 1, 152064, 0x6f001718
+0, 31, 31, 1, 152064, 0x3724d9b8
+0, 32, 32, 1, 152064, 0x04501fec
+0, 33, 33, 1, 152064, 0x3f4d13bb
+0, 34, 34, 1, 152064, 0x38f2510a
+0, 35, 35, 1, 152064, 0x5bb71106
+0, 36, 36, 1, 152064, 0xe888b09d
+0, 37, 37, 1, 152064, 0xca6f5f6a
+0, 38, 38, 1, 152064, 0x01c7d329
+0, 39, 39, 1, 152064, 0x4e670932
+0, 40, 40, 1, 152064, 0x651b4984
+0, 41, 41, 1, 152064, 0x76371fa3
+0, 42, 42, 1, 152064, 0x60574af0
+0, 43, 43, 1, 152064, 0xcc1f2080
+0, 44, 44, 1, 152064, 0xdbf29eb6
+0, 45, 45, 1, 152064, 0x8ff870be
+0, 46, 46, 1, 152064, 0x5d39ea56
+0, 47, 47, 1, 152064, 0xabb7c0a5
+0, 48, 48, 1, 152064, 0xecb15771
+0, 49, 49, 1, 152064, 0x571ab1ae
+0, 50, 50, 1, 152064, 0xc0f22bad
+0, 51, 51, 1, 152064, 0x22e7593f
+0, 52, 52, 1, 152064, 0x3c3dee75
+0, 53, 53, 1, 152064, 0x1c80b995
+0, 54, 54, 1, 152064, 0x5ba442fa
+0, 55, 55, 1, 152064, 0xe2291c05
+0, 56, 56, 1, 152064, 0xa780b11e
+0, 57, 57, 1, 152064, 0x15bf83fa
+0, 58, 58, 1, 152064, 0x60fb7c11
+0, 59, 59, 1, 152064, 0x3fb8cee5
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
new file mode 100644
index 0000000..eb41d46
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c
new file mode 100644
index 0000000..285f057
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xd48c87b3
+0, 1, 1, 1, 152064, 0xb7a67f8f
+0, 2, 2, 1, 152064, 0x3c3f3c11
+0, 3, 3, 1, 152064, 0xc411af54
+0, 4, 4, 1, 152064, 0xde2efb95
+0, 5, 5, 1, 152064, 0xa4787125
+0, 6, 6, 1, 152064, 0x3c17085a
+0, 7, 7, 1, 152064, 0xee217266
+0, 8, 8, 1, 152064, 0xa23a8e9d
+0, 9, 9, 1, 152064, 0x70a06d90
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a
new file mode 100644
index 0000000..7149850
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xd5448f0e
+0, 1, 1, 1, 152064, 0x93d022ba
+0, 2, 2, 1, 152064, 0x1eaed76e
+0, 3, 3, 1, 152064, 0xbbd54f09
+0, 4, 4, 1, 152064, 0x175d6316
+0, 5, 5, 1, 152064, 0x15ede384
+0, 6, 6, 1, 152064, 0xb785e9ac
+0, 7, 7, 1, 152064, 0xdbbb4ee6
+0, 8, 8, 1, 152064, 0xaf27c827
+0, 9, 9, 1, 152064, 0xbf3eeed4
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a
new file mode 100644
index 0000000..2ec9dce
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xd5448f0e
+0, 1, 1, 1, 152064, 0x665e33b5
+0, 2, 2, 1, 152064, 0x6648e99d
+0, 3, 3, 1, 152064, 0xbbd54f09
+0, 4, 4, 1, 152064, 0x3dac7644
+0, 5, 5, 1, 152064, 0xe980f078
+0, 6, 6, 1, 152064, 0xb785e9ac
+0, 7, 7, 1, 152064, 0xa500630e
+0, 8, 8, 1, 152064, 0x6dade9b0
+0, 9, 9, 1, 152064, 0xbf3eeed4
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a
new file mode 100644
index 0000000..00af8ff
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xc7d8832d
+0, 1, 1, 1, 152064, 0x8d9ffc59
+0, 2, 2, 1, 152064, 0xaf3ea0d1
+0, 3, 3, 1, 152064, 0x6805671e
+0, 4, 4, 1, 152064, 0x49202ab8
+0, 5, 5, 1, 152064, 0x6b06b1ad
+0, 6, 6, 1, 152064, 0x909f3e4e
+0, 7, 7, 1, 152064, 0xa4ce28ec
+0, 8, 8, 1, 152064, 0xc3c5b8bc
+0, 9, 9, 1, 152064, 0x78744dac
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b
new file mode 100644
index 0000000..df85212
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x18f494ec
+0, 1, 1, 1, 152064, 0x7515e6d7
+0, 2, 2, 1, 152064, 0xaa8ee665
+0, 3, 3, 1, 152064, 0xa946e180
+0, 4, 4, 1, 152064, 0xd1467f7e
+0, 5, 5, 1, 152064, 0xd779f4c2
+0, 6, 6, 1, 152064, 0xed456fed
+0, 7, 7, 1, 152064, 0x4ca23a72
+0, 8, 8, 1, 152064, 0x26381cd2
+0, 9, 9, 1, 152064, 0x50df40fa
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr10_sony_b
new file mode 100644
index 0000000..244e546
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr13_sony_b
new file mode 100644
index 0000000..016abbc
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr1_sony_a
new file mode 100644
index 0000000..93a3aa4
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hi422fr6_sony_a
new file mode 100644
index 0000000..4141eee
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpca_brcm_c b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpca_brcm_c
new file mode 100644
index 0000000..d608d89
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpca_brcm_c
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x995bb4bd
+0, 1, 1, 1, 152064, 0xad287357
+0, 2, 2, 1, 152064, 0x38fa4661
+0, 3, 3, 1, 152064, 0x8aae73cf
+0, 4, 4, 1, 152064, 0x4a13eada
+0, 5, 5, 1, 152064, 0x48b33901
+0, 6, 6, 1, 152064, 0x011487bc
+0, 7, 7, 1, 152064, 0xd4ce1925
+0, 8, 8, 1, 152064, 0x5d679ddd
+0, 9, 9, 1, 152064, 0x276cd5cf
+0, 10, 10, 1, 152064, 0x99c625f0
+0, 11, 11, 1, 152064, 0xb2f756d1
+0, 12, 12, 1, 152064, 0xb19c2978
+0, 13, 13, 1, 152064, 0xdac0ff3c
+0, 14, 14, 1, 152064, 0x3c1c8d63
+0, 15, 15, 1, 152064, 0x818ea0a8
+0, 16, 16, 1, 152064, 0xa7c122a5
+0, 17, 17, 1, 152064, 0x67ad3519
+0, 18, 18, 1, 152064, 0xc81b2a88
+0, 19, 19, 1, 152064, 0x8ae6633e
+0, 20, 20, 1, 152064, 0xed945788
+0, 21, 21, 1, 152064, 0x4c740bcb
+0, 22, 22, 1, 152064, 0xd8408d09
+0, 23, 23, 1, 152064, 0xb710e8b8
+0, 24, 24, 1, 152064, 0xb8c647b9
+0, 25, 25, 1, 152064, 0x802b2e23
+0, 26, 26, 1, 152064, 0x30672529
+0, 27, 27, 1, 152064, 0x328a72b6
+0, 28, 28, 1, 152064, 0xeb6dbe94
+0, 29, 29, 1, 152064, 0x1c19dcc5
+0, 30, 30, 1, 152064, 0xfdc6b998
+0, 31, 31, 1, 152064, 0xf9e2cd80
+0, 32, 32, 1, 152064, 0x025eb15e
+0, 33, 33, 1, 152064, 0xfd998ad8
+0, 34, 34, 1, 152064, 0x8fdf736f
+0, 35, 35, 1, 152064, 0xa5a7554a
+0, 36, 36, 1, 152064, 0xcea63304
+0, 37, 37, 1, 152064, 0xcb28ec28
+0, 38, 38, 1, 152064, 0x92efb591
+0, 39, 39, 1, 152064, 0x0f2376c3
+0, 40, 40, 1, 152064, 0xe9cb5ecf
+0, 41, 41, 1, 152064, 0xcd2d0eba
+0, 42, 42, 1, 152064, 0xd57fe4fd
+0, 43, 43, 1, 152064, 0xc486ab8e
+0, 44, 44, 1, 152064, 0x01a1f709
+0, 45, 45, 1, 152064, 0x7ac5b13a
+0, 46, 46, 1, 152064, 0x6f519279
+0, 47, 47, 1, 152064, 0xfd7cd9a0
+0, 48, 48, 1, 152064, 0xfae649d2
+0, 49, 49, 1, 152064, 0x618507ca
+0, 50, 50, 1, 152064, 0xb177bc15
+0, 51, 51, 1, 152064, 0x6fa36854
+0, 52, 52, 1, 152064, 0xc13cb77d
+0, 53, 53, 1, 152064, 0x6d40cb01
+0, 54, 54, 1, 152064, 0xa3db96a2
+0, 55, 55, 1, 152064, 0xe5ba6c99
+0, 56, 56, 1, 152064, 0xca9ff3ee
+0, 57, 57, 1, 152064, 0x6c016c65
+0, 58, 58, 1, 152064, 0xdf93ed80
+0, 59, 59, 1, 152064, 0x93112ec8
+0, 60, 60, 1, 152064, 0x8ab3ea14
+0, 61, 61, 1, 152064, 0x02f5b891
+0, 62, 62, 1, 152064, 0xdafd562b
+0, 63, 63, 1, 152064, 0xa96a2bd7
+0, 64, 64, 1, 152064, 0xdff8bc68
+0, 65, 65, 1, 152064, 0x8d956b4b
+0, 66, 66, 1, 152064, 0xb4aeb960
+0, 67, 67, 1, 152064, 0x391cf0dd
+0, 68, 68, 1, 152064, 0x03137de9
+0, 69, 69, 1, 152064, 0x2bfa8c4b
+0, 70, 70, 1, 152064, 0xfb54d3a5
+0, 71, 71, 1, 152064, 0x650146e7
+0, 72, 72, 1, 152064, 0xd3a7765f
+0, 73, 73, 1, 152064, 0x49d72b90
+0, 74, 74, 1, 152064, 0xf089b357
+0, 75, 75, 1, 152064, 0x23a2be41
+0, 76, 76, 1, 152064, 0x2ea86592
+0, 77, 77, 1, 152064, 0x99d6f56b
+0, 78, 78, 1, 152064, 0xc2ca75b9
+0, 79, 79, 1, 152064, 0x390b7278
+0, 80, 80, 1, 152064, 0x0f6d1f1e
+0, 81, 81, 1, 152064, 0x79e2a3f4
+0, 82, 82, 1, 152064, 0x51d5e1da
+0, 83, 83, 1, 152064, 0xdb57419a
+0, 84, 84, 1, 152064, 0xf90a4153
+0, 85, 85, 1, 152064, 0xd192f6c6
+0, 86, 86, 1, 152064, 0x8cd3895a
+0, 87, 87, 1, 152064, 0x0d3ec577
+0, 88, 88, 1, 152064, 0x146e8492
+0, 89, 89, 1, 152064, 0xc9939c22
+0, 90, 90, 1, 152064, 0xf1f4275e
+0, 91, 91, 1, 152064, 0xb898eb35
+0, 92, 92, 1, 152064, 0xed315ee9
+0, 93, 93, 1, 152064, 0x9046b760
+0, 94, 94, 1, 152064, 0x599a736b
+0, 95, 95, 1, 152064, 0xaef20726
+0, 96, 96, 1, 152064, 0x0d136768
+0, 97, 97, 1, 152064, 0xfe4ed2a8
+0, 98, 98, 1, 152064, 0x5a85524b
+0, 99, 99, 1, 152064, 0x6d495dd2
+0, 100, 100, 1, 152064, 0x04bdb815
+0, 101, 101, 1, 152064, 0x28aae1c5
+0, 102, 102, 1, 152064, 0xc20bc8d9
+0, 103, 103, 1, 152064, 0xa33d9b41
+0, 104, 104, 1, 152064, 0x6269cb43
+0, 105, 105, 1, 152064, 0x4f81d636
+0, 106, 106, 1, 152064, 0xc6062166
+0, 107, 107, 1, 152064, 0xb027fbcc
+0, 108, 108, 1, 152064, 0x73a7a584
+0, 109, 109, 1, 152064, 0xf67e520a
+0, 110, 110, 1, 152064, 0x94eff023
+0, 111, 111, 1, 152064, 0xef1da8e5
+0, 112, 112, 1, 152064, 0x2d9ab411
+0, 113, 113, 1, 152064, 0xf0c39b5d
+0, 114, 114, 1, 152064, 0xb2374724
+0, 115, 115, 1, 152064, 0x939a5243
+0, 116, 116, 1, 152064, 0xee3438db
+0, 117, 117, 1, 152064, 0x7da04012
+0, 118, 118, 1, 152064, 0xac611668
+0, 119, 119, 1, 152064, 0xdce3062e
+0, 120, 120, 1, 152064, 0xb57cc00e
+0, 121, 121, 1, 152064, 0xaf96b59e
+0, 122, 122, 1, 152064, 0x56789c13
+0, 123, 123, 1, 152064, 0xb1f678b5
+0, 124, 124, 1, 152064, 0xb340b8c4
+0, 125, 125, 1, 152064, 0x86e6e304
+0, 126, 126, 1, 152064, 0xa056e037
+0, 127, 127, 1, 152064, 0x16885d27
+0, 128, 128, 1, 152064, 0x9c5ac065
+0, 129, 129, 1, 152064, 0x563d5335
+0, 130, 130, 1, 152064, 0x3ca71c1e
+0, 131, 131, 1, 152064, 0xad34e16c
+0, 132, 132, 1, 152064, 0x6d074b27
+0, 133, 133, 1, 152064, 0x9b1c4909
+0, 134, 134, 1, 152064, 0xdbced198
+0, 135, 135, 1, 152064, 0x8a0ded00
+0, 136, 136, 1, 152064, 0x5ffc209b
+0, 137, 137, 1, 152064, 0x47cfd269
+0, 138, 138, 1, 152064, 0xe3c0137e
+0, 139, 139, 1, 152064, 0xcb6a5e53
+0, 140, 140, 1, 152064, 0x87cec05f
+0, 141, 141, 1, 152064, 0x92721dd2
+0, 142, 142, 1, 152064, 0x3f7d7b3b
+0, 143, 143, 1, 152064, 0xd63ef417
+0, 144, 144, 1, 152064, 0xf8e4b05a
+0, 145, 145, 1, 152064, 0xb5dcb421
+0, 146, 146, 1, 152064, 0x53c96f6a
+0, 147, 147, 1, 152064, 0x24ae98a3
+0, 148, 148, 1, 152064, 0x2e9b5fff
+0, 149, 149, 1, 152064, 0x7795bf12
+0, 150, 150, 1, 152064, 0x499d37ca
+0, 151, 151, 1, 152064, 0xfe478487
+0, 152, 152, 1, 152064, 0xcd661afb
+0, 153, 153, 1, 152064, 0x44f8bf00
+0, 154, 154, 1, 152064, 0x90b67809
+0, 155, 155, 1, 152064, 0x8f5726d1
+0, 156, 156, 1, 152064, 0x2e3c39d5
+0, 157, 157, 1, 152064, 0x4b67c4e6
+0, 158, 158, 1, 152064, 0x9fecb7cf
+0, 159, 159, 1, 152064, 0x207766ea
+0, 160, 160, 1, 152064, 0x5846bf7b
+0, 161, 161, 1, 152064, 0x4237fba1
+0, 162, 162, 1, 152064, 0x983e0cbd
+0, 163, 163, 1, 152064, 0x6be100d1
+0, 164, 164, 1, 152064, 0x9d0beb8f
+0, 165, 165, 1, 152064, 0x234b82e7
+0, 166, 166, 1, 152064, 0x83fb5ef1
+0, 167, 167, 1, 152064, 0xf503dcb2
+0, 168, 168, 1, 152064, 0x031a27f2
+0, 169, 169, 1, 152064, 0x2f1abf24
+0, 170, 170, 1, 152064, 0x54d77010
+0, 171, 171, 1, 152064, 0x049fc0fc
+0, 172, 172, 1, 152064, 0x20f2f7e7
+0, 173, 173, 1, 152064, 0xc0d57467
+0, 174, 174, 1, 152064, 0xbe464eef
+0, 175, 175, 1, 152064, 0x035c9052
+0, 176, 176, 1, 152064, 0x91cba4fb
+0, 177, 177, 1, 152064, 0x11cdbbfb
+0, 178, 178, 1, 152064, 0xe61116d5
+0, 179, 179, 1, 152064, 0x16db46b8
+0, 180, 180, 1, 152064, 0x54f30d9f
+0, 181, 181, 1, 152064, 0x211a8d2d
+0, 182, 182, 1, 152064, 0x5a74a56b
+0, 183, 183, 1, 152064, 0x0ff4ba72
+0, 184, 184, 1, 152064, 0x4c398ad6
+0, 185, 185, 1, 152064, 0x830814f0
+0, 186, 186, 1, 152064, 0xa51f4bab
+0, 187, 187, 1, 152064, 0xf3460de6
+0, 188, 188, 1, 152064, 0x7e1979a1
+0, 189, 189, 1, 152064, 0x4b3ebb3a
+0, 190, 190, 1, 152064, 0x83d1f4f8
+0, 191, 191, 1, 152064, 0xfbf08683
+0, 192, 192, 1, 152064, 0x901c07ec
+0, 193, 193, 1, 152064, 0xbc2dc1c7
+0, 194, 194, 1, 152064, 0x6e646b3b
+0, 195, 195, 1, 152064, 0x51a25aab
+0, 196, 196, 1, 152064, 0xa042ab78
+0, 197, 197, 1, 152064, 0xb972af58
+0, 198, 198, 1, 152064, 0xcdca9568
+0, 199, 199, 1, 152064, 0x17b69d1c
+0, 200, 200, 1, 152064, 0x41c43ea2
+0, 201, 201, 1, 152064, 0x195fc7a0
+0, 202, 202, 1, 152064, 0xf4cec580
+0, 203, 203, 1, 152064, 0xb3b10936
+0, 204, 204, 1, 152064, 0x102bc2ec
+0, 205, 205, 1, 152064, 0xc99d4767
+0, 206, 206, 1, 152064, 0x60c745b0
+0, 207, 207, 1, 152064, 0x8176e0cf
+0, 208, 208, 1, 152064, 0xd47e69b5
+0, 209, 209, 1, 152064, 0xacce674c
+0, 210, 210, 1, 152064, 0x031b51f8
+0, 211, 211, 1, 152064, 0x0eb681ef
+0, 212, 212, 1, 152064, 0x0b69334b
+0, 213, 213, 1, 152064, 0xda819c1f
+0, 214, 214, 1, 152064, 0xa93f62d2
+0, 215, 215, 1, 152064, 0x51374db5
+0, 216, 216, 1, 152064, 0x885dccff
+0, 217, 217, 1, 152064, 0xd0780444
+0, 218, 218, 1, 152064, 0xa31733ca
+0, 219, 219, 1, 152064, 0x3f3de84e
+0, 220, 220, 1, 152064, 0x2af2b2c3
+0, 221, 221, 1, 152064, 0xa62dceae
+0, 222, 222, 1, 152064, 0xca1cffd1
+0, 223, 223, 1, 152064, 0x3c7d561b
+0, 224, 224, 1, 152064, 0xbc04130a
+0, 225, 225, 1, 152064, 0xbd2829ae
+0, 226, 226, 1, 152064, 0xdbbb9820
+0, 227, 227, 1, 152064, 0xfc3ef628
+0, 228, 228, 1, 152064, 0xd5da3ec3
+0, 229, 229, 1, 152064, 0x62d5fcc1
+0, 230, 230, 1, 152064, 0x455a8dae
+0, 231, 231, 1, 152064, 0x421c9147
+0, 232, 232, 1, 152064, 0x6a168484
+0, 233, 233, 1, 152064, 0x7ba15d32
+0, 234, 234, 1, 152064, 0xd089ed27
+0, 235, 235, 1, 152064, 0x8fc4d894
+0, 236, 236, 1, 152064, 0x99e47125
+0, 237, 237, 1, 152064, 0xf55dda68
+0, 238, 238, 1, 152064, 0x6bf06cf1
+0, 239, 239, 1, 152064, 0x7dc41a9d
+0, 240, 240, 1, 152064, 0x78b84019
+0, 241, 241, 1, 152064, 0x85ae8973
+0, 242, 242, 1, 152064, 0x7b7aeabe
+0, 243, 243, 1, 152064, 0xf9a8f6bf
+0, 244, 244, 1, 152064, 0xe195ddcd
+0, 245, 245, 1, 152064, 0x83edffe9
+0, 246, 246, 1, 152064, 0x59cce97a
+0, 247, 247, 1, 152064, 0x15268af1
+0, 248, 248, 1, 152064, 0x270cca95
+0, 249, 249, 1, 152064, 0x8bced1f9
+0, 250, 250, 1, 152064, 0x08ee5cec
+0, 251, 251, 1, 152064, 0x01e74f95
+0, 252, 252, 1, 152064, 0x7e19238f
+0, 253, 253, 1, 152064, 0x6bcb2b9d
+0, 254, 254, 1, 152064, 0x58111385
+0, 255, 255, 1, 152064, 0x6c7aa1f7
+0, 256, 256, 1, 152064, 0xb713a822
+0, 257, 257, 1, 152064, 0x1d645cee
+0, 258, 258, 1, 152064, 0x9c592969
+0, 259, 259, 1, 152064, 0x2472769e
+0, 260, 260, 1, 152064, 0x71b7a5ad
+0, 261, 261, 1, 152064, 0xc6bba1c6
+0, 262, 262, 1, 152064, 0x7351f305
+0, 263, 263, 1, 152064, 0x579edbba
+0, 264, 264, 1, 152064, 0x90eda919
+0, 265, 265, 1, 152064, 0x2833b10d
+0, 266, 266, 1, 152064, 0x4b967d65
+0, 267, 267, 1, 152064, 0x6e7d1702
+0, 268, 268, 1, 152064, 0x59dbcf5b
+0, 269, 269, 1, 152064, 0xa138847b
+0, 270, 270, 1, 152064, 0xb2414e8d
+0, 271, 271, 1, 152064, 0xb90497f6
+0, 272, 272, 1, 152064, 0xcd728159
+0, 273, 273, 1, 152064, 0x005d5bdd
+0, 274, 274, 1, 152064, 0x27c88fb6
+0, 275, 275, 1, 152064, 0x3ccb8a93
+0, 276, 276, 1, 152064, 0xc50256dd
+0, 277, 277, 1, 152064, 0x111e7dee
+0, 278, 278, 1, 152064, 0x259d4a5d
+0, 279, 279, 1, 152064, 0x9385148b
+0, 280, 280, 1, 152064, 0x74002ab0
+0, 281, 281, 1, 152064, 0xd2c74adc
+0, 282, 282, 1, 152064, 0x72854b2a
+0, 283, 283, 1, 152064, 0x638e5c08
+0, 284, 284, 1, 152064, 0x9626bbb3
+0, 285, 285, 1, 152064, 0xc107c18f
+0, 286, 286, 1, 152064, 0x8bd04578
+0, 287, 287, 1, 152064, 0xbcdb6db6
+0, 288, 288, 1, 152064, 0x9d0c81be
+0, 289, 289, 1, 152064, 0xf25106b6
+0, 290, 290, 1, 152064, 0x54c25254
+0, 291, 291, 1, 152064, 0x4bf74663
+0, 292, 292, 1, 152064, 0x0051b054
+0, 293, 293, 1, 152064, 0x5193d3d4
+0, 294, 294, 1, 152064, 0xb5d0d045
+0, 295, 295, 1, 152064, 0x350a31ca
+0, 296, 296, 1, 152064, 0xb8fb7264
+0, 297, 297, 1, 152064, 0x7fb97645
+0, 298, 298, 1, 152064, 0xcd948c41
+0, 299, 299, 1, 152064, 0x38c7570a
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b
new file mode 100644
index 0000000..49249b3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xf3c68dea
+0, 1, 1, 1, 152064, 0xf52d483f
+0, 2, 2, 1, 152064, 0x612f1792
+0, 3, 3, 1, 152064, 0x4df34726
+0, 4, 4, 1, 152064, 0xfed7c058
+0, 5, 5, 1, 152064, 0x2d48025c
+0, 6, 6, 1, 152064, 0x03544ab9
+0, 7, 7, 1, 152064, 0x20cadfc5
+0, 8, 8, 1, 152064, 0x7cd3672e
+0, 9, 9, 1, 152064, 0x5f2b9ede
+0, 10, 10, 1, 152064, 0xc0bbdf75
+0, 11, 11, 1, 152064, 0x95571e7c
+0, 12, 12, 1, 152064, 0x0d1afc5b
+0, 13, 13, 1, 152064, 0x9c91c11f
+0, 14, 14, 1, 152064, 0x73e667e4
+0, 15, 15, 1, 152064, 0xfb7f8892
+0, 16, 16, 1, 152064, 0x5707f566
+0, 17, 17, 1, 152064, 0x21032449
+0, 18, 18, 1, 152064, 0x199e20b7
+0, 19, 19, 1, 152064, 0x23213179
+0, 20, 20, 1, 152064, 0x29812daa
+0, 21, 21, 1, 152064, 0x04e3eb6b
+0, 22, 22, 1, 152064, 0xab206165
+0, 23, 23, 1, 152064, 0x392fbf7b
+0, 24, 24, 1, 152064, 0x137a1c6a
+0, 25, 25, 1, 152064, 0x9caff265
+0, 26, 26, 1, 152064, 0x6becf046
+0, 27, 27, 1, 152064, 0xfc2c3ba6
+0, 28, 28, 1, 152064, 0xcf4b9b4c
+0, 29, 29, 1, 152064, 0x4e2ebd37
+0, 30, 30, 1, 152064, 0xcd419daa
+0, 31, 31, 1, 152064, 0xe12294b0
+0, 32, 32, 1, 152064, 0x6bda7493
+0, 33, 33, 1, 152064, 0xefbf5d0b
+0, 34, 34, 1, 152064, 0x9500458a
+0, 35, 35, 1, 152064, 0x6b5d212e
+0, 36, 36, 1, 152064, 0xb928fc31
+0, 37, 37, 1, 152064, 0x64f2bb2f
+0, 38, 38, 1, 152064, 0xf93a724d
+0, 39, 39, 1, 152064, 0xdd0d32c0
+0, 40, 40, 1, 152064, 0xe1b51d95
+0, 41, 41, 1, 152064, 0xbb43d295
+0, 42, 42, 1, 152064, 0x6dcea069
+0, 43, 43, 1, 152064, 0x89d79805
+0, 44, 44, 1, 152064, 0x50b5dd43
+0, 45, 45, 1, 152064, 0xe3099e3f
+0, 46, 46, 1, 152064, 0x003b6ace
+0, 47, 47, 1, 152064, 0x2213b672
+0, 48, 48, 1, 152064, 0x5b273093
+0, 49, 49, 1, 152064, 0xdbfbd9bf
+0, 50, 50, 1, 152064, 0xf26b89d0
+0, 51, 51, 1, 152064, 0x1470527e
+0, 52, 52, 1, 152064, 0x0e668970
+0, 53, 53, 1, 152064, 0x00218692
+0, 54, 54, 1, 152064, 0xaabf79a8
+0, 55, 55, 1, 152064, 0xf68b4663
+0, 56, 56, 1, 152064, 0x4c08d01f
+0, 57, 57, 1, 152064, 0x48e75380
+0, 58, 58, 1, 152064, 0x4b8be58f
+0, 59, 59, 1, 152064, 0x8a6c1365
+0, 60, 60, 1, 152064, 0x9439ca02
+0, 61, 61, 1, 152064, 0x831d9855
+0, 62, 62, 1, 152064, 0xff031ffd
+0, 63, 63, 1, 152064, 0x3680f4bc
+0, 64, 64, 1, 152064, 0x794c95a4
+0, 65, 65, 1, 152064, 0x23e53349
+0, 66, 66, 1, 152064, 0x85307117
+0, 67, 67, 1, 152064, 0x0bc0bf5a
+0, 68, 68, 1, 152064, 0xc79f46c8
+0, 69, 69, 1, 152064, 0x48be4e21
+0, 70, 70, 1, 152064, 0x2ad89b4f
+0, 71, 71, 1, 152064, 0xd454f9a9
+0, 72, 72, 1, 152064, 0x64852f6d
+0, 73, 73, 1, 152064, 0xcb7b0c05
+0, 74, 74, 1, 152064, 0x4e108ced
+0, 75, 75, 1, 152064, 0xf5e5a37b
+0, 76, 76, 1, 152064, 0x224e29c7
+0, 77, 77, 1, 152064, 0xad90d3c2
+0, 78, 78, 1, 152064, 0x5ddb5d05
+0, 79, 79, 1, 152064, 0x4ebf4337
+0, 80, 80, 1, 152064, 0x7e2bfeed
+0, 81, 81, 1, 152064, 0x00e884c7
+0, 82, 82, 1, 152064, 0xa4f6a534
+0, 83, 83, 1, 152064, 0x622f1511
+0, 84, 84, 1, 152064, 0x8d99233d
+0, 85, 85, 1, 152064, 0x5910d02c
+0, 86, 86, 1, 152064, 0x20d6706c
+0, 87, 87, 1, 152064, 0x8e30a417
+0, 88, 88, 1, 152064, 0x180d745a
+0, 89, 89, 1, 152064, 0xc25189b9
+0, 90, 90, 1, 152064, 0x909101ad
+0, 91, 91, 1, 152064, 0x9967be1c
+0, 92, 92, 1, 152064, 0x72ff3206
+0, 93, 93, 1, 152064, 0x48d07f48
+0, 94, 94, 1, 152064, 0x7f8244b7
+0, 95, 95, 1, 152064, 0xf871e21e
+0, 96, 96, 1, 152064, 0xd4743610
+0, 97, 97, 1, 152064, 0xc2c7a7b1
+0, 98, 98, 1, 152064, 0x95be1a75
+0, 99, 99, 1, 152064, 0x44972b2e
+0, 100, 100, 1, 152064, 0xa6036c4f
+0, 101, 101, 1, 152064, 0xecdd8dd6
+0, 102, 102, 1, 152064, 0xbb7e8551
+0, 103, 103, 1, 152064, 0x42916e6c
+0, 104, 104, 1, 152064, 0x972db010
+0, 105, 105, 1, 152064, 0x80dab6a0
+0, 106, 106, 1, 152064, 0xc753ecdb
+0, 107, 107, 1, 152064, 0x0823bffa
+0, 108, 108, 1, 152064, 0x80876b2d
+0, 109, 109, 1, 152064, 0x4a8b2118
+0, 110, 110, 1, 152064, 0x0be2c13d
+0, 111, 111, 1, 152064, 0xa6966e4f
+0, 112, 112, 1, 152064, 0xf6a57650
+0, 113, 113, 1, 152064, 0x49d66fd4
+0, 114, 114, 1, 152064, 0x21d92047
+0, 115, 115, 1, 152064, 0x155f20a8
+0, 116, 116, 1, 152064, 0x5ab90c1d
+0, 117, 117, 1, 152064, 0xa0c31337
+0, 118, 118, 1, 152064, 0xd20de1d6
+0, 119, 119, 1, 152064, 0x300ad916
+0, 120, 120, 1, 152064, 0xbcb89eb5
+0, 121, 121, 1, 152064, 0x08759342
+0, 122, 122, 1, 152064, 0xa5d06e72
+0, 123, 123, 1, 152064, 0x3b4c537f
+0, 124, 124, 1, 152064, 0x7f48912b
+0, 125, 125, 1, 152064, 0x200dbd1f
+0, 126, 126, 1, 152064, 0x918abfde
+0, 127, 127, 1, 152064, 0xd8072cdf
+0, 128, 128, 1, 152064, 0x89d2902b
+0, 129, 129, 1, 152064, 0xcd2e2e3c
+0, 130, 130, 1, 152064, 0xf343e4a2
+0, 131, 131, 1, 152064, 0xc424acad
+0, 132, 132, 1, 152064, 0xf71e3031
+0, 133, 133, 1, 152064, 0xf1bc1179
+0, 134, 134, 1, 152064, 0x9af58d24
+0, 135, 135, 1, 152064, 0x48a4d01e
+0, 136, 136, 1, 152064, 0xcf24f721
+0, 137, 137, 1, 152064, 0x5bc7b4f3
+0, 138, 138, 1, 152064, 0x8763fc59
+0, 139, 139, 1, 152064, 0xb6954051
+0, 140, 140, 1, 152064, 0x044ba446
+0, 141, 141, 1, 152064, 0xdaaaee7e
+0, 142, 142, 1, 152064, 0x8eac550d
+0, 143, 143, 1, 152064, 0x5191d08c
+0, 144, 144, 1, 152064, 0x3cd76d43
+0, 145, 145, 1, 152064, 0xf01f8fa9
+0, 146, 146, 1, 152064, 0x0e283e9b
+0, 147, 147, 1, 152064, 0x7cef69ee
+0, 148, 148, 1, 152064, 0xc8e332bc
+0, 149, 149, 1, 152064, 0x5b1aa484
+0, 150, 150, 1, 152064, 0x3975234f
+0, 151, 151, 1, 152064, 0x52b8661e
+0, 152, 152, 1, 152064, 0xb4b8fed8
+0, 153, 153, 1, 152064, 0x5aff9f70
+0, 154, 154, 1, 152064, 0x7b575735
+0, 155, 155, 1, 152064, 0x77d51523
+0, 156, 156, 1, 152064, 0xf5131eba
+0, 157, 157, 1, 152064, 0x4bd2b1ad
+0, 158, 158, 1, 152064, 0xccfc8dca
+0, 159, 159, 1, 152064, 0xcf245472
+0, 160, 160, 1, 152064, 0xe055adf5
+0, 161, 161, 1, 152064, 0x2a90e171
+0, 162, 162, 1, 152064, 0x1bd8ea64
+0, 163, 163, 1, 152064, 0x32f1d794
+0, 164, 164, 1, 152064, 0xc938c42a
+0, 165, 165, 1, 152064, 0x12b5644f
+0, 166, 166, 1, 152064, 0x99003711
+0, 167, 167, 1, 152064, 0xaecfad1c
+0, 168, 168, 1, 152064, 0x94b00ae1
+0, 169, 169, 1, 152064, 0xbb4f982f
+0, 170, 170, 1, 152064, 0x6f7f5dc1
+0, 171, 171, 1, 152064, 0x7be7c2cb
+0, 172, 172, 1, 152064, 0x3b2ee4d3
+0, 173, 173, 1, 152064, 0xc75f5666
+0, 174, 174, 1, 152064, 0xff7a3ede
+0, 175, 175, 1, 152064, 0x55866b59
+0, 176, 176, 1, 152064, 0x408b8455
+0, 177, 177, 1, 152064, 0x96c4ab66
+0, 178, 178, 1, 152064, 0x1d87f575
+0, 179, 179, 1, 152064, 0x3a3b17ac
+0, 180, 180, 1, 152064, 0x9c99e591
+0, 181, 181, 1, 152064, 0xc1fc663d
+0, 182, 182, 1, 152064, 0x17b982dd
+0, 183, 183, 1, 152064, 0x24fe9dad
+0, 184, 184, 1, 152064, 0xea8760ee
+0, 185, 185, 1, 152064, 0x23dcefad
+0, 186, 186, 1, 152064, 0xee6d23f0
+0, 187, 187, 1, 152064, 0xfddc1962
+0, 188, 188, 1, 152064, 0xb23190df
+0, 189, 189, 1, 152064, 0xf066a595
+0, 190, 190, 1, 152064, 0x2200fef8
+0, 191, 191, 1, 152064, 0x5491ab2f
+0, 192, 192, 1, 152064, 0xea93fa58
+0, 193, 193, 1, 152064, 0x3e13d4f4
+0, 194, 194, 1, 152064, 0x3dda841d
+0, 195, 195, 1, 152064, 0xfc243577
+0, 196, 196, 1, 152064, 0xca4a9127
+0, 197, 197, 1, 152064, 0x41908ec0
+0, 198, 198, 1, 152064, 0x10a758bd
+0, 199, 199, 1, 152064, 0x6a849e5b
+0, 200, 200, 1, 152064, 0xb55a1f2b
+0, 201, 201, 1, 152064, 0x2bfe9627
+0, 202, 202, 1, 152064, 0x2bfca28c
+0, 203, 203, 1, 152064, 0xd166f336
+0, 204, 204, 1, 152064, 0x9facb32b
+0, 205, 205, 1, 152064, 0x6a672475
+0, 206, 206, 1, 152064, 0xc7b219cf
+0, 207, 207, 1, 152064, 0x2b43ca53
+0, 208, 208, 1, 152064, 0x43b542c4
+0, 209, 209, 1, 152064, 0xdc654337
+0, 210, 210, 1, 152064, 0x68003d7c
+0, 211, 211, 1, 152064, 0x3cb85724
+0, 212, 212, 1, 152064, 0x422701c2
+0, 213, 213, 1, 152064, 0x1c667870
+0, 214, 214, 1, 152064, 0x75ef3230
+0, 215, 215, 1, 152064, 0x0ac82643
+0, 216, 216, 1, 152064, 0x3eb3a0be
+0, 217, 217, 1, 152064, 0x482bd77e
+0, 218, 218, 1, 152064, 0xd3ce1171
+0, 219, 219, 1, 152064, 0xeaefc7e4
+0, 220, 220, 1, 152064, 0xa9c67939
+0, 221, 221, 1, 152064, 0x0af0a25b
+0, 222, 222, 1, 152064, 0xd094d95a
+0, 223, 223, 1, 152064, 0xfda42fc6
+0, 224, 224, 1, 152064, 0x4669f952
+0, 225, 225, 1, 152064, 0x52d40e98
+0, 226, 226, 1, 152064, 0x27c36cd1
+0, 227, 227, 1, 152064, 0xa103b6ce
+0, 228, 228, 1, 152064, 0x2be9026d
+0, 229, 229, 1, 152064, 0x2f4ecc59
+0, 230, 230, 1, 152064, 0x53144cef
+0, 231, 231, 1, 152064, 0x15d54fc9
+0, 232, 232, 1, 152064, 0x7e302db7
+0, 233, 233, 1, 152064, 0x82521901
+0, 234, 234, 1, 152064, 0x1123cdb6
+0, 235, 235, 1, 152064, 0x3185878a
+0, 236, 236, 1, 152064, 0xbb294983
+0, 237, 237, 1, 152064, 0x83d9fe66
+0, 238, 238, 1, 152064, 0xede9fb08
+0, 239, 239, 1, 152064, 0xa543b551
+0, 240, 240, 1, 152064, 0x39e82734
+0, 241, 241, 1, 152064, 0xd0447fb5
+0, 242, 242, 1, 152064, 0x8cc6f502
+0, 243, 243, 1, 152064, 0xda8d1da8
+0, 244, 244, 1, 152064, 0xcafdccca
+0, 245, 245, 1, 152064, 0xbf0e04f4
+0, 246, 246, 1, 152064, 0x0c6eefec
+0, 247, 247, 1, 152064, 0xb9026d39
+0, 248, 248, 1, 152064, 0x0121a7a8
+0, 249, 249, 1, 152064, 0x453ebbc6
+0, 250, 250, 1, 152064, 0x14ae15e3
+0, 251, 251, 1, 152064, 0x51d618e1
+0, 252, 252, 1, 152064, 0x2254f452
+0, 253, 253, 1, 152064, 0x8c360633
+0, 254, 254, 1, 152064, 0x8704d9bc
+0, 255, 255, 1, 152064, 0xe5d48301
+0, 256, 256, 1, 152064, 0xf25b7b3f
+0, 257, 257, 1, 152064, 0xd2ad3b73
+0, 258, 258, 1, 152064, 0x53db0387
+0, 259, 259, 1, 152064, 0x2486341c
+0, 260, 260, 1, 152064, 0x4a24570b
+0, 261, 261, 1, 152064, 0x0694620a
+0, 262, 262, 1, 152064, 0xbbc2a302
+0, 263, 263, 1, 152064, 0x08ad9c02
+0, 264, 264, 1, 152064, 0x601a63ab
+0, 265, 265, 1, 152064, 0xe4234a48
+0, 266, 266, 1, 152064, 0x07702235
+0, 267, 267, 1, 152064, 0x719dbecf
+0, 268, 268, 1, 152064, 0xf301a7ad
+0, 269, 269, 1, 152064, 0xf15c70c3
+0, 270, 270, 1, 152064, 0x0ab93386
+0, 271, 271, 1, 152064, 0x99c05adb
+0, 272, 272, 1, 152064, 0x9ed43530
+0, 273, 273, 1, 152064, 0xa2f62122
+0, 274, 274, 1, 152064, 0xf16f4525
+0, 275, 275, 1, 152064, 0xa3403b4a
+0, 276, 276, 1, 152064, 0x95521096
+0, 277, 277, 1, 152064, 0x0d412988
+0, 278, 278, 1, 152064, 0x829e080a
+0, 279, 279, 1, 152064, 0x0805c1b5
+0, 280, 280, 1, 152064, 0xa136be48
+0, 281, 281, 1, 152064, 0x0f8de228
+0, 282, 282, 1, 152064, 0x272cf2d3
+0, 283, 283, 1, 152064, 0xa1df2a5e
+0, 284, 284, 1, 152064, 0xf9db8350
+0, 285, 285, 1, 152064, 0x5536997d
+0, 286, 286, 1, 152064, 0xab83e81e
+0, 287, 287, 1, 152064, 0xec791b49
+0, 288, 288, 1, 152064, 0x04d03e19
+0, 289, 289, 1, 152064, 0xd6a2bd21
+0, 290, 290, 1, 152064, 0x2d35f0aa
+0, 291, 291, 1, 152064, 0x137bf715
+0, 292, 292, 1, 152064, 0x56ef5ae1
+0, 293, 293, 1, 152064, 0x9bb5821e
+0, 294, 294, 1, 152064, 0x533c7fff
+0, 295, 295, 1, 152064, 0x469ad380
+0, 296, 296, 1, 152064, 0x75710e84
+0, 297, 297, 1, 152064, 0xbbd72551
+0, 298, 298, 1, 152064, 0xf1137026
+0, 299, 299, 1, 152064, 0x6238412b
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
new file mode 100644
index 0000000..dbfec43
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
new file mode 100644
index 0000000..65a366e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b
new file mode 100644
index 0000000..49249b3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xf3c68dea
+0, 1, 1, 1, 152064, 0xf52d483f
+0, 2, 2, 1, 152064, 0x612f1792
+0, 3, 3, 1, 152064, 0x4df34726
+0, 4, 4, 1, 152064, 0xfed7c058
+0, 5, 5, 1, 152064, 0x2d48025c
+0, 6, 6, 1, 152064, 0x03544ab9
+0, 7, 7, 1, 152064, 0x20cadfc5
+0, 8, 8, 1, 152064, 0x7cd3672e
+0, 9, 9, 1, 152064, 0x5f2b9ede
+0, 10, 10, 1, 152064, 0xc0bbdf75
+0, 11, 11, 1, 152064, 0x95571e7c
+0, 12, 12, 1, 152064, 0x0d1afc5b
+0, 13, 13, 1, 152064, 0x9c91c11f
+0, 14, 14, 1, 152064, 0x73e667e4
+0, 15, 15, 1, 152064, 0xfb7f8892
+0, 16, 16, 1, 152064, 0x5707f566
+0, 17, 17, 1, 152064, 0x21032449
+0, 18, 18, 1, 152064, 0x199e20b7
+0, 19, 19, 1, 152064, 0x23213179
+0, 20, 20, 1, 152064, 0x29812daa
+0, 21, 21, 1, 152064, 0x04e3eb6b
+0, 22, 22, 1, 152064, 0xab206165
+0, 23, 23, 1, 152064, 0x392fbf7b
+0, 24, 24, 1, 152064, 0x137a1c6a
+0, 25, 25, 1, 152064, 0x9caff265
+0, 26, 26, 1, 152064, 0x6becf046
+0, 27, 27, 1, 152064, 0xfc2c3ba6
+0, 28, 28, 1, 152064, 0xcf4b9b4c
+0, 29, 29, 1, 152064, 0x4e2ebd37
+0, 30, 30, 1, 152064, 0xcd419daa
+0, 31, 31, 1, 152064, 0xe12294b0
+0, 32, 32, 1, 152064, 0x6bda7493
+0, 33, 33, 1, 152064, 0xefbf5d0b
+0, 34, 34, 1, 152064, 0x9500458a
+0, 35, 35, 1, 152064, 0x6b5d212e
+0, 36, 36, 1, 152064, 0xb928fc31
+0, 37, 37, 1, 152064, 0x64f2bb2f
+0, 38, 38, 1, 152064, 0xf93a724d
+0, 39, 39, 1, 152064, 0xdd0d32c0
+0, 40, 40, 1, 152064, 0xe1b51d95
+0, 41, 41, 1, 152064, 0xbb43d295
+0, 42, 42, 1, 152064, 0x6dcea069
+0, 43, 43, 1, 152064, 0x89d79805
+0, 44, 44, 1, 152064, 0x50b5dd43
+0, 45, 45, 1, 152064, 0xe3099e3f
+0, 46, 46, 1, 152064, 0x003b6ace
+0, 47, 47, 1, 152064, 0x2213b672
+0, 48, 48, 1, 152064, 0x5b273093
+0, 49, 49, 1, 152064, 0xdbfbd9bf
+0, 50, 50, 1, 152064, 0xf26b89d0
+0, 51, 51, 1, 152064, 0x1470527e
+0, 52, 52, 1, 152064, 0x0e668970
+0, 53, 53, 1, 152064, 0x00218692
+0, 54, 54, 1, 152064, 0xaabf79a8
+0, 55, 55, 1, 152064, 0xf68b4663
+0, 56, 56, 1, 152064, 0x4c08d01f
+0, 57, 57, 1, 152064, 0x48e75380
+0, 58, 58, 1, 152064, 0x4b8be58f
+0, 59, 59, 1, 152064, 0x8a6c1365
+0, 60, 60, 1, 152064, 0x9439ca02
+0, 61, 61, 1, 152064, 0x831d9855
+0, 62, 62, 1, 152064, 0xff031ffd
+0, 63, 63, 1, 152064, 0x3680f4bc
+0, 64, 64, 1, 152064, 0x794c95a4
+0, 65, 65, 1, 152064, 0x23e53349
+0, 66, 66, 1, 152064, 0x85307117
+0, 67, 67, 1, 152064, 0x0bc0bf5a
+0, 68, 68, 1, 152064, 0xc79f46c8
+0, 69, 69, 1, 152064, 0x48be4e21
+0, 70, 70, 1, 152064, 0x2ad89b4f
+0, 71, 71, 1, 152064, 0xd454f9a9
+0, 72, 72, 1, 152064, 0x64852f6d
+0, 73, 73, 1, 152064, 0xcb7b0c05
+0, 74, 74, 1, 152064, 0x4e108ced
+0, 75, 75, 1, 152064, 0xf5e5a37b
+0, 76, 76, 1, 152064, 0x224e29c7
+0, 77, 77, 1, 152064, 0xad90d3c2
+0, 78, 78, 1, 152064, 0x5ddb5d05
+0, 79, 79, 1, 152064, 0x4ebf4337
+0, 80, 80, 1, 152064, 0x7e2bfeed
+0, 81, 81, 1, 152064, 0x00e884c7
+0, 82, 82, 1, 152064, 0xa4f6a534
+0, 83, 83, 1, 152064, 0x622f1511
+0, 84, 84, 1, 152064, 0x8d99233d
+0, 85, 85, 1, 152064, 0x5910d02c
+0, 86, 86, 1, 152064, 0x20d6706c
+0, 87, 87, 1, 152064, 0x8e30a417
+0, 88, 88, 1, 152064, 0x180d745a
+0, 89, 89, 1, 152064, 0xc25189b9
+0, 90, 90, 1, 152064, 0x909101ad
+0, 91, 91, 1, 152064, 0x9967be1c
+0, 92, 92, 1, 152064, 0x72ff3206
+0, 93, 93, 1, 152064, 0x48d07f48
+0, 94, 94, 1, 152064, 0x7f8244b7
+0, 95, 95, 1, 152064, 0xf871e21e
+0, 96, 96, 1, 152064, 0xd4743610
+0, 97, 97, 1, 152064, 0xc2c7a7b1
+0, 98, 98, 1, 152064, 0x95be1a75
+0, 99, 99, 1, 152064, 0x44972b2e
+0, 100, 100, 1, 152064, 0xa6036c4f
+0, 101, 101, 1, 152064, 0xecdd8dd6
+0, 102, 102, 1, 152064, 0xbb7e8551
+0, 103, 103, 1, 152064, 0x42916e6c
+0, 104, 104, 1, 152064, 0x972db010
+0, 105, 105, 1, 152064, 0x80dab6a0
+0, 106, 106, 1, 152064, 0xc753ecdb
+0, 107, 107, 1, 152064, 0x0823bffa
+0, 108, 108, 1, 152064, 0x80876b2d
+0, 109, 109, 1, 152064, 0x4a8b2118
+0, 110, 110, 1, 152064, 0x0be2c13d
+0, 111, 111, 1, 152064, 0xa6966e4f
+0, 112, 112, 1, 152064, 0xf6a57650
+0, 113, 113, 1, 152064, 0x49d66fd4
+0, 114, 114, 1, 152064, 0x21d92047
+0, 115, 115, 1, 152064, 0x155f20a8
+0, 116, 116, 1, 152064, 0x5ab90c1d
+0, 117, 117, 1, 152064, 0xa0c31337
+0, 118, 118, 1, 152064, 0xd20de1d6
+0, 119, 119, 1, 152064, 0x300ad916
+0, 120, 120, 1, 152064, 0xbcb89eb5
+0, 121, 121, 1, 152064, 0x08759342
+0, 122, 122, 1, 152064, 0xa5d06e72
+0, 123, 123, 1, 152064, 0x3b4c537f
+0, 124, 124, 1, 152064, 0x7f48912b
+0, 125, 125, 1, 152064, 0x200dbd1f
+0, 126, 126, 1, 152064, 0x918abfde
+0, 127, 127, 1, 152064, 0xd8072cdf
+0, 128, 128, 1, 152064, 0x89d2902b
+0, 129, 129, 1, 152064, 0xcd2e2e3c
+0, 130, 130, 1, 152064, 0xf343e4a2
+0, 131, 131, 1, 152064, 0xc424acad
+0, 132, 132, 1, 152064, 0xf71e3031
+0, 133, 133, 1, 152064, 0xf1bc1179
+0, 134, 134, 1, 152064, 0x9af58d24
+0, 135, 135, 1, 152064, 0x48a4d01e
+0, 136, 136, 1, 152064, 0xcf24f721
+0, 137, 137, 1, 152064, 0x5bc7b4f3
+0, 138, 138, 1, 152064, 0x8763fc59
+0, 139, 139, 1, 152064, 0xb6954051
+0, 140, 140, 1, 152064, 0x044ba446
+0, 141, 141, 1, 152064, 0xdaaaee7e
+0, 142, 142, 1, 152064, 0x8eac550d
+0, 143, 143, 1, 152064, 0x5191d08c
+0, 144, 144, 1, 152064, 0x3cd76d43
+0, 145, 145, 1, 152064, 0xf01f8fa9
+0, 146, 146, 1, 152064, 0x0e283e9b
+0, 147, 147, 1, 152064, 0x7cef69ee
+0, 148, 148, 1, 152064, 0xc8e332bc
+0, 149, 149, 1, 152064, 0x5b1aa484
+0, 150, 150, 1, 152064, 0x3975234f
+0, 151, 151, 1, 152064, 0x52b8661e
+0, 152, 152, 1, 152064, 0xb4b8fed8
+0, 153, 153, 1, 152064, 0x5aff9f70
+0, 154, 154, 1, 152064, 0x7b575735
+0, 155, 155, 1, 152064, 0x77d51523
+0, 156, 156, 1, 152064, 0xf5131eba
+0, 157, 157, 1, 152064, 0x4bd2b1ad
+0, 158, 158, 1, 152064, 0xccfc8dca
+0, 159, 159, 1, 152064, 0xcf245472
+0, 160, 160, 1, 152064, 0xe055adf5
+0, 161, 161, 1, 152064, 0x2a90e171
+0, 162, 162, 1, 152064, 0x1bd8ea64
+0, 163, 163, 1, 152064, 0x32f1d794
+0, 164, 164, 1, 152064, 0xc938c42a
+0, 165, 165, 1, 152064, 0x12b5644f
+0, 166, 166, 1, 152064, 0x99003711
+0, 167, 167, 1, 152064, 0xaecfad1c
+0, 168, 168, 1, 152064, 0x94b00ae1
+0, 169, 169, 1, 152064, 0xbb4f982f
+0, 170, 170, 1, 152064, 0x6f7f5dc1
+0, 171, 171, 1, 152064, 0x7be7c2cb
+0, 172, 172, 1, 152064, 0x3b2ee4d3
+0, 173, 173, 1, 152064, 0xc75f5666
+0, 174, 174, 1, 152064, 0xff7a3ede
+0, 175, 175, 1, 152064, 0x55866b59
+0, 176, 176, 1, 152064, 0x408b8455
+0, 177, 177, 1, 152064, 0x96c4ab66
+0, 178, 178, 1, 152064, 0x1d87f575
+0, 179, 179, 1, 152064, 0x3a3b17ac
+0, 180, 180, 1, 152064, 0x9c99e591
+0, 181, 181, 1, 152064, 0xc1fc663d
+0, 182, 182, 1, 152064, 0x17b982dd
+0, 183, 183, 1, 152064, 0x24fe9dad
+0, 184, 184, 1, 152064, 0xea8760ee
+0, 185, 185, 1, 152064, 0x23dcefad
+0, 186, 186, 1, 152064, 0xee6d23f0
+0, 187, 187, 1, 152064, 0xfddc1962
+0, 188, 188, 1, 152064, 0xb23190df
+0, 189, 189, 1, 152064, 0xf066a595
+0, 190, 190, 1, 152064, 0x2200fef8
+0, 191, 191, 1, 152064, 0x5491ab2f
+0, 192, 192, 1, 152064, 0xea93fa58
+0, 193, 193, 1, 152064, 0x3e13d4f4
+0, 194, 194, 1, 152064, 0x3dda841d
+0, 195, 195, 1, 152064, 0xfc243577
+0, 196, 196, 1, 152064, 0xca4a9127
+0, 197, 197, 1, 152064, 0x41908ec0
+0, 198, 198, 1, 152064, 0x10a758bd
+0, 199, 199, 1, 152064, 0x6a849e5b
+0, 200, 200, 1, 152064, 0xb55a1f2b
+0, 201, 201, 1, 152064, 0x2bfe9627
+0, 202, 202, 1, 152064, 0x2bfca28c
+0, 203, 203, 1, 152064, 0xd166f336
+0, 204, 204, 1, 152064, 0x9facb32b
+0, 205, 205, 1, 152064, 0x6a672475
+0, 206, 206, 1, 152064, 0xc7b219cf
+0, 207, 207, 1, 152064, 0x2b43ca53
+0, 208, 208, 1, 152064, 0x43b542c4
+0, 209, 209, 1, 152064, 0xdc654337
+0, 210, 210, 1, 152064, 0x68003d7c
+0, 211, 211, 1, 152064, 0x3cb85724
+0, 212, 212, 1, 152064, 0x422701c2
+0, 213, 213, 1, 152064, 0x1c667870
+0, 214, 214, 1, 152064, 0x75ef3230
+0, 215, 215, 1, 152064, 0x0ac82643
+0, 216, 216, 1, 152064, 0x3eb3a0be
+0, 217, 217, 1, 152064, 0x482bd77e
+0, 218, 218, 1, 152064, 0xd3ce1171
+0, 219, 219, 1, 152064, 0xeaefc7e4
+0, 220, 220, 1, 152064, 0xa9c67939
+0, 221, 221, 1, 152064, 0x0af0a25b
+0, 222, 222, 1, 152064, 0xd094d95a
+0, 223, 223, 1, 152064, 0xfda42fc6
+0, 224, 224, 1, 152064, 0x4669f952
+0, 225, 225, 1, 152064, 0x52d40e98
+0, 226, 226, 1, 152064, 0x27c36cd1
+0, 227, 227, 1, 152064, 0xa103b6ce
+0, 228, 228, 1, 152064, 0x2be9026d
+0, 229, 229, 1, 152064, 0x2f4ecc59
+0, 230, 230, 1, 152064, 0x53144cef
+0, 231, 231, 1, 152064, 0x15d54fc9
+0, 232, 232, 1, 152064, 0x7e302db7
+0, 233, 233, 1, 152064, 0x82521901
+0, 234, 234, 1, 152064, 0x1123cdb6
+0, 235, 235, 1, 152064, 0x3185878a
+0, 236, 236, 1, 152064, 0xbb294983
+0, 237, 237, 1, 152064, 0x83d9fe66
+0, 238, 238, 1, 152064, 0xede9fb08
+0, 239, 239, 1, 152064, 0xa543b551
+0, 240, 240, 1, 152064, 0x39e82734
+0, 241, 241, 1, 152064, 0xd0447fb5
+0, 242, 242, 1, 152064, 0x8cc6f502
+0, 243, 243, 1, 152064, 0xda8d1da8
+0, 244, 244, 1, 152064, 0xcafdccca
+0, 245, 245, 1, 152064, 0xbf0e04f4
+0, 246, 246, 1, 152064, 0x0c6eefec
+0, 247, 247, 1, 152064, 0xb9026d39
+0, 248, 248, 1, 152064, 0x0121a7a8
+0, 249, 249, 1, 152064, 0x453ebbc6
+0, 250, 250, 1, 152064, 0x14ae15e3
+0, 251, 251, 1, 152064, 0x51d618e1
+0, 252, 252, 1, 152064, 0x2254f452
+0, 253, 253, 1, 152064, 0x8c360633
+0, 254, 254, 1, 152064, 0x8704d9bc
+0, 255, 255, 1, 152064, 0xe5d48301
+0, 256, 256, 1, 152064, 0xf25b7b3f
+0, 257, 257, 1, 152064, 0xd2ad3b73
+0, 258, 258, 1, 152064, 0x53db0387
+0, 259, 259, 1, 152064, 0x2486341c
+0, 260, 260, 1, 152064, 0x4a24570b
+0, 261, 261, 1, 152064, 0x0694620a
+0, 262, 262, 1, 152064, 0xbbc2a302
+0, 263, 263, 1, 152064, 0x08ad9c02
+0, 264, 264, 1, 152064, 0x601a63ab
+0, 265, 265, 1, 152064, 0xe4234a48
+0, 266, 266, 1, 152064, 0x07702235
+0, 267, 267, 1, 152064, 0x719dbecf
+0, 268, 268, 1, 152064, 0xf301a7ad
+0, 269, 269, 1, 152064, 0xf15c70c3
+0, 270, 270, 1, 152064, 0x0ab93386
+0, 271, 271, 1, 152064, 0x99c05adb
+0, 272, 272, 1, 152064, 0x9ed43530
+0, 273, 273, 1, 152064, 0xa2f62122
+0, 274, 274, 1, 152064, 0xf16f4525
+0, 275, 275, 1, 152064, 0xa3403b4a
+0, 276, 276, 1, 152064, 0x95521096
+0, 277, 277, 1, 152064, 0x0d412988
+0, 278, 278, 1, 152064, 0x829e080a
+0, 279, 279, 1, 152064, 0x0805c1b5
+0, 280, 280, 1, 152064, 0xa136be48
+0, 281, 281, 1, 152064, 0x0f8de228
+0, 282, 282, 1, 152064, 0x272cf2d3
+0, 283, 283, 1, 152064, 0xa1df2a5e
+0, 284, 284, 1, 152064, 0xf9db8350
+0, 285, 285, 1, 152064, 0x5536997d
+0, 286, 286, 1, 152064, 0xab83e81e
+0, 287, 287, 1, 152064, 0xec791b49
+0, 288, 288, 1, 152064, 0x04d03e19
+0, 289, 289, 1, 152064, 0xd6a2bd21
+0, 290, 290, 1, 152064, 0x2d35f0aa
+0, 291, 291, 1, 152064, 0x137bf715
+0, 292, 292, 1, 152064, 0x56ef5ae1
+0, 293, 293, 1, 152064, 0x9bb5821e
+0, 294, 294, 1, 152064, 0x533c7fff
+0, 295, 295, 1, 152064, 0x469ad380
+0, 296, 296, 1, 152064, 0x75710e84
+0, 297, 297, 1, 152064, 0xbbd72551
+0, 298, 298, 1, 152064, 0xf1137026
+0, 299, 299, 1, 152064, 0x6238412b
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
new file mode 100644
index 0000000..a81e91f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b
new file mode 100644
index 0000000..00f04fd
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xac83f54f
+0, 1, 1, 1, 152064, 0x4d673b43
+0, 2, 2, 1, 152064, 0x9050731f
+0, 3, 3, 1, 152064, 0x4a0741f3
+0, 4, 4, 1, 152064, 0xb2371c28
+0, 5, 5, 1, 152064, 0x42210524
+0, 6, 6, 1, 152064, 0x385f4be5
+0, 7, 7, 1, 152064, 0xe44ec27a
+0, 8, 8, 1, 152064, 0xfc668399
+0, 9, 9, 1, 152064, 0x903fe200
+0, 10, 10, 1, 152064, 0x4da1deaa
+0, 11, 11, 1, 152064, 0x68c956ab
+0, 12, 12, 1, 152064, 0x9cfad799
+0, 13, 13, 1, 152064, 0x841ed3cd
+0, 14, 14, 1, 152064, 0x99e66b48
+0, 15, 15, 1, 152064, 0xcfa28482
+0, 16, 16, 1, 152064, 0x72f2c717
+0, 17, 17, 1, 152064, 0xd1d92c80
+0, 18, 18, 1, 152064, 0x595063eb
+0, 19, 19, 1, 152064, 0x87373979
+0, 20, 20, 1, 152064, 0xfa0e75ac
+0, 21, 21, 1, 152064, 0x0cef3592
+0, 22, 22, 1, 152064, 0xecfc9c9a
+0, 23, 23, 1, 152064, 0x5776ff23
+0, 24, 24, 1, 152064, 0x83419e37
+0, 25, 25, 1, 152064, 0x4bb31524
+0, 26, 26, 1, 152064, 0xad8e1bdc
+0, 27, 27, 1, 152064, 0x7243b6cb
+0, 28, 28, 1, 152064, 0xf016cda0
+0, 29, 29, 1, 152064, 0xa2c1d730
+0, 30, 30, 1, 152064, 0x7999d704
+0, 31, 31, 1, 152064, 0x86ad0baf
+0, 32, 32, 1, 152064, 0x35dafe62
+0, 33, 33, 1, 152064, 0xcb2f5de2
+0, 34, 34, 1, 152064, 0x3542eb82
+0, 35, 35, 1, 152064, 0xa704dd92
+0, 36, 36, 1, 152064, 0x3e50ed92
+0, 37, 37, 1, 152064, 0x2fe5428a
+0, 38, 38, 1, 152064, 0xf05dab9d
+0, 39, 39, 1, 152064, 0xef40c2a3
+0, 40, 40, 1, 152064, 0x2df8983f
+0, 41, 41, 1, 152064, 0x0a205c93
+0, 42, 42, 1, 152064, 0x505562ea
+0, 43, 43, 1, 152064, 0x24114860
+0, 44, 44, 1, 152064, 0x2eecccc1
+0, 45, 45, 1, 152064, 0xc809105f
+0, 46, 46, 1, 152064, 0x394ab285
+0, 47, 47, 1, 152064, 0xfda68f17
+0, 48, 48, 1, 152064, 0x2fd66a51
+0, 49, 49, 1, 152064, 0x3abb891a
+0, 50, 50, 1, 152064, 0x62266682
+0, 51, 51, 1, 152064, 0x68fb38e9
+0, 52, 52, 1, 152064, 0xae4b9d9b
+0, 53, 53, 1, 152064, 0xdaf8e150
+0, 54, 54, 1, 152064, 0x2fd8bf74
+0, 55, 55, 1, 152064, 0xd2ad6c38
+0, 56, 56, 1, 152064, 0x76290574
+0, 57, 57, 1, 152064, 0xaea6b9be
+0, 58, 58, 1, 152064, 0xd0d797d7
+0, 59, 59, 1, 152064, 0x87ad00b2
+0, 60, 60, 1, 152064, 0xe57d11d0
+0, 61, 61, 1, 152064, 0x25a5c567
+0, 62, 62, 1, 152064, 0x477e2202
+0, 63, 63, 1, 152064, 0xaa0618ca
+0, 64, 64, 1, 152064, 0xb5d2262b
+0, 65, 65, 1, 152064, 0xae7c135d
+0, 66, 66, 1, 152064, 0xddb86a7c
+0, 67, 67, 1, 152064, 0x59bad3ba
+0, 68, 68, 1, 152064, 0x0b155178
+0, 69, 69, 1, 152064, 0xc2f265d9
+0, 70, 70, 1, 152064, 0xb550e8a8
+0, 71, 71, 1, 152064, 0x1fef6cbc
+0, 72, 72, 1, 152064, 0xd3d4e578
+0, 73, 73, 1, 152064, 0x70d20c0d
+0, 74, 74, 1, 152064, 0xbb8e95a9
+0, 75, 75, 1, 152064, 0x2a92cda3
+0, 76, 76, 1, 152064, 0xc0a5e7e0
+0, 77, 77, 1, 152064, 0x15b99dab
+0, 78, 78, 1, 152064, 0x536d44e8
+0, 79, 79, 1, 152064, 0xe43fb4fa
+0, 80, 80, 1, 152064, 0xdb0873b0
+0, 81, 81, 1, 152064, 0xc7901e9b
+0, 82, 82, 1, 152064, 0x36b69923
+0, 83, 83, 1, 152064, 0xc6a8ac8d
+0, 84, 84, 1, 152064, 0xd7e4c595
+0, 85, 85, 1, 152064, 0x2d64cf38
+0, 86, 86, 1, 152064, 0x007878b1
+0, 87, 87, 1, 152064, 0xc9c997d4
+0, 88, 88, 1, 152064, 0xf9de12de
+0, 89, 89, 1, 152064, 0x25982d54
+0, 90, 90, 1, 152064, 0xea5eef7c
+0, 91, 91, 1, 152064, 0x108aceb2
+0, 92, 92, 1, 152064, 0x3cbac8c8
+0, 93, 93, 1, 152064, 0x581ec9e1
+0, 94, 94, 1, 152064, 0xc898bd7d
+0, 95, 95, 1, 152064, 0x142a0235
+0, 96, 96, 1, 152064, 0xf9d0aa7e
+0, 97, 97, 1, 152064, 0xb9fe0bc4
+0, 98, 98, 1, 152064, 0x21889912
+0, 99, 99, 1, 152064, 0x3fb2ab18
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c
new file mode 100644
index 0000000..23ad267
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x2744afa1
+0, 1, 1, 1, 152064, 0x17246583
+0, 2, 2, 1, 152064, 0x501836ed
+0, 3, 3, 1, 152064, 0xe90d6961
+0, 4, 4, 1, 152064, 0x27abe1ad
+0, 5, 5, 1, 152064, 0xcfc730e4
+0, 6, 6, 1, 152064, 0xeaaa83ee
+0, 7, 7, 1, 152064, 0xb5d80ebd
+0, 8, 8, 1, 152064, 0x1e1b9d03
+0, 9, 9, 1, 152064, 0x60e7cf33
+0, 10, 10, 1, 152064, 0xc44616b1
+0, 11, 11, 1, 152064, 0x0a2a5906
+0, 12, 12, 1, 152064, 0xf101309c
+0, 13, 13, 1, 152064, 0x0b57f348
+0, 14, 14, 1, 152064, 0x4f018c05
+0, 15, 15, 1, 152064, 0x22359c60
+0, 16, 16, 1, 152064, 0x020f1cc3
+0, 17, 17, 1, 152064, 0x15be3892
+0, 18, 18, 1, 152064, 0x834a2e23
+0, 19, 19, 1, 152064, 0x1176586c
+0, 20, 20, 1, 152064, 0x9cf25641
+0, 21, 21, 1, 152064, 0xc1c4051d
+0, 22, 22, 1, 152064, 0x790d8bfa
+0, 23, 23, 1, 152064, 0x4dcbe7d7
+0, 24, 24, 1, 152064, 0xe81d3b7b
+0, 25, 25, 1, 152064, 0xe9e21309
+0, 26, 26, 1, 152064, 0x22021dbc
+0, 27, 27, 1, 152064, 0x430c5ecb
+0, 28, 28, 1, 152064, 0xf524be8b
+0, 29, 29, 1, 152064, 0xa437dadc
+0, 30, 30, 1, 152064, 0xff00b440
+0, 31, 31, 1, 152064, 0x4bd1bf15
+0, 32, 32, 1, 152064, 0x1f46a3ea
+0, 33, 33, 1, 152064, 0x60b47c5e
+0, 34, 34, 1, 152064, 0x45117ac6
+0, 35, 35, 1, 152064, 0x43894fca
+0, 36, 36, 1, 152064, 0x21572b55
+0, 37, 37, 1, 152064, 0xe96def09
+0, 38, 38, 1, 152064, 0x4d2ab41f
+0, 39, 39, 1, 152064, 0x072d6b06
+0, 40, 40, 1, 152064, 0x81865687
+0, 41, 41, 1, 152064, 0x8d9a0ea6
+0, 42, 42, 1, 152064, 0x1484d3cd
+0, 43, 43, 1, 152064, 0xbdabae6b
+0, 44, 44, 1, 152064, 0x4211edbe
+0, 45, 45, 1, 152064, 0xd84dad6d
+0, 46, 46, 1, 152064, 0xe4e79344
+0, 47, 47, 1, 152064, 0x9c1addd7
+0, 48, 48, 1, 152064, 0xdcf94283
+0, 49, 49, 1, 152064, 0x6bd005b2
+0, 50, 50, 1, 152064, 0x9679bd10
+0, 51, 51, 1, 152064, 0x052064ab
+0, 52, 52, 1, 152064, 0x915db3f3
+0, 53, 53, 1, 152064, 0xec2fbd58
+0, 54, 54, 1, 152064, 0x26728258
+0, 55, 55, 1, 152064, 0x2b2b617f
+0, 56, 56, 1, 152064, 0x2339eb3d
+0, 57, 57, 1, 152064, 0xcf6e6773
+0, 58, 58, 1, 152064, 0xb993efe4
+0, 59, 59, 1, 152064, 0x4054253d
+0, 60, 60, 1, 152064, 0x4befe5b5
+0, 61, 61, 1, 152064, 0x0678c0fa
+0, 62, 62, 1, 152064, 0xe3c54a03
+0, 63, 63, 1, 152064, 0xffa3210c
+0, 64, 64, 1, 152064, 0xed04b823
+0, 65, 65, 1, 152064, 0x00926457
+0, 66, 66, 1, 152064, 0xd56aaaf0
+0, 67, 67, 1, 152064, 0x6047ef6e
+0, 68, 68, 1, 152064, 0x44316d07
+0, 69, 69, 1, 152064, 0xe8a879b7
+0, 70, 70, 1, 152064, 0x1856cd86
+0, 71, 71, 1, 152064, 0x6528349a
+0, 72, 72, 1, 152064, 0xdeff676e
+0, 73, 73, 1, 152064, 0xda412e47
+0, 74, 74, 1, 152064, 0xa2c2a96f
+0, 75, 75, 1, 152064, 0xc703b8cd
+0, 76, 76, 1, 152064, 0x20b0650b
+0, 77, 77, 1, 152064, 0x8c14faa5
+0, 78, 78, 1, 152064, 0xa442706c
+0, 79, 79, 1, 152064, 0x6e456137
+0, 80, 80, 1, 152064, 0x6dde11c6
+0, 81, 81, 1, 152064, 0xb017978a
+0, 82, 82, 1, 152064, 0xc0bad34b
+0, 83, 83, 1, 152064, 0x8bd439ee
+0, 84, 84, 1, 152064, 0xa92735e4
+0, 85, 85, 1, 152064, 0x1623f501
+0, 86, 86, 1, 152064, 0x5be980b2
+0, 87, 87, 1, 152064, 0x4306b9bf
+0, 88, 88, 1, 152064, 0xb4f18976
+0, 89, 89, 1, 152064, 0x4ffb9b46
+0, 90, 90, 1, 152064, 0x23082275
+0, 91, 91, 1, 152064, 0xc7f0e087
+0, 92, 92, 1, 152064, 0x68b95327
+0, 93, 93, 1, 152064, 0xd030a8e4
+0, 94, 94, 1, 152064, 0xf8f9615c
+0, 95, 95, 1, 152064, 0x1b26fe3e
+0, 96, 96, 1, 152064, 0x3381608d
+0, 97, 97, 1, 152064, 0x9939d49d
+0, 98, 98, 1, 152064, 0x575f4f94
+0, 99, 99, 1, 152064, 0x436c581c
+0, 100, 100, 1, 152064, 0x8f47aa58
+0, 101, 101, 1, 152064, 0xd251d95a
+0, 102, 102, 1, 152064, 0x3c33b32c
+0, 103, 103, 1, 152064, 0xa1e19413
+0, 104, 104, 1, 152064, 0x8d95cbad
+0, 105, 105, 1, 152064, 0x98cbd35e
+0, 106, 106, 1, 152064, 0xceb81a0f
+0, 107, 107, 1, 152064, 0x5490fab1
+0, 108, 108, 1, 152064, 0x8e57a38c
+0, 109, 109, 1, 152064, 0xc379517a
+0, 110, 110, 1, 152064, 0xafc4f747
+0, 111, 111, 1, 152064, 0xbc9c9be4
+0, 112, 112, 1, 152064, 0xd602b2f5
+0, 113, 113, 1, 152064, 0x8d85a450
+0, 114, 114, 1, 152064, 0x48183c74
+0, 115, 115, 1, 152064, 0xd1725590
+0, 116, 116, 1, 152064, 0x5ef42ed7
+0, 117, 117, 1, 152064, 0xad3a3883
+0, 118, 118, 1, 152064, 0x7a3e0ddd
+0, 119, 119, 1, 152064, 0x59bdfd38
+0, 120, 120, 1, 152064, 0x5ac3ba9f
+0, 121, 121, 1, 152064, 0x266cbd00
+0, 122, 122, 1, 152064, 0x97d29e00
+0, 123, 123, 1, 152064, 0x620774c2
+0, 124, 124, 1, 152064, 0xaae8b96f
+0, 125, 125, 1, 152064, 0x5f6bdfb6
+0, 126, 126, 1, 152064, 0xb239da53
+0, 127, 127, 1, 152064, 0x654b5680
+0, 128, 128, 1, 152064, 0xd796b723
+0, 129, 129, 1, 152064, 0xd5c84a81
+0, 130, 130, 1, 152064, 0x2a761652
+0, 131, 131, 1, 152064, 0x1137e145
+0, 132, 132, 1, 152064, 0x1a9a451b
+0, 133, 133, 1, 152064, 0x5ca751c4
+0, 134, 134, 1, 152064, 0x074acec7
+0, 135, 135, 1, 152064, 0x9ddfe77d
+0, 136, 136, 1, 152064, 0xfb211c29
+0, 137, 137, 1, 152064, 0x681ad4dd
+0, 138, 138, 1, 152064, 0x702c12cc
+0, 139, 139, 1, 152064, 0x556c5101
+0, 140, 140, 1, 152064, 0x39d4bb54
+0, 141, 141, 1, 152064, 0xa3a118d6
+0, 142, 142, 1, 152064, 0xb78b7db1
+0, 143, 143, 1, 152064, 0x4e20eed5
+0, 144, 144, 1, 152064, 0x6555a9df
+0, 145, 145, 1, 152064, 0xb607a9a4
+0, 146, 146, 1, 152064, 0x3cf96a94
+0, 147, 147, 1, 152064, 0xb2679007
+0, 148, 148, 1, 152064, 0xf09d5b85
+0, 149, 149, 1, 152064, 0x3961ba07
+0, 150, 150, 1, 152064, 0x0c28363a
+0, 151, 151, 1, 152064, 0x0a017c2d
+0, 152, 152, 1, 152064, 0x3a661de3
+0, 153, 153, 1, 152064, 0xf8d1bdee
+0, 154, 154, 1, 152064, 0x6f47791b
+0, 155, 155, 1, 152064, 0xe05b22c6
+0, 156, 156, 1, 152064, 0x7cc93bb0
+0, 157, 157, 1, 152064, 0xeb90c3d8
+0, 158, 158, 1, 152064, 0x1a1eac98
+0, 159, 159, 1, 152064, 0x92985671
+0, 160, 160, 1, 152064, 0x2fe3ce53
+0, 161, 161, 1, 152064, 0x61def691
+0, 162, 162, 1, 152064, 0x90820730
+0, 163, 163, 1, 152064, 0x17630372
+0, 164, 164, 1, 152064, 0xaf6cea12
+0, 165, 165, 1, 152064, 0xfe3b7ecc
+0, 166, 166, 1, 152064, 0x904a5b2e
+0, 167, 167, 1, 152064, 0x0d88d5f2
+0, 168, 168, 1, 152064, 0x498d22b1
+0, 169, 169, 1, 152064, 0x56baba83
+0, 170, 170, 1, 152064, 0xda4d6dfa
+0, 171, 171, 1, 152064, 0xaa38cbdd
+0, 172, 172, 1, 152064, 0x4077f15d
+0, 173, 173, 1, 152064, 0x7e006ec2
+0, 174, 174, 1, 152064, 0x59964a89
+0, 175, 175, 1, 152064, 0x04c078e3
+0, 176, 176, 1, 152064, 0x7a5faf97
+0, 177, 177, 1, 152064, 0xc517b3e9
+0, 178, 178, 1, 152064, 0xfcc81af5
+0, 179, 179, 1, 152064, 0xdcb44f62
+0, 180, 180, 1, 152064, 0x2a080b72
+0, 181, 181, 1, 152064, 0x91f88c67
+0, 182, 182, 1, 152064, 0xd39caf81
+0, 183, 183, 1, 152064, 0x0764ae31
+0, 184, 184, 1, 152064, 0x0ddb82ed
+0, 185, 185, 1, 152064, 0xed6d17e4
+0, 186, 186, 1, 152064, 0xb4f74712
+0, 187, 187, 1, 152064, 0x23a20787
+0, 188, 188, 1, 152064, 0x853e7b33
+0, 189, 189, 1, 152064, 0xc6bac173
+0, 190, 190, 1, 152064, 0xb590ec15
+0, 191, 191, 1, 152064, 0xfdd2943c
+0, 192, 192, 1, 152064, 0xba5d1160
+0, 193, 193, 1, 152064, 0xe732c5a7
+0, 194, 194, 1, 152064, 0x279f6ce9
+0, 195, 195, 1, 152064, 0xb3835829
+0, 196, 196, 1, 152064, 0x0901b2a1
+0, 197, 197, 1, 152064, 0x3df2b8f8
+0, 198, 198, 1, 152064, 0x374496a4
+0, 199, 199, 1, 152064, 0x1bc6a4ae
+0, 200, 200, 1, 152064, 0xdb4b372e
+0, 201, 201, 1, 152064, 0x8c11c214
+0, 202, 202, 1, 152064, 0xd2d5c093
+0, 203, 203, 1, 152064, 0x8dda094e
+0, 204, 204, 1, 152064, 0x9b2cc401
+0, 205, 205, 1, 152064, 0x1a3b49d5
+0, 206, 206, 1, 152064, 0xaf5342ff
+0, 207, 207, 1, 152064, 0x74c0de83
+0, 208, 208, 1, 152064, 0xcf486137
+0, 209, 209, 1, 152064, 0xcf005b3b
+0, 210, 210, 1, 152064, 0x86a64c55
+0, 211, 211, 1, 152064, 0xdd3f7ae9
+0, 212, 212, 1, 152064, 0xb0d01e53
+0, 213, 213, 1, 152064, 0x83219065
+0, 214, 214, 1, 152064, 0x17a35d27
+0, 215, 215, 1, 152064, 0xf92645b5
+0, 216, 216, 1, 152064, 0x8322bdbf
+0, 217, 217, 1, 152064, 0xd589f6a2
+0, 218, 218, 1, 152064, 0x80a62d9e
+0, 219, 219, 1, 152064, 0x05b3e0d1
+0, 220, 220, 1, 152064, 0xd657aa0b
+0, 221, 221, 1, 152064, 0xec5ac2dd
+0, 222, 222, 1, 152064, 0xbf0ff969
+0, 223, 223, 1, 152064, 0xc34a5140
+0, 224, 224, 1, 152064, 0x814705c4
+0, 225, 225, 1, 152064, 0xe9592008
+0, 226, 226, 1, 152064, 0xf12c933c
+0, 227, 227, 1, 152064, 0x2daee178
+0, 228, 228, 1, 152064, 0xa2573028
+0, 229, 229, 1, 152064, 0x6109f58d
+0, 230, 230, 1, 152064, 0x64ab8ce4
+0, 231, 231, 1, 152064, 0x13a88b6e
+0, 232, 232, 1, 152064, 0x8f0181a9
+0, 233, 233, 1, 152064, 0xd5295fd4
+0, 234, 234, 1, 152064, 0xfdbeeb0d
+0, 235, 235, 1, 152064, 0x05ecd231
+0, 236, 236, 1, 152064, 0x48d164cd
+0, 237, 237, 1, 152064, 0xc279cf63
+0, 238, 238, 1, 152064, 0x1d5e6a03
+0, 239, 239, 1, 152064, 0xd9dc1807
+0, 240, 240, 1, 152064, 0xbcc83676
+0, 241, 241, 1, 152064, 0x65a9811e
+0, 242, 242, 1, 152064, 0x3ccfe5a8
+0, 243, 243, 1, 152064, 0x2f2ff051
+0, 244, 244, 1, 152064, 0x9193e093
+0, 245, 245, 1, 152064, 0x9a30fdc6
+0, 246, 246, 1, 152064, 0x90b7ea10
+0, 247, 247, 1, 152064, 0x3291910c
+0, 248, 248, 1, 152064, 0x2335d186
+0, 249, 249, 1, 152064, 0x2890cf1d
+0, 250, 250, 1, 152064, 0x8c8b6245
+0, 251, 251, 1, 152064, 0x24b84eda
+0, 252, 252, 1, 152064, 0x04a12446
+0, 253, 253, 1, 152064, 0xd9d91d51
+0, 254, 254, 1, 152064, 0xbf450adf
+0, 255, 255, 1, 152064, 0xa19a9a41
+0, 256, 256, 1, 152064, 0x2211ab01
+0, 257, 257, 1, 152064, 0x8fe85430
+0, 258, 258, 1, 152064, 0x5a152861
+0, 259, 259, 1, 152064, 0x7fe76995
+0, 260, 260, 1, 152064, 0x508b99cd
+0, 261, 261, 1, 152064, 0x92e79437
+0, 262, 262, 1, 152064, 0x8572eac9
+0, 263, 263, 1, 152064, 0x42e3d513
+0, 264, 264, 1, 152064, 0x6bee9e38
+0, 265, 265, 1, 152064, 0x2858ad4b
+0, 266, 266, 1, 152064, 0x96d87d00
+0, 267, 267, 1, 152064, 0x749f1032
+0, 268, 268, 1, 152064, 0x668fca6c
+0, 269, 269, 1, 152064, 0x11d278d9
+0, 270, 270, 1, 152064, 0x10fd46ea
+0, 271, 271, 1, 152064, 0xc8b193c8
+0, 272, 272, 1, 152064, 0x035e7d02
+0, 273, 273, 1, 152064, 0x067f583c
+0, 274, 274, 1, 152064, 0xd9648a1e
+0, 275, 275, 1, 152064, 0x92487b7e
+0, 276, 276, 1, 152064, 0xc7b35421
+0, 277, 277, 1, 152064, 0x2ed57c1c
+0, 278, 278, 1, 152064, 0xefe24c5f
+0, 279, 279, 1, 152064, 0x8df0118b
+0, 280, 280, 1, 152064, 0x18f0278d
+0, 281, 281, 1, 152064, 0x63ac45ad
+0, 282, 282, 1, 152064, 0xd79849f0
+0, 283, 283, 1, 152064, 0x1f1d4dab
+0, 284, 284, 1, 152064, 0x736fb5b8
+0, 285, 285, 1, 152064, 0xc24eb80c
+0, 286, 286, 1, 152064, 0x64ca3b11
+0, 287, 287, 1, 152064, 0x35d8674c
+0, 288, 288, 1, 152064, 0x3c5a7b51
+0, 289, 289, 1, 152064, 0x97550b81
+0, 290, 290, 1, 152064, 0x731454b5
+0, 291, 291, 1, 152064, 0x01de43bc
+0, 292, 292, 1, 152064, 0xbda7afae
+0, 293, 293, 1, 152064, 0xeb34d714
+0, 294, 294, 1, 152064, 0x1260cc98
+0, 295, 295, 1, 152064, 0x7e592c36
+0, 296, 296, 1, 152064, 0x40b3676e
+0, 297, 297, 1, 152064, 0x8c9d6b94
+0, 298, 298, 1, 152064, 0xc7988665
+0, 299, 299, 1, 152064, 0xf2994d52
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b
new file mode 100644
index 0000000..460f86c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x712a2ad3
+0, 1, 1, 1, 152064, 0x83420c9d
+0, 2, 2, 1, 152064, 0xf3d77f46
+0, 3, 3, 1, 152064, 0x67eab1a2
+0, 4, 4, 1, 152064, 0x41df4534
+0, 5, 5, 1, 152064, 0x68f268ce
+0, 6, 6, 1, 152064, 0x288debdf
+0, 7, 7, 1, 152064, 0x46ae56a7
+0, 8, 8, 1, 152064, 0x1720f327
+0, 9, 9, 1, 152064, 0x64752592
+0, 10, 10, 1, 152064, 0x43e17a27
+0, 11, 11, 1, 152064, 0x39f7cc52
+0, 12, 12, 1, 152064, 0xc19a785c
+0, 13, 13, 1, 152064, 0x562df0d4
+0, 14, 14, 1, 152064, 0x50c96da0
+0, 15, 15, 1, 152064, 0x1da8bdb5
+0, 16, 16, 1, 152064, 0x02ddfb59
+0, 17, 17, 1, 152064, 0x4d0c3e0e
+0, 18, 18, 1, 152064, 0x1605371b
+0, 19, 19, 1, 152064, 0x9772464d
+0, 20, 20, 1, 152064, 0xc603441c
+0, 21, 21, 1, 152064, 0xf9581917
+0, 22, 22, 1, 152064, 0x4dbf74af
+0, 23, 23, 1, 152064, 0x04b8b820
+0, 24, 24, 1, 152064, 0x75061cdf
+0, 25, 25, 1, 152064, 0x760bea90
+0, 26, 26, 1, 152064, 0x7114cab3
+0, 27, 27, 1, 152064, 0x89e14328
+0, 28, 28, 1, 152064, 0x402ba116
+0, 29, 29, 1, 152064, 0x8af2ccc6
+0, 30, 30, 1, 152064, 0x1294333a
+0, 31, 31, 1, 152064, 0xe466aa9f
+0, 32, 32, 1, 152064, 0x7ce28426
+0, 33, 33, 1, 152064, 0x21c16487
+0, 34, 34, 1, 152064, 0xde3d5fc9
+0, 35, 35, 1, 152064, 0x58cb2906
+0, 36, 36, 1, 152064, 0x1df514ec
+0, 37, 37, 1, 152064, 0x7e45bfb6
+0, 38, 38, 1, 152064, 0xcdaaafc0
+0, 39, 39, 1, 152064, 0x70a58eac
+0, 40, 40, 1, 152064, 0xca7263b0
+0, 41, 41, 1, 152064, 0x022621e0
+0, 42, 42, 1, 152064, 0x938901c2
+0, 43, 43, 1, 152064, 0x8c099e47
+0, 44, 44, 1, 152064, 0xebfecda0
+0, 45, 45, 1, 152064, 0x5a3aff71
+0, 46, 46, 1, 152064, 0xb47c6692
+0, 47, 47, 1, 152064, 0xde04b626
+0, 48, 48, 1, 152064, 0xb1c61c94
+0, 49, 49, 1, 152064, 0xbcc7eb35
+0, 50, 50, 1, 152064, 0x801b958d
+0, 51, 51, 1, 152064, 0xf5254f5d
+0, 52, 52, 1, 152064, 0x4336da49
+0, 53, 53, 1, 152064, 0x3139bcaf
+0, 54, 54, 1, 152064, 0xb8359026
+0, 55, 55, 1, 152064, 0xb6d39756
+0, 56, 56, 1, 152064, 0xdf5c1c14
+0, 57, 57, 1, 152064, 0x3f587336
+0, 58, 58, 1, 152064, 0x105eeb74
+0, 59, 59, 1, 152064, 0xffe23c19
+0, 60, 60, 1, 152064, 0xfb1a1c5e
+0, 61, 61, 1, 152064, 0xb8edb942
+0, 62, 62, 1, 152064, 0x7ca92b27
+0, 63, 63, 1, 152064, 0xd2fe1e24
+0, 64, 64, 1, 152064, 0xd6b8939a
+0, 65, 65, 1, 152064, 0xd59743da
+0, 66, 66, 1, 152064, 0x005d9e7a
+0, 67, 67, 1, 152064, 0x4c5cb03e
+0, 68, 68, 1, 152064, 0x4a7c363a
+0, 69, 69, 1, 152064, 0x627c88a8
+0, 70, 70, 1, 152064, 0x3fcd8650
+0, 71, 71, 1, 152064, 0x75b7f0b3
+0, 72, 72, 1, 152064, 0xcbb95a00
+0, 73, 73, 1, 152064, 0xc9871783
+0, 74, 74, 1, 152064, 0xe9c2b471
+0, 75, 75, 1, 152064, 0x513f0eb3
+0, 76, 76, 1, 152064, 0x5a5c4fdc
+0, 77, 77, 1, 152064, 0xdc8cbab6
+0, 78, 78, 1, 152064, 0x86fe75d2
+0, 79, 79, 1, 152064, 0xa6d52ce2
+0, 80, 80, 1, 152064, 0xde74a975
+0, 81, 81, 1, 152064, 0xc1bf3ef2
+0, 82, 82, 1, 152064, 0xa1a1b832
+0, 83, 83, 1, 152064, 0x0b23f718
+0, 84, 84, 1, 152064, 0x842eed85
+0, 85, 85, 1, 152064, 0xda96923b
+0, 86, 86, 1, 152064, 0x7d011f83
+0, 87, 87, 1, 152064, 0x26a25528
+0, 88, 88, 1, 152064, 0x117b7971
+0, 89, 89, 1, 152064, 0x3f17b29d
+0, 90, 90, 1, 152064, 0x428654c0
+0, 91, 91, 1, 152064, 0xc2343316
+0, 92, 92, 1, 152064, 0x284371fe
+0, 93, 93, 1, 152064, 0x388ef972
+0, 94, 94, 1, 152064, 0x5f046560
+0, 95, 95, 1, 152064, 0x6e9ac7e9
+0, 96, 96, 1, 152064, 0x0cd6277c
+0, 97, 97, 1, 152064, 0xfc7ba0b1
+0, 98, 98, 1, 152064, 0x4d840475
+0, 99, 99, 1, 152064, 0xd4cb26a6
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a
new file mode 100644
index 0000000..d608d89
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x995bb4bd
+0, 1, 1, 1, 152064, 0xad287357
+0, 2, 2, 1, 152064, 0x38fa4661
+0, 3, 3, 1, 152064, 0x8aae73cf
+0, 4, 4, 1, 152064, 0x4a13eada
+0, 5, 5, 1, 152064, 0x48b33901
+0, 6, 6, 1, 152064, 0x011487bc
+0, 7, 7, 1, 152064, 0xd4ce1925
+0, 8, 8, 1, 152064, 0x5d679ddd
+0, 9, 9, 1, 152064, 0x276cd5cf
+0, 10, 10, 1, 152064, 0x99c625f0
+0, 11, 11, 1, 152064, 0xb2f756d1
+0, 12, 12, 1, 152064, 0xb19c2978
+0, 13, 13, 1, 152064, 0xdac0ff3c
+0, 14, 14, 1, 152064, 0x3c1c8d63
+0, 15, 15, 1, 152064, 0x818ea0a8
+0, 16, 16, 1, 152064, 0xa7c122a5
+0, 17, 17, 1, 152064, 0x67ad3519
+0, 18, 18, 1, 152064, 0xc81b2a88
+0, 19, 19, 1, 152064, 0x8ae6633e
+0, 20, 20, 1, 152064, 0xed945788
+0, 21, 21, 1, 152064, 0x4c740bcb
+0, 22, 22, 1, 152064, 0xd8408d09
+0, 23, 23, 1, 152064, 0xb710e8b8
+0, 24, 24, 1, 152064, 0xb8c647b9
+0, 25, 25, 1, 152064, 0x802b2e23
+0, 26, 26, 1, 152064, 0x30672529
+0, 27, 27, 1, 152064, 0x328a72b6
+0, 28, 28, 1, 152064, 0xeb6dbe94
+0, 29, 29, 1, 152064, 0x1c19dcc5
+0, 30, 30, 1, 152064, 0xfdc6b998
+0, 31, 31, 1, 152064, 0xf9e2cd80
+0, 32, 32, 1, 152064, 0x025eb15e
+0, 33, 33, 1, 152064, 0xfd998ad8
+0, 34, 34, 1, 152064, 0x8fdf736f
+0, 35, 35, 1, 152064, 0xa5a7554a
+0, 36, 36, 1, 152064, 0xcea63304
+0, 37, 37, 1, 152064, 0xcb28ec28
+0, 38, 38, 1, 152064, 0x92efb591
+0, 39, 39, 1, 152064, 0x0f2376c3
+0, 40, 40, 1, 152064, 0xe9cb5ecf
+0, 41, 41, 1, 152064, 0xcd2d0eba
+0, 42, 42, 1, 152064, 0xd57fe4fd
+0, 43, 43, 1, 152064, 0xc486ab8e
+0, 44, 44, 1, 152064, 0x01a1f709
+0, 45, 45, 1, 152064, 0x7ac5b13a
+0, 46, 46, 1, 152064, 0x6f519279
+0, 47, 47, 1, 152064, 0xfd7cd9a0
+0, 48, 48, 1, 152064, 0xfae649d2
+0, 49, 49, 1, 152064, 0x618507ca
+0, 50, 50, 1, 152064, 0xb177bc15
+0, 51, 51, 1, 152064, 0x6fa36854
+0, 52, 52, 1, 152064, 0xc13cb77d
+0, 53, 53, 1, 152064, 0x6d40cb01
+0, 54, 54, 1, 152064, 0xa3db96a2
+0, 55, 55, 1, 152064, 0xe5ba6c99
+0, 56, 56, 1, 152064, 0xca9ff3ee
+0, 57, 57, 1, 152064, 0x6c016c65
+0, 58, 58, 1, 152064, 0xdf93ed80
+0, 59, 59, 1, 152064, 0x93112ec8
+0, 60, 60, 1, 152064, 0x8ab3ea14
+0, 61, 61, 1, 152064, 0x02f5b891
+0, 62, 62, 1, 152064, 0xdafd562b
+0, 63, 63, 1, 152064, 0xa96a2bd7
+0, 64, 64, 1, 152064, 0xdff8bc68
+0, 65, 65, 1, 152064, 0x8d956b4b
+0, 66, 66, 1, 152064, 0xb4aeb960
+0, 67, 67, 1, 152064, 0x391cf0dd
+0, 68, 68, 1, 152064, 0x03137de9
+0, 69, 69, 1, 152064, 0x2bfa8c4b
+0, 70, 70, 1, 152064, 0xfb54d3a5
+0, 71, 71, 1, 152064, 0x650146e7
+0, 72, 72, 1, 152064, 0xd3a7765f
+0, 73, 73, 1, 152064, 0x49d72b90
+0, 74, 74, 1, 152064, 0xf089b357
+0, 75, 75, 1, 152064, 0x23a2be41
+0, 76, 76, 1, 152064, 0x2ea86592
+0, 77, 77, 1, 152064, 0x99d6f56b
+0, 78, 78, 1, 152064, 0xc2ca75b9
+0, 79, 79, 1, 152064, 0x390b7278
+0, 80, 80, 1, 152064, 0x0f6d1f1e
+0, 81, 81, 1, 152064, 0x79e2a3f4
+0, 82, 82, 1, 152064, 0x51d5e1da
+0, 83, 83, 1, 152064, 0xdb57419a
+0, 84, 84, 1, 152064, 0xf90a4153
+0, 85, 85, 1, 152064, 0xd192f6c6
+0, 86, 86, 1, 152064, 0x8cd3895a
+0, 87, 87, 1, 152064, 0x0d3ec577
+0, 88, 88, 1, 152064, 0x146e8492
+0, 89, 89, 1, 152064, 0xc9939c22
+0, 90, 90, 1, 152064, 0xf1f4275e
+0, 91, 91, 1, 152064, 0xb898eb35
+0, 92, 92, 1, 152064, 0xed315ee9
+0, 93, 93, 1, 152064, 0x9046b760
+0, 94, 94, 1, 152064, 0x599a736b
+0, 95, 95, 1, 152064, 0xaef20726
+0, 96, 96, 1, 152064, 0x0d136768
+0, 97, 97, 1, 152064, 0xfe4ed2a8
+0, 98, 98, 1, 152064, 0x5a85524b
+0, 99, 99, 1, 152064, 0x6d495dd2
+0, 100, 100, 1, 152064, 0x04bdb815
+0, 101, 101, 1, 152064, 0x28aae1c5
+0, 102, 102, 1, 152064, 0xc20bc8d9
+0, 103, 103, 1, 152064, 0xa33d9b41
+0, 104, 104, 1, 152064, 0x6269cb43
+0, 105, 105, 1, 152064, 0x4f81d636
+0, 106, 106, 1, 152064, 0xc6062166
+0, 107, 107, 1, 152064, 0xb027fbcc
+0, 108, 108, 1, 152064, 0x73a7a584
+0, 109, 109, 1, 152064, 0xf67e520a
+0, 110, 110, 1, 152064, 0x94eff023
+0, 111, 111, 1, 152064, 0xef1da8e5
+0, 112, 112, 1, 152064, 0x2d9ab411
+0, 113, 113, 1, 152064, 0xf0c39b5d
+0, 114, 114, 1, 152064, 0xb2374724
+0, 115, 115, 1, 152064, 0x939a5243
+0, 116, 116, 1, 152064, 0xee3438db
+0, 117, 117, 1, 152064, 0x7da04012
+0, 118, 118, 1, 152064, 0xac611668
+0, 119, 119, 1, 152064, 0xdce3062e
+0, 120, 120, 1, 152064, 0xb57cc00e
+0, 121, 121, 1, 152064, 0xaf96b59e
+0, 122, 122, 1, 152064, 0x56789c13
+0, 123, 123, 1, 152064, 0xb1f678b5
+0, 124, 124, 1, 152064, 0xb340b8c4
+0, 125, 125, 1, 152064, 0x86e6e304
+0, 126, 126, 1, 152064, 0xa056e037
+0, 127, 127, 1, 152064, 0x16885d27
+0, 128, 128, 1, 152064, 0x9c5ac065
+0, 129, 129, 1, 152064, 0x563d5335
+0, 130, 130, 1, 152064, 0x3ca71c1e
+0, 131, 131, 1, 152064, 0xad34e16c
+0, 132, 132, 1, 152064, 0x6d074b27
+0, 133, 133, 1, 152064, 0x9b1c4909
+0, 134, 134, 1, 152064, 0xdbced198
+0, 135, 135, 1, 152064, 0x8a0ded00
+0, 136, 136, 1, 152064, 0x5ffc209b
+0, 137, 137, 1, 152064, 0x47cfd269
+0, 138, 138, 1, 152064, 0xe3c0137e
+0, 139, 139, 1, 152064, 0xcb6a5e53
+0, 140, 140, 1, 152064, 0x87cec05f
+0, 141, 141, 1, 152064, 0x92721dd2
+0, 142, 142, 1, 152064, 0x3f7d7b3b
+0, 143, 143, 1, 152064, 0xd63ef417
+0, 144, 144, 1, 152064, 0xf8e4b05a
+0, 145, 145, 1, 152064, 0xb5dcb421
+0, 146, 146, 1, 152064, 0x53c96f6a
+0, 147, 147, 1, 152064, 0x24ae98a3
+0, 148, 148, 1, 152064, 0x2e9b5fff
+0, 149, 149, 1, 152064, 0x7795bf12
+0, 150, 150, 1, 152064, 0x499d37ca
+0, 151, 151, 1, 152064, 0xfe478487
+0, 152, 152, 1, 152064, 0xcd661afb
+0, 153, 153, 1, 152064, 0x44f8bf00
+0, 154, 154, 1, 152064, 0x90b67809
+0, 155, 155, 1, 152064, 0x8f5726d1
+0, 156, 156, 1, 152064, 0x2e3c39d5
+0, 157, 157, 1, 152064, 0x4b67c4e6
+0, 158, 158, 1, 152064, 0x9fecb7cf
+0, 159, 159, 1, 152064, 0x207766ea
+0, 160, 160, 1, 152064, 0x5846bf7b
+0, 161, 161, 1, 152064, 0x4237fba1
+0, 162, 162, 1, 152064, 0x983e0cbd
+0, 163, 163, 1, 152064, 0x6be100d1
+0, 164, 164, 1, 152064, 0x9d0beb8f
+0, 165, 165, 1, 152064, 0x234b82e7
+0, 166, 166, 1, 152064, 0x83fb5ef1
+0, 167, 167, 1, 152064, 0xf503dcb2
+0, 168, 168, 1, 152064, 0x031a27f2
+0, 169, 169, 1, 152064, 0x2f1abf24
+0, 170, 170, 1, 152064, 0x54d77010
+0, 171, 171, 1, 152064, 0x049fc0fc
+0, 172, 172, 1, 152064, 0x20f2f7e7
+0, 173, 173, 1, 152064, 0xc0d57467
+0, 174, 174, 1, 152064, 0xbe464eef
+0, 175, 175, 1, 152064, 0x035c9052
+0, 176, 176, 1, 152064, 0x91cba4fb
+0, 177, 177, 1, 152064, 0x11cdbbfb
+0, 178, 178, 1, 152064, 0xe61116d5
+0, 179, 179, 1, 152064, 0x16db46b8
+0, 180, 180, 1, 152064, 0x54f30d9f
+0, 181, 181, 1, 152064, 0x211a8d2d
+0, 182, 182, 1, 152064, 0x5a74a56b
+0, 183, 183, 1, 152064, 0x0ff4ba72
+0, 184, 184, 1, 152064, 0x4c398ad6
+0, 185, 185, 1, 152064, 0x830814f0
+0, 186, 186, 1, 152064, 0xa51f4bab
+0, 187, 187, 1, 152064, 0xf3460de6
+0, 188, 188, 1, 152064, 0x7e1979a1
+0, 189, 189, 1, 152064, 0x4b3ebb3a
+0, 190, 190, 1, 152064, 0x83d1f4f8
+0, 191, 191, 1, 152064, 0xfbf08683
+0, 192, 192, 1, 152064, 0x901c07ec
+0, 193, 193, 1, 152064, 0xbc2dc1c7
+0, 194, 194, 1, 152064, 0x6e646b3b
+0, 195, 195, 1, 152064, 0x51a25aab
+0, 196, 196, 1, 152064, 0xa042ab78
+0, 197, 197, 1, 152064, 0xb972af58
+0, 198, 198, 1, 152064, 0xcdca9568
+0, 199, 199, 1, 152064, 0x17b69d1c
+0, 200, 200, 1, 152064, 0x41c43ea2
+0, 201, 201, 1, 152064, 0x195fc7a0
+0, 202, 202, 1, 152064, 0xf4cec580
+0, 203, 203, 1, 152064, 0xb3b10936
+0, 204, 204, 1, 152064, 0x102bc2ec
+0, 205, 205, 1, 152064, 0xc99d4767
+0, 206, 206, 1, 152064, 0x60c745b0
+0, 207, 207, 1, 152064, 0x8176e0cf
+0, 208, 208, 1, 152064, 0xd47e69b5
+0, 209, 209, 1, 152064, 0xacce674c
+0, 210, 210, 1, 152064, 0x031b51f8
+0, 211, 211, 1, 152064, 0x0eb681ef
+0, 212, 212, 1, 152064, 0x0b69334b
+0, 213, 213, 1, 152064, 0xda819c1f
+0, 214, 214, 1, 152064, 0xa93f62d2
+0, 215, 215, 1, 152064, 0x51374db5
+0, 216, 216, 1, 152064, 0x885dccff
+0, 217, 217, 1, 152064, 0xd0780444
+0, 218, 218, 1, 152064, 0xa31733ca
+0, 219, 219, 1, 152064, 0x3f3de84e
+0, 220, 220, 1, 152064, 0x2af2b2c3
+0, 221, 221, 1, 152064, 0xa62dceae
+0, 222, 222, 1, 152064, 0xca1cffd1
+0, 223, 223, 1, 152064, 0x3c7d561b
+0, 224, 224, 1, 152064, 0xbc04130a
+0, 225, 225, 1, 152064, 0xbd2829ae
+0, 226, 226, 1, 152064, 0xdbbb9820
+0, 227, 227, 1, 152064, 0xfc3ef628
+0, 228, 228, 1, 152064, 0xd5da3ec3
+0, 229, 229, 1, 152064, 0x62d5fcc1
+0, 230, 230, 1, 152064, 0x455a8dae
+0, 231, 231, 1, 152064, 0x421c9147
+0, 232, 232, 1, 152064, 0x6a168484
+0, 233, 233, 1, 152064, 0x7ba15d32
+0, 234, 234, 1, 152064, 0xd089ed27
+0, 235, 235, 1, 152064, 0x8fc4d894
+0, 236, 236, 1, 152064, 0x99e47125
+0, 237, 237, 1, 152064, 0xf55dda68
+0, 238, 238, 1, 152064, 0x6bf06cf1
+0, 239, 239, 1, 152064, 0x7dc41a9d
+0, 240, 240, 1, 152064, 0x78b84019
+0, 241, 241, 1, 152064, 0x85ae8973
+0, 242, 242, 1, 152064, 0x7b7aeabe
+0, 243, 243, 1, 152064, 0xf9a8f6bf
+0, 244, 244, 1, 152064, 0xe195ddcd
+0, 245, 245, 1, 152064, 0x83edffe9
+0, 246, 246, 1, 152064, 0x59cce97a
+0, 247, 247, 1, 152064, 0x15268af1
+0, 248, 248, 1, 152064, 0x270cca95
+0, 249, 249, 1, 152064, 0x8bced1f9
+0, 250, 250, 1, 152064, 0x08ee5cec
+0, 251, 251, 1, 152064, 0x01e74f95
+0, 252, 252, 1, 152064, 0x7e19238f
+0, 253, 253, 1, 152064, 0x6bcb2b9d
+0, 254, 254, 1, 152064, 0x58111385
+0, 255, 255, 1, 152064, 0x6c7aa1f7
+0, 256, 256, 1, 152064, 0xb713a822
+0, 257, 257, 1, 152064, 0x1d645cee
+0, 258, 258, 1, 152064, 0x9c592969
+0, 259, 259, 1, 152064, 0x2472769e
+0, 260, 260, 1, 152064, 0x71b7a5ad
+0, 261, 261, 1, 152064, 0xc6bba1c6
+0, 262, 262, 1, 152064, 0x7351f305
+0, 263, 263, 1, 152064, 0x579edbba
+0, 264, 264, 1, 152064, 0x90eda919
+0, 265, 265, 1, 152064, 0x2833b10d
+0, 266, 266, 1, 152064, 0x4b967d65
+0, 267, 267, 1, 152064, 0x6e7d1702
+0, 268, 268, 1, 152064, 0x59dbcf5b
+0, 269, 269, 1, 152064, 0xa138847b
+0, 270, 270, 1, 152064, 0xb2414e8d
+0, 271, 271, 1, 152064, 0xb90497f6
+0, 272, 272, 1, 152064, 0xcd728159
+0, 273, 273, 1, 152064, 0x005d5bdd
+0, 274, 274, 1, 152064, 0x27c88fb6
+0, 275, 275, 1, 152064, 0x3ccb8a93
+0, 276, 276, 1, 152064, 0xc50256dd
+0, 277, 277, 1, 152064, 0x111e7dee
+0, 278, 278, 1, 152064, 0x259d4a5d
+0, 279, 279, 1, 152064, 0x9385148b
+0, 280, 280, 1, 152064, 0x74002ab0
+0, 281, 281, 1, 152064, 0xd2c74adc
+0, 282, 282, 1, 152064, 0x72854b2a
+0, 283, 283, 1, 152064, 0x638e5c08
+0, 284, 284, 1, 152064, 0x9626bbb3
+0, 285, 285, 1, 152064, 0xc107c18f
+0, 286, 286, 1, 152064, 0x8bd04578
+0, 287, 287, 1, 152064, 0xbcdb6db6
+0, 288, 288, 1, 152064, 0x9d0c81be
+0, 289, 289, 1, 152064, 0xf25106b6
+0, 290, 290, 1, 152064, 0x54c25254
+0, 291, 291, 1, 152064, 0x4bf74663
+0, 292, 292, 1, 152064, 0x0051b054
+0, 293, 293, 1, 152064, 0x5193d3d4
+0, 294, 294, 1, 152064, 0xb5d0d045
+0, 295, 295, 1, 152064, 0x350a31ca
+0, 296, 296, 1, 152064, 0xb8fb7264
+0, 297, 297, 1, 152064, 0x7fb97645
+0, 298, 298, 1, 152064, 0xcd948c41
+0, 299, 299, 1, 152064, 0x38c7570a
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
new file mode 100644
index 0000000..dbfec43
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
new file mode 100644
index 0000000..65a366e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b
new file mode 100644
index 0000000..4179ace
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xa18cfb97
+0, 1, 1, 1, 152064, 0x509b54d2
+0, 2, 2, 1, 152064, 0x1ba0fb8e
+0, 3, 3, 1, 152064, 0x43e7721f
+0, 4, 4, 1, 152064, 0xed196624
+0, 5, 5, 1, 152064, 0x4277f1e8
+0, 6, 6, 1, 152064, 0x88015cd6
+0, 7, 7, 1, 152064, 0x0f230af3
+0, 8, 8, 1, 152064, 0x91bbd664
+0, 9, 9, 1, 152064, 0x117c65dd
+0, 10, 10, 1, 152064, 0x8eebe5e8
+0, 11, 11, 1, 152064, 0xd205cc10
+0, 12, 12, 1, 152064, 0x4084a356
+0, 13, 13, 1, 152064, 0x37385081
+0, 14, 14, 1, 152064, 0xb7d34d8a
+0, 15, 15, 1, 152064, 0x96648874
+0, 16, 16, 1, 152064, 0x0623e65b
+0, 17, 17, 1, 152064, 0x7d5b0173
+0, 18, 18, 1, 152064, 0x0b6428e4
+0, 19, 19, 1, 152064, 0xf3ca22a8
+0, 20, 20, 1, 152064, 0x092e322c
+0, 21, 21, 1, 152064, 0xe82c2971
+0, 22, 22, 1, 152064, 0x29bf6111
+0, 23, 23, 1, 152064, 0x84f1ea0d
+0, 24, 24, 1, 152064, 0x45f822eb
+0, 25, 25, 1, 152064, 0x9672b2a7
+0, 26, 26, 1, 152064, 0xdb98e020
+0, 27, 27, 1, 152064, 0x729879eb
+0, 28, 28, 1, 152064, 0x3f629eae
+0, 29, 29, 1, 152064, 0x02e0ddb7
+0, 30, 30, 1, 152064, 0xbb1a0bb1
+0, 31, 31, 1, 152064, 0x9b85b55b
+0, 32, 32, 1, 152064, 0x2bae448b
+0, 33, 33, 1, 152064, 0xa8f28bfa
+0, 34, 34, 1, 152064, 0x687479da
+0, 35, 35, 1, 152064, 0xe1ec3111
+0, 36, 36, 1, 152064, 0x8afa37f1
+0, 37, 37, 1, 152064, 0x4af89faf
+0, 38, 38, 1, 152064, 0x1d9da53a
+0, 39, 39, 1, 152064, 0xdc599bcd
+0, 40, 40, 1, 152064, 0x01fb2e11
+0, 41, 41, 1, 152064, 0x2a33498e
+0, 42, 42, 1, 152064, 0x87874877
+0, 43, 43, 1, 152064, 0xdcd095c6
+0, 44, 44, 1, 152064, 0x4f14e6fb
+0, 45, 45, 1, 152064, 0x65fd165e
+0, 46, 46, 1, 152064, 0x4c267122
+0, 47, 47, 1, 152064, 0x18adf3aa
+0, 48, 48, 1, 152064, 0x74044daa
+0, 49, 49, 1, 152064, 0xa03bca1e
+0, 50, 50, 1, 152064, 0x7c1463fe
+0, 51, 51, 1, 152064, 0x688a14e3
+0, 52, 52, 1, 152064, 0x35c91c4e
+0, 53, 53, 1, 152064, 0xeaf51d07
+0, 54, 54, 1, 152064, 0xee61b9b1
+0, 55, 55, 1, 152064, 0xbab75db3
+0, 56, 56, 1, 152064, 0x199af472
+0, 57, 57, 1, 152064, 0x3bcf96db
+0, 58, 58, 1, 152064, 0x3fecdb09
+0, 59, 59, 1, 152064, 0x07be2431
+0, 60, 60, 1, 152064, 0x61432984
+0, 61, 61, 1, 152064, 0xdb12a3b9
+0, 62, 62, 1, 152064, 0xc2b8403e
+0, 63, 63, 1, 152064, 0x34c60bde
+0, 64, 64, 1, 152064, 0x08639859
+0, 65, 65, 1, 152064, 0xfc0fc556
+0, 66, 66, 1, 152064, 0x9cc27272
+0, 67, 67, 1, 152064, 0x3ef7dbb0
+0, 68, 68, 1, 152064, 0xbb74d9a3
+0, 69, 69, 1, 152064, 0x4007fc6e
+0, 70, 70, 1, 152064, 0x3d902f9b
+0, 71, 71, 1, 152064, 0xfbd0a76a
+0, 72, 72, 1, 152064, 0x4f1a4631
+0, 73, 73, 1, 152064, 0x4f58ee25
+0, 74, 74, 1, 152064, 0xd2c39501
+0, 75, 75, 1, 152064, 0x23de68d5
+0, 76, 76, 1, 152064, 0x4bf7d4ce
+0, 77, 77, 1, 152064, 0x2bdccc79
+0, 78, 78, 1, 152064, 0xc26b8f81
+0, 79, 79, 1, 152064, 0xe77fa90a
+0, 80, 80, 1, 152064, 0x48528308
+0, 81, 81, 1, 152064, 0xab19b66b
+0, 82, 82, 1, 152064, 0x04db5b4a
+0, 83, 83, 1, 152064, 0x9fade901
+0, 84, 84, 1, 152064, 0x1b7274ba
+0, 85, 85, 1, 152064, 0x387a0191
+0, 86, 86, 1, 152064, 0x2b3a8128
+0, 87, 87, 1, 152064, 0x2a0dab30
+0, 88, 88, 1, 152064, 0x5f5fc2da
+0, 89, 89, 1, 152064, 0x5a5c8150
+0, 90, 90, 1, 152064, 0xe0f5095e
+0, 91, 91, 1, 152064, 0xb87c8072
+0, 92, 92, 1, 152064, 0x08155daf
+0, 93, 93, 1, 152064, 0xc308353f
+0, 94, 94, 1, 152064, 0x2a04e8e4
+0, 95, 95, 1, 152064, 0xabe75987
+0, 96, 96, 1, 152064, 0x8733fb98
+0, 97, 97, 1, 152064, 0x810f53a0
+0, 98, 98, 1, 152064, 0xb3e4ea37
+0, 99, 99, 1, 152064, 0xb7a70980
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a
new file mode 100644
index 0000000..23ad267
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0x2744afa1
+0, 1, 1, 1, 152064, 0x17246583
+0, 2, 2, 1, 152064, 0x501836ed
+0, 3, 3, 1, 152064, 0xe90d6961
+0, 4, 4, 1, 152064, 0x27abe1ad
+0, 5, 5, 1, 152064, 0xcfc730e4
+0, 6, 6, 1, 152064, 0xeaaa83ee
+0, 7, 7, 1, 152064, 0xb5d80ebd
+0, 8, 8, 1, 152064, 0x1e1b9d03
+0, 9, 9, 1, 152064, 0x60e7cf33
+0, 10, 10, 1, 152064, 0xc44616b1
+0, 11, 11, 1, 152064, 0x0a2a5906
+0, 12, 12, 1, 152064, 0xf101309c
+0, 13, 13, 1, 152064, 0x0b57f348
+0, 14, 14, 1, 152064, 0x4f018c05
+0, 15, 15, 1, 152064, 0x22359c60
+0, 16, 16, 1, 152064, 0x020f1cc3
+0, 17, 17, 1, 152064, 0x15be3892
+0, 18, 18, 1, 152064, 0x834a2e23
+0, 19, 19, 1, 152064, 0x1176586c
+0, 20, 20, 1, 152064, 0x9cf25641
+0, 21, 21, 1, 152064, 0xc1c4051d
+0, 22, 22, 1, 152064, 0x790d8bfa
+0, 23, 23, 1, 152064, 0x4dcbe7d7
+0, 24, 24, 1, 152064, 0xe81d3b7b
+0, 25, 25, 1, 152064, 0xe9e21309
+0, 26, 26, 1, 152064, 0x22021dbc
+0, 27, 27, 1, 152064, 0x430c5ecb
+0, 28, 28, 1, 152064, 0xf524be8b
+0, 29, 29, 1, 152064, 0xa437dadc
+0, 30, 30, 1, 152064, 0xff00b440
+0, 31, 31, 1, 152064, 0x4bd1bf15
+0, 32, 32, 1, 152064, 0x1f46a3ea
+0, 33, 33, 1, 152064, 0x60b47c5e
+0, 34, 34, 1, 152064, 0x45117ac6
+0, 35, 35, 1, 152064, 0x43894fca
+0, 36, 36, 1, 152064, 0x21572b55
+0, 37, 37, 1, 152064, 0xe96def09
+0, 38, 38, 1, 152064, 0x4d2ab41f
+0, 39, 39, 1, 152064, 0x072d6b06
+0, 40, 40, 1, 152064, 0x81865687
+0, 41, 41, 1, 152064, 0x8d9a0ea6
+0, 42, 42, 1, 152064, 0x1484d3cd
+0, 43, 43, 1, 152064, 0xbdabae6b
+0, 44, 44, 1, 152064, 0x4211edbe
+0, 45, 45, 1, 152064, 0xd84dad6d
+0, 46, 46, 1, 152064, 0xe4e79344
+0, 47, 47, 1, 152064, 0x9c1addd7
+0, 48, 48, 1, 152064, 0xdcf94283
+0, 49, 49, 1, 152064, 0x6bd005b2
+0, 50, 50, 1, 152064, 0x9679bd10
+0, 51, 51, 1, 152064, 0x052064ab
+0, 52, 52, 1, 152064, 0x915db3f3
+0, 53, 53, 1, 152064, 0xec2fbd58
+0, 54, 54, 1, 152064, 0x26728258
+0, 55, 55, 1, 152064, 0x2b2b617f
+0, 56, 56, 1, 152064, 0x2339eb3d
+0, 57, 57, 1, 152064, 0xcf6e6773
+0, 58, 58, 1, 152064, 0xb993efe4
+0, 59, 59, 1, 152064, 0x4054253d
+0, 60, 60, 1, 152064, 0x4befe5b5
+0, 61, 61, 1, 152064, 0x0678c0fa
+0, 62, 62, 1, 152064, 0xe3c54a03
+0, 63, 63, 1, 152064, 0xffa3210c
+0, 64, 64, 1, 152064, 0xed04b823
+0, 65, 65, 1, 152064, 0x00926457
+0, 66, 66, 1, 152064, 0xd56aaaf0
+0, 67, 67, 1, 152064, 0x6047ef6e
+0, 68, 68, 1, 152064, 0x44316d07
+0, 69, 69, 1, 152064, 0xe8a879b7
+0, 70, 70, 1, 152064, 0x1856cd86
+0, 71, 71, 1, 152064, 0x6528349a
+0, 72, 72, 1, 152064, 0xdeff676e
+0, 73, 73, 1, 152064, 0xda412e47
+0, 74, 74, 1, 152064, 0xa2c2a96f
+0, 75, 75, 1, 152064, 0xc703b8cd
+0, 76, 76, 1, 152064, 0x20b0650b
+0, 77, 77, 1, 152064, 0x8c14faa5
+0, 78, 78, 1, 152064, 0xa442706c
+0, 79, 79, 1, 152064, 0x6e456137
+0, 80, 80, 1, 152064, 0x6dde11c6
+0, 81, 81, 1, 152064, 0xb017978a
+0, 82, 82, 1, 152064, 0xc0bad34b
+0, 83, 83, 1, 152064, 0x8bd439ee
+0, 84, 84, 1, 152064, 0xa92735e4
+0, 85, 85, 1, 152064, 0x1623f501
+0, 86, 86, 1, 152064, 0x5be980b2
+0, 87, 87, 1, 152064, 0x4306b9bf
+0, 88, 88, 1, 152064, 0xb4f18976
+0, 89, 89, 1, 152064, 0x4ffb9b46
+0, 90, 90, 1, 152064, 0x23082275
+0, 91, 91, 1, 152064, 0xc7f0e087
+0, 92, 92, 1, 152064, 0x68b95327
+0, 93, 93, 1, 152064, 0xd030a8e4
+0, 94, 94, 1, 152064, 0xf8f9615c
+0, 95, 95, 1, 152064, 0x1b26fe3e
+0, 96, 96, 1, 152064, 0x3381608d
+0, 97, 97, 1, 152064, 0x9939d49d
+0, 98, 98, 1, 152064, 0x575f4f94
+0, 99, 99, 1, 152064, 0x436c581c
+0, 100, 100, 1, 152064, 0x8f47aa58
+0, 101, 101, 1, 152064, 0xd251d95a
+0, 102, 102, 1, 152064, 0x3c33b32c
+0, 103, 103, 1, 152064, 0xa1e19413
+0, 104, 104, 1, 152064, 0x8d95cbad
+0, 105, 105, 1, 152064, 0x98cbd35e
+0, 106, 106, 1, 152064, 0xceb81a0f
+0, 107, 107, 1, 152064, 0x5490fab1
+0, 108, 108, 1, 152064, 0x8e57a38c
+0, 109, 109, 1, 152064, 0xc379517a
+0, 110, 110, 1, 152064, 0xafc4f747
+0, 111, 111, 1, 152064, 0xbc9c9be4
+0, 112, 112, 1, 152064, 0xd602b2f5
+0, 113, 113, 1, 152064, 0x8d85a450
+0, 114, 114, 1, 152064, 0x48183c74
+0, 115, 115, 1, 152064, 0xd1725590
+0, 116, 116, 1, 152064, 0x5ef42ed7
+0, 117, 117, 1, 152064, 0xad3a3883
+0, 118, 118, 1, 152064, 0x7a3e0ddd
+0, 119, 119, 1, 152064, 0x59bdfd38
+0, 120, 120, 1, 152064, 0x5ac3ba9f
+0, 121, 121, 1, 152064, 0x266cbd00
+0, 122, 122, 1, 152064, 0x97d29e00
+0, 123, 123, 1, 152064, 0x620774c2
+0, 124, 124, 1, 152064, 0xaae8b96f
+0, 125, 125, 1, 152064, 0x5f6bdfb6
+0, 126, 126, 1, 152064, 0xb239da53
+0, 127, 127, 1, 152064, 0x654b5680
+0, 128, 128, 1, 152064, 0xd796b723
+0, 129, 129, 1, 152064, 0xd5c84a81
+0, 130, 130, 1, 152064, 0x2a761652
+0, 131, 131, 1, 152064, 0x1137e145
+0, 132, 132, 1, 152064, 0x1a9a451b
+0, 133, 133, 1, 152064, 0x5ca751c4
+0, 134, 134, 1, 152064, 0x074acec7
+0, 135, 135, 1, 152064, 0x9ddfe77d
+0, 136, 136, 1, 152064, 0xfb211c29
+0, 137, 137, 1, 152064, 0x681ad4dd
+0, 138, 138, 1, 152064, 0x702c12cc
+0, 139, 139, 1, 152064, 0x556c5101
+0, 140, 140, 1, 152064, 0x39d4bb54
+0, 141, 141, 1, 152064, 0xa3a118d6
+0, 142, 142, 1, 152064, 0xb78b7db1
+0, 143, 143, 1, 152064, 0x4e20eed5
+0, 144, 144, 1, 152064, 0x6555a9df
+0, 145, 145, 1, 152064, 0xb607a9a4
+0, 146, 146, 1, 152064, 0x3cf96a94
+0, 147, 147, 1, 152064, 0xb2679007
+0, 148, 148, 1, 152064, 0xf09d5b85
+0, 149, 149, 1, 152064, 0x3961ba07
+0, 150, 150, 1, 152064, 0x0c28363a
+0, 151, 151, 1, 152064, 0x0a017c2d
+0, 152, 152, 1, 152064, 0x3a661de3
+0, 153, 153, 1, 152064, 0xf8d1bdee
+0, 154, 154, 1, 152064, 0x6f47791b
+0, 155, 155, 1, 152064, 0xe05b22c6
+0, 156, 156, 1, 152064, 0x7cc93bb0
+0, 157, 157, 1, 152064, 0xeb90c3d8
+0, 158, 158, 1, 152064, 0x1a1eac98
+0, 159, 159, 1, 152064, 0x92985671
+0, 160, 160, 1, 152064, 0x2fe3ce53
+0, 161, 161, 1, 152064, 0x61def691
+0, 162, 162, 1, 152064, 0x90820730
+0, 163, 163, 1, 152064, 0x17630372
+0, 164, 164, 1, 152064, 0xaf6cea12
+0, 165, 165, 1, 152064, 0xfe3b7ecc
+0, 166, 166, 1, 152064, 0x904a5b2e
+0, 167, 167, 1, 152064, 0x0d88d5f2
+0, 168, 168, 1, 152064, 0x498d22b1
+0, 169, 169, 1, 152064, 0x56baba83
+0, 170, 170, 1, 152064, 0xda4d6dfa
+0, 171, 171, 1, 152064, 0xaa38cbdd
+0, 172, 172, 1, 152064, 0x4077f15d
+0, 173, 173, 1, 152064, 0x7e006ec2
+0, 174, 174, 1, 152064, 0x59964a89
+0, 175, 175, 1, 152064, 0x04c078e3
+0, 176, 176, 1, 152064, 0x7a5faf97
+0, 177, 177, 1, 152064, 0xc517b3e9
+0, 178, 178, 1, 152064, 0xfcc81af5
+0, 179, 179, 1, 152064, 0xdcb44f62
+0, 180, 180, 1, 152064, 0x2a080b72
+0, 181, 181, 1, 152064, 0x91f88c67
+0, 182, 182, 1, 152064, 0xd39caf81
+0, 183, 183, 1, 152064, 0x0764ae31
+0, 184, 184, 1, 152064, 0x0ddb82ed
+0, 185, 185, 1, 152064, 0xed6d17e4
+0, 186, 186, 1, 152064, 0xb4f74712
+0, 187, 187, 1, 152064, 0x23a20787
+0, 188, 188, 1, 152064, 0x853e7b33
+0, 189, 189, 1, 152064, 0xc6bac173
+0, 190, 190, 1, 152064, 0xb590ec15
+0, 191, 191, 1, 152064, 0xfdd2943c
+0, 192, 192, 1, 152064, 0xba5d1160
+0, 193, 193, 1, 152064, 0xe732c5a7
+0, 194, 194, 1, 152064, 0x279f6ce9
+0, 195, 195, 1, 152064, 0xb3835829
+0, 196, 196, 1, 152064, 0x0901b2a1
+0, 197, 197, 1, 152064, 0x3df2b8f8
+0, 198, 198, 1, 152064, 0x374496a4
+0, 199, 199, 1, 152064, 0x1bc6a4ae
+0, 200, 200, 1, 152064, 0xdb4b372e
+0, 201, 201, 1, 152064, 0x8c11c214
+0, 202, 202, 1, 152064, 0xd2d5c093
+0, 203, 203, 1, 152064, 0x8dda094e
+0, 204, 204, 1, 152064, 0x9b2cc401
+0, 205, 205, 1, 152064, 0x1a3b49d5
+0, 206, 206, 1, 152064, 0xaf5342ff
+0, 207, 207, 1, 152064, 0x74c0de83
+0, 208, 208, 1, 152064, 0xcf486137
+0, 209, 209, 1, 152064, 0xcf005b3b
+0, 210, 210, 1, 152064, 0x86a64c55
+0, 211, 211, 1, 152064, 0xdd3f7ae9
+0, 212, 212, 1, 152064, 0xb0d01e53
+0, 213, 213, 1, 152064, 0x83219065
+0, 214, 214, 1, 152064, 0x17a35d27
+0, 215, 215, 1, 152064, 0xf92645b5
+0, 216, 216, 1, 152064, 0x8322bdbf
+0, 217, 217, 1, 152064, 0xd589f6a2
+0, 218, 218, 1, 152064, 0x80a62d9e
+0, 219, 219, 1, 152064, 0x05b3e0d1
+0, 220, 220, 1, 152064, 0xd657aa0b
+0, 221, 221, 1, 152064, 0xec5ac2dd
+0, 222, 222, 1, 152064, 0xbf0ff969
+0, 223, 223, 1, 152064, 0xc34a5140
+0, 224, 224, 1, 152064, 0x814705c4
+0, 225, 225, 1, 152064, 0xe9592008
+0, 226, 226, 1, 152064, 0xf12c933c
+0, 227, 227, 1, 152064, 0x2daee178
+0, 228, 228, 1, 152064, 0xa2573028
+0, 229, 229, 1, 152064, 0x6109f58d
+0, 230, 230, 1, 152064, 0x64ab8ce4
+0, 231, 231, 1, 152064, 0x13a88b6e
+0, 232, 232, 1, 152064, 0x8f0181a9
+0, 233, 233, 1, 152064, 0xd5295fd4
+0, 234, 234, 1, 152064, 0xfdbeeb0d
+0, 235, 235, 1, 152064, 0x05ecd231
+0, 236, 236, 1, 152064, 0x48d164cd
+0, 237, 237, 1, 152064, 0xc279cf63
+0, 238, 238, 1, 152064, 0x1d5e6a03
+0, 239, 239, 1, 152064, 0xd9dc1807
+0, 240, 240, 1, 152064, 0xbcc83676
+0, 241, 241, 1, 152064, 0x65a9811e
+0, 242, 242, 1, 152064, 0x3ccfe5a8
+0, 243, 243, 1, 152064, 0x2f2ff051
+0, 244, 244, 1, 152064, 0x9193e093
+0, 245, 245, 1, 152064, 0x9a30fdc6
+0, 246, 246, 1, 152064, 0x90b7ea10
+0, 247, 247, 1, 152064, 0x3291910c
+0, 248, 248, 1, 152064, 0x2335d186
+0, 249, 249, 1, 152064, 0x2890cf1d
+0, 250, 250, 1, 152064, 0x8c8b6245
+0, 251, 251, 1, 152064, 0x24b84eda
+0, 252, 252, 1, 152064, 0x04a12446
+0, 253, 253, 1, 152064, 0xd9d91d51
+0, 254, 254, 1, 152064, 0xbf450adf
+0, 255, 255, 1, 152064, 0xa19a9a41
+0, 256, 256, 1, 152064, 0x2211ab01
+0, 257, 257, 1, 152064, 0x8fe85430
+0, 258, 258, 1, 152064, 0x5a152861
+0, 259, 259, 1, 152064, 0x7fe76995
+0, 260, 260, 1, 152064, 0x508b99cd
+0, 261, 261, 1, 152064, 0x92e79437
+0, 262, 262, 1, 152064, 0x8572eac9
+0, 263, 263, 1, 152064, 0x42e3d513
+0, 264, 264, 1, 152064, 0x6bee9e38
+0, 265, 265, 1, 152064, 0x2858ad4b
+0, 266, 266, 1, 152064, 0x96d87d00
+0, 267, 267, 1, 152064, 0x749f1032
+0, 268, 268, 1, 152064, 0x668fca6c
+0, 269, 269, 1, 152064, 0x11d278d9
+0, 270, 270, 1, 152064, 0x10fd46ea
+0, 271, 271, 1, 152064, 0xc8b193c8
+0, 272, 272, 1, 152064, 0x035e7d02
+0, 273, 273, 1, 152064, 0x067f583c
+0, 274, 274, 1, 152064, 0xd9648a1e
+0, 275, 275, 1, 152064, 0x92487b7e
+0, 276, 276, 1, 152064, 0xc7b35421
+0, 277, 277, 1, 152064, 0x2ed57c1c
+0, 278, 278, 1, 152064, 0xefe24c5f
+0, 279, 279, 1, 152064, 0x8df0118b
+0, 280, 280, 1, 152064, 0x18f0278d
+0, 281, 281, 1, 152064, 0x63ac45ad
+0, 282, 282, 1, 152064, 0xd79849f0
+0, 283, 283, 1, 152064, 0x1f1d4dab
+0, 284, 284, 1, 152064, 0x736fb5b8
+0, 285, 285, 1, 152064, 0xc24eb80c
+0, 286, 286, 1, 152064, 0x64ca3b11
+0, 287, 287, 1, 152064, 0x35d8674c
+0, 288, 288, 1, 152064, 0x3c5a7b51
+0, 289, 289, 1, 152064, 0x97550b81
+0, 290, 290, 1, 152064, 0x731454b5
+0, 291, 291, 1, 152064, 0x01de43bc
+0, 292, 292, 1, 152064, 0xbda7afae
+0, 293, 293, 1, 152064, 0xeb34d714
+0, 294, 294, 1, 152064, 0x1260cc98
+0, 295, 295, 1, 152064, 0x7e592c36
+0, 296, 296, 1, 152064, 0x40b3676e
+0, 297, 297, 1, 152064, 0x8c9d6b94
+0, 298, 298, 1, 152064, 0xc7988665
+0, 299, 299, 1, 152064, 0xf2994d52
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i1_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i1_panasonic_a
new file mode 100644
index 0000000..91e3436
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i1_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 2764800, 0xcc4df07d
+0, 1, 1, 1, 2764800, 0x85f9e6d4
+0, 2, 2, 1, 2764800, 0x23ffe90d
+0, 3, 3, 1, 2764800, 0xf0a6d453
+0, 4, 4, 1, 2764800, 0x913a6392
+0, 5, 5, 1, 2764800, 0xcc5f9736
+0, 6, 6, 1, 2764800, 0x43f9f9ce
+0, 7, 7, 1, 2764800, 0xc874b44e
+0, 8, 8, 1, 2764800, 0x83b665e6
+0, 9, 9, 1, 2764800, 0x5ea2e31e
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i2_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i2_panasonic_a
new file mode 100644
index 0000000..1d6d4b5
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i2_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 2764800, 0x4f710132
+0, 1, 1, 1, 2764800, 0x57e5b713
+0, 2, 2, 1, 2764800, 0xcca01477
+0, 3, 3, 1, 2764800, 0xa19a95cd
+0, 4, 4, 1, 2764800, 0x700a757d
+0, 5, 5, 1, 2764800, 0xd8c6f60f
+0, 6, 6, 1, 2764800, 0x95a1bbc7
+0, 7, 7, 1, 2764800, 0x0582077a
+0, 8, 8, 1, 2764800, 0x91595f91
+0, 9, 9, 1, 2764800, 0xf5fe034a
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i3_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i3_panasonic_a
new file mode 100644
index 0000000..a09e397
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i3_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 2764800, 0xda69f69e
+0, 1, 1, 1, 2764800, 0x29ed832f
+0, 2, 2, 1, 2764800, 0xb3244cc4
+0, 3, 3, 1, 2764800, 0xe41a312c
+0, 4, 4, 1, 2764800, 0xac0b344b
+0, 5, 5, 1, 2764800, 0xc585aa20
+0, 6, 6, 1, 2764800, 0x0952054c
+0, 7, 7, 1, 2764800, 0xd1a02f87
+0, 8, 8, 1, 2764800, 0xfcbfe87c
+0, 9, 9, 1, 2764800, 0xe4e9b8a2
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i4_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i4_panasonic_a
new file mode 100644
index 0000000..adec664
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i4_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 6220800, 0xca2a2a5e
+0, 1, 1, 1, 6220800, 0x8009a65e
+0, 2, 2, 1, 6220800, 0x63e72b3b
+0, 3, 3, 1, 6220800, 0x7459a1cc
+0, 4, 4, 1, 6220800, 0x02191aa9
+0, 5, 5, 1, 6220800, 0x88dca590
+0, 6, 6, 1, 6220800, 0x4484d484
+0, 7, 7, 1, 6220800, 0x8afdb53f
+0, 8, 8, 1, 6220800, 0xd3d6017a
+0, 9, 9, 1, 6220800, 0xf5162af0
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i5_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i5_panasonic_a
new file mode 100644
index 0000000..a475197
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i5_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 6220800, 0x1df58ce9
+0, 1, 1, 1, 6220800, 0x8f2859ce
+0, 2, 2, 1, 6220800, 0x229cc7ff
+0, 3, 3, 1, 6220800, 0x73e86984
+0, 4, 4, 1, 6220800, 0xb6d4504b
+0, 5, 5, 1, 6220800, 0x4e7d4883
+0, 6, 6, 1, 6220800, 0xbec3f0f7
+0, 7, 7, 1, 6220800, 0x1d9af065
+0, 8, 8, 1, 6220800, 0x44851549
+0, 9, 9, 1, 6220800, 0xfcf8728e
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i6_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i6_panasonic_a
new file mode 100644
index 0000000..25d0eec
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i6_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 6220800, 0x408daf70
+0, 1, 1, 1, 6220800, 0x59b254a3
+0, 2, 2, 1, 6220800, 0x4cf4279c
+0, 3, 3, 1, 6220800, 0x5c9437ae
+0, 4, 4, 1, 6220800, 0x986c3eb8
+0, 5, 5, 1, 6220800, 0x23fd883e
+0, 6, 6, 1, 6220800, 0x84f222fe
+0, 7, 7, 1, 6220800, 0xe7f91107
+0, 8, 8, 1, 6220800, 0xb544b31e
+0, 9, 9, 1, 6220800, 0x1ebdde56
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i7_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i7_panasonic_a
new file mode 100644
index 0000000..1090b49
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph10i7_panasonic_a
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 6220800, 0xf81873fe
+0, 1, 1, 1, 6220800, 0x7b96fbdc
+0, 2, 2, 1, 6220800, 0x75dbafc4
+0, 3, 3, 1, 6220800, 0x7524301e
+0, 4, 4, 1, 6220800, 0x0f3621ab
+0, 5, 5, 1, 6220800, 0xa5e25b35
+0, 6, 6, 1, 6220800, 0x063a8116
+0, 7, 7, 1, 6220800, 0x48ebc8ff
+0, 8, 8, 1, 6220800, 0x1f635df8
+0, 9, 9, 1, 6220800, 0xe282c8bd
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i1_panasonic_a
new file mode 100644
index 0000000..0957654
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i2_panasonic_a
new file mode 100644
index 0000000..79e69eb
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i3_panasonic_a
new file mode 100644
index 0000000..fc4cc50
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i4_panasonic_a
new file mode 100644
index 0000000..0aae9fe
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i5_panasonic_a
new file mode 100644
index 0000000..c74483c
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i6_panasonic_a
new file mode 100644
index 0000000..26d41d4
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a b/ffmpeg1/tests/ref/fate/h264-conformance-frext-pph422i7_panasonic_a
new file mode 100644
index 0000000..3f9bfed
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/fate/h264-conformance-hcbp2_hhi_a b/ffmpeg1/tests/ref/fate/h264-conformance-hcbp2_hhi_a
new file mode 100644
index 0000000..977107e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-hcbp2_hhi_a
@@ -0,0 +1,251 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xf9deb95a
+0, 1, 1, 1, 152064, 0xdce9c541
+0, 2, 2, 1, 152064, 0xc45a8a77
+0, 3, 3, 1, 152064, 0x5132a470
+0, 4, 4, 1, 152064, 0x65542c98
+0, 5, 5, 1, 152064, 0x2df95883
+0, 6, 6, 1, 152064, 0x9f4f1280
+0, 7, 7, 1, 152064, 0x11c9f32c
+0, 8, 8, 1, 152064, 0x66535f0c
+0, 9, 9, 1, 152064, 0x5b13770c
+0, 10, 10, 1, 152064, 0xadcd3278
+0, 11, 11, 1, 152064, 0x06e00e91
+0, 12, 12, 1, 152064, 0x1fa1886f
+0, 13, 13, 1, 152064, 0xd524b6a3
+0, 14, 14, 1, 152064, 0x45f82b73
+0, 15, 15, 1, 152064, 0x0fd301aa
+0, 16, 16, 1, 152064, 0x2983acdd
+0, 17, 17, 1, 152064, 0xe74004c6
+0, 18, 18, 1, 152064, 0xe279328a
+0, 19, 19, 1, 152064, 0x85be8f85
+0, 20, 20, 1, 152064, 0xec503b6b
+0, 21, 21, 1, 152064, 0x3d4495db
+0, 22, 22, 1, 152064, 0x3a9774d2
+0, 23, 23, 1, 152064, 0x80a07a42
+0, 24, 24, 1, 152064, 0x484427ce
+0, 25, 25, 1, 152064, 0x9e6b773f
+0, 26, 26, 1, 152064, 0xd3be5f07
+0, 27, 27, 1, 152064, 0x69a76c5e
+0, 28, 28, 1, 152064, 0xd448fde2
+0, 29, 29, 1, 152064, 0x04a34635
+0, 30, 30, 1, 152064, 0xd4e3e0e1
+0, 31, 31, 1, 152064, 0x2564cf13
+0, 32, 32, 1, 152064, 0x98bc5167
+0, 33, 33, 1, 152064, 0xcf06991f
+0, 34, 34, 1, 152064, 0x3edf621f
+0, 35, 35, 1, 152064, 0x47039967
+0, 36, 36, 1, 152064, 0x299636b5
+0, 37, 37, 1, 152064, 0x2bc0849d
+0, 38, 38, 1, 152064, 0xe94946a6
+0, 39, 39, 1, 152064, 0x5a5768ac
+0, 40, 40, 1, 152064, 0xfe4ce9cd
+0, 41, 41, 1, 152064, 0xbeb34b2e
+0, 42, 42, 1, 152064, 0xa26020e3
+0, 43, 43, 1, 152064, 0xb2514c55
+0, 44, 44, 1, 152064, 0x723be4b1
+0, 45, 45, 1, 152064, 0xeef4434e
+0, 46, 46, 1, 152064, 0x1237e1db
+0, 47, 47, 1, 152064, 0x4814c1fb
+0, 48, 48, 1, 152064, 0xe7544446
+0, 49, 49, 1, 152064, 0xd93a53d9
+0, 50, 50, 1, 152064, 0x90e029c6
+0, 51, 51, 1, 152064, 0xfa493dfc
+0, 52, 52, 1, 152064, 0x081fa2d9
+0, 53, 53, 1, 152064, 0x9782ef8c
+0, 54, 54, 1, 152064, 0x1daf911c
+0, 55, 55, 1, 152064, 0xc9058a57
+0, 56, 56, 1, 152064, 0x68a90f04
+0, 57, 57, 1, 152064, 0xc7115091
+0, 58, 58, 1, 152064, 0xe9731898
+0, 59, 59, 1, 152064, 0xd7bc206e
+0, 60, 60, 1, 152064, 0xf760baac
+0, 61, 61, 1, 152064, 0x6f9700e3
+0, 62, 62, 1, 152064, 0xec54b42d
+0, 63, 63, 1, 152064, 0x0dc5bf77
+0, 64, 64, 1, 152064, 0x196e33c3
+0, 65, 65, 1, 152064, 0x090cae46
+0, 66, 66, 1, 152064, 0x06897499
+0, 67, 67, 1, 152064, 0xf54cd959
+0, 68, 68, 1, 152064, 0x24167906
+0, 69, 69, 1, 152064, 0xea06e67b
+0, 70, 70, 1, 152064, 0xa97ed69c
+0, 71, 71, 1, 152064, 0x03c4ce82
+0, 72, 72, 1, 152064, 0xca864ddd
+0, 73, 73, 1, 152064, 0x1bc9956f
+0, 74, 74, 1, 152064, 0x7864908c
+0, 75, 75, 1, 152064, 0x52f3be55
+0, 76, 76, 1, 152064, 0x78b469b5
+0, 77, 77, 1, 152064, 0x8b3bb23e
+0, 78, 78, 1, 152064, 0x5bed7f47
+0, 79, 79, 1, 152064, 0x401b7e9c
+0, 80, 80, 1, 152064, 0x4cbc3193
+0, 81, 81, 1, 152064, 0xa00b7ed2
+0, 82, 82, 1, 152064, 0xda548927
+0, 83, 83, 1, 152064, 0x30a5cffb
+0, 84, 84, 1, 152064, 0x9536bdf0
+0, 85, 85, 1, 152064, 0x927e3cf4
+0, 86, 86, 1, 152064, 0x95533148
+0, 87, 87, 1, 152064, 0x763c553a
+0, 88, 88, 1, 152064, 0x7010f280
+0, 89, 89, 1, 152064, 0xa537667c
+0, 90, 90, 1, 152064, 0xe599927a
+0, 91, 91, 1, 152064, 0x72dde2ab
+0, 92, 92, 1, 152064, 0x02089d51
+0, 93, 93, 1, 152064, 0x4ca8231a
+0, 94, 94, 1, 152064, 0x90b126aa
+0, 95, 95, 1, 152064, 0x65a9260f
+0, 96, 96, 1, 152064, 0xf37cf34a
+0, 97, 97, 1, 152064, 0xf21f63f6
+0, 98, 98, 1, 152064, 0x95209e85
+0, 99, 99, 1, 152064, 0x0df00a65
+0, 100, 100, 1, 152064, 0x0ce71e2b
+0, 101, 101, 1, 152064, 0x6cbf8843
+0, 102, 102, 1, 152064, 0x17f29296
+0, 103, 103, 1, 152064, 0x88278aa9
+0, 104, 104, 1, 152064, 0x84ad74d0
+0, 105, 105, 1, 152064, 0xda48eea1
+0, 106, 106, 1, 152064, 0xcaf33b25
+0, 107, 107, 1, 152064, 0x9b288538
+0, 108, 108, 1, 152064, 0xd1b7561f
+0, 109, 109, 1, 152064, 0x4bfcbdac
+0, 110, 110, 1, 152064, 0x1dd5b920
+0, 111, 111, 1, 152064, 0xde50ceeb
+0, 112, 112, 1, 152064, 0xa552963b
+0, 113, 113, 1, 152064, 0xb2f5ef15
+0, 114, 114, 1, 152064, 0x5abf061c
+0, 115, 115, 1, 152064, 0x9b4c45f6
+0, 116, 116, 1, 152064, 0xe61d1b02
+0, 117, 117, 1, 152064, 0xe5728c4e
+0, 118, 118, 1, 152064, 0xcb944655
+0, 119, 119, 1, 152064, 0x648b951a
+0, 120, 120, 1, 152064, 0xc3671a38
+0, 121, 121, 1, 152064, 0x7d3fbcf3
+0, 122, 122, 1, 152064, 0x3c0ba1c5
+0, 123, 123, 1, 152064, 0xf5ac0d3a
+0, 124, 124, 1, 152064, 0x87faf534
+0, 125, 125, 1, 152064, 0xb3f05d11
+0, 126, 126, 1, 152064, 0x825e3423
+0, 127, 127, 1, 152064, 0xade45431
+0, 128, 128, 1, 152064, 0x7715d496
+0, 129, 129, 1, 152064, 0x983c45fa
+0, 130, 130, 1, 152064, 0xe8d621d8
+0, 131, 131, 1, 152064, 0x71ec7553
+0, 132, 132, 1, 152064, 0xb20d5556
+0, 133, 133, 1, 152064, 0xfa6bd00b
+0, 134, 134, 1, 152064, 0x2a18acf1
+0, 135, 135, 1, 152064, 0xa241c342
+0, 136, 136, 1, 152064, 0xa3597426
+0, 137, 137, 1, 152064, 0x6f72ff61
+0, 138, 138, 1, 152064, 0xceffe8af
+0, 139, 139, 1, 152064, 0x76853b09
+0, 140, 140, 1, 152064, 0x3f58cc0c
+0, 141, 141, 1, 152064, 0x16080a6d
+0, 142, 142, 1, 152064, 0x752ae0aa
+0, 143, 143, 1, 152064, 0x7dadf81b
+0, 144, 144, 1, 152064, 0x9828aa7c
+0, 145, 145, 1, 152064, 0x05a51e04
+0, 146, 146, 1, 152064, 0xf9a92ae6
+0, 147, 147, 1, 152064, 0xce0169f9
+0, 148, 148, 1, 152064, 0x784d405b
+0, 149, 149, 1, 152064, 0x531b9869
+0, 150, 150, 1, 152064, 0xdf6a6129
+0, 151, 151, 1, 152064, 0x5cdf5aac
+0, 152, 152, 1, 152064, 0x28dd0050
+0, 153, 153, 1, 152064, 0x76bd5ea7
+0, 154, 154, 1, 152064, 0xcf3036bf
+0, 155, 155, 1, 152064, 0x20365c0d
+0, 156, 156, 1, 152064, 0x171ad303
+0, 157, 157, 1, 152064, 0x1388416d
+0, 158, 158, 1, 152064, 0x9b92f171
+0, 159, 159, 1, 152064, 0xe2bc377a
+0, 160, 160, 1, 152064, 0x90639e6c
+0, 161, 161, 1, 152064, 0x1b50e759
+0, 162, 162, 1, 152064, 0x43a9b680
+0, 163, 163, 1, 152064, 0xb1780015
+0, 164, 164, 1, 152064, 0x9a6783a6
+0, 165, 165, 1, 152064, 0x1471e2e4
+0, 166, 166, 1, 152064, 0xb1899be2
+0, 167, 167, 1, 152064, 0x2facd37c
+0, 168, 168, 1, 152064, 0x197361fc
+0, 169, 169, 1, 152064, 0x823ffce1
+0, 170, 170, 1, 152064, 0x9ce3cb14
+0, 171, 171, 1, 152064, 0x16620232
+0, 172, 172, 1, 152064, 0x4fedb29e
+0, 173, 173, 1, 152064, 0xb45cd8b4
+0, 174, 174, 1, 152064, 0x84387e9d
+0, 175, 175, 1, 152064, 0xd5017ca0
+0, 176, 176, 1, 152064, 0x106002a5
+0, 177, 177, 1, 152064, 0x20c44a82
+0, 178, 178, 1, 152064, 0x0694fbb2
+0, 179, 179, 1, 152064, 0x849cfdf3
+0, 180, 180, 1, 152064, 0xef827c85
+0, 181, 181, 1, 152064, 0xc04ecde3
+0, 182, 182, 1, 152064, 0x2f81bee2
+0, 183, 183, 1, 152064, 0x86dbe8cc
+0, 184, 184, 1, 152064, 0x9ee67bcd
+0, 185, 185, 1, 152064, 0xa2618f39
+0, 186, 186, 1, 152064, 0x35a40f36
+0, 187, 187, 1, 152064, 0x9f6b0b54
+0, 188, 188, 1, 152064, 0xcee2c0b5
+0, 189, 189, 1, 152064, 0x3c3cb8f3
+0, 190, 190, 1, 152064, 0xf3ab2e21
+0, 191, 191, 1, 152064, 0xc51afcbc
+0, 192, 192, 1, 152064, 0x272bbb4d
+0, 193, 193, 1, 152064, 0x1448f2cc
+0, 194, 194, 1, 152064, 0xd286e217
+0, 195, 195, 1, 152064, 0xd6abf89e
+0, 196, 196, 1, 152064, 0xf908bb8a
+0, 197, 197, 1, 152064, 0x8a17ddd6
+0, 198, 198, 1, 152064, 0xc30d9039
+0, 199, 199, 1, 152064, 0xb8c6a557
+0, 200, 200, 1, 152064, 0xf1675620
+0, 201, 201, 1, 152064, 0xbb41b898
+0, 202, 202, 1, 152064, 0x662298b2
+0, 203, 203, 1, 152064, 0x0f8271aa
+0, 204, 204, 1, 152064, 0x34d90197
+0, 205, 205, 1, 152064, 0x15254eb2
+0, 206, 206, 1, 152064, 0x4d942235
+0, 207, 207, 1, 152064, 0xa2cefa6a
+0, 208, 208, 1, 152064, 0x909a7050
+0, 209, 209, 1, 152064, 0x219abae7
+0, 210, 210, 1, 152064, 0x0166bc37
+0, 211, 211, 1, 152064, 0x8b960965
+0, 212, 212, 1, 152064, 0x71f6af2a
+0, 213, 213, 1, 152064, 0x8d69f377
+0, 214, 214, 1, 152064, 0x27b1a17d
+0, 215, 215, 1, 152064, 0x6b09b049
+0, 216, 216, 1, 152064, 0x733472e7
+0, 217, 217, 1, 152064, 0x986efe32
+0, 218, 218, 1, 152064, 0x99a37cc5
+0, 219, 219, 1, 152064, 0x82433283
+0, 220, 220, 1, 152064, 0x4698c0bd
+0, 221, 221, 1, 152064, 0x1f6ce7f9
+0, 222, 222, 1, 152064, 0x6e398d44
+0, 223, 223, 1, 152064, 0x14ae5d85
+0, 224, 224, 1, 152064, 0xef2f1e28
+0, 225, 225, 1, 152064, 0x9dfe46ae
+0, 226, 226, 1, 152064, 0x91997a8f
+0, 227, 227, 1, 152064, 0x6c828dda
+0, 228, 228, 1, 152064, 0x723f3f5c
+0, 229, 229, 1, 152064, 0xcb86883d
+0, 230, 230, 1, 152064, 0x1c25cbed
+0, 231, 231, 1, 152064, 0x3cad814a
+0, 232, 232, 1, 152064, 0xe0d8f5e7
+0, 233, 233, 1, 152064, 0xaefb35cc
+0, 234, 234, 1, 152064, 0x5dfc2181
+0, 235, 235, 1, 152064, 0x13f26603
+0, 236, 236, 1, 152064, 0x97a3dd0d
+0, 237, 237, 1, 152064, 0xbecff890
+0, 238, 238, 1, 152064, 0xd226badc
+0, 239, 239, 1, 152064, 0x7f4adbd1
+0, 240, 240, 1, 152064, 0x5da1565a
+0, 241, 241, 1, 152064, 0x35cbac9c
+0, 242, 242, 1, 152064, 0xf1b26f8a
+0, 243, 243, 1, 152064, 0xc8d08d07
+0, 244, 244, 1, 152064, 0xa9f643c2
+0, 245, 245, 1, 152064, 0xc420b0ba
+0, 246, 246, 1, 152064, 0x8871a4f5
+0, 247, 247, 1, 152064, 0x4e7647b4
+0, 248, 248, 1, 152064, 0xb4dad812
+0, 249, 249, 1, 152064, 0x6a3d00d5
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-hcmp1_hhi_a b/ffmpeg1/tests/ref/fate/h264-conformance-hcmp1_hhi_a
new file mode 100644
index 0000000..be619da
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-hcmp1_hhi_a
@@ -0,0 +1,251 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 0xda244f3f
+0, 1, 1, 1, 152064, 0x35a1cb02
+0, 2, 2, 1, 152064, 0xa729d9ca
+0, 3, 3, 1, 152064, 0x69d90602
+0, 4, 4, 1, 152064, 0x4ccdae72
+0, 5, 5, 1, 152064, 0x06f9d8b9
+0, 6, 6, 1, 152064, 0x0a14a736
+0, 7, 7, 1, 152064, 0xc344b167
+0, 8, 8, 1, 152064, 0xf3303e92
+0, 9, 9, 1, 152064, 0xbe28813f
+0, 10, 10, 1, 152064, 0x971f4980
+0, 11, 11, 1, 152064, 0x69124d31
+0, 12, 12, 1, 152064, 0x6d93e7f2
+0, 13, 13, 1, 152064, 0x5c1315e4
+0, 14, 14, 1, 152064, 0xb011cfe4
+0, 15, 15, 1, 152064, 0x65a0d147
+0, 16, 16, 1, 152064, 0x463d8c39
+0, 17, 17, 1, 152064, 0x15f2a757
+0, 18, 18, 1, 152064, 0xc2418f1f
+0, 19, 19, 1, 152064, 0x7a48b94c
+0, 20, 20, 1, 152064, 0x1c079ec9
+0, 21, 21, 1, 152064, 0x348ced32
+0, 22, 22, 1, 152064, 0x6014d525
+0, 23, 23, 1, 152064, 0x146ed41f
+0, 24, 24, 1, 152064, 0x543177e6
+0, 25, 25, 1, 152064, 0x79a4b44e
+0, 26, 26, 1, 152064, 0x4401a7ae
+0, 27, 27, 1, 152064, 0xc0aec3c1
+0, 28, 28, 1, 152064, 0x92348852
+0, 29, 29, 1, 152064, 0x90eece70
+0, 30, 30, 1, 152064, 0x19efd00f
+0, 31, 31, 1, 152064, 0x608912ac
+0, 32, 32, 1, 152064, 0xa707bdb1
+0, 33, 33, 1, 152064, 0x926e1ffe
+0, 34, 34, 1, 152064, 0x56863ca8
+0, 35, 35, 1, 152064, 0xe18e81b4
+0, 36, 36, 1, 152064, 0xf17466f2
+0, 37, 37, 1, 152064, 0x2281feef
+0, 38, 38, 1, 152064, 0x33603b66
+0, 39, 39, 1, 152064, 0xe30fad28
+0, 40, 40, 1, 152064, 0x66efb21e
+0, 41, 41, 1, 152064, 0x405f32d6
+0, 42, 42, 1, 152064, 0xe90f262b
+0, 43, 43, 1, 152064, 0xf85144b0
+0, 44, 44, 1, 152064, 0xcff4feab
+0, 45, 45, 1, 152064, 0x02b63e49
+0, 46, 46, 1, 152064, 0x91d9ff77
+0, 47, 47, 1, 152064, 0x2c6c0d2a
+0, 48, 48, 1, 152064, 0xacad9e66
+0, 49, 49, 1, 152064, 0x83951353
+0, 50, 50, 1, 152064, 0x549c16e4
+0, 51, 51, 1, 152064, 0xcad9610c
+0, 52, 52, 1, 152064, 0x264e4b57
+0, 53, 53, 1, 152064, 0x9758afe8
+0, 54, 54, 1, 152064, 0x0273a81d
+0, 55, 55, 1, 152064, 0x31c6f1a0
+0, 56, 56, 1, 152064, 0x80d1c9cf
+0, 57, 57, 1, 152064, 0x41b861f7
+0, 58, 58, 1, 152064, 0xad416fe7
+0, 59, 59, 1, 152064, 0xdde59bf0
+0, 60, 60, 1, 152064, 0x886c491c
+0, 61, 61, 1, 152064, 0x4bf4a21f
+0, 62, 62, 1, 152064, 0x2581a06e
+0, 63, 63, 1, 152064, 0x8188cf9b
+0, 64, 64, 1, 152064, 0xbfaf82ce
+0, 65, 65, 1, 152064, 0xed9ef8b1
+0, 66, 66, 1, 152064, 0xf5f4e0c0
+0, 67, 67, 1, 152064, 0xa24421ac
+0, 68, 68, 1, 152064, 0xf0cdde38
+0, 69, 69, 1, 152064, 0x7f211f2c
+0, 70, 70, 1, 152064, 0x241ff38b
+0, 71, 71, 1, 152064, 0x19bc25a6
+0, 72, 72, 1, 152064, 0xd9d5ede9
+0, 73, 73, 1, 152064, 0x88f98579
+0, 74, 74, 1, 152064, 0x630da1aa
+0, 75, 75, 1, 152064, 0x19abf44f
+0, 76, 76, 1, 152064, 0x3a95d341
+0, 77, 77, 1, 152064, 0xdeb9333e
+0, 78, 78, 1, 152064, 0x0c994783
+0, 79, 79, 1, 152064, 0xb58b7d26
+0, 80, 80, 1, 152064, 0x6e392b24
+0, 81, 81, 1, 152064, 0x1f7e2d63
+0, 82, 82, 1, 152064, 0x732342d3
+0, 83, 83, 1, 152064, 0xbda4a761
+0, 84, 84, 1, 152064, 0xdc387777
+0, 85, 85, 1, 152064, 0xd5d00469
+0, 86, 86, 1, 152064, 0xc840cf6d
+0, 87, 87, 1, 152064, 0x3dfef3d9
+0, 88, 88, 1, 152064, 0xf731594f
+0, 89, 89, 1, 152064, 0x126fef41
+0, 90, 90, 1, 152064, 0x5705b1e3
+0, 91, 91, 1, 152064, 0xa8ecbe94
+0, 92, 92, 1, 152064, 0xcbcd0e48
+0, 93, 93, 1, 152064, 0x3da860da
+0, 94, 94, 1, 152064, 0x97882d5f
+0, 95, 95, 1, 152064, 0x19803d16
+0, 96, 96, 1, 152064, 0xa639b969
+0, 97, 97, 1, 152064, 0xc0a00bc3
+0, 98, 98, 1, 152064, 0xb12f0617
+0, 99, 99, 1, 152064, 0x0e53481c
+0, 100, 100, 1, 152064, 0x1fa0e47d
+0, 101, 101, 1, 152064, 0x818119fa
+0, 102, 102, 1, 152064, 0xc28ffc3e
+0, 103, 103, 1, 152064, 0x8abdfb3c
+0, 104, 104, 1, 152064, 0x670cb951
+0, 105, 105, 1, 152064, 0x172808bd
+0, 106, 106, 1, 152064, 0x6be1ea7f
+0, 107, 107, 1, 152064, 0x05dbfadc
+0, 108, 108, 1, 152064, 0xcfcfbcec
+0, 109, 109, 1, 152064, 0x9306e1d2
+0, 110, 110, 1, 152064, 0xcf3ccc54
+0, 111, 111, 1, 152064, 0xf36ad41a
+0, 112, 112, 1, 152064, 0x751b835b
+0, 113, 113, 1, 152064, 0x7ebed47b
+0, 114, 114, 1, 152064, 0x9659d022
+0, 115, 115, 1, 152064, 0xef7701ae
+0, 116, 116, 1, 152064, 0x5cdee3b0
+0, 117, 117, 1, 152064, 0xf6c3ed42
+0, 118, 118, 1, 152064, 0x412ee2fb
+0, 119, 119, 1, 152064, 0x309cd2bd
+0, 120, 120, 1, 152064, 0x50f09af5
+0, 121, 121, 1, 152064, 0x4a05087a
+0, 122, 122, 1, 152064, 0xaedc2125
+0, 123, 123, 1, 152064, 0x54e2692a
+0, 124, 124, 1, 152064, 0x0403590c
+0, 125, 125, 1, 152064, 0x8a4c9833
+0, 126, 126, 1, 152064, 0x36b6893e
+0, 127, 127, 1, 152064, 0x21fd9204
+0, 128, 128, 1, 152064, 0xa1cd3bc7
+0, 129, 129, 1, 152064, 0x3cfa3d18
+0, 130, 130, 1, 152064, 0xb5f7fefd
+0, 131, 131, 1, 152064, 0x133cf831
+0, 132, 132, 1, 152064, 0xcaabdd54
+0, 133, 133, 1, 152064, 0xcab45366
+0, 134, 134, 1, 152064, 0x8b6f4c90
+0, 135, 135, 1, 152064, 0x4de74903
+0, 136, 136, 1, 152064, 0x2dde0c4f
+0, 137, 137, 1, 152064, 0x09364c1d
+0, 138, 138, 1, 152064, 0x610318b9
+0, 139, 139, 1, 152064, 0xd85109d5
+0, 140, 140, 1, 152064, 0x27a1eac7
+0, 141, 141, 1, 152064, 0xafd50e70
+0, 142, 142, 1, 152064, 0x96ac088c
+0, 143, 143, 1, 152064, 0x1332091c
+0, 144, 144, 1, 152064, 0x9d38ce90
+0, 145, 145, 1, 152064, 0xeff10d8e
+0, 146, 146, 1, 152064, 0x6c320de3
+0, 147, 147, 1, 152064, 0xeb683437
+0, 148, 148, 1, 152064, 0xe8a73715
+0, 149, 149, 1, 152064, 0x53a27669
+0, 150, 150, 1, 152064, 0xd5665cdc
+0, 151, 151, 1, 152064, 0x76bc4f86
+0, 152, 152, 1, 152064, 0xb5282913
+0, 153, 153, 1, 152064, 0xf788398b
+0, 154, 154, 1, 152064, 0xa2a74268
+0, 155, 155, 1, 152064, 0x1e8c57c4
+0, 156, 156, 1, 152064, 0x12c0542f
+0, 157, 157, 1, 152064, 0x8dbe9945
+0, 158, 158, 1, 152064, 0x0f7583cd
+0, 159, 159, 1, 152064, 0x814e9e0b
+0, 160, 160, 1, 152064, 0x39575c04
+0, 161, 161, 1, 152064, 0x75a07f38
+0, 162, 162, 1, 152064, 0x8a6247c1
+0, 163, 163, 1, 152064, 0x0f8d606e
+0, 164, 164, 1, 152064, 0x7dcc4169
+0, 165, 165, 1, 152064, 0x039d6df2
+0, 166, 166, 1, 152064, 0x16b779c4
+0, 167, 167, 1, 152064, 0x8b3a9767
+0, 168, 168, 1, 152064, 0x281e6d83
+0, 169, 169, 1, 152064, 0x7d22a528
+0, 170, 170, 1, 152064, 0x93778828
+0, 171, 171, 1, 152064, 0xd54c95fc
+0, 172, 172, 1, 152064, 0xf4e76d9a
+0, 173, 173, 1, 152064, 0xaa7ba3fd
+0, 174, 174, 1, 152064, 0x94d88d91
+0, 175, 175, 1, 152064, 0xa46b9c34
+0, 176, 176, 1, 152064, 0x9dcb4d0c
+0, 177, 177, 1, 152064, 0x347d0983
+0, 178, 178, 1, 152064, 0x870ecd2b
+0, 179, 179, 1, 152064, 0x5dafe6d6
+0, 180, 180, 1, 152064, 0x10d77857
+0, 181, 181, 1, 152064, 0xddc1d127
+0, 182, 182, 1, 152064, 0x2732a13c
+0, 183, 183, 1, 152064, 0x3d81bac9
+0, 184, 184, 1, 152064, 0x619d3dd3
+0, 185, 185, 1, 152064, 0x2db3e1ac
+0, 186, 186, 1, 152064, 0x63a7e7e5
+0, 187, 187, 1, 152064, 0x902a4c92
+0, 188, 188, 1, 152064, 0x9c38e0f6
+0, 189, 189, 1, 152064, 0x8ceb3a46
+0, 190, 190, 1, 152064, 0x73cbb6bd
+0, 191, 191, 1, 152064, 0x5f6fa7d6
+0, 192, 192, 1, 152064, 0x8cdad086
+0, 193, 193, 1, 152064, 0xe7cf083f
+0, 194, 194, 1, 152064, 0x18c0f6b9
+0, 195, 195, 1, 152064, 0xfe582ddf
+0, 196, 196, 1, 152064, 0x5fca4740
+0, 197, 197, 1, 152064, 0x072981ab
+0, 198, 198, 1, 152064, 0xcb874172
+0, 199, 199, 1, 152064, 0xfa153e05
+0, 200, 200, 1, 152064, 0x259ae495
+0, 201, 201, 1, 152064, 0x1714beb4
+0, 202, 202, 1, 152064, 0xa051721e
+0, 203, 203, 1, 152064, 0x52d17b85
+0, 204, 204, 1, 152064, 0x9cbf5da3
+0, 205, 205, 1, 152064, 0x28d69092
+0, 206, 206, 1, 152064, 0xbdb942e7
+0, 207, 207, 1, 152064, 0xeefe2253
+0, 208, 208, 1, 152064, 0xbef2af4d
+0, 209, 209, 1, 152064, 0x622dee36
+0, 210, 210, 1, 152064, 0x61decf4e
+0, 211, 211, 1, 152064, 0x8dfefdbe
+0, 212, 212, 1, 152064, 0x78d67e90
+0, 213, 213, 1, 152064, 0x9cddaa58
+0, 214, 214, 1, 152064, 0x8d487f4d
+0, 215, 215, 1, 152064, 0x67f58715
+0, 216, 216, 1, 152064, 0xc9203f22
+0, 217, 217, 1, 152064, 0x0fec8343
+0, 218, 218, 1, 152064, 0xb57e7b6a
+0, 219, 219, 1, 152064, 0xa2ed7700
+0, 220, 220, 1, 152064, 0x34722cad
+0, 221, 221, 1, 152064, 0x02c83b2a
+0, 222, 222, 1, 152064, 0x91b11583
+0, 223, 223, 1, 152064, 0x7676166d
+0, 224, 224, 1, 152064, 0x76a9d5fc
+0, 225, 225, 1, 152064, 0x4fcd1750
+0, 226, 226, 1, 152064, 0xaa6ff7bf
+0, 227, 227, 1, 152064, 0x5e2bfab6
+0, 228, 228, 1, 152064, 0x3abec811
+0, 229, 229, 1, 152064, 0x0711eb85
+0, 230, 230, 1, 152064, 0xb10ebf41
+0, 231, 231, 1, 152064, 0x32d8cb56
+0, 232, 232, 1, 152064, 0x9b1ca411
+0, 233, 233, 1, 152064, 0x771f0768
+0, 234, 234, 1, 152064, 0x69e1258e
+0, 235, 235, 1, 152064, 0xe8b352e2
+0, 236, 236, 1, 152064, 0x3ee638d8
+0, 237, 237, 1, 152064, 0x0bc48414
+0, 238, 238, 1, 152064, 0xc1df5925
+0, 239, 239, 1, 152064, 0xb30f705e
+0, 240, 240, 1, 152064, 0x90654127
+0, 241, 241, 1, 152064, 0x000e5f43
+0, 242, 242, 1, 152064, 0x1f5e5e15
+0, 243, 243, 1, 152064, 0x4aa48433
+0, 244, 244, 1, 152064, 0xb74a56a3
+0, 245, 245, 1, 152064, 0x94347a06
+0, 246, 246, 1, 152064, 0xd14e58d4
+0, 247, 247, 1, 152064, 0x60116d97
+0, 248, 248, 1, 152064, 0xf2962979
+0, 249, 249, 1, 152064, 0x7f176514
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-ls_sva_d b/ffmpeg1/tests/ref/fate/h264-conformance-ls_sva_d
new file mode 100644
index 0000000..9d1d219
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-ls_sva_d
@@ -0,0 +1,1701 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x85d20fc6
+0, 1, 1, 1, 38016, 0xc0432c21
+0, 2, 2, 1, 38016, 0x1450168f
+0, 3, 3, 1, 38016, 0xeddb1833
+0, 4, 4, 1, 38016, 0x631216d4
+0, 5, 5, 1, 38016, 0xfcd1138b
+0, 6, 6, 1, 38016, 0x181f17d5
+0, 7, 7, 1, 38016, 0x3dc91855
+0, 8, 8, 1, 38016, 0x92b71924
+0, 9, 9, 1, 38016, 0xfcb6228d
+0, 10, 10, 1, 38016, 0x11d04b4a
+0, 11, 11, 1, 38016, 0x743a6a06
+0, 12, 12, 1, 38016, 0xac511cc3
+0, 13, 13, 1, 38016, 0x66bc1e2d
+0, 14, 14, 1, 38016, 0x6c761ef3
+0, 15, 15, 1, 38016, 0xa08a1ef5
+0, 16, 16, 1, 38016, 0x777270da
+0, 17, 17, 1, 38016, 0x9a738d9f
+0, 18, 18, 1, 38016, 0x31a8afa2
+0, 19, 19, 1, 38016, 0x1148cc11
+0, 20, 20, 1, 38016, 0xf5fa1f26
+0, 21, 21, 1, 38016, 0xc0481fbc
+0, 22, 22, 1, 38016, 0x461b2228
+0, 23, 23, 1, 38016, 0x27bb209d
+0, 24, 24, 1, 38016, 0xbe921f04
+0, 25, 25, 1, 38016, 0xabdbd493
+0, 26, 26, 1, 38016, 0x4f6ad36e
+0, 27, 27, 1, 38016, 0xe2f8d0ca
+0, 28, 28, 1, 38016, 0xd82aaea2
+0, 29, 29, 1, 38016, 0xb208854b
+0, 30, 30, 1, 38016, 0xfe632920
+0, 31, 31, 1, 38016, 0x1a8128ce
+0, 32, 32, 1, 38016, 0xd9ea2be9
+0, 33, 33, 1, 38016, 0x258b2ab0
+0, 34, 34, 1, 38016, 0xb5812bef
+0, 35, 35, 1, 38016, 0x00c92cdf
+0, 36, 36, 1, 38016, 0x4a6b9f6f
+0, 37, 37, 1, 38016, 0xb589b0a1
+0, 38, 38, 1, 38016, 0xf2d0bbca
+0, 39, 39, 1, 38016, 0xe614cce3
+0, 40, 40, 1, 38016, 0x6d81d01c
+0, 41, 41, 1, 38016, 0x7f32d175
+0, 42, 42, 1, 38016, 0x6abc2f40
+0, 43, 43, 1, 38016, 0x767d2f6a
+0, 44, 44, 1, 38016, 0xd64b30cf
+0, 45, 45, 1, 38016, 0xf83d3000
+0, 46, 46, 1, 38016, 0x5f3230d5
+0, 47, 47, 1, 38016, 0x80b330a0
+0, 48, 48, 1, 38016, 0x42c4326e
+0, 49, 49, 1, 38016, 0x7cb8d069
+0, 50, 50, 1, 38016, 0xb7bb9d2f
+0, 51, 51, 1, 38016, 0xf4f47c47
+0, 52, 52, 1, 38016, 0xe3455aa0
+0, 53, 53, 1, 38016, 0x3b074630
+0, 54, 54, 1, 38016, 0x1fd44e63
+0, 55, 55, 1, 38016, 0x5ecb6a07
+0, 56, 56, 1, 38016, 0xe3a130c9
+0, 57, 57, 1, 38016, 0x307f311a
+0, 58, 58, 1, 38016, 0x4e2d3202
+0, 59, 59, 1, 38016, 0x06ac31c1
+0, 60, 60, 1, 38016, 0x767931ab
+0, 61, 61, 1, 38016, 0xcb6433aa
+0, 62, 62, 1, 38016, 0xc88e3597
+0, 63, 63, 1, 38016, 0xfe06371f
+0, 64, 64, 1, 38016, 0x9e3c8a14
+0, 65, 65, 1, 38016, 0xba819e5b
+0, 66, 66, 1, 38016, 0x0017a693
+0, 67, 67, 1, 38016, 0x25aca2dd
+0, 68, 68, 1, 38016, 0x3bf5980d
+0, 69, 69, 1, 38016, 0x2a0ba2ae
+0, 70, 70, 1, 38016, 0x99e19853
+0, 71, 71, 1, 38016, 0x5e7a9699
+0, 72, 72, 1, 38016, 0x11983c1a
+0, 73, 73, 1, 38016, 0x5ab53cbf
+0, 74, 74, 1, 38016, 0x49803f12
+0, 75, 75, 1, 38016, 0xf1633fdc
+0, 76, 76, 1, 38016, 0x91de3ff3
+0, 77, 77, 1, 38016, 0x418942a1
+0, 78, 78, 1, 38016, 0x670c4277
+0, 79, 79, 1, 38016, 0xc04e403e
+0, 80, 80, 1, 38016, 0xa33e40ad
+0, 81, 81, 1, 38016, 0x7f959a9c
+0, 82, 82, 1, 38016, 0x096696ae
+0, 83, 83, 1, 38016, 0xdb41933c
+0, 84, 84, 1, 38016, 0xb26086b4
+0, 85, 85, 1, 38016, 0x80c97e07
+0, 86, 86, 1, 38016, 0xa7416837
+0, 87, 87, 1, 38016, 0xa82f6342
+0, 88, 88, 1, 38016, 0x8da16527
+0, 89, 89, 1, 38016, 0x1c1965a9
+0, 90, 90, 1, 38016, 0x09ad470c
+0, 91, 91, 1, 38016, 0x3f694725
+0, 92, 92, 1, 38016, 0xa7034699
+0, 93, 93, 1, 38016, 0x38104981
+0, 94, 94, 1, 38016, 0x216048b7
+0, 95, 95, 1, 38016, 0x24e04c22
+0, 96, 96, 1, 38016, 0xbb7e4871
+0, 97, 97, 1, 38016, 0x8c074b97
+0, 98, 98, 1, 38016, 0x92aa4b79
+0, 99, 99, 1, 38016, 0x073c4d97
+0, 100, 100, 1, 38016, 0xe225f953
+0, 101, 101, 1, 38016, 0xcaccf96b
+0, 102, 102, 1, 38016, 0xc395cd82
+0, 103, 103, 1, 38016, 0x8c61ad55
+0, 104, 104, 1, 38016, 0x6fb988f2
+0, 105, 105, 1, 38016, 0x99fe7aea
+0, 106, 106, 1, 38016, 0xab3c73bf
+0, 107, 107, 1, 38016, 0xcdb06bc4
+0, 108, 108, 1, 38016, 0x65a1540a
+0, 109, 109, 1, 38016, 0xc22f4fb0
+0, 110, 110, 1, 38016, 0xe5ca4830
+0, 111, 111, 1, 38016, 0x06b346f9
+0, 112, 112, 1, 38016, 0x02154629
+0, 113, 113, 1, 38016, 0x3d5e4467
+0, 114, 114, 1, 38016, 0x6aa4460c
+0, 115, 115, 1, 38016, 0x05bc47c4
+0, 116, 116, 1, 38016, 0xc46e4666
+0, 117, 117, 1, 38016, 0xc28145f5
+0, 118, 118, 1, 38016, 0xf57f4811
+0, 119, 119, 1, 38016, 0x1bbc49f8
+0, 120, 120, 1, 38016, 0x34e14c2c
+0, 121, 121, 1, 38016, 0x7e7d7740
+0, 122, 122, 1, 38016, 0x97d798f3
+0, 123, 123, 1, 38016, 0x7d71ca3b
+0, 124, 124, 1, 38016, 0xc6bc0776
+0, 125, 125, 1, 38016, 0xda052645
+0, 126, 126, 1, 38016, 0xf0b32de9
+0, 127, 127, 1, 38016, 0x996f23cf
+0, 128, 128, 1, 38016, 0x22ea1a43
+0, 129, 129, 1, 38016, 0xbde61021
+0, 130, 130, 1, 38016, 0x8180079d
+0, 131, 131, 1, 38016, 0x3ac6f314
+0, 132, 132, 1, 38016, 0x93604f67
+0, 133, 133, 1, 38016, 0xb9a55213
+0, 134, 134, 1, 38016, 0x89c8523c
+0, 135, 135, 1, 38016, 0x670a511b
+0, 136, 136, 1, 38016, 0x62395128
+0, 137, 137, 1, 38016, 0x01605431
+0, 138, 138, 1, 38016, 0x677253cd
+0, 139, 139, 1, 38016, 0xc57f56b1
+0, 140, 140, 1, 38016, 0x767f5679
+0, 141, 141, 1, 38016, 0x4abc5717
+0, 142, 142, 1, 38016, 0x838657dc
+0, 143, 143, 1, 38016, 0x63bf56ad
+0, 144, 144, 1, 38016, 0x7019c8ad
+0, 145, 145, 1, 38016, 0xebbaa7bf
+0, 146, 146, 1, 38016, 0xebbc8ddb
+0, 147, 147, 1, 38016, 0xea609f00
+0, 148, 148, 1, 38016, 0x88e6b1e4
+0, 149, 149, 1, 38016, 0x7f9edd6b
+0, 150, 150, 1, 38016, 0xeaf354a6
+0, 151, 151, 1, 38016, 0xf30274c9
+0, 152, 152, 1, 38016, 0x05a756da
+0, 153, 153, 1, 38016, 0xacea1ca6
+0, 154, 154, 1, 38016, 0x1520d86d
+0, 155, 155, 1, 38016, 0xb0f7afa4
+0, 156, 156, 1, 38016, 0xe33c5802
+0, 157, 157, 1, 38016, 0xce2a58cd
+0, 158, 158, 1, 38016, 0xd3ad5a30
+0, 159, 159, 1, 38016, 0x29aa5955
+0, 160, 160, 1, 38016, 0x59015aef
+0, 161, 161, 1, 38016, 0x247c5a72
+0, 162, 162, 1, 38016, 0x79a85b27
+0, 163, 163, 1, 38016, 0x6cf858fe
+0, 164, 164, 1, 38016, 0x78ec5b20
+0, 165, 165, 1, 38016, 0x7cb158c5
+0, 166, 166, 1, 38016, 0xc52c581f
+0, 167, 167, 1, 38016, 0x125c58bd
+0, 168, 168, 1, 38016, 0xf8b257c9
+0, 169, 169, 1, 38016, 0x20329756
+0, 170, 170, 1, 38016, 0x60a07c12
+0, 171, 171, 1, 38016, 0xa2c26ad1
+0, 172, 172, 1, 38016, 0xcbbc681b
+0, 173, 173, 1, 38016, 0x2c0562ad
+0, 174, 174, 1, 38016, 0x8a72640d
+0, 175, 175, 1, 38016, 0xe6e7756a
+0, 176, 176, 1, 38016, 0x64608a48
+0, 177, 177, 1, 38016, 0xe9bea9fa
+0, 178, 178, 1, 38016, 0x24bac776
+0, 179, 179, 1, 38016, 0x6aa9d01b
+0, 180, 180, 1, 38016, 0xf41ebb02
+0, 181, 181, 1, 38016, 0x28017154
+0, 182, 182, 1, 38016, 0x3fc55eb4
+0, 183, 183, 1, 38016, 0xe7bc5f22
+0, 184, 184, 1, 38016, 0xe6706162
+0, 185, 185, 1, 38016, 0xee385fe2
+0, 186, 186, 1, 38016, 0x79c0600b
+0, 187, 187, 1, 38016, 0x735a603f
+0, 188, 188, 1, 38016, 0xe7916199
+0, 189, 189, 1, 38016, 0x542d601d
+0, 190, 190, 1, 38016, 0xbfaa611a
+0, 191, 191, 1, 38016, 0xb7504e05
+0, 192, 192, 1, 38016, 0xd1964339
+0, 193, 193, 1, 38016, 0x4213278a
+0, 194, 194, 1, 38016, 0xb503229f
+0, 195, 195, 1, 38016, 0x166a091c
+0, 196, 196, 1, 38016, 0x37176bbc
+0, 197, 197, 1, 38016, 0x95977cc3
+0, 198, 198, 1, 38016, 0x5bab93f4
+0, 199, 199, 1, 38016, 0x71d5d142
+0, 200, 200, 1, 38016, 0x97d1cfa6
+0, 201, 201, 1, 38016, 0xac82ff20
+0, 202, 202, 1, 38016, 0x489a1fa1
+0, 203, 203, 1, 38016, 0x32944930
+0, 204, 204, 1, 38016, 0x72a2647c
+0, 205, 205, 1, 38016, 0x95b685d6
+0, 206, 206, 1, 38016, 0xb7e19840
+0, 207, 207, 1, 38016, 0x85569129
+0, 208, 208, 1, 38016, 0x6bc6a197
+0, 209, 209, 1, 38016, 0x55ccace8
+0, 210, 210, 1, 38016, 0x9bbdc9c2
+0, 211, 211, 1, 38016, 0xbce4ade3
+0, 212, 212, 1, 38016, 0x39c7c48a
+0, 213, 213, 1, 38016, 0x498ac4aa
+0, 214, 214, 1, 38016, 0xeda3b715
+0, 215, 215, 1, 38016, 0x700db089
+0, 216, 216, 1, 38016, 0xf6b6bf36
+0, 217, 217, 1, 38016, 0x6abebf1c
+0, 218, 218, 1, 38016, 0x8855c17c
+0, 219, 219, 1, 38016, 0xfba09dd5
+0, 220, 220, 1, 38016, 0xd5868240
+0, 221, 221, 1, 38016, 0x438074a2
+0, 222, 222, 1, 38016, 0xc8b2c501
+0, 223, 223, 1, 38016, 0xd48ec1ef
+0, 224, 224, 1, 38016, 0xa715c4be
+0, 225, 225, 1, 38016, 0xd758c281
+0, 226, 226, 1, 38016, 0x07c25900
+0, 227, 227, 1, 38016, 0xee7950e6
+0, 228, 228, 1, 38016, 0x3e154be9
+0, 229, 229, 1, 38016, 0xa8f33bb7
+0, 230, 230, 1, 38016, 0xf493bc3c
+0, 231, 231, 1, 38016, 0x9d69bccb
+0, 232, 232, 1, 38016, 0xbf9fbafa
+0, 233, 233, 1, 38016, 0x2e62b9a8
+0, 234, 234, 1, 38016, 0x2f41bae1
+0, 235, 235, 1, 38016, 0xd820355d
+0, 236, 236, 1, 38016, 0xf3623118
+0, 237, 237, 1, 38016, 0x659b4459
+0, 238, 238, 1, 38016, 0xdcd74654
+0, 239, 239, 1, 38016, 0x73f33f73
+0, 240, 240, 1, 38016, 0xbf96b5ec
+0, 241, 241, 1, 38016, 0xe9ebb550
+0, 242, 242, 1, 38016, 0xfe12b5dd
+0, 243, 243, 1, 38016, 0x9908b6d5
+0, 244, 244, 1, 38016, 0xe805b8cf
+0, 245, 245, 1, 38016, 0x1a8eb68a
+0, 246, 246, 1, 38016, 0x6aed288d
+0, 247, 247, 1, 38016, 0x162f167f
+0, 248, 248, 1, 38016, 0x49110ae5
+0, 249, 249, 1, 38016, 0xab060059
+0, 250, 250, 1, 38016, 0x0fb8a0a8
+0, 251, 251, 1, 38016, 0xf3b0b384
+0, 252, 252, 1, 38016, 0x6f32bb1b
+0, 253, 253, 1, 38016, 0x7278bb3a
+0, 254, 254, 1, 38016, 0xdeb1bdcf
+0, 255, 255, 1, 38016, 0x90efbc5c
+0, 256, 256, 1, 38016, 0xd2f6bb28
+0, 257, 257, 1, 38016, 0xba4dba32
+0, 258, 258, 1, 38016, 0x0751ba19
+0, 259, 259, 1, 38016, 0xc3f7b9db
+0, 260, 260, 1, 38016, 0xca22c433
+0, 261, 261, 1, 38016, 0x82a7e336
+0, 262, 262, 1, 38016, 0x45e90a19
+0, 263, 263, 1, 38016, 0x82cd2c11
+0, 264, 264, 1, 38016, 0x4e2e56cc
+0, 265, 265, 1, 38016, 0x0ad281c6
+0, 266, 266, 1, 38016, 0x8685b8b7
+0, 267, 267, 1, 38016, 0xe502b7b3
+0, 268, 268, 1, 38016, 0x4898b696
+0, 269, 269, 1, 38016, 0xe0fcb729
+0, 270, 270, 1, 38016, 0xe5e0b822
+0, 271, 271, 1, 38016, 0x9030b82c
+0, 272, 272, 1, 38016, 0x7dc6b93c
+0, 273, 273, 1, 38016, 0x727cb981
+0, 274, 274, 1, 38016, 0xb08999c9
+0, 275, 275, 1, 38016, 0x3e54b6d7
+0, 276, 276, 1, 38016, 0x5d15c1e2
+0, 277, 277, 1, 38016, 0x5840d8d7
+0, 278, 278, 1, 38016, 0x1109d730
+0, 279, 279, 1, 38016, 0xb898c47e
+0, 280, 280, 1, 38016, 0xbde196c6
+0, 281, 281, 1, 38016, 0x75999430
+0, 282, 282, 1, 38016, 0xa17db11e
+0, 283, 283, 1, 38016, 0xb428b220
+0, 284, 284, 1, 38016, 0x1537b1ed
+0, 285, 285, 1, 38016, 0x102ab213
+0, 286, 286, 1, 38016, 0xee38af9e
+0, 287, 287, 1, 38016, 0xc9c5b34e
+0, 288, 288, 1, 38016, 0x8618af6d
+0, 289, 289, 1, 38016, 0x97f3af7a
+0, 290, 290, 1, 38016, 0x222eb095
+0, 291, 291, 1, 38016, 0xb1508324
+0, 292, 292, 1, 38016, 0x2149ad09
+0, 293, 293, 1, 38016, 0x67261443
+0, 294, 294, 1, 38016, 0x90918df5
+0, 295, 295, 1, 38016, 0x5d43e726
+0, 296, 296, 1, 38016, 0x1d77dfa3
+0, 297, 297, 1, 38016, 0xa60b941c
+0, 298, 298, 1, 38016, 0x48813a99
+0, 299, 299, 1, 38016, 0x2324b77a
+0, 300, 300, 1, 38016, 0xdfd99d0d
+0, 301, 301, 1, 38016, 0x44129be1
+0, 302, 302, 1, 38016, 0x1137a099
+0, 303, 303, 1, 38016, 0xbd24a0a1
+0, 304, 304, 1, 38016, 0x3883a310
+0, 305, 305, 1, 38016, 0x0680a358
+0, 306, 306, 1, 38016, 0xf333a501
+0, 307, 307, 1, 38016, 0x3945a6ac
+0, 308, 308, 1, 38016, 0x79eea741
+0, 309, 309, 1, 38016, 0x8c7aa6b0
+0, 310, 310, 1, 38016, 0x0342642f
+0, 311, 311, 1, 38016, 0x83632b63
+0, 312, 312, 1, 38016, 0x1503ff51
+0, 313, 313, 1, 38016, 0xa4bcea0f
+0, 314, 314, 1, 38016, 0x37dcd11b
+0, 315, 315, 1, 38016, 0x9aa7287a
+0, 316, 316, 1, 38016, 0x34deae76
+0, 317, 317, 1, 38016, 0x51710057
+0, 318, 318, 1, 38016, 0x9ee6fc0a
+0, 319, 319, 1, 38016, 0xa419ea79
+0, 320, 320, 1, 38016, 0x49388f7e
+0, 321, 321, 1, 38016, 0x08498b2d
+0, 322, 322, 1, 38016, 0x104f8c4d
+0, 323, 323, 1, 38016, 0xdb998d74
+0, 324, 324, 1, 38016, 0xd54e8c95
+0, 325, 325, 1, 38016, 0x54a48e5e
+0, 326, 326, 1, 38016, 0xbe6f8cd0
+0, 327, 327, 1, 38016, 0x2a7f8ec2
+0, 328, 328, 1, 38016, 0x23848f19
+0, 329, 329, 1, 38016, 0x9b168ee3
+0, 330, 330, 1, 38016, 0xc2628fb6
+0, 331, 331, 1, 38016, 0xe2bdfd4e
+0, 332, 332, 1, 38016, 0xfdae1546
+0, 333, 333, 1, 38016, 0xb1fe20db
+0, 334, 334, 1, 38016, 0x5ebf23f0
+0, 335, 335, 1, 38016, 0xecbc1fcb
+0, 336, 336, 1, 38016, 0xe72e141c
+0, 337, 337, 1, 38016, 0xbad7f54d
+0, 338, 338, 1, 38016, 0x95ead3c6
+0, 339, 339, 1, 38016, 0xf5c6b948
+0, 340, 340, 1, 38016, 0x2f8b80ab
+0, 341, 341, 1, 38016, 0x0aed47a7
+0, 342, 342, 1, 38016, 0xdcb278e3
+0, 343, 343, 1, 38016, 0x2a677958
+0, 344, 344, 1, 38016, 0x45427ae8
+0, 345, 345, 1, 38016, 0xebce78de
+0, 346, 346, 1, 38016, 0xaf007bb1
+0, 347, 347, 1, 38016, 0xb4677cdb
+0, 348, 348, 1, 38016, 0xbf6d8024
+0, 349, 349, 1, 38016, 0xb67180de
+0, 350, 350, 1, 38016, 0xb1581358
+0, 351, 351, 1, 38016, 0x258f140d
+0, 352, 352, 1, 38016, 0x753d17e6
+0, 353, 353, 1, 38016, 0xf33816b4
+0, 354, 354, 1, 38016, 0x0d011c76
+0, 355, 355, 1, 38016, 0x48cfd85d
+0, 356, 356, 1, 38016, 0x13ce822d
+0, 357, 357, 1, 38016, 0x221a4468
+0, 358, 358, 1, 38016, 0x11364be7
+0, 359, 359, 1, 38016, 0xafc047b0
+0, 360, 360, 1, 38016, 0xeafd4217
+0, 361, 361, 1, 38016, 0x930b8a41
+0, 362, 362, 1, 38016, 0x2dda0bd2
+0, 363, 363, 1, 38016, 0x461cc3f2
+0, 364, 364, 1, 38016, 0xa99e962a
+0, 365, 365, 1, 38016, 0xc1d954ba
+0, 366, 366, 1, 38016, 0x0ce91a87
+0, 367, 367, 1, 38016, 0x10701e2d
+0, 368, 368, 1, 38016, 0x98c22205
+0, 369, 369, 1, 38016, 0xb76622f1
+0, 370, 370, 1, 38016, 0x6d1a22d4
+0, 371, 371, 1, 38016, 0x00ee23c5
+0, 372, 372, 1, 38016, 0xc38125e6
+0, 373, 373, 1, 38016, 0x8de52597
+0, 374, 374, 1, 38016, 0xec282293
+0, 375, 375, 1, 38016, 0xb50f2238
+0, 376, 376, 1, 38016, 0xbdcf1f9f
+0, 377, 377, 1, 38016, 0x5c6c1780
+0, 378, 378, 1, 38016, 0x41941237
+0, 379, 379, 1, 38016, 0x95ee1e69
+0, 380, 380, 1, 38016, 0x84b65009
+0, 381, 381, 1, 38016, 0x27bbf0ab
+0, 382, 382, 1, 38016, 0xdd86f4fb
+0, 383, 383, 1, 38016, 0x97733086
+0, 384, 384, 1, 38016, 0x3241472f
+0, 385, 385, 1, 38016, 0x5d050c50
+0, 386, 386, 1, 38016, 0x8378aa9b
+0, 387, 387, 1, 38016, 0x94f174cd
+0, 388, 388, 1, 38016, 0x5825df16
+0, 389, 389, 1, 38016, 0x5f362875
+0, 390, 390, 1, 38016, 0x30704cd6
+0, 391, 391, 1, 38016, 0xc74e3614
+0, 392, 392, 1, 38016, 0xe033eb04
+0, 393, 393, 1, 38016, 0x665be967
+0, 394, 394, 1, 38016, 0x95d5ed67
+0, 395, 395, 1, 38016, 0x37dfefc1
+0, 396, 396, 1, 38016, 0x1908ee8e
+0, 397, 397, 1, 38016, 0xf0cfee38
+0, 398, 398, 1, 38016, 0x871df078
+0, 399, 399, 1, 38016, 0xb2f2f0f9
+0, 400, 400, 1, 38016, 0xf955621f
+0, 401, 401, 1, 38016, 0xbd2365a5
+0, 402, 402, 1, 38016, 0xe70d6bb0
+0, 403, 403, 1, 38016, 0x857e6d00
+0, 404, 404, 1, 38016, 0x000d6ee5
+0, 405, 405, 1, 38016, 0x9a2f7244
+0, 406, 406, 1, 38016, 0xe8c2f83c
+0, 407, 407, 1, 38016, 0x23eb0377
+0, 408, 408, 1, 38016, 0xe0802a7f
+0, 409, 409, 1, 38016, 0x5dbc4d69
+0, 410, 410, 1, 38016, 0xa3031f36
+0, 411, 411, 1, 38016, 0x27fbb378
+0, 412, 412, 1, 38016, 0xeee9a313
+0, 413, 413, 1, 38016, 0x189b1e68
+0, 414, 414, 1, 38016, 0x9a90678a
+0, 415, 415, 1, 38016, 0x1a65ed20
+0, 416, 416, 1, 38016, 0x2f51beb7
+0, 417, 417, 1, 38016, 0x671ada9d
+0, 418, 418, 1, 38016, 0x30af355a
+0, 419, 419, 1, 38016, 0x1804d4f9
+0, 420, 420, 1, 38016, 0xee227951
+0, 421, 421, 1, 38016, 0x20dc3900
+0, 422, 422, 1, 38016, 0x334f82dc
+0, 423, 423, 1, 38016, 0xb1728506
+0, 424, 424, 1, 38016, 0x2236fc10
+0, 425, 425, 1, 38016, 0x80d2964d
+0, 426, 426, 1, 38016, 0x5e368712
+0, 427, 427, 1, 38016, 0x10408765
+0, 428, 428, 1, 38016, 0x4b3084c5
+0, 429, 429, 1, 38016, 0x975c473f
+0, 430, 430, 1, 38016, 0x6f16efa3
+0, 431, 431, 1, 38016, 0xe73aac5e
+0, 432, 432, 1, 38016, 0x996b6e24
+0, 433, 433, 1, 38016, 0x424f6f55
+0, 434, 434, 1, 38016, 0x33786d10
+0, 435, 435, 1, 38016, 0x8a0f6870
+0, 436, 436, 1, 38016, 0x5e8556d4
+0, 437, 437, 1, 38016, 0x863b2366
+0, 438, 438, 1, 38016, 0x3fa74842
+0, 439, 439, 1, 38016, 0x70208948
+0, 440, 440, 1, 38016, 0xcf005140
+0, 441, 441, 1, 38016, 0xa7585013
+0, 442, 442, 1, 38016, 0x61145096
+0, 443, 443, 1, 38016, 0x92b952a5
+0, 444, 444, 1, 38016, 0x35575235
+0, 445, 445, 1, 38016, 0x3e47ec63
+0, 446, 446, 1, 38016, 0xfce57b69
+0, 447, 447, 1, 38016, 0xf03815e6
+0, 448, 448, 1, 38016, 0xb5b6af64
+0, 449, 449, 1, 38016, 0x5e3f1b08
+0, 450, 450, 1, 38016, 0xd3f9ee61
+0, 451, 451, 1, 38016, 0xb8e2ee66
+0, 452, 452, 1, 38016, 0x86f8f4b5
+0, 453, 453, 1, 38016, 0x23c8f499
+0, 454, 454, 1, 38016, 0x634df498
+0, 455, 455, 1, 38016, 0xd2b3f570
+0, 456, 456, 1, 38016, 0x053e67d3
+0, 457, 457, 1, 38016, 0x8d2cbeb3
+0, 458, 458, 1, 38016, 0xba0b1e1c
+0, 459, 459, 1, 38016, 0x0f5c7d73
+0, 460, 460, 1, 38016, 0x46b2118a
+0, 461, 461, 1, 38016, 0x818ebae5
+0, 462, 462, 1, 38016, 0x4a7af8a9
+0, 463, 463, 1, 38016, 0x0c22f937
+0, 464, 464, 1, 38016, 0x967ef9b3
+0, 465, 465, 1, 38016, 0x530afd34
+0, 466, 466, 1, 38016, 0x2a00fdb6
+0, 467, 467, 1, 38016, 0xca14f913
+0, 468, 468, 1, 38016, 0x82b6f7bc
+0, 469, 469, 1, 38016, 0xd32879ec
+0, 470, 470, 1, 38016, 0x242b6920
+0, 471, 471, 1, 38016, 0x44fd66e4
+0, 472, 472, 1, 38016, 0x69d3479c
+0, 473, 473, 1, 38016, 0x41a63899
+0, 474, 474, 1, 38016, 0xfb370720
+0, 475, 475, 1, 38016, 0x5cf0f42d
+0, 476, 476, 1, 38016, 0x74e8ca33
+0, 477, 477, 1, 38016, 0x1f09cb30
+0, 478, 478, 1, 38016, 0xc5e8c1d8
+0, 479, 479, 1, 38016, 0x3a82bd74
+0, 480, 480, 1, 38016, 0xada0bd71
+0, 481, 481, 1, 38016, 0xe695bcc9
+0, 482, 482, 1, 38016, 0xc255bb45
+0, 483, 483, 1, 38016, 0x6deebbcd
+0, 484, 484, 1, 38016, 0x6bf5cef2
+0, 485, 485, 1, 38016, 0x8eaed078
+0, 486, 486, 1, 38016, 0x3a8addb0
+0, 487, 487, 1, 38016, 0x0f2bfe11
+0, 488, 488, 1, 38016, 0xe13d2e3b
+0, 489, 489, 1, 38016, 0x9bb7606f
+0, 490, 490, 1, 38016, 0x9fcc8899
+0, 491, 491, 1, 38016, 0xfa22a313
+0, 492, 492, 1, 38016, 0xc599b318
+0, 493, 493, 1, 38016, 0x33ecb361
+0, 494, 494, 1, 38016, 0x2ba8b2df
+0, 495, 495, 1, 38016, 0x0debb343
+0, 496, 496, 1, 38016, 0x8bbcb7cd
+0, 497, 497, 1, 38016, 0x093fbb20
+0, 498, 498, 1, 38016, 0x4340c0d2
+0, 499, 499, 1, 38016, 0xd765bcb8
+0, 500, 500, 1, 38016, 0xe9ea3103
+0, 501, 501, 1, 38016, 0x24d7a1ae
+0, 502, 502, 1, 38016, 0x9b9ac80f
+0, 503, 503, 1, 38016, 0x81b7da0c
+0, 504, 504, 1, 38016, 0xb7c5f017
+0, 505, 505, 1, 38016, 0xa0e9f9c1
+0, 506, 506, 1, 38016, 0x932111a9
+0, 507, 507, 1, 38016, 0x15fc17ba
+0, 508, 508, 1, 38016, 0x3c7710bd
+0, 509, 509, 1, 38016, 0xae1b0ba8
+0, 510, 510, 1, 38016, 0x7dc24093
+0, 511, 511, 1, 38016, 0x8b9042ad
+0, 512, 512, 1, 38016, 0x257f4c1c
+0, 513, 513, 1, 38016, 0xaa0442d8
+0, 514, 514, 1, 38016, 0xbedd462c
+0, 515, 515, 1, 38016, 0xa9bd4905
+0, 516, 516, 1, 38016, 0x69d74f50
+0, 517, 517, 1, 38016, 0x18143c0d
+0, 518, 518, 1, 38016, 0xd2eb5820
+0, 519, 519, 1, 38016, 0x94fb5e93
+0, 520, 520, 1, 38016, 0x3072f80d
+0, 521, 521, 1, 38016, 0xd838f186
+0, 522, 522, 1, 38016, 0x3e41e695
+0, 523, 523, 1, 38016, 0x66eef2cd
+0, 524, 524, 1, 38016, 0x3854ec56
+0, 525, 525, 1, 38016, 0x05d3f9c2
+0, 526, 526, 1, 38016, 0x53820cc3
+0, 527, 527, 1, 38016, 0x09d413ea
+0, 528, 528, 1, 38016, 0x82f217f2
+0, 529, 529, 1, 38016, 0x07b21d50
+0, 530, 530, 1, 38016, 0xd72155c2
+0, 531, 531, 1, 38016, 0x20b04c74
+0, 532, 532, 1, 38016, 0x5b8962f6
+0, 533, 533, 1, 38016, 0xfb8b72c9
+0, 534, 534, 1, 38016, 0x6d0f56a7
+0, 535, 535, 1, 38016, 0x97876300
+0, 536, 536, 1, 38016, 0xfd7f655f
+0, 537, 537, 1, 38016, 0x3e405ff6
+0, 538, 538, 1, 38016, 0x5ad27a20
+0, 539, 539, 1, 38016, 0x46125305
+0, 540, 540, 1, 38016, 0x91017b86
+0, 541, 541, 1, 38016, 0x5c150c66
+0, 542, 542, 1, 38016, 0xc3430969
+0, 543, 543, 1, 38016, 0x5f400689
+0, 544, 544, 1, 38016, 0x21ddf969
+0, 545, 545, 1, 38016, 0x5feff594
+0, 546, 546, 1, 38016, 0xb304f3c1
+0, 547, 547, 1, 38016, 0xa9c3f70e
+0, 548, 548, 1, 38016, 0x6014fa8e
+0, 549, 549, 1, 38016, 0x7198f22e
+0, 550, 550, 1, 38016, 0xe338e495
+0, 551, 551, 1, 38016, 0x9a69ea32
+0, 552, 552, 1, 38016, 0xc0cc5d05
+0, 553, 553, 1, 38016, 0xefa16044
+0, 554, 554, 1, 38016, 0x3e3c6120
+0, 555, 555, 1, 38016, 0x06ef63e1
+0, 556, 556, 1, 38016, 0x25d5631f
+0, 557, 557, 1, 38016, 0xbc8963ee
+0, 558, 558, 1, 38016, 0xc2336218
+0, 559, 559, 1, 38016, 0xb23965fd
+0, 560, 560, 1, 38016, 0x84c9651f
+0, 561, 561, 1, 38016, 0x41f6647a
+0, 562, 562, 1, 38016, 0xddbe6572
+0, 563, 563, 1, 38016, 0x113f65f2
+0, 564, 564, 1, 38016, 0x89beec24
+0, 565, 565, 1, 38016, 0x6490f37b
+0, 566, 566, 1, 38016, 0x15ecf84d
+0, 567, 567, 1, 38016, 0xa439f491
+0, 568, 568, 1, 38016, 0xda8bf5c4
+0, 569, 569, 1, 38016, 0x6bc2f96a
+0, 570, 570, 1, 38016, 0x243d0bac
+0, 571, 571, 1, 38016, 0xb7c611a2
+0, 572, 572, 1, 38016, 0x99243328
+0, 573, 573, 1, 38016, 0xa9534571
+0, 574, 574, 1, 38016, 0xa5a657bd
+0, 575, 575, 1, 38016, 0xd8d06892
+0, 576, 576, 1, 38016, 0xb4eb6c8d
+0, 577, 577, 1, 38016, 0xa3d36ca8
+0, 578, 578, 1, 38016, 0x153a6e9e
+0, 579, 579, 1, 38016, 0xf2607081
+0, 580, 580, 1, 38016, 0x799d7081
+0, 581, 581, 1, 38016, 0x377570cd
+0, 582, 582, 1, 38016, 0x90496e54
+0, 583, 583, 1, 38016, 0x1d4c746c
+0, 584, 584, 1, 38016, 0xbe5e72bb
+0, 585, 585, 1, 38016, 0x3c6a760d
+0, 586, 586, 1, 38016, 0xd4097614
+0, 587, 587, 1, 38016, 0xf45a7a28
+0, 588, 588, 1, 38016, 0x8fe37bb8
+0, 589, 589, 1, 38016, 0x966295dc
+0, 590, 590, 1, 38016, 0xb40da3df
+0, 591, 591, 1, 38016, 0x9714b2ac
+0, 592, 592, 1, 38016, 0xbdb3c61d
+0, 593, 593, 1, 38016, 0x12fcd320
+0, 594, 594, 1, 38016, 0x1ee8d858
+0, 595, 595, 1, 38016, 0x49e5e217
+0, 596, 596, 1, 38016, 0x92aef38e
+0, 597, 597, 1, 38016, 0xc26c0476
+0, 598, 598, 1, 38016, 0x8eed0e04
+0, 599, 599, 1, 38016, 0xe4e3118d
+0, 600, 600, 1, 38016, 0x282ce796
+0, 601, 601, 1, 38016, 0xbec801e1
+0, 602, 602, 1, 38016, 0x864afaf2
+0, 603, 603, 1, 38016, 0xe0860383
+0, 604, 604, 1, 38016, 0x4261001d
+0, 605, 605, 1, 38016, 0x976c0005
+0, 606, 606, 1, 38016, 0x69c40af3
+0, 607, 607, 1, 38016, 0xb3c00e18
+0, 608, 608, 1, 38016, 0x28300c2c
+0, 609, 609, 1, 38016, 0xf2d9ff9d
+0, 610, 610, 1, 38016, 0xcaeaf979
+0, 611, 611, 1, 38016, 0x6733f58e
+0, 612, 612, 1, 38016, 0x2bb80869
+0, 613, 613, 1, 38016, 0x3c370085
+0, 614, 614, 1, 38016, 0x11a2fa2a
+0, 615, 615, 1, 38016, 0x828ff770
+0, 616, 616, 1, 38016, 0x79bcf490
+0, 617, 617, 1, 38016, 0x31d5ee87
+0, 618, 618, 1, 38016, 0x6336f00d
+0, 619, 619, 1, 38016, 0x058af9d1
+0, 620, 620, 1, 38016, 0xff29eb2f
+0, 621, 621, 1, 38016, 0x3c3be1f4
+0, 622, 622, 1, 38016, 0xfbf5ddc2
+0, 623, 623, 1, 38016, 0x22a4d324
+0, 624, 624, 1, 38016, 0xb2d4d1d4
+0, 625, 625, 1, 38016, 0xa159171f
+0, 626, 626, 1, 38016, 0x61a80251
+0, 627, 627, 1, 38016, 0xe0429283
+0, 628, 628, 1, 38016, 0x5c255bd4
+0, 629, 629, 1, 38016, 0xdb0f57ac
+0, 630, 630, 1, 38016, 0x3c8bcbf0
+0, 631, 631, 1, 38016, 0x2be3d2ef
+0, 632, 632, 1, 38016, 0xcd2dc8cc
+0, 633, 633, 1, 38016, 0x6905c4cf
+0, 634, 634, 1, 38016, 0xd9c9c590
+0, 635, 635, 1, 38016, 0xa945cb51
+0, 636, 636, 1, 38016, 0x5c8458d3
+0, 637, 637, 1, 38016, 0xa1624b6e
+0, 638, 638, 1, 38016, 0xb167532e
+0, 639, 639, 1, 38016, 0x149d6413
+0, 640, 640, 1, 38016, 0x85d97340
+0, 641, 641, 1, 38016, 0x8f478203
+0, 642, 642, 1, 38016, 0x1902cc8e
+0, 643, 643, 1, 38016, 0x1521c5e5
+0, 644, 644, 1, 38016, 0xf2d6c7d8
+0, 645, 645, 1, 38016, 0x7150c510
+0, 646, 646, 1, 38016, 0xfc0ec330
+0, 647, 647, 1, 38016, 0x91c4c933
+0, 648, 648, 1, 38016, 0x5ec6cbc8
+0, 649, 649, 1, 38016, 0x23c0955c
+0, 650, 650, 1, 38016, 0x76fb7c27
+0, 651, 651, 1, 38016, 0x33c07597
+0, 652, 652, 1, 38016, 0x797b6acd
+0, 653, 653, 1, 38016, 0xc4945313
+0, 654, 654, 1, 38016, 0xa50f25da
+0, 655, 655, 1, 38016, 0x7bb6096c
+0, 656, 656, 1, 38016, 0x8a1acc48
+0, 657, 657, 1, 38016, 0x19a1c9b4
+0, 658, 658, 1, 38016, 0x4436cd03
+0, 659, 659, 1, 38016, 0xfd73d6fe
+0, 660, 660, 1, 38016, 0x25d3d4f0
+0, 661, 661, 1, 38016, 0x3acfcd98
+0, 662, 662, 1, 38016, 0x2ed3d071
+0, 663, 663, 1, 38016, 0x246fd4bd
+0, 664, 664, 1, 38016, 0x3e410c62
+0, 665, 665, 1, 38016, 0x29da1177
+0, 666, 666, 1, 38016, 0x039f1e46
+0, 667, 667, 1, 38016, 0x178d1e1a
+0, 668, 668, 1, 38016, 0x75561d47
+0, 669, 669, 1, 38016, 0x7d65193c
+0, 670, 670, 1, 38016, 0xd38d19a8
+0, 671, 671, 1, 38016, 0x39c92b20
+0, 672, 672, 1, 38016, 0x6c8aebc3
+0, 673, 673, 1, 38016, 0xd8d4f9be
+0, 674, 674, 1, 38016, 0x7e730a4a
+0, 675, 675, 1, 38016, 0xbfae1fee
+0, 676, 676, 1, 38016, 0x398f3484
+0, 677, 677, 1, 38016, 0xd8e84019
+0, 678, 678, 1, 38016, 0x2cf64db3
+0, 679, 679, 1, 38016, 0x7e074f09
+0, 680, 680, 1, 38016, 0xac384b5a
+0, 681, 681, 1, 38016, 0xd28b3a83
+0, 682, 682, 1, 38016, 0xa5ce5610
+0, 683, 683, 1, 38016, 0xde8565f7
+0, 684, 684, 1, 38016, 0x01397a1a
+0, 685, 685, 1, 38016, 0xdbdf7fb7
+0, 686, 686, 1, 38016, 0x8c1f8ba6
+0, 687, 687, 1, 38016, 0xab2a943c
+0, 688, 688, 1, 38016, 0x4f8b8421
+0, 689, 689, 1, 38016, 0x36f57b3a
+0, 690, 690, 1, 38016, 0x565c4dd9
+0, 691, 691, 1, 38016, 0x53c34715
+0, 692, 692, 1, 38016, 0x38fd4aaa
+0, 693, 693, 1, 38016, 0x4dca43eb
+0, 694, 694, 1, 38016, 0x1afe40f3
+0, 695, 695, 1, 38016, 0xc3dc43cc
+0, 696, 696, 1, 38016, 0x1d92431d
+0, 697, 697, 1, 38016, 0x3f794765
+0, 698, 698, 1, 38016, 0x1c5d4a71
+0, 699, 699, 1, 38016, 0xb601531e
+0, 700, 700, 1, 38016, 0x4d925d7c
+0, 701, 701, 1, 38016, 0x1c605f1e
+0, 702, 702, 1, 38016, 0x50ff5608
+0, 703, 703, 1, 38016, 0x8da14815
+0, 704, 704, 1, 38016, 0x53cc3007
+0, 705, 705, 1, 38016, 0x5ce82198
+0, 706, 706, 1, 38016, 0x074e15bc
+0, 707, 707, 1, 38016, 0x59fb13c9
+0, 708, 708, 1, 38016, 0xe28e13a6
+0, 709, 709, 1, 38016, 0xcb4f3fa8
+0, 710, 710, 1, 38016, 0x7fad560c
+0, 711, 711, 1, 38016, 0x7dbc614a
+0, 712, 712, 1, 38016, 0xe96f6d9c
+0, 713, 713, 1, 38016, 0xf3c47a74
+0, 714, 714, 1, 38016, 0xd2af8027
+0, 715, 715, 1, 38016, 0x504779d1
+0, 716, 716, 1, 38016, 0x876e7f5f
+0, 717, 717, 1, 38016, 0x959f8c3d
+0, 718, 718, 1, 38016, 0x64d690be
+0, 719, 719, 1, 38016, 0xdb899760
+0, 720, 720, 1, 38016, 0xbd229ba1
+0, 721, 721, 1, 38016, 0xdace575b
+0, 722, 722, 1, 38016, 0xfda46324
+0, 723, 723, 1, 38016, 0x57b75dbd
+0, 724, 724, 1, 38016, 0x264a59cf
+0, 725, 725, 1, 38016, 0xfde95cc8
+0, 726, 726, 1, 38016, 0x5116601b
+0, 727, 727, 1, 38016, 0x72e67205
+0, 728, 728, 1, 38016, 0xf1057674
+0, 729, 729, 1, 38016, 0x7e917eb9
+0, 730, 730, 1, 38016, 0x50ed8b28
+0, 731, 731, 1, 38016, 0x357a826c
+0, 732, 732, 1, 38016, 0xd68fa449
+0, 733, 733, 1, 38016, 0x3a839e39
+0, 734, 734, 1, 38016, 0x79469a1b
+0, 735, 735, 1, 38016, 0xa9ca9590
+0, 736, 736, 1, 38016, 0xbf399686
+0, 737, 737, 1, 38016, 0x40499eaf
+0, 738, 738, 1, 38016, 0x9972a76d
+0, 739, 739, 1, 38016, 0xa3d0aff4
+0, 740, 740, 1, 38016, 0xdf27b647
+0, 741, 741, 1, 38016, 0x4147c66e
+0, 742, 742, 1, 38016, 0x1378d1db
+0, 743, 743, 1, 38016, 0x1ca3d444
+0, 744, 744, 1, 38016, 0x464d9538
+0, 745, 745, 1, 38016, 0xaed28de9
+0, 746, 746, 1, 38016, 0xc77a9f86
+0, 747, 747, 1, 38016, 0x0882aa10
+0, 748, 748, 1, 38016, 0x206ac330
+0, 749, 749, 1, 38016, 0x63efd763
+0, 750, 750, 1, 38016, 0xbfe2e663
+0, 751, 751, 1, 38016, 0xfe6ff1ad
+0, 752, 752, 1, 38016, 0x60f9f47e
+0, 753, 753, 1, 38016, 0xba1cf0c0
+0, 754, 754, 1, 38016, 0x1880eb3d
+0, 755, 755, 1, 38016, 0xf0fdd350
+0, 756, 756, 1, 38016, 0xb678eedb
+0, 757, 757, 1, 38016, 0xa17cf5e4
+0, 758, 758, 1, 38016, 0x567fff2a
+0, 759, 759, 1, 38016, 0x52ab043b
+0, 760, 760, 1, 38016, 0x8e8b0bd9
+0, 761, 761, 1, 38016, 0x0f131a7e
+0, 762, 762, 1, 38016, 0x26aa2303
+0, 763, 763, 1, 38016, 0x70c12bab
+0, 764, 764, 1, 38016, 0xa8a93858
+0, 765, 765, 1, 38016, 0x289f3b94
+0, 766, 766, 1, 38016, 0x3d883605
+0, 767, 767, 1, 38016, 0xe171329e
+0, 768, 768, 1, 38016, 0x75292865
+0, 769, 769, 1, 38016, 0x1d2ac8dc
+0, 770, 770, 1, 38016, 0xa336aa94
+0, 771, 771, 1, 38016, 0xcede9906
+0, 772, 772, 1, 38016, 0x1c9a8b52
+0, 773, 773, 1, 38016, 0x2a9c8a78
+0, 774, 774, 1, 38016, 0x920a8583
+0, 775, 775, 1, 38016, 0xb3ee7e2d
+0, 776, 776, 1, 38016, 0x96be75fc
+0, 777, 777, 1, 38016, 0x2a8a68d2
+0, 778, 778, 1, 38016, 0xdf8e6baf
+0, 779, 779, 1, 38016, 0xd46570d1
+0, 780, 780, 1, 38016, 0x765b71af
+0, 781, 781, 1, 38016, 0x25fe71df
+0, 782, 782, 1, 38016, 0x9ca124e3
+0, 783, 783, 1, 38016, 0x77c51bab
+0, 784, 784, 1, 38016, 0x0b380db9
+0, 785, 785, 1, 38016, 0xb0be108b
+0, 786, 786, 1, 38016, 0x5c4808b8
+0, 787, 787, 1, 38016, 0x73331227
+0, 788, 788, 1, 38016, 0xce790cf2
+0, 789, 789, 1, 38016, 0x46ac0dfc
+0, 790, 790, 1, 38016, 0xdc310caf
+0, 791, 791, 1, 38016, 0x909c0606
+0, 792, 792, 1, 38016, 0x0756fb3e
+0, 793, 793, 1, 38016, 0x4eb0fb0d
+0, 794, 794, 1, 38016, 0x6276f6e2
+0, 795, 795, 1, 38016, 0x92e0f070
+0, 796, 796, 1, 38016, 0x6f2d793f
+0, 797, 797, 1, 38016, 0x215f704b
+0, 798, 798, 1, 38016, 0xf9b7765e
+0, 799, 799, 1, 38016, 0xdb6176bf
+0, 800, 800, 1, 38016, 0x2b5165eb
+0, 801, 801, 1, 38016, 0xf1145c06
+0, 802, 802, 1, 38016, 0x343f698d
+0, 803, 803, 1, 38016, 0xcb96713f
+0, 804, 804, 1, 38016, 0xc50f775a
+0, 805, 805, 1, 38016, 0xbb927e81
+0, 806, 806, 1, 38016, 0xa2497bd4
+0, 807, 807, 1, 38016, 0xe52b80fa
+0, 808, 808, 1, 38016, 0x900f7ac7
+0, 809, 809, 1, 38016, 0x77e77d0e
+0, 810, 810, 1, 38016, 0xdb33f302
+0, 811, 811, 1, 38016, 0xf0519288
+0, 812, 812, 1, 38016, 0x4552f487
+0, 813, 813, 1, 38016, 0xe7b5f34c
+0, 814, 814, 1, 38016, 0x0db18be6
+0, 815, 815, 1, 38016, 0xb9ba87c2
+0, 816, 816, 1, 38016, 0x1dc2f805
+0, 817, 817, 1, 38016, 0x4986f535
+0, 818, 818, 1, 38016, 0xc099f301
+0, 819, 819, 1, 38016, 0x3d8c6787
+0, 820, 820, 1, 38016, 0xd3a4796f
+0, 821, 821, 1, 38016, 0xfe01635f
+0, 822, 822, 1, 38016, 0xba8df082
+0, 823, 823, 1, 38016, 0x55f3f017
+0, 824, 824, 1, 38016, 0xf2d7f36a
+0, 825, 825, 1, 38016, 0x8bd8f7a1
+0, 826, 826, 1, 38016, 0xabcd638b
+0, 827, 827, 1, 38016, 0x69ae59ea
+0, 828, 828, 1, 38016, 0x5bf43408
+0, 829, 829, 1, 38016, 0x6466fd67
+0, 830, 830, 1, 38016, 0xc90effb4
+0, 831, 831, 1, 38016, 0x82110480
+0, 832, 832, 1, 38016, 0xb364f74b
+0, 833, 833, 1, 38016, 0x7f1efd76
+0, 834, 834, 1, 38016, 0x1a20f30f
+0, 835, 835, 1, 38016, 0x4b0fe377
+0, 836, 836, 1, 38016, 0x57b4c896
+0, 837, 837, 1, 38016, 0x92b1ab52
+0, 838, 838, 1, 38016, 0x10ceaf82
+0, 839, 839, 1, 38016, 0xc4d3b0b8
+0, 840, 840, 1, 38016, 0x68b9f314
+0, 841, 841, 1, 38016, 0xc627fd70
+0, 842, 842, 1, 38016, 0x5fc108dc
+0, 843, 843, 1, 38016, 0x0f1f12d7
+0, 844, 844, 1, 38016, 0x6edc208e
+0, 845, 845, 1, 38016, 0x91f824eb
+0, 846, 846, 1, 38016, 0x1464b836
+0, 847, 847, 1, 38016, 0x84c7c412
+0, 848, 848, 1, 38016, 0x3e8dd049
+0, 849, 849, 1, 38016, 0x493dd1a7
+0, 850, 850, 1, 38016, 0x25dfbd00
+0, 851, 851, 1, 38016, 0x140bbd33
+0, 852, 852, 1, 38016, 0x488e2db6
+0, 853, 853, 1, 38016, 0x9e4f2c0a
+0, 854, 854, 1, 38016, 0xd60928d3
+0, 855, 855, 1, 38016, 0x38b61e0b
+0, 856, 856, 1, 38016, 0xb6331660
+0, 857, 857, 1, 38016, 0x0a3a0e4c
+0, 858, 858, 1, 38016, 0x6ad9105b
+0, 859, 859, 1, 38016, 0x29a8cd6b
+0, 860, 860, 1, 38016, 0x35e1da7d
+0, 861, 861, 1, 38016, 0x824de492
+0, 862, 862, 1, 38016, 0x1c76d83c
+0, 863, 863, 1, 38016, 0xbe25d98d
+0, 864, 864, 1, 38016, 0x5efaf222
+0, 865, 865, 1, 38016, 0x17370266
+0, 866, 866, 1, 38016, 0x417a2375
+0, 867, 867, 1, 38016, 0xb7e423d3
+0, 868, 868, 1, 38016, 0x224020fe
+0, 869, 869, 1, 38016, 0x4bbe1ee9
+0, 870, 870, 1, 38016, 0x72aa1f21
+0, 871, 871, 1, 38016, 0xc810126d
+0, 872, 872, 1, 38016, 0x42730cd4
+0, 873, 873, 1, 38016, 0xfd510c5d
+0, 874, 874, 1, 38016, 0x7c6f1313
+0, 875, 875, 1, 38016, 0xc1b31b89
+0, 876, 876, 1, 38016, 0x57772339
+0, 877, 877, 1, 38016, 0x20922349
+0, 878, 878, 1, 38016, 0xea4f1a45
+0, 879, 879, 1, 38016, 0x79e214d2
+0, 880, 880, 1, 38016, 0x77521b5d
+0, 881, 881, 1, 38016, 0x5929276c
+0, 882, 882, 1, 38016, 0x40b3130d
+0, 883, 883, 1, 38016, 0x040a157e
+0, 884, 884, 1, 38016, 0x0de31983
+0, 885, 885, 1, 38016, 0xdb0a1852
+0, 886, 886, 1, 38016, 0x73111b91
+0, 887, 887, 1, 38016, 0xf7a61765
+0, 888, 888, 1, 38016, 0xc5dd2557
+0, 889, 889, 1, 38016, 0xabc32e16
+0, 890, 890, 1, 38016, 0x5f093823
+0, 891, 891, 1, 38016, 0x9f462f1e
+0, 892, 892, 1, 38016, 0x29822c19
+0, 893, 893, 1, 38016, 0x259a2697
+0, 894, 894, 1, 38016, 0x7ad61867
+0, 895, 895, 1, 38016, 0x32fe111f
+0, 896, 896, 1, 38016, 0xf65c1142
+0, 897, 897, 1, 38016, 0xc5b91a6d
+0, 898, 898, 1, 38016, 0x4461191e
+0, 899, 899, 1, 38016, 0x0458193a
+0, 900, 900, 1, 38016, 0x3ed084a9
+0, 901, 901, 1, 38016, 0x4dd28047
+0, 902, 902, 1, 38016, 0x18dd8523
+0, 903, 903, 1, 38016, 0x4ab87d32
+0, 904, 904, 1, 38016, 0xecd0824c
+0, 905, 905, 1, 38016, 0xae567d36
+0, 906, 906, 1, 38016, 0xfa2e82d0
+0, 907, 907, 1, 38016, 0xbce08c2e
+0, 908, 908, 1, 38016, 0x125094c4
+0, 909, 909, 1, 38016, 0x475e9b1d
+0, 910, 910, 1, 38016, 0x9b921150
+0, 911, 911, 1, 38016, 0x6f7b1124
+0, 912, 912, 1, 38016, 0xa1fe0d8b
+0, 913, 913, 1, 38016, 0x12930955
+0, 914, 914, 1, 38016, 0x3d981105
+0, 915, 915, 1, 38016, 0x92d92e3b
+0, 916, 916, 1, 38016, 0x29a33ed5
+0, 917, 917, 1, 38016, 0x8d0b578e
+0, 918, 918, 1, 38016, 0xda5571ba
+0, 919, 919, 1, 38016, 0xbc638172
+0, 920, 920, 1, 38016, 0x73fd9abb
+0, 921, 921, 1, 38016, 0x53df952b
+0, 922, 922, 1, 38016, 0xe1758a4c
+0, 923, 923, 1, 38016, 0x064f8812
+0, 924, 924, 1, 38016, 0xd9b08971
+0, 925, 925, 1, 38016, 0xfe6688a9
+0, 926, 926, 1, 38016, 0x3b50938b
+0, 927, 927, 1, 38016, 0x4e1a9c13
+0, 928, 928, 1, 38016, 0x63599bf0
+0, 929, 929, 1, 38016, 0x97e0957f
+0, 930, 930, 1, 38016, 0x5a6e98d7
+0, 931, 931, 1, 38016, 0xa4be8cf2
+0, 932, 932, 1, 38016, 0x53bb901e
+0, 933, 933, 1, 38016, 0x15f0994e
+0, 934, 934, 1, 38016, 0x71499a4b
+0, 935, 935, 1, 38016, 0xf41a87a5
+0, 936, 936, 1, 38016, 0x3e237999
+0, 937, 937, 1, 38016, 0xf77f5dd2
+0, 938, 938, 1, 38016, 0x89874799
+0, 939, 939, 1, 38016, 0x02d82294
+0, 940, 940, 1, 38016, 0xc5920154
+0, 941, 941, 1, 38016, 0x6e61f375
+0, 942, 942, 1, 38016, 0x41a6940c
+0, 943, 943, 1, 38016, 0x130b97f7
+0, 944, 944, 1, 38016, 0xdff09b51
+0, 945, 945, 1, 38016, 0xb2999bd6
+0, 946, 946, 1, 38016, 0x0bb99d20
+0, 947, 947, 1, 38016, 0x9f819633
+0, 948, 948, 1, 38016, 0x5bda9640
+0, 949, 949, 1, 38016, 0xdcf29321
+0, 950, 950, 1, 38016, 0xa6838a63
+0, 951, 951, 1, 38016, 0x820a825e
+0, 952, 952, 1, 38016, 0x69bb7859
+0, 953, 953, 1, 38016, 0x4a8c79c2
+0, 954, 954, 1, 38016, 0x1e97e67d
+0, 955, 955, 1, 38016, 0x1ad4de1b
+0, 956, 956, 1, 38016, 0xe8abeb33
+0, 957, 957, 1, 38016, 0xf3a51523
+0, 958, 958, 1, 38016, 0xb997399c
+0, 959, 959, 1, 38016, 0x9fee8105
+0, 960, 960, 1, 38016, 0xf2b6ada3
+0, 961, 961, 1, 38016, 0xe6f5bbb3
+0, 962, 962, 1, 38016, 0x8ed7ca9f
+0, 963, 963, 1, 38016, 0x711abc1a
+0, 964, 964, 1, 38016, 0x707ab544
+0, 965, 965, 1, 38016, 0x03b8af51
+0, 966, 966, 1, 38016, 0x50497b2c
+0, 967, 967, 1, 38016, 0x72b57a30
+0, 968, 968, 1, 38016, 0xfb6d8164
+0, 969, 969, 1, 38016, 0x88618e82
+0, 970, 970, 1, 38016, 0xb7369e49
+0, 971, 971, 1, 38016, 0x2502a3ca
+0, 972, 972, 1, 38016, 0x793aa276
+0, 973, 973, 1, 38016, 0x883a8ec6
+0, 974, 974, 1, 38016, 0x5f7784e5
+0, 975, 975, 1, 38016, 0xddfa7e94
+0, 976, 976, 1, 38016, 0xdb877fb8
+0, 977, 977, 1, 38016, 0x07e07f39
+0, 978, 978, 1, 38016, 0x412590fb
+0, 979, 979, 1, 38016, 0x1bd1b527
+0, 980, 980, 1, 38016, 0xbb6098c3
+0, 981, 981, 1, 38016, 0x5f1b8788
+0, 982, 982, 1, 38016, 0x42f068e8
+0, 983, 983, 1, 38016, 0x316b53bb
+0, 984, 984, 1, 38016, 0xbdbb3fa0
+0, 985, 985, 1, 38016, 0xa68f506c
+0, 986, 986, 1, 38016, 0xca355d03
+0, 987, 987, 1, 38016, 0xfafc6b88
+0, 988, 988, 1, 38016, 0x0f106535
+0, 989, 989, 1, 38016, 0xa4ae4e63
+0, 990, 990, 1, 38016, 0xb206400f
+0, 991, 991, 1, 38016, 0x3a5946d1
+0, 992, 992, 1, 38016, 0xca739868
+0, 993, 993, 1, 38016, 0xe6939d41
+0, 994, 994, 1, 38016, 0x2ec19a76
+0, 995, 995, 1, 38016, 0x614e96a4
+0, 996, 996, 1, 38016, 0x2c2b9348
+0, 997, 997, 1, 38016, 0xa00c7f1f
+0, 998, 998, 1, 38016, 0x95cb6eca
+0, 999, 999, 1, 38016, 0x069d6c4c
+0, 1000, 1000, 1, 38016, 0xe17e03e3
+0, 1001, 1001, 1, 38016, 0xa7491870
+0, 1002, 1002, 1, 38016, 0xacc91e48
+0, 1003, 1003, 1, 38016, 0x99eb1e2a
+0, 1004, 1004, 1, 38016, 0xb2eb1279
+0, 1005, 1005, 1, 38016, 0xa5020c77
+0, 1006, 1006, 1, 38016, 0xde966613
+0, 1007, 1007, 1, 38016, 0xac7f6e1e
+0, 1008, 1008, 1, 38016, 0x1c378a7a
+0, 1009, 1009, 1, 38016, 0x32e6d8a4
+0, 1010, 1010, 1, 38016, 0xecb8d286
+0, 1011, 1011, 1, 38016, 0xa497d941
+0, 1012, 1012, 1, 38016, 0x8ad7d36e
+0, 1013, 1013, 1, 38016, 0xdbd8a91a
+0, 1014, 1014, 1, 38016, 0x718f61d7
+0, 1015, 1015, 1, 38016, 0x862619cf
+0, 1016, 1016, 1, 38016, 0xaa049781
+0, 1017, 1017, 1, 38016, 0xd3986887
+0, 1018, 1018, 1, 38016, 0x9e9f5782
+0, 1019, 1019, 1, 38016, 0x2a9d4f70
+0, 1020, 1020, 1, 38016, 0x62b91421
+0, 1021, 1021, 1, 38016, 0x32313eaa
+0, 1022, 1022, 1, 38016, 0xf9bf1879
+0, 1023, 1023, 1, 38016, 0xc33c0811
+0, 1024, 1024, 1, 38016, 0xe9c21227
+0, 1025, 1025, 1, 38016, 0xf2922db6
+0, 1026, 1026, 1, 38016, 0x669d0627
+0, 1027, 1027, 1, 38016, 0x64c1048a
+0, 1028, 1028, 1, 38016, 0xdd28fa70
+0, 1029, 1029, 1, 38016, 0xd88e8b77
+0, 1030, 1030, 1, 38016, 0x3716bdb8
+0, 1031, 1031, 1, 38016, 0x1834ef57
+0, 1032, 1032, 1, 38016, 0xddb800b7
+0, 1033, 1033, 1, 38016, 0x140302cc
+0, 1034, 1034, 1, 38016, 0x7fa60568
+0, 1035, 1035, 1, 38016, 0x7cc6fd4b
+0, 1036, 1036, 1, 38016, 0xf14c2568
+0, 1037, 1037, 1, 38016, 0x2ee88bbc
+0, 1038, 1038, 1, 38016, 0x915cd143
+0, 1039, 1039, 1, 38016, 0x13ede5fa
+0, 1040, 1040, 1, 38016, 0x6615f63b
+0, 1041, 1041, 1, 38016, 0x8814f54f
+0, 1042, 1042, 1, 38016, 0xb53ef24a
+0, 1043, 1043, 1, 38016, 0xc6a8ee80
+0, 1044, 1044, 1, 38016, 0x9473ee09
+0, 1045, 1045, 1, 38016, 0x9b77d932
+0, 1046, 1046, 1, 38016, 0x142fc69a
+0, 1047, 1047, 1, 38016, 0xb238c6a2
+0, 1048, 1048, 1, 38016, 0x4364d302
+0, 1049, 1049, 1, 38016, 0xde39d174
+0, 1050, 1050, 1, 38016, 0x7fca7fa6
+0, 1051, 1051, 1, 38016, 0x77678d42
+0, 1052, 1052, 1, 38016, 0xaa7e8b68
+0, 1053, 1053, 1, 38016, 0xeecb8c89
+0, 1054, 1054, 1, 38016, 0x6e5e8980
+0, 1055, 1055, 1, 38016, 0x4f4a80de
+0, 1056, 1056, 1, 38016, 0xb3b5cee6
+0, 1057, 1057, 1, 38016, 0x0c72cf1c
+0, 1058, 1058, 1, 38016, 0xd83fd12d
+0, 1059, 1059, 1, 38016, 0x8deeda59
+0, 1060, 1060, 1, 38016, 0xe7fae46e
+0, 1061, 1061, 1, 38016, 0x8233ecd5
+0, 1062, 1062, 1, 38016, 0x0c32808c
+0, 1063, 1063, 1, 38016, 0xf43f8571
+0, 1064, 1064, 1, 38016, 0xae898f01
+0, 1065, 1065, 1, 38016, 0x5a4a99e9
+0, 1066, 1066, 1, 38016, 0x589f9b80
+0, 1067, 1067, 1, 38016, 0x6ca5a33b
+0, 1068, 1068, 1, 38016, 0x3811af0a
+0, 1069, 1069, 1, 38016, 0x8272eda7
+0, 1070, 1070, 1, 38016, 0xa807f046
+0, 1071, 1071, 1, 38016, 0x5b4fec80
+0, 1072, 1072, 1, 38016, 0xb6e6e7fa
+0, 1073, 1073, 1, 38016, 0x250cdb5c
+0, 1074, 1074, 1, 38016, 0x3f38e876
+0, 1075, 1075, 1, 38016, 0x8110e94a
+0, 1076, 1076, 1, 38016, 0x0f19abd7
+0, 1077, 1077, 1, 38016, 0x9e1ca9bd
+0, 1078, 1078, 1, 38016, 0x1f33abae
+0, 1079, 1079, 1, 38016, 0xff18ad65
+0, 1080, 1080, 1, 38016, 0x3d02b300
+0, 1081, 1081, 1, 38016, 0xb7a9b4b2
+0, 1082, 1082, 1, 38016, 0xd8cab454
+0, 1083, 1083, 1, 38016, 0xb48ab772
+0, 1084, 1084, 1, 38016, 0x7f98fe59
+0, 1085, 1085, 1, 38016, 0x786c1795
+0, 1086, 1086, 1, 38016, 0x013437ff
+0, 1087, 1087, 1, 38016, 0xba28622a
+0, 1088, 1088, 1, 38016, 0xf48486e1
+0, 1089, 1089, 1, 38016, 0xc13695c4
+0, 1090, 1090, 1, 38016, 0x1fc5a4d2
+0, 1091, 1091, 1, 38016, 0x016caefd
+0, 1092, 1092, 1, 38016, 0x76b8bc54
+0, 1093, 1093, 1, 38016, 0xcf63bdbc
+0, 1094, 1094, 1, 38016, 0xeb02c0e2
+0, 1095, 1095, 1, 38016, 0xb57dc067
+0, 1096, 1096, 1, 38016, 0x8ec8c058
+0, 1097, 1097, 1, 38016, 0xcb04be49
+0, 1098, 1098, 1, 38016, 0xceccbfac
+0, 1099, 1099, 1, 38016, 0x3408c0c3
+0, 1100, 1100, 1, 38016, 0xee526afa
+0, 1101, 1101, 1, 38016, 0xd7529aad
+0, 1102, 1102, 1, 38016, 0x98bd9221
+0, 1103, 1103, 1, 38016, 0x2fbd7e5a
+0, 1104, 1104, 1, 38016, 0x0fb8a8fc
+0, 1105, 1105, 1, 38016, 0xfd28af91
+0, 1106, 1106, 1, 38016, 0x81db9907
+0, 1107, 1107, 1, 38016, 0x1f0a8ae7
+0, 1108, 1108, 1, 38016, 0xd91e93e3
+0, 1109, 1109, 1, 38016, 0x5fe6b043
+0, 1110, 1110, 1, 38016, 0x2a618a48
+0, 1111, 1111, 1, 38016, 0xef1c8cc2
+0, 1112, 1112, 1, 38016, 0x928595ce
+0, 1113, 1113, 1, 38016, 0xf2a59a43
+0, 1114, 1114, 1, 38016, 0x61bf92d0
+0, 1115, 1115, 1, 38016, 0x584d840f
+0, 1116, 1116, 1, 38016, 0x42177cb1
+0, 1117, 1117, 1, 38016, 0x08867c3b
+0, 1118, 1118, 1, 38016, 0x5a89813b
+0, 1119, 1119, 1, 38016, 0xba558022
+0, 1120, 1120, 1, 38016, 0x3d58878a
+0, 1121, 1121, 1, 38016, 0x8d215911
+0, 1122, 1122, 1, 38016, 0xea27370c
+0, 1123, 1123, 1, 38016, 0x7e2a1a9c
+0, 1124, 1124, 1, 38016, 0xbb86f763
+0, 1125, 1125, 1, 38016, 0xf03fd3c7
+0, 1126, 1126, 1, 38016, 0x1eaac263
+0, 1127, 1127, 1, 38016, 0x8a4bd0e1
+0, 1128, 1128, 1, 38016, 0x5adcf66d
+0, 1129, 1129, 1, 38016, 0xa0320a89
+0, 1130, 1130, 1, 38016, 0x77338f96
+0, 1131, 1131, 1, 38016, 0xf3498f6a
+0, 1132, 1132, 1, 38016, 0x7e248dcf
+0, 1133, 1133, 1, 38016, 0xf7f68dcc
+0, 1134, 1134, 1, 38016, 0x5da597c9
+0, 1135, 1135, 1, 38016, 0x63db9d00
+0, 1136, 1136, 1, 38016, 0xd1f09e52
+0, 1137, 1137, 1, 38016, 0xfc7ba2e1
+0, 1138, 1138, 1, 38016, 0x8c26ab25
+0, 1139, 1139, 1, 38016, 0x6a45add3
+0, 1140, 1140, 1, 38016, 0x0dd7b2a2
+0, 1141, 1141, 1, 38016, 0x70c00c4f
+0, 1142, 1142, 1, 38016, 0x437e255e
+0, 1143, 1143, 1, 38016, 0x63dd455b
+0, 1144, 1144, 1, 38016, 0x01453a2e
+0, 1145, 1145, 1, 38016, 0x08c120af
+0, 1146, 1146, 1, 38016, 0xf3111451
+0, 1147, 1147, 1, 38016, 0xf3f10603
+0, 1148, 1148, 1, 38016, 0xb154fa41
+0, 1149, 1149, 1, 38016, 0x4734ee73
+0, 1150, 1150, 1, 38016, 0x28ca7926
+0, 1151, 1151, 1, 38016, 0xbb628234
+0, 1152, 1152, 1, 38016, 0x0ca1b42f
+0, 1153, 1153, 1, 38016, 0x8397b202
+0, 1154, 1154, 1, 38016, 0x9d92b832
+0, 1155, 1155, 1, 38016, 0x8fbeb4b2
+0, 1156, 1156, 1, 38016, 0x056aa904
+0, 1157, 1157, 1, 38016, 0x4e78a55c
+0, 1158, 1158, 1, 38016, 0xe8a8a265
+0, 1159, 1159, 1, 38016, 0xb703a17b
+0, 1160, 1160, 1, 38016, 0xe79e9d71
+0, 1161, 1161, 1, 38016, 0xbd769f5d
+0, 1162, 1162, 1, 38016, 0x602ea70f
+0, 1163, 1163, 1, 38016, 0x034caf76
+0, 1164, 1164, 1, 38016, 0x28dd9702
+0, 1165, 1165, 1, 38016, 0xc8879c85
+0, 1166, 1166, 1, 38016, 0x15b098f2
+0, 1167, 1167, 1, 38016, 0xf34b9ce5
+0, 1168, 1168, 1, 38016, 0x6d159fbf
+0, 1169, 1169, 1, 38016, 0x22eb9cac
+0, 1170, 1170, 1, 38016, 0xae42a220
+0, 1171, 1171, 1, 38016, 0x1275a131
+0, 1172, 1172, 1, 38016, 0x8188a057
+0, 1173, 1173, 1, 38016, 0x65dea0d1
+0, 1174, 1174, 1, 38016, 0x5bd19be2
+0, 1175, 1175, 1, 38016, 0xfbd99219
+0, 1176, 1176, 1, 38016, 0xad19b3a2
+0, 1177, 1177, 1, 38016, 0xa897bb92
+0, 1178, 1178, 1, 38016, 0x5b1fbf2e
+0, 1179, 1179, 1, 38016, 0x02a5cb24
+0, 1180, 1180, 1, 38016, 0xd6ead6fe
+0, 1181, 1181, 1, 38016, 0x3083de8a
+0, 1182, 1182, 1, 38016, 0xbf1decb4
+0, 1183, 1183, 1, 38016, 0xd92af986
+0, 1184, 1184, 1, 38016, 0x4c520154
+0, 1185, 1185, 1, 38016, 0xd45805a1
+0, 1186, 1186, 1, 38016, 0x25e2084d
+0, 1187, 1187, 1, 38016, 0x4e3d0960
+0, 1188, 1188, 1, 38016, 0x5b449ef2
+0, 1189, 1189, 1, 38016, 0xda15abcc
+0, 1190, 1190, 1, 38016, 0x1b3ba622
+0, 1191, 1191, 1, 38016, 0xaf61a32a
+0, 1192, 1192, 1, 38016, 0xcfa39e3d
+0, 1193, 1193, 1, 38016, 0x8865a56c
+0, 1194, 1194, 1, 38016, 0x3bc9af9b
+0, 1195, 1195, 1, 38016, 0x0a83c081
+0, 1196, 1196, 1, 38016, 0x5ccec976
+0, 1197, 1197, 1, 38016, 0x1f1fc906
+0, 1198, 1198, 1, 38016, 0x1ef6cc46
+0, 1199, 1199, 1, 38016, 0x7776c39e
+0, 1200, 1200, 1, 38016, 0x5860a212
+0, 1201, 1201, 1, 38016, 0x2d9092a3
+0, 1202, 1202, 1, 38016, 0x964d9f81
+0, 1203, 1203, 1, 38016, 0xc35c9691
+0, 1204, 1204, 1, 38016, 0x5e0dc673
+0, 1205, 1205, 1, 38016, 0xada3b7d6
+0, 1206, 1206, 1, 38016, 0x4f3a8d03
+0, 1207, 1207, 1, 38016, 0xfcb4861a
+0, 1208, 1208, 1, 38016, 0xfa908149
+0, 1209, 1209, 1, 38016, 0x6994c514
+0, 1210, 1210, 1, 38016, 0x37c5aaa9
+0, 1211, 1211, 1, 38016, 0x207abcfe
+0, 1212, 1212, 1, 38016, 0x778d7a2d
+0, 1213, 1213, 1, 38016, 0x60b773ff
+0, 1214, 1214, 1, 38016, 0x41cd67d5
+0, 1215, 1215, 1, 38016, 0x3c595a99
+0, 1216, 1216, 1, 38016, 0xd672b14c
+0, 1217, 1217, 1, 38016, 0x7db2c0fd
+0, 1218, 1218, 1, 38016, 0x3d21cf34
+0, 1219, 1219, 1, 38016, 0xdd1cf044
+0, 1220, 1220, 1, 38016, 0xc4594bcb
+0, 1221, 1221, 1, 38016, 0x595e4356
+0, 1222, 1222, 1, 38016, 0x9cc53c0d
+0, 1223, 1223, 1, 38016, 0x78fc325f
+0, 1224, 1224, 1, 38016, 0xc632324f
+0, 1225, 1225, 1, 38016, 0x18b1f5c1
+0, 1226, 1226, 1, 38016, 0x63aff55e
+0, 1227, 1227, 1, 38016, 0x8a50fb04
+0, 1228, 1228, 1, 38016, 0x7d5e20f6
+0, 1229, 1229, 1, 38016, 0xc31114bb
+0, 1230, 1230, 1, 38016, 0xf4852e6e
+0, 1231, 1231, 1, 38016, 0x9b6927ba
+0, 1232, 1232, 1, 38016, 0x024836c2
+0, 1233, 1233, 1, 38016, 0x20843b21
+0, 1234, 1234, 1, 38016, 0x19134055
+0, 1235, 1235, 1, 38016, 0x1cd843f7
+0, 1236, 1236, 1, 38016, 0x122705b1
+0, 1237, 1237, 1, 38016, 0x1880fc3d
+0, 1238, 1238, 1, 38016, 0x78dbfeaf
+0, 1239, 1239, 1, 38016, 0x212c273d
+0, 1240, 1240, 1, 38016, 0xff2eb7be
+0, 1241, 1241, 1, 38016, 0xe0bd752d
+0, 1242, 1242, 1, 38016, 0x277b478a
+0, 1243, 1243, 1, 38016, 0x59e84ab2
+0, 1244, 1244, 1, 38016, 0x338a50e4
+0, 1245, 1245, 1, 38016, 0xaf715a99
+0, 1246, 1246, 1, 38016, 0xd1e459a8
+0, 1247, 1247, 1, 38016, 0x70da4ac9
+0, 1248, 1248, 1, 38016, 0xa695540d
+0, 1249, 1249, 1, 38016, 0x9385320b
+0, 1250, 1250, 1, 38016, 0x9a8703cd
+0, 1251, 1251, 1, 38016, 0xbeda239e
+0, 1252, 1252, 1, 38016, 0x5bf262c1
+0, 1253, 1253, 1, 38016, 0x9b216899
+0, 1254, 1254, 1, 38016, 0x52f24135
+0, 1255, 1255, 1, 38016, 0x75a23955
+0, 1256, 1256, 1, 38016, 0xb92f4ea2
+0, 1257, 1257, 1, 38016, 0xdac95333
+0, 1258, 1258, 1, 38016, 0x1a2d4ed4
+0, 1259, 1259, 1, 38016, 0xfce25650
+0, 1260, 1260, 1, 38016, 0x1e264fdd
+0, 1261, 1261, 1, 38016, 0xe77349b8
+0, 1262, 1262, 1, 38016, 0x7d2046b0
+0, 1263, 1263, 1, 38016, 0x65373899
+0, 1264, 1264, 1, 38016, 0x3b3569ae
+0, 1265, 1265, 1, 38016, 0x346485d0
+0, 1266, 1266, 1, 38016, 0x80b93e57
+0, 1267, 1267, 1, 38016, 0xeb724ba5
+0, 1268, 1268, 1, 38016, 0x533d7459
+0, 1269, 1269, 1, 38016, 0x60f957a7
+0, 1270, 1270, 1, 38016, 0x900281b2
+0, 1271, 1271, 1, 38016, 0xf4489e06
+0, 1272, 1272, 1, 38016, 0xe77730c9
+0, 1273, 1273, 1, 38016, 0x41b23060
+0, 1274, 1274, 1, 38016, 0x4e8c3012
+0, 1275, 1275, 1, 38016, 0x651f2cff
+0, 1276, 1276, 1, 38016, 0x787b2e99
+0, 1277, 1277, 1, 38016, 0x541e2d10
+0, 1278, 1278, 1, 38016, 0x27a824a3
+0, 1279, 1279, 1, 38016, 0xe1e72121
+0, 1280, 1280, 1, 38016, 0xffb52626
+0, 1281, 1281, 1, 38016, 0x7677c8c9
+0, 1282, 1282, 1, 38016, 0xa501d38f
+0, 1283, 1283, 1, 38016, 0xa6d2c5dc
+0, 1284, 1284, 1, 38016, 0xba94d1c1
+0, 1285, 1285, 1, 38016, 0x137dac4d
+0, 1286, 1286, 1, 38016, 0x65c1bd6e
+0, 1287, 1287, 1, 38016, 0x7a32cd65
+0, 1288, 1288, 1, 38016, 0x518adf61
+0, 1289, 1289, 1, 38016, 0x8baaee58
+0, 1290, 1290, 1, 38016, 0xe7642712
+0, 1291, 1291, 1, 38016, 0xba191b45
+0, 1292, 1292, 1, 38016, 0x93dd16b1
+0, 1293, 1293, 1, 38016, 0x22831478
+0, 1294, 1294, 1, 38016, 0xe48c103a
+0, 1295, 1295, 1, 38016, 0x7c2709e7
+0, 1296, 1296, 1, 38016, 0xd7d8f454
+0, 1297, 1297, 1, 38016, 0xc504f31a
+0, 1298, 1298, 1, 38016, 0x2510e4ae
+0, 1299, 1299, 1, 38016, 0x0b56d119
+0, 1300, 1300, 1, 38016, 0x6c248150
+0, 1301, 1301, 1, 38016, 0xbac4be42
+0, 1302, 1302, 1, 38016, 0x5787c4a8
+0, 1303, 1303, 1, 38016, 0x65b3d0bd
+0, 1304, 1304, 1, 38016, 0xdcc4efbd
+0, 1305, 1305, 1, 38016, 0xfe92f78b
+0, 1306, 1306, 1, 38016, 0xfda60c1c
+0, 1307, 1307, 1, 38016, 0x4997238e
+0, 1308, 1308, 1, 38016, 0xfaca43ca
+0, 1309, 1309, 1, 38016, 0x81fe533c
+0, 1310, 1310, 1, 38016, 0x350bcb11
+0, 1311, 1311, 1, 38016, 0xacfdcde4
+0, 1312, 1312, 1, 38016, 0xb039c663
+0, 1313, 1313, 1, 38016, 0x3402c942
+0, 1314, 1314, 1, 38016, 0x388bc3d0
+0, 1315, 1315, 1, 38016, 0x85dec11a
+0, 1316, 1316, 1, 38016, 0xdfc2be86
+0, 1317, 1317, 1, 38016, 0x515cc1a9
+0, 1318, 1318, 1, 38016, 0xc7ddb990
+0, 1319, 1319, 1, 38016, 0x043fb332
+0, 1320, 1320, 1, 38016, 0x5b05b3a7
+0, 1321, 1321, 1, 38016, 0xacdf9836
+0, 1322, 1322, 1, 38016, 0x55079a49
+0, 1323, 1323, 1, 38016, 0x5de2d90d
+0, 1324, 1324, 1, 38016, 0x7f9deb52
+0, 1325, 1325, 1, 38016, 0x83ddc6d9
+0, 1326, 1326, 1, 38016, 0x77ecdc93
+0, 1327, 1327, 1, 38016, 0x745fe832
+0, 1328, 1328, 1, 38016, 0x920bf8e7
+0, 1329, 1329, 1, 38016, 0xd9fc1803
+0, 1330, 1330, 1, 38016, 0x06c13052
+0, 1331, 1331, 1, 38016, 0x4a962b49
+0, 1332, 1332, 1, 38016, 0xd4a7b571
+0, 1333, 1333, 1, 38016, 0xdb76bd1e
+0, 1334, 1334, 1, 38016, 0x11a4be41
+0, 1335, 1335, 1, 38016, 0x575eb740
+0, 1336, 1336, 1, 38016, 0x7f11bb5c
+0, 1337, 1337, 1, 38016, 0x0f97b9b5
+0, 1338, 1338, 1, 38016, 0xa421bc1e
+0, 1339, 1339, 1, 38016, 0x2510bda8
+0, 1340, 1340, 1, 38016, 0x5ec1c3c2
+0, 1341, 1341, 1, 38016, 0xab02c212
+0, 1342, 1342, 1, 38016, 0x7862c24a
+0, 1343, 1343, 1, 38016, 0x3654c47c
+0, 1344, 1344, 1, 38016, 0x6e4f3fd5
+0, 1345, 1345, 1, 38016, 0x77b54c6f
+0, 1346, 1346, 1, 38016, 0x51016691
+0, 1347, 1347, 1, 38016, 0x5c2e7a7a
+0, 1348, 1348, 1, 38016, 0x29aea461
+0, 1349, 1349, 1, 38016, 0x8f4397b1
+0, 1350, 1350, 1, 38016, 0x8af41dba
+0, 1351, 1351, 1, 38016, 0x4c1154ca
+0, 1352, 1352, 1, 38016, 0xe23e6e91
+0, 1353, 1353, 1, 38016, 0xd0617571
+0, 1354, 1354, 1, 38016, 0x2ab88348
+0, 1355, 1355, 1, 38016, 0x8bf1a109
+0, 1356, 1356, 1, 38016, 0xfdd4c390
+0, 1357, 1357, 1, 38016, 0x17b8c6bf
+0, 1358, 1358, 1, 38016, 0xa012bd5d
+0, 1359, 1359, 1, 38016, 0x4c16cee2
+0, 1360, 1360, 1, 38016, 0x739fcfae
+0, 1361, 1361, 1, 38016, 0x3edae498
+0, 1362, 1362, 1, 38016, 0x0d38e4ad
+0, 1363, 1363, 1, 38016, 0x896cea10
+0, 1364, 1364, 1, 38016, 0x13a0f1a9
+0, 1365, 1365, 1, 38016, 0xfe70eeb4
+0, 1366, 1366, 1, 38016, 0x540bf40e
+0, 1367, 1367, 1, 38016, 0xee20f65e
+0, 1368, 1368, 1, 38016, 0x8404fdf7
+0, 1369, 1369, 1, 38016, 0x1c71b182
+0, 1370, 1370, 1, 38016, 0x96e4c5cc
+0, 1371, 1371, 1, 38016, 0x6aa1dcf1
+0, 1372, 1372, 1, 38016, 0x4549ed9b
+0, 1373, 1373, 1, 38016, 0xd50bffba
+0, 1374, 1374, 1, 38016, 0x22701379
+0, 1375, 1375, 1, 38016, 0x19462a6b
+0, 1376, 1376, 1, 38016, 0x4f6b41e0
+0, 1377, 1377, 1, 38016, 0x9d344fcc
+0, 1378, 1378, 1, 38016, 0x60625fa9
+0, 1379, 1379, 1, 38016, 0xeb377eae
+0, 1380, 1380, 1, 38016, 0x0d9f945d
+0, 1381, 1381, 1, 38016, 0x4d0fb1dc
+0, 1382, 1382, 1, 38016, 0x0b580421
+0, 1383, 1383, 1, 38016, 0x30f3191a
+0, 1384, 1384, 1, 38016, 0xc5f7295c
+0, 1385, 1385, 1, 38016, 0xc4ad35e9
+0, 1386, 1386, 1, 38016, 0x25964387
+0, 1387, 1387, 1, 38016, 0x3a805820
+0, 1388, 1388, 1, 38016, 0x67e26985
+0, 1389, 1389, 1, 38016, 0x518f7941
+0, 1390, 1390, 1, 38016, 0x2a7982e1
+0, 1391, 1391, 1, 38016, 0x54aa84f0
+0, 1392, 1392, 1, 38016, 0x3d808f45
+0, 1393, 1393, 1, 38016, 0x5dae923c
+0, 1394, 1394, 1, 38016, 0xa2a99ccf
+0, 1395, 1395, 1, 38016, 0xefdd9a77
+0, 1396, 1396, 1, 38016, 0x246fcfa5
+0, 1397, 1397, 1, 38016, 0xe315cbcd
+0, 1398, 1398, 1, 38016, 0x4825df58
+0, 1399, 1399, 1, 38016, 0x0e241554
+0, 1400, 1400, 1, 38016, 0x968d8433
+0, 1401, 1401, 1, 38016, 0x97eec628
+0, 1402, 1402, 1, 38016, 0x7c4cb603
+0, 1403, 1403, 1, 38016, 0x6d11e7bf
+0, 1404, 1404, 1, 38016, 0xae041b61
+0, 1405, 1405, 1, 38016, 0x385e040c
+0, 1406, 1406, 1, 38016, 0x449e357a
+0, 1407, 1407, 1, 38016, 0x997f4aac
+0, 1408, 1408, 1, 38016, 0xd68c4f8b
+0, 1409, 1409, 1, 38016, 0xb3b962eb
+0, 1410, 1410, 1, 38016, 0x4685adc2
+0, 1411, 1411, 1, 38016, 0xed0d7473
+0, 1412, 1412, 1, 38016, 0xd069c0bb
+0, 1413, 1413, 1, 38016, 0x76abcd8e
+0, 1414, 1414, 1, 38016, 0xd6c096da
+0, 1415, 1415, 1, 38016, 0x76c2bab5
+0, 1416, 1416, 1, 38016, 0x1461dfb3
+0, 1417, 1417, 1, 38016, 0xf979f59f
+0, 1418, 1418, 1, 38016, 0x0554f985
+0, 1419, 1419, 1, 38016, 0x11c6d2a3
+0, 1420, 1420, 1, 38016, 0xe6e3faee
+0, 1421, 1421, 1, 38016, 0x6ceafbcc
+0, 1422, 1422, 1, 38016, 0x429b02e1
+0, 1423, 1423, 1, 38016, 0x97bd03f1
+0, 1424, 1424, 1, 38016, 0x78330c48
+0, 1425, 1425, 1, 38016, 0xb2720325
+0, 1426, 1426, 1, 38016, 0x26d412ab
+0, 1427, 1427, 1, 38016, 0xb6fb1b5c
+0, 1428, 1428, 1, 38016, 0xde8d300a
+0, 1429, 1429, 1, 38016, 0x7d28450e
+0, 1430, 1430, 1, 38016, 0xb3c5fbef
+0, 1431, 1431, 1, 38016, 0x2222f726
+0, 1432, 1432, 1, 38016, 0x66f7f42f
+0, 1433, 1433, 1, 38016, 0xef8af722
+0, 1434, 1434, 1, 38016, 0x4ac0f8d7
+0, 1435, 1435, 1, 38016, 0x5bfe5c81
+0, 1436, 1436, 1, 38016, 0x4afb6df9
+0, 1437, 1437, 1, 38016, 0xa8128a37
+0, 1438, 1438, 1, 38016, 0x1fc79ed0
+0, 1439, 1439, 1, 38016, 0x9967a997
+0, 1440, 1440, 1, 38016, 0x7bb5f6e1
+0, 1441, 1441, 1, 38016, 0xdda90122
+0, 1442, 1442, 1, 38016, 0x81700c1a
+0, 1443, 1443, 1, 38016, 0x9e121e77
+0, 1444, 1444, 1, 38016, 0xf58926a3
+0, 1445, 1445, 1, 38016, 0x4d1431a4
+0, 1446, 1446, 1, 38016, 0x0de6e741
+0, 1447, 1447, 1, 38016, 0x3ae9f601
+0, 1448, 1448, 1, 38016, 0xbed2e950
+0, 1449, 1449, 1, 38016, 0x619f100d
+0, 1450, 1450, 1, 38016, 0x6fa4a4e2
+0, 1451, 1451, 1, 38016, 0x316cddcd
+0, 1452, 1452, 1, 38016, 0x03132791
+0, 1453, 1453, 1, 38016, 0x10122784
+0, 1454, 1454, 1, 38016, 0x0e732980
+0, 1455, 1455, 1, 38016, 0x382d26f9
+0, 1456, 1456, 1, 38016, 0x651028fd
+0, 1457, 1457, 1, 38016, 0x61732850
+0, 1458, 1458, 1, 38016, 0x47912dde
+0, 1459, 1459, 1, 38016, 0xe3a12fdc
+0, 1460, 1460, 1, 38016, 0x8bc332ff
+0, 1461, 1461, 1, 38016, 0xcc3a3cdc
+0, 1462, 1462, 1, 38016, 0x190e2fec
+0, 1463, 1463, 1, 38016, 0x236c3291
+0, 1464, 1464, 1, 38016, 0xc0e55dd3
+0, 1465, 1465, 1, 38016, 0x06c85411
+0, 1466, 1466, 1, 38016, 0x0c0b3091
+0, 1467, 1467, 1, 38016, 0x8c1333cd
+0, 1468, 1468, 1, 38016, 0x51b339a5
+0, 1469, 1469, 1, 38016, 0x2d5b33ef
+0, 1470, 1470, 1, 38016, 0x73f0395b
+0, 1471, 1471, 1, 38016, 0x505b42d3
+0, 1472, 1472, 1, 38016, 0x56e44c7f
+0, 1473, 1473, 1, 38016, 0x26465781
+0, 1474, 1474, 1, 38016, 0x1d14800d
+0, 1475, 1475, 1, 38016, 0x752cb297
+0, 1476, 1476, 1, 38016, 0x0c3ab720
+0, 1477, 1477, 1, 38016, 0x21c2f136
+0, 1478, 1478, 1, 38016, 0xbae8b293
+0, 1479, 1479, 1, 38016, 0xe4b2fe9b
+0, 1480, 1480, 1, 38016, 0xfaaf0394
+0, 1481, 1481, 1, 38016, 0xa6f61d4b
+0, 1482, 1482, 1, 38016, 0x0e205192
+0, 1483, 1483, 1, 38016, 0x9b3c5c1f
+0, 1484, 1484, 1, 38016, 0x3b93552f
+0, 1485, 1485, 1, 38016, 0xe56e5b54
+0, 1486, 1486, 1, 38016, 0xa1c26095
+0, 1487, 1487, 1, 38016, 0x1eb66e41
+0, 1488, 1488, 1, 38016, 0x83eb6e83
+0, 1489, 1489, 1, 38016, 0xc8a979d3
+0, 1490, 1490, 1, 38016, 0x81fb7b32
+0, 1491, 1491, 1, 38016, 0xe07928b7
+0, 1492, 1492, 1, 38016, 0x38591267
+0, 1493, 1493, 1, 38016, 0xce563165
+0, 1494, 1494, 1, 38016, 0x5fec3563
+0, 1495, 1495, 1, 38016, 0xd7402c7c
+0, 1496, 1496, 1, 38016, 0xf2a93af4
+0, 1497, 1497, 1, 38016, 0x78f22fe7
+0, 1498, 1498, 1, 38016, 0x25554875
+0, 1499, 1499, 1, 38016, 0x79546ca2
+0, 1500, 1500, 1, 38016, 0xdae2814a
+0, 1501, 1501, 1, 38016, 0xf1ef9a9e
+0, 1502, 1502, 1, 38016, 0xb76d8b83
+0, 1503, 1503, 1, 38016, 0x1abf8fa8
+0, 1504, 1504, 1, 38016, 0x8f098fa4
+0, 1505, 1505, 1, 38016, 0xb098843c
+0, 1506, 1506, 1, 38016, 0x1d5186d3
+0, 1507, 1507, 1, 38016, 0x93f4923c
+0, 1508, 1508, 1, 38016, 0x496094e2
+0, 1509, 1509, 1, 38016, 0x7aea93f1
+0, 1510, 1510, 1, 38016, 0x556c6675
+0, 1511, 1511, 1, 38016, 0x90566aca
+0, 1512, 1512, 1, 38016, 0x14899a93
+0, 1513, 1513, 1, 38016, 0xd269e0e7
+0, 1514, 1514, 1, 38016, 0x1261d2cc
+0, 1515, 1515, 1, 38016, 0x299c9301
+0, 1516, 1516, 1, 38016, 0xee9c9ba5
+0, 1517, 1517, 1, 38016, 0xb48ab676
+0, 1518, 1518, 1, 38016, 0x4ef9b1c5
+0, 1519, 1519, 1, 38016, 0x8aae9912
+0, 1520, 1520, 1, 38016, 0x1bc09f53
+0, 1521, 1521, 1, 38016, 0x2e089c6b
+0, 1522, 1522, 1, 38016, 0x67598f8d
+0, 1523, 1523, 1, 38016, 0xacd394e1
+0, 1524, 1524, 1, 38016, 0xe2979b75
+0, 1525, 1525, 1, 38016, 0xb9749ff9
+0, 1526, 1526, 1, 38016, 0x02bda2f0
+0, 1527, 1527, 1, 38016, 0xe6caa499
+0, 1528, 1528, 1, 38016, 0xc6d9a547
+0, 1529, 1529, 1, 38016, 0x1c89aa34
+0, 1530, 1530, 1, 38016, 0x61feb4fc
+0, 1531, 1531, 1, 38016, 0x2a40b1f4
+0, 1532, 1532, 1, 38016, 0x4ad3ac08
+0, 1533, 1533, 1, 38016, 0xf5e8b06d
+0, 1534, 1534, 1, 38016, 0xb0eea800
+0, 1535, 1535, 1, 38016, 0x430cc535
+0, 1536, 1536, 1, 38016, 0x8e66b9cf
+0, 1537, 1537, 1, 38016, 0x5c68b4c4
+0, 1538, 1538, 1, 38016, 0x9381c64b
+0, 1539, 1539, 1, 38016, 0x4234bed7
+0, 1540, 1540, 1, 38016, 0xce72bf02
+0, 1541, 1541, 1, 38016, 0xb8cfbcd7
+0, 1542, 1542, 1, 38016, 0x75a5b1bd
+0, 1543, 1543, 1, 38016, 0xc27fb9eb
+0, 1544, 1544, 1, 38016, 0xa1b1bc62
+0, 1545, 1545, 1, 38016, 0x1cdeb0a3
+0, 1546, 1546, 1, 38016, 0xaea6a799
+0, 1547, 1547, 1, 38016, 0x8152ac4f
+0, 1548, 1548, 1, 38016, 0x59c1a66d
+0, 1549, 1549, 1, 38016, 0x6bd99f24
+0, 1550, 1550, 1, 38016, 0x96a73236
+0, 1551, 1551, 1, 38016, 0xb27e4856
+0, 1552, 1552, 1, 38016, 0x8b57447a
+0, 1553, 1553, 1, 38016, 0xcef84a21
+0, 1554, 1554, 1, 38016, 0x5babc7cc
+0, 1555, 1555, 1, 38016, 0x6ed2cec3
+0, 1556, 1556, 1, 38016, 0xa2efdc17
+0, 1557, 1557, 1, 38016, 0x47bad971
+0, 1558, 1558, 1, 38016, 0x150dffd4
+0, 1559, 1559, 1, 38016, 0x3ecef2ad
+0, 1560, 1560, 1, 38016, 0x355cdade
+0, 1561, 1561, 1, 38016, 0x3b15e809
+0, 1562, 1562, 1, 38016, 0x37fcf890
+0, 1563, 1563, 1, 38016, 0x8ca606d1
+0, 1564, 1564, 1, 38016, 0x51cafefe
+0, 1565, 1565, 1, 38016, 0x736be64a
+0, 1566, 1566, 1, 38016, 0x4f2052c1
+0, 1567, 1567, 1, 38016, 0xc6715e93
+0, 1568, 1568, 1, 38016, 0x765c5a58
+0, 1569, 1569, 1, 38016, 0x5abe5617
+0, 1570, 1570, 1, 38016, 0xb1ac540a
+0, 1571, 1571, 1, 38016, 0xd9f75c21
+0, 1572, 1572, 1, 38016, 0x0c1946c0
+0, 1573, 1573, 1, 38016, 0x93363a34
+0, 1574, 1574, 1, 38016, 0x2c9f2fe4
+0, 1575, 1575, 1, 38016, 0x023c321a
+0, 1576, 1576, 1, 38016, 0x1931314b
+0, 1577, 1577, 1, 38016, 0x16782d59
+0, 1578, 1578, 1, 38016, 0x29aa289f
+0, 1579, 1579, 1, 38016, 0xea0ddb85
+0, 1580, 1580, 1, 38016, 0xe09ae656
+0, 1581, 1581, 1, 38016, 0x682ff29f
+0, 1582, 1582, 1, 38016, 0xf3ac29ca
+0, 1583, 1583, 1, 38016, 0x95160cad
+0, 1584, 1584, 1, 38016, 0x9afa093c
+0, 1585, 1585, 1, 38016, 0x2ad30958
+0, 1586, 1586, 1, 38016, 0x4b600e3a
+0, 1587, 1587, 1, 38016, 0x5b0e099b
+0, 1588, 1588, 1, 38016, 0x2d2aff9b
+0, 1589, 1589, 1, 38016, 0x8bb10aa6
+0, 1590, 1590, 1, 38016, 0xfebe1f1d
+0, 1591, 1591, 1, 38016, 0xa4431abd
+0, 1592, 1592, 1, 38016, 0xef7729a6
+0, 1593, 1593, 1, 38016, 0x7b5b1f78
+0, 1594, 1594, 1, 38016, 0x903b203e
+0, 1595, 1595, 1, 38016, 0xbcc716a2
+0, 1596, 1596, 1, 38016, 0xee6c1f4c
+0, 1597, 1597, 1, 38016, 0xc78c2ab8
+0, 1598, 1598, 1, 38016, 0xa77a255a
+0, 1599, 1599, 1, 38016, 0x9d5815fc
+0, 1600, 1600, 1, 38016, 0x7d5e7d79
+0, 1601, 1601, 1, 38016, 0xf7989072
+0, 1602, 1602, 1, 38016, 0x45499feb
+0, 1603, 1603, 1, 38016, 0xc58aae7b
+0, 1604, 1604, 1, 38016, 0x882aa1cb
+0, 1605, 1605, 1, 38016, 0x56cd97bf
+0, 1606, 1606, 1, 38016, 0x2d6af920
+0, 1607, 1607, 1, 38016, 0x43c312eb
+0, 1608, 1608, 1, 38016, 0x12872b9f
+0, 1609, 1609, 1, 38016, 0x3c623ffe
+0, 1610, 1610, 1, 38016, 0x120e302d
+0, 1611, 1611, 1, 38016, 0x9cb43964
+0, 1612, 1612, 1, 38016, 0xb371311c
+0, 1613, 1613, 1, 38016, 0x28b523d4
+0, 1614, 1614, 1, 38016, 0x58031bff
+0, 1615, 1615, 1, 38016, 0xe6691818
+0, 1616, 1616, 1, 38016, 0x6a9b29c3
+0, 1617, 1617, 1, 38016, 0x794b25ce
+0, 1618, 1618, 1, 38016, 0xfc273119
+0, 1619, 1619, 1, 38016, 0x82ad2a3a
+0, 1620, 1620, 1, 38016, 0x9d2da281
+0, 1621, 1621, 1, 38016, 0x11271ba1
+0, 1622, 1622, 1, 38016, 0x1558b618
+0, 1623, 1623, 1, 38016, 0xf5d8c22f
+0, 1624, 1624, 1, 38016, 0xf20214f9
+0, 1625, 1625, 1, 38016, 0x15b01f3a
+0, 1626, 1626, 1, 38016, 0x68f2b533
+0, 1627, 1627, 1, 38016, 0x9686a827
+0, 1628, 1628, 1, 38016, 0xf214a2dc
+0, 1629, 1629, 1, 38016, 0x3d421eb0
+0, 1630, 1630, 1, 38016, 0x78251e60
+0, 1631, 1631, 1, 38016, 0xab092856
+0, 1632, 1632, 1, 38016, 0x5eaba7bc
+0, 1633, 1633, 1, 38016, 0x612fb699
+0, 1634, 1634, 1, 38016, 0x8a83a3fd
+0, 1635, 1635, 1, 38016, 0xbcd9919b
+0, 1636, 1636, 1, 38016, 0xb9063049
+0, 1637, 1637, 1, 38016, 0x5cb22fde
+0, 1638, 1638, 1, 38016, 0x7db92390
+0, 1639, 1639, 1, 38016, 0x801b241b
+0, 1640, 1640, 1, 38016, 0x6eeb8e1b
+0, 1641, 1641, 1, 38016, 0x660b9568
+0, 1642, 1642, 1, 38016, 0x2a5b8b3d
+0, 1643, 1643, 1, 38016, 0x15098b9a
+0, 1644, 1644, 1, 38016, 0xd29284f5
+0, 1645, 1645, 1, 38016, 0x839323c6
+0, 1646, 1646, 1, 38016, 0xd6a4212c
+0, 1647, 1647, 1, 38016, 0x1c1c2259
+0, 1648, 1648, 1, 38016, 0x0b1d2ef2
+0, 1649, 1649, 1, 38016, 0xecd52cfc
+0, 1650, 1650, 1, 38016, 0x419326cb
+0, 1651, 1651, 1, 38016, 0xea813e68
+0, 1652, 1652, 1, 38016, 0xba9a33ba
+0, 1653, 1653, 1, 38016, 0x703b3b25
+0, 1654, 1654, 1, 38016, 0x391c3cce
+0, 1655, 1655, 1, 38016, 0xd1533fe3
+0, 1656, 1656, 1, 38016, 0xb9361f10
+0, 1657, 1657, 1, 38016, 0x8d652ea6
+0, 1658, 1658, 1, 38016, 0x22dc15ae
+0, 1659, 1659, 1, 38016, 0x2e5e0ee7
+0, 1660, 1660, 1, 38016, 0xd6bd15cf
+0, 1661, 1661, 1, 38016, 0xb16f198a
+0, 1662, 1662, 1, 38016, 0xd9653e95
+0, 1663, 1663, 1, 38016, 0x39da2e3a
+0, 1664, 1664, 1, 38016, 0x01b12526
+0, 1665, 1665, 1, 38016, 0x94a52dde
+0, 1666, 1666, 1, 38016, 0xda0c32d8
+0, 1667, 1667, 1, 38016, 0x89af2566
+0, 1668, 1668, 1, 38016, 0x71961a43
+0, 1669, 1669, 1, 38016, 0x5fb91337
+0, 1670, 1670, 1, 38016, 0x6e430a84
+0, 1671, 1671, 1, 38016, 0x1defffb2
+0, 1672, 1672, 1, 38016, 0xcc93023f
+0, 1673, 1673, 1, 38016, 0xfcd60168
+0, 1674, 1674, 1, 38016, 0x8a3201d4
+0, 1675, 1675, 1, 38016, 0x5235fef3
+0, 1676, 1676, 1, 38016, 0x989121b9
+0, 1677, 1677, 1, 38016, 0x067a1d36
+0, 1678, 1678, 1, 38016, 0xa168242b
+0, 1679, 1679, 1, 38016, 0x425f2475
+0, 1680, 1680, 1, 38016, 0x298f14d9
+0, 1681, 1681, 1, 38016, 0x3a7c1838
+0, 1682, 1682, 1, 38016, 0xd173155a
+0, 1683, 1683, 1, 38016, 0x210113ec
+0, 1684, 1684, 1, 38016, 0xa0c2f88f
+0, 1685, 1685, 1, 38016, 0x4fa1f4e2
+0, 1686, 1686, 1, 38016, 0x812df750
+0, 1687, 1687, 1, 38016, 0xfd5cea45
+0, 1688, 1688, 1, 38016, 0xb823ee4a
+0, 1689, 1689, 1, 38016, 0x3555d6bf
+0, 1690, 1690, 1, 38016, 0x6dabf021
+0, 1691, 1691, 1, 38016, 0x7ae0f191
+0, 1692, 1692, 1, 38016, 0xabdc1546
+0, 1693, 1693, 1, 38016, 0x36dd0dbb
+0, 1694, 1694, 1, 38016, 0x008ffe5f
+0, 1695, 1695, 1, 38016, 0xe956f9c0
+0, 1696, 1696, 1, 38016, 0x9823ee03
+0, 1697, 1697, 1, 38016, 0xf63fedde
+0, 1698, 1698, 1, 38016, 0x67530afb
+0, 1699, 1699, 1, 38016, 0x2da5e470
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-midr_mw_d b/ffmpeg1/tests/ref/fate/h264-conformance-midr_mw_d
new file mode 100644
index 0000000..51b7c0e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-midr_mw_d
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x3ae838ee
+0, 1, 1, 1, 38016, 0x9ed7e141
+0, 2, 2, 1, 38016, 0x393097f9
+0, 3, 3, 1, 38016, 0x8fb56676
+0, 4, 4, 1, 38016, 0x39d64fd2
+0, 5, 5, 1, 38016, 0x7fad729a
+0, 6, 6, 1, 38016, 0x7e25955f
+0, 7, 7, 1, 38016, 0xc4d9a359
+0, 8, 8, 1, 38016, 0x30afaca4
+0, 9, 9, 1, 38016, 0x9ee195ea
+0, 10, 10, 1, 38016, 0x09f65805
+0, 11, 11, 1, 38016, 0x58d126ab
+0, 12, 12, 1, 38016, 0x4f29282c
+0, 13, 13, 1, 38016, 0x8af235a1
+0, 14, 14, 1, 38016, 0x6dfe525a
+0, 15, 15, 1, 38016, 0xd51c793f
+0, 16, 16, 1, 38016, 0x4e90abba
+0, 17, 17, 1, 38016, 0xe706c5b7
+0, 18, 18, 1, 38016, 0x35fab7ef
+0, 19, 19, 1, 38016, 0xed78b8fc
+0, 20, 20, 1, 38016, 0x2907bb4e
+0, 21, 21, 1, 38016, 0x1749bb47
+0, 22, 22, 1, 38016, 0x284ec688
+0, 23, 23, 1, 38016, 0x534abc24
+0, 24, 24, 1, 38016, 0xcd01bd13
+0, 25, 25, 1, 38016, 0xe97bbd51
+0, 26, 26, 1, 38016, 0xac1cb9e9
+0, 27, 27, 1, 38016, 0xd861c0a3
+0, 28, 28, 1, 38016, 0xf0f1ced4
+0, 29, 29, 1, 38016, 0xa9e8d2bf
+0, 30, 30, 1, 38016, 0x4c6aa7c5
+0, 31, 31, 1, 38016, 0xb20079ac
+0, 32, 32, 1, 38016, 0xbfc3563b
+0, 33, 33, 1, 38016, 0x48259358
+0, 34, 34, 1, 38016, 0x1bce0434
+0, 35, 35, 1, 38016, 0xa0ac59db
+0, 36, 36, 1, 38016, 0x87bdb608
+0, 37, 37, 1, 38016, 0x318037eb
+0, 38, 38, 1, 38016, 0x0f7d8496
+0, 39, 39, 1, 38016, 0x9e65bc1e
+0, 40, 40, 1, 38016, 0xc56be1ea
+0, 41, 41, 1, 38016, 0xc31fefb7
+0, 42, 42, 1, 38016, 0xcbcee4e4
+0, 43, 43, 1, 38016, 0xcf03f238
+0, 44, 44, 1, 38016, 0xc6a903a1
+0, 45, 45, 1, 38016, 0xfdabee4f
+0, 46, 46, 1, 38016, 0x9054bb39
+0, 47, 47, 1, 38016, 0xe9bf8cd8
+0, 48, 48, 1, 38016, 0x943d9e0a
+0, 49, 49, 1, 38016, 0x404cc87d
+0, 50, 50, 1, 38016, 0x3cd9dd49
+0, 51, 51, 1, 38016, 0x5eabbdf1
+0, 52, 52, 1, 38016, 0xd206d9ef
+0, 53, 53, 1, 38016, 0x75e310ad
+0, 54, 54, 1, 38016, 0x01893e25
+0, 55, 55, 1, 38016, 0xda5360e6
+0, 56, 56, 1, 38016, 0x80656a39
+0, 57, 57, 1, 38016, 0x85452c84
+0, 58, 58, 1, 38016, 0x48d92ef7
+0, 59, 59, 1, 38016, 0x0edc45b2
+0, 60, 60, 1, 38016, 0xeb8a3531
+0, 61, 61, 1, 38016, 0x7b5914b5
+0, 62, 62, 1, 38016, 0xf1b6c7fa
+0, 63, 63, 1, 38016, 0x68fca853
+0, 64, 64, 1, 38016, 0x68ebcc02
+0, 65, 65, 1, 38016, 0x793edc8e
+0, 66, 66, 1, 38016, 0x9c86d139
+0, 67, 67, 1, 38016, 0x2aeed2f9
+0, 68, 68, 1, 38016, 0xb8cfc89d
+0, 69, 69, 1, 38016, 0x22d2b5c4
+0, 70, 70, 1, 38016, 0x01ae9d2d
+0, 71, 71, 1, 38016, 0x4e9b7c84
+0, 72, 72, 1, 38016, 0xa52c8553
+0, 73, 73, 1, 38016, 0x50df78d0
+0, 74, 74, 1, 38016, 0x4dc31f1c
+0, 75, 75, 1, 38016, 0xf24ee29a
+0, 76, 76, 1, 38016, 0xced0d363
+0, 77, 77, 1, 38016, 0x2263bfdc
+0, 78, 78, 1, 38016, 0x1363f580
+0, 79, 79, 1, 38016, 0xfc7f3a50
+0, 80, 80, 1, 38016, 0x38427007
+0, 81, 81, 1, 38016, 0xfc5757eb
+0, 82, 82, 1, 38016, 0xf20f4d0b
+0, 83, 83, 1, 38016, 0x64871ca3
+0, 84, 84, 1, 38016, 0xcb66cd99
+0, 85, 85, 1, 38016, 0xaacdda1f
+0, 86, 86, 1, 38016, 0xd52206c8
+0, 87, 87, 1, 38016, 0xcb461142
+0, 88, 88, 1, 38016, 0x9e36a3b3
+0, 89, 89, 1, 38016, 0xf3b44a7c
+0, 90, 90, 1, 38016, 0x1722db32
+0, 91, 91, 1, 38016, 0xa943d602
+0, 92, 92, 1, 38016, 0xc899e7bf
+0, 93, 93, 1, 38016, 0xacd10bdc
+0, 94, 94, 1, 38016, 0x703b3802
+0, 95, 95, 1, 38016, 0xe246efb4
+0, 96, 96, 1, 38016, 0x1ebfccb2
+0, 97, 97, 1, 38016, 0x57380778
+0, 98, 98, 1, 38016, 0xb70e7313
+0, 99, 99, 1, 38016, 0x0cd4af3d
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-mps_mw_a b/ffmpeg1/tests/ref/fate/h264-conformance-mps_mw_a
new file mode 100644
index 0000000..959a0ae
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mps_mw_a
@@ -0,0 +1,151 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x06150e88
+0, 1, 1, 1, 38016, 0x32d90103
+0, 2, 2, 1, 38016, 0x5b5f2fae
+0, 3, 3, 1, 38016, 0xba6e6302
+0, 4, 4, 1, 38016, 0x6c4b8e95
+0, 5, 5, 1, 38016, 0x6d51ab43
+0, 6, 6, 1, 38016, 0x5582a7c5
+0, 7, 7, 1, 38016, 0xf48e6545
+0, 8, 8, 1, 38016, 0x083a8481
+0, 9, 9, 1, 38016, 0x0576a254
+0, 10, 10, 1, 38016, 0x07429a61
+0, 11, 11, 1, 38016, 0xd1e26eb1
+0, 12, 12, 1, 38016, 0x94032564
+0, 13, 13, 1, 38016, 0xc9d217c0
+0, 14, 14, 1, 38016, 0xf0ee3f46
+0, 15, 15, 1, 38016, 0xe8fc4d97
+0, 16, 16, 1, 38016, 0xd3b0488d
+0, 17, 17, 1, 38016, 0xc4243d99
+0, 18, 18, 1, 38016, 0xa65b36ed
+0, 19, 19, 1, 38016, 0x84ca1844
+0, 20, 20, 1, 38016, 0xcd6706bf
+0, 21, 21, 1, 38016, 0x1c03ec0a
+0, 22, 22, 1, 38016, 0xf1380127
+0, 23, 23, 1, 38016, 0xa499e0a5
+0, 24, 24, 1, 38016, 0x5fca87ce
+0, 25, 25, 1, 38016, 0x0b385064
+0, 26, 26, 1, 38016, 0x6a4f49c4
+0, 27, 27, 1, 38016, 0x97e0464b
+0, 28, 28, 1, 38016, 0xcbf98750
+0, 29, 29, 1, 38016, 0xa9efe0cd
+0, 30, 30, 1, 38016, 0x9ea7d82e
+0, 31, 31, 1, 38016, 0x28cec5ce
+0, 32, 32, 1, 38016, 0xaec6ac1e
+0, 33, 33, 1, 38016, 0x8cba69b3
+0, 34, 34, 1, 38016, 0x727720c1
+0, 35, 35, 1, 38016, 0xee4f4822
+0, 36, 36, 1, 38016, 0x9d456e11
+0, 37, 37, 1, 38016, 0x14123f91
+0, 38, 38, 1, 38016, 0xf5e1d1a3
+0, 39, 39, 1, 38016, 0xaadd9435
+0, 40, 40, 1, 38016, 0x94df6e5e
+0, 41, 41, 1, 38016, 0x18805412
+0, 42, 42, 1, 38016, 0x0ba26c8c
+0, 43, 43, 1, 38016, 0x4548a5c1
+0, 44, 44, 1, 38016, 0x9217cb5f
+0, 45, 45, 1, 38016, 0x2ea74a9e
+0, 46, 46, 1, 38016, 0xeb0c57b6
+0, 47, 47, 1, 38016, 0xf968a4a5
+0, 48, 48, 1, 38016, 0xa410ef43
+0, 49, 49, 1, 38016, 0x55813001
+0, 50, 50, 1, 38016, 0x9cea4512
+0, 51, 51, 1, 38016, 0x27754fa6
+0, 52, 52, 1, 38016, 0x9824548a
+0, 53, 53, 1, 38016, 0x7f1047eb
+0, 54, 54, 1, 38016, 0x75fb2e10
+0, 55, 55, 1, 38016, 0xe50df970
+0, 56, 56, 1, 38016, 0x6ed6dfb4
+0, 57, 57, 1, 38016, 0x8e97ccee
+0, 58, 58, 1, 38016, 0x7f96c5f0
+0, 59, 59, 1, 38016, 0x0940c200
+0, 60, 60, 1, 38016, 0x86b98701
+0, 61, 61, 1, 38016, 0x977d759a
+0, 62, 62, 1, 38016, 0xf2b17bff
+0, 63, 63, 1, 38016, 0xee1496d7
+0, 64, 64, 1, 38016, 0x6cb1c1b5
+0, 65, 65, 1, 38016, 0xa6bc0db9
+0, 66, 66, 1, 38016, 0x902f660d
+0, 67, 67, 1, 38016, 0x7bf7a434
+0, 68, 68, 1, 38016, 0x97f9c2a6
+0, 69, 69, 1, 38016, 0xf8bf9241
+0, 70, 70, 1, 38016, 0x8639502b
+0, 71, 71, 1, 38016, 0x82c2537f
+0, 72, 72, 1, 38016, 0x1141243a
+0, 73, 73, 1, 38016, 0xcaef5ae5
+0, 74, 74, 1, 38016, 0xe2c4d308
+0, 75, 75, 1, 38016, 0x35530a2c
+0, 76, 76, 1, 38016, 0x22a3b317
+0, 77, 77, 1, 38016, 0xda988427
+0, 78, 78, 1, 38016, 0x54616f11
+0, 79, 79, 1, 38016, 0xc38fc57c
+0, 80, 80, 1, 38016, 0x7039d019
+0, 81, 81, 1, 38016, 0x0fd6e6d9
+0, 82, 82, 1, 38016, 0xc213e48e
+0, 83, 83, 1, 38016, 0xf469b8e1
+0, 84, 84, 1, 38016, 0x1f5c706c
+0, 85, 85, 1, 38016, 0x69652db3
+0, 86, 86, 1, 38016, 0xe1b9d46d
+0, 87, 87, 1, 38016, 0x4e7522aa
+0, 88, 88, 1, 38016, 0x8f4025a4
+0, 89, 89, 1, 38016, 0xbc0483f6
+0, 90, 90, 1, 38016, 0xae91d342
+0, 91, 91, 1, 38016, 0xb1435578
+0, 92, 92, 1, 38016, 0xf7535863
+0, 93, 93, 1, 38016, 0xc16ff613
+0, 94, 94, 1, 38016, 0x55bc394f
+0, 95, 95, 1, 38016, 0xc7b76458
+0, 96, 96, 1, 38016, 0xd3fd69ae
+0, 97, 97, 1, 38016, 0x4b44d724
+0, 98, 98, 1, 38016, 0x740b99c5
+0, 99, 99, 1, 38016, 0x40c7c625
+0, 100, 100, 1, 38016, 0x1691a7ef
+0, 101, 101, 1, 38016, 0x6ea9392e
+0, 102, 102, 1, 38016, 0xf958200f
+0, 103, 103, 1, 38016, 0x916d75eb
+0, 104, 104, 1, 38016, 0x6b4bee69
+0, 105, 105, 1, 38016, 0x87adf9de
+0, 106, 106, 1, 38016, 0x92dc586e
+0, 107, 107, 1, 38016, 0x3c5aa531
+0, 108, 108, 1, 38016, 0x00f81488
+0, 109, 109, 1, 38016, 0x981aeb9f
+0, 110, 110, 1, 38016, 0x49cf8e5f
+0, 111, 111, 1, 38016, 0xfd56b231
+0, 112, 112, 1, 38016, 0x419aaa2e
+0, 113, 113, 1, 38016, 0xae155602
+0, 114, 114, 1, 38016, 0x1e530aa1
+0, 115, 115, 1, 38016, 0x60ca2c1b
+0, 116, 116, 1, 38016, 0x0e7bdec7
+0, 117, 117, 1, 38016, 0xe858b864
+0, 118, 118, 1, 38016, 0x47378c1d
+0, 119, 119, 1, 38016, 0x90008a4d
+0, 120, 120, 1, 38016, 0xa1293af0
+0, 121, 121, 1, 38016, 0x596964a8
+0, 122, 122, 1, 38016, 0xb25d9ccf
+0, 123, 123, 1, 38016, 0xccdbb7a0
+0, 124, 124, 1, 38016, 0x3becf25a
+0, 125, 125, 1, 38016, 0x918d1816
+0, 126, 126, 1, 38016, 0x71d02564
+0, 127, 127, 1, 38016, 0x643015fd
+0, 128, 128, 1, 38016, 0x3af5f577
+0, 129, 129, 1, 38016, 0x77b5ecea
+0, 130, 130, 1, 38016, 0x7f940014
+0, 131, 131, 1, 38016, 0x726f0bf3
+0, 132, 132, 1, 38016, 0xb728078f
+0, 133, 133, 1, 38016, 0x46e1f70a
+0, 134, 134, 1, 38016, 0x79ccdd3e
+0, 135, 135, 1, 38016, 0x80d2ca75
+0, 136, 136, 1, 38016, 0xc87dc034
+0, 137, 137, 1, 38016, 0x7535c12a
+0, 138, 138, 1, 38016, 0x2d32bd77
+0, 139, 139, 1, 38016, 0x2fceb360
+0, 140, 140, 1, 38016, 0x8d0aa592
+0, 141, 141, 1, 38016, 0xc9b9bb80
+0, 142, 142, 1, 38016, 0xa667dd9c
+0, 143, 143, 1, 38016, 0x7b5df35b
+0, 144, 144, 1, 38016, 0x5feb1125
+0, 145, 145, 1, 38016, 0x222a306f
+0, 146, 146, 1, 38016, 0x64c84c75
+0, 147, 147, 1, 38016, 0x5e605c79
+0, 148, 148, 1, 38016, 0x2d2f78f3
+0, 149, 149, 1, 38016, 0x7b72973d
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-mr1_bt_a b/ffmpeg1/tests/ref/fate/h264-conformance-mr1_bt_a
new file mode 100644
index 0000000..11eb590
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr1_bt_a
@@ -0,0 +1,63 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xc6658719
+0, 1, 1, 1, 38016, 0x8a7c7423
+0, 2, 2, 1, 38016, 0x97e99b66
+0, 3, 3, 1, 38016, 0x73c4c4f7
+0, 4, 4, 1, 38016, 0xb45bfb44
+0, 5, 5, 1, 38016, 0x1bc3249c
+0, 6, 6, 1, 38016, 0xd98a3121
+0, 7, 7, 1, 38016, 0x6f0aefc1
+0, 8, 8, 1, 38016, 0x6287f651
+0, 9, 9, 1, 38016, 0x2a4a1630
+0, 10, 10, 1, 38016, 0x5e7b5a35
+0, 11, 11, 1, 38016, 0x58847533
+0, 12, 12, 1, 38016, 0x2bad942b
+0, 13, 13, 1, 38016, 0x17d75cb1
+0, 14, 14, 1, 38016, 0x6d8e818d
+0, 15, 15, 1, 38016, 0xfa3165db
+0, 16, 16, 1, 38016, 0x6a6e249f
+0, 17, 17, 1, 38016, 0x2d232ece
+0, 18, 18, 1, 38016, 0xfba6616e
+0, 19, 19, 1, 38016, 0xa9e7533f
+0, 20, 20, 1, 38016, 0x7c4827e6
+0, 21, 21, 1, 38016, 0xf570f8ca
+0, 22, 22, 1, 38016, 0x0dac953f
+0, 23, 23, 1, 38016, 0x74cb5f30
+0, 24, 24, 1, 38016, 0x038ce61b
+0, 25, 25, 1, 38016, 0x291f8ecb
+0, 26, 26, 1, 38016, 0x768a6539
+0, 27, 27, 1, 38016, 0x27a960e6
+0, 28, 28, 1, 38016, 0x4d8ab279
+0, 29, 29, 1, 38016, 0x7da78115
+0, 30, 30, 1, 38016, 0x27beadcf
+0, 31, 31, 1, 38016, 0x98c43180
+0, 32, 32, 1, 38016, 0x566d55db
+0, 33, 33, 1, 38016, 0xddc19fda
+0, 34, 34, 1, 38016, 0xe353c891
+0, 35, 35, 1, 38016, 0x17e2e3ab
+0, 36, 36, 1, 38016, 0x8759e7c3
+0, 37, 37, 1, 38016, 0x9d93bca9
+0, 38, 38, 1, 38016, 0x8b77af4e
+0, 39, 39, 1, 38016, 0x9b799dac
+0, 40, 40, 1, 38016, 0xcb8bc504
+0, 41, 41, 1, 38016, 0x58e989c8
+0, 42, 42, 1, 38016, 0x4e4dbb7f
+0, 43, 43, 1, 38016, 0xdfa6934e
+0, 44, 44, 1, 38016, 0x14947459
+0, 45, 45, 1, 38016, 0x7a31ff6a
+0, 46, 46, 1, 38016, 0xc044fbc3
+0, 47, 47, 1, 38016, 0xcaa723d1
+0, 48, 48, 1, 38016, 0x325c1dca
+0, 49, 49, 1, 38016, 0x62fb027d
+0, 50, 50, 1, 38016, 0x710f3ae9
+0, 51, 51, 1, 38016, 0xdbbf1804
+0, 52, 52, 1, 38016, 0x1487f491
+0, 53, 53, 1, 38016, 0x6a722d73
+0, 54, 54, 1, 38016, 0xeb7258dd
+0, 55, 55, 1, 38016, 0x685e8a68
+0, 56, 56, 1, 38016, 0x1627800e
+0, 57, 57, 1, 38016, 0xa88a9a31
+0, 58, 58, 1, 38016, 0x4d5eaf56
+0, 59, 59, 1, 38016, 0xe3a9af0a
+0, 60, 60, 1, 38016, 0x3c38b8b2
+0, 61, 61, 1, 38016, 0x991fc29e
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-mr1_mw_a b/ffmpeg1/tests/ref/fate/h264-conformance-mr1_mw_a
new file mode 100644
index 0000000..da7631d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr1_mw_a
@@ -0,0 +1,151 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xc8981780
+0, 1, 1, 1, 38016, 0xf089d880
+0, 2, 2, 1, 38016, 0x5eee0731
+0, 3, 3, 1, 38016, 0x79604e7c
+0, 4, 4, 1, 38016, 0xb92186a9
+0, 5, 5, 1, 38016, 0xe18ea8d9
+0, 6, 6, 1, 38016, 0xedb599dd
+0, 7, 7, 1, 38016, 0xc2665a04
+0, 8, 8, 1, 38016, 0x88387c78
+0, 9, 9, 1, 38016, 0x70b09638
+0, 10, 10, 1, 38016, 0xb5629ba8
+0, 11, 11, 1, 38016, 0xc8ee696b
+0, 12, 12, 1, 38016, 0x9af12088
+0, 13, 13, 1, 38016, 0x044f1510
+0, 14, 14, 1, 38016, 0x04153fcc
+0, 15, 15, 1, 38016, 0x6a433225
+0, 16, 16, 1, 38016, 0x8fb43d81
+0, 17, 17, 1, 38016, 0x708c5884
+0, 18, 18, 1, 38016, 0xb2fa310d
+0, 19, 19, 1, 38016, 0xa54f23bf
+0, 20, 20, 1, 38016, 0x875d12a9
+0, 21, 21, 1, 38016, 0xa7c2f3e5
+0, 22, 22, 1, 38016, 0xba120362
+0, 23, 23, 1, 38016, 0xf922ead0
+0, 24, 24, 1, 38016, 0x23c38ae4
+0, 25, 25, 1, 38016, 0x8e705ad0
+0, 26, 26, 1, 38016, 0x60854be9
+0, 27, 27, 1, 38016, 0x63163fd9
+0, 28, 28, 1, 38016, 0x6d5886bd
+0, 29, 29, 1, 38016, 0xd66fdaaa
+0, 30, 30, 1, 38016, 0xcda78bc1
+0, 31, 31, 1, 38016, 0x7e11aa47
+0, 32, 32, 1, 38016, 0x4ac4ceba
+0, 33, 33, 1, 38016, 0x80a45b77
+0, 34, 34, 1, 38016, 0x6d1a19f9
+0, 35, 35, 1, 38016, 0xd2b93d81
+0, 36, 36, 1, 38016, 0x4532dc5a
+0, 37, 37, 1, 38016, 0x874c3d28
+0, 38, 38, 1, 38016, 0xbeb4552c
+0, 39, 39, 1, 38016, 0xd85e8b6d
+0, 40, 40, 1, 38016, 0x4c3a6953
+0, 41, 41, 1, 38016, 0xf8615235
+0, 42, 42, 1, 38016, 0x9b3e613a
+0, 43, 43, 1, 38016, 0xfbba9dd5
+0, 44, 44, 1, 38016, 0x435fbc73
+0, 45, 45, 1, 38016, 0x15746d9d
+0, 46, 46, 1, 38016, 0xfc6c2960
+0, 47, 47, 1, 38016, 0x80c41d21
+0, 48, 48, 1, 38016, 0xa621c891
+0, 49, 49, 1, 38016, 0x24ce0e8b
+0, 50, 50, 1, 38016, 0x15552d28
+0, 51, 51, 1, 38016, 0xbc0b3703
+0, 52, 52, 1, 38016, 0x81643dee
+0, 53, 53, 1, 38016, 0x479c42ea
+0, 54, 54, 1, 38016, 0x63d426db
+0, 55, 55, 1, 38016, 0x5830f8e4
+0, 56, 56, 1, 38016, 0xce24d921
+0, 57, 57, 1, 38016, 0x0224c7b9
+0, 58, 58, 1, 38016, 0x8f44bf31
+0, 59, 59, 1, 38016, 0xc3d5c00f
+0, 60, 60, 1, 38016, 0x13268498
+0, 61, 61, 1, 38016, 0x83b99095
+0, 62, 62, 1, 38016, 0xbb66a4b3
+0, 63, 63, 1, 38016, 0x9b849565
+0, 64, 64, 1, 38016, 0x81edbe5a
+0, 65, 65, 1, 38016, 0x43781090
+0, 66, 66, 1, 38016, 0x449c6974
+0, 67, 67, 1, 38016, 0xbe61a0e0
+0, 68, 68, 1, 38016, 0x5128c18e
+0, 69, 69, 1, 38016, 0x2bf68f94
+0, 70, 70, 1, 38016, 0x0fea4bbb
+0, 71, 71, 1, 38016, 0x7dd650d2
+0, 72, 72, 1, 38016, 0xc4332d1d
+0, 73, 73, 1, 38016, 0xc7946d1c
+0, 74, 74, 1, 38016, 0x6856e33f
+0, 75, 75, 1, 38016, 0x567f7cc2
+0, 76, 76, 1, 38016, 0x378bafed
+0, 77, 77, 1, 38016, 0x3f710f7c
+0, 78, 78, 1, 38016, 0x5d866a75
+0, 79, 79, 1, 38016, 0xe264bdc7
+0, 80, 80, 1, 38016, 0x48b2cbe9
+0, 81, 81, 1, 38016, 0x0a4be700
+0, 82, 82, 1, 38016, 0xcc4ed40d
+0, 83, 83, 1, 38016, 0x93acaf5a
+0, 84, 84, 1, 38016, 0xdd7465f2
+0, 85, 85, 1, 38016, 0x4d492419
+0, 86, 86, 1, 38016, 0xc2c2ca96
+0, 87, 87, 1, 38016, 0x190324d8
+0, 88, 88, 1, 38016, 0xd8962520
+0, 89, 89, 1, 38016, 0x8d917eea
+0, 90, 90, 1, 38016, 0x08ec794f
+0, 91, 91, 1, 38016, 0x7ab598a6
+0, 92, 92, 1, 38016, 0xaaec0ef7
+0, 93, 93, 1, 38016, 0x7f6ffbe3
+0, 94, 94, 1, 38016, 0x116d37cb
+0, 95, 95, 1, 38016, 0x7b3a59fd
+0, 96, 96, 1, 38016, 0xed5361cb
+0, 97, 97, 1, 38016, 0x9c558a98
+0, 98, 98, 1, 38016, 0x292e84ea
+0, 99, 99, 1, 38016, 0x0d35bf44
+0, 100, 100, 1, 38016, 0xaad7bedd
+0, 101, 101, 1, 38016, 0xa6111b87
+0, 102, 102, 1, 38016, 0x3c8bfc27
+0, 103, 103, 1, 38016, 0x65ce6703
+0, 104, 104, 1, 38016, 0x60ece2ec
+0, 105, 105, 1, 38016, 0x8abbb25f
+0, 106, 106, 1, 38016, 0x41108b27
+0, 107, 107, 1, 38016, 0xac26284e
+0, 108, 108, 1, 38016, 0x5f4c0db0
+0, 109, 109, 1, 38016, 0xcccbee91
+0, 110, 110, 1, 38016, 0x34238dc1
+0, 111, 111, 1, 38016, 0x7479b326
+0, 112, 112, 1, 38016, 0xaaf8a957
+0, 113, 113, 1, 38016, 0xc49b55cb
+0, 114, 114, 1, 38016, 0x338b129f
+0, 115, 115, 1, 38016, 0xf0ed3328
+0, 116, 116, 1, 38016, 0x39f8dcb3
+0, 117, 117, 1, 38016, 0x7aecb808
+0, 118, 118, 1, 38016, 0x35e8827a
+0, 119, 119, 1, 38016, 0x16ac8b9d
+0, 120, 120, 1, 38016, 0x3abdcb78
+0, 121, 121, 1, 38016, 0xdfbfba7f
+0, 122, 122, 1, 38016, 0x692a964e
+0, 123, 123, 1, 38016, 0x11a5ebdb
+0, 124, 124, 1, 38016, 0x46bc156d
+0, 125, 125, 1, 38016, 0x1b153144
+0, 126, 126, 1, 38016, 0xdd23349a
+0, 127, 127, 1, 38016, 0xbad02161
+0, 128, 128, 1, 38016, 0xc5030168
+0, 129, 129, 1, 38016, 0x3e4ff28d
+0, 130, 130, 1, 38016, 0x17faffe2
+0, 131, 131, 1, 38016, 0xba04122f
+0, 132, 132, 1, 38016, 0x8a8e0e1e
+0, 133, 133, 1, 38016, 0xe5d6fc7d
+0, 134, 134, 1, 38016, 0x22e3e630
+0, 135, 135, 1, 38016, 0x7eb1a935
+0, 136, 136, 1, 38016, 0xde46bead
+0, 137, 137, 1, 38016, 0x34abc542
+0, 138, 138, 1, 38016, 0x10ceaea3
+0, 139, 139, 1, 38016, 0xb86fa676
+0, 140, 140, 1, 38016, 0xbd9d9d3c
+0, 141, 141, 1, 38016, 0x355fb37f
+0, 142, 142, 1, 38016, 0xfb6fd3b0
+0, 143, 143, 1, 38016, 0x3062edf4
+0, 144, 144, 1, 38016, 0xf6940b60
+0, 145, 145, 1, 38016, 0x78bd2f4e
+0, 146, 146, 1, 38016, 0x51fc444f
+0, 147, 147, 1, 38016, 0x118957cc
+0, 148, 148, 1, 38016, 0x53777a50
+0, 149, 149, 1, 38016, 0xeeaa9761
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-mr2_mw_a b/ffmpeg1/tests/ref/fate/h264-conformance-mr2_mw_a
new file mode 100644
index 0000000..fd4b5d9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr2_mw_a
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x06150e88
+0, 1, 1, 1, 38016, 0x32d90103
+0, 2, 2, 1, 38016, 0xb32d338f
+0, 3, 3, 1, 38016, 0x653c5fc3
+0, 4, 4, 1, 38016, 0x69ec8bce
+0, 5, 5, 1, 38016, 0x354fa53a
+0, 6, 6, 1, 38016, 0x2ee79c2c
+0, 7, 7, 1, 38016, 0x2c50666c
+0, 8, 8, 1, 38016, 0x65ea824d
+0, 9, 9, 1, 38016, 0x7419948b
+0, 10, 10, 1, 38016, 0x19b298a0
+0, 11, 11, 1, 38016, 0x29087291
+0, 12, 12, 1, 38016, 0x92be1e95
+0, 13, 13, 1, 38016, 0x9699119a
+0, 14, 14, 1, 38016, 0xa4863bff
+0, 15, 15, 1, 38016, 0x7dfc4f6b
+0, 16, 16, 1, 38016, 0x946e5cfa
+0, 17, 17, 1, 38016, 0x57287bdc
+0, 18, 18, 1, 38016, 0xe7ae8bbe
+0, 19, 19, 1, 38016, 0x21d367c7
+0, 20, 20, 1, 38016, 0x9d0551c2
+0, 21, 21, 1, 38016, 0xecc980b5
+0, 22, 22, 1, 38016, 0x0ac4a749
+0, 23, 23, 1, 38016, 0x9162262f
+0, 24, 24, 1, 38016, 0x4a071c14
+0, 25, 25, 1, 38016, 0x8571fae8
+0, 26, 26, 1, 38016, 0xc0843707
+0, 27, 27, 1, 38016, 0x7b4a63b0
+0, 28, 28, 1, 38016, 0x5faf5d86
+0, 29, 29, 1, 38016, 0x64623f6b
+0, 30, 30, 1, 38016, 0xa97b523a
+0, 31, 31, 1, 38016, 0x4048459a
+0, 32, 32, 1, 38016, 0x56ba3d73
+0, 33, 33, 1, 38016, 0x5394355a
+0, 34, 34, 1, 38016, 0xb6c0176e
+0, 35, 35, 1, 38016, 0x668c0772
+0, 36, 36, 1, 38016, 0x86feeae8
+0, 37, 37, 1, 38016, 0x9e75f9af
+0, 38, 38, 1, 38016, 0xd72de054
+0, 39, 39, 1, 38016, 0x39eb8743
+0, 40, 40, 1, 38016, 0xd07b4d8e
+0, 41, 41, 1, 38016, 0x89c045a9
+0, 42, 42, 1, 38016, 0x209542e6
+0, 43, 43, 1, 38016, 0xc43886ed
+0, 44, 44, 1, 38016, 0xe091e433
+0, 45, 45, 1, 38016, 0x176b1f65
+0, 46, 46, 1, 38016, 0xd7730c3e
+0, 47, 47, 1, 38016, 0x2bb90778
+0, 48, 48, 1, 38016, 0x9b4540a8
+0, 49, 49, 1, 38016, 0xd34c50db
+0, 50, 50, 1, 38016, 0xf8007af9
+0, 51, 51, 1, 38016, 0x54748466
+0, 52, 52, 1, 38016, 0x20ab88a5
+0, 53, 53, 1, 38016, 0x6aca8887
+0, 54, 54, 1, 38016, 0xa1bf899f
+0, 55, 55, 1, 38016, 0x8145966d
+0, 56, 56, 1, 38016, 0x98f5a29c
+0, 57, 57, 1, 38016, 0x4ed1b4d1
+0, 58, 58, 1, 38016, 0x3177b95c
+0, 59, 59, 1, 38016, 0x2b2cc4b2
+0, 60, 60, 1, 38016, 0xf389db1e
+0, 61, 61, 1, 38016, 0xfc6fca35
+0, 62, 62, 1, 38016, 0x5f06af41
+0, 63, 63, 1, 38016, 0x93a368d6
+0, 64, 64, 1, 38016, 0x3de421f3
+0, 65, 65, 1, 38016, 0x1e3f4b8d
+0, 66, 66, 1, 38016, 0x6c3e6d4a
+0, 67, 67, 1, 38016, 0x96ab4569
+0, 68, 68, 1, 38016, 0x0de2d417
+0, 69, 69, 1, 38016, 0x1a8a8d91
+0, 70, 70, 1, 38016, 0xffb96503
+0, 71, 71, 1, 38016, 0x1e1b4959
+0, 72, 72, 1, 38016, 0x6aa267cd
+0, 73, 73, 1, 38016, 0xcb87a00c
+0, 74, 74, 1, 38016, 0x3b8ac17c
+0, 75, 75, 1, 38016, 0x1348bf7b
+0, 76, 76, 1, 38016, 0x1807b42d
+0, 77, 77, 1, 38016, 0x22dfa6cb
+0, 78, 78, 1, 38016, 0x3d23a622
+0, 79, 79, 1, 38016, 0x662cb1e0
+0, 80, 80, 1, 38016, 0x6ecfafaf
+0, 81, 81, 1, 38016, 0xbffcaa71
+0, 82, 82, 1, 38016, 0xf75ab93f
+0, 83, 83, 1, 38016, 0xaea796bf
+0, 84, 84, 1, 38016, 0x4a547fe8
+0, 85, 85, 1, 38016, 0x2f1a800f
+0, 86, 86, 1, 38016, 0xc7788261
+0, 87, 87, 1, 38016, 0x8be17fd3
+0, 88, 88, 1, 38016, 0xe830830c
+0, 89, 89, 1, 38016, 0x62345ab7
+0, 90, 90, 1, 38016, 0x70f926c6
+0, 91, 91, 1, 38016, 0x37e94bf0
+0, 92, 92, 1, 38016, 0xb1509312
+0, 93, 93, 1, 38016, 0xc70fea7a
+0, 94, 94, 1, 38016, 0x8062243b
+0, 95, 95, 1, 38016, 0xe64a48b1
+0, 96, 96, 1, 38016, 0x6f0c4dd7
+0, 97, 97, 1, 38016, 0x5f9c53b4
+0, 98, 98, 1, 38016, 0x4c5e506c
+0, 99, 99, 1, 38016, 0xb7c631ef
+0, 100, 100, 1, 38016, 0x30f302a9
+0, 101, 101, 1, 38016, 0x4f28ebf0
+0, 102, 102, 1, 38016, 0x3145d3d3
+0, 103, 103, 1, 38016, 0x69b6c92f
+0, 104, 104, 1, 38016, 0xa3b2c646
+0, 105, 105, 1, 38016, 0x5ee00dec
+0, 106, 106, 1, 38016, 0x313ee3ea
+0, 107, 107, 1, 38016, 0x4002070e
+0, 108, 108, 1, 38016, 0x5e0106b1
+0, 109, 109, 1, 38016, 0xd03b2c4d
+0, 110, 110, 1, 38016, 0xdd085316
+0, 111, 111, 1, 38016, 0xb47a5f86
+0, 112, 112, 1, 38016, 0xc25d5750
+0, 113, 113, 1, 38016, 0x16ad52b3
+0, 114, 114, 1, 38016, 0xa4fe2754
+0, 115, 115, 1, 38016, 0xac5dfb18
+0, 116, 116, 1, 38016, 0xe36ee83b
+0, 117, 117, 1, 38016, 0xc708e54e
+0, 118, 118, 1, 38016, 0x6c4beb85
+0, 119, 119, 1, 38016, 0xf19fd825
+0, 120, 120, 1, 38016, 0x94e7bb13
+0, 121, 121, 1, 38016, 0x026e9ddf
+0, 122, 122, 1, 38016, 0xdc71a591
+0, 123, 123, 1, 38016, 0xb46eb169
+0, 124, 124, 1, 38016, 0x25f5d5f4
+0, 125, 125, 1, 38016, 0x27da203d
+0, 126, 126, 1, 38016, 0xed217513
+0, 127, 127, 1, 38016, 0x78d7bb08
+0, 128, 128, 1, 38016, 0x623dd66d
+0, 129, 129, 1, 38016, 0xd68c9f82
+0, 130, 130, 1, 38016, 0x88b059e2
+0, 131, 131, 1, 38016, 0x623159aa
+0, 132, 132, 1, 38016, 0x1782245b
+0, 133, 133, 1, 38016, 0x64f55b4a
+0, 134, 134, 1, 38016, 0x83c7d154
+0, 135, 135, 1, 38016, 0x43461c7c
+0, 136, 136, 1, 38016, 0xc3e38c36
+0, 137, 137, 1, 38016, 0x763394b4
+0, 138, 138, 1, 38016, 0xff99749d
+0, 139, 139, 1, 38016, 0x76ca13d0
+0, 140, 140, 1, 38016, 0x29510aea
+0, 141, 141, 1, 38016, 0x385f4309
+0, 142, 142, 1, 38016, 0x142f5339
+0, 143, 143, 1, 38016, 0x980ca66e
+0, 144, 144, 1, 38016, 0xc330c0db
+0, 145, 145, 1, 38016, 0xa7dbca0f
+0, 146, 146, 1, 38016, 0x4261c683
+0, 147, 147, 1, 38016, 0x6d467d81
+0, 148, 148, 1, 38016, 0x1a107d17
+0, 149, 149, 1, 38016, 0xd91e765a
+0, 150, 150, 1, 38016, 0x789cfb94
+0, 151, 151, 1, 38016, 0xc9bc9ee1
+0, 152, 152, 1, 38016, 0x32f8754c
+0, 153, 153, 1, 38016, 0xad906454
+0, 154, 154, 1, 38016, 0xe5d6b78d
+0, 155, 155, 1, 38016, 0x307bc291
+0, 156, 156, 1, 38016, 0x629bdec9
+0, 157, 157, 1, 38016, 0xf23ccd36
+0, 158, 158, 1, 38016, 0x6105aa1b
+0, 159, 159, 1, 38016, 0x3da66383
+0, 160, 160, 1, 38016, 0x48ce2141
+0, 161, 161, 1, 38016, 0x09fac5fd
+0, 162, 162, 1, 38016, 0xa0bc208d
+0, 163, 163, 1, 38016, 0x49892a74
+0, 164, 164, 1, 38016, 0xfcb48093
+0, 165, 165, 1, 38016, 0x850e7e4c
+0, 166, 166, 1, 38016, 0x7cf24f55
+0, 167, 167, 1, 38016, 0x654845f4
+0, 168, 168, 1, 38016, 0x35ac5d63
+0, 169, 169, 1, 38016, 0x795ea726
+0, 170, 170, 1, 38016, 0xf387a03d
+0, 171, 171, 1, 38016, 0x29279e19
+0, 172, 172, 1, 38016, 0x48e3b03d
+0, 173, 173, 1, 38016, 0xbcfb8192
+0, 174, 174, 1, 38016, 0x3fe2749a
+0, 175, 175, 1, 38016, 0xe0a04bbd
+0, 176, 176, 1, 38016, 0x9a912cd7
+0, 177, 177, 1, 38016, 0x39781e59
+0, 178, 178, 1, 38016, 0x90e5131a
+0, 179, 179, 1, 38016, 0x8bd90b4b
+0, 180, 180, 1, 38016, 0x410dda61
+0, 181, 181, 1, 38016, 0x33eb60fd
+0, 182, 182, 1, 38016, 0x08e8632b
+0, 183, 183, 1, 38016, 0x6163fd94
+0, 184, 184, 1, 38016, 0x60af34e1
+0, 185, 185, 1, 38016, 0x00016227
+0, 186, 186, 1, 38016, 0xe6bd71bd
+0, 187, 187, 1, 38016, 0xb40cdf28
+0, 188, 188, 1, 38016, 0x3cdeb88e
+0, 189, 189, 1, 38016, 0xb9ffe0d6
+0, 190, 190, 1, 38016, 0xd630ce53
+0, 191, 191, 1, 38016, 0x120056c2
+0, 192, 192, 1, 38016, 0x0940399e
+0, 193, 193, 1, 38016, 0x3d337fd0
+0, 194, 194, 1, 38016, 0x6ef1f4b9
+0, 195, 195, 1, 38016, 0x7e20f462
+0, 196, 196, 1, 38016, 0xe397f30a
+0, 197, 197, 1, 38016, 0x6eadf916
+0, 198, 198, 1, 38016, 0x850e07b9
+0, 199, 199, 1, 38016, 0x131b10db
+0, 200, 200, 1, 38016, 0x17961d0e
+0, 201, 201, 1, 38016, 0x447557da
+0, 202, 202, 1, 38016, 0x93da7c0e
+0, 203, 203, 1, 38016, 0xd6259239
+0, 204, 204, 1, 38016, 0x2db99d95
+0, 205, 205, 1, 38016, 0x648ea2bd
+0, 206, 206, 1, 38016, 0xf8f46ef6
+0, 207, 207, 1, 38016, 0xb85a7405
+0, 208, 208, 1, 38016, 0x55dc7bbd
+0, 209, 209, 1, 38016, 0xf38d76f8
+0, 210, 210, 1, 38016, 0x9e860b96
+0, 211, 211, 1, 38016, 0x7c5a5da7
+0, 212, 212, 1, 38016, 0xdf36a619
+0, 213, 213, 1, 38016, 0x327d1144
+0, 214, 214, 1, 38016, 0x4a01eabd
+0, 215, 215, 1, 38016, 0xee8b8717
+0, 216, 216, 1, 38016, 0x874eaf23
+0, 217, 217, 1, 38016, 0xddaaaf38
+0, 218, 218, 1, 38016, 0xcab85271
+0, 219, 219, 1, 38016, 0x970f0d3f
+0, 220, 220, 1, 38016, 0x2a042dcc
+0, 221, 221, 1, 38016, 0xa240e0e7
+0, 222, 222, 1, 38016, 0x9564c081
+0, 223, 223, 1, 38016, 0x894d82b4
+0, 224, 224, 1, 38016, 0xb0748d24
+0, 225, 225, 1, 38016, 0xafa56340
+0, 226, 226, 1, 38016, 0x614287c6
+0, 227, 227, 1, 38016, 0x4dfcaaac
+0, 228, 228, 1, 38016, 0x58dab168
+0, 229, 229, 1, 38016, 0x19fbb779
+0, 230, 230, 1, 38016, 0x25adb4c9
+0, 231, 231, 1, 38016, 0x5fc1bdae
+0, 232, 232, 1, 38016, 0x6581a5d0
+0, 233, 233, 1, 38016, 0x81d57061
+0, 234, 234, 1, 38016, 0x43445964
+0, 235, 235, 1, 38016, 0x68224a19
+0, 236, 236, 1, 38016, 0xa85d390a
+0, 237, 237, 1, 38016, 0xb571344d
+0, 238, 238, 1, 38016, 0xd3632bfd
+0, 239, 239, 1, 38016, 0x5af52535
+0, 240, 240, 1, 38016, 0x21b93882
+0, 241, 241, 1, 38016, 0x8da56743
+0, 242, 242, 1, 38016, 0x9e7b9da2
+0, 243, 243, 1, 38016, 0xc1a6bbd9
+0, 244, 244, 1, 38016, 0xd77be9aa
+0, 245, 245, 1, 38016, 0x2715100f
+0, 246, 246, 1, 38016, 0xac8c1e30
+0, 247, 247, 1, 38016, 0x110c14b9
+0, 248, 248, 1, 38016, 0x5a8ff5c4
+0, 249, 249, 1, 38016, 0x25d4ef19
+0, 250, 250, 1, 38016, 0x080ffe7f
+0, 251, 251, 1, 38016, 0x7f5b15ef
+0, 252, 252, 1, 38016, 0xf97f10e1
+0, 253, 253, 1, 38016, 0xdd80f7e5
+0, 254, 254, 1, 38016, 0xb177df60
+0, 255, 255, 1, 38016, 0x406023f6
+0, 256, 256, 1, 38016, 0xf396220f
+0, 257, 257, 1, 38016, 0x50fc2e7a
+0, 258, 258, 1, 38016, 0x959b42da
+0, 259, 259, 1, 38016, 0x61c7484a
+0, 260, 260, 1, 38016, 0x09825cd1
+0, 261, 261, 1, 38016, 0x0e7b6bd9
+0, 262, 262, 1, 38016, 0x4a386b9e
+0, 263, 263, 1, 38016, 0x817b5e14
+0, 264, 264, 1, 38016, 0x51696069
+0, 265, 265, 1, 38016, 0x84a35f51
+0, 266, 266, 1, 38016, 0xf7758da3
+0, 267, 267, 1, 38016, 0x787b6659
+0, 268, 268, 1, 38016, 0xedb95942
+0, 269, 269, 1, 38016, 0x4d4d8eb5
+0, 270, 270, 1, 38016, 0x716cb36a
+0, 271, 271, 1, 38016, 0x6556b912
+0, 272, 272, 1, 38016, 0xbdd8c0b6
+0, 273, 273, 1, 38016, 0xd9ffbba5
+0, 274, 274, 1, 38016, 0xb5d7b4a7
+0, 275, 275, 1, 38016, 0x4690a4ed
+0, 276, 276, 1, 38016, 0x6fc8bdc4
+0, 277, 277, 1, 38016, 0x827de512
+0, 278, 278, 1, 38016, 0x897bfc43
+0, 279, 279, 1, 38016, 0x41f8144a
+0, 280, 280, 1, 38016, 0xff7d369e
+0, 281, 281, 1, 38016, 0x526f48fa
+0, 282, 282, 1, 38016, 0x53245921
+0, 283, 283, 1, 38016, 0x69a3791e
+0, 284, 284, 1, 38016, 0x3de095df
+0, 285, 285, 1, 38016, 0x9ae2a0f2
+0, 286, 286, 1, 38016, 0xd1668593
+0, 287, 287, 1, 38016, 0x322c4f5b
+0, 288, 288, 1, 38016, 0x15882875
+0, 289, 289, 1, 38016, 0xa8886b9a
+0, 290, 290, 1, 38016, 0xc6f07ac1
+0, 291, 291, 1, 38016, 0xf9446d58
+0, 292, 292, 1, 38016, 0x98ef5ffc
+0, 293, 293, 1, 38016, 0x23434b21
+0, 294, 294, 1, 38016, 0xa1f353d2
+0, 295, 295, 1, 38016, 0x6b3d4452
+0, 296, 296, 1, 38016, 0xd4ac32bf
+0, 297, 297, 1, 38016, 0xc577065d
+0, 298, 298, 1, 38016, 0x2d01111d
+0, 299, 299, 1, 38016, 0xf51721d4
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-mr2_tandberg_e b/ffmpeg1/tests/ref/fate/h264-conformance-mr2_tandberg_e
new file mode 100644
index 0000000..8fbac9f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr2_tandberg_e
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb96f1feb
+0, 1, 1, 1, 38016, 0xca461abd
+0, 2, 2, 1, 38016, 0x578a0c87
+0, 3, 3, 1, 38016, 0xb3cc1ecb
+0, 4, 4, 1, 38016, 0xd2c84463
+0, 5, 5, 1, 38016, 0x815d6363
+0, 6, 6, 1, 38016, 0x7cc17319
+0, 7, 7, 1, 38016, 0x0f7e8cab
+0, 8, 8, 1, 38016, 0x1876abee
+0, 9, 9, 1, 38016, 0x8f25bccd
+0, 10, 10, 1, 38016, 0xc1c7bb9c
+0, 11, 11, 1, 38016, 0xf861bdb5
+0, 12, 12, 1, 38016, 0xae1ac352
+0, 13, 13, 1, 38016, 0x9b6f990b
+0, 14, 14, 1, 38016, 0xa5217121
+0, 15, 15, 1, 38016, 0x12ac8367
+0, 16, 16, 1, 38016, 0x687f8526
+0, 17, 17, 1, 38016, 0x9b009a01
+0, 18, 18, 1, 38016, 0x9c629e04
+0, 19, 19, 1, 38016, 0xfee5a366
+0, 20, 20, 1, 38016, 0x264e9b00
+0, 21, 21, 1, 38016, 0xf89f9508
+0, 22, 22, 1, 38016, 0x19247145
+0, 23, 23, 1, 38016, 0xc4cd41bd
+0, 24, 24, 1, 38016, 0x035c2696
+0, 25, 25, 1, 38016, 0x22310e7f
+0, 26, 26, 1, 38016, 0xdd771898
+0, 27, 27, 1, 38016, 0x61522adf
+0, 28, 28, 1, 38016, 0x5eee412f
+0, 29, 29, 1, 38016, 0x03f05077
+0, 30, 30, 1, 38016, 0x69625001
+0, 31, 31, 1, 38016, 0x8e025073
+0, 32, 32, 1, 38016, 0x37374607
+0, 33, 33, 1, 38016, 0xc90547ea
+0, 34, 34, 1, 38016, 0xe9eb4193
+0, 35, 35, 1, 38016, 0xf7214070
+0, 36, 36, 1, 38016, 0xc3ce38de
+0, 37, 37, 1, 38016, 0xb99933cb
+0, 38, 38, 1, 38016, 0x5ee12b39
+0, 39, 39, 1, 38016, 0x13c921be
+0, 40, 40, 1, 38016, 0x66341136
+0, 41, 41, 1, 38016, 0x97710eef
+0, 42, 42, 1, 38016, 0xe5910c52
+0, 43, 43, 1, 38016, 0xbf9d0fbb
+0, 44, 44, 1, 38016, 0x0405177d
+0, 45, 45, 1, 38016, 0x25ec13da
+0, 46, 46, 1, 38016, 0xda29f457
+0, 47, 47, 1, 38016, 0x8e7dbe67
+0, 48, 48, 1, 38016, 0x64809802
+0, 49, 49, 1, 38016, 0xbd45731d
+0, 50, 50, 1, 38016, 0xf9e75c5b
+0, 51, 51, 1, 38016, 0x4509551e
+0, 52, 52, 1, 38016, 0xd73b54c9
+0, 53, 53, 1, 38016, 0x434d430e
+0, 54, 54, 1, 38016, 0xfbd940fe
+0, 55, 55, 1, 38016, 0xddb1612a
+0, 56, 56, 1, 38016, 0xffec797a
+0, 57, 57, 1, 38016, 0x4355aa0c
+0, 58, 58, 1, 38016, 0x1776d3e0
+0, 59, 59, 1, 38016, 0x7a64dd7f
+0, 60, 60, 1, 38016, 0xe619e56c
+0, 61, 61, 1, 38016, 0x43b0d8e7
+0, 62, 62, 1, 38016, 0x2103caf1
+0, 63, 63, 1, 38016, 0x808fbb8d
+0, 64, 64, 1, 38016, 0x0654ae1e
+0, 65, 65, 1, 38016, 0x8b6da03f
+0, 66, 66, 1, 38016, 0x15ee6b73
+0, 67, 67, 1, 38016, 0x8ab049c4
+0, 68, 68, 1, 38016, 0x7c6d351c
+0, 69, 69, 1, 38016, 0xe3fa3794
+0, 70, 70, 1, 38016, 0x5b3c581c
+0, 71, 71, 1, 38016, 0xf07a70e8
+0, 72, 72, 1, 38016, 0xcc378cb4
+0, 73, 73, 1, 38016, 0x15f49788
+0, 74, 74, 1, 38016, 0x23de74b4
+0, 75, 75, 1, 38016, 0x2e842db6
+0, 76, 76, 1, 38016, 0xd23cf2b9
+0, 77, 77, 1, 38016, 0xfbb7cea3
+0, 78, 78, 1, 38016, 0x05039bf0
+0, 79, 79, 1, 38016, 0x854d8c6c
+0, 80, 80, 1, 38016, 0x7d2770d7
+0, 81, 81, 1, 38016, 0x7e5f6374
+0, 82, 82, 1, 38016, 0x204753ee
+0, 83, 83, 1, 38016, 0x66906f4d
+0, 84, 84, 1, 38016, 0xf6ae700b
+0, 85, 85, 1, 38016, 0x64438aba
+0, 86, 86, 1, 38016, 0xc93aa41f
+0, 87, 87, 1, 38016, 0x27bdbdb7
+0, 88, 88, 1, 38016, 0x7aceb0a3
+0, 89, 89, 1, 38016, 0x751d81bd
+0, 90, 90, 1, 38016, 0xa86e3940
+0, 91, 91, 1, 38016, 0x9d022dd6
+0, 92, 92, 1, 38016, 0x0a484d7c
+0, 93, 93, 1, 38016, 0x6d555adb
+0, 94, 94, 1, 38016, 0xfe9799e0
+0, 95, 95, 1, 38016, 0x245ad49b
+0, 96, 96, 1, 38016, 0x6d22e3e3
+0, 97, 97, 1, 38016, 0xdffc00df
+0, 98, 98, 1, 38016, 0x34ec1984
+0, 99, 99, 1, 38016, 0x15172b1a
+0, 100, 100, 1, 38016, 0x05d742d8
+0, 101, 101, 1, 38016, 0xc94350fc
+0, 102, 102, 1, 38016, 0x3af65a84
+0, 103, 103, 1, 38016, 0xfbf96492
+0, 104, 104, 1, 38016, 0x1c8f6e2e
+0, 105, 105, 1, 38016, 0xe41677dc
+0, 106, 106, 1, 38016, 0xd36284e1
+0, 107, 107, 1, 38016, 0xa5f57f14
+0, 108, 108, 1, 38016, 0x6a7d70f4
+0, 109, 109, 1, 38016, 0x4c1a584f
+0, 110, 110, 1, 38016, 0x4f093dd3
+0, 111, 111, 1, 38016, 0x5a1634b3
+0, 112, 112, 1, 38016, 0xdd1a29b5
+0, 113, 113, 1, 38016, 0x28c81aa3
+0, 114, 114, 1, 38016, 0x681a0e29
+0, 115, 115, 1, 38016, 0x74110802
+0, 116, 116, 1, 38016, 0x468afe8a
+0, 117, 117, 1, 38016, 0xfbb609e0
+0, 118, 118, 1, 38016, 0x79d60da0
+0, 119, 119, 1, 38016, 0x0774036d
+0, 120, 120, 1, 38016, 0x904bf22d
+0, 121, 121, 1, 38016, 0xddeaedb5
+0, 122, 122, 1, 38016, 0x5de1d5af
+0, 123, 123, 1, 38016, 0xb9bad4cf
+0, 124, 124, 1, 38016, 0x452bcf0e
+0, 125, 125, 1, 38016, 0x9ab9cca8
+0, 126, 126, 1, 38016, 0x9b77d6ba
+0, 127, 127, 1, 38016, 0xb9f5dfaf
+0, 128, 128, 1, 38016, 0x7b33fac4
+0, 129, 129, 1, 38016, 0x25e41c67
+0, 130, 130, 1, 38016, 0x6af749b5
+0, 131, 131, 1, 38016, 0xe6576d07
+0, 132, 132, 1, 38016, 0x55a49498
+0, 133, 133, 1, 38016, 0x3bf4bd93
+0, 134, 134, 1, 38016, 0xba65cabb
+0, 135, 135, 1, 38016, 0x0c02de64
+0, 136, 136, 1, 38016, 0xdb86e742
+0, 137, 137, 1, 38016, 0x37acdf69
+0, 138, 138, 1, 38016, 0x8c1ea6be
+0, 139, 139, 1, 38016, 0x5295739e
+0, 140, 140, 1, 38016, 0xb2f85eb7
+0, 141, 141, 1, 38016, 0x17394375
+0, 142, 142, 1, 38016, 0x8a7f7528
+0, 143, 143, 1, 38016, 0x17c3e7a5
+0, 144, 144, 1, 38016, 0xbe1763ef
+0, 145, 145, 1, 38016, 0x236eab70
+0, 146, 146, 1, 38016, 0x4b3e9bbb
+0, 147, 147, 1, 38016, 0xc1d664f9
+0, 148, 148, 1, 38016, 0xc2300411
+0, 149, 149, 1, 38016, 0x1cf2903c
+0, 150, 150, 1, 38016, 0xd8783451
+0, 151, 151, 1, 38016, 0xf3c8ff31
+0, 152, 152, 1, 38016, 0xf6dfd324
+0, 153, 153, 1, 38016, 0x7b93b5d0
+0, 154, 154, 1, 38016, 0xf246a0f4
+0, 155, 155, 1, 38016, 0x5e970b10
+0, 156, 156, 1, 38016, 0xcb98878e
+0, 157, 157, 1, 38016, 0xc804f169
+0, 158, 158, 1, 38016, 0x801fec84
+0, 159, 159, 1, 38016, 0xb242ee41
+0, 160, 160, 1, 38016, 0xb8a7f3c1
+0, 161, 161, 1, 38016, 0x24b10420
+0, 162, 162, 1, 38016, 0x4b7601ab
+0, 163, 163, 1, 38016, 0x4c30f75a
+0, 164, 164, 1, 38016, 0x8e8cf5ae
+0, 165, 165, 1, 38016, 0xd94fefd2
+0, 166, 166, 1, 38016, 0x31c9c604
+0, 167, 167, 1, 38016, 0x09d29f6f
+0, 168, 168, 1, 38016, 0xa55e8075
+0, 169, 169, 1, 38016, 0x482d53da
+0, 170, 170, 1, 38016, 0x957e36f1
+0, 171, 171, 1, 38016, 0xcd261153
+0, 172, 172, 1, 38016, 0xbf08d284
+0, 173, 173, 1, 38016, 0x42957a37
+0, 174, 174, 1, 38016, 0x28b73287
+0, 175, 175, 1, 38016, 0xe6e33893
+0, 176, 176, 1, 38016, 0x7f0e3db5
+0, 177, 177, 1, 38016, 0xb80b46a3
+0, 178, 178, 1, 38016, 0x1ccca614
+0, 179, 179, 1, 38016, 0x531e2dfa
+0, 180, 180, 1, 38016, 0x0d95ef09
+0, 181, 181, 1, 38016, 0xb631a635
+0, 182, 182, 1, 38016, 0x4ed86a94
+0, 183, 183, 1, 38016, 0x919832ab
+0, 184, 184, 1, 38016, 0x724b60d5
+0, 185, 185, 1, 38016, 0x9965f58f
+0, 186, 186, 1, 38016, 0x7b04f567
+0, 187, 187, 1, 38016, 0x774740d6
+0, 188, 188, 1, 38016, 0xf8204134
+0, 189, 189, 1, 38016, 0xcbadfa7a
+0, 190, 190, 1, 38016, 0x9748728a
+0, 191, 191, 1, 38016, 0x973047e7
+0, 192, 192, 1, 38016, 0xcc52aa4d
+0, 193, 193, 1, 38016, 0x3fa7d81f
+0, 194, 194, 1, 38016, 0x7a33eddd
+0, 195, 195, 1, 38016, 0xe51ed885
+0, 196, 196, 1, 38016, 0xcc93b1a2
+0, 197, 197, 1, 38016, 0xf70cab47
+0, 198, 198, 1, 38016, 0x983eb17e
+0, 199, 199, 1, 38016, 0xdb02d6bb
+0, 200, 200, 1, 38016, 0xad99c4f9
+0, 201, 201, 1, 38016, 0xd0e5618c
+0, 202, 202, 1, 38016, 0x5eb05134
+0, 203, 203, 1, 38016, 0x4ce0cf23
+0, 204, 204, 1, 38016, 0x70de3edb
+0, 205, 205, 1, 38016, 0x3519c858
+0, 206, 206, 1, 38016, 0x1a4e785f
+0, 207, 207, 1, 38016, 0x8d09b6ee
+0, 208, 208, 1, 38016, 0x79b2fd7e
+0, 209, 209, 1, 38016, 0xcd5aa9a4
+0, 210, 210, 1, 38016, 0x1e1effd2
+0, 211, 211, 1, 38016, 0xa1d1b497
+0, 212, 212, 1, 38016, 0x5c036e34
+0, 213, 213, 1, 38016, 0x937f152b
+0, 214, 214, 1, 38016, 0xe434bed9
+0, 215, 215, 1, 38016, 0x09eb8913
+0, 216, 216, 1, 38016, 0x4d671935
+0, 217, 217, 1, 38016, 0x9c62f30c
+0, 218, 218, 1, 38016, 0x4d080e9c
+0, 219, 219, 1, 38016, 0x7fe23bb4
+0, 220, 220, 1, 38016, 0x95399638
+0, 221, 221, 1, 38016, 0x6aa41ac2
+0, 222, 222, 1, 38016, 0xe748bc32
+0, 223, 223, 1, 38016, 0x5fab449b
+0, 224, 224, 1, 38016, 0x8798bb84
+0, 225, 225, 1, 38016, 0x4e700879
+0, 226, 226, 1, 38016, 0x6d794fa4
+0, 227, 227, 1, 38016, 0xf40c9e13
+0, 228, 228, 1, 38016, 0x92330fdb
+0, 229, 229, 1, 38016, 0x558b899a
+0, 230, 230, 1, 38016, 0xec2320ed
+0, 231, 231, 1, 38016, 0x3179f275
+0, 232, 232, 1, 38016, 0x86cfd19d
+0, 233, 233, 1, 38016, 0x2c88c48a
+0, 234, 234, 1, 38016, 0x0c84b86f
+0, 235, 235, 1, 38016, 0x95069c90
+0, 236, 236, 1, 38016, 0x82da8061
+0, 237, 237, 1, 38016, 0x847f7634
+0, 238, 238, 1, 38016, 0x48d46d89
+0, 239, 239, 1, 38016, 0x220d81f3
+0, 240, 240, 1, 38016, 0x5cbe9a7e
+0, 241, 241, 1, 38016, 0xc0e9d5b9
+0, 242, 242, 1, 38016, 0xcc26ff97
+0, 243, 243, 1, 38016, 0x01332392
+0, 244, 244, 1, 38016, 0x44e44439
+0, 245, 245, 1, 38016, 0xfe8751ee
+0, 246, 246, 1, 38016, 0x010d74a1
+0, 247, 247, 1, 38016, 0xbf4a7c2d
+0, 248, 248, 1, 38016, 0x77869402
+0, 249, 249, 1, 38016, 0x1ae8b176
+0, 250, 250, 1, 38016, 0x917cc0b8
+0, 251, 251, 1, 38016, 0x3eb6d02a
+0, 252, 252, 1, 38016, 0x815ed568
+0, 253, 253, 1, 38016, 0xcd6bcd54
+0, 254, 254, 1, 38016, 0xd3e5bfcd
+0, 255, 255, 1, 38016, 0x95e2bd36
+0, 256, 256, 1, 38016, 0x102ca664
+0, 257, 257, 1, 38016, 0x95c59672
+0, 258, 258, 1, 38016, 0x1d5b8845
+0, 259, 259, 1, 38016, 0x3d988a4d
+0, 260, 260, 1, 38016, 0x4139a121
+0, 261, 261, 1, 38016, 0x9eeca508
+0, 262, 262, 1, 38016, 0xf9f2a9cc
+0, 263, 263, 1, 38016, 0x9420b177
+0, 264, 264, 1, 38016, 0x13edadd7
+0, 265, 265, 1, 38016, 0x3d18a416
+0, 266, 266, 1, 38016, 0x88b09166
+0, 267, 267, 1, 38016, 0x2e1c939c
+0, 268, 268, 1, 38016, 0x4f8381c3
+0, 269, 269, 1, 38016, 0x36647382
+0, 270, 270, 1, 38016, 0x26a272c1
+0, 271, 271, 1, 38016, 0x9a5a7cc8
+0, 272, 272, 1, 38016, 0xc2fc7734
+0, 273, 273, 1, 38016, 0xd21b7e6c
+0, 274, 274, 1, 38016, 0x948c77a0
+0, 275, 275, 1, 38016, 0x179e7d1a
+0, 276, 276, 1, 38016, 0xbfd17561
+0, 277, 277, 1, 38016, 0x30f97511
+0, 278, 278, 1, 38016, 0x893e6f54
+0, 279, 279, 1, 38016, 0x76036ecb
+0, 280, 280, 1, 38016, 0x3f0e6966
+0, 281, 281, 1, 38016, 0xed946afe
+0, 282, 282, 1, 38016, 0x2c2676de
+0, 283, 283, 1, 38016, 0x7b348c94
+0, 284, 284, 1, 38016, 0x77f5afc8
+0, 285, 285, 1, 38016, 0xdb54cea0
+0, 286, 286, 1, 38016, 0xc9fed974
+0, 287, 287, 1, 38016, 0x04bbe454
+0, 288, 288, 1, 38016, 0x7320ffb9
+0, 289, 289, 1, 38016, 0x841b199a
+0, 290, 290, 1, 38016, 0x7d792ee3
+0, 291, 291, 1, 38016, 0x5ce33607
+0, 292, 292, 1, 38016, 0xec52432e
+0, 293, 293, 1, 38016, 0xe6a04efe
+0, 294, 294, 1, 38016, 0xc7b45cef
+0, 295, 295, 1, 38016, 0xdbe76bf9
+0, 296, 296, 1, 38016, 0xd57f7e18
+0, 297, 297, 1, 38016, 0x8e03915d
+0, 298, 298, 1, 38016, 0x30779ec6
+0, 299, 299, 1, 38016, 0x89b1aa42
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-mr3_tandberg_b b/ffmpeg1/tests/ref/fate/h264-conformance-mr3_tandberg_b
new file mode 100644
index 0000000..ee8014e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr3_tandberg_b
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb96f1feb
+0, 1, 1, 1, 38016, 0xca461abd
+0, 2, 2, 1, 38016, 0x578a0c87
+0, 3, 3, 1, 38016, 0xb3cc1ecb
+0, 4, 4, 1, 38016, 0xd2c84463
+0, 5, 5, 1, 38016, 0x815d6363
+0, 6, 6, 1, 38016, 0x7cc17319
+0, 7, 7, 1, 38016, 0x0f7e8cab
+0, 8, 8, 1, 38016, 0x1876abee
+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/ffmpeg1/tests/ref/fate/h264-conformance-mr4_tandberg_c b/ffmpeg1/tests/ref/fate/h264-conformance-mr4_tandberg_c
new file mode 100644
index 0000000..0d5f646
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr4_tandberg_c
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb96f1feb
+0, 1, 1, 1, 38016, 0x0ff111f0
+0, 2, 2, 1, 38016, 0xbac70271
+0, 3, 3, 1, 38016, 0x8c361866
+0, 4, 4, 1, 38016, 0x9d9640be
+0, 5, 5, 1, 38016, 0xd36b563b
+0, 6, 6, 1, 38016, 0xe5966f5f
+0, 7, 7, 1, 38016, 0xb8b28ab0
+0, 8, 8, 1, 38016, 0xf817a3e6
+0, 9, 9, 1, 38016, 0xba26acd8
+0, 10, 10, 1, 38016, 0x453dba2f
+0, 11, 11, 1, 38016, 0xe50bd16e
+0, 12, 12, 1, 38016, 0x95c2c1f7
+0, 13, 13, 1, 38016, 0xc6a59679
+0, 14, 14, 1, 38016, 0x9f468726
+0, 15, 15, 1, 38016, 0x371091eb
+0, 16, 16, 1, 38016, 0xd499d26b
+0, 17, 17, 1, 38016, 0x172fd389
+0, 18, 18, 1, 38016, 0x3c04de2a
+0, 19, 19, 1, 38016, 0xa461aed2
+0, 20, 20, 1, 38016, 0x098cdef2
+0, 21, 21, 1, 38016, 0x5d8d9c7d
+0, 22, 22, 1, 38016, 0x087db718
+0, 23, 23, 1, 38016, 0x064191ef
+0, 24, 24, 1, 38016, 0x2f842ef5
+0, 25, 25, 1, 38016, 0x2b5b0e77
+0, 26, 26, 1, 38016, 0xcc671b7f
+0, 27, 27, 1, 38016, 0x859f4f75
+0, 28, 28, 1, 38016, 0x132a7a48
+0, 29, 29, 1, 38016, 0x6e8987ab
+0, 30, 30, 1, 38016, 0x02db8591
+0, 31, 31, 1, 38016, 0x30567d9b
+0, 32, 32, 1, 38016, 0x92ea3b53
+0, 33, 33, 1, 38016, 0xae807c6e
+0, 34, 34, 1, 38016, 0xbfbc7458
+0, 35, 35, 1, 38016, 0x66294d04
+0, 36, 36, 1, 38016, 0xdb2a5f10
+0, 37, 37, 1, 38016, 0xb19112fe
+0, 38, 38, 1, 38016, 0xdd26490e
+0, 39, 39, 1, 38016, 0x51cd31de
+0, 40, 40, 1, 38016, 0xf6cc2dad
+0, 41, 41, 1, 38016, 0x0c302dfd
+0, 42, 42, 1, 38016, 0xb846245d
+0, 43, 43, 1, 38016, 0xd61c2e88
+0, 44, 44, 1, 38016, 0xf8264117
+0, 45, 45, 1, 38016, 0x13862a3d
+0, 46, 46, 1, 38016, 0xfb481750
+0, 47, 47, 1, 38016, 0x6377e4af
+0, 48, 48, 1, 38016, 0x1759c1b4
+0, 49, 49, 1, 38016, 0xca03942b
+0, 50, 50, 1, 38016, 0x0126810b
+0, 51, 51, 1, 38016, 0x3c8c820b
+0, 52, 52, 1, 38016, 0x863379ec
+0, 53, 53, 1, 38016, 0xaf9b6d52
+0, 54, 54, 1, 38016, 0x9ba86946
+0, 55, 55, 1, 38016, 0xf97980fb
+0, 56, 56, 1, 38016, 0x9cf4785c
+0, 57, 57, 1, 38016, 0x51cdcdc7
+0, 58, 58, 1, 38016, 0x923de162
+0, 59, 59, 1, 38016, 0xdcd3c3cb
+0, 60, 60, 1, 38016, 0x6f9fea31
+0, 61, 61, 1, 38016, 0x7ab7b133
+0, 62, 62, 1, 38016, 0xb8a2c99f
+0, 63, 63, 1, 38016, 0x040a99c6
+0, 64, 64, 1, 38016, 0xa8c4b28f
+0, 65, 65, 1, 38016, 0x4c577509
+0, 66, 66, 1, 38016, 0xb30f7277
+0, 67, 67, 1, 38016, 0xb5f73b46
+0, 68, 68, 1, 38016, 0x723f3ccc
+0, 69, 69, 1, 38016, 0x3e4a0cca
+0, 70, 70, 1, 38016, 0xe0df386e
+0, 71, 71, 1, 38016, 0xc4832c7b
+0, 72, 72, 1, 38016, 0x014a2d9f
+0, 73, 73, 1, 38016, 0xae4272d9
+0, 74, 74, 1, 38016, 0xcde25e0f
+0, 75, 75, 1, 38016, 0xdecb13d6
+0, 76, 76, 1, 38016, 0x9d8ae5d9
+0, 77, 77, 1, 38016, 0x280abccf
+0, 78, 78, 1, 38016, 0x885a9fcc
+0, 79, 79, 1, 38016, 0x9b328b6f
+0, 80, 80, 1, 38016, 0x8fb7663c
+0, 81, 81, 1, 38016, 0x35fd4c32
+0, 82, 82, 1, 38016, 0xdd484efb
+0, 83, 83, 1, 38016, 0xb8f576b1
+0, 84, 84, 1, 38016, 0xe8016312
+0, 85, 85, 1, 38016, 0x65a88d55
+0, 86, 86, 1, 38016, 0x83dca3a9
+0, 87, 87, 1, 38016, 0xfc3ba542
+0, 88, 88, 1, 38016, 0x3d55ac26
+0, 89, 89, 1, 38016, 0xb91f6bbe
+0, 90, 90, 1, 38016, 0x67bd2f75
+0, 91, 91, 1, 38016, 0x0af12875
+0, 92, 92, 1, 38016, 0xc18a2d55
+0, 93, 93, 1, 38016, 0x22fd4e01
+0, 94, 94, 1, 38016, 0x466b8dcd
+0, 95, 95, 1, 38016, 0xfe93c2d9
+0, 96, 96, 1, 38016, 0x2cc0e638
+0, 97, 97, 1, 38016, 0xbe550d40
+0, 98, 98, 1, 38016, 0x65900ffc
+0, 99, 99, 1, 38016, 0xcc61228c
+0, 100, 100, 1, 38016, 0x8ae34904
+0, 101, 101, 1, 38016, 0x74b8411a
+0, 102, 102, 1, 38016, 0xae36408d
+0, 103, 103, 1, 38016, 0x251429ad
+0, 104, 104, 1, 38016, 0x4d8e6dc6
+0, 105, 105, 1, 38016, 0x9e07801e
+0, 106, 106, 1, 38016, 0x8fdd83ef
+0, 107, 107, 1, 38016, 0x976084a1
+0, 108, 108, 1, 38016, 0x69f7609f
+0, 109, 109, 1, 38016, 0x48971b09
+0, 110, 110, 1, 38016, 0x78e63ff4
+0, 111, 111, 1, 38016, 0x0852365b
+0, 112, 112, 1, 38016, 0x8044232c
+0, 113, 113, 1, 38016, 0x9ec3178d
+0, 114, 114, 1, 38016, 0x6f260955
+0, 115, 115, 1, 38016, 0x903cfe23
+0, 116, 116, 1, 38016, 0x441afbe4
+0, 117, 117, 1, 38016, 0xe4420313
+0, 118, 118, 1, 38016, 0xf86d0c34
+0, 119, 119, 1, 38016, 0xafe5f3c3
+0, 120, 120, 1, 38016, 0x9f61e43b
+0, 121, 121, 1, 38016, 0x9330e186
+0, 122, 122, 1, 38016, 0xc900ce86
+0, 123, 123, 1, 38016, 0xffd6c4a6
+0, 124, 124, 1, 38016, 0xd7b3cd79
+0, 125, 125, 1, 38016, 0x8015c914
+0, 126, 126, 1, 38016, 0x36d3c884
+0, 127, 127, 1, 38016, 0x2981db44
+0, 128, 128, 1, 38016, 0x94f40162
+0, 129, 129, 1, 38016, 0x091022c5
+0, 130, 130, 1, 38016, 0xd554203f
+0, 131, 131, 1, 38016, 0xdcf26c7e
+0, 132, 132, 1, 38016, 0xdc398ff4
+0, 133, 133, 1, 38016, 0xeb5ca01c
+0, 134, 134, 1, 38016, 0x4931c311
+0, 135, 135, 1, 38016, 0x0ddabf2a
+0, 136, 136, 1, 38016, 0x2432a265
+0, 137, 137, 1, 38016, 0x65409b4f
+0, 138, 138, 1, 38016, 0x466e6957
+0, 139, 139, 1, 38016, 0x82a08bb4
+0, 140, 140, 1, 38016, 0xdb6a35c4
+0, 141, 141, 1, 38016, 0xda5b0d28
+0, 142, 142, 1, 38016, 0x2be76f6d
+0, 143, 143, 1, 38016, 0x7587a456
+0, 144, 144, 1, 38016, 0x69994004
+0, 145, 145, 1, 38016, 0xaefd46ec
+0, 146, 146, 1, 38016, 0x88094d53
+0, 147, 147, 1, 38016, 0xfcb82a4c
+0, 148, 148, 1, 38016, 0x2877c850
+0, 149, 149, 1, 38016, 0x327f5e88
+0, 150, 150, 1, 38016, 0xaa1c4a3f
+0, 151, 151, 1, 38016, 0x1950dfbd
+0, 152, 152, 1, 38016, 0x8580b472
+0, 153, 153, 1, 38016, 0xb5ef90c0
+0, 154, 154, 1, 38016, 0x0906b3e7
+0, 155, 155, 1, 38016, 0x026b12fa
+0, 156, 156, 1, 38016, 0xe8ef556a
+0, 157, 157, 1, 38016, 0x2e1afe7f
+0, 158, 158, 1, 38016, 0xef2ad28a
+0, 159, 159, 1, 38016, 0xe6d7d947
+0, 160, 160, 1, 38016, 0x25ebd549
+0, 161, 161, 1, 38016, 0xc443f3cf
+0, 162, 162, 1, 38016, 0x9dc7dcad
+0, 163, 163, 1, 38016, 0x8b7ce835
+0, 164, 164, 1, 38016, 0x27a3e48b
+0, 165, 165, 1, 38016, 0x0b6bc8a9
+0, 166, 166, 1, 38016, 0xdb98d21e
+0, 167, 167, 1, 38016, 0x4cb89812
+0, 168, 168, 1, 38016, 0x41f35c5e
+0, 169, 169, 1, 38016, 0xfd764d91
+0, 170, 170, 1, 38016, 0xb7cc313f
+0, 171, 171, 1, 38016, 0x51ba22d1
+0, 172, 172, 1, 38016, 0x00d8deee
+0, 173, 173, 1, 38016, 0x50db806a
+0, 174, 174, 1, 38016, 0xbf022623
+0, 175, 175, 1, 38016, 0xf2fe22ba
+0, 176, 176, 1, 38016, 0x7055191b
+0, 177, 177, 1, 38016, 0xbefb8590
+0, 178, 178, 1, 38016, 0x90e59103
+0, 179, 179, 1, 38016, 0x61d443da
+0, 180, 180, 1, 38016, 0x6ad0e637
+0, 181, 181, 1, 38016, 0xda39f9c1
+0, 182, 182, 1, 38016, 0x03408181
+0, 183, 183, 1, 38016, 0xee973480
+0, 184, 184, 1, 38016, 0x9674d65d
+0, 185, 185, 1, 38016, 0x1fdd5529
+0, 186, 186, 1, 38016, 0x51a219bb
+0, 187, 187, 1, 38016, 0x9cd9747e
+0, 188, 188, 1, 38016, 0xa58a3c33
+0, 189, 189, 1, 38016, 0xdf1905a9
+0, 190, 190, 1, 38016, 0x44a52c69
+0, 191, 191, 1, 38016, 0x0cf6e56b
+0, 192, 192, 1, 38016, 0xe2115e06
+0, 193, 193, 1, 38016, 0x15efa840
+0, 194, 194, 1, 38016, 0x0811bad8
+0, 195, 195, 1, 38016, 0x8240a91d
+0, 196, 196, 1, 38016, 0xdfe46b7d
+0, 197, 197, 1, 38016, 0xcead819a
+0, 198, 198, 1, 38016, 0xe8f87d91
+0, 199, 199, 1, 38016, 0x951ebd82
+0, 200, 200, 1, 38016, 0x37d98ecb
+0, 201, 201, 1, 38016, 0x54fb54da
+0, 202, 202, 1, 38016, 0xb306302e
+0, 203, 203, 1, 38016, 0xa8acd0dc
+0, 204, 204, 1, 38016, 0x68e43757
+0, 205, 205, 1, 38016, 0x7018cd48
+0, 206, 206, 1, 38016, 0x1c34824e
+0, 207, 207, 1, 38016, 0x22e7e478
+0, 208, 208, 1, 38016, 0x534a0470
+0, 209, 209, 1, 38016, 0x1a65bc45
+0, 210, 210, 1, 38016, 0x5e78223b
+0, 211, 211, 1, 38016, 0xc3c9c912
+0, 212, 212, 1, 38016, 0x52557c74
+0, 213, 213, 1, 38016, 0xf5ff1f9a
+0, 214, 214, 1, 38016, 0x56afe047
+0, 215, 215, 1, 38016, 0x50259235
+0, 216, 216, 1, 38016, 0xca19311d
+0, 217, 217, 1, 38016, 0xd96eeb53
+0, 218, 218, 1, 38016, 0x21a218b7
+0, 219, 219, 1, 38016, 0x24162395
+0, 220, 220, 1, 38016, 0xadf9b983
+0, 221, 221, 1, 38016, 0x68443df2
+0, 222, 222, 1, 38016, 0xa970df8a
+0, 223, 223, 1, 38016, 0x8381bbee
+0, 224, 224, 1, 38016, 0x36fe1d22
+0, 225, 225, 1, 38016, 0xa0326ddf
+0, 226, 226, 1, 38016, 0x01dc7ca7
+0, 227, 227, 1, 38016, 0xf485d505
+0, 228, 228, 1, 38016, 0xb5a8fe68
+0, 229, 229, 1, 38016, 0x6385f303
+0, 230, 230, 1, 38016, 0x4d099ef1
+0, 231, 231, 1, 38016, 0xeaa54d25
+0, 232, 232, 1, 38016, 0x5c32c503
+0, 233, 233, 1, 38016, 0xd52538b3
+0, 234, 234, 1, 38016, 0x1ca2e4c2
+0, 235, 235, 1, 38016, 0xe3a95b82
+0, 236, 236, 1, 38016, 0x14393895
+0, 237, 237, 1, 38016, 0xd77cef50
+0, 238, 238, 1, 38016, 0x47b901b8
+0, 239, 239, 1, 38016, 0x14d70226
+0, 240, 240, 1, 38016, 0xab32b360
+0, 241, 241, 1, 38016, 0xb92d3090
+0, 242, 242, 1, 38016, 0xbd50ae43
+0, 243, 243, 1, 38016, 0x5ea8d59a
+0, 244, 244, 1, 38016, 0xb6d7fe63
+0, 245, 245, 1, 38016, 0xe228050d
+0, 246, 246, 1, 38016, 0x09e251ed
+0, 247, 247, 1, 38016, 0xcea332d0
+0, 248, 248, 1, 38016, 0x048838af
+0, 249, 249, 1, 38016, 0x0a625a93
+0, 250, 250, 1, 38016, 0x018aa719
+0, 251, 251, 1, 38016, 0x630e70a8
+0, 252, 252, 1, 38016, 0x93cb4c39
+0, 253, 253, 1, 38016, 0x3cdb7cf8
+0, 254, 254, 1, 38016, 0x48491fb4
+0, 255, 255, 1, 38016, 0x06aa4101
+0, 256, 256, 1, 38016, 0x4b402d3e
+0, 257, 257, 1, 38016, 0x13cbf927
+0, 258, 258, 1, 38016, 0xdc7528b6
+0, 259, 259, 1, 38016, 0x652d0576
+0, 260, 260, 1, 38016, 0xa3a504d6
+0, 261, 261, 1, 38016, 0x5bd33fe4
+0, 262, 262, 1, 38016, 0xae11267b
+0, 263, 263, 1, 38016, 0xb58b5613
+0, 264, 264, 1, 38016, 0x50160d80
+0, 265, 265, 1, 38016, 0x4a643ed0
+0, 266, 266, 1, 38016, 0xe3983ed6
+0, 267, 267, 1, 38016, 0xa1fb3338
+0, 268, 268, 1, 38016, 0x48d0286d
+0, 269, 269, 1, 38016, 0x67043801
+0, 270, 270, 1, 38016, 0x00bafaad
+0, 271, 271, 1, 38016, 0xf07de35a
+0, 272, 272, 1, 38016, 0x493e4579
+0, 273, 273, 1, 38016, 0xa917532b
+0, 274, 274, 1, 38016, 0x463fcc89
+0, 275, 275, 1, 38016, 0xd47c1b1b
+0, 276, 276, 1, 38016, 0x3543c596
+0, 277, 277, 1, 38016, 0x65d6cd5b
+0, 278, 278, 1, 38016, 0x22cbd5ef
+0, 279, 279, 1, 38016, 0x08e0f250
+0, 280, 280, 1, 38016, 0x4e4aeb0a
+0, 281, 281, 1, 38016, 0x7895e0bd
+0, 282, 282, 1, 38016, 0xc11cea95
+0, 283, 283, 1, 38016, 0x13b3bcf8
+0, 284, 284, 1, 38016, 0xcb312186
+0, 285, 285, 1, 38016, 0x791007ca
+0, 286, 286, 1, 38016, 0xaa77354f
+0, 287, 287, 1, 38016, 0x1dbc2a67
+0, 288, 288, 1, 38016, 0x00646a65
+0, 289, 289, 1, 38016, 0x19db488d
+0, 290, 290, 1, 38016, 0x16c155e5
+0, 291, 291, 1, 38016, 0xb760898e
+0, 292, 292, 1, 38016, 0xbd6691e8
+0, 293, 293, 1, 38016, 0x06829781
+0, 294, 294, 1, 38016, 0xcebab8ad
+0, 295, 295, 1, 38016, 0xe2f38e79
+0, 296, 296, 1, 38016, 0x1e00c08e
+0, 297, 297, 1, 38016, 0x86d6c935
+0, 298, 298, 1, 38016, 0xaa88dfdc
+0, 299, 299, 1, 38016, 0xa9029b45
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-mr5_tandberg_c b/ffmpeg1/tests/ref/fate/h264-conformance-mr5_tandberg_c
new file mode 100644
index 0000000..0d5f646
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr5_tandberg_c
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb96f1feb
+0, 1, 1, 1, 38016, 0x0ff111f0
+0, 2, 2, 1, 38016, 0xbac70271
+0, 3, 3, 1, 38016, 0x8c361866
+0, 4, 4, 1, 38016, 0x9d9640be
+0, 5, 5, 1, 38016, 0xd36b563b
+0, 6, 6, 1, 38016, 0xe5966f5f
+0, 7, 7, 1, 38016, 0xb8b28ab0
+0, 8, 8, 1, 38016, 0xf817a3e6
+0, 9, 9, 1, 38016, 0xba26acd8
+0, 10, 10, 1, 38016, 0x453dba2f
+0, 11, 11, 1, 38016, 0xe50bd16e
+0, 12, 12, 1, 38016, 0x95c2c1f7
+0, 13, 13, 1, 38016, 0xc6a59679
+0, 14, 14, 1, 38016, 0x9f468726
+0, 15, 15, 1, 38016, 0x371091eb
+0, 16, 16, 1, 38016, 0xd499d26b
+0, 17, 17, 1, 38016, 0x172fd389
+0, 18, 18, 1, 38016, 0x3c04de2a
+0, 19, 19, 1, 38016, 0xa461aed2
+0, 20, 20, 1, 38016, 0x098cdef2
+0, 21, 21, 1, 38016, 0x5d8d9c7d
+0, 22, 22, 1, 38016, 0x087db718
+0, 23, 23, 1, 38016, 0x064191ef
+0, 24, 24, 1, 38016, 0x2f842ef5
+0, 25, 25, 1, 38016, 0x2b5b0e77
+0, 26, 26, 1, 38016, 0xcc671b7f
+0, 27, 27, 1, 38016, 0x859f4f75
+0, 28, 28, 1, 38016, 0x132a7a48
+0, 29, 29, 1, 38016, 0x6e8987ab
+0, 30, 30, 1, 38016, 0x02db8591
+0, 31, 31, 1, 38016, 0x30567d9b
+0, 32, 32, 1, 38016, 0x92ea3b53
+0, 33, 33, 1, 38016, 0xae807c6e
+0, 34, 34, 1, 38016, 0xbfbc7458
+0, 35, 35, 1, 38016, 0x66294d04
+0, 36, 36, 1, 38016, 0xdb2a5f10
+0, 37, 37, 1, 38016, 0xb19112fe
+0, 38, 38, 1, 38016, 0xdd26490e
+0, 39, 39, 1, 38016, 0x51cd31de
+0, 40, 40, 1, 38016, 0xf6cc2dad
+0, 41, 41, 1, 38016, 0x0c302dfd
+0, 42, 42, 1, 38016, 0xb846245d
+0, 43, 43, 1, 38016, 0xd61c2e88
+0, 44, 44, 1, 38016, 0xf8264117
+0, 45, 45, 1, 38016, 0x13862a3d
+0, 46, 46, 1, 38016, 0xfb481750
+0, 47, 47, 1, 38016, 0x6377e4af
+0, 48, 48, 1, 38016, 0x1759c1b4
+0, 49, 49, 1, 38016, 0xca03942b
+0, 50, 50, 1, 38016, 0x0126810b
+0, 51, 51, 1, 38016, 0x3c8c820b
+0, 52, 52, 1, 38016, 0x863379ec
+0, 53, 53, 1, 38016, 0xaf9b6d52
+0, 54, 54, 1, 38016, 0x9ba86946
+0, 55, 55, 1, 38016, 0xf97980fb
+0, 56, 56, 1, 38016, 0x9cf4785c
+0, 57, 57, 1, 38016, 0x51cdcdc7
+0, 58, 58, 1, 38016, 0x923de162
+0, 59, 59, 1, 38016, 0xdcd3c3cb
+0, 60, 60, 1, 38016, 0x6f9fea31
+0, 61, 61, 1, 38016, 0x7ab7b133
+0, 62, 62, 1, 38016, 0xb8a2c99f
+0, 63, 63, 1, 38016, 0x040a99c6
+0, 64, 64, 1, 38016, 0xa8c4b28f
+0, 65, 65, 1, 38016, 0x4c577509
+0, 66, 66, 1, 38016, 0xb30f7277
+0, 67, 67, 1, 38016, 0xb5f73b46
+0, 68, 68, 1, 38016, 0x723f3ccc
+0, 69, 69, 1, 38016, 0x3e4a0cca
+0, 70, 70, 1, 38016, 0xe0df386e
+0, 71, 71, 1, 38016, 0xc4832c7b
+0, 72, 72, 1, 38016, 0x014a2d9f
+0, 73, 73, 1, 38016, 0xae4272d9
+0, 74, 74, 1, 38016, 0xcde25e0f
+0, 75, 75, 1, 38016, 0xdecb13d6
+0, 76, 76, 1, 38016, 0x9d8ae5d9
+0, 77, 77, 1, 38016, 0x280abccf
+0, 78, 78, 1, 38016, 0x885a9fcc
+0, 79, 79, 1, 38016, 0x9b328b6f
+0, 80, 80, 1, 38016, 0x8fb7663c
+0, 81, 81, 1, 38016, 0x35fd4c32
+0, 82, 82, 1, 38016, 0xdd484efb
+0, 83, 83, 1, 38016, 0xb8f576b1
+0, 84, 84, 1, 38016, 0xe8016312
+0, 85, 85, 1, 38016, 0x65a88d55
+0, 86, 86, 1, 38016, 0x83dca3a9
+0, 87, 87, 1, 38016, 0xfc3ba542
+0, 88, 88, 1, 38016, 0x3d55ac26
+0, 89, 89, 1, 38016, 0xb91f6bbe
+0, 90, 90, 1, 38016, 0x67bd2f75
+0, 91, 91, 1, 38016, 0x0af12875
+0, 92, 92, 1, 38016, 0xc18a2d55
+0, 93, 93, 1, 38016, 0x22fd4e01
+0, 94, 94, 1, 38016, 0x466b8dcd
+0, 95, 95, 1, 38016, 0xfe93c2d9
+0, 96, 96, 1, 38016, 0x2cc0e638
+0, 97, 97, 1, 38016, 0xbe550d40
+0, 98, 98, 1, 38016, 0x65900ffc
+0, 99, 99, 1, 38016, 0xcc61228c
+0, 100, 100, 1, 38016, 0x8ae34904
+0, 101, 101, 1, 38016, 0x74b8411a
+0, 102, 102, 1, 38016, 0xae36408d
+0, 103, 103, 1, 38016, 0x251429ad
+0, 104, 104, 1, 38016, 0x4d8e6dc6
+0, 105, 105, 1, 38016, 0x9e07801e
+0, 106, 106, 1, 38016, 0x8fdd83ef
+0, 107, 107, 1, 38016, 0x976084a1
+0, 108, 108, 1, 38016, 0x69f7609f
+0, 109, 109, 1, 38016, 0x48971b09
+0, 110, 110, 1, 38016, 0x78e63ff4
+0, 111, 111, 1, 38016, 0x0852365b
+0, 112, 112, 1, 38016, 0x8044232c
+0, 113, 113, 1, 38016, 0x9ec3178d
+0, 114, 114, 1, 38016, 0x6f260955
+0, 115, 115, 1, 38016, 0x903cfe23
+0, 116, 116, 1, 38016, 0x441afbe4
+0, 117, 117, 1, 38016, 0xe4420313
+0, 118, 118, 1, 38016, 0xf86d0c34
+0, 119, 119, 1, 38016, 0xafe5f3c3
+0, 120, 120, 1, 38016, 0x9f61e43b
+0, 121, 121, 1, 38016, 0x9330e186
+0, 122, 122, 1, 38016, 0xc900ce86
+0, 123, 123, 1, 38016, 0xffd6c4a6
+0, 124, 124, 1, 38016, 0xd7b3cd79
+0, 125, 125, 1, 38016, 0x8015c914
+0, 126, 126, 1, 38016, 0x36d3c884
+0, 127, 127, 1, 38016, 0x2981db44
+0, 128, 128, 1, 38016, 0x94f40162
+0, 129, 129, 1, 38016, 0x091022c5
+0, 130, 130, 1, 38016, 0xd554203f
+0, 131, 131, 1, 38016, 0xdcf26c7e
+0, 132, 132, 1, 38016, 0xdc398ff4
+0, 133, 133, 1, 38016, 0xeb5ca01c
+0, 134, 134, 1, 38016, 0x4931c311
+0, 135, 135, 1, 38016, 0x0ddabf2a
+0, 136, 136, 1, 38016, 0x2432a265
+0, 137, 137, 1, 38016, 0x65409b4f
+0, 138, 138, 1, 38016, 0x466e6957
+0, 139, 139, 1, 38016, 0x82a08bb4
+0, 140, 140, 1, 38016, 0xdb6a35c4
+0, 141, 141, 1, 38016, 0xda5b0d28
+0, 142, 142, 1, 38016, 0x2be76f6d
+0, 143, 143, 1, 38016, 0x7587a456
+0, 144, 144, 1, 38016, 0x69994004
+0, 145, 145, 1, 38016, 0xaefd46ec
+0, 146, 146, 1, 38016, 0x88094d53
+0, 147, 147, 1, 38016, 0xfcb82a4c
+0, 148, 148, 1, 38016, 0x2877c850
+0, 149, 149, 1, 38016, 0x327f5e88
+0, 150, 150, 1, 38016, 0xaa1c4a3f
+0, 151, 151, 1, 38016, 0x1950dfbd
+0, 152, 152, 1, 38016, 0x8580b472
+0, 153, 153, 1, 38016, 0xb5ef90c0
+0, 154, 154, 1, 38016, 0x0906b3e7
+0, 155, 155, 1, 38016, 0x026b12fa
+0, 156, 156, 1, 38016, 0xe8ef556a
+0, 157, 157, 1, 38016, 0x2e1afe7f
+0, 158, 158, 1, 38016, 0xef2ad28a
+0, 159, 159, 1, 38016, 0xe6d7d947
+0, 160, 160, 1, 38016, 0x25ebd549
+0, 161, 161, 1, 38016, 0xc443f3cf
+0, 162, 162, 1, 38016, 0x9dc7dcad
+0, 163, 163, 1, 38016, 0x8b7ce835
+0, 164, 164, 1, 38016, 0x27a3e48b
+0, 165, 165, 1, 38016, 0x0b6bc8a9
+0, 166, 166, 1, 38016, 0xdb98d21e
+0, 167, 167, 1, 38016, 0x4cb89812
+0, 168, 168, 1, 38016, 0x41f35c5e
+0, 169, 169, 1, 38016, 0xfd764d91
+0, 170, 170, 1, 38016, 0xb7cc313f
+0, 171, 171, 1, 38016, 0x51ba22d1
+0, 172, 172, 1, 38016, 0x00d8deee
+0, 173, 173, 1, 38016, 0x50db806a
+0, 174, 174, 1, 38016, 0xbf022623
+0, 175, 175, 1, 38016, 0xf2fe22ba
+0, 176, 176, 1, 38016, 0x7055191b
+0, 177, 177, 1, 38016, 0xbefb8590
+0, 178, 178, 1, 38016, 0x90e59103
+0, 179, 179, 1, 38016, 0x61d443da
+0, 180, 180, 1, 38016, 0x6ad0e637
+0, 181, 181, 1, 38016, 0xda39f9c1
+0, 182, 182, 1, 38016, 0x03408181
+0, 183, 183, 1, 38016, 0xee973480
+0, 184, 184, 1, 38016, 0x9674d65d
+0, 185, 185, 1, 38016, 0x1fdd5529
+0, 186, 186, 1, 38016, 0x51a219bb
+0, 187, 187, 1, 38016, 0x9cd9747e
+0, 188, 188, 1, 38016, 0xa58a3c33
+0, 189, 189, 1, 38016, 0xdf1905a9
+0, 190, 190, 1, 38016, 0x44a52c69
+0, 191, 191, 1, 38016, 0x0cf6e56b
+0, 192, 192, 1, 38016, 0xe2115e06
+0, 193, 193, 1, 38016, 0x15efa840
+0, 194, 194, 1, 38016, 0x0811bad8
+0, 195, 195, 1, 38016, 0x8240a91d
+0, 196, 196, 1, 38016, 0xdfe46b7d
+0, 197, 197, 1, 38016, 0xcead819a
+0, 198, 198, 1, 38016, 0xe8f87d91
+0, 199, 199, 1, 38016, 0x951ebd82
+0, 200, 200, 1, 38016, 0x37d98ecb
+0, 201, 201, 1, 38016, 0x54fb54da
+0, 202, 202, 1, 38016, 0xb306302e
+0, 203, 203, 1, 38016, 0xa8acd0dc
+0, 204, 204, 1, 38016, 0x68e43757
+0, 205, 205, 1, 38016, 0x7018cd48
+0, 206, 206, 1, 38016, 0x1c34824e
+0, 207, 207, 1, 38016, 0x22e7e478
+0, 208, 208, 1, 38016, 0x534a0470
+0, 209, 209, 1, 38016, 0x1a65bc45
+0, 210, 210, 1, 38016, 0x5e78223b
+0, 211, 211, 1, 38016, 0xc3c9c912
+0, 212, 212, 1, 38016, 0x52557c74
+0, 213, 213, 1, 38016, 0xf5ff1f9a
+0, 214, 214, 1, 38016, 0x56afe047
+0, 215, 215, 1, 38016, 0x50259235
+0, 216, 216, 1, 38016, 0xca19311d
+0, 217, 217, 1, 38016, 0xd96eeb53
+0, 218, 218, 1, 38016, 0x21a218b7
+0, 219, 219, 1, 38016, 0x24162395
+0, 220, 220, 1, 38016, 0xadf9b983
+0, 221, 221, 1, 38016, 0x68443df2
+0, 222, 222, 1, 38016, 0xa970df8a
+0, 223, 223, 1, 38016, 0x8381bbee
+0, 224, 224, 1, 38016, 0x36fe1d22
+0, 225, 225, 1, 38016, 0xa0326ddf
+0, 226, 226, 1, 38016, 0x01dc7ca7
+0, 227, 227, 1, 38016, 0xf485d505
+0, 228, 228, 1, 38016, 0xb5a8fe68
+0, 229, 229, 1, 38016, 0x6385f303
+0, 230, 230, 1, 38016, 0x4d099ef1
+0, 231, 231, 1, 38016, 0xeaa54d25
+0, 232, 232, 1, 38016, 0x5c32c503
+0, 233, 233, 1, 38016, 0xd52538b3
+0, 234, 234, 1, 38016, 0x1ca2e4c2
+0, 235, 235, 1, 38016, 0xe3a95b82
+0, 236, 236, 1, 38016, 0x14393895
+0, 237, 237, 1, 38016, 0xd77cef50
+0, 238, 238, 1, 38016, 0x47b901b8
+0, 239, 239, 1, 38016, 0x14d70226
+0, 240, 240, 1, 38016, 0xab32b360
+0, 241, 241, 1, 38016, 0xb92d3090
+0, 242, 242, 1, 38016, 0xbd50ae43
+0, 243, 243, 1, 38016, 0x5ea8d59a
+0, 244, 244, 1, 38016, 0xb6d7fe63
+0, 245, 245, 1, 38016, 0xe228050d
+0, 246, 246, 1, 38016, 0x09e251ed
+0, 247, 247, 1, 38016, 0xcea332d0
+0, 248, 248, 1, 38016, 0x048838af
+0, 249, 249, 1, 38016, 0x0a625a93
+0, 250, 250, 1, 38016, 0x018aa719
+0, 251, 251, 1, 38016, 0x630e70a8
+0, 252, 252, 1, 38016, 0x93cb4c39
+0, 253, 253, 1, 38016, 0x3cdb7cf8
+0, 254, 254, 1, 38016, 0x48491fb4
+0, 255, 255, 1, 38016, 0x06aa4101
+0, 256, 256, 1, 38016, 0x4b402d3e
+0, 257, 257, 1, 38016, 0x13cbf927
+0, 258, 258, 1, 38016, 0xdc7528b6
+0, 259, 259, 1, 38016, 0x652d0576
+0, 260, 260, 1, 38016, 0xa3a504d6
+0, 261, 261, 1, 38016, 0x5bd33fe4
+0, 262, 262, 1, 38016, 0xae11267b
+0, 263, 263, 1, 38016, 0xb58b5613
+0, 264, 264, 1, 38016, 0x50160d80
+0, 265, 265, 1, 38016, 0x4a643ed0
+0, 266, 266, 1, 38016, 0xe3983ed6
+0, 267, 267, 1, 38016, 0xa1fb3338
+0, 268, 268, 1, 38016, 0x48d0286d
+0, 269, 269, 1, 38016, 0x67043801
+0, 270, 270, 1, 38016, 0x00bafaad
+0, 271, 271, 1, 38016, 0xf07de35a
+0, 272, 272, 1, 38016, 0x493e4579
+0, 273, 273, 1, 38016, 0xa917532b
+0, 274, 274, 1, 38016, 0x463fcc89
+0, 275, 275, 1, 38016, 0xd47c1b1b
+0, 276, 276, 1, 38016, 0x3543c596
+0, 277, 277, 1, 38016, 0x65d6cd5b
+0, 278, 278, 1, 38016, 0x22cbd5ef
+0, 279, 279, 1, 38016, 0x08e0f250
+0, 280, 280, 1, 38016, 0x4e4aeb0a
+0, 281, 281, 1, 38016, 0x7895e0bd
+0, 282, 282, 1, 38016, 0xc11cea95
+0, 283, 283, 1, 38016, 0x13b3bcf8
+0, 284, 284, 1, 38016, 0xcb312186
+0, 285, 285, 1, 38016, 0x791007ca
+0, 286, 286, 1, 38016, 0xaa77354f
+0, 287, 287, 1, 38016, 0x1dbc2a67
+0, 288, 288, 1, 38016, 0x00646a65
+0, 289, 289, 1, 38016, 0x19db488d
+0, 290, 290, 1, 38016, 0x16c155e5
+0, 291, 291, 1, 38016, 0xb760898e
+0, 292, 292, 1, 38016, 0xbd6691e8
+0, 293, 293, 1, 38016, 0x06829781
+0, 294, 294, 1, 38016, 0xcebab8ad
+0, 295, 295, 1, 38016, 0xe2f38e79
+0, 296, 296, 1, 38016, 0x1e00c08e
+0, 297, 297, 1, 38016, 0x86d6c935
+0, 298, 298, 1, 38016, 0xaa88dfdc
+0, 299, 299, 1, 38016, 0xa9029b45
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-mr6_bt_b b/ffmpeg1/tests/ref/fate/h264-conformance-mr6_bt_b
new file mode 100644
index 0000000..3b02506
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr6_bt_b
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-mr7_bt_b b/ffmpeg1/tests/ref/fate/h264-conformance-mr7_bt_b
new file mode 100644
index 0000000..25b7054
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr7_bt_b
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 36864, 0x579e6274
+0, 1, 1, 1, 36864, 0x8650c61c
+0, 2, 2, 1, 36864, 0xbc359647
+0, 3, 3, 1, 36864, 0x08d91c13
+0, 4, 4, 1, 36864, 0xe8b79043
+0, 5, 5, 1, 36864, 0x2f16085a
+0, 6, 6, 1, 36864, 0x81e89739
+0, 7, 7, 1, 36864, 0xf2f324dd
+0, 8, 8, 1, 36864, 0x592b5a01
+0, 9, 9, 1, 36864, 0x4c2f2d91
+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/ffmpeg1/tests/ref/fate/h264-conformance-mr8_bt_b b/ffmpeg1/tests/ref/fate/h264-conformance-mr8_bt_b
new file mode 100644
index 0000000..220acf1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr8_bt_b
@@ -0,0 +1,59 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-mr9_bt_b b/ffmpeg1/tests/ref/fate/h264-conformance-mr9_bt_b
new file mode 100644
index 0000000..3744802
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mr9_bt_b
@@ -0,0 +1,59 @@
+#tb 0: 1/25
+0, 0, 0, 1, 36864, 0xb4c5642e
+0, 1, 1, 1, 36864, 0x929fd05f
+0, 2, 2, 1, 36864, 0x447c9b69
+0, 3, 3, 1, 36864, 0xab0712da
+0, 4, 4, 1, 36864, 0xd9f69216
+0, 5, 5, 1, 36864, 0xec04f6dc
+0, 6, 6, 1, 36864, 0x5ffa86cc
+0, 7, 7, 1, 36864, 0x75122807
+0, 8, 8, 1, 36864, 0x27036a2b
+0, 9, 9, 1, 36864, 0x00072654
+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/ffmpeg1/tests/ref/fate/h264-conformance-mv1_brcm_d b/ffmpeg1/tests/ref/fate/h264-conformance-mv1_brcm_d
new file mode 100644
index 0000000..47517ee
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-mv1_brcm_d
@@ -0,0 +1,258 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x230d7aa6
+0, 1, 1, 1, 518400, 0x9fc976e0
+0, 2, 2, 1, 518400, 0x51052db9
+0, 3, 3, 1, 518400, 0xad82d599
+0, 4, 4, 1, 518400, 0xa122c6a7
+0, 5, 5, 1, 518400, 0x0c3a81a0
+0, 6, 6, 1, 518400, 0x6235364e
+0, 7, 7, 1, 518400, 0x4d5104f8
+0, 8, 8, 1, 518400, 0x09cc49b1
+0, 9, 9, 1, 518400, 0xcdb05c19
+0, 10, 10, 1, 518400, 0x894be6de
+0, 11, 11, 1, 518400, 0x53a41fc3
+0, 12, 12, 1, 518400, 0x7568ccee
+0, 13, 13, 1, 518400, 0x2b5ae37b
+0, 14, 14, 1, 518400, 0xd0b994bb
+0, 15, 15, 1, 518400, 0x1b161358
+0, 16, 16, 1, 518400, 0xc5434edc
+0, 17, 17, 1, 518400, 0xc4709590
+0, 18, 18, 1, 518400, 0x60c6803a
+0, 19, 19, 1, 518400, 0xdff3edcd
+0, 20, 20, 1, 518400, 0x8a02b8b4
+0, 21, 21, 1, 518400, 0x478cf791
+0, 22, 22, 1, 518400, 0x7c42fed0
+0, 23, 23, 1, 518400, 0x12b1336d
+0, 24, 24, 1, 518400, 0xe16e765e
+0, 25, 25, 1, 518400, 0x002c291e
+0, 26, 26, 1, 518400, 0x50810b53
+0, 27, 27, 1, 518400, 0xda7e2453
+0, 28, 28, 1, 518400, 0x6e330093
+0, 29, 29, 1, 518400, 0xf30740b3
+0, 30, 30, 1, 518400, 0xc27ae19d
+0, 31, 31, 1, 518400, 0xe49da8c2
+0, 32, 32, 1, 518400, 0xa739372c
+0, 33, 33, 1, 518400, 0x4b44788c
+0, 34, 34, 1, 518400, 0xfdf9e6cf
+0, 35, 35, 1, 518400, 0xee205413
+0, 36, 36, 1, 518400, 0x8792dc0e
+0, 37, 37, 1, 518400, 0x6820d611
+0, 38, 38, 1, 518400, 0x106cbc2c
+0, 39, 39, 1, 518400, 0x7d8e3e92
+0, 40, 40, 1, 518400, 0xbfe48709
+0, 41, 41, 1, 518400, 0xc5d5a55d
+0, 42, 42, 1, 518400, 0x7c234886
+0, 43, 43, 1, 518400, 0x852372b0
+0, 44, 44, 1, 518400, 0x43d697f9
+0, 45, 45, 1, 518400, 0xc3460806
+0, 46, 46, 1, 518400, 0x0600abea
+0, 47, 47, 1, 518400, 0xf6e3ab0e
+0, 48, 48, 1, 518400, 0x651f9a46
+0, 49, 49, 1, 518400, 0xed467ba0
+0, 50, 50, 1, 518400, 0x62312c3f
+0, 51, 51, 1, 518400, 0xb121898d
+0, 52, 52, 1, 518400, 0xb1f96406
+0, 53, 53, 1, 518400, 0x78003318
+0, 54, 54, 1, 518400, 0x1032b15b
+0, 55, 55, 1, 518400, 0x72683d37
+0, 56, 56, 1, 518400, 0xd1349f12
+0, 57, 57, 1, 518400, 0x4162f707
+0, 58, 58, 1, 518400, 0x894711c9
+0, 59, 59, 1, 518400, 0xca37429b
+0, 60, 60, 1, 518400, 0xb8e91eb5
+0, 61, 61, 1, 518400, 0xe5eb3103
+0, 62, 62, 1, 518400, 0x56a33cea
+0, 63, 63, 1, 518400, 0x79ef0227
+0, 64, 64, 1, 518400, 0x7ceaab75
+0, 65, 65, 1, 518400, 0x3f4787b2
+0, 66, 66, 1, 518400, 0x9e6d2abb
+0, 67, 67, 1, 518400, 0xedb0cf82
+0, 68, 68, 1, 518400, 0x19c8723f
+0, 69, 69, 1, 518400, 0x35d8399b
+0, 70, 70, 1, 518400, 0xe0224dc8
+0, 71, 71, 1, 518400, 0xc95467bf
+0, 72, 72, 1, 518400, 0x99662844
+0, 73, 73, 1, 518400, 0x10a322c9
+0, 74, 74, 1, 518400, 0xe6313d98
+0, 75, 75, 1, 518400, 0x2e2a63d1
+0, 76, 76, 1, 518400, 0x2c9d0715
+0, 77, 77, 1, 518400, 0xf31d9e19
+0, 78, 78, 1, 518400, 0xcea1f9f8
+0, 79, 79, 1, 518400, 0xece1cd92
+0, 80, 80, 1, 518400, 0xa8d35347
+0, 81, 81, 1, 518400, 0xd8cd2228
+0, 82, 82, 1, 518400, 0xe040993a
+0, 83, 83, 1, 518400, 0xebc2b387
+0, 84, 84, 1, 518400, 0xc3e81e85
+0, 85, 85, 1, 518400, 0xcc507bc9
+0, 86, 86, 1, 518400, 0xb98c4902
+0, 87, 87, 1, 518400, 0x454a2a50
+0, 88, 88, 1, 518400, 0x1460c5dd
+0, 89, 89, 1, 518400, 0x37d7a99d
+0, 90, 90, 1, 518400, 0x1de7a047
+0, 91, 91, 1, 518400, 0xc7b83c21
+0, 92, 92, 1, 518400, 0xe06d1c9b
+0, 93, 93, 1, 518400, 0xfd8259b5
+0, 94, 94, 1, 518400, 0xc3df7e1a
+0, 95, 95, 1, 518400, 0x60c9ccec
+0, 96, 96, 1, 518400, 0x7d163c04
+0, 97, 97, 1, 518400, 0x8fc61e9d
+0, 98, 98, 1, 518400, 0xa5f520e6
+0, 99, 99, 1, 518400, 0x8d709ec1
+0, 100, 100, 1, 518400, 0xca2b6287
+0, 101, 101, 1, 518400, 0x8531bb18
+0, 102, 102, 1, 518400, 0x830f9187
+0, 103, 103, 1, 518400, 0x67c5d413
+0, 104, 104, 1, 518400, 0x428aeecd
+0, 105, 105, 1, 518400, 0xbf8e3448
+0, 106, 106, 1, 518400, 0x847389f0
+0, 107, 107, 1, 518400, 0x18d0b3ba
+0, 108, 108, 1, 518400, 0xbee957ea
+0, 109, 109, 1, 518400, 0x34941f3e
+0, 110, 110, 1, 518400, 0x850e0126
+0, 111, 111, 1, 518400, 0xab992409
+0, 112, 112, 1, 518400, 0xb7d8d01f
+0, 113, 113, 1, 518400, 0xe602576c
+0, 114, 114, 1, 518400, 0x22388048
+0, 115, 115, 1, 518400, 0x81ab9f4a
+0, 116, 116, 1, 518400, 0xc5977820
+0, 117, 117, 1, 518400, 0xc43f98bd
+0, 118, 118, 1, 518400, 0xfd5e6d12
+0, 119, 119, 1, 518400, 0xb9f12c73
+0, 120, 120, 1, 518400, 0x44be16b9
+0, 121, 121, 1, 518400, 0x32f0d9b9
+0, 122, 122, 1, 518400, 0x6e9c3113
+0, 123, 123, 1, 518400, 0x00618755
+0, 124, 124, 1, 518400, 0x080c9955
+0, 125, 125, 1, 518400, 0xb21d6096
+0, 126, 126, 1, 518400, 0x51502f54
+0, 127, 127, 1, 518400, 0xf062e38b
+0, 128, 128, 1, 518400, 0x66f05988
+0, 129, 129, 1, 518400, 0x37d569f1
+0, 130, 130, 1, 518400, 0xba78ae5e
+0, 131, 131, 1, 518400, 0x634a2d25
+0, 132, 132, 1, 518400, 0x283e5e4a
+0, 133, 133, 1, 518400, 0x9344d41c
+0, 134, 134, 1, 518400, 0x1fdb5c18
+0, 135, 135, 1, 518400, 0xd8139683
+0, 136, 136, 1, 518400, 0xd27f555e
+0, 137, 137, 1, 518400, 0x34ed517f
+0, 138, 138, 1, 518400, 0x1f55ad2d
+0, 139, 139, 1, 518400, 0x9a8bd368
+0, 140, 140, 1, 518400, 0x9726e3bf
+0, 141, 141, 1, 518400, 0xaf8945ee
+0, 142, 142, 1, 518400, 0x28c20699
+0, 143, 143, 1, 518400, 0x43e180c9
+0, 144, 144, 1, 518400, 0x0c88e592
+0, 145, 145, 1, 518400, 0xdcb8825e
+0, 146, 146, 1, 518400, 0x1ec09a5e
+0, 147, 147, 1, 518400, 0x149768b2
+0, 148, 148, 1, 518400, 0x1eeab153
+0, 149, 149, 1, 518400, 0x25666d6f
+0, 150, 150, 1, 518400, 0x691cad89
+0, 151, 151, 1, 518400, 0x2d9f8ced
+0, 152, 152, 1, 518400, 0xd80b768d
+0, 153, 153, 1, 518400, 0xe4f23a79
+0, 154, 154, 1, 518400, 0xd51d0150
+0, 155, 155, 1, 518400, 0x060156f4
+0, 156, 156, 1, 518400, 0x800720fb
+0, 157, 157, 1, 518400, 0x2a433b28
+0, 158, 158, 1, 518400, 0xffc79782
+0, 159, 159, 1, 518400, 0x31ba693b
+0, 160, 160, 1, 518400, 0xd13c8395
+0, 161, 161, 1, 518400, 0x07d9f752
+0, 162, 162, 1, 518400, 0xabb81043
+0, 163, 163, 1, 518400, 0xba0ee926
+0, 164, 164, 1, 518400, 0xa17e7ea9
+0, 165, 165, 1, 518400, 0x9d709e52
+0, 166, 166, 1, 518400, 0x7fa02633
+0, 167, 167, 1, 518400, 0x5cdc5217
+0, 168, 168, 1, 518400, 0x888be0b0
+0, 169, 169, 1, 518400, 0xe1bac436
+0, 170, 170, 1, 518400, 0xa479b1b8
+0, 171, 171, 1, 518400, 0xb61feb17
+0, 172, 172, 1, 518400, 0xa0745cd4
+0, 173, 173, 1, 518400, 0x871cffe5
+0, 174, 174, 1, 518400, 0x01f7deea
+0, 175, 175, 1, 518400, 0xdaf6f9f5
+0, 176, 176, 1, 518400, 0xfee4849c
+0, 177, 177, 1, 518400, 0xc3b9b428
+0, 178, 178, 1, 518400, 0x50b4b47f
+0, 179, 179, 1, 518400, 0xe8e58b82
+0, 180, 180, 1, 518400, 0x7c6f94e0
+0, 181, 181, 1, 518400, 0x0cfe7c08
+0, 182, 182, 1, 518400, 0xb2975466
+0, 183, 183, 1, 518400, 0xa1245de1
+0, 184, 184, 1, 518400, 0x46ae79b7
+0, 185, 185, 1, 518400, 0x8344a9b2
+0, 186, 186, 1, 518400, 0x1e805013
+0, 187, 187, 1, 518400, 0x19b61baf
+0, 188, 188, 1, 518400, 0xd018383b
+0, 189, 189, 1, 518400, 0xc9248d31
+0, 190, 190, 1, 518400, 0x838ad8ec
+0, 191, 191, 1, 518400, 0xa848824a
+0, 192, 192, 1, 518400, 0xc6a46ebd
+0, 193, 193, 1, 518400, 0x2a7c489c
+0, 194, 194, 1, 518400, 0xb1db6cef
+0, 195, 195, 1, 518400, 0xd24a999f
+0, 196, 196, 1, 518400, 0xce47efcd
+0, 197, 197, 1, 518400, 0xf3e058cb
+0, 198, 198, 1, 518400, 0x25d7f6e3
+0, 199, 199, 1, 518400, 0xe3daa12d
+0, 200, 200, 1, 518400, 0xb3de8475
+0, 201, 201, 1, 518400, 0x13efffdc
+0, 202, 202, 1, 518400, 0xfb37e048
+0, 203, 203, 1, 518400, 0x599a6daf
+0, 204, 204, 1, 518400, 0x84bf6814
+0, 205, 205, 1, 518400, 0x83c03a3f
+0, 206, 206, 1, 518400, 0x3a319ae9
+0, 207, 207, 1, 518400, 0x0af252c3
+0, 208, 208, 1, 518400, 0xeb8f2f43
+0, 209, 209, 1, 518400, 0x3bdcd421
+0, 210, 210, 1, 518400, 0x9107e0f2
+0, 211, 211, 1, 518400, 0x5f4fe3cf
+0, 212, 212, 1, 518400, 0x38f1e8ef
+0, 213, 213, 1, 518400, 0xb0359a0b
+0, 214, 214, 1, 518400, 0xdddd4645
+0, 215, 215, 1, 518400, 0xe14ffb0b
+0, 216, 216, 1, 518400, 0x34a31c96
+0, 217, 217, 1, 518400, 0x1f4406de
+0, 218, 218, 1, 518400, 0x042b82b6
+0, 219, 219, 1, 518400, 0x6af16a4d
+0, 220, 220, 1, 518400, 0x3cfba41a
+0, 221, 221, 1, 518400, 0xa054b6e8
+0, 222, 222, 1, 518400, 0x2d55721b
+0, 223, 223, 1, 518400, 0x55391f75
+0, 224, 224, 1, 518400, 0xc2d46fa6
+0, 225, 225, 1, 518400, 0x3a2576d9
+0, 226, 226, 1, 518400, 0xea9ea26d
+0, 227, 227, 1, 518400, 0xe2ec8962
+0, 228, 228, 1, 518400, 0x47568769
+0, 229, 229, 1, 518400, 0xc55e0186
+0, 230, 230, 1, 518400, 0x73a44453
+0, 231, 231, 1, 518400, 0xe36b1c77
+0, 232, 232, 1, 518400, 0x414db365
+0, 233, 233, 1, 518400, 0xfb25f7f6
+0, 234, 234, 1, 518400, 0x5b4847a7
+0, 235, 235, 1, 518400, 0xe96babf4
+0, 236, 236, 1, 518400, 0x15edbf63
+0, 237, 237, 1, 518400, 0x08a984c6
+0, 238, 238, 1, 518400, 0x47ec41af
+0, 239, 239, 1, 518400, 0x1912eaca
+0, 240, 240, 1, 518400, 0xe058b0cc
+0, 241, 241, 1, 518400, 0x03e9660b
+0, 242, 242, 1, 518400, 0x85fea285
+0, 243, 243, 1, 518400, 0xdf02bdd6
+0, 244, 244, 1, 518400, 0xad3e6849
+0, 245, 245, 1, 518400, 0x0ad866b6
+0, 246, 246, 1, 518400, 0x1b994f78
+0, 247, 247, 1, 518400, 0xc5916af5
+0, 248, 248, 1, 518400, 0x5f66adeb
+0, 249, 249, 1, 518400, 0x1c9f96a1
+0, 250, 250, 1, 518400, 0xfc390832
+0, 251, 251, 1, 518400, 0x0352ff56
+0, 252, 252, 1, 518400, 0x6803c8f4
+0, 253, 253, 1, 518400, 0x0f0b8686
+0, 254, 254, 1, 518400, 0xdc3a5bce
+0, 255, 255, 1, 518400, 0x96dd28d1
+0, 256, 256, 1, 518400, 0x51d56824
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-nl1_sony_d b/ffmpeg1/tests/ref/fate/h264-conformance-nl1_sony_d
new file mode 100644
index 0000000..98a5673
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-nl1_sony_d
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xc805351d
+0, 1, 1, 1, 38016, 0x3809fec3
+0, 2, 2, 1, 38016, 0xf698ce3c
+0, 3, 3, 1, 38016, 0x7e3da603
+0, 4, 4, 1, 38016, 0x68b07d81
+0, 5, 5, 1, 38016, 0xd91f717a
+0, 6, 6, 1, 38016, 0x48885dd6
+0, 7, 7, 1, 38016, 0x27e64e8e
+0, 8, 8, 1, 38016, 0x955835ce
+0, 9, 9, 1, 38016, 0xf19940a0
+0, 10, 10, 1, 38016, 0x9a1c51e4
+0, 11, 11, 1, 38016, 0xf59373af
+0, 12, 12, 1, 38016, 0x5d6c7d06
+0, 13, 13, 1, 38016, 0x32fca533
+0, 14, 14, 1, 38016, 0x37e69987
+0, 15, 15, 1, 38016, 0x96929e05
+0, 16, 16, 1, 38016, 0xee37a1f9
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-nl2_sony_h b/ffmpeg1/tests/ref/fate/h264-conformance-nl2_sony_h
new file mode 100644
index 0000000..73eb858
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-nl2_sony_h
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xc805351d
+0, 1, 1, 1, 38016, 0x320510a8
+0, 2, 2, 1, 38016, 0x3ef6e4c6
+0, 3, 3, 1, 38016, 0x3b94c5e0
+0, 4, 4, 1, 38016, 0x4be4a689
+0, 5, 5, 1, 38016, 0x70919210
+0, 6, 6, 1, 38016, 0x78a07b5a
+0, 7, 7, 1, 38016, 0x8bd86efc
+0, 8, 8, 1, 38016, 0xe3976cab
+0, 9, 9, 1, 38016, 0x77fa735e
+0, 10, 10, 1, 38016, 0x62488adb
+0, 11, 11, 1, 38016, 0x5b07a6a4
+0, 12, 12, 1, 38016, 0x7058b15f
+0, 13, 13, 1, 38016, 0xa22dc9e2
+0, 14, 14, 1, 38016, 0xc9d5cae3
+0, 15, 15, 1, 38016, 0x16cbd6e1
+0, 16, 16, 1, 38016, 0x4b23d9e9
+0, 17, 17, 1, 38016, 0x96f7d798
+0, 18, 18, 1, 38016, 0xdbcdcfdd
+0, 19, 19, 1, 38016, 0x9314b847
+0, 20, 20, 1, 38016, 0x0a209c28
+0, 21, 21, 1, 38016, 0x6c757322
+0, 22, 22, 1, 38016, 0x3d1a6376
+0, 23, 23, 1, 38016, 0x155f5df7
+0, 24, 24, 1, 38016, 0xd4446441
+0, 25, 25, 1, 38016, 0xe1006713
+0, 26, 26, 1, 38016, 0x5d226a3e
+0, 27, 27, 1, 38016, 0xe839790c
+0, 28, 28, 1, 38016, 0xa28c8b9a
+0, 29, 29, 1, 38016, 0xde469f7a
+0, 30, 30, 1, 38016, 0xf800b7ad
+0, 31, 31, 1, 38016, 0xf2f9ccac
+0, 32, 32, 1, 38016, 0x60feeb52
+0, 33, 33, 1, 38016, 0xad39fd4f
+0, 34, 34, 1, 38016, 0x4075fce6
+0, 35, 35, 1, 38016, 0x5f2f036e
+0, 36, 36, 1, 38016, 0x3e180450
+0, 37, 37, 1, 38016, 0xd806fc04
+0, 38, 38, 1, 38016, 0x3f15fbc6
+0, 39, 39, 1, 38016, 0xb881faa4
+0, 40, 40, 1, 38016, 0xf1cafdc8
+0, 41, 41, 1, 38016, 0xd881f881
+0, 42, 42, 1, 38016, 0x6314fdc8
+0, 43, 43, 1, 38016, 0x8fa6f0d3
+0, 44, 44, 1, 38016, 0x90d0f40d
+0, 45, 45, 1, 38016, 0x1d30ee93
+0, 46, 46, 1, 38016, 0x87f6ecca
+0, 47, 47, 1, 38016, 0xca9ae712
+0, 48, 48, 1, 38016, 0x02c6eb47
+0, 49, 49, 1, 38016, 0xc263f492
+0, 50, 50, 1, 38016, 0x717def51
+0, 51, 51, 1, 38016, 0x0d3af240
+0, 52, 52, 1, 38016, 0xc232ea7d
+0, 53, 53, 1, 38016, 0x3c41f195
+0, 54, 54, 1, 38016, 0x5d77f7fb
+0, 55, 55, 1, 38016, 0x2901fb90
+0, 56, 56, 1, 38016, 0x3b35033e
+0, 57, 57, 1, 38016, 0xca4d034f
+0, 58, 58, 1, 38016, 0x1e730e22
+0, 59, 59, 1, 38016, 0x69b60d52
+0, 60, 60, 1, 38016, 0xe50107bc
+0, 61, 61, 1, 38016, 0x44b6f25f
+0, 62, 62, 1, 38016, 0x222ebc66
+0, 63, 63, 1, 38016, 0x165b7bca
+0, 64, 64, 1, 38016, 0x12a37e44
+0, 65, 65, 1, 38016, 0xcce9a1dc
+0, 66, 66, 1, 38016, 0x273dd1a9
+0, 67, 67, 1, 38016, 0x72b00e90
+0, 68, 68, 1, 38016, 0x449a4fa6
+0, 69, 69, 1, 38016, 0x203d8582
+0, 70, 70, 1, 38016, 0x3fa7aaeb
+0, 71, 71, 1, 38016, 0x0b47d491
+0, 72, 72, 1, 38016, 0x1fa70639
+0, 73, 73, 1, 38016, 0xf9fe391e
+0, 74, 74, 1, 38016, 0x91c6786c
+0, 75, 75, 1, 38016, 0x7ab99bb2
+0, 76, 76, 1, 38016, 0x73f2c0f5
+0, 77, 77, 1, 38016, 0xcffad748
+0, 78, 78, 1, 38016, 0xe2b0ee34
+0, 79, 79, 1, 38016, 0x6025f6d6
+0, 80, 80, 1, 38016, 0xd722017c
+0, 81, 81, 1, 38016, 0x321f0c24
+0, 82, 82, 1, 38016, 0x336f0e81
+0, 83, 83, 1, 38016, 0x783a012f
+0, 84, 84, 1, 38016, 0x134cf484
+0, 85, 85, 1, 38016, 0xec4bf2db
+0, 86, 86, 1, 38016, 0xb481012e
+0, 87, 87, 1, 38016, 0x76ff026c
+0, 88, 88, 1, 38016, 0xaf3b102a
+0, 89, 89, 1, 38016, 0x2eaf0bd6
+0, 90, 90, 1, 38016, 0x39b8f833
+0, 91, 91, 1, 38016, 0xe928d7ea
+0, 92, 92, 1, 38016, 0xbe7ac2f8
+0, 93, 93, 1, 38016, 0x3683b5c4
+0, 94, 94, 1, 38016, 0xb3559d1c
+0, 95, 95, 1, 38016, 0x73fb9f71
+0, 96, 96, 1, 38016, 0x3e97b5aa
+0, 97, 97, 1, 38016, 0x0c9dc525
+0, 98, 98, 1, 38016, 0xecead941
+0, 99, 99, 1, 38016, 0x4999e247
+0, 100, 100, 1, 38016, 0x11ddea7c
+0, 101, 101, 1, 38016, 0x4882cf24
+0, 102, 102, 1, 38016, 0xae9ac0c6
+0, 103, 103, 1, 38016, 0x4f88b589
+0, 104, 104, 1, 38016, 0xc677d43f
+0, 105, 105, 1, 38016, 0x5f46f219
+0, 106, 106, 1, 38016, 0x5c1ffa13
+0, 107, 107, 1, 38016, 0x162e11a3
+0, 108, 108, 1, 38016, 0xd0b631d4
+0, 109, 109, 1, 38016, 0x7133441a
+0, 110, 110, 1, 38016, 0xbb085604
+0, 111, 111, 1, 38016, 0x54a960d2
+0, 112, 112, 1, 38016, 0xc0b468e7
+0, 113, 113, 1, 38016, 0xe1ef485a
+0, 114, 114, 1, 38016, 0x025f27e6
+0, 115, 115, 1, 38016, 0x14da215e
+0, 116, 116, 1, 38016, 0xe8f2394a
+0, 117, 117, 1, 38016, 0x7c7a44e8
+0, 118, 118, 1, 38016, 0xdb2e54c3
+0, 119, 119, 1, 38016, 0xae5c5eee
+0, 120, 120, 1, 38016, 0x74ae643f
+0, 121, 121, 1, 38016, 0x70146b61
+0, 122, 122, 1, 38016, 0x545c5265
+0, 123, 123, 1, 38016, 0xe5a92556
+0, 124, 124, 1, 38016, 0xf19e04e8
+0, 125, 125, 1, 38016, 0xda51e574
+0, 126, 126, 1, 38016, 0x4c17ded9
+0, 127, 127, 1, 38016, 0x51fce958
+0, 128, 128, 1, 38016, 0xae96fd16
+0, 129, 129, 1, 38016, 0x7a610e32
+0, 130, 130, 1, 38016, 0x06f31a06
+0, 131, 131, 1, 38016, 0x658a1998
+0, 132, 132, 1, 38016, 0xda370e80
+0, 133, 133, 1, 38016, 0xe7a00dca
+0, 134, 134, 1, 38016, 0xb07a0810
+0, 135, 135, 1, 38016, 0x193c01a3
+0, 136, 136, 1, 38016, 0xa700fd8f
+0, 137, 137, 1, 38016, 0x8c14ed46
+0, 138, 138, 1, 38016, 0xcd81dc72
+0, 139, 139, 1, 38016, 0x67acd3bb
+0, 140, 140, 1, 38016, 0x662cc586
+0, 141, 141, 1, 38016, 0xa09ac106
+0, 142, 142, 1, 38016, 0xf1abab73
+0, 143, 143, 1, 38016, 0xfd9ba674
+0, 144, 144, 1, 38016, 0x7686ae41
+0, 145, 145, 1, 38016, 0x7185a2e9
+0, 146, 146, 1, 38016, 0x2b5898da
+0, 147, 147, 1, 38016, 0x3cdd6c42
+0, 148, 148, 1, 38016, 0x0299414d
+0, 149, 149, 1, 38016, 0x2b851a52
+0, 150, 150, 1, 38016, 0x01c8ff7b
+0, 151, 151, 1, 38016, 0x55d3f715
+0, 152, 152, 1, 38016, 0xbe5ff38e
+0, 153, 153, 1, 38016, 0xc31fe232
+0, 154, 154, 1, 38016, 0x3201dc26
+0, 155, 155, 1, 38016, 0xf8feed84
+0, 156, 156, 1, 38016, 0x0a471009
+0, 157, 157, 1, 38016, 0xef0d351d
+0, 158, 158, 1, 38016, 0x79de6f09
+0, 159, 159, 1, 38016, 0xa5039be4
+0, 160, 160, 1, 38016, 0x4e1cafa6
+0, 161, 161, 1, 38016, 0x2a71aea1
+0, 162, 162, 1, 38016, 0xa99e9d08
+0, 163, 163, 1, 38016, 0x80aa8a6a
+0, 164, 164, 1, 38016, 0x9f287bb9
+0, 165, 165, 1, 38016, 0x2ddc5ef7
+0, 166, 166, 1, 38016, 0x31843470
+0, 167, 167, 1, 38016, 0x08f3074e
+0, 168, 168, 1, 38016, 0xa639e58d
+0, 169, 169, 1, 38016, 0xcf31d61f
+0, 170, 170, 1, 38016, 0x1ac7e986
+0, 171, 171, 1, 38016, 0x9bbbfe98
+0, 172, 172, 1, 38016, 0x3e0d0ce1
+0, 173, 173, 1, 38016, 0x53240e4c
+0, 174, 174, 1, 38016, 0xda6bf0d5
+0, 175, 175, 1, 38016, 0x1701c355
+0, 176, 176, 1, 38016, 0x572c8b1d
+0, 177, 177, 1, 38016, 0x1f4f5a14
+0, 178, 178, 1, 38016, 0x0fea3e61
+0, 179, 179, 1, 38016, 0xa71c29ed
+0, 180, 180, 1, 38016, 0xd3b218fb
+0, 181, 181, 1, 38016, 0x228e05f8
+0, 182, 182, 1, 38016, 0x4b8bfa9e
+0, 183, 183, 1, 38016, 0x13d505ab
+0, 184, 184, 1, 38016, 0xa58808b3
+0, 185, 185, 1, 38016, 0x4b2a1329
+0, 186, 186, 1, 38016, 0x13c63567
+0, 187, 187, 1, 38016, 0x4ece56f8
+0, 188, 188, 1, 38016, 0x934f67c3
+0, 189, 189, 1, 38016, 0x2b606f56
+0, 190, 190, 1, 38016, 0xba481841
+0, 191, 191, 1, 38016, 0x1488ea11
+0, 192, 192, 1, 38016, 0x066cefeb
+0, 193, 193, 1, 38016, 0xb23105b7
+0, 194, 194, 1, 38016, 0x64312267
+0, 195, 195, 1, 38016, 0xd0cf6a37
+0, 196, 196, 1, 38016, 0xb5a482c5
+0, 197, 197, 1, 38016, 0x61289957
+0, 198, 198, 1, 38016, 0x26a6ba47
+0, 199, 199, 1, 38016, 0xb771d25e
+0, 200, 200, 1, 38016, 0xedb5de8d
+0, 201, 201, 1, 38016, 0x4fd2e829
+0, 202, 202, 1, 38016, 0xbef3ef1f
+0, 203, 203, 1, 38016, 0x5e0ef333
+0, 204, 204, 1, 38016, 0x5081f460
+0, 205, 205, 1, 38016, 0x6798fe84
+0, 206, 206, 1, 38016, 0x28ce0078
+0, 207, 207, 1, 38016, 0x9fb4f6a1
+0, 208, 208, 1, 38016, 0x0a02e822
+0, 209, 209, 1, 38016, 0x5615d41e
+0, 210, 210, 1, 38016, 0x1a3bc214
+0, 211, 211, 1, 38016, 0x5333b48a
+0, 212, 212, 1, 38016, 0x646da3c9
+0, 213, 213, 1, 38016, 0x024fa1b1
+0, 214, 214, 1, 38016, 0x7b4892de
+0, 215, 215, 1, 38016, 0x10ab8953
+0, 216, 216, 1, 38016, 0x8aa28410
+0, 217, 217, 1, 38016, 0xcbd185be
+0, 218, 218, 1, 38016, 0xfa49818a
+0, 219, 219, 1, 38016, 0x0f7a82d5
+0, 220, 220, 1, 38016, 0xb86f716d
+0, 221, 221, 1, 38016, 0xd22a6050
+0, 222, 222, 1, 38016, 0x89a4520e
+0, 223, 223, 1, 38016, 0x8a1147cf
+0, 224, 224, 1, 38016, 0xa02a4196
+0, 225, 225, 1, 38016, 0xece240f7
+0, 226, 226, 1, 38016, 0xa5b940ff
+0, 227, 227, 1, 38016, 0x9b274ce8
+0, 228, 228, 1, 38016, 0xba0b68c7
+0, 229, 229, 1, 38016, 0x39f28a91
+0, 230, 230, 1, 38016, 0xc070af11
+0, 231, 231, 1, 38016, 0x2a26d309
+0, 232, 232, 1, 38016, 0xfa9afe77
+0, 233, 233, 1, 38016, 0xe2f22ebf
+0, 234, 234, 1, 38016, 0xf8ee4a45
+0, 235, 235, 1, 38016, 0x14186047
+0, 236, 236, 1, 38016, 0xe3407152
+0, 237, 237, 1, 38016, 0xcef578b8
+0, 238, 238, 1, 38016, 0x3fc06964
+0, 239, 239, 1, 38016, 0xa7da3ade
+0, 240, 240, 1, 38016, 0xa46d1b2b
+0, 241, 241, 1, 38016, 0x14abfac5
+0, 242, 242, 1, 38016, 0xbffbf269
+0, 243, 243, 1, 38016, 0x1d9c3ade
+0, 244, 244, 1, 38016, 0xc9c39c46
+0, 245, 245, 1, 38016, 0x824afa80
+0, 246, 246, 1, 38016, 0xc76611b8
+0, 247, 247, 1, 38016, 0x31fce0d6
+0, 248, 248, 1, 38016, 0x6740a03f
+0, 249, 249, 1, 38016, 0x91d63134
+0, 250, 250, 1, 38016, 0xb0f6cc86
+0, 251, 251, 1, 38016, 0x3d878a14
+0, 252, 252, 1, 38016, 0x1d008063
+0, 253, 253, 1, 38016, 0xe47cd260
+0, 254, 254, 1, 38016, 0x56503400
+0, 255, 255, 1, 38016, 0xb201dc61
+0, 256, 256, 1, 38016, 0xba42de1b
+0, 257, 257, 1, 38016, 0x9c115ccb
+0, 258, 258, 1, 38016, 0xe9be47d9
+0, 259, 259, 1, 38016, 0xa7684b02
+0, 260, 260, 1, 38016, 0xb4d74f42
+0, 261, 261, 1, 38016, 0xbe006415
+0, 262, 262, 1, 38016, 0xa30c7858
+0, 263, 263, 1, 38016, 0x838f7f47
+0, 264, 264, 1, 38016, 0xc1c28346
+0, 265, 265, 1, 38016, 0xc7737219
+0, 266, 266, 1, 38016, 0xa19a5fd5
+0, 267, 267, 1, 38016, 0x56a64b00
+0, 268, 268, 1, 38016, 0x6b672497
+0, 269, 269, 1, 38016, 0x4cfafbe2
+0, 270, 270, 1, 38016, 0xbe53d51b
+0, 271, 271, 1, 38016, 0x4a86acc7
+0, 272, 272, 1, 38016, 0x297288b0
+0, 273, 273, 1, 38016, 0xd4bd2ec9
+0, 274, 274, 1, 38016, 0x3697e2f6
+0, 275, 275, 1, 38016, 0xa493d289
+0, 276, 276, 1, 38016, 0xb2b9e324
+0, 277, 277, 1, 38016, 0x998de275
+0, 278, 278, 1, 38016, 0x422a10cb
+0, 279, 279, 1, 38016, 0x845383b4
+0, 280, 280, 1, 38016, 0xb4a72107
+0, 281, 281, 1, 38016, 0x0e0eef6b
+0, 282, 282, 1, 38016, 0xbd8bbd01
+0, 283, 283, 1, 38016, 0x2f217c45
+0, 284, 284, 1, 38016, 0xb3515be7
+0, 285, 285, 1, 38016, 0xb633a542
+0, 286, 286, 1, 38016, 0x7e7a7086
+0, 287, 287, 1, 38016, 0xef64a834
+0, 288, 288, 1, 38016, 0x7b81bdad
+0, 289, 289, 1, 38016, 0x0fc7a7d2
+0, 290, 290, 1, 38016, 0x9111351d
+0, 291, 291, 1, 38016, 0x161c43dc
+0, 292, 292, 1, 38016, 0x945fce2a
+0, 293, 293, 1, 38016, 0x48780c38
+0, 294, 294, 1, 38016, 0x28904d31
+0, 295, 295, 1, 38016, 0x140d47d5
+0, 296, 296, 1, 38016, 0x1f5e257c
+0, 297, 297, 1, 38016, 0xb36a159c
+0, 298, 298, 1, 38016, 0x85ad2465
+0, 299, 299, 1, 38016, 0x973649e0
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-nl3_sva_e b/ffmpeg1/tests/ref/fate/h264-conformance-nl3_sva_e
new file mode 100644
index 0000000..a4d6db6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-nl3_sva_e
@@ -0,0 +1,34 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x2fad15e2
+0, 1, 1, 1, 38016, 0x7e391566
+0, 2, 2, 1, 38016, 0x954001d4
+0, 3, 3, 1, 38016, 0xe5ae2057
+0, 4, 4, 1, 38016, 0xface3d5e
+0, 5, 5, 1, 38016, 0x2b2361cd
+0, 6, 6, 1, 38016, 0x5e906b5a
+0, 7, 7, 1, 38016, 0xa46398e5
+0, 8, 8, 1, 38016, 0x2a3ea141
+0, 9, 9, 1, 38016, 0xa2a0beac
+0, 10, 10, 1, 38016, 0x4830ab90
+0, 11, 11, 1, 38016, 0xdd53d0fc
+0, 12, 12, 1, 38016, 0x4d71ae7d
+0, 13, 13, 1, 38016, 0x2290a25e
+0, 14, 14, 1, 38016, 0x8baa6cca
+0, 15, 15, 1, 38016, 0xc3e99458
+0, 16, 16, 1, 38016, 0x5c608374
+0, 17, 17, 1, 38016, 0x6443aa6c
+0, 18, 18, 1, 38016, 0x1ef7991c
+0, 19, 19, 1, 38016, 0xd246b49b
+0, 20, 20, 1, 38016, 0xe181a026
+0, 21, 21, 1, 38016, 0x878db497
+0, 22, 22, 1, 38016, 0x071079c2
+0, 23, 23, 1, 38016, 0xa94a62fa
+0, 24, 24, 1, 38016, 0xa9da278f
+0, 25, 25, 1, 38016, 0x247b3195
+0, 26, 26, 1, 38016, 0xd7f81a90
+0, 27, 27, 1, 38016, 0x9c303cdc
+0, 28, 28, 1, 38016, 0x646e42a1
+0, 29, 29, 1, 38016, 0x474a613d
+0, 30, 30, 1, 38016, 0x63255932
+0, 31, 31, 1, 38016, 0x2f0569e4
+0, 32, 32, 1, 38016, 0x1f525192
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-nlmq1_jvc_c b/ffmpeg1/tests/ref/fate/h264-conformance-nlmq1_jvc_c
new file mode 100644
index 0000000..3030125
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-nlmq1_jvc_c
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xde1a2194
+0, 1, 1, 1, 38016, 0x2957f3e5
+0, 2, 2, 1, 38016, 0x9df4c6cf
+0, 3, 3, 1, 38016, 0xf3db9f2d
+0, 4, 4, 1, 38016, 0xd97474db
+0, 5, 5, 1, 38016, 0x8e3065fa
+0, 6, 6, 1, 38016, 0xc0be49b1
+0, 7, 7, 1, 38016, 0xa69c3f06
+0, 8, 8, 1, 38016, 0x96bb2e92
+0, 9, 9, 1, 38016, 0x1ca232c1
+0, 10, 10, 1, 38016, 0x3a06409d
+0, 11, 11, 1, 38016, 0xcdce66e5
+0, 12, 12, 1, 38016, 0x96387681
+0, 13, 13, 1, 38016, 0xd0309561
+0, 14, 14, 1, 38016, 0xb7b08c49
+0, 15, 15, 1, 38016, 0xf5709355
+0, 16, 16, 1, 38016, 0x3c1594ea
+0, 17, 17, 1, 38016, 0x9be48a2c
+0, 18, 18, 1, 38016, 0xdf7279c3
+0, 19, 19, 1, 38016, 0xe3b660f3
+0, 20, 20, 1, 38016, 0xd72a3cbe
+0, 21, 21, 1, 38016, 0x06a117d1
+0, 22, 22, 1, 38016, 0x8f5501b7
+0, 23, 23, 1, 38016, 0x8f5afd81
+0, 24, 24, 1, 38016, 0x98ecfd2b
+0, 25, 25, 1, 38016, 0xd0b103bf
+0, 26, 26, 1, 38016, 0xb9a7035c
+0, 27, 27, 1, 38016, 0x866c12c7
+0, 28, 28, 1, 38016, 0x3a0329f3
+0, 29, 29, 1, 38016, 0x725141c1
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-nlmq2_jvc_c b/ffmpeg1/tests/ref/fate/h264-conformance-nlmq2_jvc_c
new file mode 100644
index 0000000..5258eb2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-nlmq2_jvc_c
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xde1a2194
+0, 1, 1, 1, 38016, 0x8b6cf842
+0, 2, 2, 1, 38016, 0x6dc7c88b
+0, 3, 3, 1, 38016, 0xdaefa55d
+0, 4, 4, 1, 38016, 0x61b77631
+0, 5, 5, 1, 38016, 0xfd096789
+0, 6, 6, 1, 38016, 0x69204c43
+0, 7, 7, 1, 38016, 0x2c8e40c0
+0, 8, 8, 1, 38016, 0xa4f33298
+0, 9, 9, 1, 38016, 0x67193923
+0, 10, 10, 1, 38016, 0x0b634893
+0, 11, 11, 1, 38016, 0x7ced69e1
+0, 12, 12, 1, 38016, 0xc20179dc
+0, 13, 13, 1, 38016, 0x9d4d94b9
+0, 14, 14, 1, 38016, 0xf4158e1a
+0, 15, 15, 1, 38016, 0xf24b986a
+0, 16, 16, 1, 38016, 0x3fd39baf
+0, 17, 17, 1, 38016, 0xc0f991b9
+0, 18, 18, 1, 38016, 0xe3a98216
+0, 19, 19, 1, 38016, 0x37246882
+0, 20, 20, 1, 38016, 0xad5745b0
+0, 21, 21, 1, 38016, 0x42831ea7
+0, 22, 22, 1, 38016, 0x14530a1b
+0, 23, 23, 1, 38016, 0x1a9f03a8
+0, 24, 24, 1, 38016, 0x34f905f3
+0, 25, 25, 1, 38016, 0x94300e93
+0, 26, 26, 1, 38016, 0xcda00be5
+0, 27, 27, 1, 38016, 0x607516d6
+0, 28, 28, 1, 38016, 0xabb02c3b
+0, 29, 29, 1, 38016, 0xcf3746bf
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-nrf_mw_e b/ffmpeg1/tests/ref/fate/h264-conformance-nrf_mw_e
new file mode 100644
index 0000000..ee5f719
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-nrf_mw_e
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x3ae838ee
+0, 1, 1, 1, 38016, 0x9ed7e141
+0, 2, 2, 1, 38016, 0x354e83ed
+0, 3, 3, 1, 38016, 0x96754ff4
+0, 4, 4, 1, 38016, 0x2a013a3c
+0, 5, 5, 1, 38016, 0x57ab4cf2
+0, 6, 6, 1, 38016, 0x55037493
+0, 7, 7, 1, 38016, 0x910b8920
+0, 8, 8, 1, 38016, 0x457785a1
+0, 9, 9, 1, 38016, 0x9d6864ad
+0, 10, 10, 1, 38016, 0xe80131ce
+0, 11, 11, 1, 38016, 0x4cd7f487
+0, 12, 12, 1, 38016, 0x030df59a
+0, 13, 13, 1, 38016, 0x6ea60426
+0, 14, 14, 1, 38016, 0x35311f71
+0, 15, 15, 1, 38016, 0x731450d8
+0, 16, 16, 1, 38016, 0x29368c47
+0, 17, 17, 1, 38016, 0x006292b0
+0, 18, 18, 1, 38016, 0x961493b1
+0, 19, 19, 1, 38016, 0xb2e99a07
+0, 20, 20, 1, 38016, 0xa52f98be
+0, 21, 21, 1, 38016, 0x8c0a8f70
+0, 22, 22, 1, 38016, 0xdc5b992c
+0, 23, 23, 1, 38016, 0xa4a49787
+0, 24, 24, 1, 38016, 0x7a959608
+0, 25, 25, 1, 38016, 0xc9619c0a
+0, 26, 26, 1, 38016, 0xb5519a7e
+0, 27, 27, 1, 38016, 0x05ea9d9b
+0, 28, 28, 1, 38016, 0xf73fac90
+0, 29, 29, 1, 38016, 0x0cd4b3d8
+0, 30, 30, 1, 38016, 0xb3119df6
+0, 31, 31, 1, 38016, 0xb8db5d78
+0, 32, 32, 1, 38016, 0xfb633ee0
+0, 33, 33, 1, 38016, 0xed1c8935
+0, 34, 34, 1, 38016, 0x421fedd1
+0, 35, 35, 1, 38016, 0xa4b84473
+0, 36, 36, 1, 38016, 0x25598f81
+0, 37, 37, 1, 38016, 0x92de1dd7
+0, 38, 38, 1, 38016, 0x776b68c5
+0, 39, 39, 1, 38016, 0x07b49a7a
+0, 40, 40, 1, 38016, 0x883ccd79
+0, 41, 41, 1, 38016, 0xb351e0fc
+0, 42, 42, 1, 38016, 0x5577d53b
+0, 43, 43, 1, 38016, 0xffd9ef7d
+0, 44, 44, 1, 38016, 0x38c1fc8b
+0, 45, 45, 1, 38016, 0xb9abf3e6
+0, 46, 46, 1, 38016, 0x2191b0d6
+0, 47, 47, 1, 38016, 0x313397a3
+0, 48, 48, 1, 38016, 0x96bca02a
+0, 49, 49, 1, 38016, 0xd39ac859
+0, 50, 50, 1, 38016, 0xfb31e18f
+0, 51, 51, 1, 38016, 0xe182b468
+0, 52, 52, 1, 38016, 0x8af7dfd6
+0, 53, 53, 1, 38016, 0x7c19fd4f
+0, 54, 54, 1, 38016, 0xa8373bae
+0, 55, 55, 1, 38016, 0x91055016
+0, 56, 56, 1, 38016, 0x432b5d52
+0, 57, 57, 1, 38016, 0x81301b3f
+0, 58, 58, 1, 38016, 0x0d6c2367
+0, 59, 59, 1, 38016, 0xf0023ac2
+0, 60, 60, 1, 38016, 0xb9f33791
+0, 61, 61, 1, 38016, 0xdab62201
+0, 62, 62, 1, 38016, 0xfab7cfdd
+0, 63, 63, 1, 38016, 0xfbb2a78f
+0, 64, 64, 1, 38016, 0xe317c687
+0, 65, 65, 1, 38016, 0xe4f5d939
+0, 66, 66, 1, 38016, 0x022dda5b
+0, 67, 67, 1, 38016, 0x8b5cdf2c
+0, 68, 68, 1, 38016, 0x3dfec699
+0, 69, 69, 1, 38016, 0x9484a75c
+0, 70, 70, 1, 38016, 0x763a911b
+0, 71, 71, 1, 38016, 0xb1fb7cc8
+0, 72, 72, 1, 38016, 0x56bf7f7b
+0, 73, 73, 1, 38016, 0x87567e3e
+0, 74, 74, 1, 38016, 0x1aa1209e
+0, 75, 75, 1, 38016, 0xe2b0da25
+0, 76, 76, 1, 38016, 0xd250c706
+0, 77, 77, 1, 38016, 0xbea1be9d
+0, 78, 78, 1, 38016, 0x02f0e6fb
+0, 79, 79, 1, 38016, 0xd18d382b
+0, 80, 80, 1, 38016, 0xd0fa57f3
+0, 81, 81, 1, 38016, 0x873b43e3
+0, 82, 82, 1, 38016, 0x75b33855
+0, 83, 83, 1, 38016, 0xcabbe932
+0, 84, 84, 1, 38016, 0xeded9c0f
+0, 85, 85, 1, 38016, 0x86b0b9ec
+0, 86, 86, 1, 38016, 0xb461e10d
+0, 87, 87, 1, 38016, 0x6702dbbe
+0, 88, 88, 1, 38016, 0xb3e47c8c
+0, 89, 89, 1, 38016, 0xd71333ee
+0, 90, 90, 1, 38016, 0x15c3f15d
+0, 91, 91, 1, 38016, 0xa7e6bb4e
+0, 92, 92, 1, 38016, 0x5d5bd15b
+0, 93, 93, 1, 38016, 0x2476f6b0
+0, 94, 94, 1, 38016, 0xbee21b05
+0, 95, 95, 1, 38016, 0x8172d7b9
+0, 96, 96, 1, 38016, 0x4893b4b2
+0, 97, 97, 1, 38016, 0xfda7ed23
+0, 98, 98, 1, 38016, 0xc1ff4cb4
+0, 99, 99, 1, 38016, 0x9fdc8cc4
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_1_b b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
new file mode 100644
index 0000000..8512102
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
@@ -0,0 +1,16 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_2_b b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
new file mode 100644
index 0000000..5808141
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
@@ -0,0 +1,16 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_3_b b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
new file mode 100644
index 0000000..a572030
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
@@ -0,0 +1,16 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2 b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
new file mode 100644
index 0000000..d1a347f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
@@ -0,0 +1,16 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_paff_2r b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
new file mode 100644
index 0000000..f2bf06f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
@@ -0,0 +1,16 @@
+#tb 0: 1/25
+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/ffmpeg1/tests/ref/fate/h264-conformance-sl1_sva_b b/ffmpeg1/tests/ref/fate/h264-conformance-sl1_sva_b
new file mode 100644
index 0000000..a2f16b4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sl1_sva_b
@@ -0,0 +1,34 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x666c110c
+0, 1, 1, 1, 38016, 0xc87421f6
+0, 2, 2, 1, 38016, 0x1b74033d
+0, 3, 3, 1, 38016, 0x21fe21c7
+0, 4, 4, 1, 38016, 0x8f03321e
+0, 5, 5, 1, 38016, 0xdbd46290
+0, 6, 6, 1, 38016, 0x316a57d4
+0, 7, 7, 1, 38016, 0x0a688f29
+0, 8, 8, 1, 38016, 0x8bb890d5
+0, 9, 9, 1, 38016, 0x4210c0a4
+0, 10, 10, 1, 38016, 0x45f6b0e7
+0, 11, 11, 1, 38016, 0x5feed346
+0, 12, 12, 1, 38016, 0x22aea97e
+0, 13, 13, 1, 38016, 0x8d96a049
+0, 14, 14, 1, 38016, 0xe623654c
+0, 15, 15, 1, 38016, 0xccd17c75
+0, 16, 16, 1, 38016, 0x32ca7712
+0, 17, 17, 1, 38016, 0x2fe49df2
+0, 18, 18, 1, 38016, 0x6ee49068
+0, 19, 19, 1, 38016, 0x74a0ba36
+0, 20, 20, 1, 38016, 0x5079a13c
+0, 21, 21, 1, 38016, 0xfd20a991
+0, 22, 22, 1, 38016, 0xfc987386
+0, 23, 23, 1, 38016, 0xa1f66a0b
+0, 24, 24, 1, 38016, 0xd7112683
+0, 25, 25, 1, 38016, 0xb60b3784
+0, 26, 26, 1, 38016, 0x9e621ca3
+0, 27, 27, 1, 38016, 0xd9264308
+0, 28, 28, 1, 38016, 0x00db43fb
+0, 29, 29, 1, 38016, 0x665a5b34
+0, 30, 30, 1, 38016, 0x582050ce
+0, 31, 31, 1, 38016, 0x52b95de5
+0, 32, 32, 1, 38016, 0x95d8445e
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-sva_ba1_b b/ffmpeg1/tests/ref/fate/h264-conformance-sva_ba1_b
new file mode 100644
index 0000000..cc55ac9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sva_ba1_b
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x359316a1
+0, 1, 1, 1, 38016, 0xd5fafa54
+0, 2, 2, 1, 38016, 0xea99e9be
+0, 3, 3, 1, 38016, 0xd680f3db
+0, 4, 4, 1, 38016, 0x8b771545
+0, 5, 5, 1, 38016, 0xff8c3073
+0, 6, 6, 1, 38016, 0x543d403a
+0, 7, 7, 1, 38016, 0xd2136010
+0, 8, 8, 1, 38016, 0x11d17cd3
+0, 9, 9, 1, 38016, 0xd8c69527
+0, 10, 10, 1, 38016, 0x070d9a08
+0, 11, 11, 1, 38016, 0xc8e3b21d
+0, 12, 12, 1, 38016, 0xe903b09e
+0, 13, 13, 1, 38016, 0x30ba9ece
+0, 14, 14, 1, 38016, 0xb32482a4
+0, 15, 15, 1, 38016, 0x56cf8ea3
+0, 16, 16, 1, 38016, 0x0b41abd0
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-sva_ba2_d b/ffmpeg1/tests/ref/fate/h264-conformance-sva_ba2_d
new file mode 100644
index 0000000..b94086f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sva_ba2_d
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x359316a1
+0, 1, 1, 1, 38016, 0xd7bb1285
+0, 2, 2, 1, 38016, 0x3c36059f
+0, 3, 3, 1, 38016, 0x983d195f
+0, 4, 4, 1, 38016, 0xba323cc5
+0, 5, 5, 1, 38016, 0xc9db4f32
+0, 6, 6, 1, 38016, 0xc2a06817
+0, 7, 7, 1, 38016, 0x18018392
+0, 8, 8, 1, 38016, 0x8b4da14c
+0, 9, 9, 1, 38016, 0x5a33b0f5
+0, 10, 10, 1, 38016, 0x5b48b808
+0, 11, 11, 1, 38016, 0xfc13c523
+0, 12, 12, 1, 38016, 0xb915c169
+0, 13, 13, 1, 38016, 0xfaab94ed
+0, 14, 14, 1, 38016, 0xe455786f
+0, 15, 15, 1, 38016, 0x529182a8
+0, 16, 16, 1, 38016, 0xfb6893a9
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-sva_base_b b/ffmpeg1/tests/ref/fate/h264-conformance-sva_base_b
new file mode 100644
index 0000000..30663ff
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sva_base_b
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x1c131302
+0, 1, 1, 1, 38016, 0xbbca0c4f
+0, 2, 2, 1, 38016, 0x81f5fd7b
+0, 3, 3, 1, 38016, 0xc8990c96
+0, 4, 4, 1, 38016, 0xd4c337ce
+0, 5, 5, 1, 38016, 0xc4544ee1
+0, 6, 6, 1, 38016, 0x5de26832
+0, 7, 7, 1, 38016, 0xc1fc7ba9
+0, 8, 8, 1, 38016, 0x5fea9c67
+0, 9, 9, 1, 38016, 0xfa0aaf63
+0, 10, 10, 1, 38016, 0xa7f6c07d
+0, 11, 11, 1, 38016, 0x11a0c6ff
+0, 12, 12, 1, 38016, 0xfdefc3a0
+0, 13, 13, 1, 38016, 0xdb729a49
+0, 14, 14, 1, 38016, 0x9b5e7f0b
+0, 15, 15, 1, 38016, 0x6a047ea9
+0, 16, 16, 1, 38016, 0xd8c29302
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-sva_cl1_e b/ffmpeg1/tests/ref/fate/h264-conformance-sva_cl1_e
new file mode 100644
index 0000000..27cba6d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sva_cl1_e
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x6811161f
+0, 1, 1, 1, 38016, 0x243a0d4e
+0, 2, 2, 1, 38016, 0x0bc700de
+0, 3, 3, 1, 38016, 0x30db1659
+0, 4, 4, 1, 38016, 0xf88d3f1a
+0, 5, 5, 1, 38016, 0xb37d5bd2
+0, 6, 6, 1, 38016, 0x93f46c04
+0, 7, 7, 1, 38016, 0xdb9878d0
+0, 8, 8, 1, 38016, 0x92509f3a
+0, 9, 9, 1, 38016, 0xd63badea
+0, 10, 10, 1, 38016, 0xb942b664
+0, 11, 11, 1, 38016, 0x703bc4ee
+0, 12, 12, 1, 38016, 0xa78abfcd
+0, 13, 13, 1, 38016, 0x4e1b96d8
+0, 14, 14, 1, 38016, 0xaed371ac
+0, 15, 15, 1, 38016, 0x2c917f89
+0, 16, 16, 1, 38016, 0x57c29c96
+0, 17, 17, 1, 38016, 0xaf1fb16a
+0, 18, 18, 1, 38016, 0x257eb325
+0, 19, 19, 1, 38016, 0x7701b0f9
+0, 20, 20, 1, 38016, 0x7074c151
+0, 21, 21, 1, 38016, 0x9778b1fe
+0, 22, 22, 1, 38016, 0x9c2e8c0c
+0, 23, 23, 1, 38016, 0x394276e9
+0, 24, 24, 1, 38016, 0x2f5157bc
+0, 25, 25, 1, 38016, 0xfb313ee7
+0, 26, 26, 1, 38016, 0xbc6349c3
+0, 27, 27, 1, 38016, 0xdca95a0c
+0, 28, 28, 1, 38016, 0x53c46d45
+0, 29, 29, 1, 38016, 0x62867764
+0, 30, 30, 1, 38016, 0x87847fa3
+0, 31, 31, 1, 38016, 0x74527d90
+0, 32, 32, 1, 38016, 0x5c7a7779
+0, 33, 33, 1, 38016, 0xeafd7e73
+0, 34, 34, 1, 38016, 0x63aa7d06
+0, 35, 35, 1, 38016, 0x2bc06fd2
+0, 36, 36, 1, 38016, 0x058a7eae
+0, 37, 37, 1, 38016, 0xc51a6f85
+0, 38, 38, 1, 38016, 0xb49e6b0b
+0, 39, 39, 1, 38016, 0x881a5997
+0, 40, 40, 1, 38016, 0x5e4956b7
+0, 41, 41, 1, 38016, 0x835441a0
+0, 42, 42, 1, 38016, 0x212933cd
+0, 43, 43, 1, 38016, 0x914031bd
+0, 44, 44, 1, 38016, 0x29b63d29
+0, 45, 45, 1, 38016, 0x03a03b60
+0, 46, 46, 1, 38016, 0x282e1a0f
+0, 47, 47, 1, 38016, 0x8964f214
+0, 48, 48, 1, 38016, 0x23a9c5f9
+0, 49, 49, 1, 38016, 0x04f9a780
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-sva_fm1_e b/ffmpeg1/tests/ref/fate/h264-conformance-sva_fm1_e
new file mode 100644
index 0000000..0e5f3e0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sva_fm1_e
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0x1c131302
+0, 1, 1, 1, 38016, 0x89dd0c15
+0, 2, 2, 1, 38016, 0xaf7700bd
+0, 3, 3, 1, 38016, 0x220d1115
+0, 4, 4, 1, 38016, 0x76d0354e
+0, 5, 5, 1, 38016, 0x9e514b93
+0, 6, 6, 1, 38016, 0x20ff5e7c
+0, 7, 7, 1, 38016, 0xd9cb7e01
+0, 8, 8, 1, 38016, 0x26b7992d
+0, 9, 9, 1, 38016, 0xa29dac84
+0, 10, 10, 1, 38016, 0x407cb6e8
+0, 11, 11, 1, 38016, 0xe82cc064
+0, 12, 12, 1, 38016, 0x63ddb80f
+0, 13, 13, 1, 38016, 0xec6f93a1
+0, 14, 14, 1, 38016, 0x5f217759
+0, 15, 15, 1, 38016, 0x341982ba
+0, 16, 16, 1, 38016, 0x3f48980c
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-sva_nl1_b b/ffmpeg1/tests/ref/fate/h264-conformance-sva_nl1_b
new file mode 100644
index 0000000..f2033d8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sva_nl1_b
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb9ac19bd
+0, 1, 1, 1, 38016, 0x3898fc35
+0, 2, 2, 1, 38016, 0xf6f4ed19
+0, 3, 3, 1, 38016, 0xc31af64b
+0, 4, 4, 1, 38016, 0x42161687
+0, 5, 5, 1, 38016, 0xe88133a3
+0, 6, 6, 1, 38016, 0xebb5415a
+0, 7, 7, 1, 38016, 0x643c62ac
+0, 8, 8, 1, 38016, 0x7ad68041
+0, 9, 9, 1, 38016, 0x2625981b
+0, 10, 10, 1, 38016, 0x1a839bbf
+0, 11, 11, 1, 38016, 0xe41db3a9
+0, 12, 12, 1, 38016, 0x894eb2dd
+0, 13, 13, 1, 38016, 0x4633a2a2
+0, 14, 14, 1, 38016, 0xeb848787
+0, 15, 15, 1, 38016, 0x23c590b0
+0, 16, 16, 1, 38016, 0xc7cbaf63
diff --git a/ffmpeg1/tests/ref/fate/h264-conformance-sva_nl2_e b/ffmpeg1/tests/ref/fate/h264-conformance-sva_nl2_e
new file mode 100644
index 0000000..1770eff
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-conformance-sva_nl2_e
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xb9ac19bd
+0, 1, 1, 1, 38016, 0x53c91566
+0, 2, 2, 1, 38016, 0xb5bd089f
+0, 3, 3, 1, 38016, 0xb81320bb
+0, 4, 4, 1, 38016, 0x7c793dce
+0, 5, 5, 1, 38016, 0x3d605b31
+0, 6, 6, 1, 38016, 0x40216830
+0, 7, 7, 1, 38016, 0x11c48f52
+0, 8, 8, 1, 38016, 0x0f37a013
+0, 9, 9, 1, 38016, 0xb06cb753
+0, 10, 10, 1, 38016, 0x6233ca83
+0, 11, 11, 1, 38016, 0x02b6d5a1
+0, 12, 12, 1, 38016, 0xf76cc409
+0, 13, 13, 1, 38016, 0xd19fa5c3
+0, 14, 14, 1, 38016, 0x8d1c8a02
+0, 15, 15, 1, 38016, 0x6802966d
+0, 16, 16, 1, 38016, 0x107fb055
diff --git a/ffmpeg1/tests/ref/fate/h264-extreme-plane-pred b/ffmpeg1/tests/ref/fate/h264-extreme-plane-pred
new file mode 100644
index 0000000..db85e99
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-extreme-plane-pred
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 152064, 1e857d2dfeea75297e090ffe9e37a249
+0, 1, 1, 1, 152064, 29d8336b4e9b77298025074dbad641d1
+0, 2, 2, 1, 152064, 3f1a87d2088a7708f4ed06890c8cd018
+0, 3, 3, 1, 152064, 56b8b8d9fefbd501c4f7918f21f9b015
+0, 4, 4, 1, 152064, 597392c162ea79af1e5d3dd552ffeb47
+0, 5, 5, 1, 152064, 064fdd170aa24463409b1cb0ddc7f5b6
+0, 6, 6, 1, 152064, 9924da4026b10110fa644039e73f92c1
+0, 7, 7, 1, 152064, afdb77f4a4c87faaf35988bf2d1d7c18
+0, 8, 8, 1, 152064, 80714dc3bf376f38c00f8c67fc534fae
+0, 9, 9, 1, 152064, fb0ab4028e1e9879b0bf0e414c0ccb33
+0, 10, 10, 1, 152064, 03c694f4b9e6116214078131f3edff91
+0, 11, 11, 1, 152064, 22d2de0d8f9e5477230b50c50ec46269
+0, 12, 12, 1, 152064, 470e9a6c5bbb15e151afbfd6b2f254a3
+0, 13, 13, 1, 152064, b585555552169640b1a896094335b624
+0, 14, 14, 1, 152064, e261e0f650e6d649a35773520e7f5bff
+0, 15, 15, 1, 152064, 2d1bf889eef057016e473a041fbceac0
+0, 16, 16, 1, 152064, b1a3f8ebf1de26bc8c32d47a4a53c862
+0, 17, 17, 1, 152064, d5cdb80386dbb996ca007a0e210a9905
+0, 18, 18, 1, 152064, 05a200df7b8baa19d2a0309476727dd7
+0, 19, 19, 1, 152064, 890d62163f4aa70a2055d50de0395a35
+0, 20, 20, 1, 152064, c00bdd1c5f0d69bae66ba46a897ad0ad
+0, 21, 21, 1, 152064, 65f76c6d453822eb48b180ac630cbdce
+0, 22, 22, 1, 152064, d6b85fc02c6d8efa53a9f0f148a0520e
+0, 23, 23, 1, 152064, adcb1621c5100b8e201592328bcd11be
+0, 24, 24, 1, 152064, bad7da936734cf4304c1564d6d3e74b9
+0, 25, 25, 1, 152064, a98d1232d0c22e6967415700d980c67f
+0, 26, 26, 1, 152064, 3fa1110c3ada7d37f0495a26774a58fb
+0, 27, 27, 1, 152064, 37613c65cfd3d77e8dda3b5b913e467f
+0, 28, 28, 1, 152064, 42a5cf583a82e722e04c04b10fd36542
+0, 29, 29, 1, 152064, 41c2870e102e3584780cd0243baa1900
+0, 30, 30, 1, 152064, da389397c874f5fd974c57278bd1e327
+0, 31, 31, 1, 152064, 238c265971ef9144d3fe6bc95a2ea060
+0, 32, 32, 1, 152064, 085c83a54aa9327e1e3ee76ffa337538
+0, 33, 33, 1, 152064, f462966f59018b39c10f9a65a80a41f8
+0, 34, 34, 1, 152064, 6e9697b7c8193b38551af4ef56861b7a
+0, 35, 35, 1, 152064, e68113abf3e81a28cafd95d91871886e
+0, 36, 36, 1, 152064, 35a78df5ac1ff6ee469626b750241c9b
+0, 37, 37, 1, 152064, b3302a87e334634a9f92ce51acf96ab3
+0, 38, 38, 1, 152064, 52198528552cefe90004a2b045b33e8f
+0, 39, 39, 1, 152064, 12d9ad991d4bb7935342c8b6474d1726
+0, 40, 40, 1, 152064, 2e6a508aba965f292c7b2e82bd0debbe
+0, 41, 41, 1, 152064, 8daff69112bb5fbc0158cbbf7fbe057e
+0, 42, 42, 1, 152064, 5495a0bb6c88a115957d98b272b0d643
+0, 43, 43, 1, 152064, 955db92ab0c482381200247a207e12bc
+0, 44, 44, 1, 152064, c0f81c5f95fd658c153798a514fedd22
+0, 45, 45, 1, 152064, 3cfc7b9c2d73621cdb04d7e7e8bc2b3b
+0, 46, 46, 1, 152064, e8b6d1d526d6443cba2e64ccd5393a4f
+0, 47, 47, 1, 152064, 7722e2420db0279c9eb7c6f7dfa89c07
+0, 48, 48, 1, 152064, 41b908a50b97a2e927f2e6e285e27592
+0, 49, 49, 1, 152064, e05f0ddd08debc2a0578893662c33ce0
+0, 50, 50, 1, 152064, 1edcedca921dbb68c0ce53371abddd8f
+0, 51, 51, 1, 152064, cdbf0c89feb336e58472f0163e43b02b
+0, 52, 52, 1, 152064, 39c4d20ecfeee09800feae5ad783e0bd
+0, 53, 53, 1, 152064, f60d05d20b3f338aa5917490d2b58f77
+0, 54, 54, 1, 152064, 76e5eae7a5205f6f6aaf8099197dbb1f
+0, 55, 55, 1, 152064, f7c4c80e79b691826915b7810ab7c2a6
+0, 56, 56, 1, 152064, afbc098dcaa8c2a3f41dfc3e846e8e7b
+0, 57, 57, 1, 152064, 6582805bbe4ab9a9138a23deb2ca45a8
+0, 58, 58, 1, 152064, 54444ce52dd1ce7bc24e9cbaba89dc59
+0, 59, 59, 1, 152064, c81193469c0cd5a50c451d869e07a786
+0, 60, 60, 1, 152064, 89f2295b63db3adce2961630569749a5
+0, 61, 61, 1, 152064, 3f4d6dd4dd819168a358384d6b134d00
+0, 62, 62, 1, 152064, 45d3b5c72609a15c1be5a45f790a24c4
+0, 63, 63, 1, 152064, f2283a8bf9599754d2e251c5f0861199
+0, 64, 64, 1, 152064, 06a9ccf8132c494884954bb4cc148c11
+0, 65, 65, 1, 152064, e20e0143fc840db46a88a8556d887ea2
+0, 66, 66, 1, 152064, bcb1ca471f70109293a15b7e1b0f3a7f
+0, 67, 67, 1, 152064, 0c5f59f091b3fd5ced9bb626e5b66ec8
+0, 68, 68, 1, 152064, 4dd6cf80daf74390afe0423f726c2fb6
+0, 69, 69, 1, 152064, fd52e6d570960cf100ac7c973dbd222e
+0, 70, 70, 1, 152064, 684758faa9b5517b2e5dbbabccc6125b
+0, 71, 71, 1, 152064, e538a3bcb2125c8ac324a5be49470960
+0, 72, 72, 1, 152064, 0c91795b7f52e942a1c28b4c6510c6fa
+0, 73, 73, 1, 152064, b33315c61d714bd70d2adce3309633fe
+0, 74, 74, 1, 152064, af2554b6b1d3f215641f85494a78ad3d
+0, 75, 75, 1, 152064, e59b20b3b2c5ec215ea34ab4850f940e
+0, 76, 76, 1, 152064, fb543e874bdd9749aaa710d1551e0ebd
+0, 77, 77, 1, 152064, 4383abaf938da0282fecabed153bca0e
+0, 78, 78, 1, 152064, 4ce40ffa75b42320593e40596c34862a
+0, 79, 79, 1, 152064, f337d0cc81b5c1b1b92c3f367ed5f9cd
+0, 80, 80, 1, 152064, 0f5a8c41fb7334811a485239d9126808
+0, 81, 81, 1, 152064, 0daf3d981474940bdf10a93148d69353
+0, 82, 82, 1, 152064, 21a51f1686071a6af7973df92361964b
+0, 83, 83, 1, 152064, 1f0d471c7b1fa86f236c2dee32822464
+0, 84, 84, 1, 152064, cedc6fd29d67976f899a6a8afba6b38d
+0, 85, 85, 1, 152064, 4af936d3d3b456953c7beb551476824a
+0, 86, 86, 1, 152064, bcaf539953adb1952fefc2cdec6c2f60
+0, 87, 87, 1, 152064, d1dfeafa0939fddc256986c2b00f73c7
+0, 88, 88, 1, 152064, 99c9a2c7b198e2c8cfe007ff4330f036
+0, 89, 89, 1, 152064, 4db6a7edfc44389536983aeeb15edb66
+0, 90, 90, 1, 152064, 8d840674b90e3b488a34e04645430ee7
+0, 91, 91, 1, 152064, ad7b3e55a2eb62fc5102cc5af49301aa
+0, 92, 92, 1, 152064, f24484a975ec64acb50df3e9f9e8eddd
+0, 93, 93, 1, 152064, 5794617c7e40bfcb7f024bda2f2a991d
+0, 94, 94, 1, 152064, ae1c22fcfa7f3b3b62dd2ace4e4b4dc7
+0, 95, 95, 1, 152064, ad9d13345ae5322a578e43653e9a9c16
+0, 96, 96, 1, 152064, be1b86ee130ea9255d9640117559818d
+0, 97, 97, 1, 152064, 81ed195d2831e62fc2cd4fa886de8e20
+0, 98, 98, 1, 152064, 8dde0af730b03ea8b3acd14d42daba04
+0, 99, 99, 1, 152064, c8ffbd5ba1af8b881daf511e4d8c26f3
diff --git a/ffmpeg1/tests/ref/fate/h264-interlace-crop b/ffmpeg1/tests/ref/fate/h264-interlace-crop
new file mode 100644
index 0000000..81b979c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-interlace-crop
@@ -0,0 +1,4 @@
+#tb 0: 1/25
+0, 0, 0, 1, 345600, 0xa9cb7e5a
+0, 1, 1, 1, 345600, 0x73e47555
+0, 2, 2, 1, 345600, 0x87aac593
diff --git a/ffmpeg1/tests/ref/fate/h264-lossless b/ffmpeg1/tests/ref/fate/h264-lossless
new file mode 100644
index 0000000..44cb13b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-lossless
@@ -0,0 +1,11 @@
+#tb 0: 83333/5000000
+0, 0, 0, 1, 460800, 0x7731dd2f
+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/ffmpeg1/tests/ref/fate/h264-reinit-large_420_8-to-small_420_8 b/ffmpeg1/tests/ref/fate/h264-reinit-large_420_8-to-small_420_8
new file mode 100644
index 0000000..8518855
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-reinit-large_420_8-to-small_420_8
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 608256, 0x65574c43
+0, 1, 1, 1, 608256, 0x5e5a1aa4
+0, 2, 2, 1, 608256, 0xa9a5cbc5
+0, 3, 3, 1, 608256, 0x4e462c02
+0, 4, 4, 1, 608256, 0xf8215f14
+0, 5, 5, 1, 608256, 0x4f332ccd
+0, 6, 6, 1, 608256, 0x5dac18a3
+0, 7, 7, 1, 608256, 0x81196f38
+0, 8, 8, 1, 608256, 0xd4cb4ffc
+0, 9, 9, 1, 608256, 0x839af1a4
+0, 10, 10, 1, 608256, 0x15ab7a99
+0, 11, 11, 1, 608256, 0x7496aec8
+0, 12, 12, 1, 608256, 0xfe974593
+0, 13, 13, 1, 608256, 0x702a94b7
+0, 14, 14, 1, 608256, 0x0f74cd7a
+0, 15, 15, 1, 608256, 0x3b35b667
+0, 16, 16, 1, 608256, 0x22083d70
+0, 17, 17, 1, 608256, 0xab77f6e1
+0, 18, 18, 1, 608256, 0x51513651
+0, 19, 19, 1, 608256, 0x06ff4ef1
+0, 20, 20, 1, 608256, 0xdf2ed7d3
+0, 21, 21, 1, 608256, 0x3107421b
+0, 22, 22, 1, 608256, 0x975823fe
+0, 23, 23, 1, 608256, 0xe40d9894
+0, 24, 24, 1, 608256, 0x8fb1fead
+0, 25, 25, 1, 608256, 0x56e5056b
+0, 26, 26, 1, 608256, 0x3346b970
+0, 27, 27, 1, 608256, 0x7e3c5b82
+0, 28, 28, 1, 608256, 0x6a86c482
+0, 29, 29, 1, 608256, 0x3e800e13
+0, 30, 30, 1, 608256, 0xd6c4589e
+0, 31, 31, 1, 608256, 0xcdfa7d94
+0, 32, 32, 1, 608256, 0xdc91cfce
+0, 33, 33, 1, 608256, 0x8aa5fd0e
+0, 34, 34, 1, 608256, 0x85c190be
+0, 35, 35, 1, 608256, 0xe7563061
+0, 36, 36, 1, 608256, 0x7fd501ec
+0, 37, 37, 1, 608256, 0x088d0df3
+0, 38, 38, 1, 608256, 0x08129a2f
+0, 39, 39, 1, 608256, 0x7bed8d9c
+0, 40, 40, 1, 608256, 0x16ce64c6
+0, 41, 41, 1, 608256, 0x6a120a3a
+0, 42, 42, 1, 608256, 0xfe0b889e
+0, 43, 43, 1, 608256, 0x57f4efcd
+0, 44, 44, 1, 608256, 0xc363ca91
+0, 45, 45, 1, 608256, 0x92237dce
+0, 46, 46, 1, 608256, 0x77bab64f
+0, 47, 47, 1, 608256, 0x29118201
+0, 48, 48, 1, 608256, 0x6f8e8e53
+0, 49, 49, 1, 608256, 0x4a13c4a3
+0, 50, 50, 1, 608256, 0x27a069a3
+0, 51, 51, 1, 608256, 0x22a5ff96
+0, 52, 52, 1, 608256, 0x29ad753f
+0, 53, 53, 1, 608256, 0x955788a6
+0, 54, 54, 1, 608256, 0xb73599c5
+0, 55, 55, 1, 608256, 0x73765aca
+0, 56, 56, 1, 608256, 0x39118f45
+0, 57, 57, 1, 608256, 0xfb0f8b96
+0, 58, 58, 1, 608256, 0xfcf71085
+0, 59, 59, 1, 608256, 0xccaaca7d
+0, 60, 60, 1, 608256, 0xde873299
+0, 61, 61, 1, 608256, 0x5d904202
+0, 62, 62, 1, 608256, 0x1e92c9b8
+0, 63, 63, 1, 608256, 0xdb8ec231
+0, 64, 64, 1, 608256, 0x388e2b9f
+0, 65, 65, 1, 608256, 0x1d190c39
+0, 66, 66, 1, 608256, 0xb6609efd
+0, 67, 67, 1, 608256, 0x0c6bf1d0
+0, 68, 68, 1, 608256, 0x178e0a3c
+0, 69, 69, 1, 608256, 0x439509f7
+0, 70, 70, 1, 608256, 0x00eb29ec
+0, 71, 71, 1, 608256, 0xee45f2a0
+0, 72, 72, 1, 608256, 0xae62eb8c
+0, 73, 73, 1, 608256, 0x3bb7510d
+0, 74, 74, 1, 608256, 0x03f08d02
+0, 75, 75, 1, 608256, 0x4beffc2a
+0, 76, 76, 1, 608256, 0x6071eb56
+0, 77, 77, 1, 608256, 0xbcb4e4e5
+0, 78, 78, 1, 608256, 0x775864aa
+0, 79, 79, 1, 608256, 0x3cfa0a94
+0, 80, 80, 1, 608256, 0x4652d529
+0, 81, 81, 1, 608256, 0xc5be07e2
+0, 82, 82, 1, 608256, 0xe7b480a2
+0, 83, 83, 1, 608256, 0x83b11945
+0, 84, 84, 1, 608256, 0x25ff0458
+0, 85, 85, 1, 608256, 0x5a780cda
+0, 86, 86, 1, 608256, 0x3448077c
+0, 87, 87, 1, 608256, 0x0f9c6f09
+0, 88, 88, 1, 608256, 0x05ece146
+0, 89, 89, 1, 608256, 0x3b02b504
+0, 90, 90, 1, 608256, 0xf3a8e2a6
+0, 91, 91, 1, 608256, 0xd4544847
+0, 92, 92, 1, 608256, 0x49bd2a3f
+0, 93, 93, 1, 608256, 0x22a42082
+0, 94, 94, 1, 608256, 0x8d8d1923
+0, 95, 95, 1, 608256, 0x2ba6877f
+0, 96, 96, 1, 608256, 0x494d481b
+0, 97, 97, 1, 608256, 0x28c99c35
+0, 98, 98, 1, 608256, 0x80128077
+0, 99, 99, 1, 608256, 0x887c2fb0
diff --git a/ffmpeg1/tests/ref/fate/h264-reinit-small_420_8-to-large_444_10 b/ffmpeg1/tests/ref/fate/h264-reinit-small_420_8-to-large_444_10
new file mode 100644
index 0000000..7e7631a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-reinit-small_420_8-to-large_444_10
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 608256, 0x27a069a3
+0, 1, 1, 1, 608256, 0x22a5ff96
+0, 2, 2, 1, 608256, 0x29ad753f
+0, 3, 3, 1, 608256, 0x955788a6
+0, 4, 4, 1, 608256, 0xb73599c5
+0, 5, 5, 1, 608256, 0x73765aca
+0, 6, 6, 1, 608256, 0x39118f45
+0, 7, 7, 1, 608256, 0xfb0f8b96
+0, 8, 8, 1, 608256, 0xfcf71085
+0, 9, 9, 1, 608256, 0xccaaca7d
+0, 10, 10, 1, 608256, 0xde873299
+0, 11, 11, 1, 608256, 0x5d904202
+0, 12, 12, 1, 608256, 0x1e92c9b8
+0, 13, 13, 1, 608256, 0xdb8ec231
+0, 14, 14, 1, 608256, 0x388e2b9f
+0, 15, 15, 1, 608256, 0x1d190c39
+0, 16, 16, 1, 608256, 0xb6609efd
+0, 17, 17, 1, 608256, 0x0c6bf1d0
+0, 18, 18, 1, 608256, 0x178e0a3c
+0, 19, 19, 1, 608256, 0x439509f7
+0, 20, 20, 1, 608256, 0x00eb29ec
+0, 21, 21, 1, 608256, 0xee45f2a0
+0, 22, 22, 1, 608256, 0xae62eb8c
+0, 23, 23, 1, 608256, 0x3bb7510d
+0, 24, 24, 1, 608256, 0x03f08d02
+0, 25, 25, 1, 608256, 0x4beffc2a
+0, 26, 26, 1, 608256, 0x6071eb56
+0, 27, 27, 1, 608256, 0xbcb4e4e5
+0, 28, 28, 1, 608256, 0x775864aa
+0, 29, 29, 1, 608256, 0x3cfa0a94
+0, 30, 30, 1, 608256, 0x4652d529
+0, 31, 31, 1, 608256, 0xc5be07e2
+0, 32, 32, 1, 608256, 0xe7b480a2
+0, 33, 33, 1, 608256, 0x83b11945
+0, 34, 34, 1, 608256, 0x25ff0458
+0, 35, 35, 1, 608256, 0x5a780cda
+0, 36, 36, 1, 608256, 0x3448077c
+0, 37, 37, 1, 608256, 0x0f9c6f09
+0, 38, 38, 1, 608256, 0x05ece146
+0, 39, 39, 1, 608256, 0x3b02b504
+0, 40, 40, 1, 608256, 0xf3a8e2a6
+0, 41, 41, 1, 608256, 0xd4544847
+0, 42, 42, 1, 608256, 0x49bd2a3f
+0, 43, 43, 1, 608256, 0x22a42082
+0, 44, 44, 1, 608256, 0x8d8d1923
+0, 45, 45, 1, 608256, 0x2ba6877f
+0, 46, 46, 1, 608256, 0x494d481b
+0, 47, 47, 1, 608256, 0x28c99c35
+0, 48, 48, 1, 608256, 0x80128077
+0, 49, 49, 1, 608256, 0x887c2fb0
+0, 50, 50, 1, 608256, 0xfaba3fe4
+0, 51, 51, 1, 608256, 0x0369a227
+0, 52, 52, 1, 608256, 0xe62cb2b1
+0, 53, 53, 1, 608256, 0x851d9e78
+0, 54, 54, 1, 608256, 0x6847b938
+0, 55, 55, 1, 608256, 0x48eb702e
+0, 56, 56, 1, 608256, 0x3eb52eec
+0, 57, 57, 1, 608256, 0xf880edf8
+0, 58, 58, 1, 608256, 0xf7ac1860
+0, 59, 59, 1, 608256, 0x3ead29f3
+0, 60, 60, 1, 608256, 0x6db1860a
+0, 61, 61, 1, 608256, 0x72ee9271
+0, 62, 62, 1, 608256, 0xa8b643e4
+0, 63, 63, 1, 608256, 0x22a95a3e
+0, 64, 64, 1, 608256, 0x4e8aa877
+0, 65, 65, 1, 608256, 0x9545cfcf
+0, 66, 66, 1, 608256, 0x42d820e0
+0, 67, 67, 1, 608256, 0xe701ea6f
+0, 68, 68, 1, 608256, 0x05f61a49
+0, 69, 69, 1, 608256, 0xc1de9f65
+0, 70, 70, 1, 608256, 0x2b121933
+0, 71, 71, 1, 608256, 0x4de4e185
+0, 72, 72, 1, 608256, 0x01c6fb05
+0, 73, 73, 1, 608256, 0x1fbf8603
+0, 74, 74, 1, 608256, 0x9d8f2fd4
+0, 75, 75, 1, 608256, 0xb7d6f14e
+0, 76, 76, 1, 608256, 0x503c33a9
+0, 77, 77, 1, 608256, 0x051e8b02
+0, 78, 78, 1, 608256, 0xeff7c286
+0, 79, 79, 1, 608256, 0xeb80088a
+0, 80, 80, 1, 608256, 0xffbc6cec
+0, 81, 81, 1, 608256, 0x42d55e9d
+0, 82, 82, 1, 608256, 0x4898c507
+0, 83, 83, 1, 608256, 0x2c2411b5
+0, 84, 84, 1, 608256, 0xd70a34a4
+0, 85, 85, 1, 608256, 0xce5e64f5
+0, 86, 86, 1, 608256, 0x7790d293
+0, 87, 87, 1, 608256, 0xac5b44fb
+0, 88, 88, 1, 608256, 0xae4c2921
+0, 89, 89, 1, 608256, 0x373a26bb
+0, 90, 90, 1, 608256, 0x3aa3fed4
+0, 91, 91, 1, 608256, 0x4f4b1496
+0, 92, 92, 1, 608256, 0x4760fe2b
+0, 93, 93, 1, 608256, 0x9e38af43
+0, 94, 94, 1, 608256, 0xd7c66f6e
+0, 95, 95, 1, 608256, 0xf6cb1649
+0, 96, 96, 1, 608256, 0xb0591bf1
+0, 97, 97, 1, 608256, 0xb507b282
+0, 98, 98, 1, 608256, 0xfb53c6e5
+0, 99, 99, 1, 608256, 0x5410f10f
diff --git a/ffmpeg1/tests/ref/fate/h264-reinit-small_420_9-to-small_420_8 b/ffmpeg1/tests/ref/fate/h264-reinit-small_420_9-to-small_420_8
new file mode 100644
index 0000000..662db29
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-reinit-small_420_9-to-small_420_8
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 608256, 0xee06377f
+0, 1, 1, 1, 608256, 0x9c22c5ee
+0, 2, 2, 1, 608256, 0x322abee2
+0, 3, 3, 1, 608256, 0x82745ed3
+0, 4, 4, 1, 608256, 0xe7b9248b
+0, 5, 5, 1, 608256, 0xc8c1ce0e
+0, 6, 6, 1, 608256, 0x8451eba9
+0, 7, 7, 1, 608256, 0xece9412d
+0, 8, 8, 1, 608256, 0xffbc2c24
+0, 9, 9, 1, 608256, 0xf58c117e
+0, 10, 10, 1, 608256, 0x7853f334
+0, 11, 11, 1, 608256, 0x1acd6465
+0, 12, 12, 1, 608256, 0xb668856c
+0, 13, 13, 1, 608256, 0x3f52c230
+0, 14, 14, 1, 608256, 0xd7e8b5b6
+0, 15, 15, 1, 608256, 0xf663681d
+0, 16, 16, 1, 608256, 0x07ef670c
+0, 17, 17, 1, 608256, 0x1d5084f4
+0, 18, 18, 1, 608256, 0x0ea3fe04
+0, 19, 19, 1, 608256, 0xf095d1e0
+0, 20, 20, 1, 608256, 0xbdac37fb
+0, 21, 21, 1, 608256, 0x2cbfdf91
+0, 22, 22, 1, 608256, 0x8da7190f
+0, 23, 23, 1, 608256, 0x08bf6fc9
+0, 24, 24, 1, 608256, 0xa2368e5c
+0, 25, 25, 1, 608256, 0x36d38f81
+0, 26, 26, 1, 608256, 0x94d344cc
+0, 27, 27, 1, 608256, 0x1cf33f86
+0, 28, 28, 1, 608256, 0x98d6341f
+0, 29, 29, 1, 608256, 0xb04e3a3a
+0, 30, 30, 1, 608256, 0x74e52483
+0, 31, 31, 1, 608256, 0x6acc8d96
+0, 32, 32, 1, 608256, 0x136d6c4e
+0, 33, 33, 1, 608256, 0x50efa37a
+0, 34, 34, 1, 608256, 0x53170421
+0, 35, 35, 1, 608256, 0x2ed5210e
+0, 36, 36, 1, 608256, 0x5f471854
+0, 37, 37, 1, 608256, 0xd6ff7856
+0, 38, 38, 1, 608256, 0x446bf456
+0, 39, 39, 1, 608256, 0x872b95b1
+0, 40, 40, 1, 608256, 0xc9e5e827
+0, 41, 41, 1, 608256, 0xdab3eb04
+0, 42, 42, 1, 608256, 0xccd6347e
+0, 43, 43, 1, 608256, 0xd7dfd0a9
+0, 44, 44, 1, 608256, 0x60b834c3
+0, 45, 45, 1, 608256, 0x0b822676
+0, 46, 46, 1, 608256, 0x0e5d3d5a
+0, 47, 47, 1, 608256, 0x1fa0233d
+0, 48, 48, 1, 608256, 0xb853b650
+0, 49, 49, 1, 608256, 0x30d8d033
+0, 50, 50, 1, 608256, 0x27a069a3
+0, 51, 51, 1, 608256, 0x22a5ff96
+0, 52, 52, 1, 608256, 0x29ad753f
+0, 53, 53, 1, 608256, 0x955788a6
+0, 54, 54, 1, 608256, 0xb73599c5
+0, 55, 55, 1, 608256, 0x73765aca
+0, 56, 56, 1, 608256, 0x39118f45
+0, 57, 57, 1, 608256, 0xfb0f8b96
+0, 58, 58, 1, 608256, 0xfcf71085
+0, 59, 59, 1, 608256, 0xccaaca7d
+0, 60, 60, 1, 608256, 0xde873299
+0, 61, 61, 1, 608256, 0x5d904202
+0, 62, 62, 1, 608256, 0x1e92c9b8
+0, 63, 63, 1, 608256, 0xdb8ec231
+0, 64, 64, 1, 608256, 0x388e2b9f
+0, 65, 65, 1, 608256, 0x1d190c39
+0, 66, 66, 1, 608256, 0xb6609efd
+0, 67, 67, 1, 608256, 0x0c6bf1d0
+0, 68, 68, 1, 608256, 0x178e0a3c
+0, 69, 69, 1, 608256, 0x439509f7
+0, 70, 70, 1, 608256, 0x00eb29ec
+0, 71, 71, 1, 608256, 0xee45f2a0
+0, 72, 72, 1, 608256, 0xae62eb8c
+0, 73, 73, 1, 608256, 0x3bb7510d
+0, 74, 74, 1, 608256, 0x03f08d02
+0, 75, 75, 1, 608256, 0x4beffc2a
+0, 76, 76, 1, 608256, 0x6071eb56
+0, 77, 77, 1, 608256, 0xbcb4e4e5
+0, 78, 78, 1, 608256, 0x775864aa
+0, 79, 79, 1, 608256, 0x3cfa0a94
+0, 80, 80, 1, 608256, 0x4652d529
+0, 81, 81, 1, 608256, 0xc5be07e2
+0, 82, 82, 1, 608256, 0xe7b480a2
+0, 83, 83, 1, 608256, 0x83b11945
+0, 84, 84, 1, 608256, 0x25ff0458
+0, 85, 85, 1, 608256, 0x5a780cda
+0, 86, 86, 1, 608256, 0x3448077c
+0, 87, 87, 1, 608256, 0x0f9c6f09
+0, 88, 88, 1, 608256, 0x05ece146
+0, 89, 89, 1, 608256, 0x3b02b504
+0, 90, 90, 1, 608256, 0xf3a8e2a6
+0, 91, 91, 1, 608256, 0xd4544847
+0, 92, 92, 1, 608256, 0x49bd2a3f
+0, 93, 93, 1, 608256, 0x22a42082
+0, 94, 94, 1, 608256, 0x8d8d1923
+0, 95, 95, 1, 608256, 0x2ba6877f
+0, 96, 96, 1, 608256, 0x494d481b
+0, 97, 97, 1, 608256, 0x28c99c35
+0, 98, 98, 1, 608256, 0x80128077
+0, 99, 99, 1, 608256, 0x887c2fb0
diff --git a/ffmpeg1/tests/ref/fate/h264-reinit-small_422_9-to-small_420_9 b/ffmpeg1/tests/ref/fate/h264-reinit-small_422_9-to-small_420_9
new file mode 100644
index 0000000..b5a9505
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/h264-reinit-small_422_9-to-small_420_9
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 608256, 0x3aef31f3
+0, 1, 1, 1, 608256, 0x05afe4e8
+0, 2, 2, 1, 608256, 0x9d7dc9b1
+0, 3, 3, 1, 608256, 0x60b3efec
+0, 4, 4, 1, 608256, 0x7dc51741
+0, 5, 5, 1, 608256, 0xb3bfb413
+0, 6, 6, 1, 608256, 0x0a2738b3
+0, 7, 7, 1, 608256, 0xfd3f8f1b
+0, 8, 8, 1, 608256, 0x922d413f
+0, 9, 9, 1, 608256, 0x775b4cfb
+0, 10, 10, 1, 608256, 0xcbfaec82
+0, 11, 11, 1, 608256, 0x1f1903a2
+0, 12, 12, 1, 608256, 0xdd246528
+0, 13, 13, 1, 608256, 0xe3d8afdc
+0, 14, 14, 1, 608256, 0xb29c4235
+0, 15, 15, 1, 608256, 0xa230e654
+0, 16, 16, 1, 608256, 0xe0246276
+0, 17, 17, 1, 608256, 0xd47b6b3c
+0, 18, 18, 1, 608256, 0xa5593d23
+0, 19, 19, 1, 608256, 0x01cd5642
+0, 20, 20, 1, 608256, 0x0c451611
+0, 21, 21, 1, 608256, 0xc4833ff5
+0, 22, 22, 1, 608256, 0xbed881fc
+0, 23, 23, 1, 608256, 0x709e77e6
+0, 24, 24, 1, 608256, 0x9815dad3
+0, 25, 25, 1, 608256, 0x55c1fe5f
+0, 26, 26, 1, 608256, 0xd89ff770
+0, 27, 27, 1, 608256, 0xc636abf7
+0, 28, 28, 1, 608256, 0x17d3f5b1
+0, 29, 29, 1, 608256, 0x0389cd38
+0, 30, 30, 1, 608256, 0x502eea66
+0, 31, 31, 1, 608256, 0xcb697a48
+0, 32, 32, 1, 608256, 0xd4f6c694
+0, 33, 33, 1, 608256, 0x734a5163
+0, 34, 34, 1, 608256, 0xa53f5187
+0, 35, 35, 1, 608256, 0x64d2c1c7
+0, 36, 36, 1, 608256, 0x41a170d0
+0, 37, 37, 1, 608256, 0x6f671fe1
+0, 38, 38, 1, 608256, 0x56983008
+0, 39, 39, 1, 608256, 0x95911957
+0, 40, 40, 1, 608256, 0x027f2a7a
+0, 41, 41, 1, 608256, 0xcd22d70f
+0, 42, 42, 1, 608256, 0x268beec0
+0, 43, 43, 1, 608256, 0xcf14123e
+0, 44, 44, 1, 608256, 0xfc8e3bff
+0, 45, 45, 1, 608256, 0x6974ad54
+0, 46, 46, 1, 608256, 0x8fbd9cdd
+0, 47, 47, 1, 608256, 0x66110ef8
+0, 48, 48, 1, 608256, 0x84b4b1f1
+0, 49, 49, 1, 608256, 0xf0d4949b
+0, 50, 50, 1, 608256, 0xee06377f
+0, 51, 51, 1, 608256, 0x9c22c5ee
+0, 52, 52, 1, 608256, 0x322abee2
+0, 53, 53, 1, 608256, 0x82745ed3
+0, 54, 54, 1, 608256, 0xe7b9248b
+0, 55, 55, 1, 608256, 0xc8c1ce0e
+0, 56, 56, 1, 608256, 0x8451eba9
+0, 57, 57, 1, 608256, 0xece9412d
+0, 58, 58, 1, 608256, 0xffbc2c24
+0, 59, 59, 1, 608256, 0xf58c117e
+0, 60, 60, 1, 608256, 0x7853f334
+0, 61, 61, 1, 608256, 0x1acd6465
+0, 62, 62, 1, 608256, 0xb668856c
+0, 63, 63, 1, 608256, 0x3f52c230
+0, 64, 64, 1, 608256, 0xd7e8b5b6
+0, 65, 65, 1, 608256, 0xf663681d
+0, 66, 66, 1, 608256, 0x07ef670c
+0, 67, 67, 1, 608256, 0x1d5084f4
+0, 68, 68, 1, 608256, 0x0ea3fe04
+0, 69, 69, 1, 608256, 0xf095d1e0
+0, 70, 70, 1, 608256, 0xbdac37fb
+0, 71, 71, 1, 608256, 0x2cbfdf91
+0, 72, 72, 1, 608256, 0x8da7190f
+0, 73, 73, 1, 608256, 0x08bf6fc9
+0, 74, 74, 1, 608256, 0xa2368e5c
+0, 75, 75, 1, 608256, 0x36d38f81
+0, 76, 76, 1, 608256, 0x94d344cc
+0, 77, 77, 1, 608256, 0x1cf33f86
+0, 78, 78, 1, 608256, 0x98d6341f
+0, 79, 79, 1, 608256, 0xb04e3a3a
+0, 80, 80, 1, 608256, 0x74e52483
+0, 81, 81, 1, 608256, 0x6acc8d96
+0, 82, 82, 1, 608256, 0x136d6c4e
+0, 83, 83, 1, 608256, 0x50efa37a
+0, 84, 84, 1, 608256, 0x53170421
+0, 85, 85, 1, 608256, 0x2ed5210e
+0, 86, 86, 1, 608256, 0x5f471854
+0, 87, 87, 1, 608256, 0xd6ff7856
+0, 88, 88, 1, 608256, 0x446bf456
+0, 89, 89, 1, 608256, 0x872b95b1
+0, 90, 90, 1, 608256, 0xc9e5e827
+0, 91, 91, 1, 608256, 0xdab3eb04
+0, 92, 92, 1, 608256, 0xccd6347e
+0, 93, 93, 1, 608256, 0xd7dfd0a9
+0, 94, 94, 1, 608256, 0x60b834c3
+0, 95, 95, 1, 608256, 0x0b822676
+0, 96, 96, 1, 608256, 0x0e5d3d5a
+0, 97, 97, 1, 608256, 0x1fa0233d
+0, 98, 98, 1, 608256, 0xb853b650
+0, 99, 99, 1, 608256, 0x30d8d033
diff --git a/ffmpeg1/tests/ref/fate/hmac b/ffmpeg1/tests/ref/fate/hmac
new file mode 100644
index 0000000..7d2a437
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/hmac
@@ -0,0 +1,6 @@
+9294727a3638bb1c13f48ef8158bfc9d
+750c783e6ab0b503eaa86e310a5db738
+56be34521d144c88dbb8c733f0e8b3f6
+467cb2560355d7fa3ab2d6b939e6e47c
+5a6ffd741d3e23b12f78b1baee9e609a
+8b4b9d11c9e186c58f2a53b08ddfa436
diff --git a/ffmpeg1/tests/ref/fate/id-cin-video b/ffmpeg1/tests/ref/fate/id-cin-video
new file mode 100644
index 0000000..f55544f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/id-cin-video
@@ -0,0 +1,106 @@
+#tb 0: 1/14
+#tb 1: 1/22050
+0, 0, 0, 1, 230400, 0x00000000
+1, 0, 0, 1575, 6300, 0xdd759df8
+0, 1, 1, 1, 230400, 0x3a3486b4
+1, 1575, 1575, 1575, 6300, 0x43aa398c
+0, 2, 2, 1, 230400, 0xb6a9b772
+1, 3150, 3150, 1575, 6300, 0x61a7b9fd
+0, 3, 3, 1, 230400, 0x8e2d4c03
+1, 4725, 4725, 1575, 6300, 0xfc8adbc8
+0, 4, 4, 1, 230400, 0x5df342a9
+1, 6300, 6300, 1575, 6300, 0x84c4dffc
+0, 5, 5, 1, 230400, 0x00f95cc9
+1, 7875, 7875, 1575, 6300, 0x3044ede1
+0, 6, 6, 1, 230400, 0x72ee1c4c
+1, 9450, 9450, 1575, 6300, 0x6de5b64c
+0, 7, 7, 1, 230400, 0x2bd991e8
+1, 11025, 11025, 1575, 6300, 0x1d9df1b0
+0, 8, 8, 1, 230400, 0x84cf471e
+1, 12600, 12600, 1575, 6300, 0xb5864b86
+0, 9, 9, 1, 230400, 0x75253428
+1, 14175, 14175, 1575, 6300, 0xf2f7fbc2
+0, 10, 10, 1, 230400, 0x57246d42
+1, 15750, 15750, 1575, 6300, 0xe61307a8
+0, 11, 11, 1, 230400, 0x57246d42
+1, 17325, 17325, 1575, 6300, 0x07fcd607
+0, 12, 12, 1, 230400, 0x57246d42
+1, 18900, 18900, 1575, 6300, 0xb8dfbdf6
+0, 13, 13, 1, 230400, 0x7072be1b
+1, 20475, 20475, 1575, 6300, 0xf308e40c
+0, 14, 14, 1, 230400, 0x2e9ffcf2
+1, 22050, 22050, 1575, 6300, 0xa6163aa8
+0, 15, 15, 1, 230400, 0x2e9ffcf2
+1, 23625, 23625, 1575, 6300, 0x3f74c286
+0, 16, 16, 1, 230400, 0x1a5cb24d
+1, 25200, 25200, 1575, 6300, 0xcece754c
+0, 17, 17, 1, 230400, 0x1a06c797
+1, 26775, 26775, 1575, 6300, 0x7c5b47b9
+0, 18, 18, 1, 230400, 0x9e51b953
+1, 28350, 28350, 1575, 6300, 0x3a7baf37
+0, 19, 19, 1, 230400, 0x9e51b953
+1, 29925, 29925, 1575, 6300, 0x56fd368e
+0, 20, 20, 1, 230400, 0x9e51b953
+1, 31500, 31500, 1575, 6300, 0x68db250e
+0, 21, 21, 1, 230400, 0x9e51b953
+1, 33075, 33075, 1575, 6300, 0x37d2d710
+0, 22, 22, 1, 230400, 0x9e51b953
+1, 34650, 34650, 1575, 6300, 0xf458b88e
+0, 23, 23, 1, 230400, 0xccd7c68d
+1, 36225, 36225, 1575, 6300, 0xed38430f
+0, 24, 24, 1, 230400, 0x776da8bc
+1, 37800, 37800, 1575, 6300, 0xd5982d28
+0, 25, 25, 1, 230400, 0x495bec1c
+1, 39375, 39375, 1575, 6300, 0x17465fb3
+0, 26, 26, 1, 230400, 0x495bec1c
+1, 40950, 40950, 1575, 6300, 0xe4591d73
+0, 27, 27, 1, 230400, 0x495bec1c
+1, 42525, 42525, 1575, 6300, 0x4cbbf957
+0, 28, 28, 1, 230400, 0x495bec1c
+1, 44100, 44100, 1575, 6300, 0x4f031f50
+0, 29, 29, 1, 230400, 0x495bec1c
+1, 45675, 45675, 1575, 6300, 0xc03f8ca1
+0, 30, 30, 1, 230400, 0x495bec1c
+1, 47250, 47250, 1575, 6300, 0x1f0d133c
+0, 31, 31, 1, 230400, 0x495bec1c
+1, 48825, 48825, 1575, 6300, 0x18dbbeb4
+0, 32, 32, 1, 230400, 0xa1cae3f3
+1, 50400, 50400, 1575, 6300, 0xef3fa45f
+0, 33, 33, 1, 230400, 0x5cd567eb
+1, 51975, 51975, 1575, 6300, 0x7880f935
+0, 34, 34, 1, 230400, 0x57bbfe30
+1, 53550, 53550, 1575, 6300, 0x5eeca5d5
+0, 35, 35, 1, 230400, 0xc7763926
+1, 55125, 55125, 1575, 6300, 0xda99accc
+0, 36, 36, 1, 230400, 0xc7763926
+1, 56700, 56700, 1575, 6300, 0x90aea270
+0, 37, 37, 1, 230400, 0xc7763926
+1, 58275, 58275, 1575, 6300, 0x7fc9da4e
+0, 38, 38, 1, 230400, 0xc7763926
+1, 59850, 59850, 1575, 6300, 0xb64d34d4
+0, 39, 39, 1, 230400, 0xc7763926
+1, 61425, 61425, 1575, 6300, 0x385ed9e7
+0, 40, 40, 1, 230400, 0xc7763926
+1, 63000, 63000, 1575, 6300, 0xd2f5be45
+0, 41, 41, 1, 230400, 0xc7763926
+1, 64575, 64575, 1575, 6300, 0x763fa974
+0, 42, 42, 1, 230400, 0x0e68cb2f
+1, 66150, 66150, 1575, 6300, 0x5a785ec4
+0, 43, 43, 1, 230400, 0x1a5d96ba
+1, 67725, 67725, 1575, 6300, 0x2877c5a5
+0, 44, 44, 1, 230400, 0xff3554f4
+1, 69300, 69300, 1575, 6300, 0x667e81a5
+0, 45, 45, 1, 230400, 0x74438207
+1, 70875, 70875, 1575, 6300, 0xdcfeffeb
+0, 46, 46, 1, 230400, 0x488de02d
+1, 72450, 72450, 1575, 6300, 0x1aae1606
+0, 47, 47, 1, 230400, 0x488de02d
+1, 74025, 74025, 1575, 6300, 0x37e0550f
+0, 48, 48, 1, 230400, 0x488de02d
+1, 75600, 75600, 1575, 6300, 0x018202e9
+0, 49, 49, 1, 230400, 0x488de02d
+1, 77175, 77175, 1575, 6300, 0x2b13de85
+0, 50, 50, 1, 230400, 0x488de02d
+1, 78750, 78750, 1575, 6300, 0xe3bfa403
+0, 51, 51, 1, 230400, 0x488de02d
+1, 80325, 80325, 1575, 6300, 0x2c5bd9c9
diff --git a/ffmpeg1/tests/ref/fate/idroq-video-encode b/ffmpeg1/tests/ref/fate/idroq-video-encode
new file mode 100644
index 0000000..9d25b13
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/idroq-video-encode
@@ -0,0 +1 @@
+50fa863f7820bb22ddeb74d5adf5f0bc
diff --git a/ffmpeg1/tests/ref/fate/iff-byterun1 b/ffmpeg1/tests/ref/fate/iff-byterun1
new file mode 100644
index 0000000..6f80c72
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/iff-byterun1
@@ -0,0 +1,2 @@
+#tb 0: 1/90000
+0, 0, 0, 0, 230400, 0x35e51c62
diff --git a/ffmpeg1/tests/ref/fate/iff-fibonacci b/ffmpeg1/tests/ref/fate/iff-fibonacci
new file mode 100644
index 0000000..e452f31
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/iff-fibonacci
@@ -0,0 +1 @@
+e968a853779bb6438339e3b8d69d8d24
diff --git a/ffmpeg1/tests/ref/fate/iff-ilbm b/ffmpeg1/tests/ref/fate/iff-ilbm
new file mode 100644
index 0000000..a801aff
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/iff-ilbm
@@ -0,0 +1,2 @@
+#tb 0: 1/90000
+0, 0, 0, 0, 230400, 0x0929e342
diff --git a/ffmpeg1/tests/ref/fate/iff-pcm b/ffmpeg1/tests/ref/fate/iff-pcm
new file mode 100644
index 0000000..cffcc57
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/iff-pcm
@@ -0,0 +1 @@
+6dc1329541393525a60fd6b9782573f5
diff --git a/ffmpeg1/tests/ref/fate/iirfilter b/ffmpeg1/tests/ref/fate/iirfilter
new file mode 100644
index 0000000..2e5902d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/iirfilter
@@ -0,0 +1,1024 @@
+ 0 0
+ 38 2
+ 151 15
+ 339 65
+ 603 182
+ 942 381
+ 1356 664
+ 1845 1021
+ 2409 1450
+ 3046 1953
+ 3755 2530
+ 4535 3182
+ 5384 3907
+ 6300 4700
+ 7278 5563
+ 8315 6491
+ 9405 7481
+ 10541 8529
+ 11717 9629
+ 12924 10773
+ 14151 11956
+ 15385 13167
+ 16615 14396
+ 17825 15630
+ 18997 16857
+ 20114 18060
+ 21156 19222
+ 22102 20325
+ 22929 21349
+ 23613 22273
+ 24132 23073
+ 24461 23726
+ 24575 24208
+ 24453 24495
+ 24073 24564
+ 23416 24392
+ 22467 23959
+ 21213 23245
+ 19649 22236
+ 17773 20922
+ 15590 19296
+ 13116 17360
+ 10371 15119
+ 7386 12591
+ 4201 9797
+ 867 6771
+ -2559 3554
+ -6008 199
+ -9405 -3235
+-12667 -6678
+-15707 -10053
+-18435 -13277
+-20762 -16261
+-22602 -18916
+-23875 -21153
+-24511 -22887
+-24457 -24040
+-23675 -24546
+-22151 -24352
+-19895 -23428
+-16946 -21762
+-13370 -19370
+ -9265 -16296
+ -4757 -12613
+ 0 -8423
+ 4831 -3858
+ 9544 923
+ 13934 5743
+ 17799 10406
+ 20942 14708
+ 23189 18447
+ 24395 21430
+ 24457 23488
+ 23323 24483
+ 21001 24321
+ 17563 22963
+ 13148 20426
+ 7959 16795
+ 2259 12223
+ -3643 6922
+ -9405 1166
+-14670 -4731
+-19092 -10421
+-22359 -15550
+-24213 -19777
+-24481 -22797
+-23087 -24368
+-20071 -24334
+-15590 -22639
+ -9924 -19343
+ -3457 -14629
+ 3345 -8793
+ 9959 -2236
+ 15851 4563
+ 20517 11078
+ 23528 16779
+ 24575 21171
+ 23506 23846
+ 20349 24522
+ 15327 23076
+ 8845 19572
+ 1469 14264
+ -6117 7589
+-13180 135
+-18997 -7403
+-22942 -14289
+-24553 -19814
+-23592 -23377
+-20092 -24551
+-14366 -23145
+ -6989 -19239
+ 1244 -13192
+ 9405 -5620
+ 16532 2656
+ 21744 10697
+ 24357 17548
+ 23978 22356
+ 20579 24483
+ 14518 23593
+ 6518 19723
+ -2409 13293
+-11083 5078
+-18310 -3876
+-23048 -12378
+-24568 -19252
+-22573 -23500
+-17270 -24458
+ -9370 -21908
+ 0 -16140
+ 9439 -7935
+ 17484 1526
+ 22832 10824
+ 24568 18508
+ 22327 23330
+ 16392 24452
+ 7673 21608
+ -2409 15181
+-12146 6168
+-19828 -3955
+-24050 -13466
+-23978 -20689
+-19535 -24292
+-11451 -23552
+ -1168 -18512
+ 9405 -10015
+ 18234 416
+ 23560 10836
+ 24257 19234
+ 20092 23929
+ 11817 23916
+ 1055 19105
+ -9993 10379
+-18997 -540
+-23986 -11413
+-23802 -19939
+-18385 -24246
+ -8845 -23318
+ 2746 -17260
+ 13778 -7325
+ 21691 4319
+ 24575 15045
+ 21656 22357
+ 13528 24482
+ 2071 20823
+ -9959 12152
+-19581 484
+-24331 -11367
+-22915 -20460
+-15590 -24459
+ -4164 -22257
+ 8421 -14315
+ 18828 -2603
+ 24213 9857
+ 23022 19756
+ 15474 24383
+ 3569 22388
+ -9405 14211
+-19761 2031
+-24471 -10785
+-22069 -20591
+-13148 -24512
+ -264 -21311
+ 12763 -11818
+ 21968 1241
+ 24457 13990
+ 19351 22545
+ 8137 24211
+ -5715 18362
+-17799 6720
+-24167 -7108
+-22646 -18722
+-13622 -24326
+ 0 -21995
+ 13685 -12382
+ 22762 1409
+ 24035 14788
+ 16946 23188
+ 3867 23644
+-10643 15884
+-21401 2514
+-24457 -11806
+-18584 -21960
+ -5825 -24220
+ 9160 -17649
+ 20762 -4546
+ 24527 10303
+ 18901 21343
+ 5935 24337
+ -9405 18028
+-21098 4727
+-24442 -10470
+-17979 -21608
+ -4201 -24206
+ 11351 -17110
+ 22280 -3064
+ 23970 12287
+ 15590 22636
+ 565 23615
+-14760 14693
+-23773 -479
+-22467 -15504
+-11284 -23907
+ 4942 -21954
+ 19021 -10373
+ 24575 5837
+ 18973 19502
+ 4646 24445
+-11883 18316
+-22929 3786
+-23226 -12541
+-12505 -23090
+ 4239 -22841
+ 18997 -11784
+ 24567 4932
+ 18107 19331
+ 2671 24403
+-14151 17558
+-23919 2036
+-21602 -14549
+ -8244 -23897
+ 9405 -21206
+ 22232 -7710
+ 23473 9785
+ 12342 22272
+ -5384 23186
+-20286 11920
+-24287 -5693
+-15090 -20319
+ 2409 -24060
+ 18633 -14771
+ 24538 2613
+ 16698 18608
+ -603 24329
+-17616 16471
+-24575 -682
+-17351 -17495
+ 0 -24355
+ 17404 -17211
+ 24575 -65
+ 17136 17163
+ -603 24334
+-18031 17094
+-24538 -374
+-16023 -17660
+ 2409 -24287
+ 19397 -16108
+ 24287 1992
+ 13872 18902
+ -5384 24066
+-21251 14131
+-23473 -4761
+-10473 -20664
+ 9405 -23351
+ 23151 -10967
+ 21602 8573
+ 5642 22543
+-14151 21682
+-24430 6431
+-18107 -13147
+ 641 -23920
+ 18997 -18514
+ 24207 -475
+ 12505 17922
+ -8030 23970
+-22929 13357
+-21511 -6625
+ -4646 -21972
+ 15619 -21758
+ 24575 -6009
+ 15561 14083
+ -4942 24019
+-21831 16485
+-22467 -3138
+ -6227 -20474
+ 14760 -22641
+ 24569 -7904
+ 15590 12791
+ -5421 23839
+-22280 16760
+-21797 -3160
+ -4201 -20666
+ 16754 -22169
+ 24442 -6381
+ 12602 14430
+ -9405 23865
+-23848 14348
+-18901 -6644
+ 1545 -22308
+ 20762 -19937
+ 22804 -1339
+ 5825 18365
+-16080 22954
+-24457 8529
+-12080 -13009
+ 10643 -23650
+ 24269 -14353
+ 16946 7119
+ -5127 22521
+-22762 18602
+-20413 -1370
+ 0 -20152
+ 20454 -21342
+ 22646 -3797
+ 4461 17096
+-17799 22804
+-23902 8148
+ -8137 -13817
+ 15149 -23296
+ 24457 -11618
+ 11016 10660
+-12763 23135
+-24574 14243
+-13148 -7861
+ 10813 -22608
+ 24471 -16124
+ 14609 5565
+ -9405 21949
+-24315 17379
+-15474 -3849
+ 8598 -21336
+ 24213 -18120
+ 15793 2745
+ -8421 20885
+-24220 18429
+-15590 -2263
+ 8880 -20663
+ 24331 -18359
+ 14851 2398
+ -9959 20685
+-24488 17917
+-13528 -3137
+ 11618 -20918
+ 24575 -17075
+ 11551 4460
+-13778 21286
+-24421 15770
+ -8845 -6328
+ 16307 -21661
+ 23802 -13916
+ 5348 8671
+-18997 21868
+-22452 11421
+ -1055 -11371
+ 21548 -21685
+ 20092 -8212
+ -3941 14242
+-23560 20853
+-16476 4267
+ 9405 -17009
+ 24547 -19106
+ 11451 343
+-14911 19309
+-23978 16208
+ -5053 -5409
+ 19828 -20699
+ 21364 -12016
+ -2409 10553
+-23347 20700
+-16392 6559
+ 10268 -15211
+ 24568 -18879
+ 9090 -118
+-17484 18664
+-22690 14969
+ 0 -6714
+ 22719 -20134
+ 17270 -9014
+ -9717 13022
+-24568 18943
+ -8527 1506
+ 18310 -17662
+ 21934 -14749
+ -2409 6538
+-23695 19463
+-14518 7789
+ 13433 -13633
+ 23978 -17566
+ 3270 935
+-21744 18075
+-18184 11812
+ 9405 -9654
+ 24544 -18394
+ 6989 -3082
+-19939 16117
+-20092 13945
+ 6881 -6613
+ 24553 -18196
+ 8809 -5437
+-18997 14458
+-20742 14731
+ 6117 -4859
+ 24531 -17657
+ 8845 -6307
+-19210 13526
+-20349 14588
+ 7170 -4444
+ 24575 -17109
+ 7098 -5874
+-20517 13412
+-18780 13691
+ 9959 -5272
+ 24347 -16558
+ 3457 -4241
+-22482 13949
+-15590 11979
+ 14181 -7142
+ 23087 -15723
+ -2146 -1459
+-24213 14726
+-10200 9228
+ 19092 -9692
+ 19717 -14108
+ -9405 2343
+-24304 15085
+ -2259 5221
+ 23251 -12286
+ 13148 -11127
+-17190 6746
+-21001 14161
+ 7745 2
+ 24457 -13938
+ 2971 -6372
+-23189 10842
+-12860 11094
+ 17799 -5795
+ 20243 -13421
+ -9544 -30
+-24096 13184
+ 0 5498
+ 24110 -10713
+ 9265 -9718
+-20620 6673
+-16946 12155
+ 14427 -1883
+ 22151 -12653
+ -6591 -2861
+-24457 11378
+ -1770 6908
+ 23875 -8726
+ 9648 -9817
+-20762 5209
+-16251 11385
+ 15707 -1358
+ 21059 -11610
+ -9405 -2353
+-23830 10656
+ 2559 5560
+ 24560 -8789
+ 4201 -8028
+-23439 6314
+-10371 9643
+ 20783 -3542
+ 15590 -10404
+-16973 742
+-19649 10386
+ 12407 1870
+ 22467 -9720
+ -7458 -4144
+-24073 8562
+ 2446 5991
+ 24575 -7072
+ 2371 -7375
+-24132 5398
+ -6808 8306
+ 22929 -3667
+ 10745 -8824
+-21156 1980
+-14120 8987
+ 18997 -408
+ 16918 -8863
+-16615 -1001
+-19163 8521
+ 14151 2220
+ 20902 -8027
+-11717 -3241
+-22200 7441
+ 9405 4071
+ 23126 -6811
+ -7278 -4722
+-23754 6177
+ 5384 5213
+ 24153 -5571
+ -3755 -5566
+-24386 5013
+ 2409 5801
+ 24506 -4521
+ -1356 -5939
+-24557 4104
+ 603 5999
+ 24573 -3765
+ -151 -5994
+-24575 3508
+ 0 5937
+ 24575 -3331
+ -151 -5835
+-24573 3232
+ 603 5694
+ 24557 -3205
+ -1356 -5517
+-24506 3244
+ 2409 5303
+ 24386 -3343
+ -3755 -5049
+-24153 3494
+ 5384 4752
+ 23754 -3685
+ -7278 -4407
+-23126 3906
+ 9405 4007
+ 22200 -4143
+-11717 -3547
+-20902 4380
+ 14151 3025
+ 19163 -4598
+-16615 -2434
+-16918 4778
+ 18997 1780
+ 14120 -4898
+-21156 -1066
+-10745 4934
+ 22929 304
+ 6808 -4862
+-24132 489
+ -2371 4664
+ 24575 -1288
+ -2446 -4320
+-24073 2060
+ 7458 3820
+ 22467 -2767
+-12407 -3162
+-19649 3365
+ 16973 2357
+ 15590 -3808
+-20783 -1429
+-10371 4050
+ 23439 419
+ 4201 -4055
+-24560 616
+ 2559 3795
+ 23830 -1607
+ -9405 -3266
+-21059 2473
+ 15707 2486
+ 16251 -3130
+-20762 -1499
+ -9648 3505
+ 23875 386
+ 1770 -3539
+-24457 754
+ 6591 3205
+ 22151 -1798
+-14427 -2518
+-16946 2618
+ 20620 1540
+ 9265 -3101
+-24110 -381
+ 0 3162
+ 24096 -809
+ -9544 -2775
+-20243 1859
+ 17799 1978
+ 12860 -2598
+-23189 -879
+ -2971 2893
+ 24457 -344
+ -7745 -2674
+-21001 1478
+ 17190 1966
+ 13148 -2304
+-23251 -890
+ -2259 2647
+ 24304 -341
+ -9405 -2421
+-19717 1467
+ 19092 1662
+ 10200 -2229
+-24213 -535
+ 2146 2434
+ 23087 -692
+-14181 -2022
+-15590 1706
+ 22482 1090
+ 3457 -2230
+-24347 115
+ 9959 2111
+ 18780 -1251
+-20517 -1374
+ -7098 1975
+ 24575 238
+ -7170 -2057
+-20349 938
+ 19210 1464
+ 8845 -1763
+-24531 -392
+ 6117 1949
+ 20742 -783
+-18997 -1425
+ -8809 1630
+ 24553 385
+ -6881 -1825
+-20092 770
+ 19939 1291
+ 6989 -1572
+-24544 -244
+ 9405 1688
+ 18184 -869
+-21744 -1069
+ -3270 1559
+ 23978 -7
+-13433 -1511
+-14518 1041
+ 23695 753
+ -2409 -1536
+-21934 344
+ 18310 1251
+ 8527 -1225
+-24568 -337
+ 9717 1436
+ 17270 -719
+-22719 -869
+ 0 1342
+ 22690 -157
+-17484 -1188
+ -9090 1051
+ 24568 353
+-10268 -1293
+-16392 658
+ 23347 745
+ -2409 -1224
+-21364 244
+ 19828 996
+ 5053 -1036
+-23978 -132
+ 14911 1114
+ 11451 -783
+-24547 -437
+ 9405 1124
+ 16476 -513
+-23560 -661
+ 3941 1058
+ 20092 -257
+-21548 -807
+ -1055 945
+ 22452 -37
+-18997 -887
+ -5348 815
+ 23802 142
+-16307 -917
+ -8845 682
+ 24421 276
+-13778 -913
+-11551 563
+ 24575 371
+-11618 -888
+-13528 463
+ 24488 431
+ -9959 -854
+-14851 386
+ 24331 462
+ -8880 -815
+-15590 333
+ 24220 471
+ -8421 -779
+-15793 302
+ 24213 460
+ -8598 -746
+-15474 292
+ 24315 433
+ -9405 -717
+-14609 300
+ 24471 391
+-10813 -689
+-13148 324
+ 24574 336
+-12763 -660
+-11016 359
+ 24457 267
+-15149 -627
+ -8137 400
+ 23902 184
+-17799 -584
+ -4461 444
+ 22646 90
+-20454 -527
+ 0 483
+ 20413 -15
+-22762 -452
+ 5127 511
+ 16946 -124
+-24269 -357
+ 10643 517
+ 12080 -232
+-24457 -241
+ 16080 495
+ 5825 -328
+-22804 -107
+ 20762 440
+ -1545 -400
+-18901 35
+ 23848 347
+ -9405 -437
+-12602 173
+ 24442 220
+-16754 -426
+ -4201 290
+ 21797 69
+-22280 -362
+ 5421 366
+ 15590 -89
+-24569 -247
+ 14760 384
+ 6227 -228
+-22467 -95
+ 21831 335
+ -4942 -321
+-15561 71
+ 24575 222
+-15619 -344
+ -4646 214
+ 21511 65
+-22929 -288
+ 8030 300
+ 12505 -102
+-24207 -162
+ 18997 304
+ -641 -232
+-18107 4
+ 24430 218
+-14151 -286
+ -5642 160
+ 21602 68
+-23151 -244
+ 9405 253
+ 10473 -97
+-23473 -115
+ 21251 247
+ -5384 -216
+-13872 49
+ 24287 142
+-19397 -238
+ 2409 183
+ 16023 -17
+-24538 -153
+ 18031 224
+ -603 -158
+-17136 0
+ 24575 153
+-17404 -209
+ 0 142
+ 17351 6
+-24575 -144
+ 17616 196
+ -603 -133
+-16698 -1
+ 24538 131
+-18633 -182
+ 2409 132
+ 15090 -11
+-24287 -111
+ 20286 169
+ -5384 -134
+-12342 30
+ 23473 86
+-22232 -152
+ 9405 138
+ 8244 -53
+-21602 -56
+ 23919 132
+-14151 -138
+ -2671 76
+ 18107 21
+-24567 -104
+ 18997 134
+ -4239 -98
+-12505 16
+ 23226 69
+-22929 -119
+ 11883 111
+ 4646 -53
+-18973 -28
+ 24575 92
+-19021 -113
+ 4942 82
+ 11284 -16
+-22467 -54
+ 23773 97
+-14760 -97
+ -565 56
+ 15590 8
+-23970 -65
+ 22280 93
+-11351 -82
+ -4201 37
+ 17979 21
+-24442 -67
+ 21098 85
+ -9405 -69
+ -5935 26
+ 18901 24
+-24527 -64
+ 20762 77
+ -9160 -61
+ -5825 23
+ 18584 21
+-24457 -56
+ 21401 69
+-10643 -57
+ -3867 25
+ 16946 15
+-24035 -47
+ 22762 62
+-13685 -55
+ 0 29
+ 13622 4
+-22646 -35
+ 24167 53
+-17799 -52
+ 5715 36
+ 8137 -8
+-19351 -21
+ 24457 41
+-21968 -49
+ 12763 41
+ 264 -21
+-13148 -4
+ 22069 27
+-24471 -40
+ 19761 42
+ -9405 -31
+ -3569 12
+ 15474 9
+-23022 -27
+ 24213 36
+-18828 -35
+ 8421 25
+ 4164 -9
+-15590 -9
+ 22915 23
+-24331 -31
+ 19581 31
+ -9959 -23
+ -2071 10
+ 13528 5
+-21656 -18
+ 24575 26
+-21691 -27
+ 13778 22
+ -2746 -12
+ -8845 0
+ 18385 11
+-23802 -20
+ 23986 23
+-18997 -22
+ 9993 15
+ 1055 -7
+-11817 -3
+ 20092 11
+-24257 -17
+ 23560 19
+-18234 -17
+ 9405 12
+ 1168 -5
+-11451 -3
+ 19535 10
+-23978 -14
+ 24050 16
+-19828 -14
+ 12146 11
+ -2409 -5
+ -7673 0
+ 16392 6
+-22327 -10
+ 24568 12
+-22832 -12
+ 17484 11
+ -9439 -7
+ 0 3
+ 9370 2
+-17270 -5
+ 22573 8
+-24568 -9
+ 23048 10
+-18310 -8
+ 11083 5
+ -2409 -3
+ -6518 -1
+ 14518 3
+-20579 -5
+ 23978 7
+-24357 -7
+ 21744 7
+-16532 -6
+ 9405 3
+ -1244 -1
+ -6989 -1
+ 14366 3
+-20092 -4
+ 23592 5
+-24553 -5
+ 22942 5
+-18997 -4
+ 13180 3
+ -6117 -2
+ -1469 1
+ 8845 2
+-15327 -2
+ 20349 3
+-23506 -4
+ 24575 3
+-23528 -4
+ 20517 3
+-15851 -2
+ 9959 1
+ -3345 0
+ -3457 0
+ 9924 1
+-15590 -2
+ 20071 2
+-23087 -2
+ 24481 3
+-24213 -2
+ 22359 2
+-19092 -1
+ 14670 1
+ -9405 0
+ 3643 0
+ 2259 0
+ -7959 -1
+ 13148 1
+-17563 -1
+ 21001 1
+-23323 -1
+ 24457 1
+-24395 -1
+ 23189 1
+-20942 -1
+ 17799 1
+-13934 0
+ 9544 0
+ -4831 0
+ 0 0
+ 4757 1
+ -9265 0
+ 13370 0
+-16946 -1
+ 19895 0
+-22151 -1
+ 23675 0
+-24457 -1
+ 24511 0
+-23875 0
+ 22602 0
+-20762 0
+ 18435 0
+-15707 0
+ 12667 0
+ -9405 0
+ 6008 0
+ -2559 0
+ -867 0
+ 4201 0
+ -7386 0
+ 10371 0
+-13116 0
+ 15590 0
+-17773 0
+ 19649 0
+-21213 0
+ 22467 0
+-23416 0
+ 24073 0
+-24453 0
+ 24575 0
+-24461 0
+ 24132 0
+-23613 0
+ 22929 0
+-22102 0
+ 21156 0
+-20114 0
+ 18997 0
+-17825 0
+ 16615 0
+-15385 0
+ 14151 0
+-12924 0
+ 11717 0
+-10541 0
+ 9405 0
+ -8315 0
+ 7278 0
+ -6300 0
+ 5384 0
+ -4535 0
+ 3755 0
+ -3046 0
+ 2409 0
+ -1845 0
+ 1356 0
+ -942 0
+ 603 0
+ -339 0
+ 151 0
+ -38 0
diff --git a/ffmpeg1/tests/ref/fate/indeo2 b/ffmpeg1/tests/ref/fate/indeo2
new file mode 100644
index 0000000..9f80f35
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/indeo2
@@ -0,0 +1,131 @@
+#tb 0: 66667/1000000
+0, 0, 0, 1, 21600, 0x57a2ba42
+0, 1, 1, 1, 21600, 0x61e09615
+0, 2, 2, 1, 21600, 0x826e4e63
+0, 3, 3, 1, 21600, 0x107716ec
+0, 4, 4, 1, 21600, 0xb35ce1f4
+0, 5, 5, 1, 21600, 0x12cab085
+0, 6, 6, 1, 21600, 0x2f917f69
+0, 7, 7, 1, 21600, 0x25aa3d6e
+0, 8, 8, 1, 21600, 0xab1bfbed
+0, 9, 9, 1, 21600, 0x9936dff9
+0, 10, 10, 1, 21600, 0xc23cd8e5
+0, 11, 11, 1, 21600, 0xa7ebbcaa
+0, 12, 12, 1, 21600, 0xd4dda045
+0, 13, 13, 1, 21600, 0xcbce6d7d
+0, 14, 14, 1, 21600, 0x3cf35baf
+0, 15, 15, 1, 21600, 0x16de6008
+0, 16, 16, 1, 21600, 0x49d41acf
+0, 17, 17, 1, 21600, 0x8c630034
+0, 18, 18, 1, 21600, 0x0b310296
+0, 19, 19, 1, 21600, 0x4887067d
+0, 20, 20, 1, 21600, 0x1219f29e
+0, 21, 21, 1, 21600, 0x3f3fc0c8
+0, 22, 22, 1, 21600, 0x1bd1d0fc
+0, 23, 23, 1, 21600, 0x913f9d4c
+0, 24, 24, 1, 21600, 0x69e9a6b4
+0, 25, 25, 1, 21600, 0xcc2e917f
+0, 26, 26, 1, 21600, 0xf6967e30
+0, 27, 27, 1, 21600, 0xdf816593
+0, 28, 28, 1, 21600, 0xfd945b75
+0, 29, 29, 1, 21600, 0x7d7e0224
+0, 30, 30, 1, 21600, 0x7246f584
+0, 31, 31, 1, 21600, 0x07b7ce82
+0, 32, 32, 1, 21600, 0xee16c291
+0, 33, 33, 1, 21600, 0xf4efb53a
+0, 34, 34, 1, 21600, 0x2e73a208
+0, 35, 35, 1, 21600, 0x1c2b6068
+0, 36, 36, 1, 21600, 0x004250de
+0, 37, 37, 1, 21600, 0x61d957d9
+0, 38, 38, 1, 21600, 0x8b5d2cb0
+0, 39, 39, 1, 21600, 0xc0a91fbc
+0, 40, 40, 1, 21600, 0xa38108fc
+0, 41, 41, 1, 21600, 0x551f03b9
+0, 42, 42, 1, 21600, 0x93def5ca
+0, 43, 43, 1, 21600, 0xe8ecf8bb
+0, 44, 44, 1, 21600, 0x4c04fbb0
+0, 45, 45, 1, 21600, 0x0e41dae4
+0, 46, 46, 1, 21600, 0xca9fb0df
+0, 47, 47, 1, 21600, 0xb123af19
+0, 48, 48, 1, 21600, 0xfd59be7a
+0, 49, 49, 1, 21600, 0x2c88b7a6
+0, 50, 50, 1, 21600, 0x64cc9a1f
+0, 51, 51, 1, 21600, 0x73d6a9ba
+0, 52, 52, 1, 21600, 0x79198a11
+0, 53, 53, 1, 21600, 0x0d4a8610
+0, 54, 54, 1, 21600, 0x352e71bc
+0, 55, 55, 1, 21600, 0x08aa627e
+0, 56, 56, 1, 21600, 0xbee36e45
+0, 57, 57, 1, 21600, 0x30de5c1b
+0, 58, 58, 1, 21600, 0x21d75484
+0, 59, 59, 1, 21600, 0xe0e91d52
+0, 60, 60, 1, 21600, 0x678c2ebb
+0, 61, 61, 1, 21600, 0x2080397b
+0, 62, 62, 1, 21600, 0x7dbc1333
+0, 63, 63, 1, 21600, 0x9c730ad0
+0, 64, 64, 1, 21600, 0x4da50f55
+0, 65, 65, 1, 21600, 0xdde5eaa7
+0, 66, 66, 1, 21600, 0x949ed4fa
+0, 67, 67, 1, 21600, 0x5d63bc54
+0, 68, 68, 1, 21600, 0xc5dcba4f
+0, 69, 69, 1, 21600, 0xd68caee1
+0, 70, 70, 1, 21600, 0xf7409fc9
+0, 71, 71, 1, 21600, 0x6b0ca3e5
+0, 72, 72, 1, 21600, 0xd133a108
+0, 73, 73, 1, 21600, 0xf2687b81
+0, 74, 74, 1, 21600, 0x6e94645d
+0, 75, 75, 1, 21600, 0xff7e7524
+0, 76, 76, 1, 21600, 0x8c7255dd
+0, 77, 77, 1, 21600, 0x84e979cf
+0, 78, 78, 1, 21600, 0xaa4e7127
+0, 79, 79, 1, 21600, 0x0b56708c
+0, 80, 80, 1, 21600, 0x38f086c4
+0, 81, 81, 1, 21600, 0x6a7086f6
+0, 82, 82, 1, 21600, 0x57a3619d
+0, 83, 83, 1, 21600, 0xee27639a
+0, 84, 84, 1, 21600, 0x754b7ec6
+0, 85, 85, 1, 21600, 0x2f7b428c
+0, 86, 86, 1, 21600, 0x0dc94603
+0, 87, 87, 1, 21600, 0xeede54d8
+0, 88, 88, 1, 21600, 0x587b4725
+0, 89, 89, 1, 21600, 0xe7c72c7a
+0, 90, 90, 1, 21600, 0x523949cb
+0, 91, 91, 1, 21600, 0xeade5385
+0, 92, 92, 1, 21600, 0x1a8f45c8
+0, 93, 93, 1, 21600, 0x814a393c
+0, 94, 94, 1, 21600, 0xe7b34887
+0, 95, 95, 1, 21600, 0x8eef3f5f
+0, 96, 96, 1, 21600, 0x56f12f08
+0, 97, 97, 1, 21600, 0xb2d02448
+0, 98, 98, 1, 21600, 0xb7d936db
+0, 99, 99, 1, 21600, 0x45f726ab
+0, 100, 100, 1, 21600, 0x6012404d
+0, 101, 101, 1, 21600, 0x273c254e
+0, 102, 102, 1, 21600, 0x38e82c19
+0, 103, 103, 1, 21600, 0x73653274
+0, 104, 104, 1, 21600, 0x2ff63b0c
+0, 105, 105, 1, 21600, 0x96d03611
+0, 106, 106, 1, 21600, 0xee8c29d7
+0, 107, 107, 1, 21600, 0xac043199
+0, 108, 108, 1, 21600, 0xd2c741a7
+0, 109, 109, 1, 21600, 0xdc7b2b81
+0, 110, 110, 1, 21600, 0x376f438f
+0, 111, 111, 1, 21600, 0x55442ff7
+0, 112, 112, 1, 21600, 0x653b1472
+0, 113, 113, 1, 21600, 0xc4293779
+0, 114, 114, 1, 21600, 0xc6553740
+0, 115, 115, 1, 21600, 0xcf441053
+0, 116, 116, 1, 21600, 0xb1531bce
+0, 117, 117, 1, 21600, 0x145323b3
+0, 118, 118, 1, 21600, 0x916c2e9e
+0, 119, 119, 1, 21600, 0xb89bfecc
+0, 120, 120, 1, 21600, 0x8e2415b9
+0, 121, 121, 1, 21600, 0x5af23021
+0, 122, 122, 1, 21600, 0x53e81c10
+0, 123, 123, 1, 21600, 0xf7f82a6f
+0, 124, 124, 1, 21600, 0x851121a2
+0, 125, 125, 1, 21600, 0xa8432bd2
+0, 126, 126, 1, 21600, 0x1a381799
+0, 127, 127, 1, 21600, 0xbb761384
+0, 128, 128, 1, 21600, 0xc8f328d5
+0, 129, 129, 1, 21600, 0xb3742e8a
diff --git a/ffmpeg1/tests/ref/fate/indeo3 b/ffmpeg1/tests/ref/fate/indeo3
new file mode 100644
index 0000000..0f55649
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/indeo3
@@ -0,0 +1,41 @@
+#tb 0: 1/10
+0, 0, 0, 1, 21600, 0x845098fc
+0, 1, 1, 1, 21600, 0xc28e8bf0
+0, 2, 2, 1, 21600, 0x2f418fb4
+0, 3, 3, 1, 21600, 0x051d7a0e
+0, 4, 4, 1, 21600, 0x1b36aa7c
+0, 5, 5, 1, 21600, 0xb9e2ad38
+0, 6, 6, 1, 21600, 0x8dc99b60
+0, 7, 7, 1, 21600, 0xa3fa789a
+0, 8, 8, 1, 21600, 0x1fdbade2
+0, 9, 9, 1, 21600, 0x4f4ac164
+0, 10, 10, 1, 21600, 0x0ea5cb50
+0, 11, 11, 1, 21600, 0xfb659528
+0, 12, 12, 1, 21600, 0xac5790f8
+0, 13, 13, 1, 21600, 0x9762beb4
+0, 14, 14, 1, 21600, 0x29b0da0a
+0, 15, 15, 1, 21600, 0x6d88b0da
+0, 16, 16, 1, 21600, 0x687b8efa
+0, 17, 17, 1, 21600, 0xcd726220
+0, 18, 18, 1, 21600, 0xa1766598
+0, 19, 19, 1, 21600, 0xff4b8074
+0, 20, 20, 1, 21600, 0x845098fc
+0, 21, 21, 1, 21600, 0xdb259e08
+0, 22, 22, 1, 21600, 0xb6bda5a0
+0, 23, 23, 1, 21600, 0xbb998962
+0, 24, 24, 1, 21600, 0x28aa7b7c
+0, 25, 25, 1, 21600, 0x1ad1a15c
+0, 26, 26, 1, 21600, 0xb535a128
+0, 27, 27, 1, 21600, 0x4dbf968a
+0, 28, 28, 1, 21600, 0xfe90a8d6
+0, 29, 29, 1, 21600, 0xf63fabf0
+0, 30, 30, 1, 21600, 0xd6fabe58
+0, 31, 31, 1, 21600, 0x172eb09c
+0, 32, 32, 1, 21600, 0x44f8a8fe
+0, 33, 33, 1, 21600, 0x29429a06
+0, 34, 34, 1, 21600, 0xb12f8cc4
+0, 35, 35, 1, 21600, 0xd0c78cb4
+0, 36, 36, 1, 21600, 0x97e17e0c
+0, 37, 37, 1, 21600, 0xf8ac6700
+0, 38, 38, 1, 21600, 0xf9c17c94
+0, 39, 39, 1, 21600, 0xb10e8c54
diff --git a/ffmpeg1/tests/ref/fate/indeo4 b/ffmpeg1/tests/ref/fate/indeo4
new file mode 100644
index 0000000..7f60461
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/indeo4
@@ -0,0 +1,101 @@
+#tb 0: 1/15
+0, 0, 0, 1, 86400, 0x98f5e422
+0, 1, 1, 1, 86400, 0x1864cb06
+0, 2, 2, 1, 86400, 0xb09532ef
+0, 3, 3, 1, 86400, 0x3cd3dcdc
+0, 4, 4, 1, 86400, 0xe738847f
+0, 5, 5, 1, 86400, 0xc9b13afb
+0, 6, 6, 1, 86400, 0x5005d035
+0, 7, 7, 1, 86400, 0x22f63e17
+0, 8, 8, 1, 86400, 0x93391f02
+0, 9, 9, 1, 86400, 0x264830fd
+0, 10, 10, 1, 86400, 0x8fff9f5f
+0, 11, 11, 1, 86400, 0x524997fe
+0, 12, 12, 1, 86400, 0x54e330f9
+0, 13, 13, 1, 86400, 0x1d766a22
+0, 14, 14, 1, 86400, 0x683a70ac
+0, 15, 15, 1, 86400, 0x553b7b3d
+0, 16, 16, 1, 86400, 0x822c79bc
+0, 17, 17, 1, 86400, 0xe1087a1c
+0, 18, 18, 1, 86400, 0xff397595
+0, 19, 19, 1, 86400, 0x1b6b7717
+0, 20, 20, 1, 86400, 0x6c5275c1
+0, 21, 21, 1, 86400, 0x4e6a7189
+0, 22, 22, 1, 86400, 0x285c6eba
+0, 23, 23, 1, 86400, 0xce647227
+0, 24, 24, 1, 86400, 0xa0d07b1c
+0, 25, 25, 1, 86400, 0x5b567861
+0, 26, 26, 1, 86400, 0x105873ec
+0, 27, 27, 1, 86400, 0x59267fa0
+0, 28, 28, 1, 86400, 0xaeac839f
+0, 29, 29, 1, 86400, 0x2faf7402
+0, 30, 30, 1, 86400, 0xc8547a30
+0, 31, 31, 1, 86400, 0x3d357d49
+0, 32, 32, 1, 86400, 0x75db6d6c
+0, 33, 33, 1, 86400, 0x9fbf68e9
+0, 34, 34, 1, 86400, 0x56a64d26
+0, 35, 35, 1, 86400, 0xce9e1f43
+0, 36, 36, 1, 86400, 0xa4d7fddc
+0, 37, 37, 1, 86400, 0x3e20d77c
+0, 38, 38, 1, 86400, 0x4680661d
+0, 39, 39, 1, 86400, 0xf1b20af3
+0, 40, 40, 1, 86400, 0xb79d8045
+0, 41, 41, 1, 86400, 0x9479fc8a
+0, 42, 42, 1, 86400, 0x232965c3
+0, 43, 43, 1, 86400, 0xd18bca17
+0, 44, 44, 1, 86400, 0xb9064249
+0, 45, 45, 1, 86400, 0xcc48ab34
+0, 46, 46, 1, 86400, 0xe25018cd
+0, 47, 47, 1, 86400, 0x8da489ee
+0, 48, 48, 1, 86400, 0x90de0fc1
+0, 49, 49, 1, 86400, 0x2428dcee
+0, 50, 50, 1, 86400, 0x4316e1ae
+0, 51, 51, 1, 86400, 0x2b25e54c
+0, 52, 52, 1, 86400, 0x736ce020
+0, 53, 53, 1, 86400, 0x9a6be09a
+0, 54, 54, 1, 86400, 0x23bddbcd
+0, 55, 55, 1, 86400, 0x9368e465
+0, 56, 56, 1, 86400, 0x1ae9bb87
+0, 57, 57, 1, 86400, 0x4e591f32
+0, 58, 58, 1, 86400, 0xba1bf9dc
+0, 59, 59, 1, 86400, 0x07f0aa60
+0, 60, 60, 1, 86400, 0xf5a2cfa2
+0, 61, 61, 1, 86400, 0xcba5fc18
+0, 62, 62, 1, 86400, 0x858c0cfe
+0, 63, 63, 1, 86400, 0xac73ecd4
+0, 64, 64, 1, 86400, 0xf41bf03c
+0, 65, 65, 1, 86400, 0x928ed146
+0, 66, 66, 1, 86400, 0x9ff5990a
+0, 67, 67, 1, 86400, 0xc2fabc3d
+0, 68, 68, 1, 86400, 0x94af87a3
+0, 69, 69, 1, 86400, 0x9bae514c
+0, 70, 70, 1, 86400, 0xe0da267a
+0, 71, 71, 1, 86400, 0x1d40f55c
+0, 72, 72, 1, 86400, 0xe6173b68
+0, 73, 73, 1, 86400, 0x1445490d
+0, 74, 74, 1, 86400, 0x8d8753c1
+0, 75, 75, 1, 86400, 0xe5a7779d
+0, 76, 76, 1, 86400, 0x3cfc66ef
+0, 77, 77, 1, 86400, 0xa5d45608
+0, 78, 78, 1, 86400, 0x62f17be1
+0, 79, 79, 1, 86400, 0xa64c84d3
+0, 80, 80, 1, 86400, 0xf98162f0
+0, 81, 81, 1, 86400, 0x0db77d9f
+0, 82, 82, 1, 86400, 0x0f0cbac9
+0, 83, 83, 1, 86400, 0xb9934e97
+0, 84, 84, 1, 86400, 0x7f8fa248
+0, 85, 85, 1, 86400, 0xdfd96768
+0, 86, 86, 1, 86400, 0x81b07919
+0, 87, 87, 1, 86400, 0x66c11e9f
+0, 88, 88, 1, 86400, 0xd86eb114
+0, 89, 89, 1, 86400, 0x67f20c1f
+0, 90, 90, 1, 86400, 0x66915de5
+0, 91, 91, 1, 86400, 0x2b8aa76f
+0, 92, 92, 1, 86400, 0x85b5a3d2
+0, 93, 93, 1, 86400, 0x80d29ed6
+0, 94, 94, 1, 86400, 0x4d508e2c
+0, 95, 95, 1, 86400, 0x0d407374
+0, 96, 96, 1, 86400, 0xd4068016
+0, 97, 97, 1, 86400, 0x6ffab98f
+0, 98, 98, 1, 86400, 0x2360903d
+0, 99, 99, 1, 86400, 0x470e04a0
diff --git a/ffmpeg1/tests/ref/fate/indeo5 b/ffmpeg1/tests/ref/fate/indeo5
new file mode 100644
index 0000000..7b91238
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/indeo5
@@ -0,0 +1,134 @@
+#tb 0: 1/15
+0, 0, 0, 1, 48600, 0x72d4193b
+0, 2, 2, 1, 48600, 0x36abd6f3
+0, 3, 3, 1, 48600, 0x99e582f7
+0, 4, 4, 1, 48600, 0xa4cb6fb7
+0, 5, 5, 1, 48600, 0xf9b5657b
+0, 6, 6, 1, 48600, 0xb7d666a4
+0, 7, 7, 1, 48600, 0xb7345308
+0, 8, 8, 1, 48600, 0x4f5339b9
+0, 9, 9, 1, 48600, 0x1a9a02c7
+0, 10, 10, 1, 48600, 0x4ed40866
+0, 11, 11, 1, 48600, 0x635bf2af
+0, 12, 12, 1, 48600, 0x12c02f49
+0, 13, 13, 1, 48600, 0xc548a36d
+0, 14, 14, 1, 48600, 0x9d9ffbf0
+0, 15, 15, 1, 48600, 0x4f9dba66
+0, 16, 16, 1, 48600, 0x2332b0e4
+0, 17, 17, 1, 48600, 0x6c64342d
+0, 18, 18, 1, 48600, 0x81156d54
+0, 19, 19, 1, 48600, 0x8bfb9f04
+0, 20, 20, 1, 48600, 0xd6bc38db
+0, 21, 21, 1, 48600, 0x64de39d7
+0, 22, 22, 1, 48600, 0xbddb3c37
+0, 23, 23, 1, 48600, 0x15b75a31
+0, 24, 24, 1, 48600, 0xa2dd7bdf
+0, 25, 25, 1, 48600, 0xe4fb9b25
+0, 26, 26, 1, 48600, 0xf2788234
+0, 27, 27, 1, 48600, 0xa481a3d0
+0, 28, 28, 1, 48600, 0x6087c790
+0, 29, 29, 1, 48600, 0xf1dacfa1
+0, 30, 30, 1, 48600, 0xe29e2e78
+0, 31, 31, 1, 48600, 0x505b2db1
+0, 32, 32, 1, 48600, 0x7bc56b02
+0, 33, 33, 1, 48600, 0x3f7640de
+0, 34, 34, 1, 48600, 0xd21a3f0b
+0, 35, 35, 1, 48600, 0x92dc9b72
+0, 36, 36, 1, 48600, 0x26e6804e
+0, 37, 37, 1, 48600, 0xc3867fdc
+0, 38, 38, 1, 48600, 0xe135c689
+0, 39, 39, 1, 48600, 0xf0fda68b
+0, 40, 40, 1, 48600, 0x7e07a430
+0, 41, 41, 1, 48600, 0xb0809c56
+0, 42, 42, 1, 48600, 0xd3f3d4b0
+0, 43, 43, 1, 48600, 0x068ce7b9
+0, 44, 44, 1, 48600, 0x3ae5ebb7
+0, 45, 45, 1, 48600, 0x2274d1d8
+0, 46, 46, 1, 48600, 0x9a2b95b7
+0, 47, 47, 1, 48600, 0xe864dc3d
+0, 48, 48, 1, 48600, 0xdf39d4db
+0, 49, 49, 1, 48600, 0x5155c707
+0, 50, 50, 1, 48600, 0xa26e9879
+0, 51, 51, 1, 48600, 0x91b5747c
+0, 52, 52, 1, 48600, 0xe7925589
+0, 53, 53, 1, 48600, 0x582f1cb2
+0, 54, 54, 1, 48600, 0x13180bdb
+0, 55, 55, 1, 48600, 0x1623d914
+0, 56, 56, 1, 48600, 0xfeeea068
+0, 57, 57, 1, 48600, 0x61f8679c
+0, 58, 58, 1, 48600, 0xcb678447
+0, 59, 59, 1, 48600, 0xd0028749
+0, 60, 60, 1, 48600, 0xec116a9c
+0, 61, 61, 1, 48600, 0x16926417
+0, 62, 62, 1, 48600, 0x342c6014
+0, 63, 63, 1, 48600, 0xb81a3ec3
+0, 64, 64, 1, 48600, 0xfd0d4654
+0, 65, 65, 1, 48600, 0x741cc27a
+0, 66, 66, 1, 48600, 0x2c53a9fe
+0, 67, 67, 1, 48600, 0x795dc493
+0, 68, 68, 1, 48600, 0x46eebc82
+0, 69, 69, 1, 48600, 0xa2b7b84b
+0, 70, 70, 1, 48600, 0x2274c95e
+0, 71, 71, 1, 48600, 0x0ba5ac69
+0, 72, 72, 1, 48600, 0x8335eb20
+0, 73, 73, 1, 48600, 0xca80ef55
+0, 74, 74, 1, 48600, 0xbb7cec8a
+0, 75, 75, 1, 48600, 0x775bdde2
+0, 76, 76, 1, 48600, 0x68a5a673
+0, 77, 77, 1, 48600, 0x091ccca2
+0, 78, 78, 1, 48600, 0xced6d065
+0, 79, 79, 1, 48600, 0xed7fca50
+0, 80, 80, 1, 48600, 0x5c77be3f
+0, 81, 81, 1, 48600, 0x84719fe6
+0, 82, 82, 1, 48600, 0x571cc076
+0, 83, 83, 1, 48600, 0xa3b5be2a
+0, 84, 84, 1, 48600, 0x0218bc6f
+0, 85, 85, 1, 48600, 0x5ec1fa4c
+0, 86, 86, 1, 48600, 0xcd3035fa
+0, 87, 87, 1, 48600, 0xb8d2a741
+0, 88, 88, 1, 48600, 0x6d39847c
+0, 89, 89, 1, 48600, 0x0ffefc73
+0, 90, 90, 1, 48600, 0x2bb74b68
+0, 91, 91, 1, 48600, 0xf541d49f
+0, 92, 92, 1, 48600, 0x6f7c9066
+0, 93, 93, 1, 48600, 0x70d58548
+0, 94, 94, 1, 48600, 0x92d38b55
+0, 95, 95, 1, 48600, 0x5f4bdaa6
+0, 96, 96, 1, 48600, 0x43868008
+0, 97, 97, 1, 48600, 0xddb8e551
+0, 98, 98, 1, 48600, 0xcd0cbd5f
+0, 99, 99, 1, 48600, 0xf97e6bbd
+0, 100, 100, 1, 48600, 0x5f1b31eb
+0, 101, 101, 1, 48600, 0x10ff924d
+0, 102, 102, 1, 48600, 0xcc31ca3f
+0, 103, 103, 1, 48600, 0x5f27f9ff
+0, 104, 104, 1, 48600, 0xd6fe4b71
+0, 105, 105, 1, 48600, 0xa7d3b2c4
+0, 106, 106, 1, 48600, 0x9992d6c7
+0, 107, 107, 1, 48600, 0xd283089b
+0, 108, 108, 1, 48600, 0x6ab52ede
+0, 109, 109, 1, 48600, 0x495b1bad
+0, 110, 110, 1, 48600, 0x3a4d1b72
+0, 111, 111, 1, 48600, 0xdb421ba3
+0, 112, 112, 1, 48600, 0x8ad11baa
+0, 113, 113, 1, 48600, 0x17701bcc
+0, 114, 114, 1, 48600, 0x4b771b6a
+0, 115, 115, 1, 48600, 0x5345067e
+0, 116, 116, 1, 48600, 0x2cd403a7
+0, 117, 117, 1, 48600, 0x2cc5fd60
+0, 118, 118, 1, 48600, 0xfa9cf1d4
+0, 119, 119, 1, 48600, 0x8498e2d6
+0, 120, 120, 1, 48600, 0x93dcc863
+0, 121, 121, 1, 48600, 0xd46ac5d5
+0, 122, 122, 1, 48600, 0x34e8c01b
+0, 123, 123, 1, 48600, 0x4ad3b246
+0, 124, 124, 1, 48600, 0x9848a6ca
+0, 125, 125, 1, 48600, 0x7b7e8bee
+0, 126, 126, 1, 48600, 0xaee0896b
+0, 127, 127, 1, 48600, 0x263a812c
+0, 128, 128, 1, 48600, 0x5d7b7782
+0, 129, 129, 1, 48600, 0x3a2b6ad2
+0, 130, 130, 1, 48600, 0xcf2a4ef3
+0, 131, 131, 1, 48600, 0xc0134c9b
+0, 132, 132, 1, 48600, 0x93c342d2
+0, 133, 133, 1, 48600, 0x8d90393c
diff --git a/ffmpeg1/tests/ref/fate/interplay-mve-16bit b/ffmpeg1/tests/ref/fate/interplay-mve-16bit
new file mode 100644
index 0000000..b20e998
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/interplay-mve-16bit
@@ -0,0 +1,51 @@
+#tb 0: 417/12500
+0, 0, 0, 1, 614400, 0x00000000
+0, 1, 1, 1, 614400, 0x00000000
+0, 2, 2, 1, 614400, 0x3c4ce011
+0, 3, 3, 1, 614400, 0x16e83922
+0, 4, 4, 1, 614400, 0x657a3d4d
+0, 5, 5, 1, 614400, 0x933a08b0
+0, 6, 6, 1, 614400, 0xfcd5f76e
+0, 7, 7, 1, 614400, 0xd0990cf8
+0, 8, 8, 1, 614400, 0x02131686
+0, 9, 9, 1, 614400, 0x4cf53656
+0, 10, 10, 1, 614400, 0x7d1960c0
+0, 11, 11, 1, 614400, 0x5d9f696f
+0, 12, 12, 1, 614400, 0x54e06663
+0, 13, 13, 1, 614400, 0x4c1eade1
+0, 14, 14, 1, 614400, 0x4bd3bfff
+0, 15, 15, 1, 614400, 0xab86c041
+0, 16, 16, 1, 614400, 0xbb2bfbf4
+0, 17, 17, 1, 614400, 0x43822e15
+0, 18, 18, 1, 614400, 0x835e352c
+0, 19, 19, 1, 614400, 0x72cc538f
+0, 20, 20, 1, 614400, 0x20bb6e30
+0, 21, 21, 1, 614400, 0xfb079f52
+0, 22, 22, 1, 614400, 0x759bc4d6
+0, 23, 23, 1, 614400, 0xd116fc3b
+0, 24, 24, 1, 614400, 0x5c06efd2
+0, 25, 25, 1, 614400, 0x61641ecd
+0, 26, 26, 1, 614400, 0x6c8d48a0
+0, 27, 27, 1, 614400, 0x64725eed
+0, 28, 28, 1, 614400, 0x88f9a8ca
+0, 29, 29, 1, 614400, 0xcf1cbcd9
+0, 30, 30, 1, 614400, 0x75a3ce24
+0, 31, 31, 1, 614400, 0x3bf80ce7
+0, 32, 32, 1, 614400, 0xd4011d7c
+0, 33, 33, 1, 614400, 0xd569716b
+0, 34, 34, 1, 614400, 0xfd626b6b
+0, 35, 35, 1, 614400, 0xc856dbaf
+0, 36, 36, 1, 614400, 0x0e56e68e
+0, 37, 37, 1, 614400, 0x5b29ecc9
+0, 38, 38, 1, 614400, 0xe83c0804
+0, 39, 39, 1, 614400, 0xebdd3d61
+0, 40, 40, 1, 614400, 0x7f4c5b56
+0, 41, 41, 1, 614400, 0xb4019155
+0, 42, 42, 1, 614400, 0xffdda515
+0, 43, 43, 1, 614400, 0x5271c695
+0, 44, 44, 1, 614400, 0x8526d3c1
+0, 45, 45, 1, 614400, 0x5accf7a6
+0, 46, 46, 1, 614400, 0x959017aa
+0, 47, 47, 1, 614400, 0x22f450f6
+0, 48, 48, 1, 614400, 0x2e3d6f37
+0, 49, 49, 1, 614400, 0x0db9d89f
diff --git a/ffmpeg1/tests/ref/fate/interplay-mve-8bit b/ffmpeg1/tests/ref/fate/interplay-mve-8bit
new file mode 100644
index 0000000..b37bd6e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/interplay-mve-8bit
@@ -0,0 +1,111 @@
+#tb 0: 8341/125000
+0, 0, 0, 1, 414720, 0x2580d574
+0, 1, 1, 1, 414720, 0x97f55cd3
+0, 2, 2, 1, 414720, 0x9408fb63
+0, 3, 3, 1, 414720, 0x7e53c155
+0, 4, 4, 1, 414720, 0xd8570262
+0, 5, 5, 1, 414720, 0x9dc72ed5
+0, 6, 6, 1, 414720, 0xf7d33211
+0, 7, 7, 1, 414720, 0x95935e3b
+0, 8, 8, 1, 414720, 0x62b1cdc5
+0, 9, 9, 1, 414720, 0x971f500a
+0, 10, 10, 1, 414720, 0x05f82b6c
+0, 11, 11, 1, 414720, 0x7713e3cb
+0, 12, 12, 1, 414720, 0x3170c2f0
+0, 13, 13, 1, 414720, 0x8d818956
+0, 14, 14, 1, 414720, 0x16775d71
+0, 15, 15, 1, 414720, 0x63016ce1
+0, 16, 16, 1, 414720, 0x2f94792c
+0, 17, 17, 1, 414720, 0x37f67725
+0, 18, 18, 1, 414720, 0xeb95adb1
+0, 19, 19, 1, 414720, 0xbf32f6df
+0, 20, 20, 1, 414720, 0x242f4d09
+0, 21, 21, 1, 414720, 0x28a2a3b9
+0, 22, 22, 1, 414720, 0x895de0a6
+0, 23, 23, 1, 414720, 0xd3b46447
+0, 24, 24, 1, 414720, 0x3bbfb7d1
+0, 25, 25, 1, 414720, 0x0a5ee9ad
+0, 26, 26, 1, 414720, 0xaabac502
+0, 27, 27, 1, 414720, 0x0951779d
+0, 28, 28, 1, 414720, 0x150e2073
+0, 29, 29, 1, 414720, 0xb86d87ae
+0, 30, 30, 1, 414720, 0x135411da
+0, 31, 31, 1, 414720, 0x9c8fcda5
+0, 32, 32, 1, 414720, 0xb7ba838e
+0, 33, 33, 1, 414720, 0x7ef869e1
+0, 34, 34, 1, 414720, 0xf9764d47
+0, 35, 35, 1, 414720, 0xe6c72872
+0, 36, 36, 1, 414720, 0xb95b73b8
+0, 37, 37, 1, 414720, 0xa19e3221
+0, 38, 38, 1, 414720, 0xc0be27cd
+0, 39, 39, 1, 414720, 0xe97cd1a9
+0, 40, 40, 1, 414720, 0xb6524a34
+0, 41, 41, 1, 414720, 0x61a1607b
+0, 42, 42, 1, 414720, 0x1dd9c606
+0, 43, 43, 1, 414720, 0xe2e736fa
+0, 44, 44, 1, 414720, 0x25b922d9
+0, 45, 45, 1, 414720, 0xbc023b36
+0, 46, 46, 1, 414720, 0x39bb5cdf
+0, 47, 47, 1, 414720, 0xf83bfc4f
+0, 48, 48, 1, 414720, 0x3eae7f36
+0, 49, 49, 1, 414720, 0x8cf80c32
+0, 50, 50, 1, 414720, 0xbc576c03
+0, 51, 51, 1, 414720, 0x28b79ab1
+0, 52, 52, 1, 414720, 0x15da1138
+0, 53, 53, 1, 414720, 0x345ff676
+0, 54, 54, 1, 414720, 0x0108f909
+0, 55, 55, 1, 414720, 0x57459616
+0, 56, 56, 1, 414720, 0x2f497782
+0, 57, 57, 1, 414720, 0xb72b4f79
+0, 58, 58, 1, 414720, 0x2bfd1967
+0, 59, 59, 1, 414720, 0x974a99cd
+0, 60, 60, 1, 414720, 0x5f5f4129
+0, 61, 61, 1, 414720, 0x51ad9df4
+0, 62, 62, 1, 414720, 0xd6e5c16c
+0, 63, 63, 1, 414720, 0xd8751bda
+0, 64, 64, 1, 414720, 0x216ed6f3
+0, 65, 65, 1, 414720, 0x63a0a67d
+0, 66, 66, 1, 414720, 0xe4f4eb0f
+0, 67, 67, 1, 414720, 0xa1665ef8
+0, 68, 68, 1, 414720, 0xc3116dfd
+0, 69, 69, 1, 414720, 0x3213fd70
+0, 70, 70, 1, 414720, 0x2af76048
+0, 71, 71, 1, 414720, 0x3570085d
+0, 72, 72, 1, 414720, 0x2a7c3c39
+0, 73, 73, 1, 414720, 0xd8a6ba7e
+0, 74, 74, 1, 414720, 0x48107b4d
+0, 75, 75, 1, 414720, 0x653a0936
+0, 76, 76, 1, 414720, 0xf68c77ab
+0, 77, 77, 1, 414720, 0xa5ecde84
+0, 78, 78, 1, 414720, 0xaec33ca1
+0, 79, 79, 1, 414720, 0x26e68740
+0, 80, 80, 1, 414720, 0xac09bfa5
+0, 81, 81, 1, 414720, 0xed5111b2
+0, 82, 82, 1, 414720, 0x38041c98
+0, 83, 83, 1, 414720, 0x76fbde1d
+0, 84, 84, 1, 414720, 0x3ae64b7d
+0, 85, 85, 1, 414720, 0xb05f4da2
+0, 86, 86, 1, 414720, 0x65769088
+0, 87, 87, 1, 414720, 0xbc45ba59
+0, 88, 88, 1, 414720, 0x8c893436
+0, 89, 89, 1, 414720, 0x1d5ebe7f
+0, 90, 90, 1, 414720, 0xa9cd5a53
+0, 91, 91, 1, 414720, 0xc69e1fb0
+0, 92, 92, 1, 414720, 0xb28a77ec
+0, 93, 93, 1, 414720, 0x834f1219
+0, 94, 94, 1, 414720, 0xba34c848
+0, 95, 95, 1, 414720, 0x80e590c1
+0, 96, 96, 1, 414720, 0x7146dc31
+0, 97, 97, 1, 414720, 0x05929a5f
+0, 98, 98, 1, 414720, 0x721708c5
+0, 99, 99, 1, 414720, 0x4aa83cbe
+0, 100, 100, 1, 414720, 0x221d799f
+0, 101, 101, 1, 414720, 0xe9e72bec
+0, 102, 102, 1, 414720, 0xb6a3385d
+0, 103, 103, 1, 414720, 0x795a3362
+0, 104, 104, 1, 414720, 0x770b58d9
+0, 105, 105, 1, 414720, 0xb5563ce4
+0, 106, 106, 1, 414720, 0x0c1a00cc
+0, 107, 107, 1, 414720, 0xcbd467fd
+0, 108, 108, 1, 414720, 0x3bccec29
+0, 109, 109, 1, 414720, 0x92d78db7
diff --git a/ffmpeg1/tests/ref/fate/iv8-demux b/ffmpeg1/tests/ref/fate/iv8-demux
new file mode 100644
index 0000000..f13e691
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/iv8-demux
@@ -0,0 +1,26 @@
+#tb 0: 1/90000
+0, 0, 0, 0, 20883, 0x347191e2
+0, 0, 3600, 0, 20882, 0xe1573905
+0, 3600, 7200, 0, 20894, 0xd54f516a
+0, 7200, 10800, 0, 20891, 0x1b5c5039
+0, 10800, 14400, 0, 20883, 0x8e785b4d
+0, 14400, 18000, 0, 20870, 0xd26ca1f6
+0, 18000, 21600, 0, 21448, 0x946f5b2b
+0, 21600, 25200, 0, 21433, 0xb18687c5
+0, 25200, 28800, 0, 20865, 0xc0eb3fce
+0, 28800, 32399, 0, 20842, 0x9d0728ba
+0, 32399, 35999, 0, 20878, 0xf60f5dee
+0, 35999, 39600, 0, 20866, 0x3bde568f
+0, 39600, 43200, 0, 20884, 0x22736993
+0, 43200, 46800, 0, 20860, 0xf56f2fca
+0, 46800, 50400, 0, 20872, 0xf39e3cb3
+0, 50400, 53999, 0, 20835, 0xa3c4363b
+0, 53999, 57600, 0, 20905, 0x552853d1
+0, 57600, 61200, 0, 20874, 0xed0b91ec
+0, 61200, 64799, 0, 20877, 0xe1623e01
+0, 64799, 68399, 0, 20933, 0x19906564
+0, 68399, 72000, 0, 20891, 0x3d064fd3
+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/ffmpeg1/tests/ref/fate/jv b/ffmpeg1/tests/ref/fate/jv
new file mode 100644
index 0000000..b0a6008
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/jv
@@ -0,0 +1,8 @@
+#tb 0: 2/25
+0, 0, 0, 1, 192000, 0x00000000
+0, 2, 2, 1, 192000, 0x331b1c12
+0, 3, 3, 1, 192000, 0xc2fa2d89
+0, 4, 4, 1, 192000, 0x9b3035ac
+0, 5, 5, 1, 192000, 0xb8e331eb
+0, 6, 6, 1, 192000, 0xd35b2053
+0, 7, 7, 1, 192000, 0x01062188
diff --git a/ffmpeg1/tests/ref/fate/jv-demux b/ffmpeg1/tests/ref/fate/jv-demux
new file mode 100644
index 0000000..c57fce0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/jv-demux
@@ -0,0 +1,20 @@
+#tb 0: 2/25
+#tb 1: 1/22050
+0, 0, 0, 1, 6, 0x000a0003
+1, 0, 0, 131072, 131072, 0x14c664d6
+0, 1, 1, 1, 773, 0x11802a51
+0, 2, 2, 1, 12974, 0xc2e466b7
+0, 3, 3, 1, 12200, 0x3c0eeb31
+0, 4, 4, 1, 13339, 0x91d82488
+0, 5, 5, 1, 13940, 0x064c350a
+0, 6, 6, 1, 14418, 0x078d2dd2
+0, 7, 7, 1, 14539, 0x145167ed
+0, 8, 8, 1, 2552, 0xcf2b1db7
+1, 131072, 131072, 1764, 1764, 0x30be734d
+1, 132836, 132836, 1764, 1764, 0xa4c873a7
+1, 134600, 134600, 1764, 1764, 0xd5f17443
+1, 136364, 136364, 1764, 1764, 0xd31c7230
+1, 138128, 138128, 1764, 1764, 0x181d730f
+1, 139892, 139892, 1764, 1764, 0x76f47538
+1, 141656, 141656, 1764, 1764, 0x6c51715d
+1, 143420, 143420, 1764, 1764, 0x689374f5
diff --git a/ffmpeg1/tests/ref/fate/kgv1 b/ffmpeg1/tests/ref/fate/kgv1
new file mode 100644
index 0000000..4f475bb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/kgv1
@@ -0,0 +1,314 @@
+#tb 0: 1/60
+0, 0, 0, 1, 153600, 0x00000000
+0, 1, 1, 1, 153600, 0x00000000
+0, 2, 2, 1, 153600, 0x00000000
+0, 3, 3, 1, 153600, 0x00000000
+0, 4, 4, 1, 153600, 0x00000000
+0, 5, 5, 1, 153600, 0x00000000
+0, 6, 6, 1, 153600, 0x00000000
+0, 7, 7, 1, 153600, 0x00000000
+0, 8, 8, 1, 153600, 0x00000000
+0, 9, 9, 1, 153600, 0x00000000
+0, 10, 10, 1, 153600, 0x00000000
+0, 11, 11, 1, 153600, 0x00000000
+0, 12, 12, 1, 153600, 0x00000000
+0, 13, 13, 1, 153600, 0x00000000
+0, 14, 14, 1, 153600, 0x00000000
+0, 15, 15, 1, 153600, 0x00000000
+0, 16, 16, 1, 153600, 0x00000000
+0, 17, 17, 1, 153600, 0x00000000
+0, 18, 18, 1, 153600, 0x00000000
+0, 19, 19, 1, 153600, 0x00000000
+0, 20, 20, 1, 153600, 0x00000000
+0, 21, 21, 1, 153600, 0x00000000
+0, 22, 22, 1, 153600, 0x00000000
+0, 23, 23, 1, 153600, 0x00000000
+0, 24, 24, 1, 153600, 0x00000000
+0, 25, 25, 1, 153600, 0x00000000
+0, 26, 26, 1, 153600, 0x00000000
+0, 27, 27, 1, 153600, 0x00000000
+0, 28, 28, 1, 153600, 0x00000000
+0, 29, 29, 1, 153600, 0x00000000
+0, 30, 30, 1, 153600, 0x00000000
+0, 31, 31, 1, 153600, 0x00000000
+0, 32, 32, 1, 153600, 0x00000000
+0, 33, 33, 1, 153600, 0x00000000
+0, 34, 34, 1, 153600, 0x00000000
+0, 35, 35, 1, 153600, 0x00000000
+0, 36, 36, 1, 153600, 0x00000000
+0, 37, 37, 1, 153600, 0x00000000
+0, 38, 38, 1, 153600, 0x00000000
+0, 39, 39, 1, 153600, 0x00000000
+0, 40, 40, 1, 153600, 0x00000000
+0, 41, 41, 1, 153600, 0x00000000
+0, 42, 42, 1, 153600, 0x00000000
+0, 43, 43, 1, 153600, 0x00000000
+0, 44, 44, 1, 153600, 0x00000000
+0, 45, 45, 1, 153600, 0x00000000
+0, 46, 46, 1, 153600, 0x00000000
+0, 47, 47, 1, 153600, 0xab738fc1
+0, 48, 48, 1, 153600, 0x520c9bd3
+0, 49, 49, 1, 153600, 0x19347233
+0, 50, 50, 1, 153600, 0x9e81fe64
+0, 51, 51, 1, 153600, 0x75be7504
+0, 52, 52, 1, 153600, 0x29374d04
+0, 53, 53, 1, 153600, 0xc6b92fd4
+0, 54, 54, 1, 153600, 0xeeec5124
+0, 55, 55, 1, 153600, 0x2fc36324
+0, 56, 56, 1, 153600, 0x112580f4
+0, 57, 57, 1, 153600, 0x177b9a84
+0, 58, 58, 1, 153600, 0x214abb44
+0, 59, 59, 1, 153600, 0x83580173
+0, 60, 60, 1, 153600, 0x95f49284
+0, 61, 61, 1, 153600, 0xe31c5984
+0, 62, 62, 1, 153600, 0xf1756984
+0, 63, 63, 1, 153600, 0x6c004804
+0, 64, 64, 1, 153600, 0xbe6631b4
+0, 65, 65, 1, 153600, 0x1d910494
+0, 66, 66, 1, 153600, 0xd8ecfc25
+0, 67, 67, 1, 153600, 0xdd281364
+0, 68, 68, 1, 153600, 0x52545084
+0, 69, 69, 1, 153600, 0xfed6b944
+0, 70, 70, 1, 153600, 0x6e0b7ee4
+0, 71, 71, 1, 153600, 0x516a5724
+0, 72, 72, 1, 153600, 0xaffd7844
+0, 73, 73, 1, 153600, 0x5a304ba4
+0, 74, 74, 1, 153600, 0xea365ce4
+0, 75, 75, 1, 153600, 0xef654a84
+0, 76, 76, 1, 153600, 0x32d14584
+0, 77, 77, 1, 153600, 0x6bf843e4
+0, 78, 78, 1, 153600, 0x023d5b94
+0, 79, 79, 1, 153600, 0xd4506154
+0, 80, 80, 1, 153600, 0xeaf0bd24
+0, 81, 81, 1, 153600, 0x426efb94
+0, 82, 82, 1, 153600, 0x98bcde64
+0, 83, 83, 1, 153600, 0xa1bbb4a4
+0, 84, 84, 1, 153600, 0x36688414
+0, 85, 85, 1, 153600, 0x2e4b75d4
+0, 86, 86, 1, 153600, 0x33885884
+0, 87, 87, 1, 153600, 0x6c065224
+0, 88, 88, 1, 153600, 0x1a0252b4
+0, 89, 89, 1, 153600, 0x55896084
+0, 90, 90, 1, 153600, 0xb9df7a04
+0, 91, 91, 1, 153600, 0x6f8a9734
+0, 92, 92, 1, 153600, 0xa3d3dbb4
+0, 93, 93, 1, 153600, 0x907a2483
+0, 94, 94, 1, 153600, 0xf4816ad3
+0, 95, 95, 1, 153600, 0x4e9195e3
+0, 96, 96, 1, 153600, 0xf486a373
+0, 97, 97, 1, 153600, 0x8f6aa693
+0, 98, 98, 1, 153600, 0x8f6aa693
+0, 99, 99, 1, 153600, 0x8f6aa693
+0, 100, 100, 1, 153600, 0x8f6aa693
+0, 101, 101, 1, 153600, 0x8f6aa693
+0, 102, 102, 1, 153600, 0x8f6aa693
+0, 103, 103, 1, 153600, 0x17d9c117
+0, 104, 104, 1, 153600, 0x17d9c117
+0, 105, 105, 1, 153600, 0x17d9c117
+0, 106, 106, 1, 153600, 0x17d9c117
+0, 107, 107, 1, 153600, 0x17d9c117
+0, 108, 108, 1, 153600, 0x7a47386f
+0, 109, 109, 1, 153600, 0x7a47386f
+0, 110, 110, 1, 153600, 0x7a47386f
+0, 111, 111, 1, 153600, 0x7a47386f
+0, 112, 112, 1, 153600, 0x7a47386f
+0, 113, 113, 1, 153600, 0x829dccaa
+0, 114, 114, 1, 153600, 0x829dccaa
+0, 115, 115, 1, 153600, 0x829dccaa
+0, 116, 116, 1, 153600, 0x829dccaa
+0, 117, 117, 1, 153600, 0x829dccaa
+0, 118, 118, 1, 153600, 0x2d58ab4a
+0, 119, 119, 1, 153600, 0x2d58ab4a
+0, 120, 120, 1, 153600, 0x2d58ab4a
+0, 121, 121, 1, 153600, 0x2d58ab4a
+0, 122, 122, 1, 153600, 0x2d58ab4a
+0, 123, 123, 1, 153600, 0x2d58ab4a
+0, 124, 124, 1, 153600, 0x2d58ab4a
+0, 125, 125, 1, 153600, 0x2d58ab4a
+0, 126, 126, 1, 153600, 0x2d58ab4a
+0, 127, 127, 1, 153600, 0x2d58ab4a
+0, 128, 128, 1, 153600, 0x2d58ab4a
+0, 129, 129, 1, 153600, 0x2d58ab4a
+0, 130, 130, 1, 153600, 0x2d58ab4a
+0, 131, 131, 1, 153600, 0x2d58ab4a
+0, 132, 132, 1, 153600, 0x2d58ab4a
+0, 133, 133, 1, 153600, 0x2d58ab4a
+0, 134, 134, 1, 153600, 0x2d58ab4a
+0, 135, 135, 1, 153600, 0x2d58ab4a
+0, 136, 136, 1, 153600, 0x2d58ab4a
+0, 137, 137, 1, 153600, 0x2d58ab4a
+0, 138, 138, 1, 153600, 0x2d58ab4a
+0, 139, 139, 1, 153600, 0x2d58ab4a
+0, 140, 140, 1, 153600, 0x2d58ab4a
+0, 141, 141, 1, 153600, 0x2d58ab4a
+0, 142, 142, 1, 153600, 0x2d58ab4a
+0, 143, 143, 1, 153600, 0x2d58ab4a
+0, 144, 144, 1, 153600, 0x2d58ab4a
+0, 145, 145, 1, 153600, 0x2d58ab4a
+0, 146, 146, 1, 153600, 0x2d58ab4a
+0, 147, 147, 1, 153600, 0x2d58ab4a
+0, 148, 148, 1, 153600, 0x2d58ab4a
+0, 149, 149, 1, 153600, 0x2d58ab4a
+0, 150, 150, 1, 153600, 0x2d58ab4a
+0, 151, 151, 1, 153600, 0x2d58ab4a
+0, 152, 152, 1, 153600, 0x2d58ab4a
+0, 153, 153, 1, 153600, 0x2d58ab4a
+0, 154, 154, 1, 153600, 0x2d58ab4a
+0, 155, 155, 1, 153600, 0x2d58ab4a
+0, 156, 156, 1, 153600, 0x2d58ab4a
+0, 157, 157, 1, 153600, 0x2d58ab4a
+0, 158, 158, 1, 153600, 0x2d58ab4a
+0, 159, 159, 1, 153600, 0x2d58ab4a
+0, 160, 160, 1, 153600, 0x2d58ab4a
+0, 161, 161, 1, 153600, 0x2d58ab4a
+0, 162, 162, 1, 153600, 0x2d58ab4a
+0, 163, 163, 1, 153600, 0x2d58ab4a
+0, 164, 164, 1, 153600, 0x2d58ab4a
+0, 165, 165, 1, 153600, 0x2d58ab4a
+0, 166, 166, 1, 153600, 0x2d58ab4a
+0, 167, 167, 1, 153600, 0x2d58ab4a
+0, 168, 168, 1, 153600, 0x2d58ab4a
+0, 169, 169, 1, 153600, 0x2d58ab4a
+0, 170, 170, 1, 153600, 0x2d58ab4a
+0, 171, 171, 1, 153600, 0x2d58ab4a
+0, 172, 172, 1, 153600, 0x2d58ab4a
+0, 173, 173, 1, 153600, 0x2d58ab4a
+0, 174, 174, 1, 153600, 0x2d58ab4a
+0, 175, 175, 1, 153600, 0x2d58ab4a
+0, 176, 176, 1, 153600, 0x2d58ab4a
+0, 177, 177, 1, 153600, 0x2d58ab4a
+0, 178, 178, 1, 153600, 0x2d58ab4a
+0, 179, 179, 1, 153600, 0x2d58ab4a
+0, 180, 180, 1, 153600, 0x2d58ab4a
+0, 181, 181, 1, 153600, 0x2d58ab4a
+0, 182, 182, 1, 153600, 0x2d58ab4a
+0, 183, 183, 1, 153600, 0x2d58ab4a
+0, 184, 184, 1, 153600, 0x2d58ab4a
+0, 185, 185, 1, 153600, 0x2d58ab4a
+0, 186, 186, 1, 153600, 0x2d58ab4a
+0, 187, 187, 1, 153600, 0x2d58ab4a
+0, 188, 188, 1, 153600, 0x2d58ab4a
+0, 189, 189, 1, 153600, 0x2d58ab4a
+0, 190, 190, 1, 153600, 0x2d58ab4a
+0, 191, 191, 1, 153600, 0x2d58ab4a
+0, 192, 192, 1, 153600, 0x2d58ab4a
+0, 193, 193, 1, 153600, 0x2d58ab4a
+0, 194, 194, 1, 153600, 0x2d58ab4a
+0, 195, 195, 1, 153600, 0x2d58ab4a
+0, 196, 196, 1, 153600, 0x2d58ab4a
+0, 197, 197, 1, 153600, 0x2d58ab4a
+0, 198, 198, 1, 153600, 0x2d58ab4a
+0, 199, 199, 1, 153600, 0x2d58ab4a
+0, 200, 200, 1, 153600, 0x2d58ab4a
+0, 201, 201, 1, 153600, 0x2d58ab4a
+0, 202, 202, 1, 153600, 0x2d58ab4a
+0, 203, 203, 1, 153600, 0x2d58ab4a
+0, 204, 204, 1, 153600, 0x2d58ab4a
+0, 205, 205, 1, 153600, 0x2d58ab4a
+0, 206, 206, 1, 153600, 0x2d58ab4a
+0, 207, 207, 1, 153600, 0x2d58ab4a
+0, 208, 208, 1, 153600, 0x2d58ab4a
+0, 209, 209, 1, 153600, 0x2d58ab4a
+0, 210, 210, 1, 153600, 0x2d58ab4a
+0, 211, 211, 1, 153600, 0x2d58ab4a
+0, 212, 212, 1, 153600, 0x2d58ab4a
+0, 213, 213, 1, 153600, 0x2d58ab4a
+0, 214, 214, 1, 153600, 0x2d58ab4a
+0, 215, 215, 1, 153600, 0x2d58ab4a
+0, 216, 216, 1, 153600, 0x2d58ab4a
+0, 217, 217, 1, 153600, 0x2d58ab4a
+0, 218, 218, 1, 153600, 0x2d58ab4a
+0, 219, 219, 1, 153600, 0x2d58ab4a
+0, 220, 220, 1, 153600, 0x2d58ab4a
+0, 221, 221, 1, 153600, 0x2d58ab4a
+0, 222, 222, 1, 153600, 0x2d58ab4a
+0, 223, 223, 1, 153600, 0x2d58ab4a
+0, 224, 224, 1, 153600, 0x2d58ab4a
+0, 225, 225, 1, 153600, 0x2d58ab4a
+0, 226, 226, 1, 153600, 0x2d58ab4a
+0, 227, 227, 1, 153600, 0x2d58ab4a
+0, 228, 228, 1, 153600, 0x2d58ab4a
+0, 229, 229, 1, 153600, 0x2d58ab4a
+0, 230, 230, 1, 153600, 0x2d58ab4a
+0, 231, 231, 1, 153600, 0x2d58ab4a
+0, 232, 232, 1, 153600, 0x2d58ab4a
+0, 233, 233, 1, 153600, 0x2d58ab4a
+0, 234, 234, 1, 153600, 0x2d58ab4a
+0, 235, 235, 1, 153600, 0x2d58ab4a
+0, 236, 236, 1, 153600, 0x2d58ab4a
+0, 237, 237, 1, 153600, 0x2d58ab4a
+0, 238, 238, 1, 153600, 0x2d58ab4a
+0, 239, 239, 1, 153600, 0x2d58ab4a
+0, 240, 240, 1, 153600, 0x2d58ab4a
+0, 241, 241, 1, 153600, 0x2d58ab4a
+0, 242, 242, 1, 153600, 0x2d58ab4a
+0, 243, 243, 1, 153600, 0x2d58ab4a
+0, 244, 244, 1, 153600, 0x2d58ab4a
+0, 245, 245, 1, 153600, 0x2d58ab4a
+0, 246, 246, 1, 153600, 0x2d58ab4a
+0, 247, 247, 1, 153600, 0x2d58ab4a
+0, 248, 248, 1, 153600, 0x2d58ab4a
+0, 249, 249, 1, 153600, 0x2d58ab4a
+0, 250, 250, 1, 153600, 0x2d58ab4a
+0, 251, 251, 1, 153600, 0x2d58ab4a
+0, 252, 252, 1, 153600, 0x2d58ab4a
+0, 253, 253, 1, 153600, 0x2d58ab4a
+0, 254, 254, 1, 153600, 0x2d58ab4a
+0, 255, 255, 1, 153600, 0x2d58ab4a
+0, 256, 256, 1, 153600, 0x2d58ab4a
+0, 257, 257, 1, 153600, 0x2d58ab4a
+0, 258, 258, 1, 153600, 0x2d58ab4a
+0, 259, 259, 1, 153600, 0x2d58ab4a
+0, 260, 260, 1, 153600, 0x2d58ab4a
+0, 261, 261, 1, 153600, 0x2d58ab4a
+0, 262, 262, 1, 153600, 0x2d58ab4a
+0, 263, 263, 1, 153600, 0x2d58ab4a
+0, 264, 264, 1, 153600, 0x2d58ab4a
+0, 265, 265, 1, 153600, 0x2d58ab4a
+0, 266, 266, 1, 153600, 0x2d58ab4a
+0, 267, 267, 1, 153600, 0x2d58ab4a
+0, 268, 268, 1, 153600, 0x2d58ab4a
+0, 269, 269, 1, 153600, 0x2d58ab4a
+0, 270, 270, 1, 153600, 0x2d58ab4a
+0, 271, 271, 1, 153600, 0x2d58ab4a
+0, 272, 272, 1, 153600, 0x2d58ab4a
+0, 273, 273, 1, 153600, 0x2d58ab4a
+0, 274, 274, 1, 153600, 0x2d58ab4a
+0, 275, 275, 1, 153600, 0x2d58ab4a
+0, 276, 276, 1, 153600, 0x2d58ab4a
+0, 277, 277, 1, 153600, 0x2d58ab4a
+0, 278, 278, 1, 153600, 0x2d58ab4a
+0, 279, 279, 1, 153600, 0x2d58ab4a
+0, 280, 280, 1, 153600, 0x2d58ab4a
+0, 281, 281, 1, 153600, 0x2d58ab4a
+0, 282, 282, 1, 153600, 0x2d58ab4a
+0, 283, 283, 1, 153600, 0x2d58ab4a
+0, 284, 284, 1, 153600, 0x7815bb72
+0, 285, 285, 1, 153600, 0x47ec1353
+0, 286, 286, 1, 153600, 0x6599fabc
+0, 287, 287, 1, 153600, 0x3d8a8690
+0, 288, 288, 1, 153600, 0xc0bc1ba5
+0, 289, 289, 1, 153600, 0x07368f2a
+0, 290, 290, 1, 153600, 0x81c54b89
+0, 291, 291, 1, 153600, 0xbfcae7bf
+0, 292, 292, 1, 153600, 0x1348310e
+0, 293, 293, 1, 153600, 0xb5489dad
+0, 294, 294, 1, 153600, 0xa1eb1408
+0, 295, 295, 1, 153600, 0x15e0832b
+0, 296, 296, 1, 153600, 0xb789cba5
+0, 297, 297, 1, 153600, 0x3ee86e4f
+0, 298, 298, 1, 153600, 0x06ea3883
+0, 299, 299, 1, 153600, 0xcedd02b7
+0, 300, 300, 1, 153600, 0xbcd6ce50
+0, 301, 301, 1, 153600, 0xaacf99f8
+0, 302, 302, 1, 153600, 0x98c865a0
+0, 303, 303, 1, 153600, 0x4c6432d0
+0, 304, 304, 1, 153600, 0x00000000
+0, 305, 305, 1, 153600, 0x00000000
+0, 306, 306, 1, 153600, 0x00000000
+0, 307, 307, 1, 153600, 0x00000000
+0, 308, 308, 1, 153600, 0x00000000
+0, 309, 309, 1, 153600, 0x00000000
+0, 310, 310, 1, 153600, 0x00000000
+0, 311, 311, 1, 153600, 0x00000000
+0, 312, 312, 1, 153600, 0x00000000
diff --git a/ffmpeg1/tests/ref/fate/kmvc b/ffmpeg1/tests/ref/fate/kmvc
new file mode 100644
index 0000000..8a733bb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/kmvc
@@ -0,0 +1,76 @@
+#tb 0: 1/25
+0, 0, 0, 1, 153600, 0x00000000
+0, 1, 1, 1, 153600, 0x00000000
+0, 2, 2, 1, 153600, 0x00000000
+0, 3, 3, 1, 153600, 0x3ad906f0
+0, 4, 4, 1, 153600, 0x9f7c2e80
+0, 5, 5, 1, 153600, 0x548c9e10
+0, 6, 6, 1, 153600, 0xab4154e7
+0, 7, 7, 1, 153600, 0x762964be
+0, 8, 8, 1, 153600, 0xea6beab1
+0, 9, 9, 1, 153600, 0x00805c23
+0, 10, 10, 1, 153600, 0x932eebd2
+0, 11, 11, 1, 153600, 0x73a9a1c4
+0, 12, 12, 1, 153600, 0x3ecf80a2
+0, 13, 13, 1, 153600, 0xb7266fcc
+0, 14, 14, 1, 153600, 0xf9a75e02
+0, 15, 15, 1, 153600, 0xa4cb4c00
+0, 16, 16, 1, 153600, 0x8cc653fa
+0, 17, 17, 1, 153600, 0xf0735df0
+0, 18, 18, 1, 153600, 0x46945766
+0, 19, 19, 1, 153600, 0x1cf75120
+0, 20, 20, 1, 153600, 0x015d4476
+0, 21, 21, 1, 153600, 0x4ad6419c
+0, 22, 22, 1, 153600, 0xf97a1292
+0, 23, 23, 1, 153600, 0x8048c6bd
+0, 24, 24, 1, 153600, 0x0aa97f7f
+0, 25, 25, 1, 153600, 0xcd1a0531
+0, 26, 26, 1, 153600, 0xeb9e72b4
+0, 27, 27, 1, 153600, 0x5a61d657
+0, 28, 28, 1, 153600, 0xc4eb1759
+0, 29, 29, 1, 153600, 0x07b05b0c
+0, 30, 30, 1, 153600, 0x9c417927
+0, 31, 31, 1, 153600, 0xa3a28516
+0, 32, 32, 1, 153600, 0x78e97511
+0, 33, 33, 1, 153600, 0x05c94e38
+0, 34, 34, 1, 153600, 0x0003ffa4
+0, 35, 35, 1, 153600, 0x46489827
+0, 36, 36, 1, 153600, 0xa6ac0ea6
+0, 37, 37, 1, 153600, 0xf4ae7e9a
+0, 38, 38, 1, 153600, 0xe07dd526
+0, 39, 39, 1, 153600, 0x5c0d0ab9
+0, 40, 40, 1, 153600, 0xad542525
+0, 41, 41, 1, 153600, 0xa72a35b1
+0, 42, 42, 1, 153600, 0x373d3cbd
+0, 43, 43, 1, 153600, 0x242c3cad
+0, 44, 44, 1, 153600, 0xbe4f44e5
+0, 45, 45, 1, 153600, 0x3b883575
+0, 46, 46, 1, 153600, 0xcd7d2995
+0, 47, 47, 1, 153600, 0x89a01f99
+0, 48, 48, 1, 153600, 0x79ac0861
+0, 49, 49, 1, 153600, 0xefb6ee22
+0, 50, 50, 1, 153600, 0x4498d6b2
+0, 51, 51, 1, 153600, 0x99efd0a6
+0, 52, 52, 1, 153600, 0xd937c282
+0, 53, 53, 1, 153600, 0xa6c6bbb2
+0, 54, 54, 1, 153600, 0xf667bf0e
+0, 55, 55, 1, 153600, 0x83b2c12e
+0, 56, 56, 1, 153600, 0xcbd6c766
+0, 57, 57, 1, 153600, 0xc5b3c762
+0, 58, 58, 1, 153600, 0xe51fc5fa
+0, 59, 59, 1, 153600, 0x6542c5ee
+0, 60, 60, 1, 153600, 0x59d2c946
+0, 61, 61, 1, 153600, 0xccaacdde
+0, 62, 62, 1, 153600, 0x884ec6aa
+0, 63, 63, 1, 153600, 0xb3d7c2de
+0, 64, 64, 1, 153600, 0xd4e8c1a2
+0, 65, 65, 1, 153600, 0xa416c3ba
+0, 66, 66, 1, 153600, 0x6905b62e
+0, 67, 67, 1, 153600, 0xce16b456
+0, 68, 68, 1, 153600, 0xcbd9a67e
+0, 69, 69, 1, 153600, 0x6785afd6
+0, 70, 70, 1, 153600, 0x6fd7b1fa
+0, 71, 71, 1, 153600, 0x2a65b77e
+0, 72, 72, 1, 153600, 0xa162aff6
+0, 73, 73, 1, 153600, 0x227ea802
+0, 74, 74, 1, 153600, 0x98de79fa
diff --git a/ffmpeg1/tests/ref/fate/lagarith-rgb24 b/ffmpeg1/tests/ref/fate/lagarith-rgb24
new file mode 100644
index 0000000..1eb2bc4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lagarith-rgb24
@@ -0,0 +1,5 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 368640, 0x26f74db2
+0, 1, 1, 1, 368640, 0x63b29ea4
+0, 2, 2, 1, 368640, 0x19467f03
+0, 3, 3, 1, 368640, 0x5fdc3575
diff --git a/ffmpeg1/tests/ref/fate/lagarith-rgb32 b/ffmpeg1/tests/ref/fate/lagarith-rgb32
new file mode 100644
index 0000000..490e2e5
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lagarith-rgb32
@@ -0,0 +1,26 @@
+#tb 0: 1001/24000
+0, 0, 0, 1, 1382400, 0x00000000
+0, 1, 1, 1, 1382400, 0x00000000
+0, 2, 2, 1, 1382400, 0x00000000
+0, 3, 3, 1, 1382400, 0x00000000
+0, 4, 4, 1, 1382400, 0x00000000
+0, 5, 5, 1, 1382400, 0xf95bde46
+0, 6, 6, 1, 1382400, 0x4f4c0393
+0, 7, 7, 1, 1382400, 0xe5aa40db
+0, 8, 8, 1, 1382400, 0xc25a8ba2
+0, 9, 9, 1, 1382400, 0x9db3150d
+0, 10, 10, 1, 1382400, 0x730e64b3
+0, 11, 11, 1, 1382400, 0xf8fd7edf
+0, 12, 12, 1, 1382400, 0x0114798a
+0, 13, 13, 1, 1382400, 0x7571210f
+0, 14, 14, 1, 1382400, 0x552ae59d
+0, 15, 15, 1, 1382400, 0x7ae0c946
+0, 16, 16, 1, 1382400, 0x0818c3ef
+0, 17, 17, 1, 1382400, 0x8257cac4
+0, 18, 18, 1, 1382400, 0x7762a979
+0, 19, 19, 1, 1382400, 0x282af57a
+0, 20, 20, 1, 1382400, 0x3f42de50
+0, 21, 21, 1, 1382400, 0xc42d5f93
+0, 22, 22, 1, 1382400, 0x18775c90
+0, 23, 23, 1, 1382400, 0x34befa90
+0, 24, 24, 1, 1382400, 0xd33d5f53
diff --git a/ffmpeg1/tests/ref/fate/lagarith-yuy2 b/ffmpeg1/tests/ref/fate/lagarith-yuy2
new file mode 100644
index 0000000..c5aed92
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lagarith-yuy2
@@ -0,0 +1,2 @@
+#tb 0: 1/10
+0, 0, 0, 1, 1572864, 0xeed76a7d
diff --git a/ffmpeg1/tests/ref/fate/lagarith-yv12 b/ffmpeg1/tests/ref/fate/lagarith-yv12
new file mode 100644
index 0000000..c9c9ff3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lagarith-yv12
@@ -0,0 +1,3 @@
+#tb 0: 1/60
+0, 0, 0, 1, 92160, 0x1dfdf5c1
+0, 1, 1, 1, 92160, 0x6965884f
diff --git a/ffmpeg1/tests/ref/fate/lmlm4-demux b/ffmpeg1/tests/ref/fate/lmlm4-demux
new file mode 100644
index 0000000..f8a6e21
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lmlm4-demux
@@ -0,0 +1,217 @@
+#tb 0: 1001/30000
+#tb 1: 1/90000
+0, 0, -9223372036854775808, 1, 5951, 0xe9118e0d
+1, 0, 0, 2160, 768, 0xaebcbebb
+1, 2160, 2160, 2160, 768, 0xaebcbebb
+0, 1, -9223372036854775808, 1, 1672, 0x4b80d4ca, F=0x0
+1, 4320, 4320, 2160, 768, 0xaebcbebb
+0, 2, -9223372036854775808, 1, 1604, 0x99e1b0a7, F=0x0
+1, 6480, 6480, 2160, 768, 0x866fe37a
+1, 8640, 8640, 2160, 768, 0x05d76890
+0, 3, -9223372036854775808, 1, 1204, 0x9559038a, F=0x0
+1, 10800, 10800, 2160, 768, 0x858f5511
+0, 4, -9223372036854775808, 1, 1482, 0x60056564, F=0x0
+1, 12960, 12960, 2160, 768, 0x97cb65ef
+0, 5, -9223372036854775808, 1, 1105, 0xf508cef4, F=0x0
+1, 15120, 15120, 2160, 768, 0xe269742c
+1, 17280, 17280, 2160, 768, 0xa6015f8d
+0, 6, -9223372036854775808, 1, 1193, 0xc8e0fd36, F=0x0
+1, 19440, 19440, 2160, 768, 0x759163e0
+0, 7, -9223372036854775808, 1, 1247, 0x8dd202e5, F=0x0
+1, 21600, 21600, 2160, 768, 0xb1e16082
+1, 23760, 23760, 2160, 768, 0x1b616429
+0, 8, -9223372036854775808, 1, 1367, 0xf59435e5, F=0x0
+1, 25920, 25920, 2160, 768, 0x7e4364f7
+0, 9, -9223372036854775808, 1, 1406, 0x68ba4a7e, F=0x0
+1, 28080, 28080, 2160, 768, 0x59bd64f7
+0, 10, -9223372036854775808, 1, 1262, 0x82c04123, F=0x0
+1, 30240, 30240, 2160, 768, 0xc3116fc6
+1, 32400, 32400, 2160, 768, 0x6a1c6b56
+0, 11, -9223372036854775808, 1, 1381, 0x02335cf9, F=0x0
+1, 34560, 34560, 2160, 768, 0x285a64cf
+0, 12, -9223372036854775808, 1, 1450, 0x7be46fd1, F=0x0
+1, 36720, 36720, 2160, 768, 0x79b16d65
+1, 38880, 38880, 2160, 768, 0x09b47635
+0, 13, -9223372036854775808, 1, 1362, 0x75cc381a, F=0x0
+1, 41040, 41040, 2160, 768, 0x81597446
+0, 14, -9223372036854775808, 1, 1409, 0x9ed74f3f, F=0x0
+1, 43200, 43200, 2160, 768, 0xfeb66eee
+0, 15, -9223372036854775808, 1, 1253, 0x82400ae1, F=0x0
+1, 45360, 45360, 2160, 768, 0x78557618
+1, 47520, 47520, 2160, 768, 0x3af170bf
+0, 16, -9223372036854775808, 1, 5499, 0xed286805
+1, 49680, 49680, 2160, 768, 0xefbd6399
+0, 17, -9223372036854775808, 1, 1403, 0x483c4cbc, F=0x0
+1, 51840, 51840, 2160, 768, 0xc98e7492
+1, 54000, 54000, 2160, 768, 0x010d7149
+0, 18, -9223372036854775808, 1, 1632, 0xa9ebcd6c, F=0x0
+1, 56160, 56160, 2160, 768, 0xce838b07
+0, 19, -9223372036854775808, 1, 1207, 0xc8580724, F=0x0
+1, 58320, 58320, 2160, 768, 0xed18726c
+0, 20, -9223372036854775808, 1, 1289, 0x61fb2fd2, F=0x0
+1, 60480, 60480, 2160, 768, 0x017e6712
+1, 62640, 62640, 2160, 768, 0x7f9268e9
+0, 21, -9223372036854775808, 1, 1230, 0xf348f53c, F=0x0
+1, 64800, 64800, 2160, 768, 0xf6f258fc
+0, 22, -9223372036854775808, 1, 1579, 0xa260b1ac, F=0x0
+1, 66960, 66960, 2160, 768, 0x9a1a6f31
+0, 23, -9223372036854775808, 1, 949, 0x91849002, F=0x0
+1, 69120, 69120, 2160, 768, 0x14b47b23
+1, 71280, 71280, 2160, 768, 0x9bdc6a50
+0, 24, -9223372036854775808, 1, 786, 0x3e33576f, F=0x0
+1, 73440, 73440, 2160, 768, 0x0fc46dab
+0, 25, -9223372036854775808, 1, 894, 0x9ac36a61, F=0x0
+1, 75600, 75600, 2160, 768, 0x6c387372
+1, 77760, 77760, 2160, 768, 0x581e71cd
+0, 26, -9223372036854775808, 1, 1186, 0x6bfc116e, F=0x0
+1, 79920, 79920, 2160, 768, 0x00cb785f
+0, 27, -9223372036854775808, 1, 1187, 0xcfc512ae, F=0x0
+1, 82080, 82080, 2160, 768, 0x1dda7032
+0, 28, -9223372036854775808, 1, 1527, 0x5c2c965a, F=0x0
+1, 84240, 84240, 2160, 768, 0xf57c7103
+1, 86400, 86400, 2160, 768, 0x2d927183
+0, 29, -9223372036854775808, 1, 1536, 0x5ba7ac29, F=0x0
+1, 88560, 88560, 2160, 768, 0xdae86cdf
+0, 30, -9223372036854775808, 1, 1095, 0xce06eb96, F=0x0
+1, 90720, 90720, 2160, 768, 0x2a2f6c3c
+1, 92880, 92880, 2160, 768, 0x44696eba
+0, 31, -9223372036854775808, 1, 1402, 0x642f6b0d, F=0x0
+1, 95040, 95040, 2160, 768, 0xf67c71c4
+0, 32, -9223372036854775808, 1, 5551, 0xf01a9c08
+1, 97200, 97200, 2160, 768, 0xc1ce7237
+0, 33, -9223372036854775808, 1, 1211, 0x350206f7, F=0x0
+1, 99360, 99360, 2160, 768, 0xd9c36ef5
+1, 101520, 101520, 2160, 768, 0x63b06b03
+0, 34, -9223372036854775808, 1, 887, 0x08767619, F=0x0
+1, 103680, 103680, 2160, 768, 0x8de97ebe
+0, 35, -9223372036854775808, 1, 1042, 0xcc81a9ed, F=0x0
+1, 105840, 105840, 2160, 768, 0xbf117c32
+1, 108000, 108000, 2160, 768, 0x82897497
+0, 36, -9223372036854775808, 1, 1247, 0x6f320614, F=0x0
+1, 110160, 110160, 2160, 768, 0x7a347abb
+0, 37, -9223372036854775808, 1, 1459, 0xd28975b5, F=0x0
+1, 112320, 112320, 2160, 768, 0xc99b691e
+0, 38, -9223372036854775808, 1, 1116, 0x1ab1e9db, F=0x0
+1, 114480, 114480, 2160, 768, 0xf4fc6e74
+1, 116640, 116640, 2160, 768, 0x511d6ec4
+0, 39, -9223372036854775808, 1, 1110, 0x6411f66a, F=0x0
+1, 118800, 118800, 2160, 768, 0xb8c06b5f
+0, 40, -9223372036854775808, 1, 1282, 0xd468375d, F=0x0
+1, 120960, 120960, 2160, 768, 0xf1776aed
+1, 123120, 123120, 2160, 768, 0xe6fe7fb4
+0, 41, -9223372036854775808, 1, 1077, 0x1273c6e3, F=0x0
+1, 125280, 125280, 2160, 768, 0x36907aff
+0, 42, -9223372036854775808, 1, 1043, 0x12dbd3ae, F=0x0
+1, 127440, 127440, 2160, 768, 0xddf666bb
+0, 43, -9223372036854775808, 1, 1087, 0x3e70d37a, F=0x0
+1, 129600, 129600, 2160, 768, 0x8e896ebc
+1, 131760, 131760, 2160, 768, 0x0aa47dfa
+0, 44, -9223372036854775808, 1, 992, 0x0651a71c, F=0x0
+1, 133920, 133920, 2160, 768, 0xc1736811
+0, 45, -9223372036854775808, 1, 1012, 0x6a069f8c, F=0x0
+1, 136080, 136080, 2160, 768, 0xb3e87009
+0, 46, -9223372036854775808, 1, 1320, 0x92803d69, F=0x0
+1, 138240, 138240, 2160, 768, 0xf23e6c00
+1, 140400, 140400, 2160, 768, 0x993a71d2
+0, 47, -9223372036854775808, 1, 1080, 0xe0ffbe95, F=0x0
+1, 142560, 142560, 2160, 768, 0xa53466dd
+0, 48, -9223372036854775808, 1, 5639, 0x658ca26b
+1, 144720, 144720, 2160, 768, 0xb43a74b0
+1, 146880, 146880, 2160, 768, 0x348f615c
+0, 49, -9223372036854775808, 1, 1385, 0xbcb96241, F=0x0
+1, 149040, 149040, 2160, 768, 0x298f6e1b
+0, 50, -9223372036854775808, 1, 1142, 0x8c6df318, F=0x0
+1, 151200, 151200, 2160, 768, 0x5db469c8
+0, 51, -9223372036854775808, 1, 1175, 0xcac1faef, F=0x0
+1, 153360, 153360, 2160, 768, 0x08f16c2c
+1, 155520, 155520, 2160, 768, 0x4a0474cb
+0, 52, -9223372036854775808, 1, 1091, 0xa937e32a, F=0x0
+1, 157680, 157680, 2160, 768, 0x077c760b
+0, 53, -9223372036854775808, 1, 1174, 0xfa50040d, F=0x0
+1, 159840, 159840, 2160, 768, 0xa5777c2e
+1, 162000, 162000, 2160, 768, 0x0d157ea6
+0, 54, -9223372036854775808, 1, 1293, 0x0c8d2740, F=0x0
+1, 164160, 164160, 2160, 768, 0x9bc26f86
+0, 55, -9223372036854775808, 1, 1262, 0x502c0c35, F=0x0
+1, 166320, 166320, 2160, 768, 0x1a72742d
+0, 56, -9223372036854775808, 1, 1038, 0x5e98c0cd, F=0x0
+1, 168480, 168480, 2160, 768, 0xa5bb6bbb
+1, 170640, 170640, 2160, 768, 0x48496c4c
+0, 57, -9223372036854775808, 1, 1362, 0x256e43cf, F=0x0
+1, 172800, 172800, 2160, 768, 0x800d78f0
+0, 58, -9223372036854775808, 1, 1200, 0x29e6f055, F=0x0
+1, 174960, 174960, 2160, 768, 0x40db840c
+1, 177120, 177120, 2160, 768, 0xadc96a6b
+0, 59, -9223372036854775808, 1, 1495, 0x88e9b973, F=0x0
+1, 179280, 179280, 2160, 768, 0xff986b03
+0, 60, -9223372036854775808, 1, 1386, 0x849297d2, F=0x0
+1, 181440, 181440, 2160, 768, 0x152473d6
+0, 61, -9223372036854775808, 1, 1572, 0x63b7dc79, F=0x0
+1, 183600, 183600, 2160, 768, 0x01567323
+1, 185760, 185760, 2160, 768, 0xe5f26fe5
+0, 62, -9223372036854775808, 1, 1190, 0x32ccf4cb, F=0x0
+1, 187920, 187920, 2160, 768, 0xa8fd72cd
+0, 63, -9223372036854775808, 1, 1395, 0xa6ec4ae9, F=0x0
+1, 190080, 190080, 2160, 768, 0x8857655b
+0, 64, -9223372036854775808, 1, 5692, 0x81aed6f3
+1, 192240, 192240, 2160, 768, 0x84017b13
+1, 194400, 194400, 2160, 768, 0xe6a968b3
+0, 65, -9223372036854775808, 1, 1335, 0xe98a5497, F=0x0
+1, 196560, 196560, 2160, 768, 0xb03a7566
+0, 66, -9223372036854775808, 1, 1361, 0x8ae15ab5, F=0x0
+1, 198720, 198720, 2160, 768, 0x8bea5f62
+1, 200880, 200880, 2160, 768, 0xac7570b0
+0, 67, -9223372036854775808, 1, 1525, 0xed2bc1e8, F=0x0
+1, 203040, 203040, 2160, 768, 0x11306fac
+0, 68, -9223372036854775808, 1, 1570, 0xba70d74b, F=0x0
+1, 205200, 205200, 2160, 768, 0xf2af5b28
+0, 69, -9223372036854775808, 1, 1349, 0xd97a687d, F=0x0
+1, 207360, 207360, 2160, 768, 0x3069681f
+1, 209520, 209520, 2160, 768, 0x7ff07033
+0, 70, -9223372036854775808, 1, 1270, 0xca8c3ca8, F=0x0
+1, 211680, 211680, 2160, 768, 0xd74973f2
+0, 71, -9223372036854775808, 1, 1016, 0x32d0c81a, F=0x0
+1, 213840, 213840, 2160, 768, 0xb3627304
+1, 216000, 216000, 2160, 768, 0x11ff7589
+0, 72, -9223372036854775808, 1, 983, 0x536faa97, F=0x0
+1, 218160, 218160, 2160, 768, 0x4a156c63
+0, 73, -9223372036854775808, 1, 1111, 0x44ade015, F=0x0
+1, 220320, 220320, 2160, 768, 0xcb036127
+0, 74, -9223372036854775808, 1, 1314, 0xce7c477d, F=0x0
+1, 222480, 222480, 2160, 768, 0x0b796bb9
+1, 224640, 224640, 2160, 768, 0x1d516c35
+0, 75, -9223372036854775808, 1, 1005, 0x0196b491, F=0x0
+1, 226800, 226800, 2160, 768, 0xa9146da1
+0, 76, -9223372036854775808, 1, 1162, 0xb8f6ebe6, F=0x0
+1, 228960, 228960, 2160, 768, 0x6d176392
+1, 231120, 231120, 2160, 768, 0x6f966269
+0, 77, -9223372036854775808, 1, 1440, 0xfca67c72, F=0x0
+1, 233280, 233280, 2160, 768, 0x7ee17724
+0, 78, -9223372036854775808, 1, 1437, 0x491181b1, F=0x0
+1, 235440, 235440, 2160, 768, 0x3f07614a
+0, 79, -9223372036854775808, 1, 1261, 0xf0cd1898, F=0x0
+1, 237600, 237600, 2160, 768, 0x49d56945
+1, 239760, 239760, 2160, 768, 0x68eb660a
+0, 80, -9223372036854775808, 1, 5638, 0x3a25a9f2
+1, 241920, 241920, 2160, 768, 0xe7c96677
+0, 81, -9223372036854775808, 1, 1091, 0x67d9c693, F=0x0
+1, 244080, 244080, 2160, 768, 0x7dc07a35
+1, 246240, 246240, 2160, 768, 0x1e9c6397
+0, 82, -9223372036854775808, 1, 875, 0x52147bb1, F=0x0
+1, 248400, 248400, 2160, 768, 0x93ef5de4
+0, 83, -9223372036854775808, 1, 1188, 0x8522000f, F=0x0
+1, 250560, 250560, 2160, 768, 0x34af6803
+0, 84, -9223372036854775808, 1, 1360, 0x89b82e7b, F=0x0
+1, 252720, 252720, 2160, 768, 0x77e068be
+1, 254880, 254880, 2160, 768, 0x65e274de
+0, 85, -9223372036854775808, 1, 1378, 0xe8644914, F=0x0
+1, 257040, 257040, 2160, 768, 0xb7ad6a8a
+0, 86, -9223372036854775808, 1, 1194, 0x89fef83d, F=0x0
+1, 259200, 259200, 2160, 768, 0x84b3635f
+0, 87, -9223372036854775808, 1, 1422, 0x99daa18b, F=0x0
+1, 261360, 261360, 2160, 768, 0x066b78f2
+1, 263520, 263520, 2160, 768, 0xda137428
+0, 88, -9223372036854775808, 1, 1049, 0x72a9cec1, F=0x0
+1, 265680, 265680, 2160, 768, 0xfd6c7597
+0, 89, -9223372036854775808, 1, 1327, 0x7d15307c, F=0x0
+1, 267840, 267840, 2160, 768, 0x8d766d40
diff --git a/ffmpeg1/tests/ref/fate/loco-rgb b/ffmpeg1/tests/ref/fate/loco-rgb
new file mode 100644
index 0000000..ad199f1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/loco-rgb
@@ -0,0 +1,6 @@
+#tb 0: 71/500
+0, 0, 0, 1, 72192, 0x1847500c
+0, 1, 1, 1, 72192, 0x1b0e2e87
+0, 2, 2, 1, 72192, 0x293276c8
+0, 3, 3, 1, 72192, 0x743b9705
+0, 4, 4, 1, 72192, 0xcc1b2530
diff --git a/ffmpeg1/tests/ref/fate/loco-yuy2 b/ffmpeg1/tests/ref/fate/loco-yuy2
new file mode 100644
index 0000000..60a06bc
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/loco-yuy2
@@ -0,0 +1,4 @@
+#tb 0: 71/500
+0, 0, 0, 1, 48128, 0x7795782d
+0, 1, 1, 1, 48128, 0x3d89bcf7
+0, 2, 2, 1, 48128, 0x170d200a
diff --git a/ffmpeg1/tests/ref/fate/lossless-alac b/ffmpeg1/tests/ref/fate/lossless-alac
new file mode 100644
index 0000000..df27061
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lossless-alac
@@ -0,0 +1 @@
+d0beb768d860b4776358077dd9fcb1e9
diff --git a/ffmpeg1/tests/ref/fate/lossless-meridianaudio b/ffmpeg1/tests/ref/fate/lossless-meridianaudio
new file mode 100644
index 0000000..7f6f43f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lossless-meridianaudio
@@ -0,0 +1 @@
+b3d0c9523c42fae639f7074e60281509
diff --git a/ffmpeg1/tests/ref/fate/lossless-monkeysaudio b/ffmpeg1/tests/ref/fate/lossless-monkeysaudio
new file mode 100644
index 0000000..4b8caa1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lossless-monkeysaudio
@@ -0,0 +1 @@
+a28d4e5f2192057f7d4bece870f40bd0
diff --git a/ffmpeg1/tests/ref/fate/lossless-shorten b/ffmpeg1/tests/ref/fate/lossless-shorten
new file mode 100644
index 0000000..9cdb369
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lossless-shorten
@@ -0,0 +1 @@
+da93c50961443b88fce416ae61c8ca8a
diff --git a/ffmpeg1/tests/ref/fate/lossless-tak b/ffmpeg1/tests/ref/fate/lossless-tak
new file mode 100644
index 0000000..9e9ba47
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lossless-tak
@@ -0,0 +1 @@
+CRC=0x4ec0971f
diff --git a/ffmpeg1/tests/ref/fate/lossless-tta b/ffmpeg1/tests/ref/fate/lossless-tta
new file mode 100644
index 0000000..85b7a59
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lossless-tta
@@ -0,0 +1 @@
+CRC=0xb2b8b6d9
diff --git a/ffmpeg1/tests/ref/fate/lossless-tta-encrypted b/ffmpeg1/tests/ref/fate/lossless-tta-encrypted
new file mode 100644
index 0000000..39aec95
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lossless-tta-encrypted
@@ -0,0 +1 @@
+CRC=0x4563745f
diff --git a/ffmpeg1/tests/ref/fate/lossless-wma b/ffmpeg1/tests/ref/fate/lossless-wma
new file mode 100644
index 0000000..5bea19b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/lossless-wma
@@ -0,0 +1 @@
+35dc840f91cbcece02178d03c8f2fe26
diff --git a/ffmpeg1/tests/ref/fate/mapchan-6ch-extract-2 b/ffmpeg1/tests/ref/fate/mapchan-6ch-extract-2
new file mode 100644
index 0000000..98c8540
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mapchan-6ch-extract-2
@@ -0,0 +1,2 @@
+6f091fe8c0be88c75921731dc9f74314
+5c2d162b9024329eb367295d37b8ca0a
diff --git a/ffmpeg1/tests/ref/fate/mapchan-6ch-extract-2-downmix-mono b/ffmpeg1/tests/ref/fate/mapchan-6ch-extract-2-downmix-mono
new file mode 100644
index 0000000..f42de0c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mapchan-6ch-extract-2-downmix-mono
@@ -0,0 +1 @@
+959645ed73e6d08d8f1e947eac5d0b92
diff --git a/ffmpeg1/tests/ref/fate/mapchan-silent-mono b/ffmpeg1/tests/ref/fate/mapchan-silent-mono
new file mode 100644
index 0000000..a867e3b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mapchan-silent-mono
@@ -0,0 +1 @@
+4f5148f08587a4b9794aa52aec7852ac
diff --git a/ffmpeg1/tests/ref/fate/maxis-xa b/ffmpeg1/tests/ref/fate/maxis-xa
new file mode 100644
index 0000000..c29738c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/maxis-xa
@@ -0,0 +1,31 @@
+#tb 0: 1/22050
+0, 0, 0, 28, 30, 0x51750711
+0, 28, 28, 28, 30, 0x9ca20c2a
+0, 56, 56, 28, 30, 0x7551081f
+0, 84, 84, 28, 30, 0x09540063
+0, 112, 112, 28, 30, 0x02c40018
+0, 140, 140, 28, 30, 0x0f6c0117
+0, 168, 168, 28, 30, 0x2aab0315
+0, 196, 196, 28, 30, 0x0e6d0117
+0, 224, 224, 28, 30, 0x04770036
+0, 252, 252, 28, 30, 0x939c090f
+0, 280, 280, 28, 30, 0xde511116
+0, 308, 308, 28, 30, 0x2f0f13f5
+0, 336, 336, 28, 30, 0x65bb0630
+0, 364, 364, 28, 30, 0x1f7a0333
+0, 392, 392, 28, 30, 0xa3d71008
+0, 420, 420, 28, 30, 0x69120801
+0, 448, 448, 28, 30, 0x1e7b0207
+0, 476, 476, 28, 30, 0x02c40018
+0, 504, 504, 28, 30, 0x0d050126
+0, 532, 532, 28, 30, 0x41c10333
+0, 560, 560, 28, 30, 0x16a10207
+0, 588, 588, 28, 30, 0x0f210207
+0, 616, 616, 28, 30, 0x4e4b073e
+0, 644, 644, 28, 30, 0xa6f20d1a
+0, 672, 672, 28, 30, 0xe1e40ff9
+0, 700, 700, 28, 30, 0x868b090f
+0, 728, 728, 28, 30, 0x8c85091e
+0, 756, 756, 28, 30, 0x5a21094b
+0, 784, 784, 28, 30, 0x993c0900
+0, 812, 812, 28, 30, 0x5b6b04e6
diff --git a/ffmpeg1/tests/ref/fate/md5 b/ffmpeg1/tests/ref/fate/md5
new file mode 100644
index 0000000..af08a84
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/md5
@@ -0,0 +1,5 @@
+0bf1bcc8a1d72e2cf58d42182b637e56
+993a3eb298e52aca83ecfbb6a766b4d0
+07c01ca7c733475fad38c84c56f305c1
+9fc8404827cac26385f48f4f58fd32ce
+a22bfef14302c5ca46e0ae91092bc0e0
diff --git a/ffmpeg1/tests/ref/fate/mdec b/ffmpeg1/tests/ref/fate/mdec
new file mode 100644
index 0000000..b7aab62
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mdec
@@ -0,0 +1,135 @@
+#tb 0: 1/15
+0, 0, 0, 1, 102144, 0x6edc83de
+0, 1, 1, 1, 102144, 0xd0534fda
+0, 2, 2, 1, 102144, 0x6447911f
+0, 3, 3, 1, 102144, 0xf21f3b46
+0, 4, 4, 1, 102144, 0x0975077a
+0, 5, 5, 1, 102144, 0xb9a12d8e
+0, 6, 6, 1, 102144, 0x17413513
+0, 7, 7, 1, 102144, 0x1e622a04
+0, 8, 8, 1, 102144, 0x7489224e
+0, 9, 9, 1, 102144, 0xae14956e
+0, 10, 10, 1, 102144, 0x104fd3a0
+0, 11, 11, 1, 102144, 0xea63a940
+0, 12, 12, 1, 102144, 0x0cf81588
+0, 13, 13, 1, 102144, 0xe4a5b2fd
+0, 14, 14, 1, 102144, 0x0c9aaf77
+0, 15, 15, 1, 102144, 0x065007d7
+0, 16, 16, 1, 102144, 0x54c0c29b
+0, 17, 17, 1, 102144, 0x1114cb8e
+0, 18, 18, 1, 102144, 0xe4270462
+0, 19, 19, 1, 102144, 0x61e5b7fd
+0, 20, 20, 1, 102144, 0x7cbeaca6
+0, 21, 21, 1, 102144, 0xed92daa4
+0, 22, 22, 1, 102144, 0xd8654d0d
+0, 23, 23, 1, 102144, 0x854e842b
+0, 24, 24, 1, 102144, 0x56407c3a
+0, 25, 25, 1, 102144, 0x17db3f90
+0, 26, 26, 1, 102144, 0x8b133b9a
+0, 27, 27, 1, 102144, 0xe4899db9
+0, 28, 28, 1, 102144, 0x579cf092
+0, 29, 29, 1, 102144, 0x19fa5062
+0, 30, 30, 1, 102144, 0x71339792
+0, 31, 31, 1, 102144, 0x970e5c0c
+0, 32, 32, 1, 102144, 0x84ee616a
+0, 33, 33, 1, 102144, 0x1d6f9a23
+0, 34, 34, 1, 102144, 0xc28e19db
+0, 35, 35, 1, 102144, 0x0e898967
+0, 36, 36, 1, 102144, 0x52a8b671
+0, 37, 37, 1, 102144, 0x3f45ea83
+0, 38, 38, 1, 102144, 0x7b0fc603
+0, 39, 39, 1, 102144, 0x14f94469
+0, 40, 40, 1, 102144, 0x5b9f37cc
+0, 41, 41, 1, 102144, 0xf902b7c7
+0, 42, 42, 1, 102144, 0x326836e0
+0, 43, 43, 1, 102144, 0x2e4aebba
+0, 44, 44, 1, 102144, 0xd10ae58c
+0, 45, 45, 1, 102144, 0xbd084ecf
+0, 46, 46, 1, 102144, 0xb2157c0a
+0, 47, 47, 1, 102144, 0xd7f158d4
+0, 48, 48, 1, 102144, 0x3cf86462
+0, 49, 49, 1, 102144, 0x53ecddab
+0, 50, 50, 1, 102144, 0xcdaba8ef
+0, 51, 51, 1, 102144, 0xab9ede18
+0, 52, 52, 1, 102144, 0xb6706e79
+0, 53, 53, 1, 102144, 0x76371069
+0, 54, 54, 1, 102144, 0x3a365016
+0, 55, 55, 1, 102144, 0x52177c09
+0, 56, 56, 1, 102144, 0xc33eb4fb
+0, 57, 57, 1, 102144, 0x16098436
+0, 58, 58, 1, 102144, 0x715d6a2b
+0, 59, 59, 1, 102144, 0xd3abc960
+0, 60, 60, 1, 102144, 0x7f34b0d4
+0, 61, 61, 1, 102144, 0xe3219b9c
+0, 62, 62, 1, 102144, 0x5fa54f54
+0, 63, 63, 1, 102144, 0x0fb746cb
+0, 64, 64, 1, 102144, 0xa6bd2da2
+0, 65, 65, 1, 102144, 0x04579119
+0, 66, 66, 1, 102144, 0xda818691
+0, 67, 67, 1, 102144, 0xe9d44445
+0, 68, 68, 1, 102144, 0x94868dc9
+0, 69, 69, 1, 102144, 0x3ca52ce6
+0, 70, 70, 1, 102144, 0xd7eb4c4f
+0, 71, 71, 1, 102144, 0xfcdfafca
+0, 72, 72, 1, 102144, 0x473a4a5a
+0, 73, 73, 1, 102144, 0xe5a5f3cb
+0, 74, 74, 1, 102144, 0x34070219
+0, 75, 75, 1, 102144, 0x0faa965a
+0, 76, 76, 1, 102144, 0xe2c6acda
+0, 77, 77, 1, 102144, 0xe22776d5
+0, 78, 78, 1, 102144, 0x80d85602
+0, 79, 79, 1, 102144, 0x2f3fa190
+0, 80, 80, 1, 102144, 0x70b461b1
+0, 81, 81, 1, 102144, 0x366c8b27
+0, 82, 82, 1, 102144, 0x65cc0866
+0, 83, 83, 1, 102144, 0x903beb14
+0, 84, 84, 1, 102144, 0xb6c5f5c7
+0, 85, 85, 1, 102144, 0xaa813725
+0, 86, 86, 1, 102144, 0x014a84a0
+0, 87, 87, 1, 102144, 0xd286ece1
+0, 88, 88, 1, 102144, 0x48b1c27d
+0, 89, 89, 1, 102144, 0xa611ef42
+0, 90, 90, 1, 102144, 0x98627584
+0, 91, 91, 1, 102144, 0x43de7c75
+0, 92, 92, 1, 102144, 0xa9e22c68
+0, 93, 93, 1, 102144, 0x84ac34d4
+0, 94, 94, 1, 102144, 0x6abd00ba
+0, 95, 95, 1, 102144, 0x5d11066e
+0, 96, 96, 1, 102144, 0xb6b083aa
+0, 97, 97, 1, 102144, 0x5d152a11
+0, 98, 98, 1, 102144, 0x0c0aec67
+0, 99, 99, 1, 102144, 0xa248bd10
+0, 100, 100, 1, 102144, 0x4e6c12cc
+0, 101, 101, 1, 102144, 0xca1d6753
+0, 102, 102, 1, 102144, 0x116310c3
+0, 103, 103, 1, 102144, 0x16903cd0
+0, 104, 104, 1, 102144, 0x239adfed
+0, 105, 105, 1, 102144, 0x0970ce49
+0, 106, 106, 1, 102144, 0xb628adc1
+0, 107, 107, 1, 102144, 0x473613f7
+0, 108, 108, 1, 102144, 0x3eef3987
+0, 109, 109, 1, 102144, 0x935b99ca
+0, 110, 110, 1, 102144, 0xb9f4d6ee
+0, 111, 111, 1, 102144, 0xac811656
+0, 112, 112, 1, 102144, 0xd1f84af0
+0, 113, 113, 1, 102144, 0xf2fd25f4
+0, 114, 114, 1, 102144, 0x935bbed9
+0, 115, 115, 1, 102144, 0x8c8c3e53
+0, 116, 116, 1, 102144, 0x24afc20f
+0, 117, 117, 1, 102144, 0xad20a451
+0, 118, 118, 1, 102144, 0xd1a0df13
+0, 119, 119, 1, 102144, 0xb0ee53f8
+0, 120, 120, 1, 102144, 0x08cdb591
+0, 121, 121, 1, 102144, 0x89b985b0
+0, 122, 122, 1, 102144, 0xdd27d51f
+0, 123, 123, 1, 102144, 0xa783fce0
+0, 124, 124, 1, 102144, 0xfe5602e8
+0, 125, 125, 1, 102144, 0xfb989934
+0, 126, 126, 1, 102144, 0xf857eb2b
+0, 127, 127, 1, 102144, 0x987a7098
+0, 128, 128, 1, 102144, 0xbc749f42
+0, 129, 129, 1, 102144, 0x221e48a6
+0, 130, 130, 1, 102144, 0x4c4b5da2
+0, 131, 131, 1, 102144, 0x32140027
+0, 132, 132, 1, 102144, 0xbeb4bf18
+0, 133, 133, 1, 102144, 0x523012e5
diff --git a/ffmpeg1/tests/ref/fate/mdec-v3 b/ffmpeg1/tests/ref/fate/mdec-v3
new file mode 100644
index 0000000..7e4bbdb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mdec-v3
@@ -0,0 +1,60 @@
+#tb 0: 1/15
+0, 0, 0, 1, 76800, 0x2677be82
+0, 1, 1, 1, 76800, 0x1f323c75
+0, 2, 2, 1, 76800, 0xc8be3be9
+0, 3, 3, 1, 76800, 0x1f323c75
+0, 4, 4, 1, 76800, 0x7e484488
+0, 5, 5, 1, 76800, 0x8bd644aa
+0, 6, 6, 1, 76800, 0xaa62e7b8
+0, 7, 7, 1, 76800, 0xaa62e7b8
+0, 8, 8, 1, 76800, 0x53fadb39
+0, 9, 9, 1, 76800, 0x53fadb39
+0, 10, 10, 1, 76800, 0x1ff9d964
+0, 11, 11, 1, 76800, 0x1ff9d964
+0, 12, 12, 1, 76800, 0xd8c8d947
+0, 13, 13, 1, 76800, 0xd8c8d947
+0, 14, 14, 1, 76800, 0x6d0bd94c
+0, 15, 15, 1, 76800, 0x6d0bd94c
+0, 16, 16, 1, 76800, 0x7e66d948
+0, 17, 17, 1, 76800, 0x7e66d948
+0, 18, 18, 1, 76800, 0x8eecfd72
+0, 19, 19, 1, 76800, 0xb15f29ab
+0, 20, 20, 1, 76800, 0x08e5502e
+0, 21, 21, 1, 76800, 0xaa58796d
+0, 22, 22, 1, 76800, 0xe254a27c
+0, 23, 23, 1, 76800, 0xeec8cf68
+0, 24, 24, 1, 76800, 0x812bf8ee
+0, 25, 25, 1, 76800, 0x929922ef
+0, 26, 26, 1, 76800, 0xe1174e06
+0, 27, 27, 1, 76800, 0x2da77bf1
+0, 28, 28, 1, 76800, 0xd0f6a727
+0, 29, 29, 1, 76800, 0x31bfd168
+0, 30, 30, 1, 76800, 0xb87af225
+0, 31, 31, 1, 76800, 0xd0080859
+0, 32, 32, 1, 76800, 0x99ab15ba
+0, 33, 33, 1, 76800, 0x99ab15ba
+0, 34, 34, 1, 76800, 0x99ab15ba
+0, 35, 35, 1, 76800, 0x99ab15ba
+0, 36, 36, 1, 76800, 0x99ab15ba
+0, 37, 37, 1, 76800, 0x99ab15ba
+0, 38, 38, 1, 76800, 0x99ab15ba
+0, 39, 39, 1, 76800, 0x99ab15ba
+0, 40, 40, 1, 76800, 0x99ab15ba
+0, 41, 41, 1, 76800, 0x99ab15ba
+0, 42, 42, 1, 76800, 0x99ab15ba
+0, 43, 43, 1, 76800, 0x99ab15ba
+0, 44, 44, 1, 76800, 0x99ab15ba
+0, 45, 45, 1, 76800, 0x99ab15ba
+0, 46, 46, 1, 76800, 0x99ab15ba
+0, 47, 47, 1, 76800, 0x99ab15ba
+0, 48, 48, 1, 76800, 0x0c1617d5
+0, 49, 49, 1, 76800, 0xb1c81b5d
+0, 50, 50, 1, 76800, 0xb4e41e44
+0, 51, 51, 1, 76800, 0x765725e2
+0, 52, 52, 1, 76800, 0x25cd3109
+0, 53, 53, 1, 76800, 0xa42b5291
+0, 54, 54, 1, 76800, 0x15bb6ee4
+0, 55, 55, 1, 76800, 0xb33c9f50
+0, 56, 56, 1, 76800, 0x1ca1b874
+0, 57, 57, 1, 76800, 0x7506e92a
+0, 58, 58, 1, 76800, 0x97c9030a
diff --git a/ffmpeg1/tests/ref/fate/mimic b/ffmpeg1/tests/ref/fate/mimic
new file mode 100644
index 0000000..217d487
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mimic
@@ -0,0 +1,77 @@
+#tb 0: 1/1000
+0, 0, 0, 0, 115200, 0xa974d407
+0, 548, 548, 0, 115200, 0x72618b84
+0, 1088, 1088, 0, 115200, 0x87768573
+0, 1759, 1759, 0, 115200, 0x5d218e3e
+0, 2437, 2437, 0, 115200, 0x0c0db41c
+0, 3076, 3076, 0, 115200, 0xb777fd48
+0, 3908, 3908, 0, 115200, 0x40765de7
+0, 4545, 4545, 0, 115200, 0x370a3c90
+0, 5092, 5092, 0, 115200, 0xc605785a
+0, 6016, 6016, 0, 115200, 0x49468b23
+0, 6560, 6560, 0, 115200, 0x986b6fd4
+0, 7648, 7648, 0, 115200, 0x30f22ef8
+0, 8164, 8164, 0, 115200, 0xa90bd608
+0, 8836, 8836, 0, 115200, 0x9cf36518
+0, 9632, 9632, 0, 115200, 0x4ef1a679
+0, 9922, 9922, 0, 115200, 0x0df65873
+0, 10316, 10316, 0, 115200, 0xfecd4233
+0, 11104, 11104, 0, 115200, 0xee2f26cb
+0, 11776, 11776, 0, 115200, 0x795f612d
+0, 12321, 12321, 0, 115200, 0xbbb90125
+0, 12992, 12992, 0, 115200, 0x9230fb6e
+0, 13805, 13805, 0, 115200, 0x11869996
+0, 14468, 14468, 0, 115200, 0x6b5c892b
+0, 15136, 15136, 0, 115200, 0x88bdb9cd
+0, 15937, 15937, 0, 115200, 0x364bc5a0
+0, 16608, 16608, 0, 115200, 0x6b66d817
+0, 17281, 17281, 0, 115200, 0xd3a41252
+0, 18089, 18089, 0, 115200, 0x0cf5612f
+0, 18754, 18754, 0, 115200, 0x9752d055
+0, 19808, 19808, 0, 115200, 0x486e9f6f
+0, 20484, 20484, 0, 115200, 0x3eab62f8
+0, 21031, 21031, 0, 115200, 0xa7f52762
+0, 21957, 21957, 0, 115200, 0xfd4c4bbc
+0, 22498, 22498, 0, 115200, 0x194023f6
+0, 22880, 22880, 0, 115200, 0xd4668dad
+0, 23680, 23680, 0, 115200, 0x6b20d64b
+0, 24353, 24353, 0, 115200, 0xf2572aae
+0, 24901, 24901, 0, 115200, 0xc3554f25
+0, 25695, 25695, 0, 115200, 0xeeb5073a
+0, 26495, 26495, 0, 115200, 0xbd46291f
+0, 27040, 27040, 0, 115200, 0x0526838d
+0, 28107, 28107, 0, 115200, 0x85b2e864
+0, 28778, 28778, 0, 115200, 0xcfd894bc
+0, 29316, 29316, 0, 115200, 0x644f10fb
+0, 30240, 30240, 0, 115200, 0x556e4d88
+0, 30786, 30786, 0, 115200, 0x93243614
+0, 31983, 31983, 0, 115200, 0x754275c5
+0, 32929, 32929, 0, 115200, 0x7f648bf3
+0, 33600, 33600, 0, 115200, 0xece18c9b
+0, 34271, 34271, 0, 115200, 0x385d52c1
+0, 35201, 35201, 0, 115200, 0xafc58e4a
+0, 35743, 35743, 0, 115200, 0x50daf750
+0, 36384, 36384, 0, 115200, 0xf6bc67d1
+0, 37344, 37344, 0, 115200, 0xb64b6e07
+0, 38028, 38028, 0, 115200, 0x8751ed15
+0, 38657, 38657, 0, 115200, 0x329ce803
+0, 39334, 39334, 0, 115200, 0x40b2cb05
+0, 40129, 40129, 0, 115200, 0x60f3517d
+0, 40802, 40802, 0, 115200, 0xe0d46fdf
+0, 41472, 41472, 0, 115200, 0x204529fa
+0, 42276, 42276, 0, 115200, 0xd5afaf22
+0, 42944, 42944, 0, 115200, 0xd3cb3d4c
+0, 43616, 43616, 0, 115200, 0x87973a79
+0, 44421, 44421, 0, 115200, 0xe3b2f917
+0, 45092, 45092, 0, 115200, 0xf1923238
+0, 45632, 45632, 0, 115200, 0x51494d71
+0, 46561, 46561, 0, 115200, 0x58bc59bb
+0, 47105, 47105, 0, 115200, 0xd0273fdb
+0, 47776, 47776, 0, 115200, 0x6cc79700
+0, 48294, 48294, 0, 115200, 0xc8172d31
+0, 48960, 48960, 0, 115200, 0x8eb037ef
+0, 49504, 49504, 0, 115200, 0xc0bc2d76
+0, 50053, 50053, 0, 115200, 0x663c467a
+0, 50597, 50597, 0, 115200, 0xd085e950
+0, 51520, 51520, 0, 115200, 0x7d198d72
+0, 52092, 52092, 0, 115200, 0x6ebacda0
diff --git a/ffmpeg1/tests/ref/fate/mjpegb b/ffmpeg1/tests/ref/fate/mjpegb
new file mode 100644
index 0000000..ef8a00b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mjpegb
@@ -0,0 +1,11 @@
+#tb 0: 1/12
+0, 0, 0, 1, 38400, 0x45311080
+0, 1, 1, 1, 38400, 0x9474f731
+0, 2, 2, 1, 38400, 0x429ebb12
+0, 3, 3, 1, 38400, 0x472c199a
+0, 4, 4, 1, 38400, 0xefd49dae
+0, 5, 5, 1, 38400, 0x78627fa9
+0, 6, 6, 1, 38400, 0x2a8d9148
+0, 7, 7, 1, 38400, 0x21cc6738
+0, 8, 8, 1, 38400, 0x0bc4703f
+0, 9, 9, 1, 38400, 0x1ddcc035
diff --git a/ffmpeg1/tests/ref/fate/motionpixels b/ffmpeg1/tests/ref/fate/motionpixels
new file mode 100644
index 0000000..c875275
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/motionpixels
@@ -0,0 +1,112 @@
+#tb 0: 66667/1000000
+0, 0, 0, 1, 230400, 0xee05b509
+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/ffmpeg1/tests/ref/fate/mpc7-demux b/ffmpeg1/tests/ref/fate/mpc7-demux
new file mode 100644
index 0000000..f7f2f6e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mpc7-demux
@@ -0,0 +1 @@
+CRC=0xdeb152dd
diff --git a/ffmpeg1/tests/ref/fate/mpc8-demux b/ffmpeg1/tests/ref/fate/mpc8-demux
new file mode 100644
index 0000000..85b0aa4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mpc8-demux
@@ -0,0 +1 @@
+CRC=0x5cdeaf0c
diff --git a/ffmpeg1/tests/ref/fate/mpeg2-field-enc b/ffmpeg1/tests/ref/fate/mpeg2-field-enc
new file mode 100644
index 0000000..bf8a01a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mpeg2-field-enc
@@ -0,0 +1,31 @@
+#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
diff --git a/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-00 b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-00
new file mode 100644
index 0000000..84a14c4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-00
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-01 b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-01
new file mode 100644
index 0000000..84a14c4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-01
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-02 b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-02
new file mode 100644
index 0000000..84a14c4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-02
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-03 b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-03
new file mode 100644
index 0000000..84a14c4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-03
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-04 b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-04
new file mode 100644
index 0000000..84a14c4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-04
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-05 b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-05
new file mode 100644
index 0000000..84a14c4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mpeg4-als-conformance-05
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/ffmpeg1/tests/ref/fate/msmpeg4v1 b/ffmpeg1/tests/ref/fate/msmpeg4v1
new file mode 100644
index 0000000..d67a0ef
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/msmpeg4v1
@@ -0,0 +1,51 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 126720, 0x84284323
+0, 1, 1, 1, 126720, 0x336fe236
+0, 2, 2, 1, 126720, 0x901f1299
+0, 3, 3, 1, 126720, 0x3b8be5fe
+0, 4, 4, 1, 126720, 0x6da06397
+0, 5, 5, 1, 126720, 0xe83de744
+0, 6, 6, 1, 126720, 0xef2ed2bb
+0, 7, 7, 1, 126720, 0x3ed1797f
+0, 8, 8, 1, 126720, 0xf8c81785
+0, 9, 9, 1, 126720, 0xf38239e0
+0, 10, 10, 1, 126720, 0x005a2d6d
+0, 11, 11, 1, 126720, 0xd6be525d
+0, 12, 12, 1, 126720, 0x39482727
+0, 13, 13, 1, 126720, 0xc8d95bc5
+0, 14, 14, 1, 126720, 0xbaebd1e7
+0, 15, 15, 1, 126720, 0xc94d60b3
+0, 16, 16, 1, 126720, 0x80886d64
+0, 17, 17, 1, 126720, 0xf99a39ee
+0, 18, 18, 1, 126720, 0xbc8b6c26
+0, 19, 19, 1, 126720, 0x2270acf1
+0, 20, 20, 1, 126720, 0x754b5965
+0, 21, 21, 1, 126720, 0x5312dc30
+0, 22, 22, 1, 126720, 0x2254cc6e
+0, 23, 23, 1, 126720, 0x58b4bdcc
+0, 24, 24, 1, 126720, 0xd1ed63ee
+0, 25, 25, 1, 126720, 0x4442dec5
+0, 26, 26, 1, 126720, 0x53403cef
+0, 27, 27, 1, 126720, 0x495d575f
+0, 28, 28, 1, 126720, 0x3ebfc7e8
+0, 29, 29, 1, 126720, 0x8f0abe01
+0, 30, 30, 1, 126720, 0x9540ba61
+0, 31, 31, 1, 126720, 0xb011e3cf
+0, 32, 32, 1, 126720, 0x70b4b1f4
+0, 33, 33, 1, 126720, 0x803b67f9
+0, 34, 34, 1, 126720, 0xa1c92662
+0, 35, 35, 1, 126720, 0x3a3d9e4c
+0, 36, 36, 1, 126720, 0x12660aa2
+0, 37, 37, 1, 126720, 0xb84c7602
+0, 38, 38, 1, 126720, 0x920df241
+0, 39, 39, 1, 126720, 0x5f9db168
+0, 40, 40, 1, 126720, 0xe3f524a6
+0, 41, 41, 1, 126720, 0x5f390fa7
+0, 42, 42, 1, 126720, 0xa9503b4f
+0, 43, 43, 1, 126720, 0x259c08e2
+0, 44, 44, 1, 126720, 0xef7a0279
+0, 45, 45, 1, 126720, 0x4d31ed35
+0, 46, 46, 1, 126720, 0xe10e3c7e
+0, 47, 47, 1, 126720, 0xc35f191e
+0, 48, 48, 1, 126720, 0x3401e9a9
+0, 49, 49, 1, 126720, 0xd50603f9
diff --git a/ffmpeg1/tests/ref/fate/msrle-8bit b/ffmpeg1/tests/ref/fate/msrle-8bit
new file mode 100644
index 0000000..5db1c24
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/msrle-8bit
@@ -0,0 +1,30 @@
+#tb 0: 83333/500000
+0, 0, 0, 1, 11520, 0xaf416a66
+0, 1, 1, 1, 11520, 0x8ab76654
+0, 2, 2, 1, 11520, 0xd22880c4
+0, 3, 3, 1, 11520, 0x9d2f612a
+0, 4, 4, 1, 11520, 0xf538600a
+0, 5, 5, 1, 11520, 0x371d64e6
+0, 6, 6, 1, 11520, 0x49043fbf
+0, 7, 7, 1, 11520, 0x49043fbf
+0, 8, 8, 1, 11520, 0x12d16528
+0, 9, 9, 1, 11520, 0x1e0a6109
+0, 10, 10, 1, 11520, 0x9d2f612a
+0, 11, 11, 1, 11520, 0x96e083ca
+0, 12, 12, 1, 11520, 0x8ab76654
+0, 13, 13, 1, 11520, 0x43ac6de7
+0, 14, 14, 1, 11520, 0x43ac6de7
+0, 15, 15, 1, 11520, 0x5c3e6819
+0, 16, 16, 1, 11520, 0x22758af0
+0, 17, 17, 1, 11520, 0x88845eba
+0, 18, 18, 1, 11520, 0x4b38848a
+0, 19, 19, 1, 11520, 0x4f7495d3
+0, 20, 20, 1, 11520, 0x736b702c
+0, 21, 21, 1, 11520, 0x736b702c
+0, 22, 22, 1, 11520, 0x4f7495d3
+0, 23, 23, 1, 11520, 0x4b38848a
+0, 24, 24, 1, 11520, 0x88845eba
+0, 25, 25, 1, 11520, 0x22758af0
+0, 26, 26, 1, 11520, 0x5c3e6819
+0, 27, 27, 1, 11520, 0x43ac6de7
+0, 28, 28, 1, 11520, 0x43ac6de7
diff --git a/ffmpeg1/tests/ref/fate/msvideo1-16bit b/ffmpeg1/tests/ref/fate/msvideo1-16bit
new file mode 100644
index 0000000..f5c0e64
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/msvideo1-16bit
@@ -0,0 +1,31 @@
+#tb 0: 33369/500000
+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/ffmpeg1/tests/ref/fate/msvideo1-8bit b/ffmpeg1/tests/ref/fate/msvideo1-8bit
new file mode 100644
index 0000000..6e6bc0b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/msvideo1-8bit
@@ -0,0 +1,32 @@
+#tb 0: 10000/300003
+0, 0, 0, 1, 57600, 0x8c3c5ee8
+0, 1, 1, 1, 57600, 0xb79800b1
+0, 2, 2, 1, 57600, 0x54a221be
+0, 3, 3, 1, 57600, 0xb377ffb3
+0, 4, 4, 1, 57600, 0x46efd210
+0, 5, 5, 1, 57600, 0x46efd210
+0, 6, 6, 1, 57600, 0x46efd210
+0, 7, 7, 1, 57600, 0x92751fbc
+0, 8, 8, 1, 57600, 0xd7287442
+0, 9, 9, 1, 57600, 0xcf1153ee
+0, 10, 10, 1, 57600, 0xda5de91a
+0, 11, 11, 1, 57600, 0xa11cd513
+0, 12, 12, 1, 57600, 0xa8edac2a
+0, 13, 13, 1, 57600, 0xefd2a392
+0, 14, 14, 1, 57600, 0x2d7060cf
+0, 15, 15, 1, 57600, 0xbda3130d
+0, 16, 16, 1, 57600, 0xacb8e940
+0, 17, 17, 1, 57600, 0x93778985
+0, 18, 18, 1, 57600, 0x25ed4d97
+0, 19, 19, 1, 57600, 0x5be924bf
+0, 20, 20, 1, 57600, 0xde5ee1f7
+0, 21, 21, 1, 57600, 0x39850ab6
+0, 22, 22, 1, 57600, 0x77da195d
+0, 23, 23, 1, 57600, 0x6dad13c0
+0, 24, 24, 1, 57600, 0x69897c48
+0, 25, 25, 1, 57600, 0xfbe74728
+0, 26, 26, 1, 57600, 0x908af79d
+0, 27, 27, 1, 57600, 0x4ec4a868
+0, 28, 28, 1, 57600, 0x7db370a1
+0, 29, 29, 1, 57600, 0x2b1e52f6
+0, 30, 30, 1, 57600, 0x2141467c
diff --git a/ffmpeg1/tests/ref/fate/mszh b/ffmpeg1/tests/ref/fate/mszh
new file mode 100644
index 0000000..4ff76ff
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mszh
@@ -0,0 +1,2 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 253440, 0x94af61e5
diff --git a/ffmpeg1/tests/ref/fate/mtv b/ffmpeg1/tests/ref/fate/mtv
new file mode 100644
index 0000000..a781c08
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mtv
@@ -0,0 +1,138 @@
+#tb 0: 1/16
+#tb 1: 1/44100
+0, 0, 0, 1, 12288, 0xc2258ebc
+1, 0, 0, 1152, 417, 0xae1cc66a
+1, 1152, 1152, 1152, 418, 0xdc3ec850
+1, 2304, 2304, 1152, 418, 0x4e8ed05f
+0, 1, 1, 1, 12288, 0xc2258ebc
+1, 3456, 3456, 1152, 418, 0xeb43d574
+1, 4608, 4608, 1152, 418, 0x9357c91d
+0, 2, 2, 1, 12288, 0xb3fe829c
+1, 5760, 5760, 1152, 418, 0x5306d16b
+1, 6912, 6912, 1152, 418, 0x46e0d4da
+1, 8064, 8064, 1152, 418, 0xac11ce79
+0, 3, 3, 1, 12288, 0x2315884a
+1, 9216, 9216, 1152, 418, 0xffdfc4ad
+1, 10368, 10368, 1152, 418, 0xf8a8c2ff
+0, 4, 4, 1, 12288, 0x95a08046
+1, 11520, 11520, 1152, 418, 0x2d66d83f
+1, 12672, 12672, 1152, 418, 0x65c0da12
+0, 5, 5, 1, 12288, 0xdb49886b
+1, 13824, 13824, 1152, 418, 0x0eafd20f
+1, 14976, 14976, 1152, 418, 0x8c6dd949
+1, 16128, 16128, 1152, 418, 0x9094c02d
+0, 6, 6, 1, 12288, 0xdb49886b
+1, 17280, 17280, 1152, 418, 0xb47bd944
+1, 18432, 18432, 1152, 418, 0x935ccce7
+0, 7, 7, 1, 12288, 0xdb49886b
+1, 19584, 19584, 1152, 418, 0x6e3ed020
+1, 20736, 20736, 1152, 418, 0x8922cd6c
+1, 21888, 21888, 1152, 418, 0xe811c8f8
+0, 8, 8, 1, 12288, 0xdb49886b
+1, 23040, 23040, 1152, 418, 0xb84adc72
+1, 24192, 24192, 1152, 418, 0xa2bbc5f4
+0, 9, 9, 1, 12288, 0xdb49886b
+1, 25344, 25344, 1152, 418, 0xec0cb67d
+1, 26496, 26496, 1152, 418, 0x89d1d014
+0, 10, 10, 1, 12288, 0xdb49886b
+1, 27648, 27648, 1152, 418, 0xfb5bc872
+1, 28800, 28800, 1152, 417, 0x8bfcc7a0
+1, 29952, 29952, 1152, 418, 0xeb4ac61b
+0, 11, 11, 1, 12288, 0xdb49886b
+1, 31104, 31104, 1152, 418, 0xd3cbc3c4
+1, 32256, 32256, 1152, 418, 0xa272d092
+0, 12, 12, 1, 12288, 0xdb49886b
+1, 33408, 33408, 1152, 418, 0x611ec37e
+1, 34560, 34560, 1152, 418, 0x70a3d423
+1, 35712, 35712, 1152, 418, 0xeff9ccf4
+0, 13, 13, 1, 12288, 0xdb49886b
+1, 36864, 36864, 1152, 418, 0x9788c65b
+1, 38016, 38016, 1152, 418, 0xe9a8cb8c
+0, 14, 14, 1, 12288, 0xdb49886b
+1, 39168, 39168, 1152, 418, 0x5834c300
+1, 40320, 40320, 1152, 418, 0xa4b8cd3a
+0, 15, 15, 1, 12288, 0xdb49886b
+1, 41472, 41472, 1152, 418, 0x6de2c7f9
+1, 42624, 42624, 1152, 418, 0x961bbbf3
+1, 43776, 43776, 1152, 418, 0x53edc13a
+0, 16, 16, 1, 12288, 0x95a08046
+1, 44928, 44928, 1152, 418, 0x2fedc4b0
+1, 46080, 46080, 1152, 418, 0xb756c18b
+0, 17, 17, 1, 12288, 0xdb49886b
+1, 47232, 47232, 1152, 418, 0xaf0ed0e4
+1, 48384, 48384, 1152, 418, 0x019fd3f0
+1, 49536, 49536, 1152, 418, 0x6e29d83e
+0, 18, 18, 1, 12288, 0x95a08046
+1, 50688, 50688, 1152, 418, 0x2ddad6bb
+1, 51840, 51840, 1152, 418, 0xafefca99
+0, 19, 19, 1, 12288, 0xdb49886b
+1, 52992, 52992, 1152, 418, 0x366ed013
+1, 54144, 54144, 1152, 418, 0x532ac7e0
+0, 20, 20, 1, 12288, 0x95a08046
+1, 55296, 55296, 1152, 418, 0x1d0cd1ce
+1, 56448, 56448, 1152, 417, 0x572ad1e3
+1, 57600, 57600, 1152, 418, 0x858cd91f
+0, 21, 21, 1, 12288, 0xdb49886b
+1, 58752, 58752, 1152, 418, 0x82cacdfd
+1, 59904, 59904, 1152, 418, 0xf4dcc6ed
+0, 22, 22, 1, 12288, 0x95a08046
+1, 61056, 61056, 1152, 418, 0x2cf3ca72
+1, 62208, 62208, 1152, 418, 0x5963c859
+1, 63360, 63360, 1152, 418, 0xa667c53d
+0, 23, 23, 1, 12288, 0xdb49886b
+1, 64512, 64512, 1152, 418, 0xb2f1d09c
+1, 65664, 65664, 1152, 418, 0x2ec1c8d3
+0, 24, 24, 1, 12288, 0xdb49886b
+1, 66816, 66816, 1152, 418, 0x5754d2e8
+1, 67968, 67968, 1152, 418, 0x1956bdba
+0, 25, 25, 1, 12288, 0xdb49886b
+1, 69120, 69120, 1152, 418, 0x3e18bd55
+1, 70272, 70272, 1152, 418, 0xe4cfc339
+1, 71424, 71424, 1152, 418, 0xb426c835
+0, 26, 26, 1, 12288, 0xdb49886b
+1, 72576, 72576, 1152, 418, 0xd7b6cbcf
+1, 73728, 73728, 1152, 418, 0x340ec315
+0, 27, 27, 1, 12288, 0xdb49886b
+1, 74880, 74880, 1152, 418, 0x23a9baec
+1, 76032, 76032, 1152, 418, 0x9f04cd01
+0, 28, 28, 1, 12288, 0xdb49886b
+1, 77184, 77184, 1152, 418, 0xa80ec223
+1, 78336, 78336, 1152, 418, 0x23d6bd5d
+1, 79488, 79488, 1152, 418, 0xcb25cf5b
+0, 29, 29, 1, 12288, 0xdb49886b
+1, 80640, 80640, 1152, 418, 0xccccc217
+1, 81792, 81792, 1152, 418, 0x757abbfe
+0, 30, 30, 1, 12288, 0xdb49886b
+1, 82944, 82944, 1152, 418, 0xa2e6cc68
+1, 84096, 84096, 1152, 418, 0xdf77cc05
+1, 85248, 85248, 1152, 417, 0xe9d2c5d5
+0, 31, 31, 1, 12288, 0xdb49886b
+1, 86400, 86400, 1152, 418, 0x50dec174
+1, 87552, 87552, 1152, 418, 0xf654b27e
+0, 32, 32, 1, 12288, 0x95a08046
+1, 88704, 88704, 1152, 418, 0x4d8bc26e
+1, 89856, 89856, 1152, 418, 0xccd2bf37
+0, 33, 33, 1, 12288, 0xdb49886b
+1, 91008, 91008, 1152, 418, 0x6ce2c18a
+1, 92160, 92160, 1152, 418, 0xb3cdcf0c
+1, 93312, 93312, 1152, 418, 0x55eebe9a
+0, 34, 34, 1, 12288, 0x95a08046
+1, 94464, 94464, 1152, 418, 0x9031c9ec
+1, 95616, 95616, 1152, 418, 0xb037c49d
+0, 35, 35, 1, 12288, 0xdb49886b
+1, 96768, 96768, 1152, 418, 0x377bcc78
+1, 97920, 97920, 1152, 418, 0x3762c725
+1, 99072, 99072, 1152, 418, 0x39afbd4d
+0, 36, 36, 1, 12288, 0x95a08046
+1, 100224, 100224, 1152, 418, 0x655ed6cd
+1, 101376, 101376, 1152, 418, 0x09aec202
+0, 37, 37, 1, 12288, 0xdb49886b
+1, 102528, 102528, 1152, 418, 0xf2d2ce55
+1, 103680, 103680, 1152, 418, 0x254ebf04
+0, 38, 38, 1, 12288, 0x95a08046
+1, 104832, 104832, 1152, 418, 0xa105cdcc
+1, 105984, 105984, 1152, 418, 0x1477ba58
+1, 107136, 107136, 1152, 418, 0x8d0dcdb2
+0, 39, 39, 1, 3584, 0x0354c435, F=0x3
+1, 108288, 108288, 1152, 418, 0x0d7cbef4
+1, 109440, 109440, 1152, 294, 0x5e2b87c4
diff --git a/ffmpeg1/tests/ref/fate/mxf-demux b/ffmpeg1/tests/ref/fate/mxf-demux
new file mode 100644
index 0000000..454722e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mxf-demux
@@ -0,0 +1,99 @@
+#tb 0: 1/25
+#tb 1: 1/8000
+0, 0, -9223372036854775808, 1, 8468, 0xc0855553
+1, 0, 0, 16000, 32000, 0x479155e6
+0, 1, -9223372036854775808, 1, 3814, 0xa10783b4, F=0x0
+0, 2, -9223372036854775808, 1, 3747, 0xb7bf6973, F=0x0
+0, 3, -9223372036854775808, 1, 3705, 0x5462a600, F=0x0
+0, 4, -9223372036854775808, 1, 3704, 0x1e564943, F=0x0
+0, 5, -9223372036854775808, 1, 3760, 0x10464b9a, F=0x0
+0, 6, -9223372036854775808, 1, 3799, 0xd41d6dcf, F=0x0
+0, 7, -9223372036854775808, 1, 3832, 0x5cf6999e, F=0x0
+0, 8, -9223372036854775808, 1, 3778, 0xe5fc7b9e, F=0x0
+0, 9, -9223372036854775808, 1, 38193, 0xd34e5dd4, F=0x0
+0, 10, -9223372036854775808, 1, 8520, 0x2a203e68
+0, 11, -9223372036854775808, 1, 3832, 0xe4c4b2fe, F=0x0
+0, 12, -9223372036854775808, 1, 3787, 0x0cf95fee, F=0x0
+0, 13, -9223372036854775808, 1, 3766, 0x9e019d14, F=0x0
+0, 14, -9223372036854775808, 1, 3785, 0x0ea9ae75, F=0x0
+0, 15, -9223372036854775808, 1, 3703, 0x11d349ff, F=0x0
+0, 16, -9223372036854775808, 1, 3731, 0x5cf358ef, F=0x0
+0, 17, -9223372036854775808, 1, 3785, 0x01c8962f, F=0x0
+0, 18, -9223372036854775808, 1, 3741, 0xb2c47d53, F=0x0
+0, 19, -9223372036854775808, 1, 38150, 0x08fa1f55, F=0x0
+0, 20, -9223372036854775808, 1, 8487, 0x0c234b9a
+0, 21, -9223372036854775808, 1, 3791, 0x831192ef, F=0x0
+0, 22, -9223372036854775808, 1, 3612, 0x598944fb, F=0x0
+0, 23, -9223372036854775808, 1, 3710, 0xccbb711a, F=0x0
+0, 24, -9223372036854775808, 1, 3864, 0x4385966e, F=0x0
+0, 25, -9223372036854775808, 1, 3919, 0x24e2abc3, F=0x0
+0, 26, -9223372036854775808, 1, 3777, 0x210c6219, F=0x0
+0, 27, -9223372036854775808, 1, 3811, 0x23bf68c2, F=0x0
+0, 28, -9223372036854775808, 1, 3802, 0x52688862, F=0x0
+0, 29, -9223372036854775808, 1, 38027, 0x3d5aa8b9, F=0x0
+0, 30, -9223372036854775808, 1, 8333, 0x617de950
+0, 31, -9223372036854775808, 1, 3831, 0x13fad8fc, F=0x0
+0, 32, -9223372036854775808, 1, 3719, 0xbc317470, F=0x0
+0, 33, -9223372036854775808, 1, 3761, 0xeac460b6, F=0x0
+0, 34, -9223372036854775808, 1, 3637, 0x27d64b32, F=0x0
+0, 35, -9223372036854775808, 1, 3666, 0xf0f700a5, F=0x0
+0, 36, -9223372036854775808, 1, 3788, 0x1c4662a8, F=0x0
+0, 37, -9223372036854775808, 1, 3960, 0xef6b9e99, F=0x0
+0, 38, -9223372036854775808, 1, 3793, 0x3a6ca832, F=0x0
+0, 39, -9223372036854775808, 1, 38312, 0xce1317cc, F=0x0
+0, 40, -9223372036854775808, 1, 8548, 0x4ca944d4
+0, 41, -9223372036854775808, 1, 3866, 0x4e85bf0f, F=0x0
+0, 42, -9223372036854775808, 1, 3644, 0x030338e5, F=0x0
+0, 43, -9223372036854775808, 1, 3634, 0xa95f4512, F=0x0
+0, 44, -9223372036854775808, 1, 3925, 0x7583ba86, F=0x0
+0, 45, -9223372036854775808, 1, 3675, 0x979f423f, F=0x0
+0, 46, -9223372036854775808, 1, 3703, 0x11375f7a, F=0x0
+0, 47, -9223372036854775808, 1, 3705, 0xb7de5d16, F=0x0
+0, 48, -9223372036854775808, 1, 3688, 0x1db45852, F=0x0
+0, 49, -9223372036854775808, 1, 38412, 0x2ee26a63, F=0x0
+0, 50, -9223372036854775808, 1, 8385, 0x0bc20a27
+1, 16000, 16000, 16000, 32000, 0x8f7e5009
+0, 51, -9223372036854775808, 1, 3733, 0xa3e2a9a0, F=0x0
+0, 52, -9223372036854775808, 1, 3773, 0x27769caa, F=0x0
+0, 53, -9223372036854775808, 1, 3670, 0xc8335e98, F=0x0
+0, 54, -9223372036854775808, 1, 3596, 0xd6512fb0, F=0x0
+0, 55, -9223372036854775808, 1, 3579, 0xa621fbc2, F=0x0
+0, 56, -9223372036854775808, 1, 3641, 0x2f4f46ca, F=0x0
+0, 57, -9223372036854775808, 1, 3686, 0x0a92385a, F=0x0
+0, 58, -9223372036854775808, 1, 3672, 0xe65137b9, F=0x0
+0, 59, -9223372036854775808, 1, 39065, 0xc723bf8b, F=0x0
+0, 60, -9223372036854775808, 1, 8611, 0x5d177f40
+0, 61, -9223372036854775808, 1, 3758, 0x33d59966, F=0x0
+0, 62, -9223372036854775808, 1, 3674, 0x54f37902, F=0x0
+0, 63, -9223372036854775808, 1, 3615, 0xa0f045fa, F=0x0
+0, 64, -9223372036854775808, 1, 3719, 0x41cf93ff, F=0x0
+0, 65, -9223372036854775808, 1, 3757, 0x3a1b7e8f, F=0x0
+0, 66, -9223372036854775808, 1, 3762, 0xe7f9714d, F=0x0
+0, 67, -9223372036854775808, 1, 3738, 0x8121805b, F=0x0
+0, 68, -9223372036854775808, 1, 3733, 0x13e262db, F=0x0
+0, 69, -9223372036854775808, 1, 38433, 0x3d58c500, F=0x0
+0, 70, -9223372036854775808, 1, 8410, 0xa4f7fd2e
+0, 71, -9223372036854775808, 1, 3711, 0x0e112d3c, F=0x0
+0, 72, -9223372036854775808, 1, 3692, 0xb46574b2, F=0x0
+0, 73, -9223372036854775808, 1, 3563, 0xad43343d, F=0x0
+0, 74, -9223372036854775808, 1, 3613, 0x5cd85c4f, F=0x0
+0, 75, -9223372036854775808, 1, 3653, 0xe15a2853, F=0x0
+0, 76, -9223372036854775808, 1, 3684, 0x9ddd58cb, F=0x0
+0, 77, -9223372036854775808, 1, 3256, 0xd7f89f2e, F=0x0
+0, 78, -9223372036854775808, 1, 3698, 0x2b82624a, F=0x0
+0, 79, -9223372036854775808, 1, 39520, 0xd3f2b7c5, F=0x0
+0, 80, -9223372036854775808, 1, 8493, 0x163559be
+0, 81, -9223372036854775808, 1, 3719, 0x6fa0916f, F=0x0
+0, 82, -9223372036854775808, 1, 3655, 0xa9233de1, F=0x0
+0, 83, -9223372036854775808, 1, 3684, 0xa6125737, F=0x0
+0, 84, -9223372036854775808, 1, 3688, 0xa9da6686, F=0x0
+0, 85, -9223372036854775808, 1, 3685, 0x674d634e, F=0x0
+0, 86, -9223372036854775808, 1, 3677, 0x7a85535d, F=0x0
+0, 87, -9223372036854775808, 1, 3666, 0xce3600a2, F=0x0
+0, 88, -9223372036854775808, 1, 3837, 0x3a7090e1, F=0x0
+0, 89, -9223372036854775808, 1, 38696, 0x12c59cd2, F=0x0
+0, 90, -9223372036854775808, 1, 8022, 0xd343433f
+0, 91, -9223372036854775808, 1, 5157, 0x440c14e5, F=0x0
+0, 92, -9223372036854775808, 1, 5003, 0xf8e1daff, F=0x0
+0, 93, -9223372036854775808, 1, 4954, 0x89866344, F=0x0
+0, 94, -9223372036854775808, 1, 53664, 0xeb0c4c42, F=0x0
diff --git a/ffmpeg1/tests/ref/fate/mxpeg b/ffmpeg1/tests/ref/fate/mxpeg
new file mode 100644
index 0000000..90af90f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/mxpeg
@@ -0,0 +1,31 @@
+#tb 0: 4/63
+0, 0, 0, 1, 1843200, 0x868a4e64
+0, 4, 4, 1, 1843200, 0x8dda4373
+0, 6, 6, 1, 1843200, 0xfcde3afc
+0, 8, 8, 1, 1843200, 0xeb4048a7
+0, 12, 12, 1, 1843200, 0xe2aa5718
+0, 14, 14, 1, 1843200, 0x86c35765
+0, 16, 16, 1, 1843200, 0x05c66542
+0, 18, 18, 1, 1843200, 0x020967f8
+0, 22, 22, 1, 1843200, 0x57757510
+0, 24, 24, 1, 1843200, 0xb91c61be
+0, 26, 26, 1, 1843200, 0x702381e9
+0, 30, 30, 1, 1843200, 0xe28c6851
+0, 32, 32, 1, 1843200, 0x7f806daa
+0, 34, 34, 1, 1843200, 0xc0758a39
+0, 38, 38, 1, 1843200, 0x3af87be2
+0, 40, 40, 1, 1843200, 0x1d1876eb
+0, 42, 42, 1, 1843200, 0x720e81dd
+0, 44, 44, 1, 1843200, 0xd85b7556
+0, 48, 48, 1, 1843200, 0xb9968314
+0, 50, 50, 1, 1843200, 0x946b9d34
+0, 52, 52, 1, 1843200, 0xd2d87d03
+0, 54, 54, 1, 1843200, 0xdd1b8056
+0, 58, 58, 1, 1843200, 0x436b7937
+0, 60, 60, 1, 1843200, 0xe87a6e42
+0, 62, 62, 1, 1843200, 0x57475c09
+0, 64, 64, 1, 1843200, 0xc3b45a77
+0, 68, 68, 1, 1843200, 0x0308494c
+0, 70, 70, 1, 1843200, 0x1ed02c80
+0, 72, 72, 1, 1843200, 0x48602e92
+0, 74, 74, 1, 1843200, 0xcf332caa
diff --git a/ffmpeg1/tests/ref/fate/nc-demux b/ffmpeg1/tests/ref/fate/nc-demux
new file mode 100644
index 0000000..f03aded
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/nc-demux
@@ -0,0 +1,92 @@
+#tb 0: 1/100
+0, 0, -9223372036854775808, 1, 19787, 0x75e463f3
+0, 1, -9223372036854775808, 1, 11913, 0x0f429c34, F=0x0
+0, 2, -9223372036854775808, 1, 14225, 0xbd3c704c, F=0x0
+0, 3, -9223372036854775808, 1, 10357, 0xbf232393, F=0x0
+0, 4, -9223372036854775808, 1, 9595, 0xf565d39e, F=0x0
+0, 5, -9223372036854775808, 1, 9262, 0x2afd6ce0, F=0x0
+0, 6, -9223372036854775808, 1, 12214, 0x6ae81d9b, F=0x0
+0, 7, -9223372036854775808, 1, 13920, 0x31b5b307, F=0x0
+0, 8, -9223372036854775808, 1, 10164, 0x141eca4e, F=0x0
+0, 9, -9223372036854775808, 1, 9516, 0xd5f2c42b, F=0x0
+0, 10, -9223372036854775808, 1, 10006, 0x80850a76, F=0x0
+0, 11, -9223372036854775808, 1, 11791, 0x10bc2dcd, F=0x0
+0, 12, -9223372036854775808, 1, 13756, 0xda1fee08, F=0x0
+0, 13, -9223372036854775808, 1, 10452, 0xbb3d62b0, F=0x0
+0, 14, -9223372036854775808, 1, 9171, 0x64ae10f6, F=0x0
+0, 15, -9223372036854775808, 1, 8816, 0x31ad8fcb, F=0x0
+0, 16, -9223372036854775808, 1, 13168, 0xea1085ac, F=0x0
+0, 17, -9223372036854775808, 1, 12797, 0x25143d22, F=0x0
+0, 18, -9223372036854775808, 1, 11324, 0x3a54b38e, F=0x0
+0, 19, -9223372036854775808, 1, 9173, 0x8b2bf552, F=0x0
+0, 20, -9223372036854775808, 1, 9247, 0x2e87226b, F=0x0
+0, 21, -9223372036854775808, 1, 14140, 0x1063786c, F=0x0
+0, 22, -9223372036854775808, 1, 14437, 0xde123a17, F=0x0
+0, 23, -9223372036854775808, 1, 11938, 0x3f1168f4, F=0x0
+0, 24, -9223372036854775808, 1, 11966, 0xdd6786ec, F=0x0
+0, 25, -9223372036854775808, 1, 13213, 0x8ab27c58, F=0x0
+0, 26, -9223372036854775808, 1, 11843, 0x90415d8b, F=0x0
+0, 27, -9223372036854775808, 1, 13345, 0x3c0e1793, F=0x0
+0, 28, -9223372036854775808, 1, 9977, 0x74fc7f4b, F=0x0
+0, 29, -9223372036854775808, 1, 9158, 0x0b5426a5, F=0x0
+0, 30, -9223372036854775808, 1, 12715, 0x0035d569, F=0x0
+0, 31, -9223372036854775808, 1, 19944, 0xe2887ba8
+0, 32, -9223372036854775808, 1, 12762, 0xb0f17939, F=0x0
+0, 33, -9223372036854775808, 1, 10260, 0x182b27aa, F=0x0
+0, 34, -9223372036854775808, 1, 7405, 0x227fe9bf, F=0x0
+0, 35, -9223372036854775808, 1, 13317, 0x1a678c62, F=0x0
+0, 36, -9223372036854775808, 1, 11304, 0x3277af6d, F=0x0
+0, 37, -9223372036854775808, 1, 13291, 0xe267616a, F=0x0
+0, 38, -9223372036854775808, 1, 8975, 0xe7eeacea, F=0x0
+0, 39, -9223372036854775808, 1, 8473, 0x8bb1cbff, F=0x0
+0, 40, -9223372036854775808, 1, 13878, 0xfd3d55bb, F=0x0
+0, 41, -9223372036854775808, 1, 11278, 0x61c7c55e, F=0x0
+0, 42, -9223372036854775808, 1, 13785, 0x2acbf88f, F=0x0
+0, 43, -9223372036854775808, 1, 9521, 0x99e2d065, F=0x0
+0, 44, -9223372036854775808, 1, 9340, 0xe5c96510, F=0x0
+0, 45, -9223372036854775808, 1, 12777, 0x4c3c7844, F=0x0
+0, 46, -9223372036854775808, 1, 10685, 0x39e0f42e, F=0x0
+0, 47, -9223372036854775808, 1, 14237, 0x9398d07f, F=0x0
+0, 48, -9223372036854775808, 1, 9021, 0x3343c7ec, F=0x0
+0, 49, -9223372036854775808, 1, 9327, 0xad489e86, F=0x0
+0, 50, -9223372036854775808, 1, 13507, 0xb1344f1c, F=0x0
+0, 51, -9223372036854775808, 1, 10199, 0x9a8868bf, F=0x0
+0, 52, -9223372036854775808, 1, 14535, 0xddb13f41, F=0x0
+0, 53, -9223372036854775808, 1, 8773, 0x3d8b6a79, F=0x0
+0, 54, -9223372036854775808, 1, 16084, 0x5d915de4, F=0x0
+0, 55, -9223372036854775808, 1, 9156, 0x5cb08a6a, F=0x0
+0, 56, -9223372036854775808, 1, 15027, 0xc23b1dc8, F=0x0
+0, 57, -9223372036854775808, 1, 8240, 0xd6d3526c, F=0x0
+0, 58, -9223372036854775808, 1, 8720, 0x439c43bf, F=0x0
+0, 59, -9223372036854775808, 1, 13684, 0x18fc82f0, F=0x0
+0, 60, -9223372036854775808, 1, 8829, 0xa3ebeb30, F=0x0
+0, 61, -9223372036854775808, 1, 14650, 0x99e8678c, F=0x0
+0, 62, -9223372036854775808, 1, 19626, 0x80a7ee5c
+0, 63, -9223372036854775808, 1, 7762, 0x7c209a12, F=0x0
+0, 64, -9223372036854775808, 1, 13636, 0xc89c1aa3, F=0x0
+0, 65, -9223372036854775808, 1, 8337, 0x749bf76a, F=0x0
+0, 66, -9223372036854775808, 1, 15098, 0xc98bc6dc, F=0x0
+0, 67, -9223372036854775808, 1, 9070, 0xcd4cf7f1, F=0x0
+0, 68, -9223372036854775808, 1, 8269, 0x90e95d54, F=0x0
+0, 69, -9223372036854775808, 1, 12672, 0x034888d0, F=0x0
+0, 70, -9223372036854775808, 1, 7519, 0x6c089672, F=0x0
+0, 71, -9223372036854775808, 1, 14439, 0x5d2478b9, F=0x0
+0, 72, -9223372036854775808, 1, 6928, 0x98fbaa67, F=0x0
+0, 73, -9223372036854775808, 1, 8735, 0x07643f1e, F=0x0
+0, 74, -9223372036854775808, 1, 13522, 0x55034cdb, F=0x0
+0, 75, -9223372036854775808, 1, 7807, 0xf5983103, F=0x0
+0, 76, -9223372036854775808, 1, 14484, 0xfc9cf260, F=0x0
+0, 77, -9223372036854775808, 1, 7193, 0x170a0fa1, F=0x0
+0, 78, -9223372036854775808, 1, 9444, 0x6f9be36f, F=0x0
+0, 79, -9223372036854775808, 1, 12598, 0x69b7609d, F=0x0
+0, 80, -9223372036854775808, 1, 7650, 0x1abaec9e, F=0x0
+0, 81, -9223372036854775808, 1, 15162, 0x2a87f723, F=0x0
+0, 82, -9223372036854775808, 1, 7752, 0xcca248aa, F=0x0
+0, 83, -9223372036854775808, 1, 9085, 0x1ca7d7e5, F=0x0
+0, 84, -9223372036854775808, 1, 13187, 0xababcc64, F=0x0
+0, 85, -9223372036854775808, 1, 7968, 0x64a28f46, F=0x0
+0, 86, -9223372036854775808, 1, 15474, 0xf34c587c, F=0x0
+0, 87, -9223372036854775808, 1, 8615, 0x61301034, F=0x0
+0, 88, -9223372036854775808, 1, 14129, 0x42c88bea, F=0x0
+0, 89, -9223372036854775808, 1, 7223, 0x675d7500, F=0x0
+0, 90, -9223372036854775808, 1, 3072, 0x4cb6254c, F=0x0
diff --git a/ffmpeg1/tests/ref/fate/nistsphere-demux b/ffmpeg1/tests/ref/fate/nistsphere-demux
new file mode 100644
index 0000000..bb4874f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/nistsphere-demux
@@ -0,0 +1 @@
+CRC=0xc4faddaf
diff --git a/ffmpeg1/tests/ref/fate/noproxy b/ffmpeg1/tests/ref/fate/noproxy
new file mode 100644
index 0000000..7707609
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/noproxy
@@ -0,0 +1,9 @@
+The pattern "(null)" does not match the hostname domain.com
+The pattern "example.com domain.com" matches the hostname domain.com
+The pattern "example.com other.com" does not match the hostname domain.com
+The pattern "example.com,domain.com" matches the hostname domain.com
+The pattern "example.com,domain.com" does not match the hostname otherdomain.com
+The pattern "example.com, *.domain.com" matches the hostname sub.domain.com
+The pattern "example.com, *.domain.com" matches the hostname domain.com
+The pattern "example.com, .domain.com" matches the hostname domain.com
+The pattern "*" matches the hostname domain.com
diff --git a/ffmpeg1/tests/ref/fate/nsv-demux b/ffmpeg1/tests/ref/fate/nsv-demux
new file mode 100644
index 0000000..0ad08b1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/nsv-demux
@@ -0,0 +1,173 @@
+#tb 0: 1001/15000
+#tb 1: 1/30000000
+0, 0, 0, 1, 12, 0x1396035f
+0, 1, 1, 1, 24, 0x8ab80ac7, F=0x0
+0, 2, 2, 1, 208, 0x1de1603e, F=0x0
+1, 4173848, 4173848, 1567346, 104, 0x8ae85dc9
+1, 5741194, 5741194, 1567346, 105, 0xb7033847
+0, 3, 3, 1, 364, 0xffb4b341, F=0x0
+1, 7308540, 7308540, 1567346, 104, 0x5f853482
+0, 4, 4, 1, 456, 0x7a4deaeb, F=0x0
+1, 8875886, 8875886, 1567346, 105, 0xfcb731fd
+0, 5, 5, 1, 432, 0xf4ddd813, F=0x0
+1, 10443232, 10443232, 1567346, 104, 0x4f8232bb
+1, 12010578, 12010578, 1567346, 105, 0x2f543039
+0, 6, 6, 1, 572, 0xc84c21ff, F=0x0
+1, 13577924, 13577924, 1567346, 104, 0xe4cc34a1
+0, 7, 7, 1, 500, 0x0e6bf9f4, F=0x0
+1, 15145270, 15145270, 1567346, 105, 0xea663711
+0, 8, 8, 1, 508, 0x2d6efe2a, F=0x0
+1, 16712616, 16712616, 1567346, 104, 0x3c583098
+0, 9, 9, 1, 436, 0x7d07d3c5, F=0x0
+1, 18279962, 18279962, 1567346, 105, 0xbe6c33ff
+1, 19847308, 19847308, 1567346, 104, 0x56de2d7a
+0, 10, 10, 1, 620, 0xa9313342, F=0x0
+1, 21414654, 21414654, 1567346, 105, 0x4e80385d
+0, 11, 11, 1, 1384, 0x9b97c579
+1, 22982000, 22982000, 1567346, 104, 0x34eb340d
+0, 12, 12, 1, 760, 0xd1aa8183, F=0x0
+1, 24549346, 24549346, 1567346, 105, 0x87e82f74
+0, 13, 13, 1, 836, 0x261da980, F=0x0
+1, 26116692, 26116692, 1567346, 104, 0xa546377d
+1, 27684038, 27684038, 1567346, 105, 0x92bd349d
+0, 14, 14, 1, 860, 0x52f0afa0, F=0x0
+1, 29251384, 29251384, 1567346, 104, 0xdba53f3d
+0, 15, 15, 1, 696, 0x63845855, F=0x0
+1, 30818730, 30818730, 1567346, 105, 0xd3c3384e
+0, 16, 16, 1, 460, 0x2916e7be, F=0x0
+1, 32386076, 32386076, 1567346, 104, 0xdf7d30ce
+1, 33953422, 33953422, 1567346, 105, 0xae20344e
+0, 17, 17, 1, 328, 0xab8caaca, F=0x0
+1, 35520768, 35520768, 1567346, 104, 0xe4cc33b7
+0, 18, 18, 1, 396, 0xc775bc8e, F=0x0
+1, 37088114, 37088114, 1567346, 105, 0xda993806
+0, 19, 19, 1, 344, 0x114ea25a, F=0x0
+1, 38655460, 38655460, 1567346, 104, 0xd6d12edd
+1, 40222806, 40222806, 1567346, 105, 0x6b9c2ed5
+1, 41790152, 41790152, 1567346, 104, 0xce6c3b04
+0, 21, 21, 1, 532, 0xd5650f54, F=0x0
+1, 43357498, 43357498, 1567346, 105, 0x31db399e
+1, 44924844, 44924844, 1567346, 104, 0xd50b347a
+0, 23, 23, 1, 476, 0x77f1f3a7, F=0x0
+1, 46492190, 46492190, 1567346, 105, 0xe87734d6
+1, 48059536, 48059536, 1567346, 104, 0x21873412
+0, 25, 25, 1, 976, 0x2f7cf7ae
+1, 50140000, 50140000, 1567346, 105, 0x29c03514
+1, 51707346, 51707346, 1567346, 104, 0x91a5347a
+1, 53274692, 53274692, 1567346, 105, 0xdbbf3696
+0, 27, 27, 1, 104, 0x8fbf2f65, F=0x0
+1, 54842038, 54842038, 1567346, 104, 0x3b463afc
+1, 56409384, 56409384, 1567346, 105, 0xddf53845
+1, 57976730, 57976730, 1567346, 104, 0x94c23d1a
+0, 29, 29, 1, 652, 0xa9244ac0, F=0x0
+1, 59544076, 59544076, 1567346, 105, 0xc0fd36c4
+1, 61111422, 61111422, 1567346, 104, 0x36d535e0
+0, 31, 31, 1, 152, 0x97804cc1, F=0x0
+1, 62678768, 62678768, 1567346, 105, 0xe81a35da
+1, 64246114, 64246114, 1567346, 104, 0x2b4e3699
+1, 65813460, 65813460, 1567346, 105, 0x3978392c
+0, 33, 33, 1, 156, 0xca434d31, F=0x0
+1, 67380806, 67380806, 1567346, 104, 0xca903459
+0, 34, 34, 1, 196, 0x1ff16161, F=0x0
+1, 68948152, 68948152, 1567346, 105, 0xedc4374a
+0, 35, 35, 1, 176, 0x9b455230, F=0x0
+1, 70515498, 70515498, 1567346, 104, 0x0b3938d2
+0, 36, 36, 1, 156, 0xbbbf4bf3, F=0x0
+1, 72082844, 72082844, 1567346, 105, 0xb2653246
+1, 73650190, 73650190, 1567346, 104, 0x76333479
+0, 37, 37, 1, 220, 0x77a97152, F=0x0
+1, 75217536, 75217536, 1567346, 105, 0x779138c4
+0, 38, 38, 1, 204, 0x667d5ecf, F=0x0
+1, 76784882, 76784882, 1567346, 104, 0xfe142f55
+0, 39, 39, 1, 232, 0x3a266ccd, F=0x0
+1, 78352228, 78352228, 1567346, 105, 0x39aa3410
+1, 79919574, 79919574, 1567346, 104, 0x520f330d
+0, 40, 40, 1, 308, 0x844a95b7, F=0x0
+1, 81486920, 81486920, 1567346, 104, 0x1aad37b0
+0, 41, 41, 1, 384, 0x71d2c695, F=0x0
+1, 83054266, 83054266, 1567346, 105, 0x164038eb
+1, 84621612, 84621612, 1567346, 104, 0x21d434bd
+0, 43, 43, 1, 520, 0x4f9d012a, F=0x0
+1, 86188958, 86188958, 1567346, 105, 0x9c1236d4
+1, 87756304, 87756304, 1567346, 104, 0x6aa933c3
+1, 89323650, 89323650, 1567346, 105, 0xec5c371e
+0, 45, 45, 1, 648, 0xabd13b29, F=0x0
+1, 90890996, 90890996, 1567346, 104, 0xedb33251
+1, 92458342, 92458342, 1567346, 105, 0x4f953476
+1, 94025688, 94025688, 1567346, 104, 0x7da13400
+0, 47, 47, 1, 604, 0x006b328f, F=0x0
+1, 95593034, 95593034, 1567346, 105, 0x57a83aaa
+1, 97160380, 97160380, 1567346, 104, 0x8b822f2f
+0, 49, 49, 1, 492, 0xa150fac1, F=0x0
+1, 98727726, 98727726, 1567346, 105, 0x3b31341a
+1, 100295072, 100295072, 1567346, 104, 0x74a4316d
+1, 101862418, 101862418, 1567346, 105, 0x05013469
+0, 51, 51, 1, 456, 0xd3e9e52c, F=0x0
+1, 103429764, 103429764, 1567346, 104, 0xcc8932cb
+1, 104997110, 104997110, 1567346, 105, 0xd9233422
+0, 53, 53, 1, 340, 0x7229a1b7, F=0x0
+1, 106564456, 106564456, 1567346, 104, 0x5c603350
+1, 108131802, 108131802, 1567346, 105, 0x76e631bc
+1, 109699148, 109699148, 1567346, 104, 0x657e3b35
+0, 55, 55, 1, 280, 0x48948b60, F=0x0
+1, 111266494, 111266494, 1567346, 105, 0x9d283226
+1, 112833840, 112833840, 1567346, 104, 0x574936ef
+0, 57, 57, 1, 304, 0x3ae68dcf, F=0x0
+1, 114401186, 114401186, 1567346, 105, 0x1b923555
+1, 115968532, 115968532, 1567346, 104, 0x2a9f3583
+1, 117535878, 117535878, 1567346, 105, 0xb8cd306f
+0, 59, 59, 1, 324, 0x005da2ab, F=0x0
+1, 119103224, 119103224, 1567346, 104, 0xa21d3475
+1, 120670570, 120670570, 1567346, 105, 0x651539ea
+0, 61, 61, 1, 348, 0x3230a873, F=0x0
+1, 122237916, 122237916, 1567346, 104, 0x7b7235b8
+1, 123805262, 123805262, 1567346, 105, 0x2bbb337a
+1, 125372608, 125372608, 1567346, 104, 0x26c332eb
+0, 63, 63, 1, 336, 0x8655ad2d, F=0x0
+1, 126939954, 126939954, 1567346, 105, 0x990838d8
+1, 128507300, 128507300, 1567346, 104, 0x4dc63ad4
+1, 130074646, 130074646, 1567346, 105, 0xfb8e3418
+0, 65, 65, 1, 380, 0x742ebc44, F=0x0
+1, 131641992, 131641992, 1567346, 104, 0x1882388e
+1, 133209338, 133209338, 1567346, 105, 0xe6b534cc
+0, 67, 67, 1, 340, 0xfc1aa74e, F=0x0
+1, 134776684, 134776684, 1567346, 104, 0x60fe35d0
+1, 136344030, 136344030, 1567346, 105, 0x5164354a
+1, 137911376, 137911376, 1567346, 104, 0x92ee3115
+0, 69, 69, 1, 332, 0x3cfba56c, F=0x0
+1, 139478722, 139478722, 1567346, 105, 0x9b32327e
+1, 141046068, 141046068, 1567346, 104, 0x9b9e394a
+0, 71, 71, 1, 332, 0xc024ad4c, F=0x0
+1, 142613414, 142613414, 1567346, 105, 0xce3c337f
+1, 144180760, 144180760, 1567346, 104, 0x7a4e33c5
+0, 73, 73, 1, 3432, 0xcdfcd1c9
+1, 146956000, 146956000, 1567346, 105, 0x0e3d34eb
+1, 148523346, 148523346, 1567346, 104, 0xd23e338e
+1, 150090692, 150090692, 1567346, 105, 0x4abf340c
+0, 75, 75, 1, 792, 0xe7df949f, F=0x0
+1, 151658038, 151658038, 1567346, 104, 0xe7522e15
+1, 153225384, 153225384, 1567346, 105, 0x995037ba
+0, 77, 77, 1, 912, 0xbc61d549, F=0x0
+1, 154792730, 154792730, 1567346, 104, 0x5ef12e9b
+1, 156360076, 156360076, 1567346, 105, 0x5c3b3166
+1, 157927422, 157927422, 1567346, 104, 0xfc38314b
+0, 79, 79, 1, 956, 0x809bdff0, F=0x0
+1, 159494768, 159494768, 1567346, 104, 0x5e3636e4
+1, 161062114, 161062114, 1567346, 105, 0xae7b3345
+0, 81, 81, 1, 652, 0x88d3484f, F=0x0
+1, 162629460, 162629460, 1567346, 104, 0x635c317a
+1, 164196806, 164196806, 1567346, 105, 0xa90c361a
+1, 165764152, 165764152, 1567346, 104, 0x8f563594
+0, 83, 83, 1, 1284, 0xecc37164
+1, 167156000, 167156000, 1567346, 105, 0x028e3985
+1, 168723346, 168723346, 1567346, 104, 0x4fd135f6
+0, 85, 85, 1, 428, 0x4794e174, F=0x0
+1, 170290692, 170290692, 1567346, 105, 0xaaf539ac
+1, 171858038, 171858038, 1567346, 104, 0x668b3265
+1, 173425384, 173425384, 1567346, 105, 0x74ad3b4b
+0, 87, 87, 1, 460, 0x7253d94a, F=0x0
+1, 174992730, 174992730, 1567346, 104, 0xbde5332f
+1, 176560076, 176560076, 1567346, 105, 0xdc3631e7
+1, 178127422, 178127422, 1567346, 104, 0x3e363a1e
+0, 89, 89, 1, 24, 0x664206ba, F=0x0
+1, 179694768, 179694768, 1567346, 105, 0x48b63926
diff --git a/ffmpeg1/tests/ref/fate/nuv-rtjpeg b/ffmpeg1/tests/ref/fate/nuv-rtjpeg
new file mode 100644
index 0000000..8838fbb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/nuv-rtjpeg
@@ -0,0 +1,10 @@
+#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/ffmpeg1/tests/ref/fate/nuv-rtjpeg-fh b/ffmpeg1/tests/ref/fate/nuv-rtjpeg-fh
new file mode 100644
index 0000000..b2e04cb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/nuv-rtjpeg-fh
@@ -0,0 +1,51 @@
+#tb 0: 1/50
+0, 80, 80, 1, 221184, 0xdaf54f83
+0, 82, 82, 1, 221184, 0xeea3e3b4
+0, 83, 83, 1, 221184, 0x5f1a8525
+0, 84, 84, 1, 221184, 0x950bb170
+0, 85, 85, 1, 221184, 0x6262e94c
+0, 86, 86, 1, 221184, 0x28752197
+0, 87, 87, 1, 221184, 0x0c2811e7
+0, 88, 88, 1, 221184, 0xb2c1a729
+0, 90, 90, 1, 221184, 0x998d6144
+0, 91, 91, 1, 221184, 0xf5d52311
+0, 92, 92, 1, 221184, 0xea9dd6bf
+0, 93, 93, 1, 221184, 0x0e2ed854
+0, 94, 94, 1, 221184, 0xe295ba58
+0, 95, 95, 1, 221184, 0x8aedbb69
+0, 96, 96, 1, 221184, 0x253c9aaa
+0, 97, 97, 1, 221184, 0x5eaf9fb1
+0, 98, 98, 1, 221184, 0xcdb5a0cb
+0, 99, 99, 1, 221184, 0xcdb5a0cb
+0, 100, 100, 1, 221184, 0x23f89994
+0, 101, 101, 1, 221184, 0x23f89994
+0, 102, 102, 1, 221184, 0x10dc98d6
+0, 103, 103, 1, 221184, 0x799b9d98
+0, 104, 104, 1, 221184, 0xb226996c
+0, 105, 105, 1, 221184, 0x0ac59a42
+0, 106, 106, 1, 221184, 0x87c2a654
+0, 107, 107, 1, 221184, 0xf4c1a711
+0, 108, 108, 1, 221184, 0xf60fa72e
+0, 109, 109, 1, 221184, 0xc8f8b6fc
+0, 110, 110, 1, 221184, 0xd709b813
+0, 111, 111, 1, 221184, 0x5fdfb76b
+0, 112, 112, 1, 221184, 0x5798b0aa
+0, 113, 113, 1, 221184, 0xf572b1c3
+0, 114, 114, 1, 221184, 0x14b0afdf
+0, 115, 115, 1, 221184, 0x0a66b5b8
+0, 116, 116, 1, 221184, 0xe316c620
+0, 117, 117, 1, 221184, 0xbc76c5c2
+0, 118, 118, 1, 221184, 0x77c7c5e5
+0, 119, 119, 1, 221184, 0xfc7ac63e
+0, 120, 120, 1, 221184, 0x05a29ffe
+0, 121, 121, 1, 221184, 0x9bffbf6c
+0, 122, 122, 1, 221184, 0x3c55be40
+0, 123, 123, 1, 221184, 0x6f46c14e
+0, 124, 124, 1, 221184, 0x9cf4ae70
+0, 125, 125, 1, 221184, 0xf205b2f8
+0, 126, 126, 1, 221184, 0x7180aff8
+0, 127, 127, 1, 221184, 0x125eaffe
+0, 128, 128, 1, 221184, 0x6970a32d
+0, 129, 129, 1, 221184, 0xaea79f62
+0, 130, 130, 1, 221184, 0x48d2a093
+0, 131, 131, 1, 221184, 0x10a59eb5
diff --git a/ffmpeg1/tests/ref/fate/oma-demux b/ffmpeg1/tests/ref/fate/oma-demux
new file mode 100644
index 0000000..39fcf5a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/oma-demux
@@ -0,0 +1 @@
+CRC=0xdd181a1c
diff --git a/ffmpeg1/tests/ref/fate/paf-audio b/ffmpeg1/tests/ref/fate/paf-audio
new file mode 100644
index 0000000..ba47d5d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/paf-audio
@@ -0,0 +1,7 @@
+#tb 0: 1/22050
+0, 0, 0, 57330, 229320, 0x062508b4
+0, 57330, 57330, 57330, 229320, 0x0a966cbf
+0, 114660, 114660, 57330, 229320, 0xee9bad45
+0, 171990, 171990, 57330, 229320, 0xde88274e
+0, 229320, 229320, 57330, 229320, 0x2fdeeaf6
+0, 286650, 286650, 57330, 229320, 0xf793fe5b
diff --git a/ffmpeg1/tests/ref/fate/paf-demux b/ffmpeg1/tests/ref/fate/paf-demux
new file mode 100644
index 0000000..857fb54
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/paf-demux
@@ -0,0 +1,160 @@
+#tb 0: 1/10
+#tb 1: 1/22050
+0, 0, 0, 1, 262144, 0x7f9a3c6a
+1, 0, 0, 57330, 131072, 0x255a6ac2
+0, 1, 1, 1, 260600, 0x0329e6f4, F=0x0
+0, 2, 2, 1, 259724, 0x2db0ad5e, F=0x0
+0, 3, 3, 1, 258616, 0xe666009d, F=0x0
+0, 4, 4, 1, 257364, 0xba42458c, F=0x0
+0, 5, 5, 1, 255964, 0xf7e04c83, F=0x0
+0, 6, 6, 1, 254192, 0xa04b49ff, F=0x0
+0, 7, 7, 1, 252232, 0x65d4ab4c, F=0x0
+0, 8, 8, 1, 249960, 0x8f0b3854, F=0x0
+0, 9, 9, 1, 247396, 0x16d70776, F=0x0
+0, 10, 10, 1, 244452, 0x8b0648f3, F=0x0
+0, 11, 11, 1, 240972, 0x07e3ef41, F=0x0
+0, 12, 12, 1, 237288, 0x197a1964, F=0x0
+0, 13, 13, 1, 233344, 0xd6c51f01, F=0x0
+0, 14, 14, 1, 229196, 0x48581a65, F=0x0
+0, 15, 15, 1, 224688, 0x710e1fdb, F=0x0
+0, 16, 16, 1, 219248, 0xcd96719d, F=0x0
+0, 17, 17, 1, 212712, 0x4de31fd8, F=0x0
+0, 18, 18, 1, 205864, 0x21a0a106, F=0x0
+0, 19, 19, 1, 199148, 0xd1d77c92, F=0x0
+0, 20, 20, 1, 192072, 0x620627a6, F=0x0
+0, 21, 21, 1, 184928, 0x81548454, F=0x0
+0, 22, 22, 1, 178296, 0x7bb40918, F=0x0
+0, 23, 23, 1, 171944, 0xa7b714bb, F=0x0
+0, 24, 24, 1, 165584, 0xa6246dba, F=0x0
+0, 25, 25, 1, 159468, 0x7bc54abb, F=0x0
+0, 26, 26, 1, 153524, 0xd2774028, F=0x0
+1, 57330, 57330, 57330, 131072, 0xcc38a5e5
+0, 27, 27, 1, 147568, 0xd94b2368, F=0x0
+0, 28, 28, 1, 141536, 0xb512eae6, F=0x0
+0, 29, 29, 1, 135368, 0x9b6ea2b3, F=0x0
+0, 30, 30, 1, 128296, 0x7c26d136, F=0x0
+0, 31, 31, 1, 120932, 0xccb8b273, F=0x0
+0, 32, 32, 1, 113432, 0x9f2bb997, F=0x0
+0, 33, 33, 1, 105724, 0x735519f6, F=0x0
+0, 34, 34, 1, 98428, 0xa2933dbb, F=0x0
+0, 35, 35, 1, 91136, 0xbe852457, F=0x0
+0, 36, 36, 1, 83844, 0xc471106a, F=0x0
+0, 37, 37, 1, 76648, 0x3f6e1c92, F=0x0
+0, 38, 38, 1, 69624, 0x00f86b27, F=0x0
+0, 39, 39, 1, 62436, 0xf360ccf0, F=0x0
+0, 40, 40, 1, 55268, 0x0373c2a3, F=0x0
+0, 41, 41, 1, 48220, 0xd5a5e0c1, F=0x0
+0, 42, 42, 1, 48216, 0x1da7e0ad, F=0x0
+0, 43, 43, 1, 48212, 0xa984e098, F=0x0
+0, 44, 44, 1, 48208, 0x7962e082, F=0x0
+0, 45, 45, 1, 48204, 0xc245e06e, F=0x0
+0, 46, 46, 1, 48200, 0x4f2de059, F=0x0
+0, 47, 47, 1, 48196, 0x2013e043, F=0x0
+0, 48, 48, 1, 48192, 0x34ffe02c, F=0x0
+0, 49, 49, 1, 48188, 0x7f22e018, F=0x0
+0, 50, 50, 1, 48184, 0x0d5ae003, F=0x0
+0, 51, 51, 1, 48180, 0xdf91dfed, F=0x0
+0, 52, 52, 1, 48176, 0xf5eddfd6, F=0x0
+1, 114660, 114660, 57330, 131072, 0x4d9c2c7e
+0, 53, 53, 1, 48172, 0x415fdfc2, F=0x0
+0, 54, 54, 1, 48168, 0xd0d8dfad, F=0x0
+0, 55, 55, 1, 48164, 0xa47edf97, F=0x0
+0, 56, 56, 1, 48160, 0xbc4adf80, F=0x0
+0, 57, 57, 1, 48156, 0x08fcdf6c, F=0x0
+0, 58, 58, 1, 48152, 0x99c5df57, F=0x0
+0, 59, 59, 1, 41116, 0x8c22a4c1, F=0x0
+0, 60, 60, 1, 34124, 0x33c9e476, F=0x0
+0, 61, 61, 1, 27272, 0x8069fb08, F=0x0
+0, 62, 62, 1, 20636, 0xa413e37e, F=0x0
+0, 63, 63, 1, 14072, 0x428a2075, F=0x0
+0, 64, 64, 1, 7712, 0x7c6b914f, F=0x0
+0, 65, 65, 1, 262144, 0x687484cb, F=0x0
+0, 66, 66, 1, 256292, 0x0dec8b5a, F=0x0
+0, 67, 67, 1, 250612, 0xd127f411, F=0x0
+0, 68, 68, 1, 245404, 0x4e760ddf, F=0x0
+0, 69, 69, 1, 241956, 0x0412f83d, F=0x0
+0, 70, 70, 1, 241184, 0x0de227e2, F=0x0
+0, 71, 71, 1, 241180, 0xebe9eafb, F=0x0
+0, 72, 72, 1, 241176, 0xf0c8eae5, F=0x0
+0, 73, 73, 1, 241172, 0x47bbeace, F=0x0
+0, 74, 74, 1, 241168, 0xfb8aeab9, F=0x0
+0, 75, 75, 1, 241164, 0x0180eaa3, F=0x0
+0, 76, 76, 1, 241160, 0x5978ea8c, F=0x0
+0, 77, 77, 1, 241156, 0xbc86ea78, F=0x0
+0, 78, 78, 1, 241152, 0x71b4ea63, F=0x0
+1, 171990, 171990, 57330, 131072, 0x1b512fb8
+0, 79, 79, 1, 241148, 0x78fbea4d, F=0x0
+0, 80, 80, 1, 241144, 0xd263ea36
+0, 81, 81, 1, 237912, 0xcb5839a6, F=0x0
+0, 82, 82, 1, 229296, 0x350f07b6, F=0x0
+0, 83, 83, 1, 214256, 0x3c954096, F=0x0
+0, 84, 84, 1, 198068, 0x1470ae1f, F=0x0
+0, 85, 85, 1, 180664, 0xa80de8b6, F=0x0
+0, 86, 86, 1, 164672, 0x11ecf816, F=0x0
+0, 87, 87, 1, 148996, 0x6346aa49, F=0x0
+0, 88, 88, 1, 134804, 0x8fe4699a, F=0x0
+0, 89, 89, 1, 124488, 0x63b82fa0, F=0x0
+0, 90, 90, 1, 116892, 0xac785c29, F=0x0
+0, 91, 91, 1, 109528, 0xc24da959, F=0x0
+0, 92, 92, 1, 102688, 0xba25eb56, F=0x0
+0, 93, 93, 1, 95192, 0x999820b3, F=0x0
+0, 94, 94, 1, 89980, 0xa81aee1a, F=0x0
+0, 95, 95, 1, 84696, 0xb274dad5, F=0x0
+0, 96, 96, 1, 79152, 0xd7936f6e, F=0x0
+0, 97, 97, 1, 74232, 0x1abdf78a, F=0x0
+0, 98, 98, 1, 69112, 0x212918e8, F=0x0
+0, 99, 99, 1, 63484, 0x45e36b2f, F=0x0
+0, 100, 100, 1, 58616, 0xef171a5a, F=0x0
+0, 101, 101, 1, 53396, 0xd16be9a0, F=0x0
+0, 102, 102, 1, 47388, 0xc602914b, F=0x0
+0, 103, 103, 1, 42276, 0x6b86b9dd, F=0x0
+0, 104, 104, 1, 36932, 0xea0d85cb, F=0x0
+1, 229320, 229320, 57330, 131072, 0x4e478505
+0, 105, 105, 1, 30408, 0xc7df6cba, F=0x0
+0, 106, 106, 1, 24468, 0x80007205, F=0x0
+0, 107, 107, 1, 18572, 0xb4aa84d2, F=0x0
+0, 108, 108, 1, 12632, 0x12c2efb8, F=0x0
+0, 109, 109, 1, 6604, 0x75002817, F=0x0
+0, 110, 110, 1, 262144, 0xf9544f5b, F=0x0
+0, 111, 111, 1, 255448, 0x9242877e, F=0x0
+0, 112, 112, 1, 248532, 0xef495999, F=0x0
+0, 113, 113, 1, 238032, 0xac29500b, F=0x0
+0, 114, 114, 1, 225424, 0x73035f24, F=0x0
+0, 115, 115, 1, 215860, 0xed94de14, F=0x0
+0, 116, 116, 1, 205996, 0x4d417b16, F=0x0
+0, 117, 117, 1, 191904, 0xc195d49f, F=0x0
+0, 118, 118, 1, 182596, 0x32a14954, F=0x0
+0, 119, 119, 1, 174988, 0xdc83fa02, F=0x0
+0, 120, 120, 1, 168008, 0x5e1d7302, F=0x0
+0, 121, 121, 1, 161032, 0xf503efb4, F=0x0
+0, 122, 122, 1, 154044, 0x1df06a7c, F=0x0
+0, 123, 123, 1, 147056, 0x4c22ec13, F=0x0
+0, 124, 124, 1, 140060, 0xede97385, F=0x0
+0, 125, 125, 1, 133064, 0x50eefee6, F=0x0
+0, 126, 126, 1, 126060, 0xc6478fb8, F=0x0
+0, 127, 127, 1, 119056, 0xf45a2080, F=0x0
+0, 128, 128, 1, 112044, 0x1d49b4ae, F=0x0
+0, 129, 129, 1, 105028, 0xd35649dd, F=0x0
+0, 130, 130, 1, 98012, 0x03ede949, F=0x0
+1, 286650, 286650, 57330, 131072, 0xb29e283e
+0, 131, 131, 1, 91000, 0x57128fb0, F=0x0
+0, 132, 132, 1, 84000, 0xf7ff39c0, F=0x0
+0, 133, 133, 1, 77004, 0xda18e580, F=0x0
+0, 134, 134, 1, 70004, 0x8eff8af4, F=0x0
+0, 135, 135, 1, 62992, 0x665831fd, F=0x0
+0, 136, 136, 1, 55976, 0x130ada75, F=0x0
+0, 137, 137, 1, 48956, 0x4cf47b2f, F=0x0
+0, 138, 138, 1, 41936, 0x7a8e2006, F=0x0
+0, 139, 139, 1, 34920, 0x9527ca2b, F=0x0
+0, 140, 140, 1, 27912, 0x4c8078df, F=0x0
+0, 141, 141, 1, 20884, 0x1e152e1f, F=0x0
+0, 142, 142, 1, 13848, 0xd358d51b, F=0x0
+0, 143, 143, 1, 262144, 0x38f14810, F=0x0
+0, 144, 144, 1, 255104, 0x579bf26b, F=0x0
+0, 145, 145, 1, 255100, 0x6488a2d4, F=0x0
+0, 146, 146, 1, 248096, 0xbe966730, F=0x0
+0, 147, 147, 1, 241144, 0xd8e3abf6, F=0x0
+0, 148, 148, 1, 234268, 0xde2bb38e, F=0x0
+0, 149, 149, 1, 227440, 0xb78f1aed, F=0x0
+0, 150, 150, 1, 220692, 0x86026588, F=0x0
+0, 151, 151, 1, 214000, 0x0fdbc796, F=0x0
diff --git a/ffmpeg1/tests/ref/fate/paf-video b/ffmpeg1/tests/ref/fate/paf-video
new file mode 100644
index 0000000..ed37c28
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/paf-video
@@ -0,0 +1,153 @@
+#tb 0: 1/10
+0, 0, 0, 1, 147456, 0x00000000
+0, 1, 1, 1, 147456, 0x7be40798
+0, 2, 2, 1, 147456, 0x44bc2fc0
+0, 3, 3, 1, 147456, 0x82676740
+0, 4, 4, 1, 147456, 0xd8b8ad10
+0, 5, 5, 1, 147456, 0x816f1c51
+0, 6, 6, 1, 147456, 0x43cdb992
+0, 7, 7, 1, 147456, 0x795198be
+0, 8, 8, 1, 147456, 0x4738b47b
+0, 9, 9, 1, 147456, 0xd05f2cca
+0, 10, 10, 1, 147456, 0xe1b2d879
+0, 11, 11, 1, 147456, 0x538e0987
+0, 12, 12, 1, 147456, 0x2009cbce
+0, 13, 13, 1, 147456, 0xf4fedfdf
+0, 14, 14, 1, 147456, 0x288cfddb
+0, 15, 15, 1, 147456, 0x27be3801
+0, 16, 16, 1, 147456, 0xba20cf85
+0, 17, 17, 1, 147456, 0x16dda72f
+0, 18, 18, 1, 147456, 0x06742d33
+0, 19, 19, 1, 147456, 0x268b800a
+0, 20, 20, 1, 147456, 0x3094518e
+0, 21, 21, 1, 147456, 0xea944b0d
+0, 22, 22, 1, 147456, 0xf99990e0
+0, 23, 23, 1, 147456, 0x609a90de
+0, 24, 24, 1, 147456, 0xcde18594
+0, 25, 25, 1, 147456, 0x86b3d02d
+0, 26, 26, 1, 147456, 0x38d99cd7
+0, 27, 27, 1, 147456, 0x5cbfa3d2
+0, 28, 28, 1, 147456, 0xf292759f
+0, 29, 29, 1, 147456, 0xdae223dd
+0, 30, 30, 1, 147456, 0x55097657
+0, 31, 31, 1, 147456, 0x5ea6276c
+0, 32, 32, 1, 147456, 0x85532d21
+0, 33, 33, 1, 147456, 0x21c447d1
+0, 34, 34, 1, 147456, 0x6cbb700d
+0, 35, 35, 1, 147456, 0x889c443a
+0, 36, 36, 1, 147456, 0xad4171fd
+0, 37, 37, 1, 147456, 0xab26d665
+0, 38, 38, 1, 147456, 0xcf8a2e29
+0, 39, 39, 1, 147456, 0xc934a62a
+0, 40, 40, 1, 147456, 0xacca580c
+0, 41, 41, 1, 147456, 0xacca580c
+0, 42, 42, 1, 147456, 0xacca580c
+0, 43, 43, 1, 147456, 0xacca580c
+0, 44, 44, 1, 147456, 0xacca580c
+0, 45, 45, 1, 147456, 0xacca580c
+0, 46, 46, 1, 147456, 0xacca580c
+0, 47, 47, 1, 147456, 0xacca580c
+0, 48, 48, 1, 147456, 0xacca580c
+0, 49, 49, 1, 147456, 0xacca580c
+0, 50, 50, 1, 147456, 0xacca580c
+0, 51, 51, 1, 147456, 0xacca580c
+0, 52, 52, 1, 147456, 0xacca580c
+0, 53, 53, 1, 147456, 0xacca580c
+0, 54, 54, 1, 147456, 0xacca580c
+0, 55, 55, 1, 147456, 0xacca580c
+0, 56, 56, 1, 147456, 0xacca580c
+0, 57, 57, 1, 147456, 0xacca580c
+0, 58, 58, 1, 147456, 0xdd6a7104
+0, 59, 59, 1, 147456, 0x33e84c72
+0, 60, 60, 1, 147456, 0x86526e6a
+0, 61, 61, 1, 147456, 0x569863ad
+0, 62, 62, 1, 147456, 0x6269920f
+0, 63, 63, 1, 147456, 0x9ce49665
+0, 64, 64, 1, 147456, 0x782fcf56
+0, 65, 65, 1, 147456, 0x4401ef4a
+0, 66, 66, 1, 147456, 0xe06ffba8
+0, 67, 67, 1, 147456, 0xc87b2af3
+0, 68, 68, 1, 147456, 0x9fcaf0ef
+0, 69, 69, 1, 147456, 0x00000000
+0, 70, 70, 1, 147456, 0x00000000
+0, 71, 71, 1, 147456, 0x00000000
+0, 72, 72, 1, 147456, 0x00000000
+0, 73, 73, 1, 147456, 0x00000000
+0, 74, 74, 1, 147456, 0x00000000
+0, 75, 75, 1, 147456, 0x00000000
+0, 76, 76, 1, 147456, 0x00000000
+0, 77, 77, 1, 147456, 0x00000000
+0, 78, 78, 1, 147456, 0x00000000
+0, 79, 79, 1, 147456, 0x00000000
+0, 80, 80, 1, 147456, 0xc30c145f
+0, 81, 81, 1, 147456, 0x2d51e3c6
+0, 82, 82, 1, 147456, 0x5d41d6d2
+0, 83, 83, 1, 147456, 0x7abf857a
+0, 84, 84, 1, 147456, 0xd72e22f3
+0, 85, 85, 1, 147456, 0x89548b30
+0, 86, 86, 1, 147456, 0xd26fc965
+0, 87, 87, 1, 147456, 0xc664fe62
+0, 88, 88, 1, 147456, 0x51608d9e
+0, 89, 89, 1, 147456, 0xf188e257
+0, 90, 90, 1, 147456, 0x3d82f8bd
+0, 91, 91, 1, 147456, 0x08e38aa9
+0, 92, 92, 1, 147456, 0xb0c78fc3
+0, 93, 93, 1, 147456, 0xeec1ce57
+0, 94, 94, 1, 147456, 0xac75dd73
+0, 95, 95, 1, 147456, 0x94beecca
+0, 96, 96, 1, 147456, 0xfa417ee8
+0, 97, 97, 1, 147456, 0x68ee990a
+0, 98, 98, 1, 147456, 0x3df4bcd2
+0, 99, 99, 1, 147456, 0xff68d376
+0, 100, 100, 1, 147456, 0x4a211592
+0, 101, 101, 1, 147456, 0x6ce6b6f2
+0, 102, 102, 1, 147456, 0x8f17ca91
+0, 103, 103, 1, 147456, 0xcb94232c
+0, 104, 104, 1, 147456, 0x46b58bcd
+0, 105, 105, 1, 147456, 0x260e8b49
+0, 106, 106, 1, 147456, 0xd9f55cb1
+0, 107, 107, 1, 147456, 0x96e0b93c
+0, 108, 108, 1, 147456, 0xdbb4e51c
+0, 109, 109, 1, 147456, 0x3a4c7fcd
+0, 110, 110, 1, 147456, 0x25c58597
+0, 111, 111, 1, 147456, 0xfc0afd6a
+0, 112, 112, 1, 147456, 0x65aae479
+0, 113, 113, 1, 147456, 0x9c060d17
+0, 114, 114, 1, 147456, 0xac1f5d8c
+0, 115, 115, 1, 147456, 0x627bf813
+0, 116, 116, 1, 147456, 0x2b6d2bbc
+0, 117, 117, 1, 147456, 0x4d6b8274
+0, 118, 118, 1, 147456, 0x89ab152b
+0, 119, 119, 1, 147456, 0xdcb31afc
+0, 120, 120, 1, 147456, 0x9aac1a8b
+0, 121, 121, 1, 147456, 0xe8ad1a42
+0, 122, 122, 1, 147456, 0x05e019de
+0, 123, 123, 1, 147456, 0x541e1991
+0, 124, 124, 1, 147456, 0xeb5d182b
+0, 125, 125, 1, 147456, 0x00ef16e4
+0, 126, 126, 1, 147456, 0xe91a164b
+0, 127, 127, 1, 147456, 0xc37014bf
+0, 128, 128, 1, 147456, 0xb87b130a
+0, 129, 129, 1, 147456, 0x879f1202
+0, 130, 130, 1, 147456, 0x8de710f6
+0, 131, 131, 1, 147456, 0x499910b0
+0, 132, 132, 1, 147456, 0x494f0f49
+0, 133, 133, 1, 147456, 0x1d090f09
+0, 134, 134, 1, 147456, 0x31930e92
+0, 135, 135, 1, 147456, 0x42fe0d72
+0, 136, 136, 1, 147456, 0xc8980c5d
+0, 137, 137, 1, 147456, 0xd1fc0b7b
+0, 138, 138, 1, 147456, 0x2b620a27
+0, 139, 139, 1, 147456, 0xe9cf08f4
+0, 140, 140, 1, 147456, 0x4fb707ea
+0, 141, 141, 1, 147456, 0x8ec706fa
+0, 142, 142, 1, 147456, 0xde090640
+0, 143, 143, 1, 147456, 0xf7b1059d
+0, 144, 144, 1, 147456, 0xf7b1059d
+0, 145, 145, 1, 147456, 0x581902c4
+0, 146, 146, 1, 147456, 0x2b18d1e7
+0, 147, 147, 1, 147456, 0xe07b8612
+0, 148, 148, 1, 147456, 0xdf341f10
+0, 149, 149, 1, 147456, 0x5c43a9df
+0, 150, 150, 1, 147456, 0xaf121817
+0, 151, 151, 1, 147456, 0x53ba70bf
diff --git a/ffmpeg1/tests/ref/fate/parseutils b/ffmpeg1/tests/ref/fate/parseutils
new file mode 100644
index 0000000..5fa3bf4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/parseutils
@@ -0,0 +1,82 @@
+Testing av_parse_video_rate()
+'-inf' -> -1/0 ERROR
+'inf' -> 1/0 ERROR
+'nan' -> 0/0 ERROR
+'123/0' -> 1/0 ERROR
+'-123 / 0' -> -1/0 ERROR
+'' -> 0/0 ERROR
+'/' -> 0/0 ERROR
+' 123 / 321' -> 41/107 OK
+'foo/foo' -> 0/0 ERROR
+'foo/1' -> 0/0 ERROR
+'1/foo' -> 1/0 ERROR
+'0/0' -> 0/0 ERROR
+'/0' -> 0/0 ERROR
+'1/' -> 1/0 ERROR
+'1' -> 1/1 OK
+'0' -> 0/1 ERROR
+'-123/123' -> -1/1 ERROR
+'-foo' -> 0/0 ERROR
+'123.23' -> 12323/100 OK
+'.23' -> 23/100 OK
+'-.23' -> -23/100 ERROR
+'-0.234' -> -117/500 ERROR
+'-0.0000001' -> 0/1 ERROR
+' 21332.2324 ' -> 917286/43 OK
+' -21332.2324 ' -> -917286/43 ERROR
+
+Testing av_parse_color()
+bikeshed -> R(80) G(64) B(140) A(59)
+RaNdOm -> R(185) G(88) B(148) A(94)
+foo -> error
+red -> R(255) G(0) B(0) A(255)
+Red -> error
+RED -> R(255) G(0) B(0) A(255)
+Violet -> R(238) G(130) B(238) A(255)
+Yellow -> R(255) G(255) B(0) A(255)
+Red -> R(255) G(0) B(0) A(255)
+0x000000 -> R(0) G(0) B(0) A(255)
+0x0000000 -> error
+0xff000000 -> R(255) G(0) B(0) A(0)
+0x3e34ff -> R(62) G(52) B(255) A(255)
+0x3e34ffaa -> R(62) G(52) B(255) A(170)
+0xffXXee -> error
+0xfoobar -> error
+0xffffeeeeeeee -> error
+#ff0000 -> R(255) G(0) B(0) A(255)
+#ffXX00 -> error
+ff0000 -> R(255) G(0) B(0) A(255)
+ffXX00 -> error
+red@foo -> error
+random@10 -> error
+0xff0000@1.0 -> R(255) G(0) B(0) A(255)
+red@ -> error
+red@0xfff -> error
+red@0xf -> R(255) G(0) B(0) A(15)
+red@2 -> error
+red@0.1 -> R(255) G(0) B(0) A(25)
+red@-1 -> error
+red@0.5 -> R(255) G(0) B(0) A(127)
+red@1.0 -> R(255) G(0) B(0) A(255)
+red@256 -> error
+red@10foo -> error
+red@-1.0 -> error
+red@-0.0 -> R(255) G(0) B(0) A(0)
+
+Testing av_small_strptime()
+fmt:'%Y-%m-%d' spec:'2012-12-21' -> 2012-12-21 00:00:00
+fmt:'%Y - %m - %d' spec:'2012-12-21' -> 2012-12-21 00:00:00
+fmt:'%Y-%m-%d %H:%M:%S' spec:'2012-12-21 20:12:21' -> 2012-12-21 20:12:21
+fmt:' %Y - %m - %d %H : %M : %S' spec:' 2012 - 12 - 21 20 : 12 : 21' -> 2012-12-21 20:12:21
+
+Testing av_parse_time()
+(now is 2012-03-17 09:14:13 +0100, local time is UTC+1)
+now -> 1331972053.000000 = 2012-03-17T08:14:13Z
+12:35:46 -> 1331984146.000000 = 2012-03-17T11:35:46Z
+2000-12-20 0:02:47.5z -> 977270567.500000 = 2000-12-20T00:02:47Z
+2000-12-20T010247.6 -> 977270567.600000 = 2000-12-20T00:02:47Z
+2:34:56.79 -> +9296790000
+-1:23:45.67 -> -5025670000
+42.1729 -> +42172900
+-1729.42 -> -1729420000
+12:34 -> +754000000
diff --git a/ffmpeg1/tests/ref/fate/pcm-planar b/ffmpeg1/tests/ref/fate/pcm-planar
new file mode 100644
index 0000000..91b4a78
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/pcm-planar
@@ -0,0 +1,143 @@
+#tb 0: 1/44100
+0, 0, 0, 1471, 5884, 0x00000000
+0, 1471, 1471, 1471, 5884, 0x00000000
+0, 2942, 2942, 1472, 5888, 0x00000000
+0, 4414, 4414, 1471, 5884, 0x00000000
+0, 5885, 5885, 1472, 5888, 0x00000000
+0, 7357, 7357, 1471, 5884, 0x00000000
+0, 8828, 8828, 1472, 5888, 0x00000000
+0, 10300, 10300, 1471, 5884, 0x00000000
+0, 11771, 11771, 1472, 5888, 0x00000000
+0, 13243, 13243, 1471, 5884, 0x00000000
+0, 14714, 14714, 1472, 5888, 0x174b2bd4
+0, 16186, 16186, 1471, 5884, 0xfab9563d
+0, 17657, 17657, 1472, 5888, 0x0129a4f5
+0, 19129, 19129, 1471, 5884, 0xf12b15dd
+0, 20600, 20600, 1472, 5888, 0x60c8c922
+0, 22072, 22072, 1471, 5884, 0x85693c81
+0, 23543, 23543, 1472, 5888, 0xcefcf0e0
+0, 25015, 25015, 1471, 5884, 0x243974ff
+0, 26486, 26486, 1471, 5884, 0x9101b901
+0, 27957, 27957, 1472, 5888, 0xe3c68cb9
+0, 29429, 29429, 1471, 5884, 0x80f2ff5f
+0, 30900, 30900, 1472, 5888, 0xfc2d19dc
+0, 32372, 32372, 1471, 5884, 0xb6e0af21
+0, 33843, 33843, 1472, 5888, 0x476e74ff
+0, 35315, 35315, 1471, 5884, 0x3921bc7f
+0, 36786, 36786, 1472, 5888, 0x44180a3f
+0, 38258, 38258, 1471, 5884, 0x01b5a119
+0, 39729, 39729, 1472, 5888, 0xdd7ad621
+0, 41201, 41201, 1471, 5884, 0xadabe898
+0, 42672, 42672, 1472, 5888, 0x2141ff8e
+0, 44144, 44144, 1471, 5884, 0xfb5118fb
+0, 45615, 45615, 1472, 5888, 0x06d31461
+0, 47087, 47087, 1471, 5884, 0x80ce34c1
+0, 48558, 48558, 1472, 5888, 0x72bf392f
+0, 50030, 50030, 1471, 5884, 0x9d9237cf
+0, 51501, 51501, 1471, 5884, 0xf5c9ce23
+0, 52972, 52972, 1472, 5888, 0x12a05dc5
+0, 54444, 54444, 1471, 5884, 0xd3ed5d4b
+0, 55915, 55915, 1472, 5888, 0x06557401
+0, 57387, 57387, 1471, 5884, 0x53d81662
+0, 58858, 58858, 1472, 5888, 0xd7e0d98d
+0, 60330, 60330, 1471, 5884, 0xdf00752e
+0, 61801, 61801, 1472, 5888, 0x82f1d7a9
+0, 63273, 63273, 1471, 5884, 0x9cb3aba9
+0, 64744, 64744, 1472, 5888, 0xd6f98e91
+0, 66216, 66216, 1471, 5884, 0xaa7f7c09
+0, 67687, 67687, 1472, 5888, 0xb97a82a7
+0, 69159, 69159, 1471, 5884, 0x375a3d53
+0, 70630, 70630, 1472, 5888, 0xa0a460cb
+0, 72102, 72102, 1471, 5884, 0xe05efbab
+0, 73573, 73573, 1472, 5888, 0x95e151f0
+0, 75045, 75045, 1471, 5884, 0x44ac688d
+0, 76516, 76516, 1471, 5884, 0xfc6d929f
+0, 77987, 77987, 1472, 5888, 0x6406c5f1
+0, 79459, 79459, 1471, 5884, 0x4ee9e48c
+0, 80930, 80930, 1472, 5888, 0xd55d43d0
+0, 82402, 82402, 1471, 5884, 0xcae69baf
+0, 83873, 83873, 1472, 5888, 0x4c01f1f5
+0, 85345, 85345, 1471, 5884, 0xf7d6dab6
+0, 86816, 86816, 1472, 5888, 0x1affdeb5
+0, 88288, 88288, 1471, 5884, 0x6db72487
+0, 89759, 89759, 1472, 5888, 0x4f344e49
+0, 91231, 91231, 1471, 5884, 0x2df3827b
+0, 92702, 92702, 1472, 5888, 0x1d1fc283
+0, 94174, 94174, 1471, 5884, 0x22eb1dd5
+0, 95645, 95645, 1472, 5888, 0x734e7093
+0, 97117, 97117, 1471, 5884, 0x357c9531
+0, 98588, 98588, 1472, 5888, 0x108c102d
+0, 100060, 100060, 1471, 5884, 0x96ad26c6
+0, 101531, 101531, 1472, 5888, 0x7bea1996
+0, 103003, 103003, 1471, 5884, 0x124a1f8e
+0, 104474, 104474, 1471, 5884, 0x08d272fb
+0, 105945, 105945, 1472, 5888, 0x88832c6b
+0, 107417, 107417, 1471, 5884, 0xedf41493
+0, 108888, 108888, 1472, 5888, 0xc4f226d7
+0, 110360, 110360, 1471, 5884, 0x97730397
+0, 111831, 111831, 1472, 5888, 0xbc3540e9
+0, 113303, 113303, 1471, 5884, 0x8adfa135
+0, 114774, 114774, 1472, 5888, 0x6d4be121
+0, 116246, 116246, 1471, 5884, 0xc3daea85
+0, 117717, 117717, 1472, 5888, 0x5498e9f0
+0, 119189, 119189, 1471, 5884, 0xa0eb691f
+0, 120660, 120660, 1472, 5888, 0x775c7c59
+0, 122132, 122132, 1471, 5884, 0x9f108fd1
+0, 123603, 123603, 1472, 5888, 0x72d53062
+0, 125075, 125075, 1471, 5884, 0x13a93faa
+0, 126546, 126546, 1472, 5888, 0x64773c8e
+0, 128018, 128018, 1471, 5884, 0xaf696999
+0, 129489, 129489, 1471, 5884, 0xf45e7e81
+0, 130960, 130960, 1472, 5888, 0x00000000
+0, 132432, 132432, 1471, 5884, 0x00000000
+0, 133903, 133903, 1472, 5888, 0x00000000
+0, 135375, 135375, 1471, 5884, 0x00000000
+0, 136846, 136846, 1472, 5888, 0x00000000
+0, 138318, 138318, 1471, 5884, 0x00000000
+0, 139789, 139789, 1472, 5888, 0x00000000
+0, 141261, 141261, 1471, 5884, 0x00000000
+0, 142732, 142732, 1472, 5888, 0x00000000
+0, 144204, 144204, 1471, 5884, 0x00000000
+0, 145675, 145675, 1472, 5888, 0x00000000
+0, 147147, 147147, 1471, 5884, 0x00000000
+0, 148618, 148618, 1472, 5888, 0x00000000
+0, 150090, 150090, 1471, 5884, 0x00000000
+0, 151561, 151561, 1472, 5888, 0x00000000
+0, 153033, 153033, 1471, 5884, 0x00000000
+0, 154504, 154504, 1471, 5884, 0x00000000
+0, 155975, 155975, 1472, 5888, 0x00000000
+0, 157447, 157447, 1471, 5884, 0x00000000
+0, 158918, 158918, 1472, 5888, 0x00000000
+0, 160390, 160390, 1471, 5884, 0x00000000
+0, 161861, 161861, 1472, 5888, 0x00000000
+0, 163333, 163333, 1471, 5884, 0x00000000
+0, 164804, 164804, 1472, 5888, 0x00000000
+0, 166276, 166276, 1471, 5884, 0x00000000
+0, 167747, 167747, 1472, 5888, 0x00000000
+0, 169219, 169219, 1471, 5884, 0x00000000
+0, 170690, 170690, 1472, 5888, 0x00000000
+0, 172162, 172162, 1471, 5884, 0xfe4b2bd4
+0, 173633, 173633, 1472, 5888, 0x00000000
+0, 175105, 175105, 1471, 5884, 0x00000000
+0, 176576, 176576, 1472, 5888, 0x00000000
+0, 178048, 178048, 1471, 5884, 0x00000000
+0, 179519, 179519, 1471, 5884, 0x00000000
+0, 180990, 180990, 1472, 5888, 0x00000000
+0, 182462, 182462, 1471, 5884, 0x00000000
+0, 183933, 183933, 1472, 5888, 0x00000000
+0, 185405, 185405, 1471, 5884, 0x00000000
+0, 186876, 186876, 1472, 5888, 0x00000000
+0, 188348, 188348, 1471, 5884, 0x00000000
+0, 189819, 189819, 1472, 5888, 0x00000000
+0, 191291, 191291, 1471, 5884, 0x00000000
+0, 192762, 192762, 1472, 5888, 0x00000000
+0, 194234, 194234, 1471, 5884, 0x00000000
+0, 195705, 195705, 1472, 5888, 0x00000000
+0, 197177, 197177, 1471, 5884, 0x00000000
+0, 198648, 198648, 1472, 5888, 0x00000000
+0, 200120, 200120, 1471, 5884, 0x00000000
+0, 201591, 201591, 1472, 5888, 0x00000000
+0, 203063, 203063, 1471, 5884, 0x00000000
+0, 204534, 204534, 1472, 5888, 0x00000000
+0, 206006, 206006, 1471, 5884, 0x00000000
+0, 207477, 207477, 1262, 5048, 0x00000000
diff --git a/ffmpeg1/tests/ref/fate/pcm_dvd b/ffmpeg1/tests/ref/fate/pcm_dvd
new file mode 100644
index 0000000..6037451
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/pcm_dvd
@@ -0,0 +1,124 @@
+#tb 0: 1/48000
+0, 0, 0, 334, 1336, 0x8e3c0abc
+0, 400, 400, 334, 1336, 0x99c41108
+0, 720, 720, 334, 1336, 0xd65be322
+0, 1040, 1040, 334, 1336, 0x15b575fb
+0, 1360, 1360, 334, 1336, 0x366f742a
+0, 1680, 1680, 334, 1336, 0xed72ad83
+0, 2000, 2000, 334, 1336, 0x73f21c93
+0, 2400, 2400, 334, 1336, 0x4be7a770
+0, 2720, 2720, 334, 1336, 0x69ecf80c
+0, 3040, 3040, 334, 1336, 0x835dc0e5
+0, 3360, 3360, 334, 1336, 0x3089458d
+0, 3680, 3680, 334, 1336, 0xc73b8cdc
+0, 4080, 4080, 334, 1336, 0xc1cdaa8f
+0, 4400, 4400, 334, 1336, 0x47a49186
+0, 4720, 4720, 334, 1336, 0x2db387e2
+0, 5040, 5040, 334, 1336, 0x90da9a97
+0, 5360, 5360, 334, 1336, 0xcd34a467
+0, 5680, 5680, 334, 1336, 0xdca8bd29
+0, 6080, 6080, 334, 1336, 0xa09f9da3
+0, 6400, 6400, 334, 1336, 0x47c8acf6
+0, 6720, 6720, 334, 1336, 0x94dfa20e
+0, 7040, 7040, 334, 1336, 0x2123a5f6
+0, 7360, 7360, 334, 1336, 0x2f1badde
+0, 7680, 7680, 334, 1336, 0x47579528
+0, 8080, 8080, 334, 1336, 0x028daa10
+0, 8400, 8400, 334, 1336, 0x5ed7adcd
+0, 8720, 8720, 334, 1336, 0xc5ee8f10
+0, 9040, 9040, 334, 1336, 0xcfacb489
+0, 9360, 9360, 334, 1336, 0x07de937b
+0, 9760, 9760, 334, 1336, 0x07bd8f8b
+0, 10080, 10080, 334, 1336, 0x4660912e
+0, 10400, 10400, 334, 1336, 0x047f97ad
+0, 10720, 10720, 334, 1336, 0xe0e8a11f
+0, 11040, 11040, 334, 1336, 0xcd9898e6
+0, 11360, 11360, 334, 1336, 0xccfda786
+0, 11760, 11760, 334, 1336, 0xab1b9e40
+0, 12080, 12080, 334, 1336, 0x2ea79ea1
+0, 12400, 12400, 334, 1336, 0xade2ad7e
+0, 12720, 12720, 334, 1336, 0xe5cf9684
+0, 13040, 13040, 334, 1336, 0xb57184cf
+0, 13360, 13360, 334, 1336, 0x0668a5ce
+0, 13760, 13760, 334, 1336, 0x643a9d96
+0, 14080, 14080, 334, 1336, 0x97dc8ecc
+0, 14400, 14400, 334, 1336, 0x72c2b174
+0, 14720, 14720, 334, 1336, 0xe39d8fc3
+0, 15040, 15040, 334, 1336, 0x56fc76d2
+0, 15360, 15360, 334, 1336, 0x91a884b3
+0, 15760, 15760, 334, 1336, 0x7b039a4e
+0, 16080, 16080, 334, 1336, 0x3770a9dd
+0, 16400, 16400, 334, 1336, 0x317c9cb8
+0, 16720, 16720, 334, 1336, 0xdd97ad48
+0, 17040, 17040, 334, 1336, 0x98066c1b
+0, 17440, 17440, 334, 1336, 0xecd3a31c
+0, 17760, 17760, 334, 1336, 0x0578b329
+0, 18080, 18080, 334, 1336, 0x6942881c
+0, 18400, 18400, 334, 1336, 0x56b5af29
+0, 18720, 18720, 334, 1336, 0xf111a48a
+0, 19040, 19040, 334, 1336, 0x1f5a8d45
+0, 19440, 19440, 334, 1336, 0x39abdded
+0, 19760, 19760, 334, 1336, 0xdb997fe8
+0, 20080, 20080, 334, 1336, 0xd7f0d0b2
+0, 20400, 20400, 334, 1336, 0xf3219413
+0, 20720, 20720, 334, 1336, 0x9d80899d
+0, 21040, 21040, 334, 1336, 0x7238bd63
+0, 21440, 21440, 334, 1336, 0x7376703e
+0, 21760, 21760, 334, 1336, 0x0fd56d02
+0, 22080, 22080, 334, 1336, 0xa6c0951e
+0, 22400, 22400, 334, 1336, 0xfacb674e
+0, 22720, 22720, 334, 1336, 0x805bd289
+0, 23120, 23120, 334, 1336, 0xa2a51a12
+0, 23440, 23440, 334, 1336, 0x8a75d91b
+0, 23760, 23760, 334, 1336, 0x34b1ef80
+0, 24080, 24080, 334, 1336, 0x902921e0
+0, 24400, 24400, 334, 1336, 0xc2db7895
+0, 24720, 24720, 334, 1336, 0x7a0db9e1
+0, 25120, 25120, 334, 1336, 0x66a93277
+0, 25440, 25440, 334, 1336, 0x30830a83
+0, 25760, 25760, 334, 1336, 0x251cf132
+0, 26080, 26080, 334, 1336, 0x08dd852c
+0, 26400, 26400, 334, 1336, 0x22ea164c
+0, 26720, 26720, 334, 1336, 0x3bdd91c4
+0, 27120, 27120, 334, 1336, 0xa4c0fbd7
+0, 27440, 27440, 334, 1336, 0x83aa81bd
+0, 27760, 27760, 334, 1336, 0x8a7b0fdb
+0, 28080, 28080, 334, 1336, 0x35c37b01
+0, 28400, 28400, 334, 1336, 0xdede811e
+0, 28720, 28720, 334, 1336, 0x7473a657
+0, 29120, 29120, 334, 1336, 0x5b917e2b
+0, 29440, 29440, 334, 1336, 0x1c5a7cfc
+0, 29760, 29760, 334, 1336, 0xeb7bab0d
+0, 30080, 30080, 334, 1336, 0x7337795c
+0, 30400, 30400, 334, 1336, 0x68da9d08
+0, 30800, 30800, 334, 1336, 0xe93b87fe
+0, 31120, 31120, 334, 1336, 0xd4639f00
+0, 31440, 31440, 334, 1336, 0x1070a91d
+0, 31760, 31760, 334, 1336, 0x50e3788f
+0, 32080, 32080, 334, 1336, 0x1dac6691
+0, 32400, 32400, 334, 1336, 0xf62c709d
+0, 32800, 32800, 334, 1336, 0x2369648d
+0, 33120, 33120, 334, 1336, 0xbfc792e6
+0, 33440, 33440, 334, 1336, 0x975eb8e3
+0, 33760, 33760, 334, 1336, 0x35c49ba6
+0, 34080, 34080, 334, 1336, 0xe6198aa9
+0, 34400, 34400, 334, 1336, 0x99f37d9d
+0, 34800, 34800, 334, 1336, 0x4815aff1
+0, 35120, 35120, 334, 1336, 0x4fd366ca
+0, 35440, 35440, 334, 1336, 0x43cf7bb4
+0, 35760, 35760, 334, 1336, 0x14a576ac
+0, 36080, 36080, 334, 1336, 0xc6986978
+0, 36480, 36480, 334, 1336, 0x10f67dc4
+0, 36800, 36800, 334, 1336, 0xcca07f7a
+0, 37120, 37120, 334, 1336, 0x6d0a5dfe
+0, 37440, 37440, 334, 1336, 0x4e0761ef
+0, 37760, 37760, 334, 1336, 0x31368e66
+0, 38080, 38080, 334, 1336, 0x14b895c1
+0, 38480, 38480, 334, 1336, 0x4bb7c111
+0, 38800, 38800, 334, 1336, 0x1676a8bb
+0, 39120, 39120, 334, 1336, 0xddaaa459
+0, 39440, 39440, 334, 1336, 0xc43eabce
+0, 39760, 39760, 334, 1336, 0x4d9f8d54
+0, 40080, 40080, 334, 1336, 0x0ac292cb
+0, 40480, 40480, 334, 1336, 0x2d9c74e4
+0, 40800, 40800, 334, 1336, 0xe73da38f
diff --git a/ffmpeg1/tests/ref/fate/pcm_s16be-stereo b/ffmpeg1/tests/ref/fate/pcm_s16be-stereo
new file mode 100644
index 0000000..2500ba2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/pcm_s16be-stereo
@@ -0,0 +1 @@
+f0c0fd7615cdef66fa72f5816632ca9b
diff --git a/ffmpeg1/tests/ref/fate/pcm_s16le-stereo b/ffmpeg1/tests/ref/fate/pcm_s16le-stereo
new file mode 100644
index 0000000..f0837d1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/pcm_s16le-stereo
@@ -0,0 +1 @@
+0262b20b728f5bb95594e64e2173b2f2
diff --git a/ffmpeg1/tests/ref/fate/pcm_u8-mono b/ffmpeg1/tests/ref/fate/pcm_u8-mono
new file mode 100644
index 0000000..2b46dbc
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/pcm_u8-mono
@@ -0,0 +1 @@
+c2dcec9b230dad733b6b877fbed36755
diff --git a/ffmpeg1/tests/ref/fate/pcm_u8-stereo b/ffmpeg1/tests/ref/fate/pcm_u8-stereo
new file mode 100644
index 0000000..701a515
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/pcm_u8-stereo
@@ -0,0 +1 @@
+973cf68365c3d58ff60ba652433b3bd2
diff --git a/ffmpeg1/tests/ref/fate/pictor b/ffmpeg1/tests/ref/fate/pictor
new file mode 100644
index 0000000..c89b608
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/pictor
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 192816, 0x29b9c158
diff --git a/ffmpeg1/tests/ref/fate/pmp-demux b/ffmpeg1/tests/ref/fate/pmp-demux
new file mode 100644
index 0000000..b481db7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/pmp-demux
@@ -0,0 +1,106 @@
+#tb 0: 1/44100
+0, 0, 0, 1152, 417, 0xcb873fba
+0, 1152, 1152, 1152, 104, 0x6d521c5a
+0, 2304, 2304, 1152, 104, 0xb3af1d64
+0, 3456, 3456, 1152, 104, 0xc0f71d86
+0, 4608, 4608, 1152, 104, 0xce3f1da8
+0, 5760, 5760, 1152, 104, 0xdb871dca
+0, 6912, 6912, 1152, 104, 0xe8cf1dec
+0, 8064, 8064, 1152, 104, 0xf6171e0e
+0, 9216, 9216, 1152, 104, 0x036e1e30
+0, 10368, 10368, 1152, 104, 0x3b921ec1
+0, 11520, 11520, 1152, 104, 0x3b921ec1
+0, 12672, 12672, 1152, 104, 0x3b921ec1
+0, 13824, 13824, 1152, 104, 0x3b921ec1
+0, 14976, 14976, 1152, 104, 0x3b921ec1
+0, 16128, 16128, 1152, 104, 0x3b921ec1
+0, 17280, 17280, 1152, 104, 0x3b921ec1
+0, 18432, 18432, 1152, 104, 0x3b921ec1
+0, 19584, 19584, 1152, 104, 0x3b921ec1
+0, 20736, 20736, 1152, 104, 0x3b921ec1
+0, 21888, 21888, 1152, 104, 0x3b921ec1
+0, 23040, 23040, 1152, 104, 0x3b921ec1
+0, 24192, 24192, 1152, 104, 0x3b921ec1
+0, 25344, 25344, 1152, 104, 0x3b921ec1
+0, 26496, 26496, 1152, 104, 0x3b921ec1
+0, 27648, 27648, 1152, 104, 0x3b921ec1
+0, 28800, 28800, 1152, 104, 0x3b921ec1
+0, 29952, 29952, 1152, 104, 0x3b921ec1
+0, 31104, 31104, 1152, 104, 0x3b921ec1
+0, 32256, 32256, 1152, 104, 0x3b921ec1
+0, 33408, 33408, 1152, 104, 0x3b921ec1
+0, 34560, 34560, 1152, 104, 0x3b921ec1
+0, 35712, 35712, 1152, 104, 0x3b921ec1
+0, 36864, 36864, 1152, 104, 0x3b921ec1
+0, 38016, 38016, 1152, 104, 0x3b921ec1
+0, 39168, 39168, 1152, 104, 0x3b921ec1
+0, 40320, 40320, 1152, 104, 0x3b921ec1
+0, 41472, 41472, 1152, 104, 0x3b921ec1
+0, 42624, 42624, 1152, 104, 0x3b921ec1
+0, 43776, 43776, 1152, 104, 0x3b921ec1
+0, 44928, 44928, 1152, 104, 0x3b921ec1
+0, 46080, 46080, 1152, 104, 0x3b921ec1
+0, 47232, 47232, 1152, 104, 0x3b921ec1
+0, 48384, 48384, 1152, 104, 0x3b921ec1
+0, 49536, 49536, 1152, 104, 0x3b921ec1
+0, 50688, 50688, 1152, 104, 0x3b921ec1
+0, 51840, 51840, 1152, 104, 0x3b921ec1
+0, 52992, 52992, 1152, 104, 0x3b921ec1
+0, 54144, 54144, 1152, 104, 0x3b921ec1
+0, 55296, 55296, 1152, 104, 0x3b921ec1
+0, 56448, 56448, 1152, 104, 0x3b921ec1
+0, 57600, 57600, 1152, 104, 0x3b921ec1
+0, 58752, 58752, 1152, 104, 0x3b921ec1
+0, 59904, 59904, 1152, 104, 0x3b921ec1
+0, 61056, 61056, 1152, 104, 0x3b921ec1
+0, 62208, 62208, 1152, 104, 0x3b921ec1
+0, 63360, 63360, 1152, 104, 0x3b921ec1
+0, 64512, 64512, 1152, 104, 0x3b921ec1
+0, 65664, 65664, 1152, 104, 0x3b921ec1
+0, 66816, 66816, 1152, 104, 0x3b921ec1
+0, 67968, 67968, 1152, 104, 0x3b921ec1
+0, 69120, 69120, 1152, 104, 0x3b921ec1
+0, 70272, 70272, 1152, 104, 0x3b921ec1
+0, 71424, 71424, 1152, 104, 0x3b921ec1
+0, 72576, 72576, 1152, 104, 0x3b921ec1
+0, 73728, 73728, 1152, 104, 0x3b921ec1
+0, 74880, 74880, 1152, 104, 0x3b921ec1
+0, 76032, 76032, 1152, 104, 0x3b921ec1
+0, 77184, 77184, 1152, 104, 0x3b921ec1
+0, 78336, 78336, 1152, 104, 0x3b921ec1
+0, 79488, 79488, 1152, 104, 0x3b921ec1
+0, 80640, 80640, 1152, 104, 0x3b921ec1
+0, 81792, 81792, 1152, 104, 0x3b921ec1
+0, 82944, 82944, 1152, 104, 0x3b921ec1
+0, 84096, 84096, 1152, 104, 0x3b921ec1
+0, 85248, 85248, 1152, 104, 0x3b921ec1
+0, 86400, 86400, 1152, 104, 0x3b921ec1
+0, 87552, 87552, 1152, 104, 0xf0211aa6
+0, 88704, 88704, 1152, 104, 0xd34224a5
+0, 89856, 89856, 1152, 104, 0x7b78282c
+0, 91008, 91008, 1152, 104, 0x06e32789
+0, 92160, 92160, 1152, 104, 0x1c502696
+0, 93312, 93312, 1152, 104, 0xd7392a5e
+0, 94464, 94464, 1152, 104, 0xbc1b288e
+0, 95616, 95616, 1152, 104, 0xbbd8261f
+0, 96768, 96768, 1152, 104, 0xebbb2f1c
+0, 97920, 97920, 1152, 104, 0xf55b31cc
+0, 99072, 99072, 1152, 104, 0xbdb930e0
+0, 100224, 100224, 1152, 104, 0x36b72db9
+0, 101376, 101376, 1152, 156, 0xbef24bc7
+0, 102528, 102528, 1152, 261, 0xefec7b06
+0, 103680, 103680, 1152, 208, 0xadcd5f92
+0, 104832, 104832, 1152, 261, 0x7ea9792e
+0, 105984, 105984, 1152, 182, 0xf7ad5524
+0, 107136, 107136, 1152, 208, 0x8f325a0c
+0, 108288, 108288, 1152, 208, 0xe6795cde
+0, 109440, 109440, 1152, 208, 0xd4bc5e11
+0, 110592, 110592, 1152, 208, 0x6762553b
+0, 111744, 111744, 1152, 156, 0x47cc39cc
+0, 112896, 112896, 1152, 130, 0xcdcd2e7b
+0, 114048, 114048, 1152, 261, 0x3864753a
+0, 115200, 115200, 1152, 156, 0xc5d24270
+0, 116352, 116352, 1152, 156, 0x3b664195
+0, 117504, 117504, 1152, 130, 0xa928320e
+0, 118656, 118656, 1152, 156, 0x58e03f10
+0, 119808, 119808, 1152, 261, 0xf0707a4c
diff --git a/ffmpeg1/tests/ref/fate/prores-422 b/ffmpeg1/tests/ref/fate/prores-422
new file mode 100644
index 0000000..acd09e3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/prores-422
@@ -0,0 +1,3 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 8294400, 0xe8e9d448
+0, 1, 1, 1, 8294400, 0xe8e9d448
diff --git a/ffmpeg1/tests/ref/fate/prores-422_hq b/ffmpeg1/tests/ref/fate/prores-422_hq
new file mode 100644
index 0000000..a404ef4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/prores-422_hq
@@ -0,0 +1,3 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 8294400, 0x817063b0
+0, 1, 1, 1, 8294400, 0x817063b0
diff --git a/ffmpeg1/tests/ref/fate/prores-422_lt b/ffmpeg1/tests/ref/fate/prores-422_lt
new file mode 100644
index 0000000..09e2408
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/prores-422_lt
@@ -0,0 +1,3 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 8294400, 0xcd4ccde1
+0, 1, 1, 1, 8294400, 0xcd4ccde1
diff --git a/ffmpeg1/tests/ref/fate/prores-422_proxy b/ffmpeg1/tests/ref/fate/prores-422_proxy
new file mode 100644
index 0000000..d716f87
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/prores-422_proxy
@@ -0,0 +1,3 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 8294400, 0x51d29320
+0, 1, 1, 1, 8294400, 0x51d29320
diff --git a/ffmpeg1/tests/ref/fate/prores-alpha b/ffmpeg1/tests/ref/fate/prores-alpha
new file mode 100644
index 0000000..bdb5c6e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/prores-alpha
@@ -0,0 +1,3 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 12441600, 0x254d8f95
+0, 1, 1, 1, 12441600, 0x254d8f95
diff --git a/ffmpeg1/tests/ref/fate/psx-str-demux b/ffmpeg1/tests/ref/fate/psx-str-demux
new file mode 100644
index 0000000..42c5731
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/psx-str-demux
@@ -0,0 +1,202 @@
+#tb 0: 1/15
+#tb 1: 4/75
+0, 0, 0, 1, 8832, 0x01ad3eeb
+1, 0, 0, 1, 2304, 0xf0ad1000
+1, 1, 1, 1, 2304, 0x69269ce6
+0, 1, 1, 1, 8968, 0xe0033799
+1, 2, 2, 1, 2304, 0x124a995d
+0, 2, 2, 1, 9036, 0xd6189ab7
+1, 3, 3, 1, 2304, 0x3fc0ca07
+0, 3, 3, 1, 9192, 0xb44b9ffa
+1, 4, 4, 1, 2304, 0x40a1b447
+0, 4, 4, 1, 9404, 0xe94dfd40
+1, 5, 5, 1, 2304, 0x150dae9f
+1, 6, 6, 1, 2304, 0xad16bc63
+0, 5, 5, 1, 9492, 0xf73f2541
+1, 7, 7, 1, 2304, 0xe989b175
+0, 6, 6, 1, 9652, 0x243d53f8
+1, 8, 8, 1, 2304, 0x3c77cd39
+0, 7, 7, 1, 9872, 0x83f3ea7a
+1, 9, 9, 1, 2304, 0x93f0c2ba
+0, 8, 8, 1, 10052, 0x7604247a
+1, 10, 10, 1, 2304, 0x6e2ad2d0
+1, 11, 11, 1, 2304, 0xf8eab90a
+0, 9, 9, 1, 10100, 0x077107fd
+1, 12, 12, 1, 2304, 0xc039bf0d
+0, 10, 10, 1, 10264, 0xae675eb6
+1, 13, 13, 1, 2304, 0x0900c7e8
+0, 11, 11, 1, 10464, 0x428f83ae
+1, 14, 14, 1, 2304, 0x9722d580
+0, 12, 12, 1, 10580, 0x1bdcd71b
+1, 15, 15, 1, 2304, 0x02eec8de
+1, 16, 16, 1, 2304, 0x4807a2b3
+0, 13, 13, 1, 10800, 0xde75213a
+1, 17, 17, 1, 2304, 0x4643be06
+0, 14, 14, 1, 11236, 0x9387cc8e
+1, 18, 18, 1, 2304, 0x5bd9d249
+0, 15, 15, 1, 11420, 0x3a7d321b
+1, 19, 19, 1, 2304, 0x4e33c2bc
+0, 16, 16, 1, 11632, 0x7edc9cdf
+1, 20, 20, 1, 2304, 0x085ca51d
+1, 21, 21, 1, 2304, 0xa205b202
+0, 17, 17, 1, 11936, 0xf0521017
+1, 22, 22, 1, 2304, 0x71b9bcca
+0, 18, 18, 1, 11804, 0x53b22066
+1, 23, 23, 1, 2304, 0xcb769e5f
+0, 19, 19, 1, 11852, 0x9425fb21
+1, 24, 24, 1, 2304, 0x9322d85a
+0, 20, 20, 1, 12108, 0xc386941d
+1, 25, 25, 1, 2304, 0x7f13bf6e
+1, 26, 26, 1, 2304, 0xd302a5cd
+0, 21, 21, 1, 12796, 0x8b7e5dab
+1, 27, 27, 1, 2304, 0x7a7a9e30
+0, 22, 22, 1, 13316, 0x81235102
+1, 28, 28, 1, 2304, 0x6ffccfdd
+0, 23, 23, 1, 13724, 0xe5fc2bca
+1, 29, 29, 1, 2304, 0xae88bf7a
+0, 24, 24, 1, 14304, 0xa5b1f811
+1, 30, 30, 1, 2304, 0xf816c2f5
+1, 31, 31, 1, 2304, 0xdb42a783
+0, 25, 25, 1, 15216, 0xf4996763
+1, 32, 32, 1, 2304, 0xfc55c021
+0, 26, 26, 1, 16224, 0xe30b0679
+1, 33, 33, 1, 2304, 0x9da68fc1
+0, 27, 27, 1, 10640, 0xaeb122c9
+1, 34, 34, 1, 2304, 0x2f65bb0f
+0, 28, 28, 1, 11652, 0x087d18b1
+1, 35, 35, 1, 2304, 0x6e5da2c7
+1, 36, 36, 1, 2304, 0xb0b0c5f8
+0, 29, 29, 1, 12008, 0x1eeeac41
+1, 37, 37, 1, 2304, 0x32559dc6
+0, 30, 30, 1, 12344, 0x488c64ec
+1, 38, 38, 1, 2304, 0x9168aed0
+0, 31, 31, 1, 13004, 0x02a69339
+1, 39, 39, 1, 2304, 0x32069bce
+0, 32, 32, 1, 14092, 0x348a7d3f
+1, 40, 40, 1, 2304, 0x763ca8e0
+1, 41, 41, 1, 2304, 0x70c7a44e
+0, 33, 33, 1, 15048, 0xa55ef200
+1, 42, 42, 1, 2304, 0x7dc1b275
+0, 34, 34, 1, 16100, 0xac17de5b
+1, 43, 43, 1, 2304, 0x2e26ceae
+0, 35, 35, 1, 13180, 0x4d874f61
+1, 44, 44, 1, 2304, 0xa071a7e2
+0, 36, 36, 1, 14592, 0x5f58f505
+1, 45, 45, 1, 2304, 0xe434ad92
+1, 46, 46, 1, 2304, 0xb4469381
+0, 37, 37, 1, 14372, 0x369bb5d9
+1, 47, 47, 1, 2304, 0x3f20a7c5
+0, 38, 38, 1, 16172, 0x513a97b6
+1, 48, 48, 1, 2304, 0x68ef9ef9
+0, 39, 39, 1, 15136, 0x7f9a3865
+1, 49, 49, 1, 2304, 0x32dbb3e2
+0, 40, 40, 1, 16336, 0x1339ba5f
+1, 50, 50, 1, 2304, 0xdd90c7c3
+1, 51, 51, 1, 2304, 0xd106adb5
+0, 41, 41, 1, 16944, 0x122f71b7
+1, 52, 52, 1, 2304, 0x11dca8c4
+0, 42, 42, 1, 17536, 0x7461b152
+1, 53, 53, 1, 2304, 0x646d98bc
+0, 43, 43, 1, 13940, 0xf5278274
+1, 54, 54, 1, 2304, 0x6f019e81
+0, 44, 44, 1, 8592, 0x4bb2eaea
+1, 55, 55, 1, 2304, 0xc872a896
+1, 56, 56, 1, 2304, 0xc7d7a0bc
+0, 45, 45, 1, 8584, 0x2ff1e3db
+1, 57, 57, 1, 2304, 0x181b880a
+0, 46, 46, 1, 8548, 0xadfd01b4
+1, 58, 58, 1, 2304, 0x6486b158
+0, 47, 47, 1, 8548, 0x9e2ec85f
+1, 59, 59, 1, 2304, 0x26d5a3db
+0, 48, 48, 1, 8540, 0x9e2ad166
+1, 60, 60, 1, 2304, 0x4ff89a4d
+1, 61, 61, 1, 2304, 0xc42e9552
+0, 49, 49, 1, 8524, 0x047bc406
+1, 62, 62, 1, 2304, 0x0dc1c346
+0, 50, 50, 1, 8508, 0xd051ddbb
+1, 63, 63, 1, 2304, 0x5e51b7a5
+0, 51, 51, 1, 8572, 0x40b5004c
+1, 64, 64, 1, 2304, 0xbd49c142
+0, 52, 52, 1, 8564, 0xb379db59
+1, 65, 65, 1, 2304, 0x373da274
+1, 66, 66, 1, 2304, 0xde97b1bb
+0, 53, 53, 1, 8592, 0x22d0bc35
+1, 67, 67, 1, 2304, 0x9715bf29
+0, 54, 54, 1, 8656, 0xa58917d5
+1, 68, 68, 1, 2304, 0xc341b4ef
+0, 55, 55, 1, 8616, 0xc9e4f431
+1, 69, 69, 1, 2304, 0xc610adc6
+0, 56, 56, 1, 8660, 0x7a90ffd1
+1, 70, 70, 1, 2304, 0x67bba315
+1, 71, 71, 1, 2304, 0x949b9c16
+0, 57, 57, 1, 8636, 0xec8ce437
+1, 72, 72, 1, 2304, 0xc7c1a8ca
+0, 58, 58, 1, 8668, 0x8b73139f
+1, 73, 73, 1, 2304, 0x1929bc7e
+0, 59, 59, 1, 8640, 0x3ee30f9c
+1, 74, 74, 1, 2304, 0x5fc97897
+0, 60, 60, 1, 8728, 0xdbe12a94
+1, 75, 75, 1, 2304, 0x272da8d3
+1, 76, 76, 1, 2304, 0x141e904d
+0, 61, 61, 1, 8748, 0xc4132fd5
+1, 77, 77, 1, 2304, 0x9880b0ed
+0, 62, 62, 1, 8720, 0x7ac9316a
+1, 78, 78, 1, 2304, 0x0438932a
+0, 63, 63, 1, 8756, 0xf47d843d
+1, 79, 79, 1, 2304, 0x27069761
+0, 64, 64, 1, 8840, 0x82808e79
+1, 80, 80, 1, 2304, 0x0baba2b7
+1, 81, 81, 1, 2304, 0x4bc491af
+0, 65, 65, 1, 8908, 0x63568647
+1, 82, 82, 1, 2304, 0x72e18e82
+0, 66, 66, 1, 8968, 0xbd26de31
+1, 83, 83, 1, 2304, 0xf85d8a91
+0, 67, 67, 1, 9168, 0xe1cd43a3
+1, 84, 84, 1, 2304, 0x653582e3
+0, 68, 68, 1, 9272, 0x0cc64c79
+1, 85, 85, 1, 2304, 0x6b5e8084
+1, 86, 86, 1, 2304, 0x8cc27d10
+0, 69, 69, 1, 9700, 0x5cd2be73
+1, 87, 87, 1, 2304, 0xcf8f9e1d
+0, 70, 70, 1, 9868, 0x9b1629ae
+1, 88, 88, 1, 2304, 0xecbe89df
+0, 71, 71, 1, 10264, 0xa13cb7db
+1, 89, 89, 1, 2304, 0xa433753d
+0, 72, 72, 1, 10908, 0xe995858e
+1, 90, 90, 1, 2304, 0xe386afe9
+1, 91, 91, 1, 2304, 0x90409771
+0, 73, 73, 1, 11272, 0xebea53f6
+1, 92, 92, 1, 2304, 0x29c88ae5
+0, 74, 74, 1, 12128, 0xdfa8b7aa
+1, 93, 93, 1, 2304, 0x900b9e6a
+0, 75, 75, 1, 12560, 0x46048576
+1, 94, 94, 1, 2304, 0x958cbb49
+0, 76, 76, 1, 12900, 0x5b3aeb76
+1, 95, 95, 1, 2304, 0xf83da537
+1, 96, 96, 1, 2304, 0x5fad9e5f
+0, 77, 77, 1, 13544, 0x0f98fb94
+1, 97, 97, 1, 2304, 0xae15902a
+0, 78, 78, 1, 13968, 0x7c17c4c2
+1, 98, 98, 1, 2304, 0xf2a8b9d8
+0, 79, 79, 1, 15020, 0xe8faa930
+1, 99, 99, 1, 2304, 0x7bc99f71
+0, 80, 80, 1, 16152, 0x3f004f78
+1, 100, 100, 1, 2304, 0x3f199672
+1, 101, 101, 1, 2304, 0x4e258c38
+0, 81, 81, 1, 17224, 0x103f3935
+1, 102, 102, 1, 2304, 0x5119b909
+0, 82, 82, 1, 11956, 0x7af9354a
+1, 103, 103, 1, 2304, 0xad57a533
+0, 83, 83, 1, 12644, 0xe113a4b2
+1, 104, 104, 1, 2304, 0xe40eb453
+0, 84, 84, 1, 13420, 0xdf3ec8a4
+1, 105, 105, 1, 2304, 0x502cc37e
+1, 106, 106, 1, 2304, 0x5b7bae9a
+0, 85, 85, 1, 14140, 0x0ad8a165
+1, 107, 107, 1, 2304, 0x0458a92d
+0, 86, 86, 1, 15192, 0xc55f45cd
+1, 108, 108, 1, 2304, 0x1529aba8
+0, 87, 87, 1, 12740, 0xa13c85db
+1, 109, 109, 1, 2304, 0x1a52a9d1
+0, 88, 88, 1, 14416, 0x9e68b57d
+1, 110, 110, 1, 2304, 0x76a2a7c9
diff --git a/ffmpeg1/tests/ref/fate/ptx b/ffmpeg1/tests/ref/fate/ptx
new file mode 100644
index 0000000..7edbbdd
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ptx
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 393216, 0x30479950
diff --git a/ffmpeg1/tests/ref/fate/pva-demux b/ffmpeg1/tests/ref/fate/pva-demux
new file mode 100644
index 0000000..67d4844
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/pva-demux
@@ -0,0 +1,27 @@
+#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/ffmpeg1/tests/ref/fate/qcp-demux b/ffmpeg1/tests/ref/fate/qcp-demux
new file mode 100644
index 0000000..cd7157d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qcp-demux
@@ -0,0 +1 @@
+CRC=0x4f9f567a
diff --git a/ffmpeg1/tests/ref/fate/qpeg b/ffmpeg1/tests/ref/fate/qpeg
new file mode 100644
index 0000000..eca2924
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qpeg
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 230400, 0x0b712fba
+0, 1, 1, 1, 230400, 0x30252ac7
+0, 2, 2, 1, 230400, 0x6d98a787
+0, 3, 3, 1, 230400, 0x5d1f6ce7
+0, 4, 4, 1, 230400, 0xccb79136
+0, 5, 5, 1, 230400, 0x394093e1
+0, 6, 6, 1, 230400, 0x3e76c5e9
+0, 7, 7, 1, 230400, 0xd6cdc8f1
+0, 8, 8, 1, 230400, 0xd355371d
+0, 9, 9, 1, 230400, 0x2c1519ca
+0, 10, 10, 1, 230400, 0xd82427e1
+0, 11, 11, 1, 230400, 0x4202e3b4
+0, 12, 12, 1, 230400, 0x27c15cda
+0, 13, 13, 1, 230400, 0x3fd7d5db
+0, 14, 14, 1, 230400, 0x03838791
+0, 15, 15, 1, 230400, 0x8253d774
+0, 16, 16, 1, 230400, 0x833e9c9f
+0, 17, 17, 1, 230400, 0xe30aba05
+0, 18, 18, 1, 230400, 0x81056b68
+0, 19, 19, 1, 230400, 0xe6454d37
+0, 20, 20, 1, 230400, 0x6bb65f77
+0, 21, 21, 1, 230400, 0x95b652eb
+0, 22, 22, 1, 230400, 0x4f585a73
+0, 23, 23, 1, 230400, 0x9bc2c9d8
+0, 24, 24, 1, 230400, 0x09f00930
+0, 25, 25, 1, 230400, 0x6be9d11a
+0, 26, 26, 1, 230400, 0x5cdd4ea5
+0, 27, 27, 1, 230400, 0x77508d67
+0, 28, 28, 1, 230400, 0x76b21fdd
+0, 29, 29, 1, 230400, 0x39e2dddb
+0, 30, 30, 1, 230400, 0x8b16d389
+0, 31, 31, 1, 230400, 0xb2b329fb
+0, 32, 32, 1, 230400, 0x8e998c17
+0, 33, 33, 1, 230400, 0x3852049f
+0, 34, 34, 1, 230400, 0x5a7f6302
+0, 35, 35, 1, 230400, 0xdd7d9d86
+0, 36, 36, 1, 230400, 0x337298bd
+0, 37, 37, 1, 230400, 0x2fa38668
+0, 38, 38, 1, 230400, 0xfc42afcd
+0, 39, 39, 1, 230400, 0x20ff7b1d
+0, 40, 40, 1, 230400, 0xa9190f28
+0, 41, 41, 1, 230400, 0x2ca26827
+0, 42, 42, 1, 230400, 0x1106bd55
+0, 43, 43, 1, 230400, 0xb965748e
+0, 44, 44, 1, 230400, 0x2c2d2691
+0, 45, 45, 1, 230400, 0x8096db4d
+0, 46, 46, 1, 230400, 0x7b223871
+0, 47, 47, 1, 230400, 0xf9edbca9
+0, 48, 48, 1, 230400, 0x0e607f74
+0, 49, 49, 1, 230400, 0x3e64ed79
+0, 50, 50, 1, 230400, 0x2198f77a
+0, 51, 51, 1, 230400, 0x3cf4925a
+0, 52, 52, 1, 230400, 0x2de0ebdb
+0, 53, 53, 1, 230400, 0x5104c55f
+0, 54, 54, 1, 230400, 0xebd7f8f7
+0, 55, 55, 1, 230400, 0xfce8a2ae
+0, 56, 56, 1, 230400, 0xeb073121
+0, 57, 57, 1, 230400, 0x8f2ed47d
+0, 58, 58, 1, 230400, 0xdcb72934
+0, 59, 59, 1, 230400, 0xf69e75a1
+0, 60, 60, 1, 230400, 0xc45ab599
+0, 61, 61, 1, 230400, 0x0d218766
+0, 62, 62, 1, 230400, 0x4a6aafce
+0, 63, 63, 1, 230400, 0x642153ca
+0, 64, 64, 1, 230400, 0x8bd7a2a4
+0, 65, 65, 1, 230400, 0x04abeeed
+0, 66, 66, 1, 230400, 0x37bf9f2c
+0, 67, 67, 1, 230400, 0x1d966ae5
+0, 68, 68, 1, 230400, 0x3a2ef337
+0, 69, 69, 1, 230400, 0x9edaf34f
+0, 70, 70, 1, 230400, 0x7f3c0ff8
+0, 71, 71, 1, 230400, 0x403cbdee
+0, 72, 72, 1, 230400, 0x86b340e8
+0, 73, 73, 1, 230400, 0x5a57c916
+0, 74, 74, 1, 230400, 0x35763ab3
+0, 75, 75, 1, 230400, 0xd135a1ba
+0, 76, 76, 1, 230400, 0x56a7b1db
+0, 77, 77, 1, 230400, 0x6e8d2910
+0, 78, 78, 1, 230400, 0xc8d9c4e1
+0, 79, 79, 1, 230400, 0xb61fd11f
+0, 80, 80, 1, 230400, 0x8949b165
+0, 81, 81, 1, 230400, 0x60082f69
+0, 82, 82, 1, 230400, 0xf9c74a14
+0, 83, 83, 1, 230400, 0x1f0af3f4
+0, 84, 84, 1, 230400, 0x1abe4a3b
+0, 85, 85, 1, 230400, 0xdf762ffb
+0, 86, 86, 1, 230400, 0x38513b73
+0, 87, 87, 1, 230400, 0xf3b01fcf
+0, 88, 88, 1, 230400, 0xea7d486c
+0, 89, 89, 1, 230400, 0xfabc7a89
+0, 90, 90, 1, 230400, 0xc72f6977
+0, 91, 91, 1, 230400, 0x1c9e4590
+0, 92, 92, 1, 230400, 0x51abf71e
+0, 93, 93, 1, 230400, 0x39c9d819
+0, 94, 94, 1, 230400, 0xfc62d8e0
+0, 95, 95, 1, 230400, 0x40bb8c0d
+0, 96, 96, 1, 230400, 0xa0bd86d2
+0, 97, 97, 1, 230400, 0x610dfe19
+0, 98, 98, 1, 230400, 0x997e1572
+0, 99, 99, 1, 230400, 0x49919319
diff --git a/ffmpeg1/tests/ref/fate/qt-alaw-mono b/ffmpeg1/tests/ref/fate/qt-alaw-mono
new file mode 100644
index 0000000..fc23d57
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-alaw-mono
@@ -0,0 +1 @@
+7257c296fbba7eedf688fcb667144f7b
diff --git a/ffmpeg1/tests/ref/fate/qt-alaw-stereo b/ffmpeg1/tests/ref/fate/qt-alaw-stereo
new file mode 100644
index 0000000..1a9af29
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-alaw-stereo
@@ -0,0 +1 @@
+011d4aecaee697cc861012b7c25b5d40
diff --git a/ffmpeg1/tests/ref/fate/qt-ima4-mono b/ffmpeg1/tests/ref/fate/qt-ima4-mono
new file mode 100644
index 0000000..b8fc5f9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-ima4-mono
@@ -0,0 +1 @@
+e178ed520edf2f46492ae740d88f5815
diff --git a/ffmpeg1/tests/ref/fate/qt-ima4-stereo b/ffmpeg1/tests/ref/fate/qt-ima4-stereo
new file mode 100644
index 0000000..84c9f46
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-ima4-stereo
@@ -0,0 +1 @@
+d22be0e193dcbba1068a1ca6ab04cf77
diff --git a/ffmpeg1/tests/ref/fate/qt-mac3-mono b/ffmpeg1/tests/ref/fate/qt-mac3-mono
new file mode 100644
index 0000000..c320e18
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-mac3-mono
@@ -0,0 +1 @@
+728d89210e1c90a9185db729b0b6e8c0
diff --git a/ffmpeg1/tests/ref/fate/qt-mac3-stereo b/ffmpeg1/tests/ref/fate/qt-mac3-stereo
new file mode 100644
index 0000000..7b5ce45
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-mac3-stereo
@@ -0,0 +1 @@
+2eef3c68fce3d18ec757bcbc0d369698
diff --git a/ffmpeg1/tests/ref/fate/qt-mac6-mono b/ffmpeg1/tests/ref/fate/qt-mac6-mono
new file mode 100644
index 0000000..d4d5104
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-mac6-mono
@@ -0,0 +1 @@
+eec238d2737365fba15da813e5a7fbc9
diff --git a/ffmpeg1/tests/ref/fate/qt-mac6-stereo b/ffmpeg1/tests/ref/fate/qt-mac6-stereo
new file mode 100644
index 0000000..d018cb0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-mac6-stereo
@@ -0,0 +1 @@
+2716d66016d8230bcc0fe90586da97a9
diff --git a/ffmpeg1/tests/ref/fate/qt-ulaw-mono b/ffmpeg1/tests/ref/fate/qt-ulaw-mono
new file mode 100644
index 0000000..62fbc4e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-ulaw-mono
@@ -0,0 +1 @@
+63075293c68079826146963e94f45ca6
diff --git a/ffmpeg1/tests/ref/fate/qt-ulaw-stereo b/ffmpeg1/tests/ref/fate/qt-ulaw-stereo
new file mode 100644
index 0000000..642f0cb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qt-ulaw-stereo
@@ -0,0 +1 @@
+96316117d444b06b2aa20877f7de36fd
diff --git a/ffmpeg1/tests/ref/fate/qtrle-16bit b/ffmpeg1/tests/ref/fate/qtrle-16bit
new file mode 100644
index 0000000..2021f2a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qtrle-16bit
@@ -0,0 +1,84 @@
+#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/ffmpeg1/tests/ref/fate/qtrle-1bit b/ffmpeg1/tests/ref/fate/qtrle-1bit
new file mode 100644
index 0000000..f191169
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qtrle-1bit
@@ -0,0 +1,39 @@
+#tb 0: 1/12
+0, 0, 0, 1, 9600, 0xc5921aa2
+0, 1, 1, 1, 9600, 0x9032fc52
+0, 2, 2, 1, 9600, 0x7db0038e
+0, 3, 3, 1, 9600, 0x95b73c41
+0, 4, 4, 1, 9600, 0x531e4189
+0, 5, 5, 1, 9600, 0xb73390ec
+0, 6, 6, 1, 9600, 0x958e8221
+0, 7, 7, 1, 9600, 0xd393f8a6
+0, 8, 8, 1, 9600, 0xa085da1c
+0, 9, 9, 1, 9600, 0x57ace74f
+0, 10, 10, 1, 9600, 0x5d11a308
+0, 11, 11, 1, 9600, 0x13e133b7
+0, 12, 12, 1, 9600, 0x494edb86
+0, 13, 13, 1, 9600, 0x43a448ea
+0, 14, 14, 1, 9600, 0x3562d35b
+0, 15, 15, 1, 9600, 0x0bc655d2
+0, 16, 16, 1, 9600, 0xbece73a1
+0, 17, 17, 1, 9600, 0x82e7cfa1
+0, 18, 18, 1, 9600, 0xda29fd8f
+0, 19, 19, 1, 9600, 0x70fb700b
+0, 20, 20, 1, 9600, 0xaf57a6b0
+0, 21, 21, 1, 9600, 0x0a5ed9b9
+0, 22, 22, 1, 9600, 0xf7c62c38
+0, 23, 23, 1, 9600, 0x0aa2ccfd
+0, 24, 24, 1, 9600, 0xc9adabae
+0, 25, 25, 1, 9600, 0x67ff0aba
+0, 26, 26, 1, 9600, 0xea79a465
+0, 27, 27, 1, 9600, 0x8928c626
+0, 28, 28, 1, 9600, 0x8dab4111
+0, 29, 29, 1, 9600, 0x81ef63f9
+0, 30, 30, 1, 9600, 0xf977bc5e
+0, 31, 31, 1, 9600, 0x9e6a3f4a
+0, 32, 32, 1, 9600, 0x77c92865
+0, 33, 33, 1, 9600, 0x3915170d
+0, 34, 34, 1, 9600, 0xbe19b995
+0, 35, 35, 1, 9600, 0x3e8a3077
+0, 36, 36, 1, 9600, 0x1331342e
+0, 37, 37, 1, 9600, 0x4d692175
diff --git a/ffmpeg1/tests/ref/fate/qtrle-24bit b/ffmpeg1/tests/ref/fate/qtrle-24bit
new file mode 100644
index 0000000..a21b099
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qtrle-24bit
@@ -0,0 +1,35 @@
+#tb 0: 1/10
+0, 0, 0, 1, 57600, 0x3718ad00
+0, 1, 1, 1, 57600, 0x54861558
+0, 2, 2, 1, 57600, 0xea1d6233
+0, 3, 3, 1, 57600, 0xf669a2fd
+0, 4, 4, 1, 57600, 0xc9f76f31
+0, 5, 5, 1, 57600, 0xe23c6d7b
+0, 6, 6, 1, 57600, 0xbc9d6167
+0, 7, 7, 1, 57600, 0x0ca63477
+0, 8, 8, 1, 57600, 0xc0850d22
+0, 9, 9, 1, 57600, 0x735d10b2
+0, 10, 10, 1, 57600, 0x561f3c4a
+0, 11, 11, 1, 57600, 0x84db9cf1
+0, 12, 12, 1, 57600, 0x9fb841f4
+0, 13, 13, 1, 57600, 0xeaf262ab
+0, 14, 14, 1, 57600, 0x264886b4
+0, 15, 15, 1, 57600, 0x5edc5518
+0, 16, 16, 1, 57600, 0xd3e60c72
+0, 17, 17, 1, 57600, 0x9cabaed7
+0, 18, 18, 1, 57600, 0x616716cf
+0, 19, 19, 1, 57600, 0xa43f61aa
+0, 20, 20, 1, 57600, 0xdba3a0bd
+0, 21, 21, 1, 57600, 0xa7dd6dfa
+0, 22, 22, 1, 57600, 0xc3fa6c84
+0, 23, 23, 1, 57600, 0xb1275fb8
+0, 24, 24, 1, 57600, 0x2e39331f
+0, 25, 25, 1, 57600, 0x5b9e0bca
+0, 26, 26, 1, 57600, 0x0e760f5a
+0, 27, 27, 1, 57600, 0xc56c3e69
+0, 28, 28, 1, 57600, 0x51da9fb8
+0, 29, 29, 1, 57600, 0xe3a1432b
+0, 30, 30, 1, 57600, 0xe1b360a3
+0, 31, 31, 1, 57600, 0x30b383cd
+0, 32, 32, 1, 57600, 0x950c5439
+0, 33, 33, 1, 57600, 0x8f9d0ca2
diff --git a/ffmpeg1/tests/ref/fate/qtrle-2bit b/ffmpeg1/tests/ref/fate/qtrle-2bit
new file mode 100644
index 0000000..95c0f7c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qtrle-2bit
@@ -0,0 +1,39 @@
+#tb 0: 1/12
+0, 0, 0, 1, 230400, 0xb1ee55dc
+0, 1, 1, 1, 230400, 0x97c580bf
+0, 2, 2, 1, 230400, 0xd4bd57e8
+0, 3, 3, 1, 230400, 0x412b79aa
+0, 4, 4, 1, 230400, 0x928a44d1
+0, 5, 5, 1, 230400, 0x6bbdc0e4
+0, 6, 6, 1, 230400, 0x382e960f
+0, 7, 7, 1, 230400, 0x62c863ea
+0, 8, 8, 1, 230400, 0xbfccd3ce
+0, 9, 9, 1, 230400, 0x1987cdd4
+0, 10, 10, 1, 230400, 0x40279727
+0, 11, 11, 1, 230400, 0x9d4f6746
+0, 12, 12, 1, 230400, 0x7b8a77ec
+0, 13, 13, 1, 230400, 0x2ce7a781
+0, 14, 14, 1, 230400, 0xb749815e
+0, 15, 15, 1, 230400, 0x61c88610
+0, 16, 16, 1, 230400, 0x8449114d
+0, 17, 17, 1, 230400, 0x5f73e666
+0, 18, 18, 1, 230400, 0xbde53ce6
+0, 19, 19, 1, 230400, 0x8c7406fd
+0, 20, 20, 1, 230400, 0xf9e9a3ef
+0, 21, 21, 1, 230400, 0x7e0a3077
+0, 22, 22, 1, 230400, 0xd9245c5f
+0, 23, 23, 1, 230400, 0x6d077ea2
+0, 24, 24, 1, 230400, 0xf622bb2a
+0, 25, 25, 1, 230400, 0x35292dc8
+0, 26, 26, 1, 230400, 0xc0cea946
+0, 27, 27, 1, 230400, 0x98b27b60
+0, 28, 28, 1, 230400, 0x668ef6bd
+0, 29, 29, 1, 230400, 0x6c07a31c
+0, 30, 30, 1, 230400, 0x0b4a6ae1
+0, 31, 31, 1, 230400, 0x945b9878
+0, 32, 32, 1, 230400, 0xab28031c
+0, 33, 33, 1, 230400, 0x977252b0
+0, 34, 34, 1, 230400, 0x6c3d9706
+0, 35, 35, 1, 230400, 0xe053bc2a
+0, 36, 36, 1, 230400, 0x4cf2fc7c
+0, 37, 37, 1, 230400, 0x610beda7
diff --git a/ffmpeg1/tests/ref/fate/qtrle-32bit b/ffmpeg1/tests/ref/fate/qtrle-32bit
new file mode 100644
index 0000000..ed6dc03
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qtrle-32bit
@@ -0,0 +1,27 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 1036800, 0x2a90d062
+0, 1, 1, 1, 1036800, 0x6565aded
+0, 2, 2, 1, 1036800, 0xf0b587d2
+0, 3, 3, 1, 1036800, 0xf0b4e53f
+0, 4, 4, 1, 1036800, 0x5ba4b96a
+0, 5, 5, 1, 1036800, 0x501df9c1
+0, 6, 6, 1, 1036800, 0xcf45b940
+0, 7, 7, 1, 1036800, 0xa454df07
+0, 8, 8, 1, 1036800, 0xc504d152
+0, 9, 9, 1, 1036800, 0xd90ecac7
+0, 10, 10, 1, 1036800, 0xe30368df
+0, 11, 11, 1, 1036800, 0x0ca35522
+0, 12, 12, 1, 1036800, 0xe76b8d43
+0, 13, 13, 1, 1036800, 0x7c85a447
+0, 14, 14, 1, 1036800, 0x3e2d1b5f
+0, 15, 15, 1, 1036800, 0x230fa5a6
+0, 16, 16, 1, 1036800, 0x4fad025e
+0, 17, 17, 1, 1036800, 0x7d3366ae
+0, 18, 18, 1, 1036800, 0xa83720f7
+0, 19, 19, 1, 1036800, 0x5dbd13b1
+0, 20, 20, 1, 1036800, 0xd0ebd56d
+0, 21, 21, 1, 1036800, 0x4d7c67f3
+0, 22, 22, 1, 1036800, 0x226baa3f
+0, 23, 23, 1, 1036800, 0xc0e93acf
+0, 24, 24, 1, 1036800, 0x5a466c17
+0, 25, 25, 1, 1036800, 0xfdb7d2ea
diff --git a/ffmpeg1/tests/ref/fate/qtrle-4bit b/ffmpeg1/tests/ref/fate/qtrle-4bit
new file mode 100644
index 0000000..74eb4ab
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qtrle-4bit
@@ -0,0 +1,39 @@
+#tb 0: 1/12
+0, 0, 0, 1, 230400, 0x0655b3d9
+0, 1, 1, 1, 230400, 0x9c626fd3
+0, 2, 2, 1, 230400, 0x5bc95868
+0, 3, 3, 1, 230400, 0x55a38387
+0, 4, 4, 1, 230400, 0xd3495b60
+0, 5, 5, 1, 230400, 0xecdb2d15
+0, 6, 6, 1, 230400, 0x7f9b373e
+0, 7, 7, 1, 230400, 0x51caac22
+0, 8, 8, 1, 230400, 0x0f2ac153
+0, 9, 9, 1, 230400, 0xe5a6f9e7
+0, 10, 10, 1, 230400, 0xfc2b2250
+0, 11, 11, 1, 230400, 0x24e2da1b
+0, 12, 12, 1, 230400, 0x2723d7dd
+0, 13, 13, 1, 230400, 0x024a4989
+0, 14, 14, 1, 230400, 0xdbafb92d
+0, 15, 15, 1, 230400, 0x6b9b5056
+0, 16, 16, 1, 230400, 0x010cabb4
+0, 17, 17, 1, 230400, 0xf75bc1c0
+0, 18, 18, 1, 230400, 0x6c7fd744
+0, 19, 19, 1, 230400, 0xabe4371a
+0, 20, 20, 1, 230400, 0xe41fb781
+0, 21, 21, 1, 230400, 0x42c5649e
+0, 22, 22, 1, 230400, 0xf5511deb
+0, 23, 23, 1, 230400, 0xebf5ab32
+0, 24, 24, 1, 230400, 0x44398194
+0, 25, 25, 1, 230400, 0xfd63510c
+0, 26, 26, 1, 230400, 0xa013975e
+0, 27, 27, 1, 230400, 0xe0aa028d
+0, 28, 28, 1, 230400, 0x349f6f3b
+0, 29, 29, 1, 230400, 0x2446032c
+0, 30, 30, 1, 230400, 0x648f122c
+0, 31, 31, 1, 230400, 0xbda221fd
+0, 32, 32, 1, 230400, 0xf0f97642
+0, 33, 33, 1, 230400, 0x6a1737de
+0, 34, 34, 1, 230400, 0x808a8179
+0, 35, 35, 1, 230400, 0x121641cf
+0, 36, 36, 1, 230400, 0x275d11ea
+0, 37, 37, 1, 230400, 0x92adf2cf
diff --git a/ffmpeg1/tests/ref/fate/qtrle-8bit b/ffmpeg1/tests/ref/fate/qtrle-8bit
new file mode 100644
index 0000000..5b30fbb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/qtrle-8bit
@@ -0,0 +1,168 @@
+#tb 0: 1/15
+0, 0, 0, 1, 921600, 0x1492e3ed
+0, 1, 1, 1, 921600, 0x1492e3ed
+0, 2, 2, 1, 921600, 0x1492e3ed
+0, 3, 3, 1, 921600, 0x23ef4fc7
+0, 4, 4, 1, 921600, 0x23ef4fc7
+0, 5, 5, 1, 921600, 0xe406d4be
+0, 6, 6, 1, 921600, 0xe406d4be
+0, 7, 7, 1, 921600, 0xe406d4be
+0, 8, 8, 1, 921600, 0x62b8b5a1
+0, 9, 9, 1, 921600, 0x62b8b5a1
+0, 10, 10, 1, 921600, 0x7d8ba674
+0, 11, 11, 1, 921600, 0x7d8ba674
+0, 12, 12, 1, 921600, 0x7d8ba674
+0, 13, 13, 1, 921600, 0xfe666be7
+0, 14, 14, 1, 921600, 0xfe666be7
+0, 15, 15, 1, 921600, 0x721baec0
+0, 16, 16, 1, 921600, 0x721baec0
+0, 17, 17, 1, 921600, 0x721baec0
+0, 18, 18, 1, 921600, 0xc237180a
+0, 19, 19, 1, 921600, 0xc237180a
+0, 20, 20, 1, 921600, 0xf03a7482
+0, 21, 21, 1, 921600, 0xf03a7482
+0, 22, 22, 1, 921600, 0xf03a7482
+0, 23, 23, 1, 921600, 0x5612a391
+0, 24, 24, 1, 921600, 0x5612a391
+0, 25, 25, 1, 921600, 0x9dbcc46a
+0, 26, 26, 1, 921600, 0x9dbcc46a
+0, 27, 27, 1, 921600, 0x9dbcc46a
+0, 28, 28, 1, 921600, 0xa128a5d5
+0, 29, 29, 1, 921600, 0xa128a5d5
+0, 30, 30, 1, 921600, 0x63e0025c
+0, 31, 31, 1, 921600, 0x63e0025c
+0, 32, 32, 1, 921600, 0x63e0025c
+0, 33, 33, 1, 921600, 0x262359ed
+0, 34, 34, 1, 921600, 0x262359ed
+0, 35, 35, 1, 921600, 0x343688e8
+0, 36, 36, 1, 921600, 0x343688e8
+0, 37, 37, 1, 921600, 0x343688e8
+0, 38, 38, 1, 921600, 0x343688e8
+0, 39, 39, 1, 921600, 0x343688e8
+0, 40, 40, 1, 921600, 0x343688e8
+0, 41, 41, 1, 921600, 0x343688e8
+0, 42, 42, 1, 921600, 0x343688e8
+0, 43, 43, 1, 921600, 0x343688e8
+0, 44, 44, 1, 921600, 0x343688e8
+0, 45, 45, 1, 921600, 0xe4b29d57
+0, 46, 46, 1, 921600, 0xe4b29d57
+0, 47, 47, 1, 921600, 0xe4b29d57
+0, 48, 48, 1, 921600, 0x198e8a4a
+0, 49, 49, 1, 921600, 0x198e8a4a
+0, 50, 50, 1, 921600, 0x0cad8dc9
+0, 51, 51, 1, 921600, 0x0cad8dc9
+0, 52, 52, 1, 921600, 0x0cad8dc9
+0, 53, 53, 1, 921600, 0x1f74cf3d
+0, 54, 54, 1, 921600, 0x1f74cf3d
+0, 55, 55, 1, 921600, 0xec5b5449
+0, 56, 56, 1, 921600, 0xec5b5449
+0, 57, 57, 1, 921600, 0xec5b5449
+0, 58, 58, 1, 921600, 0x39829711
+0, 59, 59, 1, 921600, 0x39829711
+0, 60, 60, 1, 921600, 0x6de5b9c6
+0, 61, 61, 1, 921600, 0x6de5b9c6
+0, 62, 62, 1, 921600, 0x6de5b9c6
+0, 63, 63, 1, 921600, 0x47b0e9d4
+0, 64, 64, 1, 921600, 0x47b0e9d4
+0, 65, 65, 1, 921600, 0x756452b8
+0, 66, 66, 1, 921600, 0x756452b8
+0, 67, 67, 1, 921600, 0x756452b8
+0, 68, 68, 1, 921600, 0x6fce3478
+0, 69, 69, 1, 921600, 0x6fce3478
+0, 70, 70, 1, 921600, 0x372397cd
+0, 71, 71, 1, 921600, 0x372397cd
+0, 72, 72, 1, 921600, 0x372397cd
+0, 73, 73, 1, 921600, 0xe3999ba1
+0, 74, 74, 1, 921600, 0xe3999ba1
+0, 75, 75, 1, 921600, 0x6ba26b43
+0, 76, 76, 1, 921600, 0x6ba26b43
+0, 77, 77, 1, 921600, 0x6ba26b43
+0, 78, 78, 1, 921600, 0x4e9ee49e
+0, 79, 79, 1, 921600, 0x4e9ee49e
+0, 80, 80, 1, 921600, 0xdb5fd6e7
+0, 81, 81, 1, 921600, 0xdb5fd6e7
+0, 82, 82, 1, 921600, 0xdb5fd6e7
+0, 83, 83, 1, 921600, 0x8f2254a5
+0, 84, 84, 1, 921600, 0x8f2254a5
+0, 85, 85, 1, 921600, 0x8f2254a5
+0, 86, 86, 1, 921600, 0x8f2254a5
+0, 87, 87, 1, 921600, 0x8f2254a5
+0, 88, 88, 1, 921600, 0x8f2254a5
+0, 89, 89, 1, 921600, 0x8f2254a5
+0, 90, 90, 1, 921600, 0x8f2254a5
+0, 91, 91, 1, 921600, 0x8f2254a5
+0, 92, 92, 1, 921600, 0x8f2254a5
+0, 93, 93, 1, 921600, 0x57e95c32
+0, 94, 94, 1, 921600, 0x57e95c32
+0, 95, 95, 1, 921600, 0x41627a9b
+0, 96, 96, 1, 921600, 0x41627a9b
+0, 97, 97, 1, 921600, 0x41627a9b
+0, 98, 98, 1, 921600, 0x7412dcee
+0, 99, 99, 1, 921600, 0x7412dcee
+0, 100, 100, 1, 921600, 0xaebe10ed
+0, 101, 101, 1, 921600, 0xaebe10ed
+0, 102, 102, 1, 921600, 0xaebe10ed
+0, 103, 103, 1, 921600, 0x411a91f6
+0, 104, 104, 1, 921600, 0x411a91f6
+0, 105, 105, 1, 921600, 0xb059df3f
+0, 106, 106, 1, 921600, 0xb059df3f
+0, 107, 107, 1, 921600, 0xb059df3f
+0, 108, 108, 1, 921600, 0x4d6f5a77
+0, 109, 109, 1, 921600, 0x4d6f5a77
+0, 110, 110, 1, 921600, 0xbbf06df4
+0, 111, 111, 1, 921600, 0xbbf06df4
+0, 112, 112, 1, 921600, 0xbbf06df4
+0, 113, 113, 1, 921600, 0xe27f7bf6
+0, 114, 114, 1, 921600, 0xe27f7bf6
+0, 115, 115, 1, 921600, 0xd7e8360e
+0, 116, 116, 1, 921600, 0xd7e8360e
+0, 117, 117, 1, 921600, 0xd7e8360e
+0, 118, 118, 1, 921600, 0x1dd4c344
+0, 119, 119, 1, 921600, 0x1dd4c344
+0, 120, 120, 1, 921600, 0x7995a7ce
+0, 121, 121, 1, 921600, 0x7995a7ce
+0, 122, 122, 1, 921600, 0x7995a7ce
+0, 123, 123, 1, 921600, 0x2ef3c566
+0, 124, 124, 1, 921600, 0x2ef3c566
+0, 125, 125, 1, 921600, 0xf296736e
+0, 126, 126, 1, 921600, 0xf296736e
+0, 127, 127, 1, 921600, 0xf296736e
+0, 128, 128, 1, 921600, 0xf296736e
+0, 129, 129, 1, 921600, 0xf296736e
+0, 130, 130, 1, 921600, 0xf296736e
+0, 131, 131, 1, 921600, 0xf296736e
+0, 132, 132, 1, 921600, 0xf296736e
+0, 133, 133, 1, 921600, 0xf296736e
+0, 134, 134, 1, 921600, 0xf296736e
+0, 135, 135, 1, 921600, 0x1a488311
+0, 136, 136, 1, 921600, 0x1a488311
+0, 137, 137, 1, 921600, 0x1a488311
+0, 138, 138, 1, 921600, 0x9e28011b
+0, 139, 139, 1, 921600, 0x9e28011b
+0, 140, 140, 1, 921600, 0x84d1ea80
+0, 141, 141, 1, 921600, 0x84d1ea80
+0, 142, 142, 1, 921600, 0x84d1ea80
+0, 143, 143, 1, 921600, 0x9ed41052
+0, 144, 144, 1, 921600, 0x9ed41052
+0, 145, 145, 1, 921600, 0xd4db7206
+0, 146, 146, 1, 921600, 0xd4db7206
+0, 147, 147, 1, 921600, 0xd4db7206
+0, 148, 148, 1, 921600, 0x55f695a9
+0, 149, 149, 1, 921600, 0x55f695a9
+0, 150, 150, 1, 921600, 0x9d8c667f
+0, 151, 151, 1, 921600, 0x9d8c667f
+0, 152, 152, 1, 921600, 0x9d8c667f
+0, 153, 153, 1, 921600, 0x9b6037ec
+0, 154, 154, 1, 921600, 0x9b6037ec
+0, 155, 155, 1, 921600, 0x57c5e835
+0, 156, 156, 1, 921600, 0x57c5e835
+0, 157, 157, 1, 921600, 0x57c5e835
+0, 158, 158, 1, 921600, 0x476dad89
+0, 159, 159, 1, 921600, 0x476dad89
+0, 160, 160, 1, 921600, 0xcfd6ad2b
+0, 161, 161, 1, 921600, 0xcfd6ad2b
+0, 162, 162, 1, 921600, 0xcfd6ad2b
+0, 163, 163, 1, 921600, 0x3b372379
+0, 164, 164, 1, 921600, 0x3b372379
+0, 165, 165, 1, 921600, 0x36f245f5
+0, 166, 166, 1, 921600, 0x36f245f5
diff --git a/ffmpeg1/tests/ref/fate/quickdraw b/ffmpeg1/tests/ref/fate/quickdraw
new file mode 100644
index 0000000..eccb477
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/quickdraw
@@ -0,0 +1,3 @@
+#tb 0: 1/15
+0, 0, 0, 1, 921600, 0xc0e68764
+0, 2, 2, 1, 921600, 0x01a16629
diff --git a/ffmpeg1/tests/ref/fate/r210 b/ffmpeg1/tests/ref/fate/r210
new file mode 100644
index 0000000..45bb10c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/r210
@@ -0,0 +1,4 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 1843200, 0xbd414b93
+0, 1, 1, 1, 1843200, 0x23298f1f
+0, 2, 2, 1, 1843200, 0x5a56df19
diff --git a/ffmpeg1/tests/ref/fate/ra-144 b/ffmpeg1/tests/ref/fate/ra-144
new file mode 100644
index 0000000..4710566
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ra-144
@@ -0,0 +1 @@
+2da17ae831ea415592c7e6828e3fb69a
diff --git a/ffmpeg1/tests/ref/fate/ralf b/ffmpeg1/tests/ref/fate/ralf
new file mode 100644
index 0000000..fb31c3f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ralf
@@ -0,0 +1 @@
+10da0398e06a470a0b97817fe113abcb
diff --git a/ffmpeg1/tests/ref/fate/random_seed b/ffmpeg1/tests/ref/fate/random_seed
new file mode 100644
index 0000000..2b5b3af
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/random_seed
@@ -0,0 +1 @@
+seeds OK
diff --git a/ffmpeg1/tests/ref/fate/redcode-demux b/ffmpeg1/tests/ref/fate/redcode-demux
new file mode 100644
index 0000000..a7e2838
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/redcode-demux
@@ -0,0 +1,7 @@
+#tb 0: 1/240000
+#tb 1: 1/240000
+0, 0, 0, 10010, 1626280, 0x5768c7d6
+1, 0, 0, 18140, 14816, 0xd185e8c7
+0, 10010, 10010, 10010, 1626092, 0x070bd882
+1, 18140, 18140, 40920, 32736, 0x791b737a
+0, 20020, 20020, 10010, 893932, 0x8c7cd0a6, F=0x3
diff --git a/ffmpeg1/tests/ref/fate/rl2 b/ffmpeg1/tests/ref/fate/rl2
new file mode 100644
index 0000000..d7dd23d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/rl2
@@ -0,0 +1,109 @@
+#tb 0: 1171/11025
+0, 0, 0, 1, 192000, 0x7112a667
+0, 1, 1, 1, 192000, 0x6936abf3
+0, 2, 2, 1, 192000, 0xb1f08981
+0, 3, 3, 1, 192000, 0x4ce7fece
+0, 4, 4, 1, 192000, 0xf04decde
+0, 5, 5, 1, 192000, 0x47fef74b
+0, 6, 6, 1, 192000, 0x99b42ac2
+0, 7, 7, 1, 192000, 0x3c4c419d
+0, 8, 8, 1, 192000, 0x66bf5588
+0, 9, 9, 1, 192000, 0xe1de4725
+0, 10, 10, 1, 192000, 0x348b2af9
+0, 11, 11, 1, 192000, 0x1ce73e83
+0, 12, 12, 1, 192000, 0xcdaa6e02
+0, 13, 13, 1, 192000, 0x370dc2ce
+0, 14, 14, 1, 192000, 0x1e1e40fe
+0, 15, 15, 1, 192000, 0x491470a4
+0, 16, 16, 1, 192000, 0x88c43e9a
+0, 17, 17, 1, 192000, 0x036f3f44
+0, 18, 18, 1, 192000, 0xc8be7e25
+0, 19, 19, 1, 192000, 0xbedb397d
+0, 20, 20, 1, 192000, 0x97c410f4
+0, 21, 21, 1, 192000, 0xc2c8225d
+0, 22, 22, 1, 192000, 0xe396bccb
+0, 23, 23, 1, 192000, 0x7e89c24c
+0, 24, 24, 1, 192000, 0xb044954c
+0, 25, 25, 1, 192000, 0x335890dd
+0, 26, 26, 1, 192000, 0x58a457c0
+0, 27, 27, 1, 192000, 0xeb0f4798
+0, 28, 28, 1, 192000, 0x0bfc39a1
+0, 29, 29, 1, 192000, 0x06a6905a
+0, 30, 30, 1, 192000, 0x5300c99b
+0, 31, 31, 1, 192000, 0x38f3f845
+0, 32, 32, 1, 192000, 0x6afa3543
+0, 33, 33, 1, 192000, 0x5106a8e0
+0, 34, 34, 1, 192000, 0xc76f0dab
+0, 35, 35, 1, 192000, 0x8efa6939
+0, 36, 36, 1, 192000, 0x64ea23d7
+0, 37, 37, 1, 192000, 0x421a2817
+0, 38, 38, 1, 192000, 0xc854fa18
+0, 39, 39, 1, 192000, 0x4a10d59c
+0, 40, 40, 1, 192000, 0x72637829
+0, 41, 41, 1, 192000, 0xdbbe2796
+0, 42, 42, 1, 192000, 0xff742e6b
+0, 43, 43, 1, 192000, 0xf94b9346
+0, 44, 44, 1, 192000, 0xc90ea53c
+0, 45, 45, 1, 192000, 0x177483bb
+0, 46, 46, 1, 192000, 0x3510369c
+0, 47, 47, 1, 192000, 0x501034bf
+0, 48, 48, 1, 192000, 0x315c744b
+0, 49, 49, 1, 192000, 0xdb5048ae
+0, 50, 50, 1, 192000, 0x09a86221
+0, 51, 51, 1, 192000, 0xb9c9568a
+0, 52, 52, 1, 192000, 0x5eee665b
+0, 53, 53, 1, 192000, 0xdef85517
+0, 54, 54, 1, 192000, 0x7896b5ad
+0, 55, 55, 1, 192000, 0x19fbad39
+0, 56, 56, 1, 192000, 0x63358748
+0, 57, 57, 1, 192000, 0xca0196a3
+0, 58, 58, 1, 192000, 0x0b321da3
+0, 59, 59, 1, 192000, 0xa07af07e
+0, 60, 60, 1, 192000, 0x21f9310c
+0, 61, 61, 1, 192000, 0x62d59874
+0, 62, 62, 1, 192000, 0x021227b4
+0, 63, 63, 1, 192000, 0x01dac0c2
+0, 64, 64, 1, 192000, 0xf3c33a74
+0, 65, 65, 1, 192000, 0xeebe83b7
+0, 66, 66, 1, 192000, 0x9ec77f97
+0, 67, 67, 1, 192000, 0xc91c2e37
+0, 68, 68, 1, 192000, 0x7b58751d
+0, 69, 69, 1, 192000, 0xb178dfbb
+0, 70, 70, 1, 192000, 0x2a63b5be
+0, 71, 71, 1, 192000, 0x44a407ac
+0, 72, 72, 1, 192000, 0x9a8e17dd
+0, 73, 73, 1, 192000, 0x5546f4c8
+0, 74, 74, 1, 192000, 0xeda94586
+0, 75, 75, 1, 192000, 0x941dfa6b
+0, 76, 76, 1, 192000, 0x9772301d
+0, 77, 77, 1, 192000, 0x8be16b16
+0, 78, 78, 1, 192000, 0x26dd4496
+0, 79, 79, 1, 192000, 0x27823797
+0, 80, 80, 1, 192000, 0xacc914f7
+0, 81, 81, 1, 192000, 0xcbb72c9b
+0, 82, 82, 1, 192000, 0x4bd3391c
+0, 83, 83, 1, 192000, 0x4e6adbfe
+0, 84, 84, 1, 192000, 0x7a791c75
+0, 85, 85, 1, 192000, 0xc4f59c94
+0, 86, 86, 1, 192000, 0xc4f59c94
+0, 87, 87, 1, 192000, 0x984a4a0b
+0, 88, 88, 1, 192000, 0x3353f31f
+0, 89, 89, 1, 192000, 0xa9d4dc5a
+0, 90, 90, 1, 192000, 0xb33425d0
+0, 91, 91, 1, 192000, 0x546d768a
+0, 92, 92, 1, 192000, 0xfefbe5c9
+0, 93, 93, 1, 192000, 0xbd6be61d
+0, 94, 94, 1, 192000, 0xf5792731
+0, 95, 95, 1, 192000, 0xccde0582
+0, 96, 96, 1, 192000, 0x857d58ee
+0, 97, 97, 1, 192000, 0xe914ce48
+0, 98, 98, 1, 192000, 0x1f736298
+0, 99, 99, 1, 192000, 0xec0b4846
+0, 100, 100, 1, 192000, 0xe1422624
+0, 101, 101, 1, 192000, 0x56e2b0e0
+0, 102, 102, 1, 192000, 0xc4190640
+0, 103, 103, 1, 192000, 0x7c461977
+0, 104, 104, 1, 192000, 0x34b1d5e8
+0, 105, 105, 1, 192000, 0xbdc70f7a
+0, 106, 106, 1, 192000, 0xb466cd8d
+0, 107, 107, 1, 192000, 0x0e86a04c
diff --git a/ffmpeg1/tests/ref/fate/roqvideo b/ffmpeg1/tests/ref/fate/roqvideo
new file mode 100644
index 0000000..9febedb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/roqvideo
@@ -0,0 +1,211 @@
+#tb 0: 1/30
+0, 0, 0, 1, 393216, 0x56995aac
+0, 1, 1, 1, 393216, 0xf9ed5d6c
+0, 2, 2, 1, 393216, 0xd3285d75
+0, 3, 3, 1, 393216, 0x82d15d62
+0, 4, 4, 1, 393216, 0x893e5d6f
+0, 5, 5, 1, 393216, 0x82d15d62
+0, 6, 6, 1, 393216, 0x893e5d6f
+0, 7, 7, 1, 393216, 0x82d15d62
+0, 8, 8, 1, 393216, 0x893e5d6f
+0, 9, 9, 1, 393216, 0x82d15d62
+0, 10, 10, 1, 393216, 0x893e5d6f
+0, 11, 11, 1, 393216, 0x82d15d62
+0, 12, 12, 1, 393216, 0x893e5d6f
+0, 13, 13, 1, 393216, 0x82d15d62
+0, 14, 14, 1, 393216, 0x893e5d6f
+0, 15, 15, 1, 393216, 0x82d15d62
+0, 16, 16, 1, 393216, 0x2ae39eca
+0, 17, 17, 1, 393216, 0x9254be70
+0, 18, 18, 1, 393216, 0x4b2ed384
+0, 19, 19, 1, 393216, 0xbbd9d8f7
+0, 20, 20, 1, 393216, 0x1f2be0c3
+0, 21, 21, 1, 393216, 0x2434eb25
+0, 22, 22, 1, 393216, 0xa6cced4e
+0, 23, 23, 1, 393216, 0xd116f38b
+0, 24, 24, 1, 393216, 0x6b86f380
+0, 25, 25, 1, 393216, 0xc1b3f8e9
+0, 26, 26, 1, 393216, 0x2993fd5d
+0, 27, 27, 1, 393216, 0xf489fe18
+0, 28, 28, 1, 393216, 0x9ef10501
+0, 29, 29, 1, 393216, 0x8faf0512
+0, 30, 30, 1, 393216, 0xa54d0736
+0, 31, 31, 1, 393216, 0xf4ef01e0
+0, 32, 32, 1, 393216, 0xe241ef51
+0, 33, 33, 1, 393216, 0xcc38e51f
+0, 34, 34, 1, 393216, 0xb1345876
+0, 35, 35, 1, 393216, 0xf9b0968b
+0, 36, 36, 1, 393216, 0x6bb1523f
+0, 37, 37, 1, 393216, 0x83469a05
+0, 38, 38, 1, 393216, 0x73e30882
+0, 39, 39, 1, 393216, 0x8673da66
+0, 40, 40, 1, 393216, 0xb67596d3
+0, 41, 41, 1, 393216, 0xf7638710
+0, 42, 42, 1, 393216, 0x813a8f47
+0, 43, 43, 1, 393216, 0xb3526555
+0, 44, 44, 1, 393216, 0x1b167be3
+0, 45, 45, 1, 393216, 0x99114562
+0, 46, 46, 1, 393216, 0xfafb0693
+0, 47, 47, 1, 393216, 0x121d96c8
+0, 48, 48, 1, 393216, 0xb3c68c5d
+0, 49, 49, 1, 393216, 0x2035b97f
+0, 50, 50, 1, 393216, 0xfbcaeb62
+0, 51, 51, 1, 393216, 0xfd5aea5d
+0, 52, 52, 1, 393216, 0x66efbddd
+0, 53, 53, 1, 393216, 0xf1e17862
+0, 54, 54, 1, 393216, 0x27fa584d
+0, 55, 55, 1, 393216, 0xe644ec5f
+0, 56, 56, 1, 393216, 0x7e3067ba
+0, 57, 57, 1, 393216, 0x1b6ba6fd
+0, 58, 58, 1, 393216, 0x55bdba34
+0, 59, 59, 1, 393216, 0xc67db2e4
+0, 60, 60, 1, 393216, 0x359de8a2
+0, 61, 61, 1, 393216, 0x7b7a32ef
+0, 62, 62, 1, 393216, 0xbe512a66
+0, 63, 63, 1, 393216, 0x681d82bf
+0, 64, 64, 1, 393216, 0xa2320ec5
+0, 65, 65, 1, 393216, 0xcfbd9954
+0, 66, 66, 1, 393216, 0x7fee9854
+0, 67, 67, 1, 393216, 0x70eec155
+0, 68, 68, 1, 393216, 0x114f684e
+0, 69, 69, 1, 393216, 0xe27f034f
+0, 70, 70, 1, 393216, 0xfbbd89b4
+0, 71, 71, 1, 393216, 0xcef4c58a
+0, 72, 72, 1, 393216, 0x9eea88e9
+0, 73, 73, 1, 393216, 0x911cea42
+0, 74, 74, 1, 393216, 0xec5727ea
+0, 75, 75, 1, 393216, 0xda998c33
+0, 76, 76, 1, 393216, 0xc82140ed
+0, 77, 77, 1, 393216, 0x4caa8591
+0, 78, 78, 1, 393216, 0x4944206c
+0, 79, 79, 1, 393216, 0xd4676a94
+0, 80, 80, 1, 393216, 0x9e0340b3
+0, 81, 81, 1, 393216, 0xbdef7f94
+0, 82, 82, 1, 393216, 0xfac05cb0
+0, 83, 83, 1, 393216, 0xfef5a369
+0, 84, 84, 1, 393216, 0x9fcb3711
+0, 85, 85, 1, 393216, 0x6d93f761
+0, 86, 86, 1, 393216, 0xe95dc1ae
+0, 87, 87, 1, 393216, 0x3e561557
+0, 88, 88, 1, 393216, 0x0fa7a049
+0, 89, 89, 1, 393216, 0xf16afb95
+0, 90, 90, 1, 393216, 0xe53a2064
+0, 91, 91, 1, 393216, 0x57f046a4
+0, 92, 92, 1, 393216, 0xf6f16a0c
+0, 93, 93, 1, 393216, 0xcba0c8b0
+0, 94, 94, 1, 393216, 0x5bdbe522
+0, 95, 95, 1, 393216, 0x0fed0151
+0, 96, 96, 1, 393216, 0xbf86faf8
+0, 97, 97, 1, 393216, 0x39854c5f
+0, 98, 98, 1, 393216, 0xd9b7760a
+0, 99, 99, 1, 393216, 0x8edcc1d9
+0, 100, 100, 1, 393216, 0x44ae1435
+0, 101, 101, 1, 393216, 0xbc3d6d73
+0, 102, 102, 1, 393216, 0xedd82647
+0, 103, 103, 1, 393216, 0x1c2e5ce3
+0, 104, 104, 1, 393216, 0x04e29afe
+0, 105, 105, 1, 393216, 0xb191578e
+0, 106, 106, 1, 393216, 0x31d75a06
+0, 107, 107, 1, 393216, 0xfdb6c56e
+0, 108, 108, 1, 393216, 0xf528f484
+0, 109, 109, 1, 393216, 0x87af758e
+0, 110, 110, 1, 393216, 0xc8bdafb7
+0, 111, 111, 1, 393216, 0x573afe93
+0, 112, 112, 1, 393216, 0xb03cb8f5
+0, 113, 113, 1, 393216, 0x6e03ac71
+0, 114, 114, 1, 393216, 0xf919164e
+0, 115, 115, 1, 393216, 0x80059f3c
+0, 116, 116, 1, 393216, 0xf4ea0b1a
+0, 117, 117, 1, 393216, 0xe7720ffb
+0, 118, 118, 1, 393216, 0x1ec0cd56
+0, 119, 119, 1, 393216, 0x2bc8cf18
+0, 120, 120, 1, 393216, 0xe0bf17b5
+0, 121, 121, 1, 393216, 0x660247e1
+0, 122, 122, 1, 393216, 0xcf66f2a9
+0, 123, 123, 1, 393216, 0x5494d5ab
+0, 124, 124, 1, 393216, 0x2c02f2c4
+0, 125, 125, 1, 393216, 0x93fa3783
+0, 126, 126, 1, 393216, 0x4cc50633
+0, 127, 127, 1, 393216, 0x3f179386
+0, 128, 128, 1, 393216, 0x2bca9e1b
+0, 129, 129, 1, 393216, 0x3e4af867
+0, 130, 130, 1, 393216, 0x7e7df93c
+0, 131, 131, 1, 393216, 0x577e4fb0
+0, 132, 132, 1, 393216, 0x34487f0a
+0, 133, 133, 1, 393216, 0x0937bcfc
+0, 134, 134, 1, 393216, 0xa9e75a5e
+0, 135, 135, 1, 393216, 0xf7bc0c89
+0, 136, 136, 1, 393216, 0x06dacca6
+0, 137, 137, 1, 393216, 0x7baaa4bd
+0, 138, 138, 1, 393216, 0x95477f5f
+0, 139, 139, 1, 393216, 0x51117526
+0, 140, 140, 1, 393216, 0x69656d03
+0, 141, 141, 1, 393216, 0xcbd061bb
+0, 142, 142, 1, 393216, 0x8d1d5be2
+0, 143, 143, 1, 393216, 0x43e55930
+0, 144, 144, 1, 393216, 0xb56f5872
+0, 145, 145, 1, 393216, 0x09a255e9
+0, 146, 146, 1, 393216, 0xcaaa5456
+0, 147, 147, 1, 393216, 0xd267501f
+0, 148, 148, 1, 393216, 0x7bef4eca
+0, 149, 149, 1, 393216, 0x9aa94af3
+0, 150, 150, 1, 393216, 0xd39d4a29
+0, 151, 151, 1, 393216, 0x7a754960
+0, 152, 152, 1, 393216, 0x3f004921
+0, 153, 153, 1, 393216, 0x0f784ca8
+0, 154, 154, 1, 393216, 0x2a062c70
+0, 155, 155, 1, 393216, 0x114ef770
+0, 156, 156, 1, 393216, 0xfb7673bf
+0, 157, 157, 1, 393216, 0xbaea88f7
+0, 158, 158, 1, 393216, 0x6fdfe2ec
+0, 159, 159, 1, 393216, 0xb7b2b398
+0, 160, 160, 1, 393216, 0x14ba127e
+0, 161, 161, 1, 393216, 0x660b3041
+0, 162, 162, 1, 393216, 0xe3f3302a
+0, 163, 163, 1, 393216, 0x34c7f1c9
+0, 164, 164, 1, 393216, 0xa8257bf4
+0, 165, 165, 1, 393216, 0xd63fc649
+0, 166, 166, 1, 393216, 0xf8e5b79c
+0, 167, 167, 1, 393216, 0xa67b52ab
+0, 168, 168, 1, 393216, 0xef8f9c74
+0, 169, 169, 1, 393216, 0x6d3aa6b6
+0, 170, 170, 1, 393216, 0x8c174ee6
+0, 171, 171, 1, 393216, 0x2dfbc524
+0, 172, 172, 1, 393216, 0x7d0808b6
+0, 173, 173, 1, 393216, 0x6cbdf6f5
+0, 174, 174, 1, 393216, 0xfe39bc53
+0, 175, 175, 1, 393216, 0xa3d869b0
+0, 176, 176, 1, 393216, 0x09f00057
+0, 177, 177, 1, 393216, 0x6ba56343
+0, 178, 178, 1, 393216, 0xb696ca3e
+0, 179, 179, 1, 393216, 0x4eba0225
+0, 180, 180, 1, 393216, 0xdd45464b
+0, 181, 181, 1, 393216, 0x2909a9ea
+0, 182, 182, 1, 393216, 0x12aa3f85
+0, 183, 183, 1, 393216, 0x59421352
+0, 184, 184, 1, 393216, 0x57ea0313
+0, 185, 185, 1, 393216, 0x4e5f3a38
+0, 186, 186, 1, 393216, 0x55bc932d
+0, 187, 187, 1, 393216, 0x666ee55d
+0, 188, 188, 1, 393216, 0xb0f84a69
+0, 189, 189, 1, 393216, 0xad3ae63f
+0, 190, 190, 1, 393216, 0x970fd47d
+0, 191, 191, 1, 393216, 0x86c418e0
+0, 192, 192, 1, 393216, 0x52c9ce50
+0, 193, 193, 1, 393216, 0xd54c98c8
+0, 194, 194, 1, 393216, 0xb40e5fea
+0, 195, 195, 1, 393216, 0x2aa74875
+0, 196, 196, 1, 393216, 0x305b251e
+0, 197, 197, 1, 393216, 0xab8c0780
+0, 198, 198, 1, 393216, 0x0101dd0e
+0, 199, 199, 1, 393216, 0x23739cab
+0, 200, 200, 1, 393216, 0xf05196a0
+0, 201, 201, 1, 393216, 0x932d1e00
+0, 202, 202, 1, 393216, 0x932d1e00
+0, 203, 203, 1, 393216, 0x932d1e00
+0, 204, 204, 1, 393216, 0x932d1e00
+0, 205, 205, 1, 393216, 0x932d1e00
+0, 206, 206, 1, 393216, 0x932d1e00
+0, 207, 207, 1, 393216, 0x932d1e00
+0, 208, 208, 1, 393216, 0x932d1e00
+0, 209, 209, 1, 393216, 0x932d1e00
diff --git a/ffmpeg1/tests/ref/fate/rpza b/ffmpeg1/tests/ref/fate/rpza
new file mode 100644
index 0000000..a9ae3bb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/rpza
@@ -0,0 +1,31 @@
+#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/ffmpeg1/tests/ref/fate/rv30 b/ffmpeg1/tests/ref/fate/rv30
new file mode 100644
index 0000000..70db647
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/rv30
@@ -0,0 +1,110 @@
+#tb 0: 32768/982057
+0, 0, 0, 1, 126720, 0xcefaec47
+0, 1, 1, 1, 126720, 0xa416ece5
+0, 2, 2, 1, 126720, 0xa416ece5
+0, 3, 3, 1, 126720, 0xa416ece5
+0, 4, 4, 1, 126720, 0x60d6ed27
+0, 5, 5, 1, 126720, 0x259af497
+0, 6, 6, 1, 126720, 0x5e6ff4d7
+0, 7, 7, 1, 126720, 0xcc10f4b7
+0, 8, 8, 1, 126720, 0x763ab817
+0, 9, 9, 1, 126720, 0xe95fb8d7
+0, 10, 10, 1, 126720, 0xe2b1b917
+0, 11, 11, 1, 126720, 0x11abb8f7
+0, 12, 12, 1, 126720, 0x4b62b947
+0, 13, 13, 1, 126720, 0xcaf2bbb7
+0, 14, 14, 1, 126720, 0x2953bc37
+0, 15, 15, 1, 126720, 0x1dd9bbd7
+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, 0x4a9f897c
+0, 30, 30, 1, 126720, 0xd8fa050f
+0, 31, 31, 1, 126720, 0x5d06be59
+0, 32, 32, 1, 126720, 0xdc3e0837
+0, 33, 33, 1, 126720, 0xcac6da2b
+0, 34, 34, 1, 126720, 0x6672dfc9
+0, 35, 35, 1, 126720, 0x7491b176
+0, 36, 36, 1, 126720, 0xa9477df0
+0, 37, 37, 1, 126720, 0xe976c34f
+0, 38, 38, 1, 126720, 0xdb7ab0e2
+0, 39, 39, 1, 126720, 0x1b42db35
+0, 40, 40, 1, 126720, 0xc6e10f9f
+0, 41, 41, 1, 126720, 0x169d61b6
+0, 42, 42, 1, 126720, 0xc7623119
+0, 43, 43, 1, 126720, 0x5b9b7543
+0, 44, 44, 1, 126720, 0x68c27aca
+0, 45, 45, 1, 126720, 0xa0e4e1c9
+0, 46, 46, 1, 126720, 0xbbdae87e
+0, 47, 47, 1, 126720, 0xe67e00a1
+0, 48, 48, 1, 126720, 0x648ea605
+0, 49, 49, 1, 126720, 0x5becb718
+0, 50, 50, 1, 126720, 0xb79ab1da
+0, 51, 51, 1, 126720, 0x0d52d1dc
+0, 52, 52, 1, 126720, 0x1277b853
+0, 53, 53, 1, 126720, 0xc57cbc83
+0, 54, 54, 1, 126720, 0x2126bdc3
+0, 55, 55, 1, 126720, 0x4c1ef41f
+0, 56, 56, 1, 126720, 0x185f6a2c
+0, 57, 57, 1, 126720, 0xb2b5a7d3
+0, 58, 58, 1, 126720, 0x32d7a26d
+0, 59, 59, 1, 126720, 0x0bffd118
+0, 60, 60, 1, 126720, 0x2eed823a
+0, 61, 61, 1, 126720, 0xc4c0147c
+0, 62, 62, 1, 126720, 0x1f8bf8ac
+0, 63, 63, 1, 126720, 0xfcb715e8
+0, 64, 64, 1, 126720, 0xc3e9fa9c
+0, 65, 65, 1, 126720, 0x9ad8572c
+0, 66, 66, 1, 126720, 0x2800596d
+0, 67, 67, 1, 126720, 0x3caa5094
+0, 68, 68, 1, 126720, 0x6162e000
+0, 69, 69, 1, 126720, 0x18200f2c
+0, 70, 70, 1, 126720, 0x649e699f
+0, 71, 71, 1, 126720, 0x5f513367
+0, 72, 72, 1, 126720, 0x71fbf4a8
+0, 73, 73, 1, 126720, 0x5bff7b97
+0, 74, 74, 1, 126720, 0xbad453d4
+0, 75, 75, 1, 126720, 0x56e6161d
+0, 76, 76, 1, 126720, 0x524f2980
+0, 77, 77, 1, 126720, 0x0589405a
+0, 78, 78, 1, 126720, 0x5c264043
+0, 79, 79, 1, 126720, 0x2394696f
+0, 80, 80, 1, 126720, 0x1aa0cd15
+0, 81, 81, 1, 126720, 0xd6ec7840
+0, 82, 82, 1, 126720, 0xde5531f0
+0, 83, 83, 1, 126720, 0x03a42c3a
+0, 84, 84, 1, 126720, 0xbdee0efb
+0, 85, 85, 1, 126720, 0xa6012736
+0, 86, 86, 1, 126720, 0x448f5ae6
+0, 87, 87, 1, 126720, 0x8a2550c3
+0, 88, 88, 1, 126720, 0x143104e7
+0, 89, 89, 1, 126720, 0x75db363d
+0, 90, 90, 1, 126720, 0x906d2f9d
+0, 91, 91, 1, 126720, 0xfc7b30ab
+0, 92, 92, 1, 126720, 0xd3edaa62
+0, 93, 93, 1, 126720, 0x6267f3fc
+0, 94, 94, 1, 126720, 0x87b6c67f
+0, 95, 95, 1, 126720, 0x84da3b79
+0, 96, 96, 1, 126720, 0x72fbae15
+0, 97, 97, 1, 126720, 0xb8474a80
+0, 98, 98, 1, 126720, 0xbeae088b
+0, 99, 99, 1, 126720, 0x538b1a14
+0, 100, 100, 1, 126720, 0x07bbddcd
+0, 101, 101, 1, 126720, 0x807ddf8f
+0, 102, 102, 1, 126720, 0x325bb46d
+0, 103, 103, 1, 126720, 0xd80c2f2a
+0, 104, 104, 1, 126720, 0xfc1b0dec
+0, 105, 105, 1, 126720, 0x46068ebc
+0, 106, 106, 1, 126720, 0xcd987941
+0, 107, 107, 1, 126720, 0x52f37f2e
+0, 108, 108, 1, 126720, 0xc96931a2
diff --git a/ffmpeg1/tests/ref/fate/rv40 b/ffmpeg1/tests/ref/fate/rv40
new file mode 100644
index 0000000..6159859
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/rv40
@@ -0,0 +1,241 @@
+#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/ffmpeg1/tests/ref/fate/sanm b/ffmpeg1/tests/ref/fate/sanm
new file mode 100644
index 0000000..8b6f903
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sanm
@@ -0,0 +1,16 @@
+#tb 0: 66667/1000000
+0, 0, 0, 1, 921600, 0x00000000
+0, 1, 1, 1, 921600, 0x00000000
+0, 2, 2, 1, 921600, 0x00000000
+0, 3, 3, 1, 921600, 0x00000000
+0, 4, 4, 1, 921600, 0x00000000
+0, 5, 5, 1, 921600, 0x00000000
+0, 6, 6, 1, 921600, 0x00000000
+0, 7, 7, 1, 921600, 0x00000000
+0, 8, 8, 1, 921600, 0x00000000
+0, 9, 9, 1, 921600, 0x00000000
+0, 10, 10, 1, 921600, 0x0aa05443
+0, 11, 11, 1, 921600, 0x81d2a7fe
+0, 12, 12, 1, 921600, 0x769f303b
+0, 13, 13, 1, 921600, 0xcd68d0cd
+0, 14, 14, 1, 921600, 0x4cb4894a
diff --git a/ffmpeg1/tests/ref/fate/sha b/ffmpeg1/tests/ref/fate/sha
new file mode 100644
index 0000000..2da0694
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sha
@@ -0,0 +1,21 @@
+Testing SHA-160
+A9993E364706816ABA3E25717850C26C9CD0D89D
+84983E441C3BD26EBAAE4AA1F95129E5E54670F1
+34AA973CD4C4DAA4F61EEB2BDBAD27316534016F
+A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D
+84983E44 1C3BD26E BAAE4AA1 F95129E5 E54670F1
+34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F
+Testing SHA-224
+23097D223405D8228642A477BDA255B32AADBCE4BDA0B3F7E36C9DA7
+75388B16512776CC5DBA5DA1FD890150B0C6455CB4F58B1952522525
+20794655980C91D8BBB4C1EA97618A4BF03F42581948B2EE4EE7AD67
+23097d22 3405d822 8642a477 bda255b3 2aadbce4 bda0b3f7 e36c9da7
+75388b16 512776cc 5dba5da1 fd890150 b0c6455c b4f58b19 52522525
+20794655 980c91d8 bbb4c1ea 97618a4b f03f4258 1948b2ee 4ee7ad67
+Testing SHA-256
+BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD
+248D6A61D20638B8E5C026930C3E6039A33CE45964FF2167F6ECEDD419DB06C1
+CDC76E5C9914FB9281A1C7E284D73E67F1809A48A497200E046D39CCC7112CD0
+ba7816bf 8f01cfea 414140de 5dae2223 b00361a3 96177a9c b410ff61 f20015ad
+248d6a61 d20638b8 e5c02693 0c3e6039 a33ce459 64ff2167 f6ecedd4 19db06c1
+cdc76e5c 9914fb92 81a1c7e2 84d73e67 f1809a48 a497200e 046d39cc c7112cd0
diff --git a/ffmpeg1/tests/ref/fate/sierra-vmd-audio b/ffmpeg1/tests/ref/fate/sierra-vmd-audio
new file mode 100644
index 0000000..13d3567
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sierra-vmd-audio
@@ -0,0 +1,216 @@
+#tb 0: 1/22050
+0, 0, 0, 61740, 123480, 0x3a794c13
+0, 61740, 61740, 2205, 4410, 0x109d04e0
+0, 63945, 63945, 2205, 4410, 0x224d244f
+0, 66150, 66150, 2205, 4410, 0xbb72413d
+0, 68355, 68355, 2205, 4410, 0xaa5f5b86
+0, 70560, 70560, 2205, 4410, 0x94e7aea7
+0, 72765, 72765, 2205, 4410, 0xad497ca0
+0, 74970, 74970, 2205, 4410, 0x1de10c9e
+0, 77175, 77175, 2205, 4410, 0x9f55efa8
+0, 79380, 79380, 2205, 4410, 0x220a072a
+0, 81585, 81585, 2205, 4410, 0xa7dafb29
+0, 83790, 83790, 2205, 4410, 0xd5e29c7a
+0, 85995, 85995, 2205, 4410, 0xb8465006
+0, 88200, 88200, 2205, 4410, 0x518669c7
+0, 90405, 90405, 2205, 4410, 0xb5b5efca
+0, 92610, 92610, 2205, 4410, 0x8600015d
+0, 94815, 94815, 2205, 4410, 0xe2f68fe9
+0, 97020, 97020, 2205, 4410, 0x8d3458d9
+0, 99225, 99225, 2205, 4410, 0xf1ff4775
+0, 101430, 101430, 2205, 4410, 0x830f67c9
+0, 103635, 103635, 2205, 4410, 0x110e0bc1
+0, 105840, 105840, 2205, 4410, 0x71682f47
+0, 108045, 108045, 2205, 4410, 0x38119095
+0, 110250, 110250, 2205, 4410, 0xd2494db6
+0, 112455, 112455, 2205, 4410, 0x8b552509
+0, 114660, 114660, 2205, 4410, 0x71e52909
+0, 116865, 116865, 2205, 4410, 0x9f0a6f4d
+0, 119070, 119070, 2205, 4410, 0x901302f2
+0, 121275, 121275, 2205, 4410, 0x855d5222
+0, 123480, 123480, 2205, 4410, 0x324bb2fe
+0, 125685, 125685, 2205, 4410, 0xe85f583f
+0, 127890, 127890, 2205, 4410, 0x2cbc67c4
+0, 130095, 130095, 2205, 4410, 0xc82e6aa1
+0, 132300, 132300, 2205, 4410, 0xb9fc423c
+0, 134505, 134505, 2205, 4410, 0x6b9b4ef9
+0, 136710, 136710, 2205, 4410, 0x39290f10
+0, 138915, 138915, 2205, 4410, 0xad718eb4
+0, 141120, 141120, 2205, 4410, 0x82f463ac
+0, 143325, 143325, 2205, 4410, 0xfac87cac
+0, 145530, 145530, 2205, 4410, 0x9e8bcca7
+0, 147735, 147735, 2205, 4410, 0x52f79c99
+0, 149940, 149940, 2205, 4410, 0xf2d14de2
+0, 152145, 152145, 2205, 4410, 0x367f95e1
+0, 154350, 154350, 2205, 4410, 0x8bfac293
+0, 156555, 156555, 2205, 4410, 0x01ea5040
+0, 158760, 158760, 2205, 4410, 0x8ff5e212
+0, 160965, 160965, 2205, 4410, 0x93f32824
+0, 163170, 163170, 2205, 4410, 0x998f90dc
+0, 165375, 165375, 2205, 4410, 0x65231170
+0, 167580, 167580, 2205, 4410, 0xc79039a1
+0, 169785, 169785, 2205, 4410, 0x0b0e58bd
+0, 171990, 171990, 2205, 4410, 0xc24ab4fa
+0, 174195, 174195, 2205, 4410, 0xd3796a8e
+0, 176400, 176400, 2205, 4410, 0xa37f8295
+0, 178605, 178605, 2205, 4410, 0xb760fed7
+0, 180810, 180810, 2205, 4410, 0x05495a34
+0, 183015, 183015, 2205, 4410, 0x6f203437
+0, 185220, 185220, 2205, 4410, 0x71299402
+0, 187425, 187425, 2205, 4410, 0x72e7b346
+0, 189630, 189630, 2205, 4410, 0x879b0dae
+0, 191835, 191835, 2205, 4410, 0x041aa1bd
+0, 194040, 194040, 2205, 4410, 0x18a962e6
+0, 196245, 196245, 2205, 4410, 0x21d20539
+0, 198450, 198450, 2205, 4410, 0x8f449267
+0, 200655, 200655, 2205, 4410, 0xecdc01d6
+0, 202860, 202860, 2205, 4410, 0x458abd5a
+0, 205065, 205065, 2205, 4410, 0xa070ea63
+0, 207270, 207270, 2205, 4410, 0xc25b26ce
+0, 209475, 209475, 2205, 4410, 0x4d9237ca
+0, 211680, 211680, 2205, 4410, 0x748e1801
+0, 213885, 213885, 2205, 4410, 0xc96b69e6
+0, 216090, 216090, 2205, 4410, 0x6663186c
+0, 218295, 218295, 2205, 4410, 0x7f6d3081
+0, 220500, 220500, 2205, 4410, 0x1a0343b5
+0, 222705, 222705, 2205, 4410, 0xc48e338c
+0, 224910, 224910, 2205, 4410, 0x26fc03c8
+0, 227115, 227115, 2205, 4410, 0x69be7e2d
+0, 229320, 229320, 2205, 4410, 0x69a74da1
+0, 231525, 231525, 2205, 4410, 0x85bd2ab3
+0, 233730, 233730, 2205, 4410, 0xeff05426
+0, 235935, 235935, 2205, 4410, 0x292829e0
+0, 238140, 238140, 2205, 4410, 0x8f741798
+0, 240345, 240345, 2205, 4410, 0x6b9337e9
+0, 242550, 242550, 2205, 4410, 0xe4e1703f
+0, 244755, 244755, 2205, 4410, 0x043d6c35
+0, 246960, 246960, 2205, 4410, 0x3a8988e7
+0, 249165, 249165, 2205, 4410, 0x1fa7d2a9
+0, 251370, 251370, 2205, 4410, 0xe28799e3
+0, 253575, 253575, 2205, 4410, 0xc2df4470
+0, 255780, 255780, 2205, 4410, 0x694d0cf5
+0, 257985, 257985, 2205, 4410, 0x5aac2dcf
+0, 260190, 260190, 2205, 4410, 0x259fa2db
+0, 262395, 262395, 2205, 4410, 0xd16d6803
+0, 264600, 264600, 2205, 4410, 0xa4b3478a
+0, 266805, 266805, 2205, 4410, 0xdbe0443d
+0, 269010, 269010, 2205, 4410, 0x26c16119
+0, 271215, 271215, 2205, 4410, 0x0c06475c
+0, 273420, 273420, 2205, 4410, 0x6ffaba2d
+0, 275625, 275625, 2205, 4410, 0x5b287192
+0, 277830, 277830, 2205, 4410, 0xf2cf2651
+0, 280035, 280035, 2205, 4410, 0x3857673a
+0, 282240, 282240, 2205, 4410, 0x5b555feb
+0, 284445, 284445, 2205, 4410, 0x93f997af
+0, 286650, 286650, 2205, 4410, 0xb3ba8d35
+0, 288855, 288855, 2205, 4410, 0x66433944
+0, 291060, 291060, 2205, 4410, 0xf0005a5f
+0, 293265, 293265, 2205, 4410, 0xb948541f
+0, 295470, 295470, 2205, 4410, 0xc8f1b16f
+0, 297675, 297675, 2205, 4410, 0x7d4b7506
+0, 299880, 299880, 2205, 4410, 0xac723c55
+0, 302085, 302085, 2205, 4410, 0x2926fab5
+0, 304290, 304290, 2205, 4410, 0x31684995
+0, 306495, 306495, 2205, 4410, 0x35ebfca4
+0, 308700, 308700, 2205, 4410, 0x9cd42c18
+0, 310905, 310905, 2205, 4410, 0xd7ecd7b1
+0, 313110, 313110, 2205, 4410, 0x5e13c602
+0, 315315, 315315, 2205, 4410, 0xe955b5e3
+0, 317520, 317520, 2205, 4410, 0xefad19a1
+0, 319725, 319725, 2205, 4410, 0x435950de
+0, 321930, 321930, 2205, 4410, 0x9d624ebe
+0, 324135, 324135, 2205, 4410, 0x774a9158
+0, 326340, 326340, 2205, 4410, 0x8c41e66a
+0, 328545, 328545, 2205, 4410, 0x70112740
+0, 330750, 330750, 2205, 4410, 0x55abc7a2
+0, 332955, 332955, 2205, 4410, 0x0ec3183c
+0, 335160, 335160, 2205, 4410, 0x54609c56
+0, 337365, 337365, 2205, 4410, 0x60d49f92
+0, 339570, 339570, 2205, 4410, 0x5fb061c8
+0, 341775, 341775, 2205, 4410, 0x6e119c98
+0, 343980, 343980, 2205, 4410, 0x3f39fc69
+0, 346185, 346185, 2205, 4410, 0xef466d0e
+0, 348390, 348390, 2205, 4410, 0xf4cb6fe1
+0, 350595, 350595, 2205, 4410, 0xc4434439
+0, 352800, 352800, 2205, 4410, 0xd02329d2
+0, 355005, 355005, 2205, 4410, 0x216cffaf
+0, 357210, 357210, 2205, 4410, 0x7e59e8c1
+0, 359415, 359415, 2205, 4410, 0xc7c3346d
+0, 361620, 361620, 2205, 4410, 0x5b3723af
+0, 363825, 363825, 2205, 4410, 0x76097270
+0, 366030, 366030, 2205, 4410, 0xae39a233
+0, 368235, 368235, 2205, 4410, 0x686a471c
+0, 370440, 370440, 2205, 4410, 0x3af3c5e0
+0, 372645, 372645, 2205, 4410, 0x11ac711e
+0, 374850, 374850, 2205, 4410, 0xcd8da8ce
+0, 377055, 377055, 2205, 4410, 0x21296e3a
+0, 379260, 379260, 2205, 4410, 0x77168188
+0, 381465, 381465, 2205, 4410, 0x5fcf59cd
+0, 383670, 383670, 2205, 4410, 0x390c8717
+0, 385875, 385875, 2205, 4410, 0x3d5d5b3c
+0, 388080, 388080, 2205, 4410, 0x3b8f13d3
+0, 390285, 390285, 2205, 4410, 0x5b002c2f
+0, 392490, 392490, 2205, 4410, 0x9e1d2b08
+0, 394695, 394695, 2205, 4410, 0x69454ebd
+0, 396900, 396900, 2205, 4410, 0x62a54bec
+0, 399105, 399105, 2205, 4410, 0x4d231fdb
+0, 401310, 401310, 2205, 4410, 0x65624ff7
+0, 403515, 403515, 2205, 4410, 0x6fc66932
+0, 405720, 405720, 2205, 4410, 0x23200cf6
+0, 407925, 407925, 2205, 4410, 0xf8033122
+0, 410130, 410130, 2205, 4410, 0x0fce0744
+0, 412335, 412335, 2205, 4410, 0x9302683e
+0, 414540, 414540, 2205, 4410, 0xd2380245
+0, 416745, 416745, 2205, 4410, 0x482e0872
+0, 418950, 418950, 2205, 4410, 0xe98e6461
+0, 421155, 421155, 2205, 4410, 0x1db404e3
+0, 423360, 423360, 2205, 4410, 0x47a26d45
+0, 425565, 425565, 2205, 4410, 0x449a348a
+0, 427770, 427770, 2205, 4410, 0xee874f84
+0, 429975, 429975, 2205, 4410, 0xc4ecf965
+0, 432180, 432180, 2205, 4410, 0xcc450bc8
+0, 434385, 434385, 2205, 4410, 0xb18d044b
+0, 436590, 436590, 2205, 4410, 0x895435e8
+0, 438795, 438795, 2205, 4410, 0x57e7574e
+0, 441000, 441000, 2205, 4410, 0x8041ad3d
+0, 443205, 443205, 2205, 4410, 0x853d1616
+0, 445410, 445410, 2205, 4410, 0xa11bb32b
+0, 447615, 447615, 2205, 4410, 0xe10ea0de
+0, 449820, 449820, 2205, 4410, 0xdf2ee328
+0, 452025, 452025, 2205, 4410, 0xd5a6dcae
+0, 454230, 454230, 2205, 4410, 0xd176c00b
+0, 456435, 456435, 2205, 4410, 0x9cd6bcf3
+0, 458640, 458640, 2205, 4410, 0x2569690a
+0, 460845, 460845, 2205, 4410, 0x6824aa1d
+0, 463050, 463050, 2205, 4410, 0xa9110afa
+0, 465255, 465255, 2205, 4410, 0x115c25be
+0, 467460, 467460, 2205, 4410, 0x1100f085
+0, 469665, 469665, 2205, 4410, 0x00000000
+0, 471870, 471870, 2205, 4410, 0x00000000
+0, 474075, 474075, 2205, 4410, 0x00000000
+0, 476280, 476280, 2205, 4410, 0x00000000
+0, 478485, 478485, 2205, 4410, 0x00000000
+0, 480690, 480690, 2205, 4410, 0x00000000
+0, 482895, 482895, 2205, 4410, 0x00000000
+0, 485100, 485100, 2205, 4410, 0x00000000
+0, 487305, 487305, 2205, 4410, 0x00000000
+0, 489510, 489510, 2205, 4410, 0x00000000
+0, 491715, 491715, 2205, 4410, 0x00000000
+0, 493920, 493920, 2205, 4410, 0x00000000
+0, 496125, 496125, 2205, 4410, 0x00000000
+0, 498330, 498330, 2205, 4410, 0x00000000
+0, 500535, 500535, 2205, 4410, 0x00000000
+0, 502740, 502740, 2205, 4410, 0x00000000
+0, 504945, 504945, 2205, 4410, 0x00000000
+0, 507150, 507150, 2205, 4410, 0x00000000
+0, 509355, 509355, 2205, 4410, 0x00000000
+0, 511560, 511560, 2205, 4410, 0x00000000
+0, 513765, 513765, 2205, 4410, 0x00000000
+0, 515970, 515970, 2205, 4410, 0x00000000
+0, 518175, 518175, 2205, 4410, 0x00000000
+0, 520380, 520380, 2205, 4410, 0x00000000
+0, 522585, 522585, 2205, 4410, 0x00000000
+0, 524790, 524790, 2205, 4410, 0x00000000
+0, 526995, 526995, 2205, 4410, 0x00000000
+0, 529200, 529200, 2205, 4410, 0x00000000
+0, 531405, 531405, 2205, 4410, 0x00000000
diff --git a/ffmpeg1/tests/ref/fate/sierra-vmd-video b/ffmpeg1/tests/ref/fate/sierra-vmd-video
new file mode 100644
index 0000000..5b9dde1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sierra-vmd-video
@@ -0,0 +1,118 @@
+#tb 0: 1/10
+0, 0, 0, 1, 230400, 0x0224ab01
+0, 1, 1, 1, 230400, 0x449e4d81
+0, 2, 2, 1, 230400, 0x3e15e07a
+0, 3, 3, 1, 230400, 0xdabe4172
+0, 4, 4, 1, 230400, 0x0947b7db
+0, 5, 5, 1, 230400, 0x934e243b
+0, 6, 6, 1, 230400, 0x6b5c5b6c
+0, 7, 7, 1, 230400, 0x4bf7bbb5
+0, 8, 8, 1, 230400, 0x423eec8e
+0, 9, 9, 1, 230400, 0x63663b5e
+0, 10, 10, 1, 230400, 0x9c258a67
+0, 11, 11, 1, 230400, 0x1c92b6e0
+0, 12, 12, 1, 230400, 0xdd0a0e28
+0, 13, 13, 1, 230400, 0x51d64af1
+0, 14, 14, 1, 230400, 0x5776ac12
+0, 15, 15, 1, 230400, 0x49070132
+0, 16, 16, 1, 230400, 0xa59635ab
+0, 17, 17, 1, 230400, 0xb1f99504
+0, 18, 18, 1, 230400, 0x61fac725
+0, 19, 19, 1, 230400, 0xc32c28d5
+0, 20, 20, 1, 230400, 0x2b7a91d6
+0, 21, 21, 1, 230400, 0x917be717
+0, 22, 22, 1, 230400, 0xd3c5a2ff
+0, 23, 23, 1, 230400, 0x0678a707
+0, 24, 24, 1, 230400, 0x122504e6
+0, 25, 25, 1, 230400, 0x76aebdae
+0, 26, 26, 1, 230400, 0x81357545
+0, 27, 27, 1, 230400, 0x38baeebd
+0, 28, 28, 1, 230400, 0x1c5c44d4
+0, 29, 29, 1, 230400, 0x60e189cc
+0, 30, 30, 1, 230400, 0xb1f4381c
+0, 31, 31, 1, 230400, 0xb5048fed
+0, 32, 32, 1, 230400, 0xc947c30e
+0, 33, 33, 1, 230400, 0xe8e31c07
+0, 34, 34, 1, 230400, 0x6d49dd02
+0, 35, 35, 1, 230400, 0x293e15d3
+0, 36, 36, 1, 230400, 0x354d792e
+0, 37, 37, 1, 230400, 0x35468780
+0, 38, 38, 1, 230400, 0x365d3991
+0, 39, 39, 1, 230400, 0xc9debef2
+0, 40, 40, 1, 230400, 0x4c4634c2
+0, 41, 41, 1, 230400, 0x347c2dca
+0, 42, 42, 1, 230400, 0x1efa0aaa
+0, 43, 43, 1, 230400, 0xa79a0b5a
+0, 44, 44, 1, 230400, 0xfdb2dcdb
+0, 45, 45, 1, 230400, 0x42dbea33
+0, 46, 46, 1, 230400, 0x2a207e43
+0, 47, 47, 1, 230400, 0x86573783
+0, 48, 48, 1, 230400, 0xc3968473
+0, 49, 49, 1, 230400, 0x8f62a7b4
+0, 50, 50, 1, 230400, 0x5a2e3073
+0, 51, 51, 1, 230400, 0xd24f5e2c
+0, 52, 52, 1, 230400, 0x1df3c67d
+0, 53, 53, 1, 230400, 0xe4fd884d
+0, 57, 57, 1, 230400, 0x9a228555
+0, 58, 58, 1, 230400, 0x9eba8ed5
+0, 59, 59, 1, 230400, 0x3d808a3d
+0, 60, 60, 1, 230400, 0xf57e866d
+0, 61, 61, 1, 230400, 0x85f594f5
+0, 62, 62, 1, 230400, 0xb09f99dd
+0, 63, 63, 1, 230400, 0x2b368475
+0, 64, 64, 1, 230400, 0xa2417afd
+0, 65, 65, 1, 230400, 0x590b709d
+0, 66, 66, 1, 230400, 0x5d617705
+0, 67, 67, 1, 230400, 0xabf981ad
+0, 68, 68, 1, 230400, 0x5a8590cd
+0, 69, 69, 1, 230400, 0x1bff853d
+0, 70, 70, 1, 230400, 0x71d08055
+0, 71, 71, 1, 230400, 0x2ebd817d
+0, 72, 72, 1, 230400, 0x6e838255
+0, 73, 73, 1, 230400, 0x043984cd
+0, 74, 74, 1, 230400, 0x7ff18495
+0, 75, 75, 1, 230400, 0xa43b8385
+0, 76, 76, 1, 230400, 0x72b5825d
+0, 77, 77, 1, 230400, 0x3a178085
+0, 78, 78, 1, 230400, 0x67748245
+0, 79, 79, 1, 230400, 0xeddf81d5
+0, 80, 80, 1, 230400, 0x8b088665
+0, 81, 81, 1, 230400, 0x6c408e15
+0, 82, 82, 1, 230400, 0x81f196dd
+0, 83, 83, 1, 230400, 0xab9f953d
+0, 84, 84, 1, 230400, 0xa5f69795
+0, 85, 85, 1, 230400, 0xa772950d
+0, 86, 86, 1, 230400, 0x6a5596d5
+0, 87, 87, 1, 230400, 0x1355958d
+0, 88, 88, 1, 230400, 0x4134981d
+0, 89, 89, 1, 230400, 0x8b929515
+0, 90, 90, 1, 230400, 0x482f95c5
+0, 91, 91, 1, 230400, 0x7a9795d5
+0, 92, 92, 1, 230400, 0x21c29abd
+0, 93, 93, 1, 230400, 0x9ae6a475
+0, 94, 94, 1, 230400, 0x3734aee5
+0, 95, 95, 1, 230400, 0xa0a1b365
+0, 96, 96, 1, 230400, 0x2dcab1c5
+0, 97, 97, 1, 230400, 0x9c8b6c44
+0, 98, 98, 1, 230400, 0x5da75feb
+0, 99, 99, 1, 230400, 0x4d02f8e3
+0, 100, 100, 1, 230400, 0x66824f3a
+0, 101, 101, 1, 230400, 0x0c9257e2
+0, 102, 102, 1, 230400, 0xb2927092
+0, 103, 103, 1, 230400, 0xb5dc6e9a
+0, 104, 104, 1, 230400, 0x6e567bc6
+0, 105, 105, 1, 230400, 0xbf9e0f7a
+0, 106, 106, 1, 230400, 0xb16f684a
+0, 107, 107, 1, 230400, 0xf9e55e81
+0, 108, 108, 1, 230400, 0xd8d0bcba
+0, 109, 109, 1, 230400, 0x44720ac0
+0, 110, 110, 1, 230400, 0x7d4c2058
+0, 113, 113, 1, 230400, 0xb0973eb9
+0, 114, 114, 1, 230400, 0x405a13ce
+0, 115, 115, 1, 230400, 0x6422f00a
+0, 116, 116, 1, 230400, 0x924b6c1e
+0, 145, 145, 1, 230400, 0xcf7809c0
+0, 146, 146, 1, 230400, 0x883a3863
+0, 147, 147, 1, 230400, 0x6adc9e03
+0, 148, 148, 1, 230400, 0x4f5ab7a8
+0, 214, 214, 1, 230400, 0xdc0aab94
diff --git a/ffmpeg1/tests/ref/fate/siff-demux b/ffmpeg1/tests/ref/fate/siff-demux
new file mode 100644
index 0000000..692e504
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/siff-demux
@@ -0,0 +1,112 @@
+#tb 0: 1/12
+#tb 1: 1/22050
+0, 0, 0, 1, 15152, 0x14fc0f1f
+1, 0, 0, 22050, 22050, 0xa7d60d27
+0, 1, 1, 1, 15344, 0x31614bd7
+0, 2, 2, 1, 15163, 0x88c46248
+0, 3, 3, 1, 15152, 0x43c9c0e6
+0, 4, 4, 1, 15341, 0x813f6f01
+0, 5, 5, 1, 15152, 0x7598d01c
+0, 6, 6, 1, 15152, 0x40b5cdb1
+0, 7, 7, 1, 15347, 0xe061c843
+0, 8, 8, 1, 15159, 0x2e3c2242
+0, 9, 9, 1, 15151, 0x7201abc5
+0, 10, 10, 1, 15346, 0xeb5a349e
+0, 11, 11, 1, 15154, 0xda9907c9
+0, 12, 12, 1, 15159, 0x8d4d63b0
+1, 22050, 22050, 22050, 22050, 0xeb11185c
+0, 13, 13, 1, 15337, 0xd988436d
+0, 14, 14, 1, 15162, 0x0b495da7
+0, 15, 15, 1, 15164, 0xd8837439
+0, 16, 16, 1, 15339, 0x7ad372cc
+0, 17, 17, 1, 15161, 0xc45d4590
+0, 18, 18, 1, 15159, 0x5bdd9801
+0, 19, 19, 1, 15335, 0x8e17c83e
+0, 20, 20, 1, 15160, 0x5cdbdc04
+0, 21, 21, 1, 15157, 0xf480a643
+0, 22, 22, 1, 15346, 0x0c61b206
+0, 23, 23, 1, 15160, 0x05d9acfd
+0, 24, 24, 1, 15158, 0xebdc3ac4
+1, 44100, 44100, 22050, 22050, 0xd6dc0e17
+0, 25, 25, 1, 15334, 0xb51fd1b9
+0, 26, 26, 1, 15152, 0x81f74e5c
+0, 27, 27, 1, 15161, 0xafeca32c
+0, 28, 28, 1, 15347, 0x8f5e5874
+0, 29, 29, 1, 15157, 0xdeff353c
+0, 30, 30, 1, 15160, 0x93a19aa0
+0, 31, 31, 1, 15347, 0x94224071
+0, 32, 32, 1, 15153, 0x9982aff5
+0, 33, 33, 1, 15164, 0x044bcf2b
+0, 34, 34, 1, 15347, 0x40aca6e9
+0, 35, 35, 1, 15160, 0xf820e2c7
+0, 36, 36, 1, 15154, 0x457832b5
+1, 66150, 66150, 22050, 22050, 0x020412c4
+0, 37, 37, 1, 15334, 0xbb1704f0
+0, 38, 38, 1, 15156, 0xc0672ed1
+0, 39, 39, 1, 15159, 0x9a82c7c1
+0, 40, 40, 1, 15338, 0x03857aae
+0, 41, 41, 1, 15158, 0xe6177548
+0, 42, 42, 1, 15159, 0xf8ecafc4
+0, 43, 43, 1, 15345, 0x0a10882e
+0, 44, 44, 1, 15161, 0xec4339fb
+0, 45, 45, 1, 15157, 0x071935a2
+0, 46, 46, 1, 15340, 0x68aad418
+0, 47, 47, 1, 15151, 0x891bc3fe
+0, 48, 48, 1, 15153, 0xf522e54c
+1, 88200, 88200, 22050, 22050, 0x5d9606ae
+0, 49, 49, 1, 15346, 0x5a018842
+0, 50, 50, 1, 15164, 0x6842ac50
+0, 51, 51, 1, 15156, 0x32369159
+0, 52, 52, 1, 15347, 0xf5be31aa
+0, 53, 53, 1, 15157, 0xd2da28bd
+0, 54, 54, 1, 15152, 0x389feda6
+0, 55, 55, 1, 15345, 0x69187603
+0, 56, 56, 1, 15154, 0x5dc60365
+0, 57, 57, 1, 15159, 0x8c811193
+0, 58, 58, 1, 15344, 0x3db4bf13
+0, 59, 59, 1, 15156, 0xf729ebe1
+0, 60, 60, 1, 15162, 0xf10a4ce5
+1, 110250, 110250, 22050, 22050, 0x08171bca
+0, 61, 61, 1, 15345, 0x749b0604
+0, 62, 62, 1, 15160, 0xfe3bbbce
+0, 63, 63, 1, 15160, 0x6dcc4b85
+0, 64, 64, 1, 15337, 0xab87dd97
+0, 65, 65, 1, 15163, 0x1ce60db8
+0, 66, 66, 1, 15164, 0xfc4a2002
+0, 67, 67, 1, 15345, 0x9108e072
+0, 68, 68, 1, 15153, 0x83fc9055
+0, 69, 69, 1, 15155, 0xa1101e1a
+0, 70, 70, 1, 15343, 0x6418f0e9
+0, 71, 71, 1, 15157, 0x8c743049
+0, 72, 72, 1, 15153, 0x9c0e33eb
+1, 132300, 132300, 22050, 22050, 0xd43b0cf9
+0, 73, 73, 1, 15337, 0x64bae0b6
+0, 74, 74, 1, 15162, 0x5f6b91d5
+0, 75, 75, 1, 15162, 0x44e5dd3d
+0, 76, 76, 1, 15342, 0x968dc44c
+0, 77, 77, 1, 15158, 0x0e706c4d
+0, 78, 78, 1, 15153, 0xa7d2199a
+0, 79, 79, 1, 15345, 0x834d0f2e
+0, 80, 80, 1, 15163, 0x3d5d38c3
+0, 81, 81, 1, 15151, 0xf7d49515
+0, 82, 82, 1, 15337, 0x5f362f2a
+0, 83, 83, 1, 15162, 0xea87d814
+0, 84, 84, 1, 15164, 0xeb0a2662
+1, 154350, 154350, 22050, 22050, 0x486d1bc2
+0, 85, 85, 1, 15340, 0x772109e6
+0, 86, 86, 1, 15156, 0x9459cda5
+0, 87, 87, 1, 15152, 0x4f174e2d
+0, 88, 88, 1, 15343, 0x10d42a59
+0, 89, 89, 1, 15162, 0xd65ec2ec
+0, 90, 90, 1, 15156, 0x1e382319
+0, 91, 91, 1, 15335, 0xec904c2a
+0, 92, 92, 1, 15161, 0x56d49e44
+0, 93, 93, 1, 15154, 0x51d02cd0
+0, 94, 94, 1, 15340, 0xec3e14ee
+0, 95, 95, 1, 15160, 0xe43b5305
+0, 96, 96, 1, 15156, 0x8f2876a5
+1, 176400, 176400, 22050, 22050, 0x5c5508d3
+0, 97, 97, 1, 15340, 0xb26a9059
+0, 98, 98, 1, 15156, 0xf9570ec0
+0, 99, 99, 1, 15151, 0x862ffa1f
+1, 198450, 198450, 1984, 1984, 0x9cb4dfb7
diff --git a/ffmpeg1/tests/ref/fate/smacker-audio b/ffmpeg1/tests/ref/fate/smacker-audio
new file mode 100644
index 0000000..442f479
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/smacker-audio
@@ -0,0 +1,87 @@
+#tb 0: 1/22050
+0, 0, 0, 23620, 47240, 0x9974897c
+0, 23620, 23620, 1564, 3128, 0x7e4064b4
+0, 25184, 25184, 1564, 3128, 0x80883301
+0, 26748, 26748, 1568, 3136, 0x2ad2d341
+0, 28316, 28316, 1564, 3128, 0xda8468e3
+0, 29880, 29880, 1568, 3136, 0x9d6f6cdf
+0, 31448, 31448, 1564, 3128, 0x1aaa64b5
+0, 33012, 33012, 1564, 3128, 0x9182728b
+0, 34576, 34576, 1568, 3136, 0xfa8e17b3
+0, 36144, 36144, 1564, 3128, 0x0dc3c1cf
+0, 37708, 37708, 1568, 3136, 0x0109639d
+0, 39276, 39276, 1564, 3128, 0x6d8a12d9
+0, 40840, 40840, 1564, 3128, 0x4b9a9597
+0, 42404, 42404, 1568, 3136, 0x9112710e
+0, 43972, 43972, 1564, 3128, 0x8cccf522
+0, 45536, 45536, 1564, 3128, 0x6594bbf3
+0, 47100, 47100, 1568, 3136, 0xd878a7d5
+0, 48668, 48668, 1564, 3128, 0xaa6e3905
+0, 50232, 50232, 1568, 3136, 0x2a062e04
+0, 51800, 51800, 1564, 3128, 0x84e4006a
+0, 53364, 53364, 1564, 3128, 0x85183633
+0, 54928, 54928, 1568, 3136, 0xb62d4b02
+0, 56496, 56496, 1564, 3128, 0xe209462a
+0, 58060, 58060, 1568, 3136, 0x57c4824b
+0, 59628, 59628, 1564, 3128, 0x664a9163
+0, 61192, 61192, 1564, 3128, 0xb4287874
+0, 62756, 62756, 1568, 3136, 0xde626885
+0, 64324, 64324, 1564, 3128, 0x919763c2
+0, 65888, 65888, 1564, 3128, 0xa4f664e1
+0, 67452, 67452, 1568, 3136, 0xa0bab0d4
+0, 69020, 69020, 1564, 3128, 0xe938939c
+0, 70584, 70584, 1568, 3136, 0x3679bfc7
+0, 72152, 72152, 1564, 3128, 0xc96c55c3
+0, 73716, 73716, 1564, 3128, 0x119114d6
+0, 75280, 75280, 1568, 3136, 0x42f3800f
+0, 76848, 76848, 1564, 3128, 0x4250c4ad
+0, 78412, 78412, 1568, 3136, 0x5cdd4925
+0, 79980, 79980, 1564, 3128, 0xa4c12360
+0, 81544, 81544, 1564, 3128, 0x849f48de
+0, 83108, 83108, 1568, 3136, 0x6acd8ff9
+0, 84676, 84676, 1564, 3128, 0xb2758556
+0, 86240, 86240, 1564, 3128, 0x10f2fcb1
+0, 87804, 87804, 1568, 3136, 0xf0f02b23
+0, 89372, 89372, 1564, 3128, 0x64f759c6
+0, 90936, 90936, 1568, 3136, 0x7ec075e3
+0, 92504, 92504, 1564, 3128, 0xf981d51e
+0, 94068, 94068, 1564, 3128, 0xc622e8b9
+0, 95632, 95632, 1568, 3136, 0xf632e2f8
+0, 97200, 97200, 1564, 3128, 0xda561864
+0, 98764, 98764, 1568, 3136, 0x14d2e888
+0, 100332, 100332, 1564, 3128, 0x015bb869
+0, 101896, 101896, 1564, 3128, 0xedb1fb62
+0, 103460, 103460, 1568, 3136, 0xe0560c41
+0, 105028, 105028, 1564, 3128, 0x14773c9a
+0, 106592, 106592, 1568, 3136, 0x850f1c82
+0, 108160, 108160, 1564, 3128, 0xb0bd5347
+0, 109724, 109724, 1564, 3128, 0x8f82edbf
+0, 111288, 111288, 1568, 3136, 0x493abee2
+0, 112856, 112856, 1564, 3128, 0xf5daff3f
+0, 114420, 114420, 1564, 3128, 0x78ad2690
+0, 115984, 115984, 1568, 3136, 0x490ebafc
+0, 117552, 117552, 1564, 3128, 0x70333fd2
+0, 119116, 119116, 1568, 3136, 0x8cb1c350
+0, 120684, 120684, 1564, 3128, 0x8bd057cb
+0, 122248, 122248, 1564, 3128, 0x161b3dbc
+0, 123812, 123812, 1568, 3136, 0xb47fb88a
+0, 125380, 125380, 1564, 3128, 0x474b381e
+0, 126944, 126944, 1568, 3136, 0x07c519bb
+0, 128512, 128512, 1564, 3128, 0x15b916c8
+0, 130076, 130076, 1564, 3128, 0x0ed7f6fb
+0, 131640, 131640, 1568, 3136, 0x54d6397b
+0, 133208, 133208, 1564, 3128, 0x437242bb
+0, 134772, 134772, 1564, 3128, 0x38f05c4d
+0, 136336, 136336, 1568, 3136, 0x5d000e59
+0, 137904, 137904, 1564, 3128, 0xdeab2d04
+0, 139468, 139468, 1568, 3136, 0x77de6880
+0, 141036, 141036, 1564, 3128, 0xbc87ef25
+0, 142600, 142600, 1564, 3128, 0xc1638ade
+0, 144164, 144164, 1568, 3136, 0xcfb64a5f
+0, 145732, 145732, 1564, 3128, 0x90b1b826
+0, 147296, 147296, 1568, 3136, 0x00000000
+0, 148864, 148864, 1564, 3128, 0x00000000
+0, 150428, 150428, 1564, 3128, 0x00000000
+0, 151992, 151992, 1568, 3136, 0x00000000
+0, 153560, 153560, 1564, 3128, 0x00000000
+0, 155124, 155124, 1428, 2856, 0x00000000
diff --git a/ffmpeg1/tests/ref/fate/smacker-video b/ffmpeg1/tests/ref/fate/smacker-video
new file mode 100644
index 0000000..8bd3071
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/smacker-video
@@ -0,0 +1,101 @@
+#tb 0: 71/1000
+0, 0, 0, 1, 192000, 0x8926d7fc
+0, 1, 1, 1, 192000, 0x2506d384
+0, 2, 2, 1, 192000, 0x9a8dc93a
+0, 3, 3, 1, 192000, 0x4badb7f2
+0, 4, 4, 1, 192000, 0xc1fc9631
+0, 5, 5, 1, 192000, 0xfc906592
+0, 6, 6, 1, 192000, 0xeddd28e2
+0, 7, 7, 1, 192000, 0xeee0dcf5
+0, 8, 8, 1, 192000, 0x76798c91
+0, 9, 9, 1, 192000, 0x8a034c1b
+0, 10, 10, 1, 192000, 0x4df3127c
+0, 11, 11, 1, 192000, 0x2eefd36f
+0, 12, 12, 1, 192000, 0x58a2a1d6
+0, 13, 13, 1, 192000, 0x1a3d7971
+0, 14, 14, 1, 192000, 0xa1a65bd5
+0, 15, 15, 1, 192000, 0x344957b9
+0, 16, 16, 1, 192000, 0xe23b5f4e
+0, 17, 17, 1, 192000, 0xb5c2710b
+0, 18, 18, 1, 192000, 0x7a25938f
+0, 19, 19, 1, 192000, 0x0a84e4c9
+0, 20, 20, 1, 192000, 0x94209b0d
+0, 21, 21, 1, 192000, 0xf940e51f
+0, 22, 22, 1, 192000, 0xb9fdec42
+0, 23, 23, 1, 192000, 0x7b04a376
+0, 24, 24, 1, 192000, 0x5fe0026b
+0, 25, 25, 1, 192000, 0x775aca39
+0, 26, 26, 1, 192000, 0xae14fb32
+0, 27, 27, 1, 192000, 0x661106e5
+0, 28, 28, 1, 192000, 0xe8658dbf
+0, 29, 29, 1, 192000, 0x5359f0f9
+0, 30, 30, 1, 192000, 0xc1ec80f4
+0, 31, 31, 1, 192000, 0xca53806b
+0, 32, 32, 1, 192000, 0xf0766b2e
+0, 33, 33, 1, 192000, 0x39962da8
+0, 34, 34, 1, 192000, 0x4171c37f
+0, 35, 35, 1, 192000, 0x3abf3b46
+0, 36, 36, 1, 192000, 0xecc68313
+0, 37, 37, 1, 192000, 0xea339baf
+0, 38, 38, 1, 192000, 0x616b8f16
+0, 39, 39, 1, 192000, 0xf77a8581
+0, 40, 40, 1, 192000, 0xb315678b
+0, 41, 41, 1, 192000, 0x0a4a5218
+0, 42, 42, 1, 192000, 0x98802be4
+0, 43, 43, 1, 192000, 0xa2f0fd94
+0, 44, 44, 1, 192000, 0x6671c84f
+0, 45, 45, 1, 192000, 0x38327e31
+0, 46, 46, 1, 192000, 0xb85d3e08
+0, 47, 47, 1, 192000, 0xdc69eba9
+0, 48, 48, 1, 192000, 0x8955a0b3
+0, 49, 49, 1, 192000, 0x714a548b
+0, 50, 50, 1, 192000, 0xc0471de9
+0, 51, 51, 1, 192000, 0x2e16e039
+0, 52, 52, 1, 192000, 0x9fa4b033
+0, 53, 53, 1, 192000, 0x4a0f9402
+0, 54, 54, 1, 192000, 0x1f3e6843
+0, 55, 55, 1, 192000, 0x31774850
+0, 56, 56, 1, 192000, 0x9d5336a2
+0, 57, 57, 1, 192000, 0xf7de27a2
+0, 58, 58, 1, 192000, 0x98c717ce
+0, 59, 59, 1, 192000, 0x615b10b8
+0, 60, 60, 1, 192000, 0xd5bc0e7e
+0, 61, 61, 1, 192000, 0xd5bc0e7e
+0, 62, 62, 1, 192000, 0xd5bc0e7e
+0, 63, 63, 1, 192000, 0xd5bc0e7e
+0, 64, 64, 1, 192000, 0xd5bc0e7e
+0, 65, 65, 1, 192000, 0xd5bc0e7e
+0, 66, 66, 1, 192000, 0xd5bc0e7e
+0, 67, 67, 1, 192000, 0xd5bc0e7e
+0, 68, 68, 1, 192000, 0xd5bc0e7e
+0, 69, 69, 1, 192000, 0xd5bc0e7e
+0, 70, 70, 1, 192000, 0xd5bc0e7e
+0, 71, 71, 1, 192000, 0xd5bc0e7e
+0, 72, 72, 1, 192000, 0xd5bc0e7e
+0, 73, 73, 1, 192000, 0xd5bc0e7e
+0, 74, 74, 1, 192000, 0xd5bc0e7e
+0, 75, 75, 1, 192000, 0xd5bc0e7e
+0, 76, 76, 1, 192000, 0xd5bc0e7e
+0, 77, 77, 1, 192000, 0xd5bc0e7e
+0, 78, 78, 1, 192000, 0xd5bc0e7e
+0, 79, 79, 1, 192000, 0xd5bc0e7e
+0, 80, 80, 1, 192000, 0xd5bc0e7e
+0, 81, 81, 1, 192000, 0xd5bc0e7e
+0, 82, 82, 1, 192000, 0xd5bc0e7e
+0, 83, 83, 1, 192000, 0xd5bc0e7e
+0, 84, 84, 1, 192000, 0xd5bc0e7e
+0, 85, 85, 1, 192000, 0xd5bc0e7e
+0, 86, 86, 1, 192000, 0xd5bc0e7e
+0, 87, 87, 1, 192000, 0xd5bc0e7e
+0, 88, 88, 1, 192000, 0xd5bc0e7e
+0, 89, 89, 1, 192000, 0xd5bc0e7e
+0, 90, 90, 1, 192000, 0xd5bc0e7e
+0, 91, 91, 1, 192000, 0xd5bc0e7e
+0, 92, 92, 1, 192000, 0xd5bc0e7e
+0, 93, 93, 1, 192000, 0xd5bc0e7e
+0, 94, 94, 1, 192000, 0xd5bc0e7e
+0, 95, 95, 1, 192000, 0xd5bc0e7e
+0, 96, 96, 1, 192000, 0xd5bc0e7e
+0, 97, 97, 1, 192000, 0xd5bc0e7e
+0, 98, 98, 1, 192000, 0xd5bc0e7e
+0, 99, 99, 1, 192000, 0xd5bc0e7e
diff --git a/ffmpeg1/tests/ref/fate/smc b/ffmpeg1/tests/ref/fate/smc
new file mode 100644
index 0000000..1635b37
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/smc
@@ -0,0 +1,121 @@
+#tb 0: 1/10
+0, 0, 0, 1, 230400, 0xf814fc90
+0, 1, 1, 1, 230400, 0xe1b13137
+0, 2, 2, 1, 230400, 0xa7f4d408
+0, 3, 3, 1, 230400, 0x4b86e1d5
+0, 4, 4, 1, 230400, 0xc663af5a
+0, 5, 5, 1, 230400, 0x943b5757
+0, 6, 6, 1, 230400, 0x0d7ee496
+0, 7, 7, 1, 230400, 0x78792de4
+0, 8, 8, 1, 230400, 0xd102fb8d
+0, 9, 9, 1, 230400, 0xf9006139
+0, 10, 10, 1, 230400, 0x216bd87d
+0, 11, 11, 1, 230400, 0x1e4c902c
+0, 12, 12, 1, 230400, 0x5aaa7742
+0, 13, 13, 1, 230400, 0x48699d93
+0, 14, 14, 1, 230400, 0xd1e22a5c
+0, 15, 15, 1, 230400, 0x18929315
+0, 16, 16, 1, 230400, 0x680dd4d3
+0, 17, 17, 1, 230400, 0x4cdbcbcb
+0, 18, 18, 1, 230400, 0x6f810d98
+0, 19, 19, 1, 230400, 0xb4f68204
+0, 20, 20, 1, 230400, 0xbd3bb19e
+0, 21, 21, 1, 230400, 0xab27b424
+0, 22, 22, 1, 230400, 0xe5dd675d
+0, 23, 23, 1, 230400, 0x811e45a1
+0, 24, 24, 1, 230400, 0x951011f7
+0, 25, 25, 1, 230400, 0x2f1e2b99
+0, 26, 26, 1, 230400, 0x6657c0d6
+0, 27, 27, 1, 230400, 0xfd29177d
+0, 28, 28, 1, 230400, 0x4b4c01d7
+0, 29, 29, 1, 230400, 0x9af286aa
+0, 30, 30, 1, 230400, 0xc4e9b193
+0, 31, 31, 1, 230400, 0x05dc28ec
+0, 32, 32, 1, 230400, 0x68352119
+0, 33, 33, 1, 230400, 0x0b87e79c
+0, 34, 34, 1, 230400, 0x8358b180
+0, 35, 35, 1, 230400, 0x8debbc9d
+0, 36, 36, 1, 230400, 0x961c58ce
+0, 37, 37, 1, 230400, 0xd8a809c8
+0, 38, 38, 1, 230400, 0x5351789d
+0, 39, 39, 1, 230400, 0xa7ca598c
+0, 40, 40, 1, 230400, 0xc5ce1812
+0, 41, 41, 1, 230400, 0x74496550
+0, 42, 42, 1, 230400, 0x326e366e
+0, 43, 43, 1, 230400, 0x27ae9a92
+0, 44, 44, 1, 230400, 0xadbc8794
+0, 45, 45, 1, 230400, 0x7f3587d8
+0, 46, 46, 1, 230400, 0xf0400ca6
+0, 47, 47, 1, 230400, 0x59a5138e
+0, 48, 48, 1, 230400, 0x456d62a5
+0, 49, 49, 1, 230400, 0xf1a5e5f1
+0, 50, 50, 1, 230400, 0x75c712e4
+0, 51, 51, 1, 230400, 0xd160780a
+0, 52, 52, 1, 230400, 0xc6c23cf0
+0, 53, 53, 1, 230400, 0x0339a2ac
+0, 54, 54, 1, 230400, 0x0e27a2e2
+0, 55, 55, 1, 230400, 0x84976300
+0, 56, 56, 1, 230400, 0xb368f3c4
+0, 57, 57, 1, 230400, 0xa5231fb8
+0, 58, 58, 1, 230400, 0x17c036d4
+0, 59, 59, 1, 230400, 0xfc81a2c0
+0, 60, 60, 1, 230400, 0x99faa403
+0, 61, 61, 1, 230400, 0xff59efd3
+0, 62, 62, 1, 230400, 0xcece1d23
+0, 63, 63, 1, 230400, 0x56c785d9
+0, 64, 64, 1, 230400, 0xe5a9f222
+0, 65, 65, 1, 230400, 0xb80946f8
+0, 66, 66, 1, 230400, 0xf6b642c6
+0, 67, 67, 1, 230400, 0x69573aed
+0, 68, 68, 1, 230400, 0xfb69a1fd
+0, 69, 69, 1, 230400, 0x100b47f4
+0, 70, 70, 1, 230400, 0x6edf9543
+0, 71, 71, 1, 230400, 0x11fdf43c
+0, 72, 72, 1, 230400, 0xd143bf2a
+0, 73, 73, 1, 230400, 0x7ca747c4
+0, 74, 74, 1, 230400, 0xd984bd73
+0, 75, 75, 1, 230400, 0xc5477e8d
+0, 76, 76, 1, 230400, 0xf7d58300
+0, 77, 77, 1, 230400, 0x7a1b9463
+0, 78, 78, 1, 230400, 0x47a29342
+0, 79, 79, 1, 230400, 0xdf437f9d
+0, 80, 80, 1, 230400, 0xf836ef5d
+0, 81, 81, 1, 230400, 0xc98937af
+0, 82, 82, 1, 230400, 0x9258695b
+0, 83, 83, 1, 230400, 0xd4fe179c
+0, 84, 84, 1, 230400, 0x35d524d3
+0, 85, 85, 1, 230400, 0xd9ce5484
+0, 86, 86, 1, 230400, 0xdef776ed
+0, 87, 87, 1, 230400, 0x154c4057
+0, 88, 88, 1, 230400, 0xf5c764f1
+0, 89, 89, 1, 230400, 0x41979b13
+0, 90, 90, 1, 230400, 0xae4e83db
+0, 91, 91, 1, 230400, 0x09fc0f83
+0, 92, 92, 1, 230400, 0x60267fdf
+0, 93, 93, 1, 230400, 0xeaafc525
+0, 94, 94, 1, 230400, 0x80cc35e5
+0, 95, 95, 1, 230400, 0xd82c6164
+0, 96, 96, 1, 230400, 0xd68b8111
+0, 97, 97, 1, 230400, 0x96f874a3
+0, 98, 98, 1, 230400, 0x7fc861c4
+0, 99, 99, 1, 230400, 0xb911f310
+0, 100, 100, 1, 230400, 0x35bbf5aa
+0, 101, 101, 1, 230400, 0xa922b683
+0, 102, 102, 1, 230400, 0xbf6ae353
+0, 103, 103, 1, 230400, 0x6bd3984c
+0, 104, 104, 1, 230400, 0xe51768c0
+0, 105, 105, 1, 230400, 0xee691624
+0, 106, 106, 1, 230400, 0xd546fed7
+0, 107, 107, 1, 230400, 0x98d375e6
+0, 108, 108, 1, 230400, 0x3b9ca990
+0, 109, 109, 1, 230400, 0x27128ad1
+0, 110, 110, 1, 230400, 0x2788e38c
+0, 111, 111, 1, 230400, 0xb0cf3381
+0, 112, 112, 1, 230400, 0x4fc86d39
+0, 113, 113, 1, 230400, 0xf5632fff
+0, 114, 114, 1, 230400, 0x7fa1e6c2
+0, 115, 115, 1, 230400, 0xffeef044
+0, 116, 116, 1, 230400, 0x932af385
+0, 117, 117, 1, 230400, 0x76738428
+0, 118, 118, 1, 230400, 0xf6771ba2
+0, 119, 119, 1, 230400, 0x17e2ff27
diff --git a/ffmpeg1/tests/ref/fate/smjpeg b/ffmpeg1/tests/ref/fate/smjpeg
new file mode 100644
index 0000000..7aac52f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/smjpeg
@@ -0,0 +1,425 @@
+#tb 0: 1/1000
+#tb 1: 1/22050
+0, 0, 0, 0, 734, 0x5a042c2c
+1, 0, 0, 512, 1024, 0x00000000
+1, 507, 507, 512, 1024, 0x00000000
+1, 1014, 1014, 512, 1024, 0xd89a448e
+1, 1521, 1521, 512, 1024, 0x695b369c
+1, 2029, 2029, 512, 1024, 0xc8ba5707
+0, 111, 111, 0, 763, 0xb5893f2f
+1, 2558, 2558, 512, 1024, 0xdf241fc6
+1, 3065, 3065, 512, 1024, 0x61cf4166
+1, 3572, 3572, 512, 1024, 0x97cbc386
+1, 4079, 4079, 512, 1024, 0x44899d04
+1, 4586, 4586, 512, 1024, 0xa7cbaa62
+0, 222, 222, 0, 3023, 0x0f3907d3
+1, 5116, 5116, 512, 1024, 0xa7aea60c
+1, 5623, 5623, 512, 1024, 0xd7b18a89
+1, 6130, 6130, 512, 1024, 0x268e81f6
+1, 6637, 6637, 512, 1024, 0x9cf83a2f
+1, 7166, 7166, 512, 1024, 0x5559b508
+0, 333, 333, 0, 4800, 0x22e6e18a
+1, 7673, 7673, 512, 1024, 0xe1b9e71c
+1, 8181, 8181, 512, 1024, 0xdcee733e
+1, 8688, 8688, 512, 1024, 0xe5918f60
+1, 9195, 9195, 512, 1024, 0x29dbd209
+1, 9724, 9724, 512, 1024, 0x9bcbcf16
+0, 444, 444, 0, 6417, 0x427adde5
+1, 10231, 10231, 512, 1024, 0x86f5f458
+1, 10738, 10738, 512, 1024, 0xabcbda86
+1, 11246, 11246, 512, 1024, 0xc51f77b9
+1, 11775, 11775, 512, 1024, 0xf6b3a504
+0, 555, 555, 0, 6776, 0x7a74c6ad
+1, 12282, 12282, 512, 1024, 0x1af3e40e
+1, 12789, 12789, 512, 1024, 0x3866b03b
+1, 13296, 13296, 512, 1024, 0xbc005403
+1, 13803, 13803, 512, 1024, 0xe9dfcc51
+1, 14333, 14333, 512, 1024, 0x83c837cb
+0, 666, 666, 0, 6808, 0x1f6eb7c3
+1, 14840, 14840, 512, 1024, 0xfa649580
+1, 15347, 15347, 512, 1024, 0x519452ea
+1, 15854, 15854, 512, 1024, 0xd4978774
+1, 16383, 16383, 512, 1024, 0xe2a3b1cd
+1, 16890, 16890, 512, 1024, 0x9a9472ad
+0, 777, 777, 0, 6726, 0x452087e6
+1, 17397, 17397, 512, 1024, 0xa12d4060
+1, 17905, 17905, 512, 1024, 0x31fb0646
+1, 18412, 18412, 512, 1024, 0xfc44343f
+1, 18941, 18941, 512, 1024, 0x0847751a
+1, 19448, 19448, 512, 1024, 0x227968a2
+0, 888, 888, 0, 6829, 0xee82b109
+1, 19955, 19955, 512, 1024, 0x7cce9f1c
+1, 20462, 20462, 512, 1024, 0xb8356713
+1, 20992, 20992, 512, 1024, 0xb29f6e6f
+1, 21499, 21499, 512, 1024, 0x9e1430ab
+1, 22006, 22006, 512, 1024, 0x26d85423
+0, 999, 999, 0, 7055, 0xf41f1108
+1, 22513, 22513, 512, 1024, 0x6496547d
+1, 23020, 23020, 512, 1024, 0x316b1a86
+1, 23549, 23549, 512, 1024, 0x3cd83afc
+1, 24057, 24057, 512, 1024, 0x993ff633
+0, 1111, 1111, 0, 6977, 0xf8fe1ede
+1, 24564, 24564, 512, 1024, 0x0708d1a2
+1, 25071, 25071, 512, 1024, 0xd7230db9
+1, 25578, 25578, 512, 1024, 0xbb0779ca
+1, 26107, 26107, 512, 1024, 0xc6094e1b
+1, 26614, 26614, 512, 1024, 0x15a8b039
+0, 1222, 1222, 0, 6942, 0x9ad105c6
+1, 27122, 27122, 512, 1024, 0xd6dbe88c
+1, 27629, 27629, 512, 1024, 0x7e8d1140
+1, 28158, 28158, 512, 1024, 0xef88e525
+1, 28665, 28665, 512, 1024, 0x44e21149
+1, 29172, 29172, 512, 1024, 0x65b0f5f4
+0, 1333, 1333, 0, 6926, 0xe239dad6
+1, 29679, 29679, 512, 1024, 0xb955f687
+1, 30186, 30186, 512, 1024, 0xc85fba9c
+1, 30716, 30716, 512, 1024, 0xf59655ad
+1, 31223, 31223, 512, 1024, 0x6de80bf1
+1, 31730, 31730, 512, 1024, 0x2dcf6e41
+0, 1444, 1444, 0, 6966, 0x81dcfab1
+1, 32237, 32237, 512, 1024, 0xd0ddcf8a
+1, 32766, 32766, 512, 1024, 0x00135c2d
+1, 33273, 33273, 512, 1024, 0x697f8efd
+1, 33781, 33781, 512, 1024, 0x7a9bada5
+0, 1555, 1555, 0, 6896, 0x31e6cc02
+1, 34288, 34288, 512, 1024, 0x0d22783c
+1, 34795, 34795, 512, 1024, 0x7726d07d
+1, 35324, 35324, 512, 1024, 0xa2f14f67
+1, 35831, 35831, 512, 1024, 0x7f51060d
+1, 36338, 36338, 512, 1024, 0xc4ec6aea
+0, 1666, 1666, 0, 6889, 0x1cc1006e
+1, 36846, 36846, 512, 1024, 0x9bb37ca4
+1, 37375, 37375, 512, 1024, 0x9b085577
+1, 37882, 37882, 512, 1024, 0x8812f8af
+1, 38389, 38389, 512, 1024, 0x788f5221
+1, 38896, 38896, 512, 1024, 0x3a2ce642
+0, 1777, 1777, 0, 6933, 0xc303f87f
+1, 39403, 39403, 512, 1024, 0x72415692
+1, 39933, 39933, 512, 1024, 0xe3dcc105
+1, 40440, 40440, 512, 1024, 0xb26c0599
+1, 40947, 40947, 512, 1024, 0x5c9e55eb
+1, 41454, 41454, 512, 1024, 0x8fe88707
+0, 1888, 1888, 0, 7034, 0xb4970a20
+1, 41983, 41983, 512, 1024, 0xc5d7beb6
+1, 42490, 42490, 512, 1024, 0xe1d3a3b4
+1, 42998, 42998, 512, 1024, 0x012da0c6
+1, 43505, 43505, 512, 1024, 0x8d010922
+1, 44012, 44012, 512, 1024, 0x3366eb0d
+0, 1999, 1999, 0, 6961, 0xf064095d
+1, 44541, 44541, 512, 1024, 0xc9381a27
+1, 45048, 45048, 512, 1024, 0x0774f685
+1, 45555, 45555, 512, 1024, 0xc5cae0a5
+1, 46062, 46062, 512, 1024, 0xa6f4737c
+0, 2111, 2111, 0, 7089, 0x5ba350f9
+1, 46592, 46592, 512, 1024, 0x8fb6d0d1
+1, 47099, 47099, 512, 1024, 0x05f579c2
+1, 47606, 47606, 512, 1024, 0x56905d99
+1, 48113, 48113, 512, 1024, 0x002ee18d
+1, 48620, 48620, 512, 1024, 0xeb37ef51
+0, 2222, 2222, 0, 7078, 0xa83f3e88
+1, 49149, 49149, 512, 1024, 0x38025635
+1, 49657, 49657, 512, 1024, 0x4fe643c8
+1, 50164, 50164, 512, 1024, 0x11d66ab1
+1, 50671, 50671, 512, 1024, 0xcc3051e9
+1, 51178, 51178, 512, 1024, 0xcd93e854
+0, 2333, 2333, 0, 7147, 0xcda66cfc
+1, 51707, 51707, 512, 1024, 0x38f1196d
+1, 52214, 52214, 512, 1024, 0x657a15fc
+1, 52722, 52722, 512, 1024, 0x669ce2a9
+1, 53229, 53229, 512, 1024, 0x95862dda
+1, 53758, 53758, 512, 1024, 0x1726a7b2
+0, 2444, 2444, 0, 7173, 0xb7455859
+1, 54265, 54265, 512, 1024, 0xd6ece2a1
+1, 54772, 54772, 512, 1024, 0x33ab9553
+1, 55279, 55279, 512, 1024, 0xd50c73a6
+1, 55787, 55787, 512, 1024, 0xfe25b63a
+1, 56316, 56316, 512, 1024, 0x7e2959e3
+0, 2555, 2555, 0, 7213, 0x97b89994
+1, 56823, 56823, 512, 1024, 0xa4c07b34
+1, 57330, 57330, 512, 1024, 0xd6d8f15c
+1, 57837, 57837, 512, 1024, 0x1eccddd7
+1, 58366, 58366, 512, 1024, 0x2b69f9cb
+0, 2666, 2666, 0, 7170, 0xca8b2948
+1, 58874, 58874, 512, 1024, 0x667b775f
+1, 59381, 59381, 512, 1024, 0xad3b84e9
+1, 59888, 59888, 512, 1024, 0x4f29fc67
+1, 60395, 60395, 512, 1024, 0x8d611ab7
+1, 60924, 60924, 512, 1024, 0x278966ea
+0, 2777, 2777, 0, 7174, 0xc7cc6bbb
+1, 61431, 61431, 512, 1024, 0xaf33812b
+1, 61938, 61938, 512, 1024, 0xa55f4265
+1, 62446, 62446, 512, 1024, 0x023cb51c
+1, 62975, 62975, 512, 1024, 0x1d1f1005
+1, 63482, 63482, 512, 1024, 0x874cccf7
+0, 2888, 2888, 0, 7235, 0xc2e68d2b
+1, 63989, 63989, 512, 1024, 0xda705428
+1, 64496, 64496, 512, 1024, 0x48d9b440
+1, 65003, 65003, 512, 1024, 0xa14e0712
+1, 65533, 65533, 512, 1024, 0x7efbad1f
+1, 66040, 66040, 512, 1024, 0xdb82c17f
+0, 3000, 3000, 0, 7261, 0x8204a423
+1, 66547, 66547, 512, 1024, 0xcbe87613
+1, 67054, 67054, 512, 1024, 0x3a63df1d
+1, 67583, 67583, 512, 1024, 0xd5636bba
+1, 68090, 68090, 512, 1024, 0x9397af23
+0, 3111, 3111, 0, 7353, 0xacc7e7c0
+1, 68598, 68598, 512, 1024, 0x32a07c98
+1, 69105, 69105, 512, 1024, 0x202ca667
+1, 69612, 69612, 512, 1024, 0xdf969011
+1, 70141, 70141, 512, 1024, 0xc434d238
+1, 70648, 70648, 512, 1024, 0xe9ad7562
+0, 3222, 3222, 0, 7065, 0x45035c5c
+1, 71155, 71155, 512, 1024, 0xb51b6b50
+1, 71663, 71663, 512, 1024, 0xe70aecd3
+1, 72192, 72192, 512, 1024, 0x03c816b2
+1, 72699, 72699, 512, 1024, 0x869fdf25
+1, 73206, 73206, 512, 1024, 0xd40a0a62
+0, 3333, 3333, 0, 7269, 0x72edbb76
+1, 73713, 73713, 512, 1024, 0x5af7dd35
+1, 74220, 74220, 512, 1024, 0x891ffc72
+1, 74750, 74750, 512, 1024, 0x1ff68a08
+1, 75257, 75257, 512, 1024, 0x5a7517a9
+1, 75764, 75764, 512, 1024, 0x0f959f74
+0, 3444, 3444, 0, 7220, 0xb926772f
+1, 76271, 76271, 512, 1024, 0xe92a12a2
+1, 76778, 76778, 512, 1024, 0x38000e55
+1, 77307, 77307, 512, 1024, 0x39fbdd70
+1, 77814, 77814, 512, 1024, 0xca3d9184
+1, 78322, 78322, 512, 1024, 0x66c8995b
+0, 3555, 3555, 0, 7326, 0x0a66c632
+1, 78829, 78829, 512, 1024, 0xac25acea
+1, 79358, 79358, 512, 1024, 0x3cd1046c
+1, 79865, 79865, 512, 1024, 0x6a1df31c
+1, 80372, 80372, 512, 1024, 0x21ca10a1
+0, 3666, 3666, 0, 7225, 0xe39076ab
+1, 80879, 80879, 512, 1024, 0x1aeccedc
+1, 81387, 81387, 512, 1024, 0xddea1335
+1, 81916, 81916, 512, 1024, 0x19f5ca9f
+1, 82423, 82423, 512, 1024, 0x88e95e43
+1, 82930, 82930, 512, 1024, 0x726284fe
+0, 3777, 3777, 0, 7265, 0xe0209036
+1, 83437, 83437, 512, 1024, 0x6b85b40e
+1, 83966, 83966, 512, 1024, 0x111fee2a
+1, 84474, 84474, 512, 1024, 0x3656b588
+1, 84981, 84981, 512, 1024, 0xa5a2b552
+1, 85488, 85488, 512, 1024, 0x38fb2467
+0, 3888, 3888, 0, 7337, 0x7a5dc093
+1, 85995, 85995, 512, 1024, 0xaa919ccc
+1, 86524, 86524, 512, 1024, 0x15993dbc
+1, 87031, 87031, 512, 1024, 0xbe01a7b9
+1, 87539, 87539, 512, 1024, 0xefe93c09
+1, 88046, 88046, 512, 1024, 0x1bb566e5
+0, 4000, 4000, 0, 7246, 0x519a7a3c
+1, 88575, 88575, 512, 1024, 0x15ce6237
+1, 89082, 89082, 512, 1024, 0xa8552e66
+1, 89589, 89589, 512, 1024, 0x9d80187e
+1, 90096, 90096, 512, 1024, 0x5df3fc30
+1, 90603, 90603, 512, 1024, 0x1a312aa5
+0, 4111, 4111, 0, 7266, 0x352c8078
+1, 91133, 91133, 512, 1024, 0x6bb8e302
+1, 91640, 91640, 512, 1024, 0xbd9684bb
+1, 92147, 92147, 512, 1024, 0x78b0b166
+1, 92654, 92654, 512, 1024, 0xd9af5eae
+0, 4222, 4222, 0, 7323, 0xcaf69d7c
+1, 93183, 93183, 512, 1024, 0xdb90fe82
+1, 93690, 93690, 512, 1024, 0x327614e9
+1, 94198, 94198, 512, 1024, 0x1f19b7fe
+1, 94705, 94705, 512, 1024, 0x46c53f96
+1, 95212, 95212, 512, 1024, 0x921b2189
+0, 4333, 4333, 0, 7309, 0x98c1e6f7
+1, 95741, 95741, 512, 1024, 0xa8fbc85a
+1, 96248, 96248, 512, 1024, 0xabfdaaae
+1, 96755, 96755, 512, 1024, 0x6acc7387
+1, 97263, 97263, 512, 1024, 0x0d9c27b5
+1, 97792, 97792, 512, 1024, 0xba4dd809
+0, 4444, 4444, 0, 7121, 0x913d5bd6
+1, 98299, 98299, 512, 1024, 0x2a2ad521
+1, 98806, 98806, 512, 1024, 0x892de38a
+1, 99313, 99313, 512, 1024, 0xdc97a2eb
+1, 99820, 99820, 512, 1024, 0x4f614ca4
+1, 100350, 100350, 512, 1024, 0x9c8a77ea
+0, 4555, 4555, 111, 7088, 0x56302362
+1, 100857, 100857, 512, 1024, 0x2d30e646
+1, 101364, 101364, 512, 1024, 0x74e800a7
+1, 101871, 101871, 512, 1024, 0x1e01fb02
+1, 102378, 102378, 512, 1024, 0x4ed2c1d8
+0, 4666, 4666, 111, 7104, 0xc0d14f78
+1, 102907, 102907, 512, 1024, 0xf2fdbe63
+1, 103415, 103415, 512, 1024, 0x8d6f63a1
+1, 103922, 103922, 512, 1024, 0xded468d9
+1, 104429, 104429, 512, 1024, 0xccad839e
+1, 104958, 104958, 512, 1024, 0xdde7c082
+0, 4777, 4777, 111, 7169, 0xd03c825b
+1, 105465, 105465, 512, 1024, 0x548613c5
+1, 105972, 105972, 512, 1024, 0x383909bd
+1, 106479, 106479, 512, 1024, 0xfd37627b
+1, 106987, 106987, 512, 1024, 0x6d95a481
+1, 107516, 107516, 512, 1024, 0x56aa87fa
+0, 4888, 4888, 111, 7038, 0x1ecc201d
+1, 108023, 108023, 512, 1024, 0x7b67258c
+1, 108530, 108530, 512, 1024, 0x7dd99a92
+1, 109037, 109037, 512, 1024, 0x4a66d102
+1, 109566, 109566, 512, 1024, 0x7b3fce51
+1, 110074, 110074, 512, 1024, 0xbbd968aa
+0, 5000, 5000, 111, 7015, 0x83c94454
+1, 110581, 110581, 512, 1024, 0x8283ec36
+1, 111088, 111088, 512, 1024, 0x3c96493d
+1, 111595, 111595, 512, 1024, 0xfa4f8cf8
+1, 112124, 112124, 512, 1024, 0xe2cf872d
+1, 112631, 112631, 512, 1024, 0x0a9e7aa6
+0, 5111, 5111, 111, 6983, 0x9e51f54d
+1, 113139, 113139, 512, 1024, 0x6e7a0550
+1, 113646, 113646, 512, 1024, 0x3acfea2f
+1, 114175, 114175, 512, 1024, 0x7111d0fa
+1, 114682, 114682, 512, 1024, 0xe9a1eca9
+0, 5222, 5222, 111, 7088, 0x70d33de1
+1, 115189, 115189, 512, 1024, 0x24da6c46
+1, 115696, 115696, 512, 1024, 0x117cff37
+1, 116204, 116204, 512, 1024, 0x0f27cab6
+1, 116733, 116733, 512, 1024, 0x69b6b4e6
+1, 117240, 117240, 512, 1024, 0x1e6cc841
+0, 5333, 5333, 111, 7096, 0x4d0f81b5
+1, 117747, 117747, 512, 1024, 0xb01e2365
+1, 118254, 118254, 512, 1024, 0x14e200d3
+1, 118783, 118783, 512, 1024, 0xd1184c98
+1, 119291, 119291, 512, 1024, 0xef9140e9
+1, 119798, 119798, 512, 1024, 0x4cbb645e
+0, 5444, 5444, 111, 7106, 0xd1a83ddc
+1, 120305, 120305, 512, 1024, 0xe7fe2f06
+1, 120812, 120812, 512, 1024, 0xf8c45028
+1, 121341, 121341, 512, 1024, 0x561358f4
+1, 121848, 121848, 512, 1024, 0xd0129b77
+1, 122355, 122355, 512, 1024, 0xcc636e88
+0, 5555, 5555, 111, 7219, 0x20f47fe4
+1, 122863, 122863, 512, 1024, 0xe9406321
+1, 123392, 123392, 512, 1024, 0x9f16a041
+1, 123899, 123899, 512, 1024, 0x468bf409
+1, 124406, 124406, 512, 1024, 0x3df70f7b
+1, 124913, 124913, 512, 1024, 0xa880b11b
+0, 5666, 5666, 111, 7184, 0x45dc6a0e
+1, 125420, 125420, 512, 1024, 0x3286c489
+1, 125950, 125950, 512, 1024, 0x39fe9ebc
+1, 126457, 126457, 512, 1024, 0xc533d83b
+1, 126964, 126964, 512, 1024, 0x153b195d
+0, 5777, 5777, 111, 7222, 0x488c6499
+1, 127471, 127471, 512, 1024, 0xd84786a1
+1, 127978, 127978, 512, 1024, 0xdc295aaa
+1, 128507, 128507, 512, 1024, 0xfb764d8c
+1, 129015, 129015, 512, 1024, 0xeebc9db9
+1, 129522, 129522, 512, 1024, 0x7ba9403e
+0, 5888, 5888, 111, 7254, 0xbd097ba7
+1, 130029, 130029, 512, 1024, 0x4e5571ec
+1, 130558, 130558, 512, 1024, 0xd965fad4
+1, 131065, 131065, 512, 1024, 0x87e259f2
+1, 131572, 131572, 512, 1024, 0xae7e533b
+1, 132080, 132080, 512, 1024, 0x313cf4d6
+0, 6000, 6000, 111, 7189, 0x46e06d43
+1, 132587, 132587, 512, 1024, 0xe1844c90
+1, 133116, 133116, 512, 1024, 0xbb057b44
+1, 133623, 133623, 512, 1024, 0xa5099687
+1, 134130, 134130, 512, 1024, 0xbff10707
+1, 134637, 134637, 512, 1024, 0x37c4ffc0
+0, 6111, 6111, 111, 7283, 0x19dd7319
+1, 135167, 135167, 512, 1024, 0xf9fb6caa
+1, 135674, 135674, 512, 1024, 0x3b6a3a1f
+1, 136181, 136181, 512, 1024, 0x83431edb
+1, 136688, 136688, 512, 1024, 0x1eb713cf
+1, 137195, 137195, 512, 1024, 0xd7b07a6d
+0, 6222, 6222, 111, 7161, 0x23171d02
+1, 137724, 137724, 512, 1024, 0x81ae3391
+1, 138231, 138231, 512, 1024, 0xf150130a
+1, 138739, 138739, 512, 1024, 0x09678eaa
+1, 139246, 139246, 512, 1024, 0xb94e06f1
+0, 6333, 6333, 111, 6976, 0xcc610c26
+1, 139775, 139775, 512, 1024, 0x67b1dbc9
+1, 140282, 140282, 512, 1024, 0xd6edc235
+1, 140789, 140789, 512, 1024, 0x34e4c499
+1, 141296, 141296, 512, 1024, 0xeefd89c0
+1, 141804, 141804, 512, 1024, 0x38afdaf1
+0, 6444, 6444, 111, 7056, 0x6cd917b0
+1, 142333, 142333, 512, 1024, 0x29a60d76
+1, 142840, 142840, 512, 1024, 0xe28a4372
+1, 143347, 143347, 512, 1024, 0x7089454d
+1, 143854, 143854, 512, 1024, 0x0c01bb7b
+1, 144383, 144383, 512, 1024, 0xbd776a72
+0, 6555, 6555, 111, 6736, 0x02b78951
+1, 144891, 144891, 512, 1024, 0x86776fd0
+1, 145398, 145398, 512, 1024, 0xb37c88f7
+1, 145905, 145905, 512, 1024, 0x5f90aaf8
+1, 146412, 146412, 512, 1024, 0x203d4222
+1, 146941, 146941, 512, 1024, 0x382692a6
+0, 6666, 6666, 111, 6540, 0x767e0854
+1, 147448, 147448, 512, 1024, 0xf37c95fd
+1, 147956, 147956, 512, 1024, 0x6c0b8877
+1, 148463, 148463, 512, 1024, 0x2e54a8b6
+1, 148992, 148992, 512, 1024, 0x7f266488
+0, 6777, 6777, 111, 6170, 0xc84962fb
+1, 149499, 149499, 512, 1024, 0xfbf20f9a
+1, 150006, 150006, 512, 1024, 0xf2985cc0
+1, 150513, 150513, 512, 1024, 0xc7075340
+1, 151020, 151020, 512, 1024, 0xe4585695
+1, 151550, 151550, 512, 1024, 0xbdffa380
+0, 6888, 6888, 111, 6169, 0x27e06c03
+1, 152057, 152057, 512, 1024, 0x2422a8a9
+1, 152564, 152564, 512, 1024, 0x59cbd75f
+1, 153071, 153071, 512, 1024, 0x04ad1a8c
+1, 153578, 153578, 512, 1024, 0x33c09191
+1, 154107, 154107, 512, 1024, 0x55efa6fd
+0, 7000, 7000, 111, 5864, 0xd14db83f
+1, 154615, 154615, 512, 1024, 0xf73d0e5d
+1, 155122, 155122, 512, 1024, 0x6141ebae
+1, 155629, 155629, 512, 1024, 0x7db17a68
+1, 156158, 156158, 512, 1024, 0xa6c690b6
+1, 156665, 156665, 512, 1024, 0xa6fd6725
+0, 7111, 7111, 111, 5375, 0x4a21055d
+1, 157172, 157172, 512, 1024, 0x50a90b9b
+1, 157680, 157680, 512, 1024, 0xef990dc8
+1, 158187, 158187, 512, 1024, 0x75adf6b5
+1, 158716, 158716, 512, 1024, 0x61eac43e
+1, 159223, 159223, 512, 1024, 0x67797a19
+0, 7222, 7222, 111, 5206, 0x95ead3cb
+1, 159730, 159730, 512, 1024, 0xf325277a
+1, 160237, 160237, 512, 1024, 0x18bf254a
+1, 160767, 160767, 512, 1024, 0x2ce6bee3
+1, 161274, 161274, 512, 1024, 0x8d320860
+0, 7333, 7333, 111, 5220, 0xcfdcc37e
+1, 161781, 161781, 512, 1024, 0xc979b6e8
+1, 162288, 162288, 512, 1024, 0xdb644b41
+1, 162795, 162795, 512, 1024, 0xe1b368ba
+1, 163324, 163324, 512, 1024, 0xacc53d15
+1, 163832, 163832, 512, 1024, 0x42ea8c18
+0, 7444, 7444, 111, 4946, 0x2d864a77
+1, 164339, 164339, 512, 1024, 0xe52c99a4
+1, 164846, 164846, 512, 1024, 0xd7db54a6
+1, 165375, 165375, 512, 1024, 0x7f27a7e3
+1, 165882, 165882, 512, 1024, 0xf7ffeaa9
+1, 166389, 166389, 512, 1024, 0x792b6088
+0, 7555, 7555, 111, 4390, 0x2ab9f462
+1, 166896, 166896, 512, 1024, 0x61d99724
+1, 167404, 167404, 512, 1024, 0x5213720e
+1, 167933, 167933, 512, 1024, 0xac09dd30
+1, 168440, 168440, 512, 1024, 0x960bf6bb
+1, 168947, 168947, 512, 1024, 0xc90168e1
+0, 7666, 7666, 111, 4051, 0x1d09592e
+1, 169454, 169454, 512, 1024, 0x43b45768
+1, 169983, 169983, 512, 1024, 0x935d60a1
+1, 170491, 170491, 512, 1024, 0x9a342ef2
+1, 170998, 170998, 512, 1024, 0xc894709f
+0, 7777, 7777, 111, 3680, 0x39bd6a12
+1, 171505, 171505, 512, 1024, 0x59b43b07
+1, 172012, 172012, 512, 1024, 0x36a1a98d
+1, 172541, 172541, 512, 1024, 0x9e1a121c
+1, 173048, 173048, 512, 1024, 0x02208b78
+1, 173556, 173556, 512, 1024, 0xd1d7b274
+0, 7888, 7888, 111, 2910, 0x6337ece9
+1, 174063, 174063, 512, 1024, 0xdacd5096
+1, 174592, 174592, 512, 1024, 0x51b71ead
+1, 175099, 175099, 512, 1024, 0xd009a7ca
+1, 175606, 175606, 512, 1024, 0xb6d5a938
+1, 176113, 176113, 512, 1024, 0xf3d45e47
+0, 8000, 8000, 111, 2153, 0xf4e3bc17
+1, 176621, 176621, 512, 1024, 0xea8e04fc
+1, 177150, 177150, 512, 1024, 0x0b928bd8
+1, 177657, 177657, 512, 1024, 0x0f02caec
+1, 178164, 178164, 512, 1024, 0xe2b137a8
+1, 178671, 178671, 512, 1024, 0xd5f94892
diff --git a/ffmpeg1/tests/ref/fate/smjpeg-demux b/ffmpeg1/tests/ref/fate/smjpeg-demux
new file mode 100644
index 0000000..637f28c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/smjpeg-demux
@@ -0,0 +1,425 @@
+#tb 0: 1/1000
+#tb 1: 1/1000
+0, 0, 0, 0, 734, 0x5a042c2c
+1, 0, 0, 23, 260, 0x00000000
+1, 23, 23, 23, 260, 0x00000000
+1, 46, 46, 23, 260, 0xac9e0a9b
+1, 69, 69, 23, 260, 0x89256f5b
+1, 92, 92, 23, 260, 0x8e646e36
+0, 111, 111, 0, 763, 0xb5893f2f
+1, 116, 116, 23, 260, 0x3ab972fc
+1, 139, 139, 23, 260, 0xaea86bb2
+1, 162, 162, 23, 260, 0x2366447a
+1, 185, 185, 23, 260, 0x82c14f9c
+1, 208, 208, 23, 260, 0xcdcf6fa8
+0, 222, 222, 0, 3023, 0x0f3907d3
+1, 232, 232, 23, 260, 0xb3ed64bd
+1, 255, 255, 23, 260, 0xac304b92
+1, 278, 278, 23, 260, 0xc8bc553b
+1, 301, 301, 23, 260, 0xd35572b4
+1, 325, 325, 23, 260, 0x182f6190
+0, 333, 333, 0, 4800, 0x22e6e18a
+1, 348, 348, 23, 260, 0xbf9145c0
+1, 371, 371, 23, 260, 0x0ec85a7e
+1, 394, 394, 23, 260, 0x3684720e
+1, 417, 417, 23, 260, 0xe985616a
+1, 441, 441, 23, 260, 0x12b147dc
+0, 444, 444, 0, 6417, 0x427adde5
+1, 464, 464, 23, 260, 0xb8b55dd9
+1, 487, 487, 23, 260, 0xfd4a7007
+1, 510, 510, 23, 260, 0xfcc05c9a
+1, 534, 534, 23, 260, 0x20f74aea
+0, 555, 555, 0, 6776, 0x7a74c6ad
+1, 557, 557, 23, 260, 0x025359ca
+1, 580, 580, 23, 260, 0xace44ba1
+1, 603, 603, 23, 260, 0x03506929
+1, 626, 626, 23, 260, 0x8a926f17
+1, 650, 650, 23, 260, 0x4a7061e7
+0, 666, 666, 0, 6808, 0x1f6eb7c3
+1, 673, 673, 23, 260, 0xf8b66cc9
+1, 696, 696, 23, 260, 0xe8c96dec
+1, 719, 719, 23, 260, 0x672a54a6
+1, 743, 743, 23, 260, 0xe97b5698
+1, 766, 766, 23, 260, 0x377f684d
+0, 777, 777, 0, 6726, 0x452087e6
+1, 789, 789, 23, 260, 0xe9a66786
+1, 812, 812, 23, 260, 0xf8e17080
+1, 835, 835, 23, 260, 0x65eb662a
+1, 859, 859, 23, 260, 0xd8d361e9
+1, 882, 882, 23, 260, 0xb8115a0b
+0, 888, 888, 0, 6829, 0xee82b109
+1, 905, 905, 23, 260, 0xa5a85461
+1, 928, 928, 23, 260, 0xf401663b
+1, 952, 952, 23, 260, 0x042f714e
+1, 975, 975, 23, 260, 0xdf195820
+1, 998, 998, 23, 260, 0x0a67653c
+0, 999, 999, 0, 7055, 0xf41f1108
+1, 1021, 1021, 23, 260, 0xe9b44d02
+1, 1044, 1044, 23, 260, 0xbd4747b9
+1, 1068, 1068, 23, 260, 0x3ef66738
+1, 1091, 1091, 23, 260, 0x0f4a6e44
+0, 1111, 1111, 0, 6977, 0xf8fe1ede
+1, 1114, 1114, 23, 260, 0xaa3d6eb6
+1, 1137, 1137, 23, 260, 0xb9a46c4a
+1, 1160, 1160, 23, 260, 0x4f974c2e
+1, 1184, 1184, 23, 260, 0x9e714a00
+1, 1207, 1207, 23, 260, 0x601a7152
+0, 1222, 1222, 0, 6942, 0x9ad105c6
+1, 1230, 1230, 23, 260, 0xaf317064
+1, 1253, 1253, 23, 260, 0x163d4829
+1, 1277, 1277, 23, 260, 0xc56b4f1a
+1, 1300, 1300, 23, 260, 0x7623729c
+1, 1323, 1323, 23, 260, 0xa514694f
+0, 1333, 1333, 0, 6926, 0xe239dad6
+1, 1346, 1346, 23, 260, 0x93ee4ad8
+1, 1369, 1369, 23, 260, 0x6d8e573f
+1, 1393, 1393, 23, 260, 0x13256d68
+1, 1416, 1416, 23, 260, 0x187761a2
+1, 1439, 1439, 23, 260, 0x426045e7
+0, 1444, 1444, 0, 6966, 0x81dcfab1
+1, 1462, 1462, 23, 260, 0x7e7e5891
+1, 1486, 1486, 23, 260, 0xd6926dcc
+1, 1509, 1509, 23, 260, 0xf0196061
+1, 1532, 1532, 23, 260, 0x7cac49a3
+0, 1555, 1555, 0, 6896, 0x31e6cc02
+1, 1555, 1555, 23, 260, 0x24f4549a
+1, 1578, 1578, 23, 260, 0x937f551d
+1, 1602, 1602, 23, 260, 0x9bf462c5
+1, 1625, 1625, 23, 260, 0xd1e07436
+1, 1648, 1648, 23, 260, 0xdab36215
+0, 1666, 1666, 0, 6889, 0x1cc1006e
+1, 1671, 1671, 23, 260, 0xabc5662b
+1, 1695, 1695, 23, 260, 0xa24f6bf1
+1, 1718, 1718, 23, 260, 0x39e664b2
+1, 1741, 1741, 23, 260, 0xf5dc54ca
+1, 1764, 1764, 23, 260, 0xc3b16974
+0, 1777, 1777, 0, 6933, 0xc303f87f
+1, 1787, 1787, 23, 260, 0x6cf46bca
+1, 1811, 1811, 23, 260, 0x7a6b69b9
+1, 1834, 1834, 23, 260, 0xc02f69b9
+1, 1857, 1857, 23, 260, 0x7fc764a9
+1, 1880, 1880, 23, 260, 0xd9705b09
+0, 1888, 1888, 0, 7034, 0xb4970a20
+1, 1904, 1904, 23, 260, 0x17b05f49
+1, 1927, 1927, 23, 260, 0x10ad647c
+1, 1950, 1950, 23, 260, 0xf9636d69
+1, 1973, 1973, 23, 260, 0x622b5ad9
+1, 1996, 1996, 23, 260, 0x175b646d
+0, 1999, 1999, 0, 6961, 0xf064095d
+1, 2020, 2020, 23, 260, 0x722b5827
+1, 2043, 2043, 23, 260, 0x83614974
+1, 2066, 2066, 23, 260, 0x80366587
+1, 2089, 2089, 23, 260, 0x050f6bf9
+0, 2111, 2111, 0, 7089, 0x5ba350f9
+1, 2113, 2113, 23, 260, 0x949d6735
+1, 2136, 2136, 23, 260, 0x62cd7184
+1, 2159, 2159, 23, 260, 0x21e45713
+1, 2182, 2182, 23, 260, 0x56314509
+1, 2205, 2205, 23, 260, 0x7a1570d3
+0, 2222, 2222, 0, 7078, 0xa83f3e88
+1, 2229, 2229, 23, 260, 0x205a6ffb
+1, 2252, 2252, 23, 260, 0xead94483
+1, 2275, 2275, 23, 260, 0x93c84f10
+1, 2298, 2298, 23, 260, 0xdf45726f
+1, 2321, 2321, 23, 260, 0x35016f1e
+0, 2333, 2333, 0, 7147, 0xcda66cfc
+1, 2345, 2345, 23, 260, 0xa8114bcd
+1, 2368, 2368, 23, 260, 0x14c45130
+1, 2391, 2391, 23, 260, 0x97b07052
+1, 2414, 2414, 23, 260, 0x039b6c77
+1, 2438, 2438, 23, 260, 0x46f74635
+0, 2444, 2444, 0, 7173, 0xb7455859
+1, 2461, 2461, 23, 260, 0x4116540d
+1, 2484, 2484, 23, 260, 0x26747067
+1, 2507, 2507, 23, 260, 0x37f16485
+1, 2530, 2530, 23, 260, 0x631d4a33
+1, 2554, 2554, 23, 260, 0x14ed598d
+0, 2555, 2555, 0, 7213, 0x97b89994
+1, 2577, 2577, 23, 260, 0x3f9349e7
+1, 2600, 2600, 23, 260, 0x91295757
+1, 2623, 2623, 23, 260, 0x95de72bc
+1, 2647, 2647, 23, 260, 0xc7ee5ddb
+0, 2666, 2666, 0, 7170, 0xca8b2948
+1, 2670, 2670, 23, 260, 0x38e965cd
+1, 2693, 2693, 23, 260, 0xfae169e9
+1, 2716, 2716, 23, 260, 0x9c226143
+1, 2739, 2739, 23, 260, 0x1a804dbe
+1, 2763, 2763, 23, 260, 0x4aeb633c
+0, 2777, 2777, 0, 7174, 0xc7cc6bbb
+1, 2786, 2786, 23, 260, 0xa66e6bbb
+1, 2809, 2809, 23, 260, 0x51d17109
+1, 2832, 2832, 23, 260, 0x2bc86b9b
+1, 2856, 2856, 23, 260, 0xe56e6378
+1, 2879, 2879, 23, 260, 0x95665b47
+0, 2888, 2888, 0, 7235, 0xc2e68d2b
+1, 2902, 2902, 23, 260, 0x1c255fdb
+1, 2925, 2925, 23, 260, 0x3a2456cb
+1, 2948, 2948, 23, 260, 0xe18e7270
+1, 2972, 2972, 23, 260, 0x55b65c60
+1, 2995, 2995, 23, 260, 0x62be6515
+0, 3000, 3000, 0, 7261, 0x8204a423
+1, 3018, 3018, 23, 260, 0xdba25d09
+1, 3041, 3041, 23, 260, 0xd7cc4e40
+1, 3065, 3065, 23, 260, 0x335661be
+1, 3088, 3088, 23, 260, 0xc3286de3
+0, 3111, 3111, 0, 7353, 0xacc7e7c0
+1, 3111, 3111, 23, 260, 0x47e76e35
+1, 3134, 3134, 23, 260, 0x4b716f77
+1, 3157, 3157, 23, 260, 0x0716519e
+1, 3181, 3181, 23, 260, 0x032b4490
+1, 3204, 3204, 23, 260, 0x15f067e8
+0, 3222, 3222, 0, 7065, 0x45035c5c
+1, 3227, 3227, 23, 260, 0x16766ffa
+1, 3250, 3250, 23, 260, 0xc94154ac
+1, 3274, 3274, 23, 260, 0x74764bcd
+1, 3297, 3297, 23, 260, 0x3fad6f8f
+1, 3320, 3320, 23, 260, 0x5fa972a9
+0, 3333, 3333, 0, 7269, 0x72edbb76
+1, 3343, 3343, 23, 260, 0xde2a4b7b
+1, 3366, 3366, 23, 260, 0xd8494408
+1, 3390, 3390, 23, 260, 0x843d71a6
+1, 3413, 3413, 23, 260, 0x87fd6b60
+1, 3436, 3436, 23, 260, 0x1cc04a39
+0, 3444, 3444, 0, 7220, 0xb926772f
+1, 3459, 3459, 23, 260, 0x9ca24d94
+1, 3482, 3482, 23, 260, 0x820a7087
+1, 3506, 3506, 23, 260, 0x631166b2
+1, 3529, 3529, 23, 260, 0x2f20492a
+1, 3552, 3552, 23, 260, 0x932156d0
+0, 3555, 3555, 0, 7326, 0x0a66c632
+1, 3575, 3575, 23, 260, 0xdad54c90
+1, 3599, 3599, 23, 260, 0xcce84fc9
+1, 3622, 3622, 23, 260, 0xba317486
+1, 3645, 3645, 23, 260, 0xf5a4626a
+0, 3666, 3666, 0, 7225, 0xe39076ab
+1, 3668, 3668, 23, 260, 0x324669fd
+1, 3691, 3691, 23, 260, 0xc7d37113
+1, 3715, 3715, 23, 260, 0xc6e0644f
+1, 3738, 3738, 23, 260, 0x1b91522e
+1, 3761, 3761, 23, 260, 0x9b84667d
+0, 3777, 3777, 0, 7265, 0xe0209036
+1, 3784, 3784, 23, 260, 0xed7e66eb
+1, 3808, 3808, 23, 260, 0xaf806d1f
+1, 3831, 3831, 23, 260, 0x13a66941
+1, 3854, 3854, 23, 260, 0x13095a41
+1, 3877, 3877, 23, 260, 0x5ba05491
+0, 3888, 3888, 0, 7337, 0x7a5dc093
+1, 3900, 3900, 23, 260, 0xbf785887
+1, 3924, 3924, 23, 260, 0x21965973
+1, 3947, 3947, 23, 260, 0xd9aa7134
+1, 3970, 3970, 23, 260, 0x3add62bc
+1, 3993, 3993, 23, 260, 0xb9626260
+0, 4000, 4000, 0, 7246, 0x519a7a3c
+1, 4017, 4017, 23, 260, 0x5b08629f
+1, 4040, 4040, 23, 260, 0x43a34659
+1, 4063, 4063, 23, 260, 0x68575bda
+1, 4086, 4086, 23, 260, 0xd98b715a
+1, 4109, 4109, 23, 260, 0x7d816a77
+0, 4111, 4111, 0, 7266, 0x352c8078
+1, 4133, 4133, 23, 260, 0x16af6ff1
+1, 4156, 4156, 23, 260, 0x6d4557a7
+1, 4179, 4179, 23, 260, 0x0743401a
+1, 4202, 4202, 23, 260, 0x410563d8
+0, 4222, 4222, 0, 7323, 0xcaf69d7c
+1, 4226, 4226, 23, 260, 0x561371d1
+1, 4249, 4249, 23, 260, 0x3ef15872
+1, 4272, 4272, 23, 260, 0x1dd04972
+1, 4295, 4295, 23, 260, 0xed226c62
+1, 4318, 4318, 23, 260, 0x20857046
+0, 4333, 4333, 0, 7309, 0x98c1e6f7
+1, 4342, 4342, 23, 260, 0xed7f4724
+1, 4365, 4365, 23, 260, 0x7a7445cf
+1, 4388, 4388, 23, 260, 0x06ad6a93
+1, 4411, 4411, 23, 260, 0xdd1b6c91
+1, 4435, 4435, 23, 260, 0x05b94d27
+0, 4444, 4444, 0, 7121, 0x913d5bd6
+1, 4458, 4458, 23, 260, 0x12cc5062
+1, 4481, 4481, 23, 260, 0x44526d0f
+1, 4504, 4504, 23, 260, 0xf2ac6d95
+1, 4527, 4527, 23, 260, 0x27174b0f
+1, 4551, 4551, 23, 260, 0xcf125efe
+0, 4555, 4555, 111, 7088, 0x56302362
+1, 4574, 4574, 23, 260, 0xb8ce45a1
+1, 4597, 4597, 23, 260, 0x91895627
+1, 4620, 4620, 23, 260, 0x6edb706a
+1, 4643, 4643, 23, 260, 0x4e16674b
+0, 4666, 4666, 111, 7104, 0xc0d14f78
+1, 4667, 4667, 23, 260, 0xa9d66370
+1, 4690, 4690, 23, 260, 0x8f007043
+1, 4713, 4713, 23, 260, 0xdc1a5583
+1, 4736, 4736, 23, 260, 0x2f025511
+1, 4760, 4760, 23, 260, 0x2a4d6ddb
+0, 4777, 4777, 111, 7169, 0xd03c825b
+1, 4783, 4783, 23, 260, 0x54806f14
+1, 4806, 4806, 23, 260, 0xe0ac6d80
+1, 4829, 4829, 23, 260, 0xd9cf6c97
+1, 4852, 4852, 23, 260, 0xba705b6d
+1, 4876, 4876, 23, 260, 0x0be158e0
+0, 4888, 4888, 111, 7038, 0x1ecc201d
+1, 4899, 4899, 23, 260, 0x32b3645d
+1, 4922, 4922, 23, 260, 0x4a0a55b4
+1, 4945, 4945, 23, 260, 0x078b6fd8
+1, 4969, 4969, 23, 260, 0xc2816368
+1, 4992, 4992, 23, 260, 0xbdee5e4d
+0, 5000, 5000, 111, 7015, 0x83c94454
+1, 5015, 5015, 23, 260, 0x475366aa
+1, 5038, 5038, 23, 260, 0x2f9a44b9
+1, 5061, 5061, 23, 260, 0x91745ee5
+1, 5085, 5085, 23, 260, 0xc29b6e16
+1, 5108, 5108, 23, 260, 0x6ebb6b0e
+0, 5111, 5111, 111, 6983, 0x9e51f54d
+1, 5131, 5131, 23, 260, 0x4e7d7043
+1, 5154, 5154, 23, 260, 0x10b45caf
+1, 5178, 5178, 23, 260, 0x1b1e4e54
+1, 5201, 5201, 23, 260, 0xcc7b6443
+0, 5222, 5222, 111, 7088, 0x70d33de1
+1, 5224, 5224, 23, 260, 0x29936fdd
+1, 5247, 5247, 23, 260, 0x395256e3
+1, 5270, 5270, 23, 260, 0x50fb459f
+1, 5294, 5294, 23, 260, 0x0bef64ec
+1, 5317, 5317, 23, 260, 0xadd372dd
+0, 5333, 5333, 111, 7096, 0x4d0f81b5
+1, 5340, 5340, 23, 260, 0xc49e56dc
+1, 5363, 5363, 23, 260, 0x44e749c1
+1, 5387, 5387, 23, 260, 0x030e6c8a
+1, 5410, 5410, 23, 260, 0x82a47261
+1, 5433, 5433, 23, 260, 0xa3764fcc
+0, 5444, 5444, 111, 7106, 0xd1a83ddc
+1, 5456, 5456, 23, 260, 0xb1a1498a
+1, 5479, 5479, 23, 260, 0xbf9c7184
+1, 5503, 5503, 23, 260, 0xa45f6da8
+1, 5526, 5526, 23, 260, 0x9a2e4d51
+1, 5549, 5549, 23, 260, 0xa15c56ed
+0, 5555, 5555, 111, 7219, 0x20f47fe4
+1, 5572, 5572, 23, 260, 0x7029496c
+1, 5596, 5596, 23, 260, 0xf3595213
+1, 5619, 5619, 23, 260, 0x0dab6c5a
+1, 5642, 5642, 23, 260, 0x0e2367da
+1, 5665, 5665, 23, 260, 0xbb56610a
+0, 5666, 5666, 111, 7184, 0x45dc6a0e
+1, 5688, 5688, 23, 260, 0xcc916c92
+1, 5712, 5712, 23, 260, 0x886c5ba9
+1, 5735, 5735, 23, 260, 0x1b255a69
+1, 5758, 5758, 23, 260, 0xb7a66792
+0, 5777, 5777, 111, 7222, 0x488c6499
+1, 5781, 5781, 23, 260, 0x7d946b0e
+1, 5804, 5804, 23, 260, 0x07d16714
+1, 5828, 5828, 23, 260, 0x77ef6755
+1, 5851, 5851, 23, 260, 0xb2fe6849
+1, 5874, 5874, 23, 260, 0x601b5325
+0, 5888, 5888, 111, 7254, 0xbd097ba7
+1, 5897, 5897, 23, 260, 0x309c68d0
+1, 5921, 5921, 23, 260, 0x7bbe5d49
+1, 5944, 5944, 23, 260, 0x77bc6e47
+1, 5967, 5967, 23, 260, 0x3e0a6b0b
+1, 5990, 5990, 23, 260, 0x2ae458c4
+0, 6000, 6000, 111, 7189, 0x46e06d43
+1, 6013, 6013, 23, 260, 0x17576d4f
+1, 6037, 6037, 23, 260, 0x496c4bbd
+1, 6060, 6060, 23, 260, 0x972758a0
+1, 6083, 6083, 23, 260, 0xa9897452
+1, 6106, 6106, 23, 260, 0xf58c6b92
+0, 6111, 6111, 111, 7283, 0x19dd7319
+1, 6130, 6130, 23, 260, 0x8368709a
+1, 6153, 6153, 23, 260, 0x3890643f
+1, 6176, 6176, 23, 260, 0xdcc1472c
+1, 6199, 6199, 23, 260, 0xb601605c
+0, 6222, 6222, 111, 7161, 0x23171d02
+1, 6222, 6222, 23, 260, 0xfafd6e13
+1, 6246, 6246, 23, 260, 0x20a55dbf
+1, 6269, 6269, 23, 260, 0x84a147e6
+1, 6292, 6292, 23, 260, 0xe2c75bfd
+1, 6315, 6315, 23, 260, 0x52f672c4
+0, 6333, 6333, 111, 6976, 0xcc610c26
+1, 6339, 6339, 23, 260, 0x98af579a
+1, 6362, 6362, 23, 260, 0xf2034f37
+1, 6385, 6385, 23, 260, 0x75576856
+1, 6408, 6408, 23, 260, 0x4a796f1b
+1, 6431, 6431, 23, 260, 0x3a7a5612
+0, 6444, 6444, 111, 7056, 0x6cd917b0
+1, 6455, 6455, 23, 260, 0x1c0646bd
+1, 6478, 6478, 23, 260, 0xfccd6e2c
+1, 6501, 6501, 23, 260, 0x2bdd7139
+1, 6524, 6524, 23, 260, 0xadb4519a
+1, 6548, 6548, 23, 260, 0x8ef655b5
+0, 6555, 6555, 111, 6736, 0x02b78951
+1, 6571, 6571, 23, 260, 0x157852f6
+1, 6594, 6594, 23, 260, 0xec3a4aa8
+1, 6617, 6617, 23, 260, 0x5fa77041
+1, 6640, 6640, 23, 260, 0xe862690f
+1, 6664, 6664, 23, 260, 0xad1759ce
+0, 6666, 6666, 111, 6540, 0x767e0854
+1, 6687, 6687, 23, 260, 0x856f6d2e
+1, 6710, 6710, 23, 260, 0x19496938
+1, 6733, 6733, 23, 260, 0xf3135c06
+1, 6757, 6757, 23, 260, 0xbec861ab
+0, 6777, 6777, 111, 6170, 0xc84962fb
+1, 6780, 6780, 23, 260, 0x97486f09
+1, 6803, 6803, 23, 260, 0x2dcb64ed
+1, 6826, 6826, 23, 260, 0xac196fe8
+1, 6849, 6849, 23, 260, 0xa7d460f8
+1, 6873, 6873, 23, 260, 0x02e55631
+0, 6888, 6888, 111, 6169, 0x27e06c03
+1, 6896, 6896, 23, 260, 0x92556737
+1, 6919, 6919, 23, 260, 0x9ab25599
+1, 6942, 6942, 23, 260, 0x48017498
+1, 6965, 6965, 23, 260, 0x3f376d65
+1, 6989, 6989, 23, 260, 0x553750e2
+0, 7000, 7000, 111, 5864, 0xd14db83f
+1, 7012, 7012, 23, 260, 0x430a6cb9
+1, 7035, 7035, 23, 260, 0x0d4f3b7e
+1, 7058, 7058, 23, 260, 0xc5ee5733
+1, 7082, 7082, 23, 260, 0xec33744f
+1, 7105, 7105, 23, 260, 0xb7ca6c50
+0, 7111, 7111, 111, 5375, 0x4a21055d
+1, 7128, 7128, 23, 260, 0xca8e6e09
+1, 7151, 7151, 23, 260, 0xde7b67d9
+1, 7174, 7174, 23, 260, 0x1eeb47c6
+1, 7198, 7198, 23, 260, 0x97e355f6
+1, 7221, 7221, 23, 260, 0x4cb871da
+0, 7222, 7222, 111, 5206, 0x95ead3cb
+1, 7244, 7244, 23, 260, 0xf9d65f42
+1, 7267, 7267, 23, 260, 0x4df447f9
+1, 7291, 7291, 23, 260, 0x6da55c39
+1, 7314, 7314, 23, 260, 0xf8487192
+0, 7333, 7333, 111, 5220, 0xcfdcc37e
+1, 7337, 7337, 23, 260, 0xa5ef5e84
+1, 7360, 7360, 23, 260, 0xc750404d
+1, 7383, 7383, 23, 260, 0xe62d5ba7
+1, 7407, 7407, 23, 260, 0xa362739c
+1, 7430, 7430, 23, 260, 0x784c57f9
+0, 7444, 7444, 111, 4946, 0x2d864a77
+1, 7453, 7453, 23, 260, 0xac224b6f
+1, 7476, 7476, 23, 260, 0x34506907
+1, 7500, 7500, 23, 260, 0x94207121
+1, 7523, 7523, 23, 260, 0x018754e6
+1, 7546, 7546, 23, 260, 0xa5355133
+0, 7555, 7555, 111, 4390, 0x2ab9f462
+1, 7569, 7569, 23, 260, 0x93724dac
+1, 7592, 7592, 23, 260, 0x41e24c4c
+1, 7616, 7616, 23, 260, 0x1b2a7301
+1, 7639, 7639, 23, 260, 0xcce36e61
+1, 7662, 7662, 23, 260, 0xb323585a
+0, 7666, 7666, 111, 4051, 0x1d09592e
+1, 7685, 7685, 23, 260, 0x6f7c624d
+1, 7709, 7709, 23, 260, 0x87b96a4a
+1, 7732, 7732, 23, 260, 0xf567622a
+1, 7755, 7755, 23, 260, 0x52ce5d35
+0, 7777, 7777, 111, 3680, 0x39bd6a12
+1, 7778, 7778, 23, 260, 0x58a46c28
+1, 7801, 7801, 23, 260, 0x8e3e6d9a
+1, 7825, 7825, 23, 260, 0x5ef66906
+1, 7848, 7848, 23, 260, 0x351b5f9f
+1, 7871, 7871, 23, 260, 0x90b9588a
+0, 7888, 7888, 111, 2910, 0x6337ece9
+1, 7894, 7894, 23, 260, 0x34e8615f
+1, 7918, 7918, 23, 260, 0xcef75ab9
+1, 7941, 7941, 23, 260, 0x471f6bc8
+1, 7964, 7964, 23, 260, 0xd4756c62
+1, 7987, 7987, 23, 260, 0x7c554702
+0, 8000, 8000, 111, 2153, 0xf4e3bc17
+1, 8010, 8010, 23, 260, 0x185272f1
+1, 8034, 8034, 23, 260, 0x0c364348
+1, 8057, 8057, 23, 260, 0x24354467
+1, 8080, 8080, 23, 260, 0x837d5472
+1, 8103, 8103, 23, 260, 0xece2344f
diff --git a/ffmpeg1/tests/ref/fate/sp5x b/ffmpeg1/tests/ref/fate/sp5x
new file mode 100644
index 0000000..986c111
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sp5x
@@ -0,0 +1,21 @@
+#tb 0: 513/5000
+#tb 1: 1/8000
+0, 0, 0, 1, 115200, 0x8ebcb7f8
+1, 0, 0, 1024, 2048, 0x366ee71c
+0, 1, 1, 1, 115200, 0x1fa8e673
+1, 1024, 1024, 1024, 2048, 0xc62f0414
+0, 2, 2, 1, 115200, 0xec07fb6a
+1, 2048, 2048, 1024, 2048, 0x754e0f19
+0, 3, 3, 1, 115200, 0x6773a8c3
+1, 3072, 3072, 1024, 2048, 0x4a44152a
+0, 4, 4, 1, 115200, 0x0d279643
+1, 4096, 4096, 1024, 2048, 0x4fd3ff01
+0, 5, 5, 1, 115200, 0xb33796e4
+0, 6, 6, 1, 115200, 0xfe11fc79
+1, 5120, 5120, 1024, 2048, 0x11c3fa1b
+0, 7, 7, 1, 115200, 0x4ac8e31b
+1, 6144, 6144, 1024, 2048, 0x9945fa06
+0, 8, 8, 1, 115200, 0x15317942
+1, 7168, 7168, 1024, 2048, 0x12e5071a
+0, 9, 9, 1, 115200, 0x07803f0e
+1, 8192, 8192, 22, 44, 0x7ad110e8
diff --git a/ffmpeg1/tests/ref/fate/srtp b/ffmpeg1/tests/ref/fate/srtp
new file mode 100644
index 0000000..687a59f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/srtp
@@ -0,0 +1,12 @@
+80e0123412345678123456780102030405
+Decrypted content matches input
+Decrypted content matches input
+Decrypted content matches input
+81c90007123456788765432100000000000012340000069ec73069ba000001fd
+Decrypted content matches input
+Decrypted content matches input
+Decrypted content matches input
+80e0123412345678123456780102030405
+81c90007123456788765432100000000000012340000069ec73069ba000001fd
+80e0123412345678123456780102030405
+81c90007123456788765432100000000000012340000069ec73069ba000001fd
diff --git a/ffmpeg1/tests/ref/fate/sub-aqtitle b/ffmpeg1/tests/ref/fate/sub-aqtitle
new file mode 100644
index 0000000..f6900e7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-aqtitle
@@ -0,0 +1 @@
+e888e1354cd0968895ab89cb169fec31
diff --git a/ffmpeg1/tests/ref/fate/sub-charenc b/ffmpeg1/tests/ref/fate/sub-charenc
new file mode 100644
index 0000000..3c4825e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-charenc
@@ -0,0 +1 @@
+a39d7e299a8e25b4ffece0f8d64bf19e
diff --git a/ffmpeg1/tests/ref/fate/sub-jacosub b/ffmpeg1/tests/ref/fate/sub-jacosub
new file mode 100644
index 0000000..b65aee2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-jacosub
@@ -0,0 +1 @@
+4e8f2d1d4130251163432d2a448680be
diff --git a/ffmpeg1/tests/ref/fate/sub-microdvd b/ffmpeg1/tests/ref/fate/sub-microdvd
new file mode 100644
index 0000000..2059989
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-microdvd
@@ -0,0 +1 @@
+35e133576aa3881d2de8dbf39a8d6df7
diff --git a/ffmpeg1/tests/ref/fate/sub-microdvd-remux b/ffmpeg1/tests/ref/fate/sub-microdvd-remux
new file mode 100644
index 0000000..24b5d3d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-microdvd-remux
@@ -0,0 +1 @@
+669e51e357f8a8bd060f2499149c2ded
diff --git a/ffmpeg1/tests/ref/fate/sub-movtext b/ffmpeg1/tests/ref/fate/sub-movtext
new file mode 100644
index 0000000..d91c243
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-movtext
@@ -0,0 +1 @@
+21453e8ddbbe35d1368a99fe563c969d
diff --git a/ffmpeg1/tests/ref/fate/sub-movtextenc b/ffmpeg1/tests/ref/fate/sub-movtextenc
new file mode 100644
index 0000000..8f97497
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-movtextenc
@@ -0,0 +1 @@
+0435265a76ab2f6e66627089d76845f4
diff --git a/ffmpeg1/tests/ref/fate/sub-mpl2 b/ffmpeg1/tests/ref/fate/sub-mpl2
new file mode 100644
index 0000000..8835dd2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-mpl2
@@ -0,0 +1 @@
+3c2fb62002aec3af16d83135a0e3b0fc
diff --git a/ffmpeg1/tests/ref/fate/sub-mpsub b/ffmpeg1/tests/ref/fate/sub-mpsub
new file mode 100644
index 0000000..4e36648
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-mpsub
@@ -0,0 +1 @@
+2c5fafec41479e1d09a32f85e8927d03
diff --git a/ffmpeg1/tests/ref/fate/sub-mpsub-frames b/ffmpeg1/tests/ref/fate/sub-mpsub-frames
new file mode 100644
index 0000000..d5bb44e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-mpsub-frames
@@ -0,0 +1 @@
+cbe6e45848ef77e3080487a88b122104
diff --git a/ffmpeg1/tests/ref/fate/sub-pjs b/ffmpeg1/tests/ref/fate/sub-pjs
new file mode 100644
index 0000000..8b382e7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-pjs
@@ -0,0 +1 @@
+d044f6ffdee48e48efff072b33baee0a
diff --git a/ffmpeg1/tests/ref/fate/sub-realtext b/ffmpeg1/tests/ref/fate/sub-realtext
new file mode 100644
index 0000000..42ac3bb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-realtext
@@ -0,0 +1 @@
+5366f62be001f6fd4a7f48893828bf51
diff --git a/ffmpeg1/tests/ref/fate/sub-sami b/ffmpeg1/tests/ref/fate/sub-sami
new file mode 100644
index 0000000..308e000
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-sami
@@ -0,0 +1 @@
+00642e143339b4ca29dc6e990436387c
diff --git a/ffmpeg1/tests/ref/fate/sub-srt b/ffmpeg1/tests/ref/fate/sub-srt
new file mode 100644
index 0000000..ba5e50a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-srt
@@ -0,0 +1 @@
+a246a00ed72655cb8db3eaf64a522e0d
diff --git a/ffmpeg1/tests/ref/fate/sub-subripenc b/ffmpeg1/tests/ref/fate/sub-subripenc
new file mode 100644
index 0000000..9666e9b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-subripenc
@@ -0,0 +1 @@
+b7cb0eeb34af0da364e29b238f0634ae
diff --git a/ffmpeg1/tests/ref/fate/sub-subviewer b/ffmpeg1/tests/ref/fate/sub-subviewer
new file mode 100644
index 0000000..abae1f7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-subviewer
@@ -0,0 +1 @@
+aef995d49af4517b40589b72cfa918f7
diff --git a/ffmpeg1/tests/ref/fate/sub-subviewer1 b/ffmpeg1/tests/ref/fate/sub-subviewer1
new file mode 100644
index 0000000..116fce7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-subviewer1
@@ -0,0 +1 @@
+0c2096fedf7c971742b2e879bb303ce9
diff --git a/ffmpeg1/tests/ref/fate/sub-vplayer b/ffmpeg1/tests/ref/fate/sub-vplayer
new file mode 100644
index 0000000..b8fc40e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-vplayer
@@ -0,0 +1 @@
+c8201c542f43a9ea42a787ac74d28049
diff --git a/ffmpeg1/tests/ref/fate/sub-webvtt b/ffmpeg1/tests/ref/fate/sub-webvtt
new file mode 100644
index 0000000..45cccde
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub-webvtt
@@ -0,0 +1 @@
+2cf38e2c99f8717f78a91a3f31197fb4
diff --git a/ffmpeg1/tests/ref/fate/sub2video b/ffmpeg1/tests/ref/fate/sub2video
new file mode 100644
index 0000000..f866c21
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sub2video
@@ -0,0 +1,94 @@
+#tb 0: 1/5
+#tb 1: 1/1000
+0, 0, 0, 1, 518400, 0x46c47f38
+0, 1, 1, 1, 518400, 0xa814ca60
+0, 2, 2, 1, 518400, 0xa771e1af
+1, 499, 499, 4960, 1015, 0x19e092d2, F=0x0
+0, 3, 3, 1, 518400, 0x267abb76
+0, 4, 4, 1, 518400, 0x184ca91f
+0, 5, 5, 1, 518400, 0xc348bfee
+0, 6, 6, 1, 518400, 0x80451196
+0, 7, 7, 1, 518400, 0xfeb1781b
+0, 8, 8, 1, 518400, 0xa7e1b76c
+0, 9, 9, 1, 518400, 0x1fa10b77
+0, 10, 10, 1, 518400, 0xbbeaa20e
+0, 11, 11, 1, 518400, 0x5b5ba97f
+0, 12, 12, 1, 518400, 0xe189fbdd
+0, 13, 13, 1, 518400, 0xe143a932
+0, 14, 14, 1, 518400, 0x13f18190
+0, 15, 15, 1, 518400, 0x7eed3662
+0, 16, 16, 1, 518400, 0x2c79137b
+0, 17, 17, 1, 518400, 0xe08c0c5b
+0, 18, 18, 1, 518400, 0x87b62f9d
+0, 19, 19, 1, 518400, 0xe93d71ae
+0, 20, 20, 1, 518400, 0x3038eca5
+0, 21, 21, 1, 518400, 0xd77054bb
+0, 22, 22, 1, 518400, 0x077ca600
+0, 23, 23, 1, 518400, 0xf0ceba79
+0, 24, 24, 1, 518400, 0x4acb661d
+0, 25, 25, 1, 518400, 0xc28ae50a
+0, 26, 26, 1, 518400, 0xa5381dd1
+0, 27, 27, 1, 518400, 0x259f15e5
+0, 28, 28, 1, 518400, 0xe1487038
+0, 29, 29, 1, 518400, 0x7b5e5ec3
+0, 30, 30, 1, 518400, 0x6b638cee
+0, 31, 31, 1, 518400, 0x791da218
+0, 32, 32, 1, 518400, 0xd1e4980c
+0, 33, 33, 1, 518400, 0xce9aa6f8
+0, 34, 34, 1, 518400, 0x9abe6cac
+0, 35, 35, 1, 518400, 0xb472272a
+0, 36, 36, 1, 518400, 0x730bfc44
+0, 37, 37, 1, 518400, 0xf3e0b969
+0, 38, 38, 1, 518400, 0x96a77064
+0, 39, 39, 1, 518400, 0x16e94bf0
+0, 40, 40, 1, 518400, 0x0ba93871
+0, 41, 41, 1, 518400, 0x5e004779
+0, 42, 42, 1, 518400, 0xc87864d5
+0, 43, 43, 1, 518400, 0xa4b7c331
+0, 44, 44, 1, 518400, 0xb8ec424a
+0, 45, 45, 1, 518400, 0x4fa12b83
+0, 46, 46, 1, 518400, 0x55acfb38
+0, 47, 47, 1, 518400, 0xa4d66b64
+0, 48, 48, 1, 518400, 0xd4008e86
+0, 49, 49, 1, 518400, 0x88729869
+1, 15355, 15355, 4733, 2094, 0x3c171425, F=0x0
+1, 48797, 48797, 2560, 2480, 0x7c0edf21, F=0x0
+1, 51433, 51433, 2366, 3059, 0xc95b8a05, F=0x0
+1, 53919, 53919, 2696, 2095, 0x61bb15ed, F=0x0
+1, 56663, 56663, 1262, 1013, 0xc9ae89b7, F=0x0
+1, 58014, 58014, 1661, 969, 0xe01878f0, F=0x0
+1, 67724, 67724, 1365, 844, 0xe7db4fc1, F=0x0
+1, 69175, 69175, 1558, 802, 0xf48531ba, F=0x0
+1, 70819, 70819, 1865, 1709, 0xb4d5a1bd, F=0x0
+1, 72762, 72762, 1968, 2438, 0x99d7bc82, F=0x0
+1, 74806, 74806, 1831, 2116, 0x96514097, F=0x0
+1, 76716, 76716, 1262, 1822, 0xefccc72e, F=0x0
+1, 78051, 78051, 1524, 987, 0x7b927a27, F=0x0
+1, 79644, 79644, 2662, 2956, 0x190778f7, F=0x0
+1, 82380, 82380, 2764, 3094, 0xc021b7d3, F=0x0
+1, 85225, 85225, 2366, 2585, 0x74d0048f, F=0x0
+1, 87652, 87652, 1831, 634, 0x8832fda1, F=0x0
+1, 91531, 91531, 2332, 2080, 0x97a1146f, F=0x0
+1, 95510, 95510, 3299, 2964, 0x8b8f6684, F=0x0
+1, 98872, 98872, 2161, 1875, 0x9002ef71, F=0x0
+1, 101124, 101124, 4096, 3872, 0x20c6ed9c, F=0x0
+1, 105303, 105303, 2730, 3094, 0xf203a663, F=0x0
+1, 108106, 108106, 2059, 2404, 0x41a7b429, F=0x0
+1, 141556, 141556, 1661, 1088, 0xde20aa20, F=0x0
+1, 163445, 163445, 1331, 339, 0x8bd186ef, F=0x0
+1, 168049, 168049, 1900, 1312, 0x0bf20e8d, F=0x0
+1, 172203, 172203, 1695, 1826, 0x9a1ac769, F=0x0
+1, 173947, 173947, 1934, 1474, 0xa9b03cdc, F=0x0
+1, 175957, 175957, 1763, 1019, 0x20409355, F=0x0
+1, 189295, 189295, 1968, 1596, 0x408c726e, F=0x0
+1, 191356, 191356, 1228, 1517, 0xae8c5c2b, F=0x0
+1, 192640, 192640, 1763, 2506, 0xa458d6d4, F=0x0
+1, 195193, 195193, 1092, 1074, 0x397ba9a8, F=0x0
+1, 196369, 196369, 1524, 1715, 0x695ca41e, F=0x0
+1, 197946, 197946, 1160, 789, 0xc63a189e, F=0x0
+1, 199230, 199230, 1627, 1846, 0xeea8c599, F=0x0
+1, 200924, 200924, 1763, 922, 0xd4a87222, F=0x0
+1, 210600, 210600, 1831, 665, 0x55580135, F=0x0
+1, 214771, 214771, 1558, 1216, 0x50d1f6c5, F=0x0
+1, 225640, 225640, 2127, 2133, 0x670c11a5, F=0x0
+1, 227834, 227834, 1262, 1264, 0xc1d9fc57, F=0x0
diff --git a/ffmpeg1/tests/ref/fate/sunraster-1bit-raw b/ffmpeg1/tests/ref/fate/sunraster-1bit-raw
new file mode 100644
index 0000000..123e245
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sunraster-1bit-raw
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 32768, 0x6d16e246
diff --git a/ffmpeg1/tests/ref/fate/sunraster-1bit-rle b/ffmpeg1/tests/ref/fate/sunraster-1bit-rle
new file mode 100644
index 0000000..123e245
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sunraster-1bit-rle
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 32768, 0x6d16e246
diff --git a/ffmpeg1/tests/ref/fate/sunraster-24bit-raw b/ffmpeg1/tests/ref/fate/sunraster-24bit-raw
new file mode 100644
index 0000000..fa059ef
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sunraster-24bit-raw
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 786432, 0xb4d417bf
diff --git a/ffmpeg1/tests/ref/fate/sunraster-24bit-rle b/ffmpeg1/tests/ref/fate/sunraster-24bit-rle
new file mode 100644
index 0000000..fa059ef
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sunraster-24bit-rle
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 786432, 0xb4d417bf
diff --git a/ffmpeg1/tests/ref/fate/sunraster-8bit-raw b/ffmpeg1/tests/ref/fate/sunraster-8bit-raw
new file mode 100644
index 0000000..659b433
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sunraster-8bit-raw
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 786432, 0xf4364008
diff --git a/ffmpeg1/tests/ref/fate/sunraster-8bit-rle b/ffmpeg1/tests/ref/fate/sunraster-8bit-rle
new file mode 100644
index 0000000..659b433
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sunraster-8bit-rle
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 786432, 0xf4364008
diff --git a/ffmpeg1/tests/ref/fate/sunraster-8bit_gray-raw b/ffmpeg1/tests/ref/fate/sunraster-8bit_gray-raw
new file mode 100644
index 0000000..455af5f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/sunraster-8bit_gray-raw
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 786432, 0x5859b48e
diff --git a/ffmpeg1/tests/ref/fate/svq1 b/ffmpeg1/tests/ref/fate/svq1
new file mode 100644
index 0000000..3bcf715
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/svq1
@@ -0,0 +1,151 @@
+#tb 0: 1/15
+0, 0, 0, 1, 21600, 0x7f9389e3
+0, 1, 1, 1, 21600, 0xcebb8896
+0, 2, 2, 1, 21600, 0xef51860a
+0, 3, 3, 1, 21600, 0x88d97e7d
+0, 4, 4, 1, 21600, 0xc7757c88
+0, 5, 5, 1, 21600, 0x2f537ade
+0, 6, 6, 1, 21600, 0xd50a7eff
+0, 7, 7, 1, 21600, 0xdcfb7fc6
+0, 8, 8, 1, 21600, 0x0d608299
+0, 9, 9, 1, 21600, 0x97ca81b4
+0, 10, 10, 1, 21600, 0x791f80e7
+0, 11, 11, 1, 21600, 0x96ae7d33
+0, 12, 12, 1, 21600, 0x4d7474a8
+0, 13, 13, 1, 21600, 0x2ae76f37
+0, 14, 14, 1, 21600, 0x7da76265
+0, 15, 15, 1, 21600, 0x93ae3eb6
+0, 16, 16, 1, 21600, 0xebfd3868
+0, 17, 17, 1, 21600, 0x54f82ffa
+0, 18, 18, 1, 21600, 0x8d5b2ad0
+0, 19, 19, 1, 21600, 0xe67128e6
+0, 20, 20, 1, 21600, 0xb7bf613e
+0, 21, 21, 1, 21600, 0xefd0f51b
+0, 22, 22, 1, 21600, 0x31b7da59
+0, 23, 23, 1, 21600, 0x7a84a8f7
+0, 24, 24, 1, 21600, 0x0351ad27
+0, 25, 25, 1, 21600, 0xed6f434d
+0, 26, 26, 1, 21600, 0x0e771127
+0, 27, 27, 1, 21600, 0x37bf0b95
+0, 28, 28, 1, 21600, 0x30e10a77
+0, 29, 29, 1, 21600, 0x1a48288a
+0, 30, 30, 1, 21600, 0xf43c6770
+0, 31, 31, 1, 21600, 0x3c43ae68
+0, 32, 32, 1, 21600, 0x04dc0949
+0, 33, 33, 1, 21600, 0x7920758d
+0, 34, 34, 1, 21600, 0x6c12bab5
+0, 35, 35, 1, 21600, 0x1ac23706
+0, 36, 36, 1, 21600, 0x7a95cb5f
+0, 37, 37, 1, 21600, 0xf1bfbb46
+0, 38, 38, 1, 21600, 0x773d1d0c
+0, 39, 39, 1, 21600, 0x2e7bea65
+0, 40, 40, 1, 21600, 0xdb1a086f
+0, 41, 41, 1, 21600, 0x5b36b78d
+0, 42, 42, 1, 21600, 0x7b533ca6
+0, 43, 43, 1, 21600, 0x65d75105
+0, 44, 44, 1, 21600, 0xfe6f6207
+0, 45, 45, 1, 21600, 0x44c4ce57
+0, 46, 46, 1, 21600, 0x220f3dae
+0, 47, 47, 1, 21600, 0xb4d20ffb
+0, 48, 48, 1, 21600, 0x8907ad72
+0, 49, 49, 1, 21600, 0xc6418998
+0, 50, 50, 1, 21600, 0x395b6670
+0, 51, 51, 1, 21600, 0x83495b88
+0, 52, 52, 1, 21600, 0x8920d683
+0, 53, 53, 1, 21600, 0xd7fc64ea
+0, 54, 54, 1, 21600, 0x21a3b222
+0, 55, 55, 1, 21600, 0xc11f2dbd
+0, 56, 56, 1, 21600, 0xd1d5495d
+0, 57, 57, 1, 21600, 0x70f2de20
+0, 58, 58, 1, 21600, 0x10adc9a9
+0, 59, 59, 1, 21600, 0xf713c0ec
+0, 60, 60, 1, 21600, 0xa346b3fe
+0, 61, 61, 1, 21600, 0x7945c29b
+0, 62, 62, 1, 21600, 0xb07ceb91
+0, 63, 63, 1, 21600, 0xe1eaf9ef
+0, 64, 64, 1, 21600, 0x6fa915c7
+0, 65, 65, 1, 21600, 0x61952055
+0, 66, 66, 1, 21600, 0x4bca2382
+0, 67, 67, 1, 21600, 0x36161fe2
+0, 68, 68, 1, 21600, 0xf93a28f7
+0, 69, 69, 1, 21600, 0xa02a3d47
+0, 70, 70, 1, 21600, 0x925b3609
+0, 71, 71, 1, 21600, 0x5b6941db
+0, 72, 72, 1, 21600, 0x33154a91
+0, 73, 73, 1, 21600, 0xb1d75c50
+0, 74, 74, 1, 21600, 0x1cb369bd
+0, 75, 75, 1, 21600, 0x3be4eff2
+0, 76, 76, 1, 21600, 0xbb89c301
+0, 77, 77, 1, 21600, 0xc7630d85
+0, 78, 78, 1, 21600, 0xf7441c67
+0, 79, 79, 1, 21600, 0xc23611ef
+0, 80, 80, 1, 21600, 0x840efb21
+0, 81, 81, 1, 21600, 0x7d470a0f
+0, 82, 82, 1, 21600, 0xfe093210
+0, 83, 83, 1, 21600, 0x0f3ea098
+0, 84, 84, 1, 21600, 0xcd72286f
+0, 85, 85, 1, 21600, 0x826f8030
+0, 86, 86, 1, 21600, 0xcda3ace8
+0, 87, 87, 1, 21600, 0x39cb4cd0
+0, 88, 88, 1, 21600, 0xa86a60ac
+0, 89, 89, 1, 21600, 0xcd32ed8e
+0, 90, 90, 1, 21600, 0x769b285d
+0, 91, 91, 1, 21600, 0x10234cd0
+0, 92, 92, 1, 21600, 0x951036b8
+0, 93, 93, 1, 21600, 0xaef248fa
+0, 94, 94, 1, 21600, 0x74e36e84
+0, 95, 95, 1, 21600, 0x3908531b
+0, 96, 96, 1, 21600, 0x342f2a9d
+0, 97, 97, 1, 21600, 0x291d58f3
+0, 98, 98, 1, 21600, 0xcf24b1e5
+0, 99, 99, 1, 21600, 0x3e7c7959
+0, 100, 100, 1, 21600, 0x6517e573
+0, 101, 101, 1, 21600, 0x304cc6db
+0, 102, 102, 1, 21600, 0x272895e4
+0, 103, 103, 1, 21600, 0x52325837
+0, 104, 104, 1, 21600, 0xd01344bd
+0, 105, 105, 1, 21600, 0xd25a370b
+0, 106, 106, 1, 21600, 0x274e0ae9
+0, 107, 107, 1, 21600, 0x6f66138f
+0, 108, 108, 1, 21600, 0xd35a0f60
+0, 109, 109, 1, 21600, 0xe0610863
+0, 110, 110, 1, 21600, 0x920b05fb
+0, 111, 111, 1, 21600, 0x5befe39d
+0, 112, 112, 1, 21600, 0xd167bd58
+0, 113, 113, 1, 21600, 0x653ac504
+0, 114, 114, 1, 21600, 0x8372c6d7
+0, 115, 115, 1, 21600, 0x0302c276
+0, 116, 116, 1, 21600, 0xa176b694
+0, 117, 117, 1, 21600, 0x4c2e935a
+0, 118, 118, 1, 21600, 0xf7ea844e
+0, 119, 119, 1, 21600, 0x76d6c07b
+0, 120, 120, 1, 21600, 0x0a14d610
+0, 121, 121, 1, 21600, 0x0ec9f3f3
+0, 122, 122, 1, 21600, 0xdc90f6ea
+0, 123, 123, 1, 21600, 0xc841f9ef
+0, 124, 124, 1, 21600, 0x7ab5f9b9
+0, 125, 125, 1, 21600, 0xda40f3c2
+0, 126, 126, 1, 21600, 0x0040fb72
+0, 127, 127, 1, 21600, 0x705b0786
+0, 128, 128, 1, 21600, 0x26d5198d
+0, 129, 129, 1, 21600, 0x6f5153ad
+0, 130, 130, 1, 21600, 0x9f26624b
+0, 131, 131, 1, 21600, 0x0d3ea7af
+0, 132, 132, 1, 21600, 0xb957ca79
+0, 133, 133, 1, 21600, 0x03a60612
+0, 134, 134, 1, 21600, 0x3ddc4ff1
+0, 135, 135, 1, 21600, 0x8fe5697f
+0, 136, 136, 1, 21600, 0x3d199b09
+0, 137, 137, 1, 21600, 0x97e2b504
+0, 138, 138, 1, 21600, 0x7563f784
+0, 139, 139, 1, 21600, 0x9a473879
+0, 140, 140, 1, 21600, 0x2e2054e5
+0, 141, 141, 1, 21600, 0x06b3658b
+0, 142, 142, 1, 21600, 0xa37ee249
+0, 143, 143, 1, 21600, 0xa527efa1
+0, 144, 144, 1, 21600, 0x12791532
+0, 145, 145, 1, 21600, 0xc5350145
+0, 146, 146, 1, 21600, 0xcd44f1ac
+0, 147, 147, 1, 21600, 0xe610edfb
+0, 148, 148, 1, 21600, 0x5642f672
+0, 149, 149, 1, 21600, 0xf2bc3e5b
diff --git a/ffmpeg1/tests/ref/fate/svq3 b/ffmpeg1/tests/ref/fate/svq3
new file mode 100644
index 0000000..073d10b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/svq3
@@ -0,0 +1,181 @@
+#tb 0: 1/30
+0, 0, 0, 1, 115200, 0x2c810465
+0, 1, 1, 1, 115200, 0x010b5765
+0, 2, 2, 1, 115200, 0x2be11a4e
+0, 3, 3, 1, 115200, 0x99445d06
+0, 4, 4, 1, 115200, 0x6b54d83c
+0, 5, 5, 1, 115200, 0x3832b76a
+0, 6, 6, 1, 115200, 0x3832b76a
+0, 7, 7, 1, 115200, 0xe18385db
+0, 8, 8, 1, 115200, 0x847d4bf0
+0, 9, 9, 1, 115200, 0x0d650f50
+0, 10, 10, 1, 115200, 0x4b85c44c
+0, 11, 11, 1, 115200, 0xce1927a6
+0, 12, 12, 1, 115200, 0x89353747
+0, 13, 13, 1, 115200, 0x58da43f2
+0, 14, 14, 1, 115200, 0xee9a4eef
+0, 15, 15, 1, 115200, 0xce9453d9
+0, 16, 16, 1, 115200, 0x804a5eb0
+0, 17, 17, 1, 115200, 0xb3d46605
+0, 18, 18, 1, 115200, 0x45b5668e
+0, 19, 19, 1, 115200, 0xdd0d4c5a
+0, 20, 20, 1, 115200, 0x99101301
+0, 21, 21, 1, 115200, 0xf0c3f272
+0, 22, 22, 1, 115200, 0xea21f8b1
+0, 23, 23, 1, 115200, 0xd8e7fbb1
+0, 24, 24, 1, 115200, 0x89d90aa1
+0, 25, 25, 1, 115200, 0x882e19da
+0, 26, 26, 1, 115200, 0xfc0f2709
+0, 27, 27, 1, 115200, 0x9b732f3f
+0, 28, 28, 1, 115200, 0xec453cda
+0, 29, 29, 1, 115200, 0xa77e4989
+0, 30, 30, 1, 115200, 0xad935834
+0, 31, 31, 1, 115200, 0x3a5a6177
+0, 32, 32, 1, 115200, 0xd3c07999
+0, 33, 33, 1, 115200, 0xfad388dd
+0, 34, 34, 1, 115200, 0xaf6e9520
+0, 35, 35, 1, 115200, 0xdb64a4b3
+0, 36, 36, 1, 115200, 0xc6f9b49e
+0, 37, 37, 1, 115200, 0x4446c315
+0, 38, 38, 1, 115200, 0x660bd01c
+0, 39, 39, 1, 115200, 0x963fdd7d
+0, 40, 40, 1, 115200, 0x8733e7b3
+0, 41, 41, 1, 115200, 0x41aaf1d5
+0, 42, 42, 1, 115200, 0xa803fd81
+0, 43, 43, 1, 115200, 0xe2b4077f
+0, 44, 44, 1, 115200, 0xfe6707cb
+0, 45, 45, 1, 115200, 0x027c122d
+0, 46, 46, 1, 115200, 0xbcb81ea8
+0, 47, 47, 1, 115200, 0xd2ac2405
+0, 48, 48, 1, 115200, 0x3d893006
+0, 49, 49, 1, 115200, 0xbdcc3ba8
+0, 50, 50, 1, 115200, 0x83ed4c6b
+0, 51, 51, 1, 115200, 0x69ee5e7c
+0, 52, 52, 1, 115200, 0xfe317411
+0, 53, 53, 1, 115200, 0x849e84e6
+0, 54, 54, 1, 115200, 0x040f945f
+0, 55, 55, 1, 115200, 0x6481ac89
+0, 56, 56, 1, 115200, 0x8a48be9e
+0, 57, 57, 1, 115200, 0xb162ce94
+0, 58, 58, 1, 115200, 0x178dd69a
+0, 59, 59, 1, 115200, 0x64fdecaa
+0, 60, 60, 1, 115200, 0x4b51297e
+0, 61, 61, 1, 115200, 0x3d39a1ae
+0, 62, 62, 1, 115200, 0x900fd939
+0, 63, 63, 1, 115200, 0x7704fb19
+0, 64, 64, 1, 115200, 0xa426137e
+0, 65, 65, 1, 115200, 0x9a112706
+0, 66, 66, 1, 115200, 0x294931f7
+0, 67, 67, 1, 115200, 0x0d0e4372
+0, 68, 68, 1, 115200, 0x33bd50e4
+0, 69, 69, 1, 115200, 0x9c86e3e2
+0, 70, 70, 1, 115200, 0x714af5d5
+0, 71, 71, 1, 115200, 0xc5f9fcd0
+0, 72, 72, 1, 115200, 0x184602bb
+0, 73, 73, 1, 115200, 0x6958e9e6
+0, 74, 74, 1, 115200, 0x5a214952
+0, 75, 75, 1, 115200, 0x706cca0e
+0, 76, 76, 1, 115200, 0x67689363
+0, 77, 77, 1, 115200, 0x459f410c
+0, 78, 78, 1, 115200, 0xa8f4c365
+0, 79, 79, 1, 115200, 0xf1fc50c5
+0, 80, 80, 1, 115200, 0xc22af545
+0, 81, 81, 1, 115200, 0xd39802a2
+0, 82, 82, 1, 115200, 0xb76c04b6
+0, 83, 83, 1, 115200, 0x7a548db4
+0, 84, 84, 1, 115200, 0x79e56765
+0, 85, 85, 1, 115200, 0x3f273a17
+0, 86, 86, 1, 115200, 0xe04366db
+0, 87, 87, 1, 115200, 0x8e10939b
+0, 88, 88, 1, 115200, 0x49220ea2
+0, 89, 89, 1, 115200, 0x35361889
+0, 90, 90, 1, 115200, 0x9b20bdfa
+0, 91, 91, 1, 115200, 0x5d472eaf
+0, 92, 92, 1, 115200, 0xeda43081
+0, 93, 93, 1, 115200, 0x59bae8b4
+0, 94, 94, 1, 115200, 0xf126d6a4
+0, 95, 95, 1, 115200, 0x18106464
+0, 96, 96, 1, 115200, 0x85530c73
+0, 97, 97, 1, 115200, 0xcef32c78
+0, 98, 98, 1, 115200, 0xfd6233a0
+0, 99, 99, 1, 115200, 0xae9d6fc3
+0, 100, 100, 1, 115200, 0x3d0cce10
+0, 101, 101, 1, 115200, 0xfce5f124
+0, 102, 102, 1, 115200, 0x90b10802
+0, 103, 103, 1, 115200, 0xeea44201
+0, 104, 104, 1, 115200, 0x1cefb56d
+0, 105, 105, 1, 115200, 0xd6daa0b1
+0, 106, 106, 1, 115200, 0xd700cef4
+0, 107, 107, 1, 115200, 0x36dbf58f
+0, 108, 108, 1, 115200, 0xdb20d060
+0, 109, 109, 1, 115200, 0x5ca61fd5
+0, 110, 110, 1, 115200, 0x4f271361
+0, 111, 111, 1, 115200, 0xcaf03743
+0, 112, 112, 1, 115200, 0x520f351a
+0, 113, 113, 1, 115200, 0x40bc7b89
+0, 114, 114, 1, 115200, 0xd0af0b08
+0, 115, 115, 1, 115200, 0x6a45290c
+0, 116, 116, 1, 115200, 0x57210c14
+0, 117, 117, 1, 115200, 0xc1e233f9
+0, 118, 118, 1, 115200, 0x96fdfc54
+0, 119, 119, 1, 115200, 0x43a8359c
+0, 120, 120, 1, 115200, 0xd493bfde
+0, 121, 121, 1, 115200, 0xd5339d13
+0, 122, 122, 1, 115200, 0x7542baa0
+0, 123, 123, 1, 115200, 0x268d2cb9
+0, 124, 124, 1, 115200, 0xaf3888bb
+0, 125, 125, 1, 115200, 0xb82f520a
+0, 126, 126, 1, 115200, 0x0feb2981
+0, 127, 127, 1, 115200, 0x45314b58
+0, 128, 128, 1, 115200, 0xb26a193a
+0, 129, 129, 1, 115200, 0xdfdffc38
+0, 130, 130, 1, 115200, 0xec6a55f5
+0, 131, 131, 1, 115200, 0xf6e35716
+0, 132, 132, 1, 115200, 0x5ce8544e
+0, 133, 133, 1, 115200, 0x3e38ddce
+0, 134, 134, 1, 115200, 0x964a2006
+0, 135, 135, 1, 115200, 0xaba138d6
+0, 136, 136, 1, 115200, 0x2f46949c
+0, 137, 137, 1, 115200, 0xbdbdb587
+0, 138, 138, 1, 115200, 0x1bf11e1d
+0, 139, 139, 1, 115200, 0x2632f558
+0, 140, 140, 1, 115200, 0x0e58078b
+0, 141, 141, 1, 115200, 0x2ab2f9be
+0, 142, 142, 1, 115200, 0x9205f1d8
+0, 143, 143, 1, 115200, 0x6a4bd949
+0, 144, 144, 1, 115200, 0xedc1552f
+0, 145, 145, 1, 115200, 0x0a60974d
+0, 146, 146, 1, 115200, 0xe1a1400e
+0, 147, 147, 1, 115200, 0x45f06952
+0, 148, 148, 1, 115200, 0xc5163125
+0, 149, 149, 1, 115200, 0x151da156
+0, 150, 150, 1, 115200, 0x3f34b048
+0, 151, 151, 1, 115200, 0xcf7c1e5d
+0, 152, 152, 1, 115200, 0xed9c4e1c
+0, 153, 153, 1, 115200, 0x47e06453
+0, 154, 154, 1, 115200, 0xc8ce6f19
+0, 155, 155, 1, 115200, 0xac619619
+0, 156, 156, 1, 115200, 0x64711e2d
+0, 157, 157, 1, 115200, 0x1f502b52
+0, 158, 158, 1, 115200, 0x39592c9d
+0, 159, 159, 1, 115200, 0x7dffb901
+0, 160, 160, 1, 115200, 0xc75fa3ce
+0, 161, 161, 1, 115200, 0x625bc977
+0, 162, 162, 1, 115200, 0x15c7fda3
+0, 163, 163, 1, 115200, 0x6e5d35b5
+0, 164, 164, 1, 115200, 0xf847cf88
+0, 165, 165, 1, 115200, 0xc10867fe
+0, 166, 166, 1, 115200, 0xae07fbfc
+0, 167, 167, 1, 115200, 0xc1571542
+0, 168, 168, 1, 115200, 0x4c7d5602
+0, 169, 169, 1, 115200, 0xbe7045aa
+0, 170, 170, 1, 115200, 0xc8b4835b
+0, 171, 171, 1, 115200, 0xf9b7d427
+0, 172, 172, 1, 115200, 0x7fa7c112
+0, 173, 173, 1, 115200, 0xe0105feb
+0, 174, 174, 1, 115200, 0x70784740
+0, 175, 175, 1, 115200, 0xa6801ef5
+0, 176, 176, 1, 115200, 0x9cf35921
+0, 177, 177, 1, 115200, 0x4d956630
+0, 178, 178, 1, 115200, 0x717a25c1
+0, 179, 179, 1, 115200, 0x8f5e39de
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-CBW8 b/ffmpeg1/tests/ref/fate/targa-conformance-CBW8
new file mode 100644
index 0000000..60270d7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-CBW8
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 16384, 0x267e21ef
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-CCM8 b/ffmpeg1/tests/ref/fate/targa-conformance-CCM8
new file mode 100644
index 0000000..45bb181
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-CCM8
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 65536, 0x47e97fe9
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-CTC16 b/ffmpeg1/tests/ref/fate/targa-conformance-CTC16
new file mode 100644
index 0000000..e848ff8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-CTC16
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 32768, 0xa6b3d20d
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-CTC24 b/ffmpeg1/tests/ref/fate/targa-conformance-CTC24
new file mode 100644
index 0000000..c95f406
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-CTC24
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 49152, 0xaca4bc29
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-CTC32 b/ffmpeg1/tests/ref/fate/targa-conformance-CTC32
new file mode 100644
index 0000000..aad3bfc
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-CTC32
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 65536, 0xcf98bc29
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-UBW8 b/ffmpeg1/tests/ref/fate/targa-conformance-UBW8
new file mode 100644
index 0000000..60270d7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-UBW8
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 16384, 0x267e21ef
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-UCM8 b/ffmpeg1/tests/ref/fate/targa-conformance-UCM8
new file mode 100644
index 0000000..45bb181
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-UCM8
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 65536, 0x47e97fe9
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-UTC16 b/ffmpeg1/tests/ref/fate/targa-conformance-UTC16
new file mode 100644
index 0000000..e848ff8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-UTC16
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 32768, 0xa6b3d20d
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-UTC24 b/ffmpeg1/tests/ref/fate/targa-conformance-UTC24
new file mode 100644
index 0000000..c95f406
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-UTC24
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 49152, 0xaca4bc29
diff --git a/ffmpeg1/tests/ref/fate/targa-conformance-UTC32 b/ffmpeg1/tests/ref/fate/targa-conformance-UTC32
new file mode 100644
index 0000000..aad3bfc
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-conformance-UTC32
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 65536, 0xcf98bc29
diff --git a/ffmpeg1/tests/ref/fate/targa-top-to-bottom b/ffmpeg1/tests/ref/fate/targa-top-to-bottom
new file mode 100644
index 0000000..4d9577a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/targa-top-to-bottom
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 196608, 0xb29ec51a
diff --git a/ffmpeg1/tests/ref/fate/theora-coeff-level64 b/ffmpeg1/tests/ref/fate/theora-coeff-level64
new file mode 100644
index 0000000..4bfafaf
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/theora-coeff-level64
@@ -0,0 +1,9 @@
+#tb 0: 1/15
+0, 0, 0, 1, 4617600, 0x4ba6df50
+0, 1, 1, 1, 4617600, 0x419fdeaf
+0, 2, 2, 1, 4617600, 0xeb2edced
+0, 3, 3, 1, 4617600, 0xa2bb3a1a
+0, 4, 4, 1, 4617600, 0x411cfb36
+0, 5, 5, 1, 4617600, 0xb2dc22ed
+0, 6, 6, 1, 4617600, 0x236d23b5
+0, 7, 7, 1, 4617600, 0x7fef275e
diff --git a/ffmpeg1/tests/ref/fate/thp b/ffmpeg1/tests/ref/fate/thp
new file mode 100644
index 0000000..52dd059
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/thp
@@ -0,0 +1,73 @@
+#tb 0: 524288/15712911
+0, 0, 0, 1, 291840, 0xbd7e0b22
+0, 1, 1, 1, 291840, 0xf6e12ca5
+0, 2, 2, 1, 291840, 0x528c7049
+0, 3, 3, 1, 291840, 0x93055de9
+0, 4, 4, 1, 291840, 0xf95a51c1
+0, 5, 5, 1, 291840, 0x6ad3a65a
+0, 6, 6, 1, 291840, 0x494684a7
+0, 7, 7, 1, 291840, 0x74c14eb1
+0, 8, 8, 1, 291840, 0x149fcb7e
+0, 9, 9, 1, 291840, 0x25649761
+0, 10, 10, 1, 291840, 0xbc3f9052
+0, 11, 11, 1, 291840, 0x080edfff
+0, 12, 12, 1, 291840, 0x6d7ad684
+0, 13, 13, 1, 291840, 0x6d53844d
+0, 14, 14, 1, 291840, 0xf7ad5385
+0, 15, 15, 1, 291840, 0x0241b56a
+0, 16, 16, 1, 291840, 0x120122c8
+0, 17, 17, 1, 291840, 0x31b0f32a
+0, 18, 18, 1, 291840, 0x14068b98
+0, 19, 19, 1, 291840, 0xeeec658b
+0, 20, 20, 1, 291840, 0x9376374c
+0, 21, 21, 1, 291840, 0x091e8c6e
+0, 22, 22, 1, 291840, 0x744ad07f
+0, 23, 23, 1, 291840, 0xf99c554e
+0, 24, 24, 1, 291840, 0xc84bd677
+0, 25, 25, 1, 291840, 0x3898d474
+0, 26, 26, 1, 291840, 0x1e2910c8
+0, 27, 27, 1, 291840, 0xb11f58bc
+0, 28, 28, 1, 291840, 0xf89170ee
+0, 29, 29, 1, 291840, 0x8f239dc3
+0, 30, 30, 1, 291840, 0x8538c76c
+0, 31, 31, 1, 291840, 0x162ee66f
+0, 32, 32, 1, 291840, 0x5f8708a5
+0, 33, 33, 1, 291840, 0x95802dfb
+0, 34, 34, 1, 291840, 0xc424630d
+0, 35, 35, 1, 291840, 0xfb8a8667
+0, 36, 36, 1, 291840, 0xbad79af5
+0, 37, 37, 1, 291840, 0xc733b325
+0, 38, 38, 1, 291840, 0x4bfbcd70
+0, 39, 39, 1, 291840, 0x502cd950
+0, 40, 40, 1, 291840, 0x8461ca2c
+0, 41, 41, 1, 291840, 0x00219b0d
+0, 42, 42, 1, 291840, 0xa4de45e1
+0, 43, 43, 1, 291840, 0xacd3f4df
+0, 44, 44, 1, 291840, 0x2203a369
+0, 45, 45, 1, 291840, 0x0a66effa
+0, 46, 46, 1, 291840, 0x7ac1fd91
+0, 47, 47, 1, 291840, 0x84970aa7
+0, 48, 48, 1, 291840, 0x569d145f
+0, 49, 49, 1, 291840, 0xe51efe1b
+0, 50, 50, 1, 291840, 0x38e2cd78
+0, 51, 51, 1, 291840, 0x93428ea2
+0, 52, 52, 1, 291840, 0x3d3f5b17
+0, 53, 53, 1, 291840, 0x9546127d
+0, 54, 54, 1, 291840, 0x4178be54
+0, 55, 55, 1, 291840, 0x0d0f8036
+0, 56, 56, 1, 291840, 0xc20557b9
+0, 57, 57, 1, 291840, 0x6d4b2d64
+0, 58, 58, 1, 291840, 0xa750125d
+0, 59, 59, 1, 291840, 0x04623ce3
+0, 60, 60, 1, 291840, 0xc7f2bbc7
+0, 61, 61, 1, 291840, 0x6e271336
+0, 62, 62, 1, 291840, 0xcfbd4246
+0, 63, 63, 1, 291840, 0xe1493be9
+0, 64, 64, 1, 291840, 0x6c731194
+0, 65, 65, 1, 291840, 0x0fc30cc2
+0, 66, 66, 1, 291840, 0x967427f3
+0, 67, 67, 1, 291840, 0x55ae3b00
+0, 68, 68, 1, 291840, 0xbe4f200c
+0, 69, 69, 1, 291840, 0xc515e443
+0, 70, 70, 1, 291840, 0xd738bd69
+0, 71, 71, 1, 291840, 0xa8e0ab69
diff --git a/ffmpeg1/tests/ref/fate/tiertex-seq b/ffmpeg1/tests/ref/fate/tiertex-seq
new file mode 100644
index 0000000..74407e7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/tiertex-seq
@@ -0,0 +1,100 @@
+#tb 0: 1/25
+#tb 1: 1/22050
+1, 0, 0, 882, 1764, 0x00000000
+1, 882, 882, 882, 1764, 0x80a253d9
+0, 2, 2, 1, 98304, 0x2e5db4a4
+1, 1764, 1764, 882, 1764, 0x95a16721
+1, 2646, 2646, 882, 1764, 0x0f0d4cb6
+1, 3528, 3528, 882, 1764, 0x75026779
+1, 4410, 4410, 882, 1764, 0xb4356e37
+0, 6, 6, 1, 98304, 0xb20c19d0
+1, 5292, 5292, 882, 1764, 0xfafa64cb
+1, 6174, 6174, 882, 1764, 0xe8fd7970
+1, 7056, 7056, 882, 1764, 0x666879b7
+0, 9, 9, 1, 98304, 0x6b8538c0
+1, 7938, 7938, 882, 1764, 0xf2cd7770
+1, 8820, 8820, 882, 1764, 0x54317a1c
+1, 9702, 9702, 882, 1764, 0x9c396930
+1, 10584, 10584, 882, 1764, 0x87115ec4
+0, 13, 13, 1, 98304, 0x172207e3
+1, 11466, 11466, 882, 1764, 0x0c9b69b6
+1, 12348, 12348, 882, 1764, 0x8c3a758a
+1, 13230, 13230, 882, 1764, 0x605d776a
+0, 16, 16, 1, 98304, 0x63fb7dc1
+1, 14112, 14112, 882, 1764, 0x0556852d
+1, 14994, 14994, 882, 1764, 0x7d4363f8
+1, 15876, 15876, 882, 1764, 0xc5cd75d0
+1, 16758, 16758, 882, 1764, 0x3ff3646d
+0, 20, 20, 1, 98304, 0x37cf1601
+1, 17640, 17640, 882, 1764, 0x10136d25
+1, 18522, 18522, 882, 1764, 0xeb1a6cd0
+1, 19404, 19404, 882, 1764, 0xef937ed1
+1, 20286, 20286, 882, 1764, 0x2d2b6f79
+0, 24, 24, 1, 98304, 0x82941990
+1, 21168, 21168, 882, 1764, 0x6f457231
+1, 22050, 22050, 882, 1764, 0x56267c9d
+1, 22932, 22932, 882, 1764, 0xd49e79c8
+0, 27, 27, 1, 98304, 0xe0a5309e
+1, 23814, 23814, 882, 1764, 0xc726703d
+1, 24696, 24696, 882, 1764, 0x2abf8074
+1, 25578, 25578, 882, 1764, 0xb50c556d
+1, 26460, 26460, 882, 1764, 0xc1f2523c
+0, 31, 31, 1, 98304, 0x164cb67d
+1, 27342, 27342, 882, 1764, 0x850a6f93
+1, 28224, 28224, 882, 1764, 0x8da76c31
+1, 29106, 29106, 882, 1764, 0xfcccdf13
+0, 34, 34, 1, 98304, 0xed2189f8
+1, 29988, 29988, 882, 1764, 0x00000000
+1, 30870, 30870, 882, 1764, 0x00000000
+1, 31752, 31752, 882, 1764, 0x00000000
+1, 32634, 32634, 882, 1764, 0x00000000
+0, 38, 38, 1, 98304, 0x7215e529
+1, 33516, 33516, 882, 1764, 0x00000000
+1, 34398, 34398, 882, 1764, 0x00000000
+1, 35280, 35280, 882, 1764, 0x00000000
+0, 41, 41, 1, 98304, 0x170c783b
+1, 36162, 36162, 882, 1764, 0x00000000
+1, 37044, 37044, 882, 1764, 0x00000000
+1, 37926, 37926, 882, 1764, 0x00000000
+1, 38808, 38808, 882, 1764, 0x00000000
+0, 45, 45, 1, 98304, 0xf6bd74c7
+1, 39690, 39690, 882, 1764, 0x00000000
+1, 40572, 40572, 882, 1764, 0x00000000
+1, 41454, 41454, 882, 1764, 0x00000000
+1, 42336, 42336, 882, 1764, 0x00000000
+0, 49, 49, 1, 98304, 0x1efd38c4
+1, 43218, 43218, 882, 1764, 0x00000000
+1, 44100, 44100, 882, 1764, 0x00000000
+1, 44982, 44982, 882, 1764, 0x00000000
+0, 52, 52, 1, 98304, 0x29c26bba
+1, 45864, 45864, 882, 1764, 0x00000000
+1, 46746, 46746, 882, 1764, 0x00000000
+1, 47628, 47628, 882, 1764, 0x00000000
+1, 48510, 48510, 882, 1764, 0x00000000
+0, 56, 56, 1, 98304, 0x880a6313
+1, 49392, 49392, 882, 1764, 0x00000000
+1, 50274, 50274, 882, 1764, 0x00000000
+1, 51156, 51156, 882, 1764, 0x00000000
+0, 59, 59, 1, 98304, 0x73f5bb00
+1, 52038, 52038, 882, 1764, 0x00000000
+1, 52920, 52920, 882, 1764, 0x00000000
+1, 53802, 53802, 882, 1764, 0x00000000
+1, 54684, 54684, 882, 1764, 0x00000000
+0, 63, 63, 1, 98304, 0xc85b19ec
+1, 55566, 55566, 882, 1764, 0x00000000
+1, 56448, 56448, 882, 1764, 0x00000000
+1, 57330, 57330, 882, 1764, 0x00000000
+0, 66, 66, 1, 98304, 0x00000000
+1, 58212, 58212, 882, 1764, 0x00000000
+1, 59094, 59094, 882, 1764, 0x00000000
+1, 59976, 59976, 882, 1764, 0x00000000
+1, 60858, 60858, 882, 1764, 0x00000000
+0, 70, 70, 1, 98304, 0x00000000
+1, 61740, 61740, 882, 1764, 0x00000000
+1, 62622, 62622, 882, 1764, 0x00000000
+1, 63504, 63504, 882, 1764, 0x00000000
+1, 64386, 64386, 882, 1764, 0x00000000
+0, 74, 74, 1, 98304, 0x00000000
+1, 65268, 65268, 882, 1764, 0x00000000
+1, 66150, 66150, 882, 1764, 0x00000000
+1, 67032, 67032, 882, 1764, 0x00000000
diff --git a/ffmpeg1/tests/ref/fate/tiff-fax-g3 b/ffmpeg1/tests/ref/fate/tiff-fax-g3
new file mode 100644
index 0000000..fa7bc2f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/tiff-fax-g3
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1000384, 0xb758eb8b
diff --git a/ffmpeg1/tests/ref/fate/tiff-fax-g3s b/ffmpeg1/tests/ref/fate/tiff-fax-g3s
new file mode 100644
index 0000000..fa7bc2f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/tiff-fax-g3s
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1000384, 0xb758eb8b
diff --git a/ffmpeg1/tests/ref/fate/tmv b/ffmpeg1/tests/ref/fate/tmv
new file mode 100644
index 0000000..6203e86
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/tmv
@@ -0,0 +1,222 @@
+#tb 0: 184/11029
+#tb 1: 1/22058
+0, 0, 0, 1, 192000, 0xc698297a
+1, 0, 0, 368, 736, 0xf63db497
+0, 1, 1, 1, 192000, 0x8d5bd6be
+1, 368, 368, 368, 736, 0xbc42caef
+0, 2, 2, 1, 192000, 0x21c32083
+1, 736, 736, 368, 736, 0x5619a45a
+0, 3, 3, 1, 192000, 0x849cd4c0
+1, 1104, 1104, 368, 736, 0x1b8ac0f9
+0, 4, 4, 1, 192000, 0x8c63a4f0
+1, 1472, 1472, 368, 736, 0x55dcac78
+0, 5, 5, 1, 192000, 0x5dbee9ab
+1, 1840, 1840, 368, 736, 0xd9f2a266
+0, 6, 6, 1, 192000, 0x2b12d9bb
+1, 2208, 2208, 368, 736, 0x22f8af51
+0, 7, 7, 1, 192000, 0x1a737e17
+1, 2576, 2576, 368, 736, 0x838bacb8
+0, 8, 8, 1, 192000, 0x90536c29
+1, 2944, 2944, 368, 736, 0x7b29b4f9
+0, 9, 9, 1, 192000, 0xd7795243
+1, 3312, 3312, 368, 736, 0x5a01b505
+0, 10, 10, 1, 192000, 0x08847e17
+1, 3680, 3680, 368, 736, 0xc330abb4
+0, 11, 11, 1, 192000, 0x47aa5a3b
+1, 4048, 4048, 368, 736, 0x84d6c49d
+0, 12, 12, 1, 192000, 0x9435266f
+1, 4416, 4416, 368, 736, 0xd0a1a588
+0, 13, 13, 1, 192000, 0x87e7ea9c
+1, 4784, 4784, 368, 736, 0x9083a382
+0, 14, 14, 1, 192000, 0x6dc00285
+1, 5152, 5152, 368, 736, 0x291eb335
+0, 15, 15, 1, 192000, 0xf6407ddf
+1, 5520, 5520, 368, 736, 0xdda2b452
+0, 16, 16, 1, 192000, 0x55541c09
+1, 5888, 5888, 368, 736, 0x82feab67
+0, 17, 17, 1, 192000, 0xf1c4f5be
+1, 6256, 6256, 368, 736, 0xfca6b943
+0, 18, 18, 1, 192000, 0xe59ff74c
+1, 6624, 6624, 368, 736, 0x2a4ea1fd
+0, 19, 19, 1, 192000, 0x0fedcf04
+1, 6992, 6992, 368, 736, 0xbb4bc783
+0, 20, 20, 1, 192000, 0x04b893dd
+1, 7360, 7360, 368, 736, 0x8c10a799
+0, 21, 21, 1, 192000, 0xfef47d83
+1, 7728, 7728, 368, 736, 0x8751a53b
+0, 22, 22, 1, 192000, 0x07bde9ed
+1, 8096, 8096, 368, 736, 0x4b3c9fc3
+0, 23, 23, 1, 192000, 0xb8003fd2
+1, 8464, 8464, 368, 736, 0x5dad9b46
+0, 24, 24, 1, 192000, 0x4eb6b3ed
+1, 8832, 8832, 368, 736, 0xe106a3e6
+0, 25, 25, 1, 192000, 0x320b0b34
+1, 9200, 9200, 368, 736, 0xa42a9a3b
+0, 26, 26, 1, 192000, 0x5156e90f
+1, 9568, 9568, 368, 736, 0xb5069901
+0, 27, 27, 1, 192000, 0x34778cde
+1, 9936, 9936, 368, 736, 0x3556c3c3
+0, 28, 28, 1, 192000, 0xd8d96e44
+1, 10304, 10304, 368, 736, 0xa870c1ee
+0, 29, 29, 1, 192000, 0x962ae9f3
+1, 10672, 10672, 368, 736, 0xc388b6d8
+0, 30, 30, 1, 192000, 0x3d29d85a
+1, 11040, 11040, 368, 736, 0xe167a2b0
+0, 31, 31, 1, 192000, 0x838554fa
+1, 11408, 11408, 368, 736, 0x15aeb59d
+0, 32, 32, 1, 192000, 0xd64a3b93
+1, 11776, 11776, 368, 736, 0xa576c0bc
+0, 33, 33, 1, 192000, 0x380ef140
+1, 12144, 12144, 368, 736, 0x44f3b827
+0, 34, 34, 1, 192000, 0x076b38c0
+1, 12512, 12512, 368, 736, 0xfa5ecd84
+0, 35, 35, 1, 192000, 0xd9a67c7c
+1, 12880, 12880, 368, 736, 0xb7b996f6
+0, 36, 36, 1, 192000, 0xc2849a50
+1, 13248, 13248, 368, 736, 0xb390c311
+0, 37, 37, 1, 192000, 0x9b94a347
+1, 13616, 13616, 368, 736, 0xc5a9ab0f
+0, 38, 38, 1, 192000, 0xe3ba9c07
+1, 13984, 13984, 368, 736, 0x1a3aa3f6
+0, 39, 39, 1, 192000, 0xef0011f5
+1, 14352, 14352, 368, 736, 0xdaaf9e42
+0, 40, 40, 1, 192000, 0xa98381e8
+1, 14720, 14720, 368, 736, 0xad8fb0ba
+0, 41, 41, 1, 192000, 0x27e5ce9b
+1, 15088, 15088, 368, 736, 0x9cce9e05
+0, 42, 42, 1, 192000, 0x8568e33f
+1, 15456, 15456, 368, 736, 0x70639e6f
+0, 43, 43, 1, 192000, 0x540633b6
+1, 15824, 15824, 368, 736, 0xc5e1ba9b
+0, 44, 44, 1, 192000, 0xd8fcfbed
+1, 16192, 16192, 368, 736, 0x9e6cb422
+0, 45, 45, 1, 192000, 0x15609e04
+1, 16560, 16560, 368, 736, 0x5c559a1e
+0, 46, 46, 1, 192000, 0x7e4f5c9b
+1, 16928, 16928, 368, 736, 0xb071c2da
+0, 47, 47, 1, 192000, 0xef14950d
+1, 17296, 17296, 368, 736, 0xd9bdb9eb
+0, 48, 48, 1, 192000, 0x9e0b85b9
+1, 17664, 17664, 368, 736, 0x5ecab2d5
+0, 49, 49, 1, 192000, 0xf3b69b95
+1, 18032, 18032, 368, 736, 0x0f78a8fe
+0, 50, 50, 1, 192000, 0x09b6db39
+1, 18400, 18400, 368, 736, 0x74ebaccd
+0, 51, 51, 1, 192000, 0x4dc9a300
+1, 18768, 18768, 368, 736, 0x2cfab78e
+0, 52, 52, 1, 192000, 0x29d9fdde
+1, 19136, 19136, 368, 736, 0x32c6c26e
+0, 53, 53, 1, 192000, 0x22e79283
+1, 19504, 19504, 368, 736, 0xbe339d74
+0, 54, 54, 1, 192000, 0x5f5c95aa
+1, 19872, 19872, 368, 736, 0x2c31b687
+0, 55, 55, 1, 192000, 0x4d76efde
+1, 20240, 20240, 368, 736, 0xcbb0b8d5
+0, 56, 56, 1, 192000, 0xb1d79f6a
+1, 20608, 20608, 368, 736, 0x17bcb56a
+0, 57, 57, 1, 192000, 0xedfe6012
+1, 20976, 20976, 368, 736, 0x116fb70c
+0, 58, 58, 1, 192000, 0x4a56033a
+1, 21344, 21344, 368, 736, 0xa22eb34f
+0, 59, 59, 1, 192000, 0xdbc9f746
+1, 21712, 21712, 368, 736, 0x130bc9bb
+0, 60, 60, 1, 192000, 0xedff8a16
+1, 22080, 22080, 368, 736, 0xbb0b77aa
+0, 61, 61, 1, 192000, 0x46b5f843
+1, 22448, 22448, 368, 736, 0xafb5a9f0
+0, 62, 62, 1, 192000, 0xbd12dbfc
+1, 22816, 22816, 368, 736, 0xaf55f1a3
+0, 63, 63, 1, 192000, 0xacf2a336
+1, 23184, 23184, 368, 736, 0x988e9669
+0, 64, 64, 1, 192000, 0x13843e7f
+1, 23552, 23552, 368, 736, 0x4e2cc9ab
+0, 65, 65, 1, 192000, 0x6fda777f
+1, 23920, 23920, 368, 736, 0x34b3b7ea
+0, 66, 66, 1, 192000, 0x16ffef07
+1, 24288, 24288, 368, 736, 0x1252a16b
+0, 67, 67, 1, 192000, 0xb36c06c6
+1, 24656, 24656, 368, 736, 0x04279e74
+0, 68, 68, 1, 192000, 0xd65746b1
+1, 25024, 25024, 368, 736, 0x9c2ecb2e
+0, 69, 69, 1, 192000, 0x2817079b
+1, 25392, 25392, 368, 736, 0x6c16945a
+0, 70, 70, 1, 192000, 0xadb60837
+1, 25760, 25760, 368, 736, 0x2c0cc1f9
+0, 71, 71, 1, 192000, 0x60cb0d87
+1, 26128, 26128, 368, 736, 0x52fba868
+0, 72, 72, 1, 192000, 0x14e5b02b
+1, 26496, 26496, 368, 736, 0xe2a2a5be
+0, 73, 73, 1, 192000, 0x574fd8f4
+1, 26864, 26864, 368, 736, 0x2f56a95b
+0, 74, 74, 1, 192000, 0xffb9a8fa
+1, 27232, 27232, 368, 736, 0x573196a0
+0, 75, 75, 1, 192000, 0xc2904a3e
+1, 27600, 27600, 368, 736, 0xb542c1dc
+0, 76, 76, 1, 192000, 0x22e77c9b
+1, 27968, 27968, 368, 736, 0x7f6a9964
+0, 77, 77, 1, 192000, 0xd76d81c2
+1, 28336, 28336, 368, 736, 0xc39db324
+0, 78, 78, 1, 192000, 0xf5b0fcc8
+1, 28704, 28704, 368, 736, 0xa2dbb058
+0, 79, 79, 1, 192000, 0xc452ce4d
+1, 29072, 29072, 368, 736, 0x8bfac722
+0, 80, 80, 1, 192000, 0x64a53e4f
+1, 29440, 29440, 368, 736, 0x5e679406
+0, 81, 81, 1, 192000, 0xe6c115da
+1, 29808, 29808, 368, 736, 0xd7a8c2aa
+0, 82, 82, 1, 192000, 0x959d45fe
+1, 30176, 30176, 368, 736, 0x5ec6a7a0
+0, 83, 83, 1, 192000, 0xabb270b6
+1, 30544, 30544, 368, 736, 0x9f33c47f
+0, 84, 84, 1, 192000, 0x451642b8
+1, 30912, 30912, 368, 736, 0x4c4998bf
+0, 85, 85, 1, 192000, 0x028b2202
+1, 31280, 31280, 368, 736, 0x2363c344
+0, 86, 86, 1, 192000, 0xf5d79b86
+1, 31648, 31648, 368, 736, 0xecf9a09f
+0, 87, 87, 1, 192000, 0xebe0623e
+1, 32016, 32016, 368, 736, 0x5a069e69
+0, 88, 88, 1, 192000, 0x7560d1eb
+1, 32384, 32384, 368, 736, 0xe2e5b106
+0, 89, 89, 1, 192000, 0xcbf85785
+1, 32752, 32752, 368, 736, 0x7ff4b09e
+0, 90, 90, 1, 192000, 0x180f6aca
+1, 33120, 33120, 368, 736, 0x0157acd2
+0, 91, 91, 1, 192000, 0xea8ecb95
+1, 33488, 33488, 368, 736, 0x64849b5a
+0, 92, 92, 1, 192000, 0x6a5e3639
+1, 33856, 33856, 368, 736, 0x0399b037
+0, 93, 93, 1, 192000, 0x5aa6c22c
+1, 34224, 34224, 368, 736, 0xa57ea80f
+0, 94, 94, 1, 192000, 0xdbb50948
+1, 34592, 34592, 368, 736, 0x233eb2a4
+0, 95, 95, 1, 192000, 0x0184a90a
+1, 34960, 34960, 368, 736, 0x8aa5dfa0
+0, 96, 96, 1, 192000, 0x0efc1358
+1, 35328, 35328, 368, 736, 0x0c9fa877
+0, 97, 97, 1, 192000, 0x29053255
+1, 35696, 35696, 368, 736, 0xbe6faef2
+0, 98, 98, 1, 192000, 0x3a7e239d
+1, 36064, 36064, 368, 736, 0xf800c0f2
+0, 99, 99, 1, 192000, 0x3bd99ca5
+1, 36432, 36432, 368, 736, 0x1d68a964
+0, 100, 100, 1, 192000, 0xe1b5a4d6
+1, 36800, 36800, 368, 736, 0x0e4f8872
+0, 101, 101, 1, 192000, 0xf487f8bb
+1, 37168, 37168, 368, 736, 0x31c6ed1c
+0, 102, 102, 1, 192000, 0x8b14387c
+1, 37536, 37536, 368, 736, 0x7448a8d2
+0, 103, 103, 1, 192000, 0xdaeb9cb4
+1, 37904, 37904, 368, 736, 0x79a2ac09
+0, 104, 104, 1, 192000, 0xdc1d2f5b
+1, 38272, 38272, 368, 736, 0xbdbfa397
+0, 105, 105, 1, 192000, 0x4dcab167
+1, 38640, 38640, 368, 736, 0xa5deb8bb
+0, 106, 106, 1, 192000, 0x87fcf0d3
+1, 39008, 39008, 368, 736, 0x4565d179
+0, 107, 107, 1, 192000, 0x36d37542
+1, 39376, 39376, 368, 736, 0x64d89f91
+0, 108, 108, 1, 192000, 0x59ba49c5
+1, 39744, 39744, 368, 736, 0x32319f68
+0, 109, 109, 1, 192000, 0xf679b712
+1, 40112, 40112, 368, 736, 0x3efdc04f
diff --git a/ffmpeg1/tests/ref/fate/truemotion1-15 b/ffmpeg1/tests/ref/fate/truemotion1-15
new file mode 100644
index 0000000..af4a320
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/truemotion1-15
@@ -0,0 +1,106 @@
+#tb 0: 1/15
+0, 0, 0, 1, 161280, 0x677c9fb3
+0, 1, 1, 1, 161280, 0xaa280e0a
+0, 2, 2, 1, 161280, 0x8a4d2225
+0, 3, 3, 1, 161280, 0xf10f46a8
+0, 4, 4, 1, 161280, 0x98d9eab6
+0, 5, 5, 1, 161280, 0xa543ae1e
+0, 6, 6, 1, 161280, 0x79d717ae
+0, 7, 7, 1, 161280, 0x1a87e2cb
+0, 8, 8, 1, 161280, 0xe5c000ac
+0, 9, 9, 1, 161280, 0xa5827077
+0, 10, 10, 1, 161280, 0xfd0615ee
+0, 11, 11, 1, 161280, 0xc6fdc861
+0, 12, 12, 1, 161280, 0xaa007c7e
+0, 13, 13, 1, 161280, 0xf15e3a96
+0, 14, 14, 1, 161280, 0xce827ae1
+0, 15, 15, 1, 161280, 0xf379fc13
+0, 16, 16, 1, 161280, 0x89686a0c
+0, 17, 17, 1, 161280, 0x7e8342bd
+0, 18, 18, 1, 161280, 0x640dab86
+0, 19, 19, 1, 161280, 0xc6a86456
+0, 20, 20, 1, 161280, 0xe360b538
+0, 21, 21, 1, 161280, 0xbcc21064
+0, 22, 22, 1, 161280, 0x95bc4e63
+0, 23, 23, 1, 161280, 0x390fa1bd
+0, 24, 24, 1, 161280, 0xa35b3bb9
+0, 25, 25, 1, 161280, 0x730b0779
+0, 26, 26, 1, 161280, 0xf3c3a3eb
+0, 27, 27, 1, 161280, 0x676ecbaa
+0, 28, 28, 1, 161280, 0x06c4a4e5
+0, 29, 29, 1, 161280, 0x177d26d9
+0, 30, 30, 1, 161280, 0xdaf69ebe
+0, 31, 31, 1, 161280, 0xabadc296
+0, 32, 32, 1, 161280, 0xec144665
+0, 33, 33, 1, 161280, 0x6785aa48
+0, 34, 34, 1, 161280, 0x2a0cfcaf
+0, 35, 35, 1, 161280, 0x9288d513
+0, 36, 36, 1, 161280, 0x1d295ad0
+0, 37, 37, 1, 161280, 0xb9fd8406
+0, 38, 38, 1, 161280, 0x98bced49
+0, 39, 39, 1, 161280, 0x42e6fbae
+0, 40, 40, 1, 161280, 0xfd218209
+0, 41, 41, 1, 161280, 0x21c2ef31
+0, 42, 42, 1, 161280, 0xce4be932
+0, 43, 43, 1, 161280, 0xd5c0d5fc
+0, 44, 44, 1, 161280, 0xf8d13076
+0, 45, 45, 1, 161280, 0xdbf86007
+0, 46, 46, 1, 161280, 0x9475a651
+0, 47, 47, 1, 161280, 0x41bf1542
+0, 48, 48, 1, 161280, 0x6945297f
+0, 49, 49, 1, 161280, 0x2282025e
+0, 50, 50, 1, 161280, 0x55aace0c
+0, 51, 51, 1, 161280, 0xc78aa51c
+0, 52, 52, 1, 161280, 0xb4b84e6c
+0, 53, 53, 1, 161280, 0x3bbb3e44
+0, 54, 54, 1, 161280, 0x4dd89d80
+0, 55, 55, 1, 161280, 0xa446a5c5
+0, 56, 56, 1, 161280, 0x8f56b1d6
+0, 57, 57, 1, 161280, 0xa170df87
+0, 58, 58, 1, 161280, 0x4740a4df
+0, 59, 59, 1, 161280, 0x86608ee7
+0, 60, 60, 1, 161280, 0x629b4543
+0, 61, 61, 1, 161280, 0x697fb952
+0, 62, 62, 1, 161280, 0x98e84a51
+0, 63, 63, 1, 161280, 0x97949a90
+0, 64, 64, 1, 161280, 0x6a8c9b96
+0, 65, 65, 1, 161280, 0xafa714ab
+0, 66, 66, 1, 161280, 0x0cf39314
+0, 67, 67, 1, 161280, 0x9ccc8171
+0, 68, 68, 1, 161280, 0x8232d5a8
+0, 69, 69, 1, 161280, 0x250dd5cb
+0, 70, 70, 1, 161280, 0xf764e43a
+0, 71, 71, 1, 161280, 0x2f4bec00
+0, 72, 72, 1, 161280, 0x76f1598b
+0, 73, 73, 1, 161280, 0xa91b84da
+0, 74, 74, 1, 161280, 0x011a77fb
+0, 75, 75, 1, 161280, 0xdbf5341c
+0, 76, 76, 1, 161280, 0x40d5abfa
+0, 77, 77, 1, 161280, 0x9fb8360c
+0, 78, 78, 1, 161280, 0xabc5fba8
+0, 79, 79, 1, 161280, 0x98090909
+0, 80, 80, 1, 161280, 0x9a3613bd
+0, 81, 81, 1, 161280, 0x9071024f
+0, 82, 82, 1, 161280, 0x4df39487
+0, 83, 83, 1, 161280, 0x17658524
+0, 84, 84, 1, 161280, 0xbcd794df
+0, 85, 85, 1, 161280, 0x2a14ae05
+0, 86, 86, 1, 161280, 0x664feab2
+0, 87, 87, 1, 161280, 0xf6b721f4
+0, 88, 88, 1, 161280, 0xfec565f3
+0, 89, 89, 1, 161280, 0xd39aabee
+0, 90, 90, 1, 161280, 0x1f3d5de7
+0, 91, 91, 1, 161280, 0xaf97f50c
+0, 92, 92, 1, 161280, 0xe34b6b6a
+0, 93, 93, 1, 161280, 0x4117371e
+0, 94, 94, 1, 161280, 0x4117371e
+0, 95, 95, 1, 161280, 0xe555b55e
+0, 96, 96, 1, 161280, 0xe555b55e
+0, 97, 97, 1, 161280, 0xe555b55e
+0, 98, 98, 1, 161280, 0xe555b55e
+0, 99, 99, 1, 161280, 0xe555b55e
+0, 100, 100, 1, 161280, 0xe555b55e
+0, 101, 101, 1, 161280, 0xe555b55e
+0, 102, 102, 1, 161280, 0xe555b55e
+0, 103, 103, 1, 161280, 0xe555b55e
+0, 104, 104, 1, 161280, 0xe555b55e
diff --git a/ffmpeg1/tests/ref/fate/truemotion1-24 b/ffmpeg1/tests/ref/fate/truemotion1-24
new file mode 100644
index 0000000..73bb9e7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/truemotion1-24
@@ -0,0 +1,17 @@
+#tb 0: 1/15
+0, 0, 0, 1, 69120, 0x68beb30f
+0, 1, 1, 1, 69120, 0x3976f5cf
+0, 2, 2, 1, 69120, 0xf815bc3c
+0, 3, 3, 1, 69120, 0xa7cc0ae6
+0, 4, 4, 1, 69120, 0xd85ac282
+0, 5, 5, 1, 69120, 0xf7fd7edb
+0, 6, 6, 1, 69120, 0x433bb6f6
+0, 7, 7, 1, 69120, 0xdbac8bee
+0, 8, 8, 1, 69120, 0x88e2a799
+0, 9, 9, 1, 69120, 0x49617b26
+0, 10, 10, 1, 69120, 0xeb44ca01
+0, 11, 11, 1, 69120, 0x6fea37e8
+0, 12, 12, 1, 69120, 0xf55d74c7
+0, 13, 13, 1, 69120, 0xb5082ca7
+0, 14, 14, 1, 69120, 0x5876d758
+0, 15, 15, 1, 69120, 0x45e7dd5c
diff --git a/ffmpeg1/tests/ref/fate/truemotion2 b/ffmpeg1/tests/ref/fate/truemotion2
new file mode 100644
index 0000000..c263ba4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/truemotion2
@@ -0,0 +1,31 @@
+#tb 0: 1/15
+0, 0, 0, 1, 230400, 0x135cb509
+0, 1, 1, 1, 230400, 0x919a1ab7
+0, 2, 2, 1, 230400, 0x0af8722b
+0, 3, 3, 1, 230400, 0xc9616809
+0, 4, 4, 1, 230400, 0xe16ecaf7
+0, 5, 5, 1, 230400, 0xa86f8d1b
+0, 6, 6, 1, 230400, 0xd351b5a4
+0, 7, 7, 1, 230400, 0xd112b5b7
+0, 8, 8, 1, 230400, 0xc9c3c9b1
+0, 9, 9, 1, 230400, 0x4f91e572
+0, 10, 10, 1, 230400, 0xb1d8c4d3
+0, 11, 11, 1, 230400, 0x34de10c1
+0, 12, 12, 1, 230400, 0xbd4f3b29
+0, 13, 13, 1, 230400, 0xfeaf1477
+0, 14, 14, 1, 230400, 0x718ffa17
+0, 15, 15, 1, 230400, 0x23b46ef3
+0, 16, 16, 1, 230400, 0x6346d9b8
+0, 17, 17, 1, 230400, 0xdb66bf57
+0, 18, 18, 1, 230400, 0xeb74a2ff
+0, 19, 19, 1, 230400, 0xe0750470
+0, 20, 20, 1, 230400, 0x645eb109
+0, 21, 21, 1, 230400, 0xbb96489a
+0, 22, 22, 1, 230400, 0x58a70e35
+0, 23, 23, 1, 230400, 0xc7563441
+0, 24, 24, 1, 230400, 0x6098f07e
+0, 25, 25, 1, 230400, 0x579ece15
+0, 26, 26, 1, 230400, 0xe1ca8d03
+0, 27, 27, 1, 230400, 0x8928cf34
+0, 28, 28, 1, 230400, 0xf621620e
+0, 29, 29, 1, 230400, 0x98a344ea
diff --git a/ffmpeg1/tests/ref/fate/tscc-15bit b/ffmpeg1/tests/ref/fate/tscc-15bit
new file mode 100644
index 0000000..a2871ef
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/tscc-15bit
@@ -0,0 +1,242 @@
+#tb 0: 1/15
+#tb 1: 1/11025
+0, 0, 0, 1, 657600, 0x50b3a0c2
+1, 0, 0, 11025, 22050, 0x1740aaec
+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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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/ffmpeg1/tests/ref/fate/tscc-32bit b/ffmpeg1/tests/ref/fate/tscc-32bit
new file mode 100644
index 0000000..4eef490
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/tscc-32bit
@@ -0,0 +1,157 @@
+#tb 0: 1/15
+0, 0, 0, 1, 2359296, 0x76cccaa7
+0, 1, 1, 1, 2359296, 0x09c52bbf
+0, 2, 2, 1, 2359296, 0xc8746009
+0, 3, 3, 1, 2359296, 0xe48ff59b
+0, 4, 4, 1, 2359296, 0xa2f1fddb
+0, 5, 5, 1, 2359296, 0xbb0e0026
+0, 6, 6, 1, 2359296, 0x66a905ab
+0, 7, 7, 1, 2359296, 0xe990f855
+0, 8, 8, 1, 2359296, 0xe990f855
+0, 9, 9, 1, 2359296, 0x3ec2c64e
+0, 13, 13, 1, 2359296, 0xda3ba3cf
+0, 14, 14, 1, 2359296, 0x60a070fd
+0, 15, 15, 1, 2359296, 0x42e5fedc
+0, 16, 16, 1, 2359296, 0x42e5fedc
+0, 17, 17, 1, 2359296, 0x699cf990
+0, 18, 18, 1, 2359296, 0x699cf990
+0, 19, 19, 1, 2359296, 0x699cf990
+0, 20, 20, 1, 2359296, 0x699cf990
+0, 21, 21, 1, 2359296, 0x699cf990
+0, 22, 22, 1, 2359296, 0x699cf990
+0, 23, 23, 1, 2359296, 0x699cf990
+0, 24, 24, 1, 2359296, 0x1524160c
+0, 25, 25, 1, 2359296, 0x1524160c
+0, 26, 26, 1, 2359296, 0x1524160c
+0, 27, 27, 1, 2359296, 0x1524160c
+0, 28, 28, 1, 2359296, 0x1524160c
+0, 29, 29, 1, 2359296, 0x1524160c
+0, 30, 30, 1, 2359296, 0x1524160c
+0, 31, 31, 1, 2359296, 0x33df0c8c
+0, 32, 32, 1, 2359296, 0x33df0c8c
+0, 33, 33, 1, 2359296, 0x33df0c8c
+0, 34, 34, 1, 2359296, 0x33df0c8c
+0, 35, 35, 1, 2359296, 0x33df0c8c
+0, 36, 36, 1, 2359296, 0x33df0c8c
+0, 37, 37, 1, 2359296, 0x33df0c8c
+0, 38, 38, 1, 2359296, 0xfe3d29f8
+0, 39, 39, 1, 2359296, 0xfe3d29f8
+0, 40, 40, 1, 2359296, 0xfe3d29f8
+0, 41, 41, 1, 2359296, 0xfe3d29f8
+0, 42, 42, 1, 2359296, 0xfe3d29f8
+0, 43, 43, 1, 2359296, 0xfe3d29f8
+0, 44, 44, 1, 2359296, 0xfe3d29f8
+0, 45, 45, 1, 2359296, 0x1b9d197f
+0, 46, 46, 1, 2359296, 0x1b9d197f
+0, 47, 47, 1, 2359296, 0x1b9d197f
+0, 48, 48, 1, 2359296, 0x1b9d197f
+0, 49, 49, 1, 2359296, 0x1b9d197f
+0, 50, 50, 1, 2359296, 0x1b9d197f
+0, 51, 51, 1, 2359296, 0x1b9d197f
+0, 52, 52, 1, 2359296, 0x48c126fb
+0, 53, 53, 1, 2359296, 0x48c126fb
+0, 54, 54, 1, 2359296, 0x48c126fb
+0, 55, 55, 1, 2359296, 0x48c126fb
+0, 56, 56, 1, 2359296, 0x48c126fb
+0, 57, 57, 1, 2359296, 0x48c126fb
+0, 58, 58, 1, 2359296, 0x48c126fb
+0, 59, 59, 1, 2359296, 0xcaa31c7c
+0, 60, 60, 1, 2359296, 0xcaa31c7c
+0, 61, 61, 1, 2359296, 0xcaa31c7c
+0, 62, 62, 1, 2359296, 0xcaa31c7c
+0, 63, 63, 1, 2359296, 0xcaa31c7c
+0, 64, 64, 1, 2359296, 0xcaa31c7c
+0, 65, 65, 1, 2359296, 0xcaa31c7c
+0, 66, 66, 1, 2359296, 0xc6a333ee
+0, 67, 67, 1, 2359296, 0xc6a333ee
+0, 68, 68, 1, 2359296, 0xc6a333ee
+0, 69, 69, 1, 2359296, 0xc6a333ee
+0, 70, 70, 1, 2359296, 0xc6a333ee
+0, 71, 71, 1, 2359296, 0xc6a333ee
+0, 72, 72, 1, 2359296, 0xc6a333ee
+0, 73, 73, 1, 2359296, 0xb96d1583
+0, 74, 74, 1, 2359296, 0xb96d1583
+0, 75, 75, 1, 2359296, 0xb96d1583
+0, 76, 76, 1, 2359296, 0xb96d1583
+0, 77, 77, 1, 2359296, 0xb96d1583
+0, 78, 78, 1, 2359296, 0xb96d1583
+0, 79, 79, 1, 2359296, 0xb96d1583
+0, 80, 80, 1, 2359296, 0x878135ec
+0, 82, 82, 1, 2359296, 0x878135ec
+0, 83, 83, 1, 2359296, 0x878135ec
+0, 84, 84, 1, 2359296, 0x878135ec
+0, 85, 85, 1, 2359296, 0x878135ec
+0, 86, 86, 1, 2359296, 0x878135ec
+0, 87, 87, 1, 2359296, 0x878135ec
+0, 88, 88, 1, 2359296, 0x76922870
+0, 89, 89, 1, 2359296, 0x76922870
+0, 90, 90, 1, 2359296, 0x76922870
+0, 91, 91, 1, 2359296, 0x76922870
+0, 92, 92, 1, 2359296, 0x76922870
+0, 93, 93, 1, 2359296, 0x76922870
+0, 94, 94, 1, 2359296, 0x76922870
+0, 95, 95, 1, 2359296, 0xb0e031f0
+0, 96, 96, 1, 2359296, 0xb0e031f0
+0, 97, 97, 1, 2359296, 0xb0e031f0
+0, 98, 98, 1, 2359296, 0xb0e031f0
+0, 99, 99, 1, 2359296, 0xb0e031f0
+0, 100, 100, 1, 2359296, 0xb0e031f0
+0, 101, 101, 1, 2359296, 0xb0e031f0
+0, 102, 102, 1, 2359296, 0xb2ef2a6e
+0, 103, 103, 1, 2359296, 0xb2ef2a6e
+0, 104, 104, 1, 2359296, 0xb2ef2a6e
+0, 105, 105, 1, 2359296, 0x083c2474
+0, 106, 106, 1, 2359296, 0x083c2474
+0, 107, 107, 1, 2359296, 0x083c2474
+0, 108, 108, 1, 2359296, 0x083c2474
+0, 109, 109, 1, 2359296, 0xbdfe2ef3
+0, 110, 110, 1, 2359296, 0xbdfe2ef3
+0, 111, 111, 1, 2359296, 0xbdfe2ef3
+0, 112, 112, 1, 2359296, 0xbdfe2ef3
+0, 113, 113, 1, 2359296, 0xbdfe2ef3
+0, 114, 114, 1, 2359296, 0xbdfe2ef3
+0, 115, 115, 1, 2359296, 0xbdfe2ef3
+0, 116, 116, 1, 2359296, 0x934b1484
+0, 117, 117, 1, 2359296, 0x934b1484
+0, 118, 118, 1, 2359296, 0x934b1484
+0, 119, 119, 1, 2359296, 0x934b1484
+0, 120, 120, 1, 2359296, 0x3e0d1a7e
+0, 121, 121, 1, 2359296, 0x3e0d1a7e
+0, 122, 122, 1, 2359296, 0x3e0d1a7e
+0, 123, 123, 1, 2359296, 0x3ce539e8
+0, 124, 124, 1, 2359296, 0x3ce539e8
+0, 125, 125, 1, 2359296, 0x3ce539e8
+0, 126, 126, 1, 2359296, 0x3ce539e8
+0, 127, 127, 1, 2359296, 0x3ce539e8
+0, 128, 128, 1, 2359296, 0x3ce539e8
+0, 129, 129, 1, 2359296, 0x3ce539e8
+0, 130, 130, 1, 2359296, 0xd46c2f69
+0, 131, 131, 1, 2359296, 0xd46c2f69
+0, 132, 132, 1, 2359296, 0xd46c2f69
+0, 133, 133, 1, 2359296, 0xd46c2f69
+0, 134, 134, 1, 2359296, 0xd46c2f69
+0, 135, 135, 1, 2359296, 0xd46c2f69
+0, 136, 136, 1, 2359296, 0xd46c2f69
+0, 137, 137, 1, 2359296, 0x8d2933ee
+0, 138, 138, 1, 2359296, 0x8d2933ee
+0, 139, 139, 1, 2359296, 0x8d2933ee
+0, 140, 140, 1, 2359296, 0x8d2933ee
+0, 141, 141, 1, 2359296, 0x8d2933ee
+0, 142, 142, 1, 2359296, 0x8d2933ee
+0, 143, 143, 1, 2359296, 0x8d2933ee
+0, 144, 144, 1, 2359296, 0xb6092b6d
+0, 145, 145, 1, 2359296, 0xb6092b6d
+0, 146, 146, 1, 2359296, 0xb6092b6d
+0, 147, 147, 1, 2359296, 0xb6092b6d
+0, 148, 148, 1, 2359296, 0xb6092b6d
+0, 149, 149, 1, 2359296, 0xb6092b6d
+0, 150, 150, 1, 2359296, 0xb6092b6d
+0, 151, 151, 1, 2359296, 0xe4ef27fa
+0, 152, 152, 1, 2359296, 0xe4ef27fa
+0, 153, 153, 1, 2359296, 0xe4ef27fa
+0, 154, 154, 1, 2359296, 0xe4ef27fa
+0, 155, 155, 1, 2359296, 0xe4ef27fa
+0, 156, 156, 1, 2359296, 0xe4ef27fa
+0, 157, 157, 1, 2359296, 0xe4ef27fa
+0, 158, 158, 1, 2359296, 0x5e5b2672
+0, 159, 159, 1, 2359296, 0x5e5b2672
diff --git a/ffmpeg1/tests/ref/fate/txd-16bpp b/ffmpeg1/tests/ref/fate/txd-16bpp
new file mode 100644
index 0000000..9522873
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/txd-16bpp
@@ -0,0 +1,12 @@
+#tb 0: 1/5
+0, 0, 0, 1, 16384, 0x213f9ea8
+0, 1, 1, 1, 16384, 0x8185fdb1
+0, 2, 2, 1, 16384, 0xf03581d1
+0, 3, 3, 1, 16384, 0x629cd573
+0, 4, 4, 1, 16384, 0xfe7a5b63
+0, 5, 5, 1, 16384, 0x4afc05b2
+0, 6, 6, 1, 16384, 0x074b8515
+0, 7, 7, 1, 16384, 0x17fde900
+0, 8, 8, 1, 16384, 0x831bac76
+0, 9, 9, 1, 16384, 0x2fb579f3
+0, 10, 10, 1, 16384, 0x68762bed
diff --git a/ffmpeg1/tests/ref/fate/txd-pal8 b/ffmpeg1/tests/ref/fate/txd-pal8
new file mode 100644
index 0000000..61fee80
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/txd-pal8
@@ -0,0 +1,2 @@
+#tb 0: 1/5
+0, 0, 0, 1, 786432, 0x56654d61
diff --git a/ffmpeg1/tests/ref/fate/ulti b/ffmpeg1/tests/ref/fate/ulti
new file mode 100644
index 0000000..4e9968b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ulti
@@ -0,0 +1,63 @@
+#tb 0: 1/12
+0, 0, 0, 1, 86400, 0x5d58253d
+0, 1, 1, 1, 86400, 0x0626d90d
+0, 2, 2, 1, 86400, 0x4ecb5048
+0, 3, 3, 1, 86400, 0xf54ea8f7
+0, 4, 4, 1, 86400, 0xa777c21b
+0, 5, 5, 1, 86400, 0x7d71e329
+0, 6, 6, 1, 86400, 0x2903252a
+0, 7, 7, 1, 86400, 0xbe7302c1
+0, 8, 8, 1, 86400, 0x734423a8
+0, 9, 9, 1, 86400, 0x4f422bab
+0, 10, 10, 1, 86400, 0x21fbf200
+0, 11, 11, 1, 86400, 0xabf299a7
+0, 12, 12, 1, 86400, 0x400b4bf8
+0, 13, 13, 1, 86400, 0x61d044f9
+0, 14, 14, 1, 86400, 0x72fb94af
+0, 15, 15, 1, 86400, 0xf522e717
+0, 16, 16, 1, 86400, 0xad3e0297
+0, 17, 17, 1, 86400, 0xbef57a5f
+0, 18, 18, 1, 86400, 0x450ca6e7
+0, 19, 19, 1, 86400, 0x76ae56e6
+0, 20, 20, 1, 86400, 0x7b9b7555
+0, 21, 21, 1, 86400, 0xb522ce0d
+0, 22, 22, 1, 86400, 0xaa9b8536
+0, 23, 23, 1, 86400, 0x019d00c4
+0, 24, 24, 1, 86400, 0xb0f4dee5
+0, 25, 25, 1, 86400, 0xa7482e52
+0, 26, 26, 1, 86400, 0x3c87fc35
+0, 27, 27, 1, 86400, 0xb6d1dede
+0, 28, 28, 1, 86400, 0x926ee647
+0, 29, 29, 1, 86400, 0x8747bfc7
+0, 30, 30, 1, 86400, 0x61569e9b
+0, 31, 31, 1, 86400, 0x9209a5f6
+0, 32, 32, 1, 86400, 0x5f89ef12
+0, 33, 33, 1, 86400, 0x00bfc18f
+0, 34, 34, 1, 86400, 0xcc6f2f62
+0, 35, 35, 1, 86400, 0x3ab9cfbf
+0, 36, 36, 1, 86400, 0x936f2386
+0, 37, 37, 1, 86400, 0x2203a76c
+0, 38, 38, 1, 86400, 0xd3d248a3
+0, 39, 39, 1, 86400, 0x148af7b8
+0, 40, 40, 1, 86400, 0x437bffae
+0, 41, 41, 1, 86400, 0x6876c6d5
+0, 42, 42, 1, 86400, 0x49fc1429
+0, 43, 43, 1, 86400, 0x181efd2c
+0, 44, 44, 1, 86400, 0x26ecd294
+0, 45, 45, 1, 86400, 0xdcdb609e
+0, 46, 46, 1, 86400, 0xd3cb0ecb
+0, 47, 47, 1, 86400, 0x528ffc4b
+0, 48, 48, 1, 86400, 0xb536c7b4
+0, 49, 49, 1, 86400, 0xae4ab8c5
+0, 50, 50, 1, 86400, 0xe14fee77
+0, 51, 51, 1, 86400, 0xcd3e9e85
+0, 52, 52, 1, 86400, 0x71cfba54
+0, 53, 53, 1, 86400, 0x9b309c62
+0, 54, 54, 1, 86400, 0x91b31881
+0, 55, 55, 1, 86400, 0xae8bda28
+0, 56, 56, 1, 86400, 0x8db0f87a
+0, 57, 57, 1, 86400, 0xcd974e98
+0, 58, 58, 1, 86400, 0x4405116e
+0, 59, 59, 1, 86400, 0xfe4cc7b4
+0, 60, 60, 1, 86400, 0x17d27206
+0, 61, 61, 1, 86400, 0x11743762
diff --git a/ffmpeg1/tests/ref/fate/url b/ffmpeg1/tests/ref/fate/url
new file mode 100644
index 0000000..1a6051e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/url
@@ -0,0 +1,13 @@
+baz
+/foo/baz
+/baz
+/baz
+http://server/foo/baz
+http://server/foo/baz
+http://server/baz
+http://server/baz
+http://server/baz
+https://other/url
+http://server/baz
+http://server/foo/bar?someparam
+http://other/url
diff --git a/ffmpeg1/tests/ref/fate/utvideo_rgb_left b/ffmpeg1/tests/ref/fate/utvideo_rgb_left
new file mode 100644
index 0000000..d19a6b1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideo_rgb_left
@@ -0,0 +1,5 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 921600, 0x27e6001e
+0, 1, 1, 1, 921600, 0x7c0a92bc
+0, 2, 2, 1, 921600, 0x4d2be42c
+0, 3, 3, 1, 921600, 0x58ddd0be
diff --git a/ffmpeg1/tests/ref/fate/utvideo_rgb_median b/ffmpeg1/tests/ref/fate/utvideo_rgb_median
new file mode 100644
index 0000000..f041285
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideo_rgb_median
@@ -0,0 +1,6 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 921600, 0x9776611f
+0, 1, 1, 1, 921600, 0xdbfa64f4
+0, 2, 2, 1, 921600, 0xed2a0580
+0, 3, 3, 1, 921600, 0x6ecc80bc
+0, 4, 4, 1, 921600, 0x58ddd0be
diff --git a/ffmpeg1/tests/ref/fate/utvideo_rgba_left b/ffmpeg1/tests/ref/fate/utvideo_rgba_left
new file mode 100644
index 0000000..a7e0ed4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideo_rgba_left
@@ -0,0 +1,6 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 1228800, 0xf1bc9432
+0, 1, 1, 1, 1228800, 0x8480d1e5
+0, 2, 2, 1, 1228800, 0xb01d5fb2
+0, 3, 3, 1, 1228800, 0x53cb42c4
+0, 4, 4, 1, 1228800, 0x2b2ea176
diff --git a/ffmpeg1/tests/ref/fate/utvideo_rgba_median b/ffmpeg1/tests/ref/fate/utvideo_rgba_median
new file mode 100644
index 0000000..a7e0ed4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideo_rgba_median
@@ -0,0 +1,6 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 1228800, 0xf1bc9432
+0, 1, 1, 1, 1228800, 0x8480d1e5
+0, 2, 2, 1, 1228800, 0xb01d5fb2
+0, 3, 3, 1, 1228800, 0x53cb42c4
+0, 4, 4, 1, 1228800, 0x2b2ea176
diff --git a/ffmpeg1/tests/ref/fate/utvideo_rgba_single_symbol b/ffmpeg1/tests/ref/fate/utvideo_rgba_single_symbol
new file mode 100644
index 0000000..c0e0d98
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideo_rgba_single_symbol
@@ -0,0 +1,2 @@
+#tb 0: 1/24
+0, 0, 0, 1, 3145728, 0xac95c593
diff --git a/ffmpeg1/tests/ref/fate/utvideo_yuv420_left b/ffmpeg1/tests/ref/fate/utvideo_yuv420_left
new file mode 100644
index 0000000..026f8fb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideo_yuv420_left
@@ -0,0 +1,8 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 460800, 0xece98fc8
+0, 1, 1, 1, 460800, 0x9baf786b
+0, 2, 2, 1, 460800, 0x8e8e0510
+0, 3, 3, 1, 460800, 0x27c1f2ba
+0, 4, 4, 1, 460800, 0x6a817987
+0, 5, 5, 1, 460800, 0x2f713ec2
+0, 6, 6, 1, 460800, 0x003b560e
diff --git a/ffmpeg1/tests/ref/fate/utvideo_yuv420_median b/ffmpeg1/tests/ref/fate/utvideo_yuv420_median
new file mode 100644
index 0000000..5662d8c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideo_yuv420_median
@@ -0,0 +1,5 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 460800, 0x6a817987
+0, 1, 1, 1, 460800, 0x2f713ec2
+0, 2, 2, 1, 460800, 0x003b560e
+0, 3, 3, 1, 460800, 0x9e1bbf63
diff --git a/ffmpeg1/tests/ref/fate/utvideo_yuv422_left b/ffmpeg1/tests/ref/fate/utvideo_yuv422_left
new file mode 100644
index 0000000..438b32a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideo_yuv422_left
@@ -0,0 +1,5 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 614400, 0x9a6b8802
+0, 1, 1, 1, 614400, 0xaa8687e2
+0, 2, 2, 1, 614400, 0x2fe5bd40
+0, 3, 3, 1, 614400, 0x1c8f3737
diff --git a/ffmpeg1/tests/ref/fate/utvideo_yuv422_median b/ffmpeg1/tests/ref/fate/utvideo_yuv422_median
new file mode 100644
index 0000000..438b32a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideo_yuv422_median
@@ -0,0 +1,5 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 614400, 0x9a6b8802
+0, 1, 1, 1, 614400, 0xaa8687e2
+0, 2, 2, 1, 614400, 0x2fe5bd40
+0, 3, 3, 1, 614400, 0x1c8f3737
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_rgb_left b/ffmpeg1/tests/ref/fate/utvideoenc_rgb_left
new file mode 100644
index 0000000..99d1182
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_rgb_left
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 182328, cd084b244939d7e0008d8e5ab3429dc1
+0, 1, 1, 1, 182336, c9c40672750f372134185901147fb776
+0, 2, 2, 1, 182956, c728911ca73225f2dc7453533c9be95e
+0, 3, 3, 1, 182384, 54521f709b461a25198db755bce582fa
+0, 4, 4, 1, 181704, 5e03ab58b4480a6613f54857f10c39e5
+0, 5, 5, 1, 182136, c623fb06b90fdd7a5ba0b4f217b6a388
+0, 6, 6, 1, 181552, 5d03be9dfc01ad99364fc3cc8378af72
+0, 7, 7, 1, 182292, fc90878278c82b2f835151dc6d43dd47
+0, 8, 8, 1, 181424, 9b6339a0d3af2d3034162183cd4d79e4
+0, 9, 9, 1, 182316, 7e45bb5ffe57f98a433420abaffe78cc
+0, 10, 10, 1, 182064, d9525605a7d7d75a8e33502f61733af1
+0, 11, 11, 1, 182596, 62e87fa5c33a8d208deaa8719682b9a5
+0, 12, 12, 1, 180900, 149059d3d56c55358c7044c7d569730f
+0, 13, 13, 1, 181920, 0d20f588c27471a038e159a131e9c8ea
+0, 14, 14, 1, 182824, a301a411ff11042ecb583e1e3b12dbda
+0, 15, 15, 1, 182452, 0ee2a9ed39fb8569a8d6c2b3afb8f80a
+0, 16, 16, 1, 182312, 68dd3b820adf2cbc6686a7d48fa22c6e
+0, 17, 17, 1, 181856, 1897926cfe9b7acaf9c21714c449ce41
+0, 18, 18, 1, 181108, 15d2af460733fdd896078632cdfef9fd
+0, 19, 19, 1, 181388, 8b8e7a4b7d355f41f7e836120c4792ac
+0, 20, 20, 1, 180936, e18e27aa027f2470bfa95c536a0a89af
+0, 21, 21, 1, 180900, eb663ae3c5ffa8e751280e0dbb260e02
+0, 22, 22, 1, 181936, 7514bbe06cee027f54710dc900297863
+0, 23, 23, 1, 182304, 8cb2dcdbd4c919b4c977f45bee46c54c
+0, 24, 24, 1, 182580, 9185ed53b7e8339b61d3abe230bbab71
+0, 25, 25, 1, 182572, 81f8bdd3255b91d6621e9ebd3c9d7679
+0, 26, 26, 1, 182356, 1f9ff40700881054c62e33acde06910d
+0, 27, 27, 1, 181532, 10d2477aa1e319a61e517d25fd6c95d0
+0, 28, 28, 1, 179580, 3012480c43d15866ccc4a81d56650ee2
+0, 29, 29, 1, 179528, 5e0fbd62a164dc72cf511023da792175
+0, 30, 30, 1, 180760, 679f430c86dca203456f532e978dffc2
+0, 31, 31, 1, 181564, 64d31faf01cb7b52d7d7e20280e6652b
+0, 32, 32, 1, 181428, 04961d71aa3c81b33d28b39ead20ee1d
+0, 33, 33, 1, 182980, 51361c802005721002f5f4924f081708
+0, 34, 34, 1, 182624, 67c5582c45e3ee7e6aca49fdc0a980b8
+0, 35, 35, 1, 182352, 4fade9db12f2d6ce633556fdb8914971
+0, 36, 36, 1, 181336, ac8fbab67b36d58c4e8374bfb07458e7
+0, 37, 37, 1, 181528, f798157b6d4d04c767ecb76346922ddc
+0, 38, 38, 1, 179776, 01d407ed0b86eeb2c3ee3c24dd452d8d
+0, 39, 39, 1, 180100, 062e4af150100d7accf86a907a4b99b5
+0, 40, 40, 1, 180228, 23c617b76ef8f274bd089016fb8516c7
+0, 41, 41, 1, 180592, 55f538ae5e44b60209138b7536d5c199
+0, 42, 42, 1, 181188, d39d52f5b690661434b1abd8717b3e30
+0, 43, 43, 1, 181300, 9e202444287234bafd103fab83b1a974
+0, 44, 44, 1, 180812, 602165271de71594132cce98af56a7b2
+0, 45, 45, 1, 178816, c427d67196f43ece6bf3855e1256d7bb
+0, 46, 46, 1, 178196, 0d05902e2870a85333a216c723077e98
+0, 47, 47, 1, 178772, 57f528eb984b5b7181c89b48b58271f3
+0, 48, 48, 1, 178652, 5cd1031b0ada3ba9c2d4c2f2b7c8e277
+0, 49, 49, 1, 178512, d3c0c84fc63f1e32a4a026e2cd39b161
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_rgb_median b/ffmpeg1/tests/ref/fate/utvideoenc_rgb_median
new file mode 100644
index 0000000..5983ddf
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_rgb_median
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 182160, abcf4f477f74b696faca2fcff1f62aa9
+0, 1, 1, 1, 182104, 7cbcf339fa40c24522067295b39d637f
+0, 2, 2, 1, 183108, dfc2c418f4379a89654c16b34ff19446
+0, 3, 3, 1, 182320, 62a4647b05709d86c51a18be16877e98
+0, 4, 4, 1, 181920, 61d63520703503f6e17fad67cbc08794
+0, 5, 5, 1, 182424, f467638396feabe613b3c851289452d8
+0, 6, 6, 1, 182248, 8a0cba950d6c5d63ba9603212ca95b0e
+0, 7, 7, 1, 181876, 91432f472cf373d5d4036bd100950f3e
+0, 8, 8, 1, 182104, 1c8852d82a48c1b01911ffbedf0ac1f4
+0, 9, 9, 1, 182540, f36b9d48123b55f2141ae10dd26e1ca0
+0, 10, 10, 1, 182120, e6ecdb9af6591916153ca9aeba76b9d0
+0, 11, 11, 1, 182136, 7dc7b828a5b7c652df612474fad66f6b
+0, 12, 12, 1, 181296, 347eac6563435a62f75298cefe13d3a6
+0, 13, 13, 1, 182136, 3bbcd8afacdf9549da9ebd736df548a7
+0, 14, 14, 1, 182412, 17f8c6ef692b4085624ce1ef7efbc963
+0, 15, 15, 1, 182732, 9212760fa11fe4fa193ba1aa259e9765
+0, 16, 16, 1, 181944, 7dd6d6a7084f97a77ec09ec6c62f0ab8
+0, 17, 17, 1, 182232, 518552687d47ae93726679f0ed962ef4
+0, 18, 18, 1, 181512, 29a66924742add13a0cae65d93d38ea9
+0, 19, 19, 1, 181424, 67c965637248333f92da9d493bf7546e
+0, 20, 20, 1, 180764, 298457c6c2b3f4ebcda87a12579f094d
+0, 21, 21, 1, 181072, 493ea592b7d59eebf01c002e7e22fc43
+0, 22, 22, 1, 181160, e30195fcc16ecfbb9348943cff01623f
+0, 23, 23, 1, 182156, d26cfac33e19b4ca11210c9e6cb91955
+0, 24, 24, 1, 182260, 963c157d3f0023b49d23099d53d60c8b
+0, 25, 25, 1, 181976, 2494d481bf2be97692eaeda95f279b0d
+0, 26, 26, 1, 181832, f1be95c840d4fcb0c8d4b7aed5b197c5
+0, 27, 27, 1, 181424, 03d92e89358a8b9b9e7cf302edde307e
+0, 28, 28, 1, 180632, 09f9e162fdaf28342c442172179a75c9
+0, 29, 29, 1, 180624, 481e7f7730ab3ba67c06faa620a8bd5e
+0, 30, 30, 1, 181024, 7a1d1b06b73d2bf41563eb749805780c
+0, 31, 31, 1, 181844, 8a6ce6dd6f79e423a3bb6c2b163adc55
+0, 32, 32, 1, 181712, a68007bbdf0169c9ed2dffae3dc63221
+0, 33, 33, 1, 182008, f37dd0635de369761e2de979ee799c3a
+0, 34, 34, 1, 181800, 14029ba1c364eca476559ce553919e99
+0, 35, 35, 1, 181840, ee227d15f15c3cd564dcad2160453fb7
+0, 36, 36, 1, 181848, 13b5d0892cc76a25b4914f2d706a0ad5
+0, 37, 37, 1, 181976, 1a0be9f2cefe0d867c5c03d6b3987ad8
+0, 38, 38, 1, 181216, 79795d735f9e0f92091203bf8b9eb9ed
+0, 39, 39, 1, 181236, 2d006c8c4ba448ca7841df76e44ffa88
+0, 40, 40, 1, 180672, ed5210abdae49042fcae9bde2f65a057
+0, 41, 41, 1, 181324, fbbc7839c595cd0f0efc0917edfed2c3
+0, 42, 42, 1, 180980, c6120b5a9440f4a0d83731627eb96d98
+0, 43, 43, 1, 181204, ac4371912d16f657c90e8a00cfafdfd2
+0, 44, 44, 1, 180720, d392d95c67349296d922dbf53ec3f832
+0, 45, 45, 1, 180028, 37a2717fbd5aaeb128812298484f8267
+0, 46, 46, 1, 179704, e8716f4856e4ccdc541632a218894f62
+0, 47, 47, 1, 179648, e99cbe5d1bbd7bce241ae500b4de06c2
+0, 48, 48, 1, 179424, 6f8a5e356fb77b61d9dfcabdf97340b9
+0, 49, 49, 1, 178980, 75a7700b822236b0ecb169fd692910f1
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_rgb_none b/ffmpeg1/tests/ref/fate/utvideoenc_rgb_none
new file mode 100644
index 0000000..d6c6962
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_rgb_none
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 301052, 8645cb98470205cceea3c2026223b69f
+0, 1, 1, 1, 301068, 9123c3c31ac0bc0832bb07e8c6d5b372
+0, 2, 2, 1, 300840, 394aa034eba2b306efa8171efc5fb960
+0, 3, 3, 1, 300904, 1abc4512d268bb7bb4b9f467aa19e5a8
+0, 4, 4, 1, 300912, e117d6f8d2bbd89bdce86cd5c4cf6206
+0, 5, 5, 1, 300936, d6a6c100e6dfd0e4dcdaa67ec59a757a
+0, 6, 6, 1, 300944, 3a0bf05461965bf2e538f5ed1067e784
+0, 7, 7, 1, 301044, 66e2fef970e8d997bb52f28eed9ad6fe
+0, 8, 8, 1, 301076, 6ae8f26125255c46be8c6da07d21ba35
+0, 9, 9, 1, 301044, 024d41f9d3b217b58ad6ba2a8f3b680d
+0, 10, 10, 1, 300944, 5dc0387f32b68e365c467f9dcc62b923
+0, 11, 11, 1, 300912, 47db16c6118feb2143fe0d1ec909bb51
+0, 12, 12, 1, 301044, 7161af85d2c85529b83548a701c6f5b7
+0, 13, 13, 1, 300964, 2dd90b4edcfc8d2b84168f42c7a47785
+0, 14, 14, 1, 300868, 76b296949227e7b22f204bec90dd02af
+0, 15, 15, 1, 300880, 44f9c830be2c9efdda335bf774f3b6c6
+0, 16, 16, 1, 301020, 70c1883ae4ff2ae8b0d5a608a75c839c
+0, 17, 17, 1, 301072, bac10cb932595594e4e8146831bbe00b
+0, 18, 18, 1, 301192, 46c2aa31dc33baa4d37f71f9873cbe6f
+0, 19, 19, 1, 301224, 396c406acf79cbe79c064ccbe7a3b648
+0, 20, 20, 1, 301180, 8d5d2071ddc79335f6785a921851905e
+0, 21, 21, 1, 301180, 9767bc30cadd23f0625e665e9b70ac31
+0, 22, 22, 1, 301116, fba702e0ab727d9446a7796790a10545
+0, 23, 23, 1, 301060, 9a08113dd947874b57d4cc85d56343ca
+0, 24, 24, 1, 301128, a58b1ebeb28fac3c88f64c8ba15f0591
+0, 25, 25, 1, 301144, e071b28b961f8d9c5da9b1ff41c24c2a
+0, 26, 26, 1, 301088, d19bed9054db25a718724d746d22c800
+0, 27, 27, 1, 301232, 70b2832bb0eb5f8a74e0bee411f66a46
+0, 28, 28, 1, 301152, 470bd72096d3ef6b5490b03cfdea438d
+0, 29, 29, 1, 301224, f3c285eb28a3c5b820276d3a68976df4
+0, 30, 30, 1, 301224, a432bfc1e022f189a70cbc963d716596
+0, 31, 31, 1, 301160, fbde0ac1bb6e5dbd870c1c6d8f03190c
+0, 32, 32, 1, 301120, 61f251db3d73483206609718063cfbb9
+0, 33, 33, 1, 301096, 6c1908eac263c8c3368683ced8078da4
+0, 34, 34, 1, 301000, 4b8df4fa83c085ea36369dbdd37f58bd
+0, 35, 35, 1, 301152, e2ceb9ff6b72b815e4b511a85dc0ae38
+0, 36, 36, 1, 301232, 27cc508ff5081f9c901c4eabd62e5835
+0, 37, 37, 1, 301228, bdb62b975b1cfe4ba8be08be1e8b1a5e
+0, 38, 38, 1, 301296, 13fc07f3935b70e98922233cf81bc7a4
+0, 39, 39, 1, 301296, 5fe19496257987b809e56e3c11192c43
+0, 40, 40, 1, 301308, a86115cd10e74c795739e8e325403ac6
+0, 41, 41, 1, 301268, 6c1f7bbf077ff58486f256e2ce9d01e6
+0, 42, 42, 1, 301344, 3fda739956dfa07a15cc5bd7e054568d
+0, 43, 43, 1, 301308, 54584061bcce46feb19aafa37922f923
+0, 44, 44, 1, 301292, 092e08d230dcfe4abd1460ef26c31421
+0, 45, 45, 1, 301344, 39ca46f9f38434aee15660263921f392
+0, 46, 46, 1, 301432, f7b76bebcfc614537c20bd6b20096d78
+0, 47, 47, 1, 301440, 86c97147d03bf7aee71073127c7fad32
+0, 48, 48, 1, 301460, 3fdbe5ae0b7e6b7ec0bc5668ba50a491
+0, 49, 49, 1, 301444, 8ef2e62af67f91e886b8f25456b38869
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_rgba_left b/ffmpeg1/tests/ref/fate/utvideoenc_rgba_left
new file mode 100644
index 0000000..757febe
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_rgba_left
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 195264, 5869dee2126d98ecc1fab1e69720906a
+0, 1, 1, 1, 195272, 1bd08dcde1061b0d9273bdc6dd901382
+0, 2, 2, 1, 195892, 2b3fc3632bcd1cc44f777fb97a56f79b
+0, 3, 3, 1, 195320, 792870fc50a4145ad561b1004a8b6451
+0, 4, 4, 1, 194640, c3d4031c46d6dc64e632e2d38b48fc96
+0, 5, 5, 1, 195072, 27e4b09e7f8446a8dd8dd7dcbc578e2b
+0, 6, 6, 1, 194488, e44441beb8d3e358112e2776a0116ea9
+0, 7, 7, 1, 195228, 0519afd694512aea2c839fe0456e518c
+0, 8, 8, 1, 194360, 7296944c86296fb256188975db6e5620
+0, 9, 9, 1, 195252, 40b53999a36ce413256c7a81c3aa0c44
+0, 10, 10, 1, 195000, 925fe520c460f94ae7a05cf0e6cf8dd8
+0, 11, 11, 1, 195532, af417aac106af9b4e8c04cf1a84d3bd8
+0, 12, 12, 1, 193836, 0eadf04f475a93ebef3979d32c13ee92
+0, 13, 13, 1, 194856, 5814ff44b233d68e4c991703c0fa6f44
+0, 14, 14, 1, 195760, e9a66bbeadeab4ed3f34296346eafc27
+0, 15, 15, 1, 195388, 17d33cd676c8b464d1b97ce0f0234716
+0, 16, 16, 1, 195248, 1054b945cd6e11e70d8b348e540e4dd5
+0, 17, 17, 1, 194792, f0a6ceee9014f6cf8a999f344897ad3e
+0, 18, 18, 1, 194044, 4fbf2b9fd8b7e8233f65b5bf61e326c0
+0, 19, 19, 1, 194324, eb90b72edafab7bbe5e9ff561313927c
+0, 20, 20, 1, 193872, 6ebc973b9f66e1ebdb3029f1aadd9a24
+0, 21, 21, 1, 193836, cde713fba6bede0361779c45f7a6d80b
+0, 22, 22, 1, 194872, 64225b7d92c8371ed0335d7693902f60
+0, 23, 23, 1, 195240, b11e0b10b4e713caffec706d952edb7b
+0, 24, 24, 1, 195516, 932244aee01b068f1bfb5132f092675b
+0, 25, 25, 1, 195508, 2745faafa2ec34dcf2cec2f5f791f49b
+0, 26, 26, 1, 195292, 6ff67783eabad9c72b146d510ffa0b7e
+0, 27, 27, 1, 194468, cc5aa248fe507ac3fbb839b9388856bc
+0, 28, 28, 1, 192516, 13063bb195380953743ab24a73ff6ddd
+0, 29, 29, 1, 192464, a391b0d795b2f565cc3e351975fb528d
+0, 30, 30, 1, 193696, 4239c695d1b9eaa44c2d037a9c39da20
+0, 31, 31, 1, 194500, 5857b4c4cc86a9a0f38d833c236e396c
+0, 32, 32, 1, 194364, ad0eeec7622c76bd996deac7e99390e5
+0, 33, 33, 1, 195916, b98da9283eef85f6dffe308774161441
+0, 34, 34, 1, 195560, 32f924fc40bb777c951481b623a8f46b
+0, 35, 35, 1, 195288, 96a7bb386420902fbb98b8267d4496ca
+0, 36, 36, 1, 194272, 98b88d6092708ffff416417d8f628477
+0, 37, 37, 1, 194464, 3c8295490b77415c2e4ebb7ce9b8cc53
+0, 38, 38, 1, 192712, 17798a13ba5f82939d98dfd619a68e18
+0, 39, 39, 1, 193036, b92ab54b363c1bd29042feeb3b9f5631
+0, 40, 40, 1, 193164, a971b68bb49148afdf510be5f5793933
+0, 41, 41, 1, 193528, 6fbf07d240e0073e57d295bdd0d32465
+0, 42, 42, 1, 194124, 4b1ddea464b8e40da48418e77b4fdf7a
+0, 43, 43, 1, 194236, d46914a9e2bdda30bf84b3282924bb3d
+0, 44, 44, 1, 193748, 3d4587081c6d73366d85e5df42c87810
+0, 45, 45, 1, 191752, 996274b3852ac6af30db8f9e242895e0
+0, 46, 46, 1, 191132, 5a1e47e4d1cc9e18e94041b4357a5de4
+0, 47, 47, 1, 191708, e3048c5ba2b9a494791cad3cbf843780
+0, 48, 48, 1, 191588, dbc63170a9b7be348497162c42a1b9f1
+0, 49, 49, 1, 191448, db923a15f424e69bbf8c8af2a2f7e157
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_rgba_median b/ffmpeg1/tests/ref/fate/utvideoenc_rgba_median
new file mode 100644
index 0000000..1198a33
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_rgba_median
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 195096, 29ad3287ab4d7f4d46968c6d38ba049b
+0, 1, 1, 1, 195040, 2c7b4f5f0aee96dca6dc30ce01b3c74d
+0, 2, 2, 1, 196044, 7ffc6ab3c4a2eee436ef6a59c72ffb04
+0, 3, 3, 1, 195256, f4453470d77c246cbb30d00c13512359
+0, 4, 4, 1, 194856, b84c4d56bf28033db539e4e0cad3d342
+0, 5, 5, 1, 195360, d2d3371b96f679f9b7c62d98b5d54af9
+0, 6, 6, 1, 195184, 8e3782bc12b24023a5899eb4806ffed6
+0, 7, 7, 1, 194812, 4fcf24a0660606304c58c93db2baf7de
+0, 8, 8, 1, 195040, 6ab57a9dcb4c99df7848a0971335a6b4
+0, 9, 9, 1, 195476, 66a3d66c3dc2f5b0847266a21927fa77
+0, 10, 10, 1, 195056, 530b251a8497af21bc56cd73af5c7ddf
+0, 11, 11, 1, 195072, 2904d24eca3db9734ed78dc8d557a334
+0, 12, 12, 1, 194232, 97566b596b113bf94a12ee1c02058a95
+0, 13, 13, 1, 195072, dceefd5df6efc5fefc8cfa1543b1a20e
+0, 14, 14, 1, 195348, d5b75f298fa6d474435333467b3497ae
+0, 15, 15, 1, 195668, 519f63be313f311cbb3fb48970a19f15
+0, 16, 16, 1, 194880, ab2da22767f540f8adea7e43dd6c1d0c
+0, 17, 17, 1, 195168, 667b85c19dd2d8ae105594f1294297b9
+0, 18, 18, 1, 194448, 575bc4b46f6158e76e503e8028902aaa
+0, 19, 19, 1, 194360, 851acbaf04c464689c8e2c4af3b9ed14
+0, 20, 20, 1, 193700, 1a477e0d665dcd088da6edeef77f21b1
+0, 21, 21, 1, 194008, b0d752c2201235e51ba0bbb59046fa60
+0, 22, 22, 1, 194096, 099df2b23c41ee54a6bd11aa6c92c390
+0, 23, 23, 1, 195092, e4d4dc89b8afba245355cec57ddcae40
+0, 24, 24, 1, 195196, 070c27e0499cf0210d729242ebc1a24e
+0, 25, 25, 1, 194912, 0fb78b7892035ecbec6ee9be6a13831c
+0, 26, 26, 1, 194768, 3ff6a05e68d6e33eeea22232e71bdf9a
+0, 27, 27, 1, 194360, 3828288e90a780d0c338ba5ab046aaa5
+0, 28, 28, 1, 193568, 60afb0ae9e6cbc9d8e4081764de7b4e6
+0, 29, 29, 1, 193560, 6b22fcfce4bff96b2afcb891f4fa9cf3
+0, 30, 30, 1, 193960, cae9eddb4464627fdc4413c3b5159575
+0, 31, 31, 1, 194780, 9e3d730fb835d3acaf92b7be368ea89e
+0, 32, 32, 1, 194648, 1ac7f5ae1b392ee8630266317a1818df
+0, 33, 33, 1, 194944, 374142509500017bbc29e157569bca2f
+0, 34, 34, 1, 194736, 0072a43b8de988683340c81e5bd4dba6
+0, 35, 35, 1, 194776, d5add7706f49a6a2f8d6bf3ed0ce3410
+0, 36, 36, 1, 194784, 7a1d38bc73fd293afef5fbcf9d34decd
+0, 37, 37, 1, 194912, 695e2d4c5d613245d591ae58100323bd
+0, 38, 38, 1, 194152, d4c9adb4f6340bc5f10b5b13f71d07bd
+0, 39, 39, 1, 194172, 0c7419c5c550e784e01a8c9927ecf59a
+0, 40, 40, 1, 193608, 4abff529172476d76c2956179041b2e4
+0, 41, 41, 1, 194260, dfa07971b01032b6a653d0d6715ffa8c
+0, 42, 42, 1, 193916, 6ffe1e68c74d51ea0cba0ede10b0f6f0
+0, 43, 43, 1, 194140, 46e18d23810193dd352fcc49b7c5ef6e
+0, 44, 44, 1, 193656, 4339d3e8b9dbeb376a1e19c4b86824f3
+0, 45, 45, 1, 192964, ff4680c71688f9944cd494105d2ab0b5
+0, 46, 46, 1, 192640, 62ce4b6d3311c34c73c6af1399fedfdc
+0, 47, 47, 1, 192584, f71b06a232a1a62a45ddac80c6f75090
+0, 48, 48, 1, 192360, 6642b9838eb32ed81d4d10a46ab9f954
+0, 49, 49, 1, 191916, d3ed1686383cfa7130ecc17c1ab52432
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_rgba_none b/ffmpeg1/tests/ref/fate/utvideoenc_rgba_none
new file mode 100644
index 0000000..555409f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_rgba_none
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 301312, 6912d70f7c20db0b5079a99443ffe65c
+0, 1, 1, 1, 301328, 53f1b7d3c2f87ecfe9c9d305771421c5
+0, 2, 2, 1, 301100, 7040f2b50dc10b2565fa899ba007983d
+0, 3, 3, 1, 301164, 2bfe87a43842b21b083c166a5fcae979
+0, 4, 4, 1, 301172, e6535559b9cafb81d0f5312e6982228f
+0, 5, 5, 1, 301196, 899d3b7f4daca28b8d08fd80b9732332
+0, 6, 6, 1, 301204, 9ba8d921eb9345b9b90e5ec690cedbc6
+0, 7, 7, 1, 301304, 89d5758e5a4966d28fa3e6811822c9e6
+0, 8, 8, 1, 301336, b3f805d45e2cba1f3273fdc30e3d3d9c
+0, 9, 9, 1, 301304, 83c9ce5fdf5b20b29fc787ae20c5aa8f
+0, 10, 10, 1, 301204, 2cb730d551309ac307b69fb1e0f0bcbb
+0, 11, 11, 1, 301172, dc5d09bbd04e7b0a20521e67dbbad5f2
+0, 12, 12, 1, 301304, 9e08281b8be73b732b2793f7ffcf3bd4
+0, 13, 13, 1, 301224, 430fa7e9cc87e9292811601473bb03f9
+0, 14, 14, 1, 301128, 32eab97914c2f165e270e42e3c348ea0
+0, 15, 15, 1, 301140, c38233a19e22cc41957cd5a2e13bbca0
+0, 16, 16, 1, 301280, b87e1697217b744404d7998ec3dfac80
+0, 17, 17, 1, 301332, 231912bca1a1d4b54bc7ad392ca437c5
+0, 18, 18, 1, 301452, 30ce746afa3750735872fc9f2680e5b0
+0, 19, 19, 1, 301484, 9a56d219bcfb153190d17c8d89a0c5e3
+0, 20, 20, 1, 301440, c864010df06930259e712f7029a428b4
+0, 21, 21, 1, 301440, 1a4b6bf6557c65d5f088829602440819
+0, 22, 22, 1, 301376, f0ce8402bf00fcde4399da2f4088cd9f
+0, 23, 23, 1, 301320, 27d296bfd2df72c2fcf790098d2129cd
+0, 24, 24, 1, 301388, 0e78fec341c4d137959491e53ab23d92
+0, 25, 25, 1, 301404, 1ec3ca66bd6005cb754c00e346cdd895
+0, 26, 26, 1, 301348, b78ad47e42cfa510ab92d3ffc99371cf
+0, 27, 27, 1, 301492, 558f35abf593bf29a82e6353c75052d2
+0, 28, 28, 1, 301412, f44dae5d90ac9907b8847db0966e8d0b
+0, 29, 29, 1, 301484, 40d87d4e7c51bc2b3dede754c25e1b7e
+0, 30, 30, 1, 301484, 15dda8edd88e97f3db294bce9397e681
+0, 31, 31, 1, 301420, ff1dd12c16b295c83098a6b0135bd951
+0, 32, 32, 1, 301380, a290b1944381632a50fbb680f3f1af9e
+0, 33, 33, 1, 301356, 73d66b8546ac0698975af841dcea7a4c
+0, 34, 34, 1, 301260, 408ab0a50a74e7aaf196a202fd781892
+0, 35, 35, 1, 301412, bde264649818ed761d74281bf92a871e
+0, 36, 36, 1, 301492, c3612f4a8a748ffd6b43ccf24b2db821
+0, 37, 37, 1, 301488, 068ec12d90d1236e367caaf87f14da03
+0, 38, 38, 1, 301556, 000ee987cce47ab701e743d21a6607e6
+0, 39, 39, 1, 301556, 41277aa578fe7367c138a70b532bdf59
+0, 40, 40, 1, 301568, ebf086337aedfac24afc5c17715424d2
+0, 41, 41, 1, 301528, d8f0c31897748dfc761033f237f31f7f
+0, 42, 42, 1, 301604, 50b67f1d579eb8e7c5e0bdc438bf0ee2
+0, 43, 43, 1, 301568, 8297516127bb32a4326d6a859b2d8407
+0, 44, 44, 1, 301552, 1f9e1272e7249467631c4b9bd88bddcf
+0, 45, 45, 1, 301604, d835d90e9fc37583978c053bab5a96ed
+0, 46, 46, 1, 301692, fcb67990a58d25bff135fcc970714c4a
+0, 47, 47, 1, 301700, a4b0a26ed1626a4e46effa7987a32034
+0, 48, 48, 1, 301720, 44d53eab1be166c9bcc4b7b8bc3f80c9
+0, 49, 49, 1, 301704, 34314d5b44ea555b7d52958dec489fde
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_yuv420_left b/ffmpeg1/tests/ref/fate/utvideoenc_yuv420_left
new file mode 100644
index 0000000..cec5a28
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_yuv420_left
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 59796, a7136363bc4b9ac663178e5c7f24bae7
+0, 1, 1, 1, 60012, d296cf24776234599e22526598de838c
+0, 2, 2, 1, 61040, e889f81df51b75acf8131de97f9da4e3
+0, 3, 3, 1, 59656, a63c343139b1117260cf6f790ba87968
+0, 4, 4, 1, 58592, e2170222ac38ddc0703f5b537b4beb79
+0, 5, 5, 1, 60248, 0ea350ecf7d8a440b06a60550b5dfa4c
+0, 6, 6, 1, 60480, 792694fa65994c407fd76d06fdbbdc34
+0, 7, 7, 1, 59888, eaef81fd1fa459feb9a3b15817c861a4
+0, 8, 8, 1, 60080, 610a75f3c275ffef75006fb862642993
+0, 9, 9, 1, 60320, 1e1cc244d2ea6b259d06384d1a95cc89
+0, 10, 10, 1, 60300, ddbb7eb36b73cd4f1dc28ded5217952e
+0, 11, 11, 1, 60288, 13f14eed47e1c4fec9f99b47316f82b6
+0, 12, 12, 1, 59172, c7c205489a3b389290f2c56e66bf8ddb
+0, 13, 13, 1, 59664, 81eead1a1fe199e4b66e9bc2f04ac892
+0, 14, 14, 1, 61004, d02e17515451d4259d7179741d208b28
+0, 15, 15, 1, 61088, 4f1c9877caf59dc5ebf5646fe98b3ef5
+0, 16, 16, 1, 60072, 5c4c41d25e9aa0da07da89475275513b
+0, 17, 17, 1, 59876, aeeb1f7a68a23f9fd0503831bfeb2ed1
+0, 18, 18, 1, 59396, 154d2a0717aeb78e47e20bbc9d4aa69a
+0, 19, 19, 1, 59076, 3fdcb2330689aed91d92d515a9eb015a
+0, 20, 20, 1, 58740, 71a054852adaf0da188550fd77ae2069
+0, 21, 21, 1, 58584, 403746356fd559e9bace9bb37557e58e
+0, 22, 22, 1, 58952, 1a3d80d21e00ca5ce8c378da373c65d8
+0, 23, 23, 1, 59696, f66ace9c237d6ee91a4c23a957fde2a1
+0, 24, 24, 1, 60664, 69e6f45d9adf351650648b3fd6fc41b8
+0, 25, 25, 1, 59748, ed9e5524584eb0438f88e12af331009e
+0, 26, 26, 1, 59088, 4325aa8c838b5793364c6ab6ed904d84
+0, 27, 27, 1, 58752, 46a17359055b7ac3285c845af9701c74
+0, 28, 28, 1, 56928, a1fb544e10ee9806c80b5b80d85ef813
+0, 29, 29, 1, 56960, e17a9082644d542b3d589346d3421c51
+0, 30, 30, 1, 58140, f5ae6688db909252b67c3fbe62d783ff
+0, 31, 31, 1, 58980, 71a7053ff0857fa0651e2b8c5626598c
+0, 32, 32, 1, 59548, 60b3d97b4f3893b791894968b7586e99
+0, 33, 33, 1, 61248, ceb9cccd0327ae4c52d8a2cf009d15f7
+0, 34, 34, 1, 60032, ea2ce622422c4efa41069707b231fd52
+0, 35, 35, 1, 59252, b891818e1aba1e29c23fecbf405b03c0
+0, 36, 36, 1, 58568, 0aec4492ddb9608bf217f8b828378680
+0, 37, 37, 1, 58744, 0f218bdc62102270393e7973caa251aa
+0, 38, 38, 1, 58280, 89c93e37590d56c7c32f4955e59b7c54
+0, 39, 39, 1, 58236, 9575ac5076c1c347069b48aa8cb6381f
+0, 40, 40, 1, 57308, e4ede1a1ab344b39399b231fec0cf420
+0, 41, 41, 1, 58964, 9f9c800eddf1fbb093c7ae1320f2ec19
+0, 42, 42, 1, 58800, 9729551ff14d80a3b647bb9688e38cd1
+0, 43, 43, 1, 58716, f0d81b0b287bbe1decd18eac2873166b
+0, 44, 44, 1, 58136, e6aa11b60f8be9cd3d3e9d5c22b326ff
+0, 45, 45, 1, 56772, c3dd97f5d29511103b80edfcf39d2fe3
+0, 46, 46, 1, 55904, ae67aee10ae3b04ac2dc19158bb9c69f
+0, 47, 47, 1, 56344, f3c9c3dd5238c1f29f9204e1efeb6235
+0, 48, 48, 1, 56396, 93b8a198ac7c7118da0b581a50633df9
+0, 49, 49, 1, 55480, b2907ad8da8252dd6403b72eeb49b141
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_yuv420_median b/ffmpeg1/tests/ref/fate/utvideoenc_yuv420_median
new file mode 100644
index 0000000..ddd074b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_yuv420_median
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 62876, c21650baa099fb2dfd35d4f8ddce16d1
+0, 1, 1, 1, 62832, 034a1996d13c15ee0bf482ddc398aac9
+0, 2, 2, 1, 64076, 1f39fd5fc926195b90a3374682a80eac
+0, 3, 3, 1, 62724, 4007f9193b9e3b19e991497bb73679ab
+0, 4, 4, 1, 61664, 3e86c3a2cd07807433ed7f46ede959ec
+0, 5, 5, 1, 63296, 4e7d334f3713ecc07fca77c945c758b7
+0, 6, 6, 1, 63528, 15b8f92a1d84e77521c539a9a02379ac
+0, 7, 7, 1, 62784, 07ead8344bde0c0a060c3313f39cf92e
+0, 8, 8, 1, 63176, 0a8d9329d7f66008a0d41c6ba4749b09
+0, 9, 9, 1, 63492, eefa6ba63516dd2ff9fb0a4e81169977
+0, 10, 10, 1, 63328, 991fd8fcb392774d11b1766cc1dbe0d7
+0, 11, 11, 1, 63328, e2745a89e96a7f0c641fa25a6ed2da83
+0, 12, 12, 1, 62384, 2dd300b64a32ae2d6fb65e88128e5147
+0, 13, 13, 1, 62944, 076331793373fe43cd213ae56fc19e0f
+0, 14, 14, 1, 63932, 37b6b50e7219ba0e593e4ce1de02a864
+0, 15, 15, 1, 64020, ed66d034f605621266054a54714feec9
+0, 16, 16, 1, 62940, fb6a921a8551db3d33b0a24e7e9a3ced
+0, 17, 17, 1, 63052, abac96a9e0128efd4362ec28e66464d2
+0, 18, 18, 1, 62408, 0351d4c9579779dbb398f68f0e4e02e4
+0, 19, 19, 1, 62148, b4f7ed147a1326cf5adae50af6db56ca
+0, 20, 20, 1, 61692, 48a9cdf3d4600768feca7616614dc46d
+0, 21, 21, 1, 61704, d8e6c2daa6ae50caf7d5ee9324812389
+0, 22, 22, 1, 61964, 3983f0bf566d206cde013982722d4453
+0, 23, 23, 1, 62812, b12b44c4df634f608380e2bfb26b717d
+0, 24, 24, 1, 63480, 30ad52da50e0d4f1fc811d24a01e777b
+0, 25, 25, 1, 62708, 2827bd4dec0fa603eaf92bae8c4deb72
+0, 26, 26, 1, 62252, fd7c3a5bcaf83701dd7f2da225f3ce69
+0, 27, 27, 1, 61752, ea9740f3a5f52baaa923e245f649f7c7
+0, 28, 28, 1, 60248, cf4a142fc28437cca11ad1d127a2948f
+0, 29, 29, 1, 60232, 6cd0b708ec41cd10357f8944ae8288bd
+0, 30, 30, 1, 61240, c4a44f902a295f3a6e85276087adcbc0
+0, 31, 31, 1, 62228, a36d5eafa03b784f35303b131ac5d3a0
+0, 32, 32, 1, 62636, e09ca8f58690f991e1ce3986c2864924
+0, 33, 33, 1, 63840, 830de5062cb9c8be8844118c7db4bcef
+0, 34, 34, 1, 62996, e008d4add85b595840a2773d01465147
+0, 35, 35, 1, 62480, 04a38e7c231697aa97e5a401d4329105
+0, 36, 36, 1, 61744, 4cb276703869f45a6ab798e53e615fc0
+0, 37, 37, 1, 62012, dfca9b52389b01d750a4b94d10a8e2e0
+0, 38, 38, 1, 61748, bf2ec90514c268440313fecf68e2f41f
+0, 39, 39, 1, 61688, 99f1c565dc76bde773ccb91b8dbb3860
+0, 40, 40, 1, 60528, 7b66ad4e019964ead8ed1a9eadad9721
+0, 41, 41, 1, 62248, 795e2a8351ac78bc482e341be3af98bb
+0, 42, 42, 1, 61832, d7fc01097c5ec0247d20727aec2adab6
+0, 43, 43, 1, 61688, 4492ffefcaed530fce3221f4bb61ef80
+0, 44, 44, 1, 61216, d9a91c3007686b7166f297bc1dddb9a9
+0, 45, 45, 1, 60192, 7c808c46b376c49fa3d5bd5ba97fce1c
+0, 46, 46, 1, 59388, 6d2a2a72d14ff5c800295de6b2e23465
+0, 47, 47, 1, 59620, 5c1aa124bb6ffb9cd33a6430bf07ea9f
+0, 48, 48, 1, 59584, efc1012cca50e509856e406622d760fe
+0, 49, 49, 1, 58800, fa8563a0bc6022f8f5c5fc70ce0d46f3
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_yuv420_none b/ffmpeg1/tests/ref/fate/utvideoenc_yuv420_none
new file mode 100644
index 0000000..555eee2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_yuv420_none
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 144508, 83af3948090ebb44a0091815e4edc61e
+0, 1, 1, 1, 144496, 950742e357ee489fcda4f783b8df3b4c
+0, 2, 2, 1, 144376, 4b818cf0a50e9338fea26101073e445e
+0, 3, 3, 1, 144420, 0335c3b97dca65e9118a12e3cceb1e24
+0, 4, 4, 1, 144588, a9f7e6cb2d9129d97342c4eb67349aa8
+0, 5, 5, 1, 144444, b956115c6bab18a01594103bcb2ba9e0
+0, 6, 6, 1, 144408, 81761b3135ab3f4d5efd6f2790b6b70f
+0, 7, 7, 1, 144408, 566c53ee4126e31b78f6572292f97f55
+0, 8, 8, 1, 144320, 0c24c346a65cb945f8d804817f67f42e
+0, 9, 9, 1, 144316, 7920264636a6933c776b41567181f2d9
+0, 10, 10, 1, 144248, c1c1b10356f27fca35e03fdc67dd1638
+0, 11, 11, 1, 144168, 5a590c4f603aaddd01d4efbf5571426e
+0, 12, 12, 1, 144452, 10459aa8f48f7e8e0ebc03f15f795acd
+0, 13, 13, 1, 144312, 436658612212e706c4ed9f4bdcf45f38
+0, 14, 14, 1, 144252, 7a5612c485c501669e27039c435ac5d3
+0, 15, 15, 1, 144232, 81018c3b49d376d69af71a4ee2c910a9
+0, 16, 16, 1, 144312, 4280abfc59ee6cfddbf45474a42c5cd5
+0, 17, 17, 1, 144348, 0a48ba8ad15f7431830feeb2ac0f2118
+0, 18, 18, 1, 144356, 6c8f0a396195a840a225aca3ada427ff
+0, 19, 19, 1, 144360, 4a0a959d9c3ebb293d94ef37b4f7f19e
+0, 20, 20, 1, 144380, e61b564126a2d8255a7457b70af74514
+0, 21, 21, 1, 144416, fe434ae640e63fb774d6e7c864d02e49
+0, 22, 22, 1, 144344, 9e106257c640b66ca31919668c4da334
+0, 23, 23, 1, 144376, c0cdd6b2aa1bf4d89c82b602f09fa2e0
+0, 24, 24, 1, 144376, 8be60289a2a4c22355b3bd43f2f85fe4
+0, 25, 25, 1, 144320, 124127b8fcacfa5c5e0ee7f0324da7a0
+0, 26, 26, 1, 144408, a5639aedbdbfff34f36dda8872992cde
+0, 27, 27, 1, 144516, fbe3cf39fd764e6a3d05c63be35a4d58
+0, 28, 28, 1, 144676, 6ee82422712e11740d7b003eab69d5bd
+0, 29, 29, 1, 144648, e5f446835709b1baaca14af3aa6fbbb7
+0, 30, 30, 1, 144496, 3b23fb07c528ad824e9c8f10143ae06a
+0, 31, 31, 1, 144496, 4e4dddd0c72f9d3a555b8d32ae82c10e
+0, 32, 32, 1, 144372, 1dfe88fbe0c1193bb04a06840dfab155
+0, 33, 33, 1, 144168, e03b3d67fcbbde71c6985955feebabfe
+0, 34, 34, 1, 144180, 5d5a24b49cff98cbb85f69b547b43e87
+0, 35, 35, 1, 144348, bb9172de1a4c7a00fe80bb673484781b
+0, 36, 36, 1, 144544, 7824a6c4bb8b919306904be6f67f2736
+0, 37, 37, 1, 144516, 456c3884817909b4cca38f8138c079d4
+0, 38, 38, 1, 144532, 0e63cf833a33a9fac9e5969342817fc2
+0, 39, 39, 1, 144452, 9c0155cdd0a5ae42b79475ab47ba87f7
+0, 40, 40, 1, 144532, eefee218d181e74a80a1d2ec27932e91
+0, 41, 41, 1, 144348, fbd4fd20565350dd927005af590912ff
+0, 42, 42, 1, 144332, eac5c49230fb807c81e8a0c9e9721697
+0, 43, 43, 1, 144428, 9ee3fe8be6c4477b0d8ff1d91049634e
+0, 44, 44, 1, 144480, b58fb19549e4497e82491a26d67c1567
+0, 45, 45, 1, 144596, 1c8059bf14f4df3da9db6b89f87a52b9
+0, 46, 46, 1, 144592, db8a5750beb049ea835895d23e924cab
+0, 47, 47, 1, 144512, 58c69889edb9bdab219d698f6a44d2cf
+0, 48, 48, 1, 144468, 3da8e5ae1f1ff9da72abd3d2ac87a7b9
+0, 49, 49, 1, 144500, 4f80ccdb6f9549190ed72407dd7af2c1
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_yuv422_left b/ffmpeg1/tests/ref/fate/utvideoenc_yuv422_left
new file mode 100644
index 0000000..d9afc2c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_yuv422_left
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 91788, e14e576f1f9abd095f13ceca627adb59
+0, 1, 1, 1, 92140, 4b7db11c2d35fa91ff1b6f65c184e3fa
+0, 2, 2, 1, 93268, 6ef5cb83a4db2afbf14467cbc4b6c4f7
+0, 3, 3, 1, 91612, f08ae129a2867a08770bdb61381bf366
+0, 4, 4, 1, 90456, ed3edabe09b9f6cfbf452a08dafa556d
+0, 5, 5, 1, 92180, a0760e91b3af27a7c1bb0264f128ca50
+0, 6, 6, 1, 92200, 2fda4c87dfa34206173e852b67841406
+0, 7, 7, 1, 91872, 944e7c88c7ebeae9e1efac859ea4fe7d
+0, 8, 8, 1, 91952, 34112ec99382b80c397d26cef93573c7
+0, 9, 9, 1, 92312, 63698686348ccd80cc920e9e73a195aa
+0, 10, 10, 1, 92308, 6a675d6678b7b78fac6375d44f325d06
+0, 11, 11, 1, 92272, bc1401e0acd3864ad30711ca4b61578d
+0, 12, 12, 1, 90920, cd7ecda23a4f312abe71bd3fc28af3e7
+0, 13, 13, 1, 91612, 91ebce52e2594296349476f3bf6a6408
+0, 14, 14, 1, 93112, 34be111d02130ed7389c0c62768041de
+0, 15, 15, 1, 93140, e1b440cad63dbf8ff034f424cd1194cc
+0, 16, 16, 1, 92080, 94181fde8563af0b6810f778f6b1d92b
+0, 17, 17, 1, 91816, ed0997f9b341fc3ab6a8c5d9a4067bd2
+0, 18, 18, 1, 91204, d833b0c3b3dfe60b079b746c4c3aed7f
+0, 19, 19, 1, 90880, 0d4702abb70d7cbc8843a96e3a74117a
+0, 20, 20, 1, 90408, 409860b79fe10ffbffd581c19445fa91
+0, 21, 21, 1, 90280, 5360fa4f1afd8c2c55cf33675a928a14
+0, 22, 22, 1, 90808, fe2ca67d315fb1d8806ee04470d06378
+0, 23, 23, 1, 91584, 84168a6fe20ee00ddd9f54ce8f1e1810
+0, 24, 24, 1, 92684, 6fb3d7193d3bb5400c449717358827e0
+0, 25, 25, 1, 91580, acd2aa86dbae6e133183e5bf2ca389a3
+0, 26, 26, 1, 90928, cc0df9c8e00df5985e39ae486eb59eff
+0, 27, 27, 1, 90536, 8f9d294190c03435f3cee266cca2a31a
+0, 28, 28, 1, 88364, ae9564ad4eb3c1fc03e4befb4b1e719e
+0, 29, 29, 1, 88404, 745a16947203cd7017900b137fca70eb
+0, 30, 30, 1, 89844, 1b7e75be9edb25ffe91c54e270eb8f46
+0, 31, 31, 1, 90752, 9ff03fa3b28f2c84a4da41779e0a2aa4
+0, 32, 32, 1, 91320, 409ed4c3eced8793760505cf8095f51a
+0, 33, 33, 1, 93204, 70865d89c930919474500befe0e2ec3f
+0, 34, 34, 1, 92036, 7388d12a6954b9870749ab6a5f05815f
+0, 35, 35, 1, 91144, b47bfdaec4c00177a9258a03e864400f
+0, 36, 36, 1, 90368, 418df89a063f66cfbb1f806d68aca6a2
+0, 37, 37, 1, 90628, 3f90314ab7311ad0f4bd4808d62a1e80
+0, 38, 38, 1, 89836, 414f90d0efc65b993f6e1fc8f2c1d860
+0, 39, 39, 1, 89792, a07cf9fc580ffee5d61c241dce116ae6
+0, 40, 40, 1, 88896, 3d583229da6b7455b6876843b3b747c7
+0, 41, 41, 1, 90572, cbef36619e7c8e62fc21a735c7701514
+0, 42, 42, 1, 90544, 144816eaeaf0412fca6bf40e6f3e6d3f
+0, 43, 43, 1, 90416, 76f0d9dd1f4fd00b68223dd7c6024b2e
+0, 44, 44, 1, 89788, ce0b66e45ed3c50124680f84614c5ac0
+0, 45, 45, 1, 88120, 5d59770b187109e2e6824f5cb42b9b73
+0, 46, 46, 1, 87164, bb52ce20f4a21ef82a2cc3316ba69e1c
+0, 47, 47, 1, 87632, 87f44c3ecebd09b2ffa94d8ace01f3f3
+0, 48, 48, 1, 87700, cbaed2ac667bdc9aa17ffc68ebaea790
+0, 49, 49, 1, 86624, 21797bc69a89976f9b4b552603a63267
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_yuv422_median b/ffmpeg1/tests/ref/fate/utvideoenc_yuv422_median
new file mode 100644
index 0000000..e1c8fcd
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_yuv422_median
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 89732, 698174b0d0d68e98774363ca7926f6e1
+0, 1, 1, 1, 89652, f0789b7c32ef44207dfc5a454bb5ccee
+0, 2, 2, 1, 90868, 6df1dcb1957efca736e88adfbad8557b
+0, 3, 3, 1, 89520, 9cee942e7f03a97cd2cdf8cea429fb31
+0, 4, 4, 1, 88508, 798f4e8c00f4d949882cdc3f89be0bf6
+0, 5, 5, 1, 90140, 70fc5f4f240b0ca30332b0f37632d1cb
+0, 6, 6, 1, 90176, 1c2747fc56d5eb70ff8f4f361cb70610
+0, 7, 7, 1, 89392, bd8764124753f784d5984cd829c8ca90
+0, 8, 8, 1, 89848, 1dc30ed23a8634f6b2661ac8583fe8cc
+0, 9, 9, 1, 90356, 0910ae7c3a6924031453f458009354fa
+0, 10, 10, 1, 89984, 61da06bf1ed667b54ee749c69ab031eb
+0, 11, 11, 1, 90012, 11d05491f86014f19b34cab3111a95d2
+0, 12, 12, 1, 89072, 4598f16727472daa1710c39b4840efdc
+0, 13, 13, 1, 89776, ed6c0da32acf621e9f79b76a3afaa280
+0, 14, 14, 1, 90680, 05f3a9232bc14ca8721ef04243177a20
+0, 15, 15, 1, 90852, e4deff113ea503656efecb227f6b702a
+0, 16, 16, 1, 89844, 5ee70abd6f1d2e5c55117b28840327e6
+0, 17, 17, 1, 89852, 6721997ae0563009adbdeed31f437ce4
+0, 18, 18, 1, 89144, 8a40f0af74afb4ff05e6242a41c7789f
+0, 19, 19, 1, 88880, 8824c3526629a30fbf9a53abc448844c
+0, 20, 20, 1, 88344, 18a656127a16bb50113bb2e98b11a26d
+0, 21, 21, 1, 88464, 19a3b9510e6347a7782f695b48736991
+0, 22, 22, 1, 88588, e3d22d15b4812c26214db546ce17c7dd
+0, 23, 23, 1, 89720, afe800faa0188dff0899cd83af6301d6
+0, 24, 24, 1, 90216, a9d9ece70c978c595e1d724a0f644f56
+0, 25, 25, 1, 89456, 9bf3e8f87f072d55095acc9351a09f45
+0, 26, 26, 1, 88992, 40d1b1858f1ba0bebd9eb9f5263cda9d
+0, 27, 27, 1, 88632, 1df39644ac99bccab4c6bd72498284c4
+0, 28, 28, 1, 87048, 9983cd95307c1bab653170ba2aecdc55
+0, 29, 29, 1, 87120, 006b48403af94a0bc5121900b48af9c1
+0, 30, 30, 1, 88044, 652d17c8805de56cd83824d99888822e
+0, 31, 31, 1, 89016, 652a971973d088b5098a06b216137151
+0, 32, 32, 1, 89324, 2775a087358ead0281ce188f4006050d
+0, 33, 33, 1, 90328, 564e119bdf5f3c780c0613990ca487db
+0, 34, 34, 1, 89684, 1f5fb4ec22234aee771791b71881b630
+0, 35, 35, 1, 89216, dde7a003cfe5b47f9be407f28dcdfb3f
+0, 36, 36, 1, 88644, 1fed2d2f72ec9488181a06606aaf4e12
+0, 37, 37, 1, 89000, 8f916bee0ad8efe8d3572e4af4bf4b8e
+0, 38, 38, 1, 88628, d802fb5634d3acd72a96bd99c22dd566
+0, 39, 39, 1, 88448, a4d438df349f1f2ff1620fb965d08513
+0, 40, 40, 1, 87332, 18a8527dcfc5c1fa8ae7aa8a83781d2d
+0, 41, 41, 1, 88856, 63179f19a5d60d3ea9fa14c00ca5c493
+0, 42, 42, 1, 88556, 92b568c24ed53e823b54fa6c064d16ac
+0, 43, 43, 1, 88380, c204b982e3ab7fc1aa6b1b132c4ae462
+0, 44, 44, 1, 87888, 45f1cd55d454a0b611b047b6e5172b30
+0, 45, 45, 1, 86876, c668ac58b31feb51902b78fdfcdc1064
+0, 46, 46, 1, 86272, 24a94950de7065cb236e52502c9c8e67
+0, 47, 47, 1, 86388, 51dad738cd8896616694a4fb52b47fbd
+0, 48, 48, 1, 86188, dc6709cd2722eb8dd927f405c6a30915
+0, 49, 49, 1, 85244, 68f40045a250ab0799a7325aa16ec80c
diff --git a/ffmpeg1/tests/ref/fate/utvideoenc_yuv422_none b/ffmpeg1/tests/ref/fate/utvideoenc_yuv422_none
new file mode 100644
index 0000000..ca77177
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/utvideoenc_yuv422_none
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 191800, 0e1d199f87997ba47e98596b6087d7d4
+0, 1, 1, 1, 191820, b35714d0635214095ac06d35da00ed32
+0, 2, 2, 1, 191668, 8336829e44f5b90034e5da33dcd27f1f
+0, 3, 3, 1, 191696, ebff701893f27b026fe6fec4a1cbd90b
+0, 4, 4, 1, 191976, c2729ecde4337a51192da71b0ef36e7d
+0, 5, 5, 1, 191760, e2ef2db5ef30019d5fd24cd32c696318
+0, 6, 6, 1, 191708, 638eb1c1b68bc9f4cc315ebdd3bd86f5
+0, 7, 7, 1, 191688, aca858d2cce189eb60012a33ea74d10b
+0, 8, 8, 1, 191576, aa933dea9aac9b61fea004747e3b8e6a
+0, 9, 9, 1, 191544, 6c410ec9e2492d464d439a58e6e338c3
+0, 10, 10, 1, 191472, 7c7661ff35671b3912b2b216bc6df478
+0, 11, 11, 1, 191280, 73c1ff53a0cd5c65eb2ae75a45efbf72
+0, 12, 12, 1, 191700, 201b0b4834878513e6e13bd9f5977a28
+0, 13, 13, 1, 191424, 0affff549b2da09c7852c5e8dbd1c84a
+0, 14, 14, 1, 191420, e0e80adf520953c4bc4033efc77b9092
+0, 15, 15, 1, 191408, 4fa22efbf2101b7f6bfffae227ce1d23
+0, 16, 16, 1, 191500, fef8df893234b38be36803d5f5656e16
+0, 17, 17, 1, 191580, 3585b500a77344fd87f8f18e3816f1a8
+0, 18, 18, 1, 191608, 419189483180612b72491dab5864c6e7
+0, 19, 19, 1, 191616, 197fa32c8a164eeea73defb7422657d1
+0, 20, 20, 1, 191596, a660a6c630f7e55c3ca2f9a37d599223
+0, 21, 21, 1, 191660, d98445b0387c3d54034f8defe1d03ea6
+0, 22, 22, 1, 191540, ef4522aa762b82d1c715805a779c7c1e
+0, 23, 23, 1, 191576, 32d109d2040c69b3944471b0bd399a65
+0, 24, 24, 1, 191636, 58e2f3a01de4175ba7f915e2d065ba36
+0, 25, 25, 1, 191524, 0989a64e78613cfc26124e195cfc0cde
+0, 26, 26, 1, 191640, b9e252a5c4583736a8ba248d15c429aa
+0, 27, 27, 1, 191800, 1541cccc66cb63d3e1ef675a16a1258e
+0, 28, 28, 1, 192028, 5dada6bf987738caebca210067d13c39
+0, 29, 29, 1, 191964, 8d55bb4a1464ac74364d4b1e416d4a0c
+0, 30, 30, 1, 191736, 88c279b9f3e96485f85dbca09177fe26
+0, 31, 31, 1, 191788, aa75795116428edb57dea8b54527e13b
+0, 32, 32, 1, 191636, aa45e4ec1fcc038ea2e48046e5047417
+0, 33, 33, 1, 191400, 7b2861b3ca8bfcdca010d859c0595e03
+0, 34, 34, 1, 191332, 956acfcc00661d9a9ba7575e8c1a011b
+0, 35, 35, 1, 191548, 3b5b7c3b9a6a5ebe10f178077a5fea4d
+0, 36, 36, 1, 191852, 835219e1689946f3e26457ffce197181
+0, 37, 37, 1, 191828, f67a1e4640472287baf194c02f24dc29
+0, 38, 38, 1, 191812, 978f44d430859044350ea20913ae4194
+0, 39, 39, 1, 191700, 92e21c9ded61f69f793c649eece071c4
+0, 40, 40, 1, 191812, 0a460bc35daad68e8042917f26dac542
+0, 41, 41, 1, 191548, 7c7a65b9257f9b4439002c5c414c401c
+0, 42, 42, 1, 191544, b03d903c46536dc336461827fd4d34db
+0, 43, 43, 1, 191700, 75b391d84b120e63ec229fcb48808d19
+0, 44, 44, 1, 191780, c953dcd42a8aa19eb4d4be0149894bbe
+0, 45, 45, 1, 191952, 64be44b2e21f8301f4234e32a10cb1c9
+0, 46, 46, 1, 191916, a6c805f651f3f57a84681b1aab6fe3ef
+0, 47, 47, 1, 191784, 9cc8db3cb63a026645f634aabc89c37b
+0, 48, 48, 1, 191716, e2f0c7543b3484a726411eac4e9a79cd
+0, 49, 49, 1, 191728, 50277180199917d1259e0cad42f52d4c
diff --git a/ffmpeg1/tests/ref/fate/v210 b/ffmpeg1/tests/ref/fate/v210
new file mode 100644
index 0000000..7ad9dcf
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/v210
@@ -0,0 +1,2 @@
+#tb 0: 1/50
+0, 0, 0, 1, 3686400, 0x8d5c3847
diff --git a/ffmpeg1/tests/ref/fate/v410dec b/ffmpeg1/tests/ref/fate/v410dec
new file mode 100644
index 0000000..98b2816
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/v410dec
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 393216, 0xfe11a6b0
diff --git a/ffmpeg1/tests/ref/fate/v410enc b/ffmpeg1/tests/ref/fate/v410enc
new file mode 100644
index 0000000..ab219bb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/v410enc
@@ -0,0 +1 @@
+e5c0b1f17d2a64a416dcf9bf7a38d9d9
diff --git a/ffmpeg1/tests/ref/fate/vb b/ffmpeg1/tests/ref/fate/vb
new file mode 100644
index 0000000..336d426
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vb
@@ -0,0 +1,37 @@
+#tb 0: 1/12
+0, 0, 0, 1, 230400, 0x3bd1d731
+0, 1, 1, 1, 230400, 0x9d0774c3
+0, 2, 2, 1, 230400, 0xa0faafe2
+0, 3, 3, 1, 230400, 0x38325309
+0, 4, 4, 1, 230400, 0xe90a1b1e
+0, 5, 5, 1, 230400, 0x8efbc904
+0, 6, 6, 1, 230400, 0x0a8476f3
+0, 7, 7, 1, 230400, 0x5d94587d
+0, 8, 8, 1, 230400, 0x280b905d
+0, 9, 9, 1, 230400, 0x07178dd9
+0, 10, 10, 1, 230400, 0xf52b8db4
+0, 11, 11, 1, 230400, 0x2b70c1dc
+0, 12, 12, 1, 230400, 0x8157a6e9
+0, 13, 13, 1, 230400, 0xd4a3c357
+0, 14, 14, 1, 230400, 0x703861bb
+0, 15, 15, 1, 230400, 0xa13cf75e
+0, 16, 16, 1, 230400, 0x140e487f
+0, 17, 17, 1, 230400, 0x05cca333
+0, 18, 18, 1, 230400, 0x0506ee2b
+0, 19, 19, 1, 230400, 0xe3e13466
+0, 20, 20, 1, 230400, 0x8a24118c
+0, 21, 21, 1, 230400, 0x22050962
+0, 22, 22, 1, 230400, 0x0f5c8a0d
+0, 23, 23, 1, 230400, 0x3475df44
+0, 24, 24, 1, 230400, 0x65354e06
+0, 25, 25, 1, 230400, 0xb9a01978
+0, 26, 26, 1, 230400, 0x15207ee1
+0, 27, 27, 1, 230400, 0x3b214f0b
+0, 28, 28, 1, 230400, 0xf9461bbb
+0, 29, 29, 1, 230400, 0x1469290f
+0, 30, 30, 1, 230400, 0x8ddfd514
+0, 31, 31, 1, 230400, 0x1bffa6a1
+0, 32, 32, 1, 230400, 0x5a04d712
+0, 33, 33, 1, 230400, 0xaa8de439
+0, 34, 34, 1, 230400, 0x610c5439
+0, 35, 35, 1, 230400, 0xd02d3e7c
diff --git a/ffmpeg1/tests/ref/fate/vble b/ffmpeg1/tests/ref/fate/vble
new file mode 100644
index 0000000..8c4250f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vble
@@ -0,0 +1,5 @@
+#tb 0: 1001/30000
+0, 0, 0, 1, 1382400, 0x5e1bc307
+0, 1, 1, 1, 1382400, 0x198795f7
+0, 2, 2, 1, 1382400, 0xa9102ac2
+0, 3, 3, 1, 1382400, 0x9e347932
diff --git a/ffmpeg1/tests/ref/fate/vc1-ism b/ffmpeg1/tests/ref/fate/vc1-ism
new file mode 100644
index 0000000..7d3b0ab
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vc1-ism
@@ -0,0 +1,121 @@
+#tb 0: 1/24
+0, 0, 0, 1, 37440, 0xd1bc5235
+0, 2, 2, 1, 37440, 0x158e6167
+0, 3, 3, 1, 37440, 0x0faa4481
+0, 4, 4, 1, 37440, 0x427158c5
+0, 5, 5, 1, 37440, 0x4eb53ac6
+0, 6, 6, 1, 37440, 0x99304eea
+0, 7, 7, 1, 37440, 0xcc554a6f
+0, 8, 8, 1, 37440, 0xabeb6c35
+0, 9, 9, 1, 37440, 0xddfc7e18
+0, 10, 10, 1, 37440, 0xaa79b504
+0, 11, 11, 1, 37440, 0x5cb1c839
+0, 12, 12, 1, 37440, 0x7e36ecca
+0, 13, 13, 1, 37440, 0xf486f425
+0, 14, 14, 1, 37440, 0xf1b4138f
+0, 15, 15, 1, 37440, 0x966f1a49
+0, 16, 16, 1, 37440, 0x5eff21da
+0, 17, 17, 1, 37440, 0x333f39b1
+0, 18, 18, 1, 37440, 0x62e5963e
+0, 19, 19, 1, 37440, 0x26930671
+0, 20, 20, 1, 37440, 0x27b4bb6c
+0, 21, 21, 1, 37440, 0xdbd07766
+0, 22, 22, 1, 37440, 0x04260104
+0, 23, 23, 1, 37440, 0x9b1e078b
+0, 24, 24, 1, 37440, 0xdf4e2474
+0, 25, 25, 1, 37440, 0x57d44986
+0, 26, 26, 1, 37440, 0x8780e34c
+0, 27, 27, 1, 37440, 0xf80c8bc0
+0, 28, 28, 1, 37440, 0x630a7583
+0, 29, 29, 1, 37440, 0x235ae089
+0, 30, 30, 1, 37440, 0x984b8f0e
+0, 31, 31, 1, 37440, 0x865cf592
+0, 32, 32, 1, 37440, 0x70f376f2
+0, 33, 33, 1, 37440, 0x8b30c035
+0, 34, 34, 1, 37440, 0xde772d79
+0, 35, 35, 1, 37440, 0x8e076be5
+0, 36, 36, 1, 37440, 0x3dc2bd9f
+0, 37, 37, 1, 37440, 0xb782eb67
+0, 38, 38, 1, 37440, 0x02025d73
+0, 39, 39, 1, 37440, 0x86bbbce8
+0, 40, 40, 1, 37440, 0xd6554f62
+0, 41, 41, 1, 37440, 0xb831b917
+0, 42, 42, 1, 37440, 0x80643560
+0, 43, 43, 1, 37440, 0x4ecf9afd
+0, 44, 44, 1, 37440, 0x9ce51e0b
+0, 45, 45, 1, 37440, 0x179466cd
+0, 46, 46, 1, 37440, 0x145fc900
+0, 47, 47, 1, 37440, 0xb1b50402
+0, 48, 48, 1, 37440, 0x0a87552a
+0, 49, 49, 1, 37440, 0x8f53821d
+0, 50, 50, 1, 37440, 0x1c07c825
+0, 51, 51, 1, 37440, 0x49dde82f
+0, 52, 52, 1, 37440, 0xb1a32605
+0, 53, 53, 1, 37440, 0x410f3cd5
+0, 54, 54, 1, 37440, 0xff5e6696
+0, 55, 55, 1, 37440, 0x96f678c9
+0, 56, 56, 1, 37440, 0x6c9e9e68
+0, 57, 57, 1, 37440, 0x79a2a655
+0, 58, 58, 1, 37440, 0xf237bd6c
+0, 59, 59, 1, 37440, 0x4051b611
+0, 60, 60, 1, 37440, 0xc7ccc918
+0, 61, 61, 1, 37440, 0xbd02c122
+0, 62, 62, 1, 37440, 0xacb3c881
+0, 63, 63, 1, 37440, 0x2abdb940
+0, 64, 64, 1, 37440, 0x19d5be85
+0, 65, 65, 1, 37440, 0xfa5fb1ba
+0, 66, 66, 1, 37440, 0xdae7a7aa
+0, 67, 67, 1, 37440, 0x6b0f9f69
+0, 68, 68, 1, 37440, 0x353e8201
+0, 69, 69, 1, 37440, 0xa21443aa
+0, 70, 70, 1, 37440, 0x66c8d7e0
+0, 71, 71, 1, 37440, 0xc332068e
+0, 72, 72, 1, 37440, 0x71431b9b
+0, 73, 73, 1, 37440, 0x392f15cb
+0, 74, 74, 1, 37440, 0x95a146bb
+0, 75, 75, 1, 37440, 0x7c51740a
+0, 76, 76, 1, 37440, 0xa3bdd43c
+0, 77, 77, 1, 37440, 0xa079f965
+0, 78, 78, 1, 37440, 0xa95423ea
+0, 79, 79, 1, 37440, 0xd1bd2c67
+0, 80, 80, 1, 37440, 0x6cf82844
+0, 81, 81, 1, 37440, 0xd401e128
+0, 82, 82, 1, 37440, 0x1f7db118
+0, 83, 83, 1, 37440, 0x2e0a65a9
+0, 84, 84, 1, 37440, 0x321c1c40
+0, 85, 85, 1, 37440, 0x95b2a127
+0, 86, 86, 1, 37440, 0xa1471f4b
+0, 87, 87, 1, 37440, 0x29d148c0
+0, 88, 88, 1, 37440, 0x24c07107
+0, 89, 89, 1, 37440, 0x0ead678d
+0, 90, 90, 1, 37440, 0xd0ca6495
+0, 91, 91, 1, 37440, 0x08f935ef
+0, 92, 92, 1, 37440, 0xb5ec3c38
+0, 93, 93, 1, 37440, 0xce371628
+0, 94, 94, 1, 37440, 0x68170812
+0, 95, 95, 1, 37440, 0xe222699e
+0, 96, 96, 1, 37440, 0xd688706c
+0, 97, 97, 1, 37440, 0x81a033f9
+0, 98, 98, 1, 37440, 0x28bd0fbf
+0, 99, 99, 1, 37440, 0xe36db7b2
+0, 100, 100, 1, 37440, 0x30559121
+0, 101, 101, 1, 37440, 0xbf2b5fc8
+0, 102, 102, 1, 37440, 0x4b427672
+0, 103, 103, 1, 37440, 0x0544b0b4
+0, 104, 104, 1, 37440, 0x38a70b06
+0, 105, 105, 1, 37440, 0x4ed62607
+0, 106, 106, 1, 37440, 0x6efe8ea6
+0, 107, 107, 1, 37440, 0x81197e11
+0, 108, 108, 1, 37440, 0xf4060050
+0, 109, 109, 1, 37440, 0xaf205f13
+0, 110, 110, 1, 37440, 0x5fa21382
+0, 111, 111, 1, 37440, 0x8627ad05
+0, 112, 112, 1, 37440, 0xf7130133
+0, 113, 113, 1, 37440, 0x76dea7ba
+0, 114, 114, 1, 37440, 0x1dbae1be
+0, 115, 115, 1, 37440, 0x74a933f7
+0, 116, 116, 1, 37440, 0xbdcd41a3
+0, 117, 117, 1, 37440, 0xf0fe8c1c
+0, 118, 118, 1, 37440, 0xc0036222
+0, 119, 119, 1, 37440, 0x3058385c
+0, 120, 120, 1, 37440, 0x68141016
diff --git a/ffmpeg1/tests/ref/fate/vc1_sa00040 b/ffmpeg1/tests/ref/fate/vc1_sa00040
new file mode 100644
index 0000000..79bff27
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vc1_sa00040
@@ -0,0 +1,16 @@
+#tb 0: 1/25
+0, 0, 0, 1, 38016, 0xa6f15db5
+0, 1, 1, 1, 38016, 0xa6f15db5
+0, 2, 2, 1, 38016, 0xa6f15db5
+0, 4, 4, 1, 38016, 0x5c4ef0e7
+0, 5, 5, 1, 38016, 0x53a42d1d
+0, 6, 6, 1, 38016, 0x68f7d89e
+0, 7, 7, 1, 38016, 0xc15f4368
+0, 8, 8, 1, 38016, 0xc15f4368
+0, 9, 9, 1, 38016, 0xd1bd47a8
+0, 10, 10, 1, 38016, 0xd1bd47a8
+0, 11, 11, 1, 38016, 0xe1e821ca
+0, 12, 12, 1, 38016, 0xe1e821ca
+0, 13, 13, 1, 38016, 0xe1e821ca
+0, 14, 14, 1, 38016, 0xe1e821ca
+0, 15, 15, 1, 38016, 0xe1e821ca
diff --git a/ffmpeg1/tests/ref/fate/vc1_sa00050 b/ffmpeg1/tests/ref/fate/vc1_sa00050
new file mode 100644
index 0000000..89a3840
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vc1_sa00050
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 115200, 0xb8830eef
+0, 1, 1, 1, 115200, 0xb8830eef
+0, 2, 2, 1, 115200, 0xb8830eef
+0, 4, 4, 1, 115200, 0x952ff5e1
+0, 5, 5, 1, 115200, 0xa4362b14
+0, 6, 6, 1, 115200, 0x32bacbe7
+0, 7, 7, 1, 115200, 0x509eb814
+0, 8, 8, 1, 115200, 0x509eb814
+0, 9, 9, 1, 115200, 0x11a76c3e
+0, 10, 10, 1, 115200, 0x11a76c3e
+0, 11, 11, 1, 115200, 0x00cf734a
+0, 12, 12, 1, 115200, 0x00cf734a
+0, 13, 13, 1, 115200, 0x00cf734a
+0, 14, 14, 1, 115200, 0x00cf734a
+0, 15, 15, 1, 115200, 0x00cf734a
+0, 16, 16, 1, 115200, 0x00cf734a
+0, 17, 17, 1, 115200, 0x00cf734a
+0, 18, 18, 1, 115200, 0x00cf734a
+0, 19, 19, 1, 115200, 0xfddf48e6
+0, 20, 20, 1, 115200, 0xfddf48e6
+0, 21, 21, 1, 115200, 0x1eccebbf
+0, 22, 22, 1, 115200, 0x3da2f77e
+0, 23, 23, 1, 115200, 0x7c232572
+0, 24, 24, 1, 115200, 0xedf426e5
+0, 25, 25, 1, 115200, 0x5324ab20
+0, 26, 26, 1, 115200, 0x5324ab20
+0, 27, 27, 1, 115200, 0xa23e66bb
+0, 28, 28, 1, 115200, 0x680a50ff
+0, 29, 29, 1, 115200, 0x680a50ff
+0, 30, 30, 1, 115200, 0x680a50ff
diff --git a/ffmpeg1/tests/ref/fate/vc1_sa10091 b/ffmpeg1/tests/ref/fate/vc1_sa10091
new file mode 100644
index 0000000..33326d6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vc1_sa10091
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0xae20b4fa
+0, 2, 2, 1, 518400, 0x2b4ccdf9
+0, 3, 3, 1, 518400, 0x2b4ccdf9
+0, 4, 4, 1, 518400, 0x2b4ccdf9
+0, 5, 5, 1, 518400, 0x2b4ccdf9
+0, 6, 6, 1, 518400, 0x2b4ccdf9
+0, 7, 7, 1, 518400, 0x70d9a891
+0, 8, 8, 1, 518400, 0x70d9a891
+0, 9, 9, 1, 518400, 0x70d9a891
+0, 10, 10, 1, 518400, 0xa461ee86
+0, 11, 11, 1, 518400, 0x722bc6e8
+0, 12, 12, 1, 518400, 0x722bc6e8
+0, 13, 13, 1, 518400, 0x722bc6e8
+0, 14, 14, 1, 518400, 0xf752fd2c
+0, 15, 15, 1, 518400, 0xf752fd2c
+0, 16, 16, 1, 518400, 0x91abcaca
+0, 17, 17, 1, 518400, 0x572727c3
+0, 18, 18, 1, 518400, 0x572727c3
+0, 19, 19, 1, 518400, 0x24c12382
+0, 20, 20, 1, 518400, 0x24c12382
+0, 21, 21, 1, 518400, 0x9aa39fe8
+0, 22, 22, 1, 518400, 0x9aa39fe8
+0, 23, 23, 1, 518400, 0x5cb6bd19
+0, 24, 24, 1, 518400, 0x704d9300
+0, 25, 25, 1, 518400, 0x590fad49
+0, 26, 26, 1, 518400, 0x590fad49
+0, 27, 27, 1, 518400, 0x590fad49
+0, 28, 28, 1, 518400, 0x46bea10b
+0, 29, 29, 1, 518400, 0x46bea10b
+0, 30, 30, 1, 518400, 0x46bea10b
diff --git a/ffmpeg1/tests/ref/fate/vc1_sa10143 b/ffmpeg1/tests/ref/fate/vc1_sa10143
new file mode 100644
index 0000000..6a5137f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vc1_sa10143
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 518400, 0x89407f55
+0, 2, 2, 1, 518400, 0x8611849c
+0, 3, 3, 1, 518400, 0x0e69ff59
+0, 4, 4, 1, 518400, 0xf31adb03
+0, 5, 5, 1, 518400, 0x1a5b6a69
+0, 6, 6, 1, 518400, 0x6ae6232e
+0, 7, 7, 1, 518400, 0x9a4e3c54
+0, 8, 8, 1, 518400, 0xe5852b45
+0, 9, 9, 1, 518400, 0x0fcfeebc
+0, 10, 10, 1, 518400, 0x06e22dc3
+0, 11, 11, 1, 518400, 0x9d79df09
+0, 12, 12, 1, 518400, 0xcb2c716f
+0, 13, 13, 1, 518400, 0x638a8746
+0, 14, 14, 1, 518400, 0xf7032efd
+0, 15, 15, 1, 518400, 0x306f6cef
+0, 16, 16, 1, 518400, 0xe83d2518
+0, 17, 17, 1, 518400, 0x49ab5bf5
+0, 18, 18, 1, 518400, 0x6b336b6f
+0, 19, 19, 1, 518400, 0x95ae00c9
+0, 20, 20, 1, 518400, 0x68ddb64f
+0, 21, 21, 1, 518400, 0x5205ea68
+0, 22, 22, 1, 518400, 0xb088e617
+0, 23, 23, 1, 518400, 0xa3217616
+0, 24, 24, 1, 518400, 0x1723bc53
+0, 25, 25, 1, 518400, 0xf024872a
+0, 26, 26, 1, 518400, 0x2e81a8bb
+0, 27, 27, 1, 518400, 0xa3a2418e
+0, 28, 28, 1, 518400, 0xb7beffed
+0, 29, 29, 1, 518400, 0x50fb6c94
+0, 30, 30, 1, 518400, 0x5584bb40
diff --git a/ffmpeg1/tests/ref/fate/vc1_sa20021 b/ffmpeg1/tests/ref/fate/vc1_sa20021
new file mode 100644
index 0000000..22989a0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vc1_sa20021
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 506880, 0x884bc093
+0, 2, 2, 1, 506880, 0x4b09548f
+0, 3, 3, 1, 506880, 0x195cbee1
+0, 4, 4, 1, 506880, 0xc8141e28
+0, 5, 5, 1, 506880, 0xb170c49b
+0, 6, 6, 1, 506880, 0x2782268a
+0, 7, 7, 1, 506880, 0x2782268a
+0, 8, 8, 1, 506880, 0x2782268a
+0, 9, 9, 1, 506880, 0x2782268a
+0, 10, 10, 1, 506880, 0xe6803b32
+0, 11, 11, 1, 506880, 0xe6803b32
+0, 12, 12, 1, 506880, 0xa5ef9baf
+0, 13, 13, 1, 506880, 0xa5ef9baf
+0, 14, 14, 1, 506880, 0x46e8cbcb
+0, 15, 15, 1, 506880, 0x28a2239b
+0, 16, 16, 1, 506880, 0x7667af2f
+0, 17, 17, 1, 506880, 0x7667af2f
+0, 18, 18, 1, 506880, 0x8011bcaf
+0, 19, 19, 1, 506880, 0xd422115b
+0, 20, 20, 1, 506880, 0xd422115b
+0, 21, 21, 1, 506880, 0xd422115b
+0, 22, 22, 1, 506880, 0xbcee0b5b
+0, 23, 23, 1, 506880, 0x08fe9ec8
+0, 24, 24, 1, 506880, 0xc8fb8b37
+0, 25, 25, 1, 506880, 0xc8fb8b37
+0, 26, 26, 1, 506880, 0x2c698b52
+0, 27, 27, 1, 506880, 0x2c698b52
+0, 28, 28, 1, 506880, 0x2c698b52
+0, 29, 29, 1, 506880, 0x2b4ad9bc
+0, 30, 30, 1, 506880, 0x2b4ad9bc
+0, 31, 31, 1, 506880, 0x2b4ad9bc
+0, 32, 32, 1, 506880, 0x2b4ad9bc
+0, 33, 33, 1, 506880, 0x92e84ebb
+0, 34, 34, 1, 506880, 0x92e84ebb
+0, 35, 35, 1, 506880, 0xdb877da3
+0, 36, 36, 1, 506880, 0xdb877da3
+0, 37, 37, 1, 506880, 0xdb877da3
+0, 38, 38, 1, 506880, 0x44610654
+0, 39, 39, 1, 506880, 0x44610654
+0, 40, 40, 1, 506880, 0xe254ce67
+0, 41, 41, 1, 506880, 0xa6085385
+0, 42, 42, 1, 506880, 0x2d45d744
+0, 43, 43, 1, 506880, 0x2d45d744
+0, 44, 44, 1, 506880, 0x6e684f51
+0, 45, 45, 1, 506880, 0xe96186cf
+0, 46, 46, 1, 506880, 0xb535d369
+0, 47, 47, 1, 506880, 0xb535d369
+0, 48, 48, 1, 506880, 0xb535d369
+0, 49, 49, 1, 506880, 0xeed0b7e0
+0, 50, 50, 1, 506880, 0xeed0b7e0
+0, 51, 51, 1, 506880, 0xeed0b7e0
+0, 52, 52, 1, 506880, 0xeed0b7e0
+0, 53, 53, 1, 506880, 0x8789b20b
+0, 54, 54, 1, 506880, 0x0a0f42fb
+0, 55, 55, 1, 506880, 0x09bbac2d
+0, 56, 56, 1, 506880, 0x09bbac2d
+0, 57, 57, 1, 506880, 0x09bbac2d
+0, 58, 58, 1, 506880, 0x09bbac2d
+0, 59, 59, 1, 506880, 0x09bbac2d
+0, 60, 60, 1, 506880, 0xda77f0df
diff --git a/ffmpeg1/tests/ref/fate/vcr1 b/ffmpeg1/tests/ref/fate/vcr1
new file mode 100644
index 0000000..da21df4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vcr1
@@ -0,0 +1,129 @@
+#tb 0: 66099/1000000
+0, 0, 0, 1, 28512, 0x7165286d
+0, 1, 1, 1, 28512, 0x2b842acc
+0, 2, 2, 1, 28512, 0x6d1b8e85
+0, 3, 3, 1, 28512, 0xc5042fab
+0, 4, 4, 1, 28512, 0x8b84fa8d
+0, 5, 5, 1, 28512, 0x2ba34ee5
+0, 6, 6, 1, 28512, 0x48493c3a
+0, 7, 7, 1, 28512, 0xbd774ff0
+0, 8, 8, 1, 28512, 0xf2e2edcd
+0, 9, 9, 1, 28512, 0x9364c39e
+0, 10, 10, 1, 28512, 0x7203d4d0
+0, 11, 11, 1, 28512, 0x3771e23e
+0, 12, 12, 1, 28512, 0xf332b71e
+0, 13, 13, 1, 28512, 0x64d9aedb
+0, 14, 14, 1, 28512, 0xc8f9cdbe
+0, 15, 15, 1, 28512, 0xf077a6e8
+0, 16, 16, 1, 28512, 0xa9958897
+0, 17, 17, 1, 28512, 0x89fb6c6e
+0, 18, 18, 1, 28512, 0x05b7350c
+0, 19, 19, 1, 28512, 0x23cf3ec8
+0, 20, 20, 1, 28512, 0xf9105aa6
+0, 21, 21, 1, 28512, 0x37ed48cb
+0, 22, 22, 1, 28512, 0xf4b15ce3
+0, 23, 23, 1, 28512, 0x64b994b8
+0, 24, 24, 1, 28512, 0x6731c26b
+0, 25, 25, 1, 28512, 0x650d110b
+0, 26, 26, 1, 28512, 0xbbb248ca
+0, 27, 27, 1, 28512, 0x426ab4ab
+0, 28, 28, 1, 28512, 0xb7f2e361
+0, 29, 29, 1, 28512, 0xced16599
+0, 30, 30, 1, 28512, 0xebf11860
+0, 31, 31, 1, 28512, 0xefe1df5f
+0, 32, 32, 1, 28512, 0x2afc432e
+0, 33, 33, 1, 28512, 0x07bd3eea
+0, 34, 34, 1, 28512, 0x8b133899
+0, 35, 35, 1, 28512, 0x0830f148
+0, 36, 36, 1, 28512, 0x871fc549
+0, 37, 37, 1, 28512, 0x0082c863
+0, 38, 38, 1, 28512, 0x6144bdce
+0, 39, 39, 1, 28512, 0x0af772ea
+0, 40, 40, 1, 28512, 0x982b8707
+0, 41, 41, 1, 28512, 0x565a3bfe
+0, 42, 42, 1, 28512, 0xdf14192e
+0, 43, 43, 1, 28512, 0x0c5ffcc1
+0, 44, 44, 1, 28512, 0x87532564
+0, 45, 45, 1, 28512, 0x0ba1661b
+0, 46, 46, 1, 28512, 0xd0e7a750
+0, 47, 47, 1, 28512, 0x5add4281
+0, 48, 48, 1, 28512, 0x9f45c597
+0, 49, 49, 1, 28512, 0x921736d0
+0, 50, 50, 1, 28512, 0xab177a89
+0, 51, 51, 1, 28512, 0xb83a6f7c
+0, 52, 52, 1, 28512, 0x9bf6716b
+0, 53, 53, 1, 28512, 0xc8ca0f4f
+0, 54, 54, 1, 28512, 0x2ca6c753
+0, 55, 55, 1, 28512, 0xc2f67d1f
+0, 56, 56, 1, 28512, 0x9b0e1d7b
+0, 57, 57, 1, 28512, 0x5257c5d0
+0, 58, 58, 1, 28512, 0xf256bd2f
+0, 59, 59, 1, 28512, 0x1b04bd04
+0, 60, 60, 1, 28512, 0x83deb9e4
+0, 61, 61, 1, 28512, 0x5f3aa6b4
+0, 62, 62, 1, 28512, 0x9313c5f3
+0, 63, 63, 1, 28512, 0x1cfe0c23
+0, 64, 64, 1, 28512, 0x3e9b37bf
+0, 65, 65, 1, 28512, 0x1603b386
+0, 66, 66, 1, 28512, 0x3e70da87
+0, 67, 67, 1, 28512, 0xa6684712
+0, 68, 68, 1, 28512, 0x0454bbb7
+0, 69, 69, 1, 28512, 0x7cf2f717
+0, 70, 70, 1, 28512, 0xdfbd424c
+0, 71, 71, 1, 28512, 0x7318a177
+0, 72, 72, 1, 28512, 0xbffcd503
+0, 73, 73, 1, 28512, 0x85db177d
+0, 74, 74, 1, 28512, 0x2a8269d1
+0, 75, 75, 1, 28512, 0xb5455cd5
+0, 76, 76, 1, 28512, 0x5fd79a35
+0, 77, 77, 1, 28512, 0xc1a7c005
+0, 78, 78, 1, 28512, 0x55230bb0
+0, 79, 79, 1, 28512, 0x5acf45d9
+0, 80, 80, 1, 28512, 0xdf1259bf
+0, 81, 81, 1, 28512, 0xe04e87eb
+0, 82, 82, 1, 28512, 0xfd25abc0
+0, 83, 83, 1, 28512, 0x38c4d017
+0, 84, 84, 1, 28512, 0x7b15d521
+0, 85, 85, 1, 28512, 0xb156b981
+0, 86, 86, 1, 28512, 0xcc99cd09
+0, 87, 87, 1, 28512, 0x633a9cec
+0, 88, 88, 1, 28512, 0xf00a7c1b
+0, 89, 89, 1, 28512, 0x426250e9
+0, 90, 90, 1, 28512, 0xfad02714
+0, 91, 91, 1, 28512, 0x1ea5d8d2
+0, 92, 92, 1, 28512, 0x581ea622
+0, 93, 93, 1, 28512, 0x6b225f61
+0, 94, 94, 1, 28512, 0x68f337e6
+0, 95, 95, 1, 28512, 0x85f7060e
+0, 96, 96, 1, 28512, 0xaa3b1086
+0, 97, 97, 1, 28512, 0x91fa1371
+0, 98, 98, 1, 28512, 0x92acd34a
+0, 99, 99, 1, 28512, 0x0ae8c1e6
+0, 100, 100, 1, 28512, 0x1335a5b3
+0, 101, 101, 1, 28512, 0xc364a5e7
+0, 102, 102, 1, 28512, 0x19b9819a
+0, 103, 103, 1, 28512, 0xd42d7045
+0, 104, 104, 1, 28512, 0x4c866a18
+0, 105, 105, 1, 28512, 0xf0a99685
+0, 106, 106, 1, 28512, 0x47a4a1bd
+0, 107, 107, 1, 28512, 0x8dd09006
+0, 108, 108, 1, 28512, 0x3f0b742d
+0, 109, 109, 1, 28512, 0x1acf52be
+0, 110, 110, 1, 28512, 0x9e5d1460
+0, 111, 111, 1, 28512, 0xd6852de9
+0, 112, 112, 1, 28512, 0x36e00f16
+0, 113, 113, 1, 28512, 0xe83dea09
+0, 114, 114, 1, 28512, 0xbb71daf1
+0, 115, 115, 1, 28512, 0xaeedf763
+0, 116, 116, 1, 28512, 0xa793ed91
+0, 117, 117, 1, 28512, 0x9b0f093f
+0, 118, 118, 1, 28512, 0xc8504b43
+0, 119, 119, 1, 28512, 0x08c68319
+0, 120, 120, 1, 28512, 0x2284b24a
+0, 121, 121, 1, 28512, 0x5980e906
+0, 122, 122, 1, 28512, 0x6ffd2c14
+0, 123, 123, 1, 28512, 0x5c6c3c27
+0, 124, 124, 1, 28512, 0x20d2efec
+0, 125, 125, 1, 28512, 0x69ffec11
+0, 126, 126, 1, 28512, 0x8721f8ab
+0, 127, 127, 1, 28512, 0xb606e164
diff --git a/ffmpeg1/tests/ref/fate/videoxl b/ffmpeg1/tests/ref/fate/videoxl
new file mode 100644
index 0000000..4d2db37
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/videoxl
@@ -0,0 +1,41 @@
+#tb 0: 71/500
+0, 0, 0, 1, 36096, 0xab1c53c1
+0, 1, 1, 1, 36096, 0x8b598ff3
+0, 2, 2, 1, 36096, 0xe9a5f3eb
+0, 3, 3, 1, 36096, 0x10584b30
+0, 4, 4, 1, 36096, 0x19d8c5d2
+0, 5, 5, 1, 36096, 0x43a453b9
+0, 6, 6, 1, 36096, 0xb32db13b
+0, 7, 7, 1, 36096, 0xf117e7b3
+0, 8, 8, 1, 36096, 0x9171fb33
+0, 9, 9, 1, 36096, 0xdf84081c
+0, 10, 10, 1, 36096, 0xc9d9527e
+0, 11, 11, 1, 36096, 0x72fa295e
+0, 12, 12, 1, 36096, 0xce02060e
+0, 13, 13, 1, 36096, 0x31f5fdbd
+0, 14, 14, 1, 36096, 0x4179dc07
+0, 15, 15, 1, 36096, 0xf250c03f
+0, 16, 16, 1, 36096, 0xc4aca7c5
+0, 17, 17, 1, 36096, 0xd9b1837f
+0, 18, 18, 1, 36096, 0x0af164ef
+0, 19, 19, 1, 36096, 0x90123fcd
+0, 20, 20, 1, 36096, 0x60392815
+0, 21, 21, 1, 36096, 0x7a7b0ac9
+0, 22, 22, 1, 36096, 0x36c1fe9c
+0, 23, 23, 1, 36096, 0x50bed8a4
+0, 24, 24, 1, 36096, 0x10f3b998
+0, 25, 25, 1, 36096, 0x18e5b516
+0, 26, 26, 1, 36096, 0x860597dc
+0, 27, 27, 1, 36096, 0x05488146
+0, 28, 28, 1, 36096, 0xac577cec
+0, 29, 29, 1, 36096, 0xc9f95550
+0, 30, 30, 1, 36096, 0xa0c95270
+0, 31, 31, 1, 36096, 0x977c5bf2
+0, 32, 32, 1, 36096, 0xc9f95550
+0, 33, 33, 1, 36096, 0xa0c95270
+0, 34, 34, 1, 36096, 0x977c5bf2
+0, 35, 35, 1, 36096, 0xc9f95550
+0, 36, 36, 1, 36096, 0xa0c95270
+0, 37, 37, 1, 36096, 0x977c5bf2
+0, 38, 38, 1, 36096, 0xc9f95550
+0, 39, 39, 1, 36096, 0xa0c95270
diff --git a/ffmpeg1/tests/ref/fate/vima b/ffmpeg1/tests/ref/fate/vima
new file mode 100644
index 0000000..6984c5d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vima
@@ -0,0 +1,17 @@
+#tb 0: 1/22050
+0, 0, 0, 73500, 294000, 0x37d439ee
+0, 73500, 73500, 1470, 5880, 0xe524b177
+0, 74970, 74970, 1470, 5880, 0x9e784af1
+0, 76440, 76440, 1470, 5880, 0x821989b0
+0, 77910, 77910, 1470, 5880, 0x8f4993da
+0, 79380, 79380, 1470, 5880, 0x889a9035
+0, 80850, 80850, 1470, 5880, 0x7f0f5299
+0, 82320, 82320, 1470, 5880, 0xf12f5d2a
+0, 83790, 83790, 1470, 5880, 0xd6292fda
+0, 85260, 85260, 1470, 5880, 0xe1b8405f
+0, 86730, 86730, 1470, 5880, 0xe23d2d44
+0, 88200, 88200, 1470, 5880, 0xe20631a4
+0, 89670, 89670, 1470, 5880, 0x3f72210f
+0, 91140, 91140, 1470, 5880, 0xec0b3fe8
+0, 92610, 92610, 1470, 5880, 0x9615f198
+0, 94080, 94080, 1470, 5880, 0x500226ce
diff --git a/ffmpeg1/tests/ref/fate/vmnc-16bit b/ffmpeg1/tests/ref/fate/vmnc-16bit
new file mode 100644
index 0000000..064b7fa
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vmnc-16bit
@@ -0,0 +1,193 @@
+#tb 0: 1/5
+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/ffmpeg1/tests/ref/fate/vmnc-32bit b/ffmpeg1/tests/ref/fate/vmnc-32bit
new file mode 100644
index 0000000..d55d88f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vmnc-32bit
@@ -0,0 +1,50 @@
+#tb 0: 1/5
+0, 0, 0, 1, 3655644, 0x87973530
+0, 1, 1, 1, 3655644, 0x87973530
+0, 2, 2, 1, 3655644, 0x3c3167fd
+0, 5, 5, 1, 3655644, 0x87973530
+0, 7, 7, 1, 3655644, 0x3c3167fd
+0, 10, 10, 1, 3655644, 0x87973530
+0, 11, 11, 1, 3655644, 0x87973530
+0, 12, 12, 1, 3655644, 0x3c3167fd
+0, 15, 15, 1, 3655644, 0x87973530
+0, 18, 18, 1, 3655644, 0x4f0da763
+0, 19, 19, 1, 3655644, 0x66a4a763
+0, 20, 20, 1, 3655644, 0xb20a7496
+0, 23, 23, 1, 3655644, 0x66a4a763
+0, 24, 24, 1, 3655644, 0x5600644a
+0, 26, 26, 1, 3655644, 0xce5880ee
+0, 49, 49, 1, 3655644, 0xa993ef3d
+0, 61, 61, 1, 3655644, 0x73564014
+0, 64, 64, 1, 3655644, 0x2a6e1e8c
+0, 68, 68, 1, 3655644, 0xbae02e7c
+0, 72, 72, 1, 3655644, 0x55af4a2d
+0, 73, 73, 1, 3655644, 0x54b7ff2d
+0, 77, 77, 1, 3655644, 0x39af1aed
+0, 82, 82, 1, 3655644, 0xe48dd11c
+0, 89, 89, 1, 3655644, 0xba15c78d
+0, 96, 96, 1, 3655644, 0x39af1aed
+0, 103, 103, 1, 3655644, 0x27f96cd8
+0, 110, 110, 1, 3655644, 0xf4f068dc
+0, 111, 111, 1, 3655644, 0xf1c55cf5
+0, 113, 113, 1, 3655644, 0xd932633d
+0, 114, 114, 1, 3655644, 0xc6e95e0a
+0, 115, 115, 1, 3655644, 0x9a63c9de
+0, 116, 116, 1, 3655644, 0xf166ad4f
+0, 117, 117, 1, 3655644, 0xe9eeba41
+0, 118, 118, 1, 3655644, 0x7e598ad7
+0, 123, 123, 1, 3655644, 0xf3bd257e
+0, 127, 127, 1, 3655644, 0xf35b3852
+0, 128, 128, 1, 3655644, 0x9d553959
+0, 129, 129, 1, 3655644, 0x0a9de8e2
+0, 135, 135, 1, 3655644, 0xf2325b6c
+0, 137, 137, 1, 3655644, 0xcf924028
+0, 139, 139, 1, 3655644, 0x8dae55bc
+0, 141, 141, 1, 3655644, 0x57b08ced
+0, 143, 143, 1, 3655644, 0xef89a1d8
+0, 145, 145, 1, 3655644, 0x69e5503a
+0, 147, 147, 1, 3655644, 0xc3de7b3f
+0, 149, 149, 1, 3655644, 0x88eea64a
+0, 162, 162, 1, 3655644, 0xe39cce1f
+0, 166, 166, 1, 3655644, 0xf0ed0d04
+0, 171, 171, 1, 3655644, 0x32490d3e
diff --git a/ffmpeg1/tests/ref/fate/vp31 b/ffmpeg1/tests/ref/fate/vp31
new file mode 100644
index 0000000..48221c1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp31
@@ -0,0 +1,115 @@
+#tb 0: 1/25
+0, 0, 0, 1, 261120, 0xc50dec2b
+0, 1, 1, 1, 261120, 0xaa8d4441
+0, 2, 2, 1, 261120, 0x932b0d44
+0, 3, 3, 1, 261120, 0x125e1af7
+0, 4, 4, 1, 261120, 0x09a763a5
+0, 5, 5, 1, 261120, 0x56939852
+0, 6, 6, 1, 261120, 0x0eda6d35
+0, 7, 7, 1, 261120, 0x2f0d3869
+0, 8, 8, 1, 261120, 0xe177c34c
+0, 9, 9, 1, 261120, 0x5d4e833a
+0, 10, 10, 1, 261120, 0x42e26e7a
+0, 11, 11, 1, 261120, 0xf5a60b4c
+0, 12, 12, 1, 261120, 0x29938341
+0, 13, 13, 1, 261120, 0x0a9ebb80
+0, 14, 14, 1, 261120, 0xd18c6a11
+0, 15, 15, 1, 261120, 0x4b8212ac
+0, 16, 16, 1, 261120, 0x7902aabc
+0, 17, 17, 1, 261120, 0x4babac44
+0, 18, 18, 1, 261120, 0xf33efa46
+0, 19, 19, 1, 261120, 0x110dd40a
+0, 20, 20, 1, 261120, 0xae327a8a
+0, 21, 21, 1, 261120, 0xab757d75
+0, 22, 22, 1, 261120, 0xfbd1402d
+0, 23, 23, 1, 261120, 0x4f2c5d31
+0, 24, 24, 1, 261120, 0xc7ea2149
+0, 25, 25, 1, 261120, 0x86072cf7
+0, 26, 26, 1, 261120, 0x37c2f2ed
+0, 27, 27, 1, 261120, 0x1d51ee83
+0, 28, 28, 1, 261120, 0x72291b8b
+0, 29, 29, 1, 261120, 0xe9c8ffaf
+0, 30, 30, 1, 261120, 0x657a1615
+0, 31, 31, 1, 261120, 0x6f832019
+0, 32, 32, 1, 261120, 0xf4445a22
+0, 33, 33, 1, 261120, 0x105306f0
+0, 34, 34, 1, 261120, 0x34c0c36b
+0, 35, 35, 1, 261120, 0x7767be18
+0, 36, 36, 1, 261120, 0x88a7eaeb
+0, 37, 37, 1, 261120, 0x797e69e4
+0, 38, 38, 1, 261120, 0x78901f02
+0, 39, 39, 1, 261120, 0xbc91758e
+0, 40, 40, 1, 261120, 0x35d47b24
+0, 41, 41, 1, 261120, 0xaf0ebc82
+0, 42, 42, 1, 261120, 0x40e63004
+0, 43, 43, 1, 261120, 0x70d1c5c1
+0, 44, 44, 1, 261120, 0x8aea2b70
+0, 45, 45, 1, 261120, 0x51f3cd81
+0, 46, 46, 1, 261120, 0x8f8584b7
+0, 47, 47, 1, 261120, 0x921541fb
+0, 48, 48, 1, 261120, 0xddd3f1ea
+0, 49, 49, 1, 261120, 0x6be2e960
+0, 50, 50, 1, 261120, 0x72997a1f
+0, 51, 51, 1, 261120, 0xe70fc009
+0, 52, 52, 1, 261120, 0x816a0687
+0, 53, 53, 1, 261120, 0x2aa79e82
+0, 54, 54, 1, 261120, 0x85f2fe5c
+0, 55, 55, 1, 261120, 0x000dd8b6
+0, 56, 56, 1, 261120, 0x1be19dd4
+0, 57, 57, 1, 261120, 0xadea80e5
+0, 58, 58, 1, 261120, 0x0cc2204f
+0, 59, 59, 1, 261120, 0xd62968a8
+0, 60, 60, 1, 261120, 0x0afc75c2
+0, 61, 61, 1, 261120, 0x82341f09
+0, 62, 62, 1, 261120, 0xbf7e66cd
+0, 63, 63, 1, 261120, 0x8f3491df
+0, 64, 64, 1, 261120, 0xc316d383
+0, 65, 65, 1, 261120, 0x3de7f632
+0, 66, 66, 1, 261120, 0xda55cfb0
+0, 67, 67, 1, 261120, 0xbd88bb46
+0, 68, 68, 1, 261120, 0x75444b17
+0, 69, 69, 1, 261120, 0x798cc498
+0, 70, 70, 1, 261120, 0xf9a60fa6
+0, 71, 71, 1, 261120, 0xbd8debd7
+0, 72, 72, 1, 261120, 0x7c890029
+0, 73, 73, 1, 261120, 0x7a75e44a
+0, 74, 74, 1, 261120, 0x1f04611c
+0, 75, 75, 1, 261120, 0x96b3ee93
+0, 76, 76, 1, 261120, 0x7fc11f39
+0, 77, 77, 1, 261120, 0xe87d6864
+0, 78, 78, 1, 261120, 0x6797d904
+0, 79, 79, 1, 261120, 0x9e3e7bde
+0, 80, 80, 1, 261120, 0xc31a8039
+0, 81, 81, 1, 261120, 0xe3ef4cf7
+0, 82, 82, 1, 261120, 0x83c56fc9
+0, 83, 83, 1, 261120, 0xb304f7aa
+0, 84, 84, 1, 261120, 0x039a7080
+0, 85, 85, 1, 261120, 0xffb08224
+0, 86, 86, 1, 261120, 0xa7be783a
+0, 87, 87, 1, 261120, 0x572beff3
+0, 88, 88, 1, 261120, 0x1bc59ae8
+0, 89, 89, 1, 261120, 0x11c8feb4
+0, 90, 90, 1, 261120, 0xe2398651
+0, 91, 91, 1, 261120, 0x37c3efba
+0, 92, 92, 1, 261120, 0xb32f0dd4
+0, 93, 93, 1, 261120, 0x66880c50
+0, 94, 94, 1, 261120, 0x4f7392c8
+0, 95, 95, 1, 261120, 0x3d5c08f6
+0, 96, 96, 1, 261120, 0xfd129211
+0, 97, 97, 1, 261120, 0x9b396ebe
+0, 98, 98, 1, 261120, 0x75ab9a4a
+0, 99, 99, 1, 261120, 0xf8c4e7ea
+0, 100, 100, 1, 261120, 0xdd48c7c3
+0, 101, 101, 1, 261120, 0xdebf20e6
+0, 102, 102, 1, 261120, 0x35c32091
+0, 103, 103, 1, 261120, 0xce5a49c7
+0, 104, 104, 1, 261120, 0x69fc8e0d
+0, 105, 105, 1, 261120, 0x43a08b41
+0, 106, 106, 1, 261120, 0x01a0513c
+0, 107, 107, 1, 261120, 0x1d3f490a
+0, 108, 108, 1, 261120, 0xb44df252
+0, 109, 109, 1, 261120, 0x1259753e
+0, 110, 110, 1, 261120, 0x4a1538d6
+0, 111, 111, 1, 261120, 0xd5ed4bd5
+0, 112, 112, 1, 261120, 0xa21590b5
+0, 113, 113, 1, 261120, 0xfb2de1f7
diff --git a/ffmpeg1/tests/ref/fate/vp5 b/ffmpeg1/tests/ref/fate/vp5
new file mode 100644
index 0000000..0e601ba
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp5
@@ -0,0 +1,248 @@
+#tb 0: 1001/24000
+0, 0, 0, 1, 233472, 0x27488413
+0, 1, 1, 1, 233472, 0x4af384b5
+0, 2, 2, 1, 233472, 0x948d845d
+0, 3, 3, 1, 233472, 0xd6ed845e
+0, 4, 4, 1, 233472, 0x230f8444
+0, 5, 5, 1, 233472, 0x230f8444
+0, 6, 6, 1, 233472, 0x230f8444
+0, 7, 7, 1, 233472, 0xa5078424
+0, 8, 8, 1, 233472, 0xa5078424
+0, 9, 9, 1, 233472, 0xa5078424
+0, 10, 10, 1, 233472, 0xa5078424
+0, 11, 11, 1, 233472, 0xa5078424
+0, 12, 12, 1, 233472, 0xa5078424
+0, 13, 13, 1, 233472, 0xa5078424
+0, 14, 14, 1, 233472, 0xa5078424
+0, 15, 15, 1, 233472, 0xa5078424
+0, 16, 16, 1, 233472, 0xa5078424
+0, 17, 17, 1, 233472, 0xa5078424
+0, 18, 18, 1, 233472, 0xa5078424
+0, 19, 19, 1, 233472, 0xa5078424
+0, 20, 20, 1, 233472, 0xa5078424
+0, 21, 21, 1, 233472, 0xa5078424
+0, 22, 22, 1, 233472, 0xa5078424
+0, 23, 23, 1, 233472, 0xa5078424
+0, 24, 24, 1, 233472, 0xa5078424
+0, 25, 25, 1, 233472, 0xa5078424
+0, 26, 26, 1, 233472, 0xa5078424
+0, 27, 27, 1, 233472, 0xa5078424
+0, 28, 28, 1, 233472, 0xa5078424
+0, 29, 29, 1, 233472, 0xa5078424
+0, 30, 30, 1, 233472, 0xa5078424
+0, 31, 31, 1, 233472, 0xa5078424
+0, 32, 32, 1, 233472, 0xa5078424
+0, 33, 33, 1, 233472, 0xa5078424
+0, 34, 34, 1, 233472, 0xa5078424
+0, 35, 35, 1, 233472, 0xa5078424
+0, 36, 36, 1, 233472, 0xa5078424
+0, 37, 37, 1, 233472, 0xa5078424
+0, 38, 38, 1, 233472, 0xa5078424
+0, 39, 39, 1, 233472, 0xa5078424
+0, 40, 40, 1, 233472, 0x05667dea
+0, 41, 41, 1, 233472, 0x6ae1823e
+0, 42, 42, 1, 233472, 0x3c8a7ea9
+0, 43, 43, 1, 233472, 0xcae2832a
+0, 44, 44, 1, 233472, 0x547a7ec2
+0, 45, 45, 1, 233472, 0xa6628327
+0, 46, 46, 1, 233472, 0xecd77edc
+0, 47, 47, 1, 233472, 0xe9538356
+0, 48, 48, 1, 233472, 0xca297eb1
+0, 49, 49, 1, 233472, 0xe5648329
+0, 50, 50, 1, 233472, 0xad8c7e94
+0, 51, 51, 1, 233472, 0xca0d82fc
+0, 52, 52, 1, 233472, 0x62277e8d
+0, 53, 53, 1, 233472, 0x7ef782f5
+0, 54, 54, 1, 233472, 0x09b27e8d
+0, 55, 55, 1, 233472, 0x66f382f5
+0, 56, 56, 1, 233472, 0x0aaa7e8d
+0, 57, 57, 1, 233472, 0x676b82f5
+0, 58, 58, 1, 233472, 0x0a8a7e8d
+0, 59, 59, 1, 233472, 0x670b82f5
+0, 60, 60, 1, 233472, 0x09fa7e8d
+0, 61, 61, 1, 233472, 0x671b82f5
+0, 62, 62, 1, 233472, 0x0ac27e8d
+0, 63, 63, 1, 233472, 0x674382f5
+0, 64, 64, 1, 233472, 0x0a727e8d
+0, 65, 65, 1, 233472, 0x673382f5
+0, 66, 66, 1, 233472, 0x0a127e8d
+0, 67, 67, 1, 233472, 0x66f382f5
+0, 68, 68, 1, 233472, 0x0aaa7e8d
+0, 69, 69, 1, 233472, 0x676b82f5
+0, 70, 70, 1, 233472, 0x0a8a7e8d
+0, 71, 71, 1, 233472, 0x670b82f5
+0, 72, 72, 1, 233472, 0x09fa7e8d
+0, 73, 73, 1, 233472, 0x671b82f5
+0, 74, 74, 1, 233472, 0x0ac27e8d
+0, 75, 75, 1, 233472, 0x674382f5
+0, 76, 76, 1, 233472, 0x0a727e8d
+0, 77, 77, 1, 233472, 0x673382f5
+0, 78, 78, 1, 233472, 0x0a127e8d
+0, 79, 79, 1, 233472, 0xa3917e7f
+0, 80, 80, 1, 233472, 0x0554868d
+0, 81, 81, 1, 233472, 0x05ba6d7a
+0, 82, 82, 1, 233472, 0x05ba6d7a
+0, 83, 83, 1, 233472, 0x05ba6d7a
+0, 84, 84, 1, 233472, 0x05ba6d7a
+0, 85, 85, 1, 233472, 0x05ba6d7a
+0, 86, 86, 1, 233472, 0x05ba6d7a
+0, 87, 87, 1, 233472, 0x05ba6d7a
+0, 88, 88, 1, 233472, 0x05ba6d7a
+0, 89, 89, 1, 233472, 0x05ba6d7a
+0, 90, 90, 1, 233472, 0x05ba6d7a
+0, 91, 91, 1, 233472, 0x05ba6d7a
+0, 92, 92, 1, 233472, 0x05ba6d7a
+0, 93, 93, 1, 233472, 0x05ba6d7a
+0, 94, 94, 1, 233472, 0x05ba6d7a
+0, 95, 95, 1, 233472, 0x05ba6d7a
+0, 96, 96, 1, 233472, 0x05ba6d7a
+0, 97, 97, 1, 233472, 0x05ba6d7a
+0, 98, 98, 1, 233472, 0x05ba6d7a
+0, 99, 99, 1, 233472, 0x05ba6d7a
+0, 100, 100, 1, 233472, 0x05ba6d7a
+0, 101, 101, 1, 233472, 0x05ba6d7a
+0, 102, 102, 1, 233472, 0x05ba6d7a
+0, 103, 103, 1, 233472, 0x05ba6d7a
+0, 104, 104, 1, 233472, 0x3a6a6d61
+0, 105, 105, 1, 233472, 0x0bab7adc
+0, 106, 106, 1, 233472, 0x12b44993
+0, 107, 107, 1, 233472, 0xa20ad6d1
+0, 108, 108, 1, 233472, 0xfd916a4a
+0, 109, 109, 1, 233472, 0xd34f3e95
+0, 110, 110, 1, 233472, 0x19571d5c
+0, 111, 111, 1, 233472, 0x7c8351ad
+0, 112, 112, 1, 233472, 0xea279823
+0, 113, 113, 1, 233472, 0xc5011cfd
+0, 114, 114, 1, 233472, 0xbd7fb9af
+0, 115, 115, 1, 233472, 0xdfb3bb7c
+0, 116, 116, 1, 233472, 0x6d631236
+0, 117, 117, 1, 233472, 0xdb579a7b
+0, 118, 118, 1, 233472, 0x47584a3e
+0, 119, 119, 1, 233472, 0x7a27a914
+0, 120, 120, 1, 233472, 0x2996270d
+0, 121, 121, 1, 233472, 0xefeaa7ed
+0, 122, 122, 1, 233472, 0xa3e74ae1
+0, 123, 123, 1, 233472, 0x8a51d61c
+0, 124, 124, 1, 233472, 0x25085ee7
+0, 125, 125, 1, 233472, 0x0a811253
+0, 126, 126, 1, 233472, 0x7d3eda84
+0, 127, 127, 1, 233472, 0xd0a0887d
+0, 128, 128, 1, 233472, 0xc9e6702c
+0, 129, 129, 1, 233472, 0x0da14346
+0, 130, 130, 1, 233472, 0x040f0605
+0, 131, 131, 1, 233472, 0x76ea841a
+0, 132, 132, 1, 233472, 0x105b6600
+0, 133, 133, 1, 233472, 0x73015e08
+0, 134, 134, 1, 233472, 0xe77d6662
+0, 135, 135, 1, 233472, 0x7514fcd1
+0, 136, 136, 1, 233472, 0xb091a850
+0, 137, 137, 1, 233472, 0x74ccdccd
+0, 138, 138, 1, 233472, 0xd1c002fc
+0, 139, 139, 1, 233472, 0x7bfcfdac
+0, 140, 140, 1, 233472, 0xf48a133f
+0, 141, 141, 1, 233472, 0x279c16dd
+0, 142, 142, 1, 233472, 0x58427907
+0, 143, 143, 1, 233472, 0x4668a8f2
+0, 144, 144, 1, 233472, 0x93fb555f
+0, 145, 145, 1, 233472, 0x49ed3cf2
+0, 146, 146, 1, 233472, 0xd620fac9
+0, 147, 147, 1, 233472, 0xe4efae83
+0, 148, 148, 1, 233472, 0xe4d377be
+0, 149, 149, 1, 233472, 0x6fc229c1
+0, 150, 150, 1, 233472, 0xab5a8898
+0, 151, 151, 1, 233472, 0x58a493dd
+0, 152, 152, 1, 233472, 0x5c1c1093
+0, 153, 153, 1, 233472, 0x2d831af9
+0, 154, 154, 1, 233472, 0x9a0d3cdf
+0, 155, 155, 1, 233472, 0x2be78f0b
+0, 156, 156, 1, 233472, 0xfc7cc656
+0, 157, 157, 1, 233472, 0xaa8624b7
+0, 158, 158, 1, 233472, 0xb9c9afc1
+0, 159, 159, 1, 233472, 0x709e8009
+0, 160, 160, 1, 233472, 0xd2260830
+0, 161, 161, 1, 233472, 0xadb3954e
+0, 162, 162, 1, 233472, 0x74fc3e65
+0, 163, 163, 1, 233472, 0xb4bcdea4
+0, 164, 164, 1, 233472, 0x60c46cf5
+0, 165, 165, 1, 233472, 0x0e48eff8
+0, 166, 166, 1, 233472, 0x60e46733
+0, 167, 167, 1, 233472, 0x708ec89f
+0, 168, 168, 1, 233472, 0x1f11264e
+0, 169, 169, 1, 233472, 0x6cba8300
+0, 170, 170, 1, 233472, 0xd1a5d756
+0, 171, 171, 1, 233472, 0xb936621e
+0, 172, 172, 1, 233472, 0x1667b4af
+0, 173, 173, 1, 233472, 0xc212276d
+0, 174, 174, 1, 233472, 0x9d7a871d
+0, 175, 175, 1, 233472, 0xb52834f9
+0, 176, 176, 1, 233472, 0x983bde84
+0, 177, 177, 1, 233472, 0xd1c63d88
+0, 178, 178, 1, 233472, 0xa38cb687
+0, 179, 179, 1, 233472, 0xd81bf8ff
+0, 180, 180, 1, 233472, 0x688b231a
+0, 181, 181, 1, 233472, 0xd5ad3038
+0, 182, 182, 1, 233472, 0xcd227f74
+0, 183, 183, 1, 233472, 0x81ec23d6
+0, 184, 184, 1, 233472, 0x52c1cd86
+0, 185, 185, 1, 233472, 0xa4199853
+0, 186, 186, 1, 233472, 0xe82c83e4
+0, 187, 187, 1, 233472, 0xe9810f88
+0, 188, 188, 1, 233472, 0x37e95ae7
+0, 189, 189, 1, 233472, 0xf6974d5d
+0, 190, 190, 1, 233472, 0x31788551
+0, 191, 191, 1, 233472, 0x00d6c539
+0, 192, 192, 1, 233472, 0xdbb52151
+0, 193, 193, 1, 233472, 0x594433d3
+0, 194, 194, 1, 233472, 0xeec44f91
+0, 195, 195, 1, 233472, 0x302894bf
+0, 196, 196, 1, 233472, 0x44f5ddc3
+0, 197, 197, 1, 233472, 0x6c1edd28
+0, 198, 198, 1, 233472, 0x7fd1e412
+0, 199, 199, 1, 233472, 0xd771f11b
+0, 200, 200, 1, 233472, 0x09c675d5
+0, 201, 201, 1, 233472, 0x8fd9112e
+0, 202, 202, 1, 233472, 0x602002e5
+0, 203, 203, 1, 233472, 0xb9a22029
+0, 204, 204, 1, 233472, 0x18e99807
+0, 205, 205, 1, 233472, 0x3d8657d8
+0, 206, 206, 1, 233472, 0x4cd73a85
+0, 207, 207, 1, 233472, 0x84ddb474
+0, 208, 208, 1, 233472, 0x69636bb8
+0, 209, 209, 1, 233472, 0xa0436d50
+0, 210, 210, 1, 233472, 0x93c86d78
+0, 211, 211, 1, 233472, 0x05ba6d7a
+0, 212, 212, 1, 233472, 0x05ba6d7a
+0, 213, 213, 1, 233472, 0x05ba6d7a
+0, 214, 214, 1, 233472, 0x126c6406
+0, 215, 215, 1, 233472, 0xe3885a3a
+0, 216, 216, 1, 233472, 0xf1256fe9
+0, 217, 217, 1, 233472, 0x5a84377e
+0, 218, 218, 1, 233472, 0x7c392d90
+0, 219, 219, 1, 233472, 0x8a74df48
+0, 220, 220, 1, 233472, 0xfa394653
+0, 221, 221, 1, 233472, 0xcbe0cc1b
+0, 222, 222, 1, 233472, 0xbf8639cf
+0, 223, 223, 1, 233472, 0x7dd2c935
+0, 224, 224, 1, 233472, 0x1093148f
+0, 225, 225, 1, 233472, 0x624d7d3e
+0, 226, 226, 1, 233472, 0xb340cd65
+0, 227, 227, 1, 233472, 0x6c0ae5c6
+0, 228, 228, 1, 233472, 0x0c5eaf73
+0, 229, 229, 1, 233472, 0x27be64ce
+0, 230, 230, 1, 233472, 0xac8990f4
+0, 231, 231, 1, 233472, 0x1f935102
+0, 232, 232, 1, 233472, 0x6e57d96f
+0, 233, 233, 1, 233472, 0xf246ea4d
+0, 234, 234, 1, 233472, 0x18058011
+0, 235, 235, 1, 233472, 0x5951fe6e
+0, 236, 236, 1, 233472, 0x0f10371d
+0, 237, 237, 1, 233472, 0xe1481043
+0, 238, 238, 1, 233472, 0xdedeefcc
+0, 239, 239, 1, 233472, 0xf8865db2
+0, 240, 240, 1, 233472, 0xe1b3d4d6
+0, 241, 241, 1, 233472, 0x81962c43
+0, 242, 242, 1, 233472, 0xe903d0bb
+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/ffmpeg1/tests/ref/fate/vp60 b/ffmpeg1/tests/ref/fate/vp60
new file mode 100644
index 0000000..c1da72b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp60
@@ -0,0 +1,134 @@
+#tb 0: 32767/982027
+0, 0, 0, 1, 55296, 0x6a3202a3
+0, 1, 1, 1, 55296, 0x2af202eb
+0, 2, 2, 1, 55296, 0xa1a40388
+0, 3, 3, 1, 55296, 0x61c90426
+0, 4, 4, 1, 55296, 0x17720594
+0, 5, 5, 1, 55296, 0x49440805
+0, 6, 6, 1, 55296, 0x5b2e0d32
+0, 7, 7, 1, 55296, 0x5cf691c3
+0, 8, 8, 1, 55296, 0x61a5a4c8
+0, 9, 9, 1, 55296, 0x75a22a75
+0, 10, 10, 1, 55296, 0xd55099af
+0, 11, 11, 1, 55296, 0x48778bb6
+0, 12, 12, 1, 55296, 0xe76b7df7
+0, 13, 13, 1, 55296, 0x5a049f33
+0, 14, 14, 1, 55296, 0xc83d9b90
+0, 15, 15, 1, 55296, 0x567877b8
+0, 16, 16, 1, 55296, 0x334c7f6e
+0, 17, 17, 1, 55296, 0x9317945c
+0, 18, 18, 1, 55296, 0xf032831e
+0, 19, 19, 1, 55296, 0x7b6c8d2c
+0, 20, 20, 1, 55296, 0x37109fd6
+0, 21, 21, 1, 55296, 0xe9b0b61b
+0, 22, 22, 1, 55296, 0x7385dae8
+0, 23, 23, 1, 55296, 0x74a8a9f5
+0, 24, 24, 1, 55296, 0xbcd2e218
+0, 25, 25, 1, 55296, 0x0aa6c623
+0, 26, 26, 1, 55296, 0x2224d6d6
+0, 27, 27, 1, 55296, 0x8c8ee4d9
+0, 28, 28, 1, 55296, 0x0d4ceccc
+0, 29, 29, 1, 55296, 0x623f10c7
+0, 30, 30, 1, 55296, 0x13a61f8f
+0, 31, 31, 1, 55296, 0x5343fa8d
+0, 32, 32, 1, 55296, 0x21fef1b5
+0, 33, 33, 1, 55296, 0x380de6b4
+0, 34, 34, 1, 55296, 0x04bedfd3
+0, 35, 35, 1, 55296, 0x428cf510
+0, 36, 36, 1, 55296, 0xbca8c214
+0, 37, 37, 1, 55296, 0x947faa34
+0, 38, 38, 1, 55296, 0x70769f45
+0, 39, 39, 1, 55296, 0xcb9483ad
+0, 40, 40, 1, 55296, 0xac4ea82b
+0, 41, 41, 1, 55296, 0xa3816977
+0, 42, 42, 1, 55296, 0xcfd54ec4
+0, 43, 43, 1, 55296, 0x97743f0e
+0, 44, 44, 1, 55296, 0x4cb4424d
+0, 45, 45, 1, 55296, 0x0b503c11
+0, 46, 46, 1, 55296, 0x879f333a
+0, 47, 47, 1, 55296, 0x6ff9eb8f
+0, 48, 48, 1, 55296, 0x7cd6e5af
+0, 49, 49, 1, 55296, 0x44e2c36f
+0, 50, 50, 1, 55296, 0x4e8993fb
+0, 51, 51, 1, 55296, 0xf0bb9664
+0, 52, 52, 1, 55296, 0xde608458
+0, 53, 53, 1, 55296, 0xb3017f01
+0, 54, 54, 1, 55296, 0x2e096579
+0, 55, 55, 1, 55296, 0xd7295790
+0, 56, 56, 1, 55296, 0xc40b81cb
+0, 57, 57, 1, 55296, 0x53a86e41
+0, 58, 58, 1, 55296, 0x74142f89
+0, 59, 59, 1, 55296, 0x2a1428ce
+0, 60, 60, 1, 55296, 0x5d0c2852
+0, 61, 61, 1, 55296, 0x162058a4
+0, 62, 62, 1, 55296, 0x4e8c6ce8
+0, 63, 63, 1, 55296, 0x1d382af2
+0, 64, 64, 1, 55296, 0x35dd2b75
+0, 65, 65, 1, 55296, 0x1e4c205f
+0, 66, 66, 1, 55296, 0x74a22383
+0, 67, 67, 1, 55296, 0x6ddb237d
+0, 68, 68, 1, 55296, 0xd290263b
+0, 69, 69, 1, 55296, 0xc778249f
+0, 70, 70, 1, 55296, 0xbc1046fb
+0, 71, 71, 1, 55296, 0xf44d470f
+0, 72, 72, 1, 55296, 0x28d85a11
+0, 73, 73, 1, 55296, 0xa68953b6
+0, 74, 74, 1, 55296, 0x02593ce5
+0, 75, 75, 1, 55296, 0x61be53d5
+0, 76, 76, 1, 55296, 0x4c503c54
+0, 77, 77, 1, 55296, 0x3d3e60f7
+0, 78, 78, 1, 55296, 0xec876b9d
+0, 79, 79, 1, 55296, 0x5b5f59e4
+0, 80, 80, 1, 55296, 0xbd2d5f84
+0, 81, 81, 1, 55296, 0xaa7a6410
+0, 82, 82, 1, 55296, 0xaa196189
+0, 83, 83, 1, 55296, 0x81365cca
+0, 84, 84, 1, 55296, 0xa85f6861
+0, 85, 85, 1, 55296, 0xcb46562e
+0, 86, 86, 1, 55296, 0x1b935862
+0, 87, 87, 1, 55296, 0x80a45a60
+0, 88, 88, 1, 55296, 0x8e8aabba
+0, 89, 89, 1, 55296, 0x38939b53
+0, 90, 90, 1, 55296, 0x4f397c22
+0, 91, 91, 1, 55296, 0x7d0d8476
+0, 92, 92, 1, 55296, 0x943e8044
+0, 93, 93, 1, 55296, 0xabc6b323
+0, 94, 94, 1, 55296, 0x87dfb605
+0, 95, 95, 1, 55296, 0x5ca89202
+0, 96, 96, 1, 55296, 0x61bc9b27
+0, 97, 97, 1, 55296, 0x1e4baa30
+0, 98, 98, 1, 55296, 0xd8a7adb0
+0, 99, 99, 1, 55296, 0x0d0aa8fb
+0, 100, 100, 1, 55296, 0x1f1ba33c
+0, 101, 101, 1, 55296, 0xa000a80b
+0, 102, 102, 1, 55296, 0xb49dd332
+0, 103, 103, 1, 55296, 0x6b8ac499
+0, 104, 104, 1, 55296, 0x9636ed15
+0, 105, 105, 1, 55296, 0xa152f03d
+0, 106, 106, 1, 55296, 0x47a8cfc7
+0, 107, 107, 1, 55296, 0x9f94c82a
+0, 108, 108, 1, 55296, 0xe208d626
+0, 109, 109, 1, 55296, 0x28cc0616
+0, 110, 110, 1, 55296, 0xc545179e
+0, 111, 111, 1, 55296, 0xd38e05af
+0, 112, 112, 1, 55296, 0x25d6ed99
+0, 113, 113, 1, 55296, 0x7a6bf86e
+0, 114, 114, 1, 55296, 0xbb3bfbcd
+0, 115, 115, 1, 55296, 0x33de2984
+0, 116, 116, 1, 55296, 0xd5b10c27
+0, 117, 117, 1, 55296, 0x19e31f78
+0, 118, 118, 1, 55296, 0xf62f1a4f
+0, 119, 119, 1, 55296, 0x3f792203
+0, 120, 120, 1, 55296, 0xe4ed6202
+0, 121, 121, 1, 55296, 0xee265136
+0, 122, 122, 1, 55296, 0x408af73c
+0, 123, 123, 1, 55296, 0xc1533ef5
+0, 124, 124, 1, 55296, 0xf671f85d
+0, 125, 125, 1, 55296, 0xae2670e0
+0, 126, 126, 1, 55296, 0xe4390cd0
+0, 127, 127, 1, 55296, 0x5cd50784
+0, 128, 128, 1, 55296, 0x05880500
+0, 129, 129, 1, 55296, 0x6d2d0420
+0, 130, 130, 1, 55296, 0xfa780393
+0, 131, 131, 1, 55296, 0x2daf0315
+0, 132, 132, 1, 55296, 0x982f02b3
diff --git a/ffmpeg1/tests/ref/fate/vp61 b/ffmpeg1/tests/ref/fate/vp61
new file mode 100644
index 0000000..be1fe53
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp61
@@ -0,0 +1,121 @@
+#tb 0: 32767/982027
+0, 0, 0, 1, 18816, 0xc3fe9fc7
+0, 1, 1, 1, 18816, 0x6ddf972f
+0, 2, 2, 1, 18816, 0x72808b6e
+0, 3, 3, 1, 18816, 0x8f09857f
+0, 4, 4, 1, 18816, 0xe8027c00
+0, 5, 5, 1, 18816, 0x308670cf
+0, 6, 6, 1, 18816, 0x0e656170
+0, 7, 7, 1, 18816, 0x594e54a4
+0, 8, 8, 1, 18816, 0x36944b05
+0, 9, 9, 1, 18816, 0x87013a34
+0, 10, 10, 1, 18816, 0xc0f32f0d
+0, 11, 11, 1, 18816, 0x911f1951
+0, 12, 12, 1, 18816, 0xad590d59
+0, 13, 13, 1, 18816, 0x943afff0
+0, 14, 14, 1, 18816, 0x7f5ef719
+0, 15, 15, 1, 18816, 0x889feafc
+0, 16, 16, 1, 18816, 0x4334e12b
+0, 17, 17, 1, 18816, 0xd080cc67
+0, 18, 18, 1, 18816, 0xc3c1c04c
+0, 19, 19, 1, 18816, 0x816bae4b
+0, 20, 20, 1, 18816, 0xed23a5c7
+0, 21, 21, 1, 18816, 0x86689c2f
+0, 22, 22, 1, 18816, 0x63408c52
+0, 23, 23, 1, 18816, 0x399c79d6
+0, 24, 24, 1, 18816, 0xf0ff63bf
+0, 25, 25, 1, 18816, 0xa6185353
+0, 26, 26, 1, 18816, 0xe33d46fc
+0, 27, 27, 1, 18816, 0xd58d3c6d
+0, 28, 28, 1, 18816, 0xc94a27ea
+0, 29, 29, 1, 18816, 0x62f31c59
+0, 30, 30, 1, 18816, 0x71880825
+0, 31, 31, 1, 18816, 0xa6ce01d7
+0, 32, 32, 1, 18816, 0xa1d4fc06
+0, 33, 33, 1, 18816, 0xc208f570
+0, 34, 34, 1, 18816, 0xc862e637
+0, 35, 35, 1, 18816, 0xcf9ed93a
+0, 36, 36, 1, 18816, 0x85a8cbcc
+0, 37, 37, 1, 18816, 0x650ac6c1
+0, 38, 38, 1, 18816, 0xb418c12b
+0, 39, 39, 1, 18816, 0x9fe5b412
+0, 40, 40, 1, 18816, 0x80f6a7c1
+0, 41, 41, 1, 18816, 0x283299e4
+0, 42, 42, 1, 18816, 0x15429202
+0, 43, 43, 1, 18816, 0x9f0f8c8a
+0, 44, 44, 1, 18816, 0x8e828811
+0, 45, 45, 1, 18816, 0xaac67993
+0, 46, 46, 1, 18816, 0x8f3b6f4f
+0, 47, 47, 1, 18816, 0x0b125f95
+0, 48, 48, 1, 18816, 0xb4e75d14
+0, 49, 49, 1, 18816, 0x1bac5933
+0, 50, 50, 1, 18816, 0x300b521b
+0, 51, 51, 1, 18816, 0x51174590
+0, 52, 52, 1, 18816, 0x03df3d70
+0, 53, 53, 1, 18816, 0x338a344a
+0, 54, 54, 1, 18816, 0x45ad328d
+0, 55, 55, 1, 18816, 0x2d4e321a
+0, 56, 56, 1, 18816, 0x15932563
+0, 57, 57, 1, 18816, 0x9b4f1c76
+0, 58, 58, 1, 18816, 0x8e31153c
+0, 59, 59, 1, 18816, 0xfb391185
+0, 60, 60, 1, 18816, 0x93ee0cdc
+0, 61, 61, 1, 18816, 0xddeb0642
+0, 62, 62, 1, 18816, 0xda6cf529
+0, 63, 63, 1, 18816, 0xdbd6f085
+0, 64, 64, 1, 18816, 0x357aec81
+0, 65, 65, 1, 18816, 0x36eaecca
+0, 66, 66, 1, 18816, 0x6535ee02
+0, 67, 67, 1, 18816, 0xb7dfe466
+0, 68, 68, 1, 18816, 0x58d3d86b
+0, 69, 69, 1, 18816, 0xd8aad64b
+0, 70, 70, 1, 18816, 0x37ecd588
+0, 71, 71, 1, 18816, 0xe2f9cee4
+0, 72, 72, 1, 18816, 0xcd1ac93e
+0, 73, 73, 1, 18816, 0x18e1be81
+0, 74, 74, 1, 18816, 0xa05bb9d7
+0, 75, 75, 1, 18816, 0xe0ebb663
+0, 76, 76, 1, 18816, 0x7d61b39a
+0, 77, 77, 1, 18816, 0x01b8acb5
+0, 78, 78, 1, 18816, 0x7577aa8b
+0, 79, 79, 1, 18816, 0x6bbda4b5
+0, 80, 80, 1, 18816, 0xd0cc9b29
+0, 81, 81, 1, 18816, 0xb2858cbb
+0, 82, 82, 1, 18816, 0x93608c9d
+0, 83, 83, 1, 18816, 0x80c38e03
+0, 84, 84, 1, 18816, 0x37d6843c
+0, 85, 85, 1, 18816, 0xacc47b9a
+0, 86, 86, 1, 18816, 0xc4317178
+0, 87, 87, 1, 18816, 0xc92f6ebd
+0, 88, 88, 1, 18816, 0xc1217a3b
+0, 89, 89, 1, 18816, 0x03a37ccb
+0, 90, 90, 1, 18816, 0xf38c71a2
+0, 91, 91, 1, 18816, 0x68ff697d
+0, 92, 92, 1, 18816, 0x0fe358e5
+0, 93, 93, 1, 18816, 0x58455870
+0, 94, 94, 1, 18816, 0xc9075ce7
+0, 95, 95, 1, 18816, 0x16685773
+0, 96, 96, 1, 18816, 0x1b434c0e
+0, 97, 97, 1, 18816, 0x008e4c97
+0, 98, 98, 1, 18816, 0xb4d04f4f
+0, 99, 99, 1, 18816, 0xc8c94848
+0, 100, 100, 1, 18816, 0x64664191
+0, 101, 101, 1, 18816, 0xd591367f
+0, 102, 102, 1, 18816, 0xc70d3141
+0, 103, 103, 1, 18816, 0x8d492655
+0, 104, 104, 1, 18816, 0x7e7f22c8
+0, 105, 105, 1, 18816, 0x335d23f9
+0, 106, 106, 1, 18816, 0x0a7f22b6
+0, 107, 107, 1, 18816, 0x6cf51cb2
+0, 108, 108, 1, 18816, 0x312516e1
+0, 109, 109, 1, 18816, 0x8a3c0c7a
+0, 110, 110, 1, 18816, 0x997d0d20
+0, 111, 111, 1, 18816, 0xffbd117e
+0, 112, 112, 1, 18816, 0x855808ca
+0, 113, 113, 1, 18816, 0xe335fb94
+0, 114, 114, 1, 18816, 0x12e6f95c
+0, 115, 115, 1, 18816, 0x2d62f845
+0, 116, 116, 1, 18816, 0x7e63f591
+0, 117, 117, 1, 18816, 0x7463f175
+0, 118, 118, 1, 18816, 0x1521e0d2
+0, 119, 119, 1, 18816, 0x96a8dbce
diff --git a/ffmpeg1/tests/ref/fate/vp6a b/ffmpeg1/tests/ref/fate/vp6a
new file mode 100644
index 0000000..1f2ddd9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp6a
@@ -0,0 +1,94 @@
+#tb 0: 1/4
+0, 0, 0, 1, 135000, 0x9dceed6d
+0, 1, 1, 1, 135000, 0x47e5778d
+0, 2, 2, 1, 135000, 0x5de36599
+0, 3, 3, 1, 135000, 0x540d8079
+0, 4, 4, 1, 135000, 0xba9ea534
+0, 5, 5, 1, 135000, 0xa75088f8
+0, 6, 6, 1, 135000, 0x7d867559
+0, 7, 7, 1, 135000, 0xcc678fee
+0, 8, 8, 1, 135000, 0x79c590b9
+0, 9, 9, 1, 135000, 0x87789918
+0, 10, 10, 1, 135000, 0xaa939213
+0, 11, 11, 1, 135000, 0x3912916d
+0, 12, 12, 1, 135000, 0x41305d0b
+0, 13, 13, 1, 135000, 0x2686b5dd
+0, 14, 14, 1, 135000, 0xa69ae422
+0, 15, 15, 1, 135000, 0x998a3478
+0, 16, 16, 1, 135000, 0x5842768d
+0, 17, 17, 1, 135000, 0xf6a85b16
+0, 18, 18, 1, 135000, 0x7a5b2708
+0, 19, 19, 1, 135000, 0x8b2abb63
+0, 20, 20, 1, 135000, 0x7dc8468b
+0, 21, 21, 1, 135000, 0x04d85001
+0, 22, 22, 1, 135000, 0x83e3c647
+0, 23, 23, 1, 135000, 0xcddd687e
+0, 24, 24, 1, 135000, 0x818e785e
+0, 25, 25, 1, 135000, 0x3a915080
+0, 26, 26, 1, 135000, 0x953d603d
+0, 27, 27, 1, 135000, 0x79005ebf
+0, 28, 28, 1, 135000, 0x80afec75
+0, 29, 29, 1, 135000, 0xfc8e376b
+0, 30, 30, 1, 135000, 0xf957b7ef
+0, 31, 31, 1, 135000, 0xe878da44
+0, 32, 32, 1, 135000, 0xe68ecca3
+0, 33, 33, 1, 135000, 0x1a2cc7d3
+0, 34, 34, 1, 135000, 0x4f346a69
+0, 35, 35, 1, 135000, 0x7a0cf4ac
+0, 36, 36, 1, 135000, 0x6d4eee7a
+0, 37, 37, 1, 135000, 0xf0688cbd
+0, 38, 38, 1, 135000, 0xca4abbbc
+0, 39, 39, 1, 135000, 0x87669519
+0, 40, 40, 1, 135000, 0xd090e9d7
+0, 41, 41, 1, 135000, 0xd7f536c1
+0, 42, 42, 1, 135000, 0x353ede54
+0, 43, 43, 1, 135000, 0xbc8f5358
+0, 44, 44, 1, 135000, 0xb52cd59a
+0, 45, 45, 1, 135000, 0x0b882eba
+0, 46, 46, 1, 135000, 0xc544cd54
+0, 47, 47, 1, 135000, 0x31ca7e73
+0, 48, 48, 1, 135000, 0xb1569ce9
+0, 49, 49, 1, 135000, 0x8bf4394f
+0, 50, 50, 1, 135000, 0xf413812a
+0, 51, 51, 1, 135000, 0xf2fa90ab
+0, 52, 52, 1, 135000, 0xdcd8b265
+0, 53, 53, 1, 135000, 0xa89cdba1
+0, 54, 54, 1, 135000, 0x212b59a5
+0, 55, 55, 1, 135000, 0x10c589c3
+0, 56, 56, 1, 135000, 0x432ab5b4
+0, 57, 57, 1, 135000, 0x85a9634a
+0, 58, 58, 1, 135000, 0x10db5b87
+0, 59, 59, 1, 135000, 0x583145d9
+0, 60, 60, 1, 135000, 0x7d3a33bd
+0, 61, 61, 1, 135000, 0xcf592423
+0, 62, 62, 1, 135000, 0xb59728e5
+0, 63, 63, 1, 135000, 0x1eeca660
+0, 64, 64, 1, 135000, 0xff7bcc34
+0, 65, 65, 1, 135000, 0x0ef8f271
+0, 66, 66, 1, 135000, 0x8c9ca8ee
+0, 67, 67, 1, 135000, 0x8a7ece34
+0, 68, 68, 1, 135000, 0x7d4c3b5d
+0, 69, 69, 1, 135000, 0x99118f21
+0, 70, 70, 1, 135000, 0xd97fe7e2
+0, 71, 71, 1, 135000, 0xf93842f1
+0, 72, 72, 1, 135000, 0x35c912e8
+0, 73, 73, 1, 135000, 0x14e59e97
+0, 74, 74, 1, 135000, 0x8e4c19aa
+0, 75, 75, 1, 135000, 0x4adfbc53
+0, 76, 76, 1, 135000, 0x0613adde
+0, 77, 77, 1, 135000, 0x8db264ab
+0, 78, 78, 1, 135000, 0x3948b619
+0, 79, 79, 1, 135000, 0x843d7c02
+0, 80, 80, 1, 135000, 0x534fea34
+0, 81, 81, 1, 135000, 0xdb7041bf
+0, 82, 82, 1, 135000, 0xd0ce1cce
+0, 83, 83, 1, 135000, 0x3c008335
+0, 84, 84, 1, 135000, 0xb699208f
+0, 85, 85, 1, 135000, 0xe07da3ca
+0, 86, 86, 1, 135000, 0x26331f41
+0, 87, 87, 1, 135000, 0x4e19fe83
+0, 88, 88, 1, 135000, 0xaa9a9e45
+0, 89, 89, 1, 135000, 0x336b7ed0
+0, 90, 90, 1, 135000, 0xc9bf7611
+0, 91, 91, 1, 135000, 0x14c33a35
+0, 92, 92, 1, 135000, 0xdc08470e
diff --git a/ffmpeg1/tests/ref/fate/vp6f b/ffmpeg1/tests/ref/fate/vp6f
new file mode 100644
index 0000000..edb555d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp6f
@@ -0,0 +1,175 @@
+#tb 0: 1/10
+0, 0, 0, 1, 13440, 0x7cb0a22f
+0, 1, 1, 1, 13440, 0xdfcea6ba
+0, 2, 2, 1, 13440, 0x59b2a5da
+0, 3, 3, 1, 13440, 0x12f1b2d8
+0, 4, 4, 1, 13440, 0x280fb9f6
+0, 5, 5, 1, 13440, 0x7bace8b3
+0, 6, 6, 1, 13440, 0x4ec91480
+0, 7, 7, 1, 13440, 0xa8010450
+0, 8, 8, 1, 13440, 0x61d8fc46
+0, 9, 9, 1, 13440, 0x242bb24e
+0, 10, 10, 1, 13440, 0x88397a36
+0, 11, 11, 1, 13440, 0x10e15726
+0, 12, 12, 1, 13440, 0x3018438c
+0, 13, 13, 1, 13440, 0xbbb94c21
+0, 14, 14, 1, 13440, 0xfc3e5e2b
+0, 15, 15, 1, 13440, 0xeaa69354
+0, 16, 16, 1, 13440, 0x96f1cc01
+0, 17, 17, 1, 13440, 0x333fdaff
+0, 18, 18, 1, 13440, 0xb5230ed2
+0, 19, 19, 1, 13440, 0x59383446
+0, 20, 20, 1, 13440, 0x954939e6
+0, 21, 21, 1, 13440, 0x53813d2f
+0, 22, 22, 1, 13440, 0x3ca53600
+0, 23, 23, 1, 13440, 0x7b30227a
+0, 24, 24, 1, 13440, 0x5145bbfe
+0, 25, 25, 1, 13440, 0xa0979632
+0, 26, 26, 1, 13440, 0x08026e21
+0, 27, 27, 1, 13440, 0x3f456d1e
+0, 28, 28, 1, 13440, 0x7d036b62
+0, 29, 29, 1, 13440, 0x508085fb
+0, 30, 30, 1, 13440, 0x251dc193
+0, 31, 31, 1, 13440, 0xf3121c9b
+0, 32, 32, 1, 13440, 0xf5da772e
+0, 33, 33, 1, 13440, 0x8179ccf7
+0, 34, 34, 1, 13440, 0xd57ceeb3
+0, 35, 35, 1, 13440, 0xc8f2169c
+0, 36, 36, 1, 13440, 0xbf8296c3
+0, 37, 37, 1, 13440, 0xee1927d0
+0, 38, 38, 1, 13440, 0xdd84e8d1
+0, 39, 39, 1, 13440, 0x7be57be2
+0, 40, 40, 1, 13440, 0xae353f91
+0, 41, 41, 1, 13440, 0x3ae927f2
+0, 42, 42, 1, 13440, 0x417227c6
+0, 43, 43, 1, 13440, 0x32572bea
+0, 44, 44, 1, 13440, 0x8b9e4839
+0, 45, 45, 1, 13440, 0xad669441
+0, 46, 46, 1, 13440, 0xc9de99a6
+0, 47, 47, 1, 13440, 0xb3ffb88b
+0, 48, 48, 1, 13440, 0xb321b8a0
+0, 49, 49, 1, 13440, 0x2efdbf53
+0, 50, 50, 1, 13440, 0x9b7aa566
+0, 51, 51, 1, 13440, 0x563c8d60
+0, 52, 52, 1, 13440, 0xe3848ee8
+0, 53, 53, 1, 13440, 0xa84b8f1d
+0, 54, 54, 1, 13440, 0x52da9f9f
+0, 55, 55, 1, 13440, 0x2ed56d97
+0, 56, 56, 1, 13440, 0x4e8534c2
+0, 57, 57, 1, 13440, 0x318900a6
+0, 58, 58, 1, 13440, 0xda96de39
+0, 59, 59, 1, 13440, 0xaae7ac0b
+0, 60, 60, 1, 13440, 0x7533ad99
+0, 61, 61, 1, 13440, 0x4e70c2c9
+0, 62, 62, 1, 13440, 0x9ce5e3fa
+0, 63, 63, 1, 13440, 0xc788fbbc
+0, 64, 64, 1, 13440, 0xd36604a9
+0, 65, 65, 1, 13440, 0x246221a4
+0, 66, 66, 1, 13440, 0x290c5c2b
+0, 67, 67, 1, 13440, 0xde6c68ec
+0, 68, 68, 1, 13440, 0x56248dbf
+0, 69, 69, 1, 13440, 0x5b898cbd
+0, 70, 70, 1, 13440, 0x090574b9
+0, 71, 71, 1, 13440, 0x8df2814a
+0, 72, 72, 1, 13440, 0xd4a6b285
+0, 73, 73, 1, 13440, 0xa016e921
+0, 74, 74, 1, 13440, 0x7f93fdc1
+0, 75, 75, 1, 13440, 0xfd0dee6f
+0, 76, 76, 1, 13440, 0xef04ce0e
+0, 77, 77, 1, 13440, 0x7560bee3
+0, 78, 78, 1, 13440, 0x5a8cdc85
+0, 79, 79, 1, 13440, 0x4788f7bc
+0, 80, 80, 1, 13440, 0xc001e34d
+0, 81, 81, 1, 13440, 0xc687eb74
+0, 82, 82, 1, 13440, 0xbf20feba
+0, 83, 83, 1, 13440, 0xd32647a8
+0, 84, 84, 1, 13440, 0xe69a955a
+0, 85, 85, 1, 13440, 0x1b56951f
+0, 86, 86, 1, 13440, 0xd1977378
+0, 87, 87, 1, 13440, 0x1620357d
+0, 88, 88, 1, 13440, 0x2596116f
+0, 89, 89, 1, 13440, 0x7473feca
+0, 90, 90, 1, 13440, 0x7f92bb47
+0, 91, 91, 1, 13440, 0x6866a683
+0, 92, 92, 1, 13440, 0xe9b08d7e
+0, 93, 93, 1, 13440, 0xa3fd7546
+0, 94, 94, 1, 13440, 0xa4416522
+0, 95, 95, 1, 13440, 0xd8f5572e
+0, 96, 96, 1, 13440, 0xf5746dbd
+0, 97, 97, 1, 13440, 0x256a87c6
+0, 98, 98, 1, 13440, 0x722aa2c8
+0, 99, 99, 1, 13440, 0xb26de5f5
+0, 100, 100, 1, 13440, 0x117f0841
+0, 101, 101, 1, 13440, 0xda2d192c
+0, 102, 102, 1, 13440, 0xb022442d
+0, 103, 103, 1, 13440, 0xbc4044f2
+0, 104, 104, 1, 13440, 0x68b330da
+0, 105, 105, 1, 13440, 0xc07228cf
+0, 106, 106, 1, 13440, 0xaa3f3d44
+0, 107, 107, 1, 13440, 0x25867aad
+0, 108, 108, 1, 13440, 0xa3ecb432
+0, 109, 109, 1, 13440, 0x93ccdcbb
+0, 110, 110, 1, 13440, 0x8302fa4f
+0, 111, 111, 1, 13440, 0x2f960f33
+0, 112, 112, 1, 13440, 0x15d41d14
+0, 113, 113, 1, 13440, 0x636529d0
+0, 114, 114, 1, 13440, 0x11035be5
+0, 115, 115, 1, 13440, 0x9b6e9167
+0, 116, 116, 1, 13440, 0x7b01adc7
+0, 117, 117, 1, 13440, 0xa237e05d
+0, 118, 118, 1, 13440, 0xd2f4f134
+0, 119, 119, 1, 13440, 0x2052d368
+0, 120, 120, 1, 13440, 0x08f7ae0d
+0, 121, 121, 1, 13440, 0xa89185bc
+0, 122, 122, 1, 13440, 0xfa628236
+0, 123, 123, 1, 13440, 0xdf79848b
+0, 124, 124, 1, 13440, 0xd19a906f
+0, 125, 125, 1, 13440, 0x219f9324
+0, 126, 126, 1, 13440, 0x46509b6d
+0, 127, 127, 1, 13440, 0xc5d9a568
+0, 128, 128, 1, 13440, 0xb21aaaa8
+0, 129, 129, 1, 13440, 0x925a97ed
+0, 130, 130, 1, 13440, 0xc5e3557f
+0, 131, 131, 1, 13440, 0x7c57155a
+0, 132, 132, 1, 13440, 0x6b26d005
+0, 133, 133, 1, 13440, 0xfdc7b369
+0, 134, 134, 1, 13440, 0x99919fc2
+0, 135, 135, 1, 13440, 0xcfe889e4
+0, 136, 136, 1, 13440, 0xd1196856
+0, 137, 137, 1, 13440, 0xec8348c6
+0, 138, 138, 1, 13440, 0x5ede0d9a
+0, 139, 139, 1, 13440, 0x198ef66e
+0, 140, 140, 1, 13440, 0x62fcefdf
+0, 141, 141, 1, 13440, 0x7791f415
+0, 142, 142, 1, 13440, 0xfbdb0029
+0, 143, 143, 1, 13440, 0xdab12b01
+0, 144, 144, 1, 13440, 0x646b2d5f
+0, 145, 145, 1, 13440, 0x5410f52e
+0, 146, 146, 1, 13440, 0x7186eef8
+0, 147, 147, 1, 13440, 0xca251ef6
+0, 148, 148, 1, 13440, 0x757c3b43
+0, 149, 149, 1, 13440, 0x59ff4982
+0, 150, 150, 1, 13440, 0xbe8ff084
+0, 151, 151, 1, 13440, 0xc85a9e38
+0, 152, 152, 1, 13440, 0x541b9a19
+0, 153, 153, 1, 13440, 0x274893c9
+0, 154, 154, 1, 13440, 0x7634b5d2
+0, 155, 155, 1, 13440, 0x1bd8e10c
+0, 156, 156, 1, 13440, 0xa661dfb1
+0, 157, 157, 1, 13440, 0x9d01bf92
+0, 158, 158, 1, 13440, 0xcb1eb220
+0, 159, 159, 1, 13440, 0x0ce27d25
+0, 160, 160, 1, 13440, 0x523b594f
+0, 161, 161, 1, 13440, 0xf0a04c4f
+0, 162, 162, 1, 13440, 0x0f0ffc3d
+0, 163, 163, 1, 13440, 0xb0d8b778
+0, 164, 164, 1, 13440, 0x5137a642
+0, 165, 165, 1, 13440, 0xd213a552
+0, 166, 166, 1, 13440, 0xc2fbc9b1
+0, 167, 167, 1, 13440, 0xfc2ee379
+0, 168, 168, 1, 13440, 0xfb80f737
+0, 169, 169, 1, 13440, 0xd6cb2447
+0, 170, 170, 1, 13440, 0x124b606d
+0, 171, 171, 1, 13440, 0xf788a066
+0, 172, 172, 1, 13440, 0xa16eed6e
+0, 173, 173, 1, 13440, 0x73ff0f82
diff --git a/ffmpeg1/tests/ref/fate/vp8-alpha b/ffmpeg1/tests/ref/fate/vp8-alpha
new file mode 100644
index 0000000..f857a87
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-alpha
@@ -0,0 +1,121 @@
+#tb 0: 1/1000
+0, 1, 1, 0, 2108, 0x59b92a34, S=1, 1900, 0x8fb3adc5
+0, 33, 33, 0, 142, 0x2f2a3fed, F=0x0, S=1, 160, 0xa13346af
+0, 66, 66, 0, 157, 0x17804767, F=0x0, S=1, 209, 0x64115f15
+0, 100, 100, 0, 206, 0x537262ca, F=0x0, S=1, 317, 0x44a09dd0
+0, 133, 133, 0, 259, 0x73ff74b6, F=0x0, S=1, 384, 0x2ee2c588
+0, 166, 166, 0, 320, 0x0fcf8ce4, F=0x0, S=1, 415, 0xff68c953
+0, 200, 200, 0, 377, 0x8fffb5f5, F=0x0, S=1, 475, 0x4166f3eb
+0, 233, 233, 0, 407, 0xe476c19e, F=0x0, S=1, 193, 0x3ff75489
+0, 266, 266, 0, 539, 0x90202334, F=0x0, S=1, 681, 0x776656b0
+0, 300, 300, 0, 560, 0xc6e2168d, F=0x0, S=1, 585, 0xddc81b8a
+0, 333, 333, 0, 597, 0x201a32a7, F=0x0, S=1, 574, 0x8baa1d65
+0, 366, 366, 0, 770, 0xab2b8891, F=0x0, S=1, 666, 0xcd8e51eb
+0, 400, 400, 0, 708, 0xc2386711, F=0x0, S=1, 706, 0x046b6444
+0, 433, 433, 0, 905, 0x7211c52d, F=0x0, S=1, 814, 0x5e288def
+0, 466, 466, 0, 770, 0xda4f8574, F=0x0, S=1, 829, 0xa0e8a949
+0, 500, 500, 0, 955, 0xf9a1d77a, F=0x0, S=1, 857, 0x9b63b955
+0, 533, 533, 0, 970, 0xff4de39a, F=0x0, S=1, 153, 0x3b00416c
+0, 566, 566, 0, 978, 0x12bcf81f, F=0x0, S=1, 1181, 0xce175555
+0, 600, 600, 0, 1233, 0x2903744a, F=0x0, S=1, 860, 0x737eb566
+0, 633, 633, 0, 1118, 0x7f274f50, F=0x0, S=1, 933, 0xb669c6b6
+0, 666, 666, 0, 941, 0x6bffd4b1, F=0x0, S=1, 1058, 0x07581cee
+0, 700, 700, 0, 1598, 0xc007219f, F=0x0, S=1, 939, 0x2c0bdc45
+0, 733, 733, 0, 1218, 0x25d962b6, F=0x0, S=1, 1090, 0x96482341
+0, 766, 766, 0, 1200, 0x86b85be3, F=0x0, S=1, 189, 0x3f085309
+0, 800, 800, 0, 1329, 0x298a848a, F=0x0, S=1, 1426, 0x6ea3df12
+0, 833, 833, 0, 1500, 0xe437edec, F=0x0, S=1, 1244, 0x32836b8d
+0, 866, 866, 0, 1288, 0xc4447dd5, F=0x0, S=1, 1289, 0x06a57b0f
+0, 900, 900, 0, 1281, 0xb5bf7e9f, F=0x0, S=1, 1227, 0xd96d5697
+0, 933, 933, 0, 1372, 0x09be9014, F=0x0, S=1, 1556, 0x2630fbff
+0, 966, 966, 0, 1238, 0x42ce6316, F=0x0, S=1, 1287, 0x1d3084f6
+0, 1000, 1000, 0, 1655, 0xb94b45c2, F=0x0, S=1, 1494, 0x34dbd1a4
+0, 1033, 1033, 0, 1164, 0xf6b93ad0, F=0x0, S=1, 1337, 0xba6d9673
+0, 1066, 1066, 0, 1084, 0x58c50fb5, F=0x0, S=1, 1384, 0x3fabb82b
+0, 1100, 1100, 0, 1151, 0x0b3f3359, F=0x0, S=1, 1353, 0x08e2a1d7
+0, 1133, 1133, 0, 1277, 0xa3ae77e1, F=0x0, S=1, 1409, 0xf65cb9f7
+0, 1166, 1166, 0, 782, 0xdcf671ff, F=0x0, S=1, 1408, 0x01e2ac53
+0, 1200, 1200, 0, 926, 0xe913c286, F=0x0, S=1, 1320, 0x32e38e42
+0, 1233, 1233, 0, 970, 0x3d86e5ae, F=0x0, S=1, 1608, 0x40b52618
+0, 1266, 1266, 0, 1353, 0xe4f197b2, F=0x0, S=1, 1272, 0xf1d272a5
+0, 1300, 1300, 0, 685, 0x629b4ce4, F=0x0, S=1, 1257, 0x14845de9
+0, 1333, 1333, 0, 743, 0x6f1172a3, F=0x0, S=1, 1260, 0xa6c66fda
+0, 1366, 1366, 0, 789, 0x94fc84cd, F=0x0, S=1, 1009, 0x7daaf2b0
+0, 1400, 1400, 0, 1460, 0x668adb82, F=0x0, S=1, 944, 0x44b6ccf5
+0, 1433, 1433, 0, 766, 0x49c884ef, F=0x0, S=1, 996, 0x8646e6dd
+0, 1466, 1466, 0, 1037, 0x24831498, F=0x0, S=1, 983, 0x14a9e7a6
+0, 1500, 1500, 0, 943, 0x1f53d180, F=0x0, S=1, 1107, 0x02f72acb
+0, 1533, 1533, 0, 1152, 0xbf6a35ae, F=0x0, S=1, 1026, 0xd57afda0
+0, 1566, 1566, 0, 730, 0x42806abf, F=0x0, S=1, 1029, 0xfb0402d5
+0, 1600, 1600, 0, 975, 0xa5ffec57, F=0x0, S=1, 1081, 0xe2890cea
+0, 1633, 1633, 0, 970, 0xbe8ee224, F=0x0, S=1, 1151, 0x7b0d3b20
+0, 1666, 1666, 0, 1012, 0x20c6f0d8, F=0x0, S=1, 979, 0xc25cd69c
+0, 1700, 1700, 0, 874, 0x1a2fb4da, F=0x0, S=1, 943, 0xdb2dc9f8
+0, 1733, 1733, 0, 869, 0xab0caf3d, F=0x0, S=1, 934, 0x48b9bfcc
+0, 1766, 1766, 0, 863, 0xd8caa2e5, F=0x0, S=1, 874, 0x0b34b026
+0, 1800, 1800, 0, 1246, 0x47866cdc, F=0x0, S=1, 818, 0x0c908eeb
+0, 1833, 1833, 0, 742, 0xa6296ac1, F=0x0, S=1, 921, 0x97b6b053
+0, 1866, 1866, 0, 828, 0x0b568d7a, F=0x0, S=1, 969, 0x3314dbfa
+0, 1900, 1900, 0, 825, 0x6d329394, F=0x0, S=1, 982, 0x5f66e68c
+0, 1933, 1933, 0, 836, 0x8ace8dfb, F=0x0, S=1, 929, 0x9ffdc2fd
+0, 1966, 1966, 0, 1774, 0xd4686726, F=0x0, S=1, 909, 0x11a9c07a
+0, 2000, 2000, 0, 1803, 0x08c879ce, F=0x0, S=1, 1525, 0x1e11f02f
+0, 2033, 2033, 0, 518, 0x7c32fc72, F=0x0, S=1, 785, 0xfc1f792a
+0, 2066, 2066, 0, 790, 0x3dac8aa0, F=0x0, S=1, 876, 0x0918c88d
+0, 2100, 2100, 0, 927, 0x4feccb24, F=0x0, S=1, 1059, 0xbcaa05c7
+0, 2133, 2133, 0, 835, 0x29d39266, F=0x0, S=1, 980, 0x4913e409
+0, 2166, 2166, 0, 951, 0xc1dddd12, F=0x0, S=1, 1041, 0x0541047e
+0, 2200, 2200, 0, 876, 0x2f6eb89d, F=0x0, S=1, 949, 0x2d56c53b
+0, 2233, 2233, 0, 959, 0xf0dedabd, F=0x0, S=1, 1022, 0x8d33f5fa
+0, 2266, 2266, 0, 860, 0x9274ab39, F=0x0, S=1, 1061, 0x289c0132
+0, 2300, 2300, 0, 863, 0x7058ba30, F=0x0, S=1, 940, 0x1f32d4a3
+0, 2333, 2333, 0, 1021, 0xcabdf84f, F=0x0, S=1, 887, 0xda8ab95e
+0, 2366, 2366, 0, 897, 0x9867c8e8, F=0x0, S=1, 840, 0xd93eaaf5
+0, 2400, 2400, 0, 897, 0x6a16b5db, F=0x0, S=1, 977, 0x7b77dc9b
+0, 2433, 2433, 0, 953, 0xe9b4cf1f, F=0x0, S=1, 921, 0x75a8ca45
+0, 2466, 2466, 0, 847, 0x0335ad37, F=0x0, S=1, 1000, 0x2691f3bd
+0, 2500, 2500, 0, 902, 0x3360b315, F=0x0, S=1, 1008, 0xd5e1deb6
+0, 2533, 2533, 0, 881, 0xf5309d59, F=0x0, S=1, 1113, 0xdbef3065
+0, 2566, 2566, 0, 974, 0x7c2de3ce, F=0x0, S=1, 1086, 0x365626bb
+0, 2600, 2600, 0, 974, 0xf42bd9f5, F=0x0, S=1, 1039, 0xa7e9060d
+0, 2633, 2633, 0, 1029, 0x7c33f4d0, F=0x0, S=1, 1041, 0xf4affa59
+0, 2666, 2666, 0, 881, 0x9021a565, F=0x0, S=1, 1039, 0xc1e00521
+0, 2700, 2700, 0, 1157, 0xe1c136f7, F=0x0, S=1, 917, 0x357ac7d3
+0, 2733, 2733, 0, 649, 0xdffb3cb7, F=0x0, S=1, 976, 0xa386e05e
+0, 2766, 2766, 0, 758, 0xb67875f3, F=0x0, S=1, 1041, 0xae4e0a63
+0, 2800, 2800, 0, 1105, 0x8ffb1a26, F=0x0, S=1, 962, 0x211ddc5e
+0, 2833, 2833, 0, 866, 0xa60eb2d9, F=0x0, S=1, 929, 0xe9e4c84b
+0, 2866, 2866, 0, 912, 0xcd34bf9b, F=0x0, S=1, 946, 0xfce9d359
+0, 2900, 2900, 0, 868, 0x5651a343, F=0x0, S=1, 809, 0x624a8ef9
+0, 2933, 2933, 0, 997, 0xfa66eaeb, F=0x0, S=1, 992, 0xc913e5e2
+0, 2966, 2966, 0, 1111, 0x3f272497, F=0x0, S=1, 1007, 0xf78ee6a7
+0, 3000, 3000, 0, 842, 0xe442999f, F=0x0, S=1, 972, 0x25a0d25c
+0, 3033, 3033, 0, 1030, 0x6f97ffad, F=0x0, S=1, 993, 0x4059fd6b
+0, 3066, 3066, 0, 1176, 0x66e64926, F=0x0, S=1, 951, 0x2762cdf1
+0, 3100, 3100, 0, 803, 0xfd1699cb, F=0x0, S=1, 959, 0x5cf9d56c
+0, 3133, 3133, 0, 972, 0x1cdff00e, F=0x0, S=1, 1023, 0xeaf20900
+0, 3166, 3166, 0, 907, 0x17f8acca, F=0x0, S=1, 1054, 0xeb010c4d
+0, 3200, 3200, 0, 915, 0x3569b545, F=0x0, S=1, 987, 0x73b2e159
+0, 3233, 3233, 0, 1021, 0x14c5076a, F=0x0, S=1, 1007, 0x6c4bf7f0
+0, 3266, 3266, 0, 837, 0xbf86b0ef, F=0x0, S=1, 963, 0xf472d31a
+0, 3300, 3300, 0, 885, 0x1caac123, F=0x0, S=1, 1052, 0x2b7bfd20
+0, 3333, 3333, 0, 1355, 0x299e8d3c, F=0x0, S=1, 858, 0x2bbca3f0
+0, 3366, 3366, 0, 784, 0xb0bd7e9d, F=0x0, S=1, 969, 0xc865dc00
+0, 3400, 3400, 0, 991, 0xbc7ddda9, F=0x0, S=1, 1028, 0x801b00a6
+0, 3433, 3433, 0, 986, 0xb356f6b1, F=0x0, S=1, 1056, 0x8b840add
+0, 3466, 3466, 0, 978, 0x94a3e87e, F=0x0, S=1, 1018, 0xe766fa52
+0, 3500, 3500, 0, 976, 0x55ddd14a, F=0x0, S=1, 992, 0x58a9ddfe
+0, 3533, 3533, 0, 1241, 0x1ec867f7, F=0x0, S=1, 966, 0xa329e84f
+0, 3566, 3566, 0, 975, 0xecf5dbb3, F=0x0, S=1, 899, 0xa7539f4d
+0, 3600, 3600, 0, 1129, 0xb7243037, F=0x0, S=1, 1057, 0xbd0d10bd
+0, 3633, 3633, 0, 913, 0xe5f1d03d, F=0x0, S=1, 1092, 0xeb9621f8
+0, 3666, 3666, 0, 943, 0x87d0ed78, F=0x0, S=1, 1057, 0x079c1054
+0, 3700, 3700, 0, 917, 0x536cc3fd, F=0x0, S=1, 946, 0xd2b9d0e2
+0, 3733, 3733, 0, 892, 0x4dffb1e2, F=0x0, S=1, 930, 0x70c9cc40
+0, 3766, 3766, 0, 957, 0x1a98e71c, F=0x0, S=1, 719, 0x6fec614a
+0, 3800, 3800, 0, 893, 0xf405b2c3, F=0x0, S=1, 821, 0x63529cab
+0, 3833, 3833, 0, 978, 0xa0a8d5f6, F=0x0, S=1, 745, 0x3c616219
+0, 3866, 3866, 0, 887, 0xfa7cb65d, F=0x0, S=1, 768, 0xb8f07885
+0, 3900, 3900, 0, 867, 0xd808ade7, F=0x0, S=1, 783, 0xf82b6b9a
+0, 3933, 3933, 0, 1068, 0x6f8b135a, F=0x0, S=1, 807, 0x52028d50
+0, 3966, 3966, 0, 2010, 0x536fe0b6, F=0x0, S=1, 1512, 0x690aeb55
diff --git a/ffmpeg1/tests/ref/fate/vp8-sign-bias b/ffmpeg1/tests/ref/fate/vp8-sign-bias
new file mode 100644
index 0000000..38843c0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-sign-bias
@@ -0,0 +1,10 @@
+#tb 0: 1/24
+0, 0, 0, 1, 614880, 12ce23b288485be3ddbc1db28c21517f
+0, 2, 2, 1, 614880, ce352e1079535ea058c0e9ad50f7cdb8
+0, 3, 3, 1, 614880, 9f6bf2739a027dfd12c81586cf75d3a3
+0, 4, 4, 1, 614880, 7593a85ab7790eb39d65fc53f769ed8b
+0, 5, 5, 1, 614880, 52f47f1e0348f3297d9f233fb5405e8b
+0, 6, 6, 1, 614880, cd51d2c200bfd66e8e1b0fd6b404570f
+0, 7, 7, 1, 614880, cf535cf0a53e903cd98a9a944b72da6d
+0, 8, 8, 1, 614880, 1b270fd2b56daa7892102c2885d23201
+0, 9, 9, 1, 614880, ff373c0c8a4a319c84e72b1c3d76b399
diff --git a/ffmpeg1/tests/ref/fate/vp8-size-change b/ffmpeg1/tests/ref/fate/vp8-size-change
new file mode 100644
index 0000000..1fba74e
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-size-change
@@ -0,0 +1,31 @@
+#tb 0: 1/30
+0, 0, 0, 1, 3110400, 7dde8cd136ab4b04a95d9856b941697e
+0, 1, 1, 1, 3110400, aa885f78cb6374b5bfcc66a4fc57026f
+0, 2, 2, 1, 3110400, b69b7b56f549a3f9b0a603940bac85ed
+0, 3, 3, 1, 3110400, 20e2e0f0c89c58828b6a3b10d9e175e5
+0, 4, 4, 1, 3110400, 483997936e7d6bb849e64d50426ec689
+0, 5, 5, 1, 3110400, c85ef97a853ff594e2bfdf0a0a581dcc
+0, 6, 6, 1, 3110400, c5e7b9ff4c25391793446da788cb83a9
+0, 7, 7, 1, 3110400, 63f93e89d24162e2f6328edbc6716b33
+0, 8, 8, 1, 3110400, 0e346ab4831ce8c69001153c72b7b827
+0, 9, 9, 1, 3110400, c526c21511d8bec2659d3d43d93734f2
+0, 10, 10, 1, 3110400, e95d01d5f9fb81a98bd34305c7ab30f8
+0, 11, 11, 1, 3110400, 177e75e7516e8746d31b43ea9d39e6b1
+0, 12, 12, 1, 3110400, 489d2bc0da93f118dc9a2697275697a7
+0, 13, 13, 1, 3110400, a2dc00d627350ff1ab302bcbad5ca5ac
+0, 14, 14, 1, 3110400, 20ce143831b0189f763ee5bee9c51188
+0, 15, 15, 1, 3110400, 7822fd908bd81b521c23fa4a639caf9e
+0, 16, 16, 1, 3110400, dabc4febbe09734126ac6f5a5180ba8c
+0, 17, 17, 1, 3110400, ef88f0d6667feefac1471b065208e1c8
+0, 18, 18, 1, 3110400, 7c7fc665a6fd9e19af9358bbdc162a51
+0, 19, 19, 1, 3110400, f2bcf32f734f99506bdd0a0376badf82
+0, 20, 20, 1, 3110400, 06809c2d277fd3b3918ebb4b65c27661
+0, 21, 21, 1, 3110400, e403e9e86fa5d519f65c565b3add84b5
+0, 22, 22, 1, 3110400, d2b876730e12245cacb578307794349a
+0, 23, 23, 1, 3110400, dfdfd8cb626a96138f6a2c1953dcf5ec
+0, 24, 24, 1, 3110400, 0ac58c28575b804d9e63395653c3aef2
+0, 25, 25, 1, 3110400, 641f2a78e338c733ef159bd36ec7966f
+0, 26, 26, 1, 3110400, 9402d455fa5bd556b85f479c42c3a4d2
+0, 27, 27, 1, 3110400, 0044d42b4048bc93112aa59789dbdc2d
+0, 28, 28, 1, 3110400, 5d9e5c5ba35f6f452e5f31ccff9e819c
+0, 29, 29, 1, 3110400, 307a55a94739b4cfdf41f7da7e5c0135
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-001 b/ffmpeg1/tests/ref/fate/vp8-test-vector-001
new file mode 100644
index 0000000..64accc4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-001
@@ -0,0 +1,30 @@
+#tb 0: 1/30
+0, 0, 0, 1, 38016, 83c78b5db579710f61f9354d5c51e8c8
+0, 1, 1, 1, 38016, 8d089d226f52d6cdaffdb3fcc080b75b
+0, 2, 2, 1, 38016, acaae81ca812145e85e0be83bdf54226
+0, 3, 3, 1, 38016, e94651d798b6bf5f09a9bba10cacaf7a
+0, 4, 4, 1, 38016, 60c2607913e528d501962bf407341731
+0, 5, 5, 1, 38016, e683f2bf28b31e36db88087bd03b6917
+0, 6, 6, 1, 38016, 0c2923785051bc9b90c2447a85527764
+0, 7, 7, 1, 38016, 1bc97b6b2e4ca36b149c3768495747ac
+0, 8, 8, 1, 38016, 0586d948ed3fd479c6dd08055973bcb4
+0, 9, 9, 1, 38016, c9a1198e1680487c77a2d1631695aeec
+0, 10, 10, 1, 38016, 547d8ffce9c085231c74717a9b815625
+0, 11, 11, 1, 38016, d31c02a5591eb7bd8e73703252e1a1ab
+0, 12, 12, 1, 38016, 23bafc8e22b2ed7e8c5e52369095cd30
+0, 13, 13, 1, 38016, 9725d52d7810a19b20dcc9bb0fa36abd
+0, 14, 14, 1, 38016, 7aefaabdcd2595939fd05078d01b484b
+0, 15, 15, 1, 38016, 828e758d6f0b29b2693b2dc6b09249a6
+0, 16, 16, 1, 38016, 53f09380dde1420ba270b74d8819537c
+0, 17, 17, 1, 38016, 09791a7db3bc28258350cfdc95d8f224
+0, 18, 18, 1, 38016, 2050271dc4ba3f3e427cf8088c96e28d
+0, 19, 19, 1, 38016, 4e69d3f7cea45844b740368fcd4dd815
+0, 20, 20, 1, 38016, 4ed07697e239b7f12ee6a97ad09c08fb
+0, 21, 21, 1, 38016, 1437c129bfbda63ca1d39a94ee91b097
+0, 22, 22, 1, 38016, 4fc951bf45e164b711591155a59c73fa
+0, 23, 23, 1, 38016, 97d1007e27b4b9072751e87e8d1f1415
+0, 24, 24, 1, 38016, 18c809835dcc3d30c93ae1be569dcd24
+0, 25, 25, 1, 38016, de0fd0035a542791c4dda5735657efc5
+0, 26, 26, 1, 38016, 27a70ff95d0cfa10f54652c9fb8a9db2
+0, 27, 27, 1, 38016, 2285b9324ec91099626191f769962e44
+0, 28, 28, 1, 38016, 56794d911b02190212bca92f88ad60c6
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-002 b/ffmpeg1/tests/ref/fate/vp8-test-vector-002
new file mode 100644
index 0000000..d42674a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-002
@@ -0,0 +1,50 @@
+#tb 0: 1/24
+0, 0, 0, 1, 38016, 872e9922f37f0e92c767d33e0a15b8e0
+0, 1, 1, 1, 38016, ea5ad6c6ee4355018fc0ba83b5172836
+0, 2, 2, 1, 38016, fe744612b2167c9ba6e1dc81c031e16a
+0, 3, 3, 1, 38016, 744359695caee3f32307a2d7eef09e85
+0, 4, 4, 1, 38016, 07211ac8d8bae4d931ade402ff6e3c12
+0, 5, 5, 1, 38016, 2ce02854f228b1378d9dc34cab8d343b
+0, 6, 6, 1, 38016, af5222ad42c4f22f22fbf19c26c02dcb
+0, 7, 7, 1, 38016, 88538d39f2647df8fedf15bd1b767bbf
+0, 8, 8, 1, 38016, d0d936471dd4e9922eb067c0f09eacab
+0, 9, 9, 1, 38016, 03cb1f5c5026e96f6e686aa1fa9b1028
+0, 10, 10, 1, 38016, 2ebe35e23d2244c5b0f777fbc01f8f37
+0, 11, 11, 1, 38016, f9314f5ea91ebbaaed6e37ca0701ed67
+0, 12, 12, 1, 38016, 37dca7530d09fd1e8bad154b9e312ea2
+0, 13, 13, 1, 38016, 9841dc8ff6424abe362c4dfe03b5fbd0
+0, 14, 14, 1, 38016, 72bd0b70c576dfb544f622c488217491
+0, 15, 15, 1, 38016, 309b21c126153f20f312e38a8dad44e1
+0, 16, 16, 1, 38016, 0acbb170ede66ebdae4e9d8e56908f75
+0, 17, 17, 1, 38016, 318c9c3e531d00734b5f78433da176c9
+0, 18, 18, 1, 38016, 0388dfdb2a792148b44bdb705cc2df99
+0, 19, 19, 1, 38016, f440adff2b44888becbf3ca16e425441
+0, 20, 20, 1, 38016, ac41431627d8d1712d40412ab8c3200c
+0, 21, 21, 1, 38016, 417e1abbfe2a078663dae688ae4a9bb1
+0, 22, 22, 1, 38016, 73d493bdf4a29d5cfeec610109f582a8
+0, 23, 23, 1, 38016, 3c026a536ef36467d4a9db6bcc20cec1
+0, 24, 24, 1, 38016, 57836430f2f10862b84541d99cca062c
+0, 25, 25, 1, 38016, 04ad6fa97e1ff49931b574bdaaddd5db
+0, 26, 26, 1, 38016, e94f2ec4cbf2b9067a4a4307eadebb6f
+0, 27, 27, 1, 38016, e3542cdee672d97c65ab06dbe611247d
+0, 28, 28, 1, 38016, 6c83c6c76aa8bf73646eb7a714cb42bf
+0, 29, 29, 1, 38016, b5f64c6fc6d0c777a0a0b9097862f171
+0, 30, 30, 1, 38016, 293dccaf5027759679bb9e8696b6381a
+0, 31, 31, 1, 38016, 1a3d015ff9b164cb7922aef0aeac520e
+0, 32, 32, 1, 38016, 93f9152d9425f0ec43160a0c01c485b2
+0, 33, 33, 1, 38016, c7c4a8f78f781f70cedc44edc1d06911
+0, 34, 34, 1, 38016, 21330442d5bef415fd765759d867c98b
+0, 35, 35, 1, 38016, 6164258040f85206a3833aeb4f27a34f
+0, 36, 36, 1, 38016, 3213e1405dfe6588a7334a8bc2b1e47f
+0, 37, 37, 1, 38016, a619fa73f0081a349dfa2b000de19045
+0, 38, 38, 1, 38016, 1f3cec4bb793dc4a118ddcf500090f37
+0, 39, 39, 1, 38016, 12308ec77632ca10f1451aec8e62b82f
+0, 40, 40, 1, 38016, 018c7f50ed4a494a9fcd32fdfed6705f
+0, 41, 41, 1, 38016, a7282728fbd7e0b49a6967b0ea4e1f61
+0, 42, 42, 1, 38016, 6aa15ab83e82f246ee9c7b7a040bfaac
+0, 43, 43, 1, 38016, e4c17d2603e03753d54a142491cf5dc0
+0, 44, 44, 1, 38016, 0a7331aa707e42e732f04e9175438195
+0, 45, 45, 1, 38016, b522cfa3f3c706d1901231bb9e6b4b8a
+0, 46, 46, 1, 38016, 7b2a70e47d9af98cfa6216ed2a7d528c
+0, 47, 47, 1, 38016, b56e22bc9beacff9c3207b2757fc7f94
+0, 48, 48, 1, 38016, a3dfc9461c0480cf56ee465ddabf0de1
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-003 b/ffmpeg1/tests/ref/fate/vp8-test-vector-003
new file mode 100644
index 0000000..504766f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-003
@@ -0,0 +1,50 @@
+#tb 0: 1/24
+0, 0, 0, 1, 38016, 96e6ce168b5ef377053e86ab5484e7f9
+0, 1, 1, 1, 38016, 10fd750292d8522ab7ee577043604789
+0, 2, 2, 1, 38016, e040995173dc5c85abbbe38f6823ff9a
+0, 3, 3, 1, 38016, 5aa18f4fbd8b5b887d74f84cc92075dc
+0, 4, 4, 1, 38016, f0dc7f520e88b94e5cb924d804b0472a
+0, 5, 5, 1, 38016, 2375955dce3bb0a824779a800cd1555b
+0, 6, 6, 1, 38016, 3e96a0e477de39530e1950cff284a854
+0, 7, 7, 1, 38016, 6cd40fa8a89221f2b990bd8af2a9ee14
+0, 8, 8, 1, 38016, 0b929243ceeffce836279e2aa84647cd
+0, 9, 9, 1, 38016, 1e95f0ad25fe033076b57c3852bb3550
+0, 10, 10, 1, 38016, 81aa93a3f9c56d2aa4b8285d3507e6b4
+0, 11, 11, 1, 38016, cf9947a302dec306d7f487cf3a2731b0
+0, 12, 12, 1, 38016, 3b9ca47752db95a049678da07974b476
+0, 13, 13, 1, 38016, aa6788405dc47dd44867fca6c95ba3d9
+0, 14, 14, 1, 38016, 276d1c62b908c081c7bbb78f943b0de1
+0, 15, 15, 1, 38016, eb006b6218e457fd794e9b3a5dfbf638
+0, 16, 16, 1, 38016, 9dd5312833e770286c5aa5436a00376e
+0, 17, 17, 1, 38016, 7899278e66aa255ce5bf69a6e1137d0f
+0, 18, 18, 1, 38016, 0ac7d062ea7550fa0717723b1272abc2
+0, 19, 19, 1, 38016, d8f1bb881a46ecafcbbe457a004a71f1
+0, 20, 20, 1, 38016, cc3a04b98159189a74b5241df540d8fb
+0, 21, 21, 1, 38016, 4e29eb2c8c465ae9ffcfa28ec0b3694b
+0, 22, 22, 1, 38016, 608fb6ba526e6aa4ad1c0290aedaa69d
+0, 23, 23, 1, 38016, 4acc6a73547be6310b9a275436c55805
+0, 24, 24, 1, 38016, 482cf409b86242d30f3a78a6c85364df
+0, 25, 25, 1, 38016, a22cb76770f112eb1169218cc87c1e4f
+0, 26, 26, 1, 38016, e74675b051ff05e178a9a24893721d99
+0, 27, 27, 1, 38016, ee5061bff62c8c8603b7bc2bb2bb29e8
+0, 28, 28, 1, 38016, a3c0ab11f338bd488c69f2b62e1e5a74
+0, 29, 29, 1, 38016, 9f6b7e30e0ed4e272393b9a9957752e1
+0, 30, 30, 1, 38016, 9cce9f2ffff1766d05bda04e46eff997
+0, 31, 31, 1, 38016, 5105a2ba923bc6f21ea3d32ab1bc7bf8
+0, 32, 32, 1, 38016, 957d619a1001e2b5e52db166b66b7f50
+0, 33, 33, 1, 38016, fdb4e71cddeec8a321d9c8d4ffc506ce
+0, 34, 34, 1, 38016, 9ee646940fb8ac2312d29e9f1c3b6d40
+0, 35, 35, 1, 38016, a110e81d2105beae81cd36b15bc5ac2f
+0, 36, 36, 1, 38016, 804b6d8fc99fadb9c6bfdae3becee6b5
+0, 37, 37, 1, 38016, e217627bbaeebf30456e38aeb1f0746b
+0, 38, 38, 1, 38016, 56468a2c548dd3085b4bce88c4a1e41d
+0, 39, 39, 1, 38016, ef170e7f21e2b262525b43d6b25dec4c
+0, 40, 40, 1, 38016, 3acc3c47def8a0fa0561eaacaf9e41a1
+0, 41, 41, 1, 38016, 0c3e2187f13e4504fb4b246706bba83c
+0, 42, 42, 1, 38016, 397326a22e6e49487309c39d64037df8
+0, 43, 43, 1, 38016, 95236c1319b6f1f692b3998547811ee7
+0, 44, 44, 1, 38016, 5aff1957504884abf74d6fb74b74b032
+0, 45, 45, 1, 38016, 6de06343435a8926a746037cab5f633c
+0, 46, 46, 1, 38016, 3de68e05ddf2c60ee9110048ceefeb6a
+0, 47, 47, 1, 38016, e637fef689edad6ffd6eeb4a29004bf7
+0, 48, 48, 1, 38016, bb809114af8df5cb4ed82d3a1d11a673
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-004 b/ffmpeg1/tests/ref/fate/vp8-test-vector-004
new file mode 100644
index 0000000..f402372
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-004
@@ -0,0 +1,30 @@
+#tb 0: 1/30
+0, 0, 0, 1, 38016, 83c78b5db579710f61f9354d5c51e8c8
+0, 1, 1, 1, 38016, d173eb8a8211a05672b43206609c9034
+0, 2, 2, 1, 38016, 204e3e91613d647d30244c00fa2b9563
+0, 3, 3, 1, 38016, 3cc1a395bd10a49b006741778285925b
+0, 4, 4, 1, 38016, 024548b00dea4f104d6b9a728be05786
+0, 5, 5, 1, 38016, 01401e9418f2e00ab4ffdb3296d40ffa
+0, 6, 6, 1, 38016, 35d8b3c1ef9cb864315b7502b93629b2
+0, 7, 7, 1, 38016, aeb44f0fe4c2eecb26c0bd657d65b00b
+0, 8, 8, 1, 38016, 42e40bed012bacf59f0c41d4cfd3e52a
+0, 9, 9, 1, 38016, 9796191fa2bd4572123ea043396e8485
+0, 10, 10, 1, 38016, 2d6d68b902129f3c3f1730e73b98f9c9
+0, 11, 11, 1, 38016, ba348b89248b92d0b86d794dc413e6a0
+0, 12, 12, 1, 38016, 5ce49bf164033d49bef1b23120d202d6
+0, 13, 13, 1, 38016, 54837a426c63a9c40ef8750232615dad
+0, 14, 14, 1, 38016, 350bcddf9a34f5003f6f655aaa020a00
+0, 15, 15, 1, 38016, babb82b1e2ca9315816b6f43b8ef84a0
+0, 16, 16, 1, 38016, c770825785c51fa374fd5bb08ff9f536
+0, 17, 17, 1, 38016, e9e0f92e416fcd27ca2e93a0804ac938
+0, 18, 18, 1, 38016, e0f2b89423da549eaa8b2b89f956f0f8
+0, 19, 19, 1, 38016, 9926b7e13b51115735eb0af8bb5e4ea1
+0, 20, 20, 1, 38016, d6b30a058b854c54068ebfc2b05f8fa0
+0, 21, 21, 1, 38016, a03048df79e41ada8a3ecc15a85e3f94
+0, 22, 22, 1, 38016, 34bef9af0633a43434841fd5189c161c
+0, 23, 23, 1, 38016, 219b447552b1ee409c1b9b56176d36bf
+0, 24, 24, 1, 38016, 95ea99459eaebc2f7233feeaf0549224
+0, 25, 25, 1, 38016, 34e08ce4067ca67ee9014cf628b6bb1c
+0, 26, 26, 1, 38016, 066c09a20d11b9dc3fa6972fd7f242c4
+0, 27, 27, 1, 38016, aed02c1951070ae5febea21ad54add55
+0, 28, 28, 1, 38016, f5a0fde2d818c4aaabd29b069ced6aea
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-005 b/ffmpeg1/tests/ref/fate/vp8-test-vector-005
new file mode 100644
index 0000000..3569dee
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-005
@@ -0,0 +1,50 @@
+#tb 0: 1/24
+0, 0, 0, 1, 38016, e7a4be434df4bb524ba56a03cba901f4
+0, 1, 1, 1, 38016, d903ade6d49e51485627c044fbb2190c
+0, 2, 2, 1, 38016, af07ee39629b852870104cb9a9dde9e3
+0, 3, 3, 1, 38016, 388a5f736db2de15342b62294fda4c82
+0, 4, 4, 1, 38016, a072600936aa77738fa2fa88ba212849
+0, 5, 5, 1, 38016, 0f96b1fb05b92498c0e1fcb6552e7e79
+0, 6, 6, 1, 38016, 68b0db002a0127ee79a7c70062aa8c3a
+0, 7, 7, 1, 38016, f9bc8edfeb9ceca9227a20cdab6788de
+0, 8, 8, 1, 38016, bfe2115b000565abc3dce1d38f804ed7
+0, 9, 9, 1, 38016, 67f17f96177f5464af1b97452560d2af
+0, 10, 10, 1, 38016, 658278016e5409b69d014fab0d94d0ea
+0, 11, 11, 1, 38016, 04dfd36afa0ddf22993d21c0a0fc715e
+0, 12, 12, 1, 38016, 088e5a7cc75a895f01f7a4362f104bc1
+0, 13, 13, 1, 38016, fb622a1a421b3689950f1adde9296dbb
+0, 14, 14, 1, 38016, 3711ac7adc816614a2efda9e138f53fc
+0, 15, 15, 1, 38016, 8e6fe3e68ccf53f23dd430b611fbfa6d
+0, 16, 16, 1, 38016, 1c77dd651cd38d3308671f0705d29926
+0, 17, 17, 1, 38016, bb5d7afccebc5d8a29f5980d21530d61
+0, 18, 18, 1, 38016, e51f2eeb39afa50ea243eaca39974f82
+0, 19, 19, 1, 38016, 7a73b1546fb5d8d4b05ebd4c839f74f8
+0, 20, 20, 1, 38016, 62a0db46717d7fb6523c62968fd3bc85
+0, 21, 21, 1, 38016, 98d6e520a164c42c5d19167c0ad48b22
+0, 22, 22, 1, 38016, 9749a21ea432221323c1a6b61ea59d51
+0, 23, 23, 1, 38016, 45fa9a9583db0139611b860bed8f6bc1
+0, 24, 24, 1, 38016, aac06fe351759ca81a5028f2f4a7b534
+0, 25, 25, 1, 38016, 7b7c7c16a377d61b6fe474541a18f0cd
+0, 26, 26, 1, 38016, 2a84883fdfa8450d46b8b9352b7d5a87
+0, 27, 27, 1, 38016, 3fc42d7dd6fa25ec17d8f2881f81b376
+0, 28, 28, 1, 38016, bfb243be1eada17adab5580b748248e7
+0, 29, 29, 1, 38016, 531fd799989db62210efc1999397d280
+0, 30, 30, 1, 38016, 1c1e68673b295e17fca1b14d1eb1995e
+0, 31, 31, 1, 38016, 12ee0f8810a1a3574337ef98987cf919
+0, 32, 32, 1, 38016, 0c6ef1cec243c552e83054d5ac56a8c1
+0, 33, 33, 1, 38016, cf0af3fb96e57143d335086485fbfa5c
+0, 34, 34, 1, 38016, f5df68bb123d1f2f59ba471fbd118a9e
+0, 35, 35, 1, 38016, 0b4a0cf5dd7968fd26959ad2849655b0
+0, 36, 36, 1, 38016, 0ba766224688a95bfa43ac2453555972
+0, 37, 37, 1, 38016, ef3f9fd7e5509bb880377fa1997d318c
+0, 38, 38, 1, 38016, d7486c3176cef98c0046522acbdaa4f0
+0, 39, 39, 1, 38016, f8dd15973993f4a2acd1d34b3610622e
+0, 40, 40, 1, 38016, e99b7f294e6bdd9ae18f013f62174fcd
+0, 41, 41, 1, 38016, 68ccf7e14a1055b24c5faf1b3a1888e7
+0, 42, 42, 1, 38016, 2f230afb6e5c67e4b7e000317638e919
+0, 43, 43, 1, 38016, 9cab31ac76ed26a879ac8b88bf7d33a1
+0, 44, 44, 1, 38016, 1e2affc0f458808b4564bd0453565a81
+0, 45, 45, 1, 38016, 79669092f6c73053c3de6d0d1408cc8c
+0, 46, 46, 1, 38016, 7b27977ba84341b9af4d58a7864f763a
+0, 47, 47, 1, 38016, 2481a387d65e7a16fe831b8da2200985
+0, 48, 48, 1, 38016, fa5e3bc265877b30ca71de0a2b14663b
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-006 b/ffmpeg1/tests/ref/fate/vp8-test-vector-006
new file mode 100644
index 0000000..38b92c4
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-006
@@ -0,0 +1,49 @@
+#tb 0: 1/24
+0, 0, 0, 1, 37697, 9ca5df27b0158aca2a38dff946f58c41
+0, 1, 1, 1, 37697, 627129a99538ec1ac51be910ca92ebc4
+0, 2, 2, 1, 37697, 6c2df1f21af317aa5bb68b161ca96c70
+0, 3, 3, 1, 37697, d66db823863838ca5b7f9125609e7de3
+0, 4, 4, 1, 37697, ecc970f8846290c0b7bf8d0865975cb7
+0, 5, 5, 1, 37697, 2fe7575c448562e291933e297335e1c8
+0, 6, 6, 1, 37697, e2a6fb8af11f65ce1153d6021df39e5f
+0, 7, 7, 1, 37697, 4536008cd0a425c9a9d93cbb3e8ba640
+0, 8, 8, 1, 37697, 478f042fff1cf0b6fd2eed391879c7ba
+0, 9, 9, 1, 37697, f079ee39021b1dd730f80bfaff9a6ae4
+0, 10, 10, 1, 37697, cb9b166c785ceabecf79e12e6068d4e4
+0, 11, 11, 1, 37697, 6bd6f77dc9c45cec08949a42aa1c2653
+0, 12, 12, 1, 37697, 1433577eb50b3270c0f1d6d26fb26277
+0, 13, 13, 1, 37697, 2765b207d230efd9a3e2e93c641b8553
+0, 14, 14, 1, 37697, a67e2f6bcf3b03e250c0ad8f1384ffb6
+0, 15, 15, 1, 37697, b5ea80e2dbffefdd8a613c25ee7f5f0c
+0, 16, 16, 1, 37697, e4b58bf735a8258842ad3c364eb9418c
+0, 17, 17, 1, 37697, 8e5fc5d4c78eb495f62e4a014a6a2a6c
+0, 18, 18, 1, 37697, 53bee2faf4cfae16037cda36a6194a57
+0, 19, 19, 1, 37697, e5c2e1de872a7107f80966ae857557d4
+0, 20, 20, 1, 37697, 882e46851681e6e3b376b5d1d9e139fb
+0, 21, 21, 1, 37697, 40b199fe02b5885947af22ce1314a085
+0, 22, 22, 1, 37697, 942b79dd5360c2a114db760424620a84
+0, 23, 23, 1, 37697, fe9f69dd6fc113ceec9127d9e12b3958
+0, 24, 24, 1, 37697, db13edae7e8e8a91d1ec84227c8f818f
+0, 25, 25, 1, 37697, 1963ea61c3e93150f7604ee6fa09b12c
+0, 26, 26, 1, 37697, 8cf43556160454d2353cedb9ba5675aa
+0, 27, 27, 1, 37697, a5e6b5b00fea3d9b1bdbd01fda712f27
+0, 28, 28, 1, 37697, 35f006cb6e570999b9011282c49c6d22
+0, 29, 29, 1, 37697, d884d482371cb2727e26475bb390d38b
+0, 30, 30, 1, 37697, a7233206056d3af69c6cff343b57de84
+0, 31, 31, 1, 37697, 437492f3e594576e1c17065e0091aa2d
+0, 32, 32, 1, 37697, 47f0677d9aff054056a194755628fdb8
+0, 33, 33, 1, 37697, fc93105a16501763a6e6ba3445ee6f32
+0, 34, 34, 1, 37697, 68612903d08399e0f0d9e28c1f18f6ea
+0, 35, 35, 1, 37697, a340fbba24c73372e6248f10e878f11b
+0, 36, 36, 1, 37697, 58c3561b06f9d866587f728877c08860
+0, 37, 37, 1, 37697, f2dd2a029515ad9c0655ccf86a2c524b
+0, 38, 38, 1, 37697, 789d43f63cbb302dad9f3e4b33713746
+0, 39, 39, 1, 37697, d8f979aca1774470269283da048a505b
+0, 40, 40, 1, 37697, ecc06e2175290319cb36614370c8ad62
+0, 41, 41, 1, 37697, 5ba26b83766b666007b502a7194170e3
+0, 42, 42, 1, 37697, 8163a20e9a345b70579c625c50e7ec73
+0, 43, 43, 1, 37697, 1f1a497d768c4bcd57de11b21baf9138
+0, 44, 44, 1, 37697, a21e9a52a982675815c9937b49ebb0ff
+0, 45, 45, 1, 37697, dcc0bd83ce31ac99577cd2f9ced69096
+0, 46, 46, 1, 37697, df36b27588b8515580d5015e5f66dbf9
+0, 47, 47, 1, 37697, 156a6351549949953ce3197b990760a9
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-007 b/ffmpeg1/tests/ref/fate/vp8-test-vector-007
new file mode 100644
index 0000000..8d9b912
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-007
@@ -0,0 +1,30 @@
+#tb 0: 1/30
+0, 0, 0, 1, 38016, 98bd0af6928c144888a9c320270e9f0e
+0, 1, 1, 1, 38016, 9ff7cff703d58481acd233451388377c
+0, 2, 2, 1, 38016, e4cd8815527846cc782ea61ef5a46e49
+0, 3, 3, 1, 38016, db45275b87e194e5b505dd8c47da4f5d
+0, 4, 4, 1, 38016, c889d0f7bd34faf4df0e0a9eb9fc292a
+0, 5, 5, 1, 38016, 4dbfb1727baf9b75980e7fdd44ca0924
+0, 6, 6, 1, 38016, 5f217ac95c891dc81f7193fc5352d582
+0, 7, 7, 1, 38016, 11166789635e472f629510f551b11e2c
+0, 8, 8, 1, 38016, 336e6e42e67e1ccb7cda6298cb63f192
+0, 9, 9, 1, 38016, 02dbcff56882e304d5043d0f9b1ff9ff
+0, 10, 10, 1, 38016, fe033ea2c6b8b81a9328b470f8b0d6bb
+0, 11, 11, 1, 38016, 0e3330fe9a7c0439ff53f18f0d15eb48
+0, 12, 12, 1, 38016, 6c0d7e042a3bb32a128c4a405f59b426
+0, 13, 13, 1, 38016, 7e51afc33dbf4b77fc5735f5d9ec0248
+0, 14, 14, 1, 38016, a8381f193f34a5071b8eeba7f5cd1968
+0, 15, 15, 1, 38016, 501a7914b47ff85c24f0533ee98b9fe9
+0, 16, 16, 1, 38016, 00bd5fbb7e3b66514e6c77c3a5f118c3
+0, 17, 17, 1, 38016, 23e296d12a45909cadda252b9f4e67bd
+0, 18, 18, 1, 38016, fa0b5c69bacf766551bebdde0910eb9f
+0, 19, 19, 1, 38016, f5cc24d10d58ebc50503ca321db708cc
+0, 20, 20, 1, 38016, 3997eb9ff6231dee9e23752776113cd6
+0, 21, 21, 1, 38016, 68d4c9cd494d91dd70e7a94c7a4b9a12
+0, 22, 22, 1, 38016, 647b34f3aa7318adce68803ba00104fb
+0, 23, 23, 1, 38016, ffed5301bd6fddd1d24d12e6096cc8a6
+0, 24, 24, 1, 38016, 9511388180811c10d166886868d6e71c
+0, 25, 25, 1, 38016, a9b330803b8ccd91596591c0449423ab
+0, 26, 26, 1, 38016, 69b192888cda09dac658d5820183a2e8
+0, 27, 27, 1, 38016, 8886e5851e60a7474cc9e214ba6373ad
+0, 28, 28, 1, 38016, f59e354deedb129a90ab3922838b03d3
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-008 b/ffmpeg1/tests/ref/fate/vp8-test-vector-008
new file mode 100644
index 0000000..9be8d73
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-008
@@ -0,0 +1,3 @@
+#tb 0: 1/23
+0, 0, 0, 1, 1907424, 7146d3a72b6cb8e43ee5280ef8d661fe
+0, 1, 1, 1, 1907424, 5a537e9710158efb5ad2683a1d3b4c72
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-009 b/ffmpeg1/tests/ref/fate/vp8-test-vector-009
new file mode 100644
index 0000000..fae204d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-009
@@ -0,0 +1,50 @@
+#tb 0: 1/24
+0, 0, 0, 1, 38016, b3a3121c796a60c88988fef5240a07fe
+0, 1, 1, 1, 38016, f25147764829cf837e00b8fd6383e2c4
+0, 2, 2, 1, 38016, 1b1552291a89c97d5deea145ab0ac0cd
+0, 3, 3, 1, 38016, 0b2e75bbbe8f4248eb1519b6542efc96
+0, 4, 4, 1, 38016, 99e8fc68547e119253ee3b8d79efa774
+0, 5, 5, 1, 38016, 3aaf9210819238da7f704339bd8f262c
+0, 6, 6, 1, 38016, de80b11f4c325e6d467d4abe5ad0db51
+0, 7, 7, 1, 38016, 93d2fba68721768018b35ccac27b6bb1
+0, 8, 8, 1, 38016, 07d7d4f8ad4151a013b652bec21ea9b8
+0, 9, 9, 1, 38016, aaa95e4d39aa31cf68fdb8da268827e5
+0, 10, 10, 1, 38016, 3607fcda0733e0b0fd10a8f7fbe6e39e
+0, 11, 11, 1, 38016, 6d8cc24ea3b9827ef0147c8b7cc6938d
+0, 12, 12, 1, 38016, 977a6b65d41b1b70dd4df9f526045675
+0, 13, 13, 1, 38016, 9258b0e5fc2217c3aebbd96bb06c937a
+0, 14, 14, 1, 38016, 887378a3aad18346a3827cd0aadc6873
+0, 15, 15, 1, 38016, c2a3ff302d74eefd0855f2c862766aca
+0, 16, 16, 1, 38016, 1a7d835f5a977e1fd8cc37bdd8d029ca
+0, 17, 17, 1, 38016, 232be1f7e334001c3abbed550cc60c34
+0, 18, 18, 1, 38016, e8cb3470b9a3ffbc7014793514dc89cf
+0, 19, 19, 1, 38016, 54b20adca41910f003790a975ff7b50d
+0, 20, 20, 1, 38016, 2c5fce4dcdd538f1d9377fa071f3d615
+0, 21, 21, 1, 38016, d559840da8cef1f0b1379a592f708f0a
+0, 22, 22, 1, 38016, ffab5f1060938a62cf8ef9df30ec8a33
+0, 23, 23, 1, 38016, b7d93c8eda8cce4d387f2ea78c415704
+0, 24, 24, 1, 38016, 7840aa27333e6350d114b256ab4304f1
+0, 25, 25, 1, 38016, dc1f3b125177d0ad7f53dd058bba03e7
+0, 26, 26, 1, 38016, 37134fcaad963a22f4df04c0765af455
+0, 27, 27, 1, 38016, 4dc062fb76943a75e7b2428e5babbb3c
+0, 28, 28, 1, 38016, dfda91bc05efc72073a2b6b62f294327
+0, 29, 29, 1, 38016, 7ffc690c63a1c54e35978336dc5828a3
+0, 30, 30, 1, 38016, 9ae31bacbc097c2ccf1500ff89882e46
+0, 31, 31, 1, 38016, 1450c24713dcad41aeba1c44007bf12f
+0, 32, 32, 1, 38016, f125bb52b8a1b11e076de55cca1069ee
+0, 33, 33, 1, 38016, 555e1f2a6d293a0bdc9f92e9c3b3118d
+0, 34, 34, 1, 38016, ec9a8d577a07a4f0d5deae63b3cea6dd
+0, 35, 35, 1, 38016, a54f74e0ee329db4a78851bb7e54b2ba
+0, 36, 36, 1, 38016, 99fcfe7ed9028bc443a790f9cf8eb812
+0, 37, 37, 1, 38016, b9b994ffbe0150945b752a2120b4a475
+0, 38, 38, 1, 38016, f00d70d8a28cecaaec1eb84592e3f6c3
+0, 39, 39, 1, 38016, 3bc8ed07fc92c4d339164891e6624306
+0, 40, 40, 1, 38016, d755777560d745d6bdfa01b9e9cbbcc0
+0, 41, 41, 1, 38016, bcefb5ef8fae173e413406b4a60e2255
+0, 42, 42, 1, 38016, fb47098c334b82764e30819066b13096
+0, 43, 43, 1, 38016, 9e31f68fc96045bba43cf1253eedc419
+0, 44, 44, 1, 38016, 53522d46d2ba91ab23693db7d41ecda7
+0, 45, 45, 1, 38016, d66a074ebe6123590622e5cb308d75e5
+0, 46, 46, 1, 38016, 6574fce175632a22fcc05b47157318e4
+0, 47, 47, 1, 38016, 31f7fb05d060c1dea46044787772baaf
+0, 48, 48, 1, 38016, cec733062ae526ae71b39ae0dc402482
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-010 b/ffmpeg1/tests/ref/fate/vp8-test-vector-010
new file mode 100644
index 0000000..b250ad9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-010
@@ -0,0 +1,58 @@
+#tb 0: 1/30
+0, 0, 0, 1, 115200, 3441ec1a9b9d325c9aeda44e3b68377d
+0, 1, 1, 1, 115200, bff86a84fd673394f45c09d19a1ee0ac
+0, 2, 2, 1, 115200, 8cd920f0de408e8cd883f9241680ff80
+0, 3, 3, 1, 115200, d1b27cbb40859bbbb6da40dce6ddbf1b
+0, 4, 4, 1, 115200, ca102ed86e45fe452f55a2cf0253de21
+0, 5, 5, 1, 115200, ac7630be64017becd6e958df360263b5
+0, 6, 6, 1, 115200, a044041ede746687d33ba6342d8d3edb
+0, 7, 7, 1, 115200, 75d7c0eec357afd0c2d54e769f551b20
+0, 8, 8, 1, 115200, eebd916e4fba53a66fc8e6ab98091a0f
+0, 9, 9, 1, 115200, c0044160a944dcac81efe9f63def4bc2
+0, 10, 10, 1, 115200, 9ba8b2ccbea045b39bd150ea383abc00
+0, 11, 11, 1, 115200, 8d7654804fc62f7d52d5bf3d47f536e9
+0, 12, 12, 1, 115200, 9fd6cd81fbe6cfc43e03cdf166c7ea93
+0, 13, 13, 1, 115200, a1a494064dba27238005227c0808c5f6
+0, 14, 14, 1, 115200, b8dca72164ea72b3f257c97c3ad87416
+0, 15, 15, 1, 115200, 90ae005c0f3ddb4318318805b8fc29cf
+0, 16, 16, 1, 115200, 8183e7b60f18887a9530a7905db4b417
+0, 17, 17, 1, 115200, 1650ad1fff9076141f59b660c562f0f2
+0, 18, 18, 1, 115200, e9ee675cafd270c366ac9d3ced5af879
+0, 19, 19, 1, 115200, 2257172d6e8628b4dd4d9bf97e9ee2c3
+0, 20, 20, 1, 115200, 577438f88feca7a876381a6fcf094684
+0, 21, 21, 1, 115200, 4b37e90eb35cba66d31616169020c039
+0, 22, 22, 1, 115200, 2c631ab87b8d3b7df13f888e3d6f1690
+0, 23, 23, 1, 115200, e0d46e04d6a57b20c2b056cd0a0ca1ec
+0, 24, 24, 1, 115200, 65bd3e207b8ed966b71f40a04f1900b8
+0, 25, 25, 1, 115200, fd842606a20fb297463b7b3dd6efa2c2
+0, 26, 26, 1, 115200, 778cd96eabe785320254db7692583f47
+0, 27, 27, 1, 115200, 094272ad385a64fbc70a62f958e27eff
+0, 28, 28, 1, 115200, cf5f7b3b94a00938b633ea1d9aa8e8dc
+0, 29, 29, 1, 115200, 032e2f3649484ca17c739cf89052de77
+0, 30, 30, 1, 115200, 9afe92189c21675745609e3b21a75941
+0, 31, 31, 1, 115200, a5e087c496798bfbc64d6c26eee0b3af
+0, 32, 32, 1, 115200, efb2716347ba2e01f7dc103d2a6cebb4
+0, 33, 33, 1, 115200, c83541678dcca8937e372102bc4d1f68
+0, 34, 34, 1, 115200, 3401ed97a9296610c8473dcf03e13f20
+0, 35, 35, 1, 115200, 35af1327fafe026b6539951a9baee282
+0, 36, 36, 1, 115200, f320e2d64192849c08c4c5e6d79e4ecf
+0, 37, 37, 1, 115200, 5a661af83f451d8651cf081399d451b2
+0, 38, 38, 1, 115200, 625d271b60d91229699f1de35d232b13
+0, 39, 39, 1, 115200, 8e504154fa8eba5f9807bf40c647eea8
+0, 40, 40, 1, 115200, 094ecb39a65c71e85d15a587472bb336
+0, 41, 41, 1, 115200, 4d08bfe5771f00e13646be49e3471c4c
+0, 42, 42, 1, 115200, 20841206e07721fb631088d492622543
+0, 43, 43, 1, 115200, edf969142e1b053f951c1a5756f2b5d9
+0, 44, 44, 1, 115200, 4959a13f20311d9b435e501fd753c94b
+0, 45, 45, 1, 115200, a7f34e6c985d630af07a9f6dc47ea50e
+0, 46, 46, 1, 115200, 96f6667d849f3abe4e85e3ce368b76ee
+0, 47, 47, 1, 115200, a47d443c8aa5f2d2e3b44deab3f4f8e7
+0, 48, 48, 1, 115200, 4ebda78d96facc4472ecdb4f667be0c6
+0, 49, 49, 1, 115200, 6ba744c47edab85c6e77584e35e1b735
+0, 50, 50, 1, 115200, 4d2e6882f15356171e4383111ec70e6e
+0, 51, 51, 1, 115200, 85077fc81dff947b1251bfbd981aaf52
+0, 52, 52, 1, 115200, f03e8879a5218387c502eaab31682df9
+0, 53, 53, 1, 115200, 90f6128298cb52f769d697f9f842df27
+0, 54, 54, 1, 115200, 700a705680c1a940141bc03ae5de391b
+0, 55, 55, 1, 115200, 049b3df3ed9673ab8e0f0d0d896f65c2
+0, 56, 56, 1, 115200, ca8c3e5509211dc92078371f06dc8635
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-011 b/ffmpeg1/tests/ref/fate/vp8-test-vector-011
new file mode 100644
index 0000000..d591ec7
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-011
@@ -0,0 +1,30 @@
+#tb 0: 1/30
+0, 0, 0, 1, 38016, 83c78b5db579710f61f9354d5c51e8c8
+0, 1, 1, 1, 38016, 9b755a63c7c5352660a265f6e24991e1
+0, 2, 2, 1, 38016, a591f0b04447d6d6dd9bb990502594aa
+0, 3, 3, 1, 38016, 6ebbd38d20a4104a842c66df53a8b86e
+0, 4, 4, 1, 38016, a114c37e74a4252ed66c5c4e7c8df84b
+0, 5, 5, 1, 38016, 4bad182348dcfb627b3e15bc228a3c8f
+0, 6, 6, 1, 38016, a843b5c80266f890044a4ba1f59de8ed
+0, 7, 7, 1, 38016, 34816d9129f252afcbd56d6ad1df94c7
+0, 8, 8, 1, 38016, 7d7d46cd08e18aea6fc52c0ec58a4803
+0, 9, 9, 1, 38016, c96c3357d89534fce32251a0d52c68c5
+0, 10, 10, 1, 38016, 5eb1329f955ab80696d8220605a51552
+0, 11, 11, 1, 38016, 68b3d5162cd5b004a6dfeac705c75afa
+0, 12, 12, 1, 38016, b79647c678fbbb9ffbd8c4ff63c05e43
+0, 13, 13, 1, 38016, 4566eb5f995852d72b6913d2ca2e321c
+0, 14, 14, 1, 38016, 02e7e951ac9e42eafb1260defaecf685
+0, 15, 15, 1, 38016, ddbfa0f81a009c41271c9aa587e88baa
+0, 16, 16, 1, 38016, 27d31dba74cb2170c456830a9f888c0b
+0, 17, 17, 1, 38016, 0537650a41bb087a5fd33d6347fe9036
+0, 18, 18, 1, 38016, df2205297d4f00164a3440c8fa1ac4ee
+0, 19, 19, 1, 38016, 9942b757bd3839c1cd6b1068c68967f2
+0, 20, 20, 1, 38016, d9284e1e989cd38d0226b1a3c6e89409
+0, 21, 21, 1, 38016, 12427a3fdc22461fe9d6ff9dd5863bef
+0, 22, 22, 1, 38016, 63f75f2a63630347671c0e6dd2f88bcb
+0, 23, 23, 1, 38016, b161169a678e3959b492d83a03d47dee
+0, 24, 24, 1, 38016, 50a6d4c8722197f0abd1028b968dce58
+0, 25, 25, 1, 38016, c0f81ef6b25034cff00db1e3c369be97
+0, 26, 26, 1, 38016, 01b502a4b69d5be7a82f292e735aa087
+0, 27, 27, 1, 38016, 6bbff03307f93a654e4529e2a5092887
+0, 28, 28, 1, 38016, 17ef5fd4bd1cc6030e1370a43f1d19bf
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-012 b/ffmpeg1/tests/ref/fate/vp8-test-vector-012
new file mode 100644
index 0000000..4d5adcb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-012
@@ -0,0 +1,30 @@
+#tb 0: 1/30
+0, 0, 0, 1, 38016, cc3069a59b6f4319761af2b39923a6e5
+0, 1, 1, 1, 38016, c0bc935941d994c6af6a864f02a90a62
+0, 2, 2, 1, 38016, 5b6073ce4a03967aa87e56dfa27e32c2
+0, 3, 3, 1, 38016, 5310a9d6bf938ed89b10727f11e131c4
+0, 4, 4, 1, 38016, 290fb1310ea10b862b51d37ff9d79f7c
+0, 5, 5, 1, 38016, 0ca1accba77dc867df682b8e3768d6e2
+0, 6, 6, 1, 38016, 2a90659dd4cd5d2f825641be55609d97
+0, 7, 7, 1, 38016, e003db31fbfeab54385252e8c64197fc
+0, 8, 8, 1, 38016, 0778609bd9626652e8a8dd07d5ef9f45
+0, 9, 9, 1, 38016, 36eecf49c4aa2d8c3f232a1dbbb5f4ca
+0, 10, 10, 1, 38016, f69f30dd8ebb7db4c51e0371f6a23736
+0, 11, 11, 1, 38016, e9d5293db5122b9683a0853c2ef678cb
+0, 12, 12, 1, 38016, 75d6a09bca67a82c8aacabb710558330
+0, 13, 13, 1, 38016, 973d73aa4bb4e3de2cb1ba97685e08ca
+0, 14, 14, 1, 38016, daf9ce67baaaa02bc56f49b540f22a30
+0, 15, 15, 1, 38016, d08fd3b942e1219132015819c553f2c2
+0, 16, 16, 1, 38016, 0aeea73b030e47bbd80bb0fb33fb6ebd
+0, 17, 17, 1, 38016, 6e9f5f98fffe27abfae52304c693ae44
+0, 18, 18, 1, 38016, 961c71a47741a1ac47fcaebf958647c8
+0, 19, 19, 1, 38016, e75e53160b9f33eca0dfba999d8002eb
+0, 20, 20, 1, 38016, ebb5d79336f75c44a09971dbba6947f3
+0, 21, 21, 1, 38016, f02317fae5e143103a114ca692b58c25
+0, 22, 22, 1, 38016, 8282867aa63fa23c48cc0216e21933cc
+0, 23, 23, 1, 38016, d0d74ebbf56ca62825641028b66cdb20
+0, 24, 24, 1, 38016, a8df24b0a22fe4fb334ea7063cba8754
+0, 25, 25, 1, 38016, 8a570e42ad6ab42ead80b5022c2eb2f1
+0, 26, 26, 1, 38016, dae566f13fa69de11db3ba7673e6211d
+0, 27, 27, 1, 38016, 914ed8403cdbf4c54d0b9cb1eeee6832
+0, 28, 28, 1, 38016, 18aa8d4bfe06a04ec4e9ccf9c7a92643
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-013 b/ffmpeg1/tests/ref/fate/vp8-test-vector-013
new file mode 100644
index 0000000..de7c0b3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-013
@@ -0,0 +1,30 @@
+#tb 0: 1/30
+0, 0, 0, 1, 38016, ad137b9eae93daed28fe31fd5165b4d0
+0, 1, 1, 1, 38016, 7cd527f647680c0eb305050d27fb8092
+0, 2, 2, 1, 38016, f306e07a2e86c82a8cc1333be3812326
+0, 3, 3, 1, 38016, 4ffd6065ef6af716fdb7388479cf300e
+0, 4, 4, 1, 38016, e776c698ae335107d5794c02cf00d3ee
+0, 5, 5, 1, 38016, c0043e3283b96a4aa58d2265b007e67e
+0, 6, 6, 1, 38016, 235dd358e6adb3e144d7d957458e74a0
+0, 7, 7, 1, 38016, 4d34b966a406e7c2d5cef029ddc76021
+0, 8, 8, 1, 38016, 65f9eb823a63e17710b111892c415b70
+0, 9, 9, 1, 38016, 84d4a1d510d1c1aa8f3e7232d574ba9d
+0, 10, 10, 1, 38016, f3218df364f0e283df56b5d4a9cdfca9
+0, 11, 11, 1, 38016, 3079d93a140b51fe3e7b4889fd5fdd24
+0, 12, 12, 1, 38016, 4b76d7f904960792b78378c95453b77a
+0, 13, 13, 1, 38016, 26cdd39f9cd862b383352bf769d212a0
+0, 14, 14, 1, 38016, d98dbe7d7b8a5ccc50cb3a2e3dcacec8
+0, 15, 15, 1, 38016, a931f142064062d7d2d1245278c6edd9
+0, 16, 16, 1, 38016, 0c6dae06c59c040801be386d7e883f52
+0, 17, 17, 1, 38016, cec4a68182fb14185360f57de81e73cb
+0, 18, 18, 1, 38016, 7e819d1d928f974f25d45023a89a6765
+0, 19, 19, 1, 38016, 6d9a9fd28212940497f881ef4886d756
+0, 20, 20, 1, 38016, f22969fc06edc0c9190cae8bb22243ae
+0, 21, 21, 1, 38016, 2fcd676dbf66f842e91649a3d6c80f50
+0, 22, 22, 1, 38016, ce16e8920e91ec208dfb241addfc612b
+0, 23, 23, 1, 38016, 3a205f364751ff5e72d7da20e5713f53
+0, 24, 24, 1, 38016, 2305bcde500197d7697eec4ba89f1533
+0, 25, 25, 1, 38016, 23712ae207ea2381f886ed038ec3852b
+0, 26, 26, 1, 38016, 7197e717541573be07f9cda50ba524a9
+0, 27, 27, 1, 38016, 3f3e3ec6d1d6f49021affbadb75c1fda
+0, 28, 28, 1, 38016, 424fe8391a419b005a6f142ec65d802b
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-014 b/ffmpeg1/tests/ref/fate/vp8-test-vector-014
new file mode 100644
index 0000000..4341e59
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-014
@@ -0,0 +1,50 @@
+#tb 0: 1/30
+0, 0, 0, 1, 37697, 7a0356dc950e79744d79c98e391ebee9
+0, 1, 1, 1, 37697, 96e221e75c290dd847b8e55865073366
+0, 2, 2, 1, 37697, 67638290841837c90f180a01094f9191
+0, 3, 3, 1, 37697, 93c8e234e123f7a641c5eb44903b75ab
+0, 4, 4, 1, 37697, b4fa5ce6089221863002019d99ae7f9d
+0, 5, 5, 1, 37697, 5d3b48fbb681ef2b6a0a5e60c03ee5bd
+0, 6, 6, 1, 37697, 26635956a9ed343428b36947723b4b94
+0, 7, 7, 1, 37697, 18e9b11e10350ab20b89482c5d1c5cea
+0, 8, 8, 1, 37697, 44fe40a7ce85552ccf95a451c5732e57
+0, 9, 9, 1, 37697, f38758bf6d522023961d08719e92d3ce
+0, 10, 10, 1, 37697, 28a2a9ebb3633a0822c9a283ab1ddea6
+0, 11, 11, 1, 37697, 4b4485c9419710ad6d3e6aa11fe3a91b
+0, 12, 12, 1, 37697, e3f6850a934c6e3e2fed3026e1e53066
+0, 13, 13, 1, 37697, 4acff1abe788a4944474b82d10af172d
+0, 14, 14, 1, 37697, 4cbfcc008923e8303df170d4e7b1cf34
+0, 15, 15, 1, 37697, dde5de0c676f60b4cea26bbf024bbfb7
+0, 16, 16, 1, 37697, fe1b0890eef18cd4989d251dbc3b7ef2
+0, 17, 17, 1, 37697, 462303741de9904a13bd46534010f588
+0, 18, 18, 1, 37697, 7ab2068505dbccdf522a08a65373b6b6
+0, 19, 19, 1, 37697, cb63092b6880bbdbaa40b40d738aa4dd
+0, 20, 20, 1, 37697, dca7556869370de600afbda82bb45fae
+0, 21, 21, 1, 37697, 5f5cae9db9e3aa3f300706ebc3874987
+0, 22, 22, 1, 37697, eaf7ba4f48eb5722c09420f2be4bc5f3
+0, 23, 23, 1, 37697, dd5b43b72c8b9c3ad53afef0f8869a68
+0, 24, 24, 1, 37697, f5d81cadb4b1f69e9700293e38ea36a2
+0, 25, 25, 1, 37697, 1e56a6becf3099db71fbc7a996c4fbba
+0, 26, 26, 1, 37697, 7e0676c4af74b59d9560d8b42d400de2
+0, 27, 27, 1, 37697, 6717c3c344b45e9e202e808d19c9baa8
+0, 28, 28, 1, 37697, 42b92f6fbd4cc5d4cf4f9b364a8a7741
+0, 29, 29, 1, 37697, 6caca9fcc03e8b9d326aec18eaaae928
+0, 30, 30, 1, 37697, cfa2798d156cabe81160c00939102d90
+0, 31, 31, 1, 37697, 5d018cfac7da660819da2e5d25e8126e
+0, 32, 32, 1, 37697, 761b7b2b64b22abadb89c58ab294520b
+0, 33, 33, 1, 37697, 4e066fa627d4dbf3635148eb6b2a0477
+0, 34, 34, 1, 37697, e0d6dd242cb99c7bc9826a05895344c5
+0, 35, 35, 1, 37697, 84e7beedcba6da53feb722f30211d2f8
+0, 36, 36, 1, 37697, af49b3fcc56b02ca746792b1d3bbe1c8
+0, 37, 37, 1, 37697, cdd9f17b4501bc7f7bedb70f2e33f282
+0, 38, 38, 1, 37697, 69d853dfd9b09d299faec521acb4e765
+0, 39, 39, 1, 37697, c3497292359c1a1de81cd5fb062e5175
+0, 40, 40, 1, 37697, 0e3994e4a62d8c922dbde51186615ea7
+0, 41, 41, 1, 37697, 86bc5561c72bd17e7473f54f6b6311f1
+0, 42, 42, 1, 37697, 0c747481e3dc575c6aad4507f8e62d8e
+0, 43, 43, 1, 37697, 6779dfe5b6a7d4ba5ae5355058f54bc9
+0, 44, 44, 1, 37697, d7d4e85f48d38c1106a031bd9b57d909
+0, 45, 45, 1, 37697, a0ab20a38891925fd77ac2b075f0046f
+0, 46, 46, 1, 37697, 88655045ce8c5cb4c4aa3a5071f1beba
+0, 47, 47, 1, 37697, 7e849d493185a8f782b53a71151bae26
+0, 48, 48, 1, 37697, a5b9a0cbfac73d2227118c0718cf9d14
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-015 b/ffmpeg1/tests/ref/fate/vp8-test-vector-015
new file mode 100644
index 0000000..b32f233
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-015
@@ -0,0 +1,261 @@
+#tb 0: 1/30
+0, 0, 0, 1, 115200, 6b4c7cc0c6a7218362e43cffef6618c9
+0, 1, 1, 1, 115200, e132a7b1bb4fb15b1019092aedc0e599
+0, 2, 2, 1, 115200, b36975db60f24088d95385ff7e8b7b8a
+0, 3, 3, 1, 115200, 4ae6a13ae0435afb2eac66f15a07b143
+0, 4, 4, 1, 115200, d1de33515e29053171c9fbe969a33fa1
+0, 5, 5, 1, 115200, cf01450481865c10765995a3b92b440f
+0, 6, 6, 1, 115200, 274461d33aeab30885b23bf2818ad150
+0, 7, 7, 1, 115200, cb434c5a829b3d6d15a6e76f05abd51f
+0, 8, 8, 1, 115200, 512019fa16b1cd6bf308c91d6577cf2a
+0, 9, 9, 1, 115200, 2d1174741c144b2162806373d0092739
+0, 10, 10, 1, 115200, 8ec38a17566342a35598bd5ab6d290d5
+0, 11, 11, 1, 115200, 262b71c9874cc7a5138b12b294575572
+0, 12, 12, 1, 115200, bfe5e37095dc450dc717fda5ef77b6fe
+0, 13, 13, 1, 115200, 7fbcdb00872206a597bb69ebe9221b03
+0, 14, 14, 1, 115200, b599ac8568b6780dec25de4211e071ef
+0, 15, 15, 1, 115200, 797085b07f4c1e4f4b0116d329403cf8
+0, 16, 16, 1, 115200, a0d0821365658bee14767698877cc066
+0, 17, 17, 1, 115200, 286a917e787d474eb78b4797a0909a5e
+0, 18, 18, 1, 115200, 3548a320f6954c40a00ddf2e4ee212bd
+0, 19, 19, 1, 115200, 80af737ca733afa28fdae06421b3cf8d
+0, 20, 20, 1, 115200, f31a2b62cb69bc680b314a033f91881b
+0, 21, 21, 1, 115200, 02e4a780b3a0d83a8897988ef17b548c
+0, 22, 22, 1, 115200, 844929e7492b389fc520c5f75d37aa77
+0, 23, 23, 1, 115200, 558ac4c1c11da425baf832a73e1ac2da
+0, 24, 24, 1, 115200, 41b21109a7aa5f163ac0967ecd11f792
+0, 25, 25, 1, 115200, a2a050c04eaa97db43a5a0a96d20a143
+0, 26, 26, 1, 115200, 18d1881d44ab9dc959c34d92c0cabd36
+0, 27, 27, 1, 115200, 53618af318cd187b4fcd5a3c22d3ab79
+0, 28, 28, 1, 115200, 8028e6a6a6dadc8331e39cff1ba2b899
+0, 29, 29, 1, 115200, 2c32a58d68595ff4100cec4fc1637c55
+0, 30, 30, 1, 115200, 8ecc02d32f36edd167cabe2a7bc66683
+0, 31, 31, 1, 115200, 7caa9ce69ac9f71170a69fbcef4c4b34
+0, 32, 32, 1, 115200, df06a6a8a81979c39f2c3546eb03a3c2
+0, 33, 33, 1, 115200, 2bfd578fa08335e975d498e11eadc8bc
+0, 34, 34, 1, 115200, 0d78c5656d56e423ff31cab09855a335
+0, 35, 35, 1, 115200, 7152d9e35748a7ec2e8da37f0b943325
+0, 36, 36, 1, 115200, eb9e0e5cba76f0819da6256136ffd4e3
+0, 37, 37, 1, 115200, c4e5ef875132c06a80f0afb3ee894684
+0, 38, 38, 1, 115200, d2feb49297dd2f0a532479341d607e64
+0, 39, 39, 1, 115200, d092d165608f405161fbf73a19df26ca
+0, 40, 40, 1, 115200, cb228940384c3021af42b0ab81c65d7a
+0, 41, 41, 1, 115200, 426decfbf29a025a7a5e376951c34b83
+0, 42, 42, 1, 115200, 42c25e24bfd048bde0f9105d934cb81e
+0, 43, 43, 1, 115200, 4bf37f8ccb2c4f42fa64a52a4699883f
+0, 44, 44, 1, 115200, 5a00d85407910d4170d11511f03cc3a7
+0, 45, 45, 1, 115200, 032072b8713a2cd7434b5be706a8667d
+0, 46, 46, 1, 115200, e729c561b318aa14d7dbf96299c4675d
+0, 47, 47, 1, 115200, e7e1d71c1c59bb759c89f15c6e8970f0
+0, 48, 48, 1, 115200, 9c04011f4d92257a6dc112c5acad0f59
+0, 49, 49, 1, 115200, ca7c7cbf52dd7af9a62212f3a9bd1f74
+0, 50, 50, 1, 115200, 3cc9c4d3857d692e0dbfee682d63d32c
+0, 51, 51, 1, 115200, 1188fc9620cf0d23af21d8823c127b80
+0, 52, 52, 1, 115200, c614690b8d4d3bea47f1b236ff32d1d8
+0, 53, 53, 1, 115200, d6ccde3360e6a05b61013e85f96de9e9
+0, 54, 54, 1, 115200, 7f11cacc42d14121aeab487975ec190b
+0, 55, 55, 1, 115200, cdd8b538ff107f88c5f0dc7128bc331e
+0, 56, 56, 1, 115200, f43a387e9bb2f4db387d3f44da16457b
+0, 57, 57, 1, 115200, b7ba01b86fce2252105f99848e2ac95c
+0, 58, 58, 1, 115200, 094200f775b6ced838d0c37e0d0b34e6
+0, 59, 59, 1, 115200, b2d2fa96666b96b7cb624133cf404b09
+0, 60, 60, 1, 115200, d935644161a2b06f0efc75dc6d0fcf46
+0, 61, 61, 1, 115200, 2a3be6460f313d7fdd6f6f9c70092a50
+0, 62, 62, 1, 115200, f8254b6469b807ce0e9a1ea4b98a59db
+0, 63, 63, 1, 115200, 43639a3293ec640b203e0c8a97e6f45e
+0, 64, 64, 1, 115200, 055762cccc279c8dd27450ec1d512d5f
+0, 65, 65, 1, 115200, a90dac910f3cdd216293bebc46b36501
+0, 66, 66, 1, 115200, 3531ef2a4a59271f89ca0972b65d06aa
+0, 67, 67, 1, 115200, 1f87adde14795639105be714247d0bd0
+0, 68, 68, 1, 115200, e991cdd7912266937ca6f0d59199645b
+0, 69, 69, 1, 115200, 5b98019db0fca644da5ee73e0160c7c5
+0, 70, 70, 1, 115200, 6276f3907e4bb87885d21e11150d044d
+0, 71, 71, 1, 115200, 985785d7a788dcc07bd5fb72d3dc758e
+0, 72, 72, 1, 115200, 3379548a573d068d47d5f54aaf79c8a9
+0, 73, 73, 1, 115200, a2b36848e7d19383cfabf8bdcabd241a
+0, 74, 74, 1, 115200, 0aeda76888a5a2426ae3b390e38aba52
+0, 75, 75, 1, 115200, 2c652e7850ccc10cbc7a3266f1fb6c00
+0, 76, 76, 1, 115200, 5dfc9e4dce69f1f644fad5b69c0b4008
+0, 77, 77, 1, 115200, da775fc1469012a0c717ebe5dc940e26
+0, 78, 78, 1, 115200, 6185a863f7d023ddb2b049e265aab1bb
+0, 79, 79, 1, 115200, 7a56397397191ab1b7c93a4bdc9b57c1
+0, 80, 80, 1, 115200, 3e95a3f2c2660dc28ec64efef29615f0
+0, 81, 81, 1, 115200, b9ba03bd7c09224174368a60af389b9c
+0, 82, 82, 1, 115200, bfd23a13e077843506a01e44adb27c04
+0, 83, 83, 1, 115200, 9025dff58a57abcc25da69fd233e312a
+0, 84, 84, 1, 115200, ba4b91b0fe4d36f77b62ec3fe7b10a96
+0, 85, 85, 1, 115200, 7955419ff2bc42b703dfc976576a5bd4
+0, 86, 86, 1, 115200, 36d6a723ebb35c45128bfa8a7bba0d49
+0, 87, 87, 1, 115200, 77503cc79e3cb0fc74745bac967fee1d
+0, 88, 88, 1, 115200, a05af40cb4fc009fe94be6dbf148b453
+0, 89, 89, 1, 115200, 35bc39585679f7c07f1b196879719ce6
+0, 90, 90, 1, 115200, 48831c2e2212134ab192a123e847c157
+0, 91, 91, 1, 115200, c09c37f9fd929185452a8beb3c61b839
+0, 92, 92, 1, 115200, c534a38d586f3cac998240a7013c636c
+0, 93, 93, 1, 115200, b598c6999442cf0c53ed6a19d1215eb8
+0, 94, 94, 1, 115200, c639685c8f4af3d006df1833950943aa
+0, 95, 95, 1, 115200, 351e1c089ba5b9024de6e311c4a4afd3
+0, 96, 96, 1, 115200, 67d8ea902179548d0b01544249b2411f
+0, 97, 97, 1, 115200, 3717ddf0edbb2020a5b974678d358d25
+0, 98, 98, 1, 115200, 85f7c6861241e3f43fc63c397c8c3c37
+0, 99, 99, 1, 115200, c5b23b4d3d141d8cfbc5354ca1cfd34d
+0, 100, 100, 1, 115200, c2e42fa6b11cdc3abcf3ee0c3f75a459
+0, 101, 101, 1, 115200, 34df411aa928d5df3628644d9a38c768
+0, 102, 102, 1, 115200, a768b448b6c894d9b927bc880249079a
+0, 103, 103, 1, 115200, a2e9ad0d0ad733b8ccacf0379b05f6f9
+0, 104, 104, 1, 115200, 4b485e9496ab4d417b8cffaf8754f5cb
+0, 105, 105, 1, 115200, 47007fabfacd9e9c5a3997fb70d45895
+0, 106, 106, 1, 115200, 4962433241c7509801b46bea70f38269
+0, 107, 107, 1, 115200, 7b4593b45606650e78aec67722cfc2bf
+0, 108, 108, 1, 115200, 882bcbf7d2c12e93df2fbebc6ac19dd8
+0, 109, 109, 1, 115200, a2998a9c648817236bfffdae454f9fa1
+0, 110, 110, 1, 115200, 56775760fa99e9a9b7293ddc78a44ece
+0, 111, 111, 1, 115200, bb245d095424c28dd2ace22a5a511d6a
+0, 112, 112, 1, 115200, 598c54d2b207190ed549dec7390a4190
+0, 113, 113, 1, 115200, c73f16b2709527fce3d725ade5aab2fc
+0, 114, 114, 1, 115200, 32dcad6eb17bee583884029fe18c07a7
+0, 115, 115, 1, 115200, a1297c404a0d22e0e8e1e4ef67696606
+0, 116, 116, 1, 115200, 2fef1ac7becf9b8c9f3ac2310f444e3b
+0, 117, 117, 1, 115200, 0f03614ed3daec6c37c5b564ad24f595
+0, 118, 118, 1, 115200, 9b175a6353ec377da408b0cf03388081
+0, 119, 119, 1, 115200, 37b991b4a216a4847d0768a3b878284a
+0, 120, 120, 1, 115200, faafcd544080a6a4f87a0d0a393ba37b
+0, 121, 121, 1, 115200, 43ede087f37c1b0392829bbc668242fc
+0, 122, 122, 1, 115200, b7ed1274016c4d1810d8999d495b7370
+0, 123, 123, 1, 115200, 22af7bfc83c6e1f2eff2ae26e115b446
+0, 124, 124, 1, 115200, 969b22455f3be057036ddd5a329b1de3
+0, 125, 125, 1, 115200, 63c24b8a3d6c3a4c2fd47c48860abff9
+0, 126, 126, 1, 115200, b407ddc89c538d7b6fb70e48493f872c
+0, 127, 127, 1, 115200, 5de69fb9e1cd425cd3931116803f5391
+0, 128, 128, 1, 115200, 07fc7a5cb360edae97db999c2a8d2716
+0, 129, 129, 1, 115200, 602a17c58cac811e6e71e33448931ce5
+0, 130, 130, 1, 115200, 44087725484198c8e846d112583e574b
+0, 131, 131, 1, 115200, 0d81da0d23d196ff972894878bd17b73
+0, 132, 132, 1, 115200, b3cd65f1bd2274895e54da99bb4c4f07
+0, 133, 133, 1, 115200, ae8ca35672d8352af49f37f5174c8fbd
+0, 134, 134, 1, 115200, 9eea1ff900cf680e8208cd5d07a4d284
+0, 135, 135, 1, 115200, 5a47f272dfda3fe61955875f761a71f2
+0, 136, 136, 1, 115200, 544558333008db01451c886ac0b62c47
+0, 137, 137, 1, 115200, 5f8e4f3b11d7f5a28ff5cd9f3a6853bb
+0, 138, 138, 1, 115200, e9bc3da7060457f2d52a5bf6fe3bb515
+0, 139, 139, 1, 115200, 6aea6851a092260ae6594c6d9170ea8e
+0, 140, 140, 1, 115200, 38e7fa5bea809a984a5f810940ca0e49
+0, 141, 141, 1, 115200, 9e8a23ac9067a1acf8472d7aa3b9811e
+0, 142, 142, 1, 115200, 6f25f5873afd5c341ca6b3eb284be809
+0, 143, 143, 1, 115200, 40c3240e6cde94aae793a52cb46487da
+0, 144, 144, 1, 115200, b7f1f13842fbf0c6e085280eb89b956f
+0, 145, 145, 1, 115200, 1f059372d8bf4dadf78d8e215bbf9786
+0, 146, 146, 1, 115200, 50c1d6b76930e765bff5ecbaaae686fe
+0, 147, 147, 1, 115200, 5bd8cb05ebc034192e08ca8ce18a7964
+0, 148, 148, 1, 115200, ffc0c20b07e26857dc4f2c079a2ad675
+0, 149, 149, 1, 115200, 5dafb6ac0953c254182dba124e213c07
+0, 150, 150, 1, 115200, c774ed25712a38603fe2e224802768cb
+0, 151, 151, 1, 115200, de549cc803a6138d483be15b28ef2286
+0, 152, 152, 1, 115200, c963d9bc79c1dd2a47f7f8424c56239e
+0, 153, 153, 1, 115200, 9df993e0bef1bedbce1a6b596f2c64f4
+0, 154, 154, 1, 115200, 875792bde0f45358009b506840be68e1
+0, 155, 155, 1, 115200, 7f8c57083d2df08db6287cb025260788
+0, 156, 156, 1, 115200, 47eb13bc0942b5cafeea324fc5bf5cd5
+0, 157, 157, 1, 115200, d89129c7528ff7372f23d1191c75e336
+0, 158, 158, 1, 115200, bdd14e38b00075d8da485d1517dbbd65
+0, 159, 159, 1, 115200, 0e8e21a50a5dd1ac6fc881ad38ec38bd
+0, 160, 160, 1, 115200, a0fce98c23a053b4073715c554b9dc44
+0, 161, 161, 1, 115200, 18bda80360c72d04c60016682b1f6c8d
+0, 162, 162, 1, 115200, 306d7556c18dcf58c8183959d1c34c2a
+0, 163, 163, 1, 115200, 7ada9d23b96ef41322497d1077b00c4d
+0, 164, 164, 1, 115200, d7df0508be4bd0c3e83f346f0b9a1868
+0, 165, 165, 1, 115200, 749725f425f6fd4a79269bca900d09ae
+0, 166, 166, 1, 115200, ed30973158a576e2919e2fcfd00987fc
+0, 167, 167, 1, 115200, 2486d8b742ccc50cf8683af7f4502aec
+0, 168, 168, 1, 115200, bdfb21e4236c904aeacd7b094fcffe98
+0, 169, 169, 1, 115200, df2ef3e452731053ade82506c013164e
+0, 170, 170, 1, 115200, 4695bfd9aa8e5667572f8f2142c6e538
+0, 171, 171, 1, 115200, 649f5315cff1d28f0183144bf4d4eea4
+0, 172, 172, 1, 115200, 450e987b9d6075d32e21d030bc385833
+0, 173, 173, 1, 115200, 7aec79b25dabfcc2eb2f32e7dbff85f2
+0, 174, 174, 1, 115200, c9c2a96239ad556a2ee496d7c4c965c1
+0, 175, 175, 1, 115200, 3a038e48aa1238b62d431823653bc45a
+0, 176, 176, 1, 115200, 6d5c8de6a281dbce68998b2c38063f33
+0, 177, 177, 1, 115200, 045032f57d6a50ae148f4372f5083a62
+0, 178, 178, 1, 115200, 5f39172951e083e712c3b1c528e61a4f
+0, 179, 179, 1, 115200, 5a49eea76b6a86e305fb207fc1479264
+0, 180, 180, 1, 115200, 33ca5fb5f3e4ff3a24235da71c5730d5
+0, 181, 181, 1, 115200, 81f231d20426c5cbd02a85a425f5d0b8
+0, 182, 182, 1, 115200, 302d94aa9a8d3828cf74c8b2b7e7fdd5
+0, 183, 183, 1, 115200, c56f4f0c32b0f2c409b64ed10216a40a
+0, 184, 184, 1, 115200, 9cf7f51e1527f11c38c395bac94849d9
+0, 185, 185, 1, 115200, 0f17e427d14db658131eb0ccdc2a97ef
+0, 186, 186, 1, 115200, 2624dd6b8e4e95770f132d90aa6f6119
+0, 187, 187, 1, 115200, 9ddabfd5f803014443c2a0686869c546
+0, 188, 188, 1, 115200, 0170cb86a377d791d7cbee2af0836db7
+0, 189, 189, 1, 115200, f43a7c63bcafb51ead65e2831610612c
+0, 190, 190, 1, 115200, e7000913b11bdeb74ba4eca110df8470
+0, 191, 191, 1, 115200, a4208c5fcd101ceb5a976838ae9a811f
+0, 192, 192, 1, 115200, 8ddcb546ac632c967e879fb5101afa24
+0, 193, 193, 1, 115200, 547007771194373dd246586744130f7c
+0, 194, 194, 1, 115200, 3608a46fee2731341ae9f71d3a80918a
+0, 195, 195, 1, 115200, 758692e173552eb3439a572c953dda0f
+0, 196, 196, 1, 115200, 481f456d6c6ac2e0325acba5eeabcd26
+0, 197, 197, 1, 115200, c749a3ef8641d5ec4f25c611ffad1000
+0, 198, 198, 1, 115200, 93f089f7f1e78b1a4185c0b0d99875fb
+0, 199, 199, 1, 115200, 1159712bb4dbaed38d2a7558335f4037
+0, 200, 200, 1, 115200, e8dab85a977f525d4d9b448e4278a34b
+0, 201, 201, 1, 115200, 780055af1414e7693777a18428b20a07
+0, 202, 202, 1, 115200, 59252515451fd96ca3f1194d5aadc3a7
+0, 203, 203, 1, 115200, 0a977d6db761c149316417988657610a
+0, 204, 204, 1, 115200, ed81d3a10369c12543f9bb6822a249b6
+0, 205, 205, 1, 115200, 341e844231f6b55ee3c1eb22ca1bac8e
+0, 206, 206, 1, 115200, d0a180c7d15e30a71e297fda0452c153
+0, 207, 207, 1, 115200, 58d6f2522ecd8e5fea34cc9f10da2a88
+0, 208, 208, 1, 115200, dc8f96811577f4fd3e6624abae42f449
+0, 209, 209, 1, 115200, 3624a2e95f94a0a4413e464f4bf93dcd
+0, 210, 210, 1, 115200, cb0deeb5f2d570ca23e3be3ab9231fe9
+0, 211, 211, 1, 115200, 5080848626a52e30eb0f64f234ca3e57
+0, 212, 212, 1, 115200, a31c9fe4255318d86e7855f01588220f
+0, 213, 213, 1, 115200, 6c25fd8d1f0e898f6078decc4220d47d
+0, 214, 214, 1, 115200, 77e52da08ab57ba5784ce42872cc01cb
+0, 215, 215, 1, 115200, b4a87059745b3b862ef7431a9630f16a
+0, 216, 216, 1, 115200, 1dadc814514ef00f11010df21d8a9494
+0, 217, 217, 1, 115200, 5c816a0bbc8ed8fca166aa454093cb59
+0, 218, 218, 1, 115200, 10320c174423d1712d9ce812701bcaf9
+0, 219, 219, 1, 115200, 279c9398657af129e072165f41e0fb8c
+0, 220, 220, 1, 115200, 49d88374bc4d965d3cee3274c7cd9906
+0, 221, 221, 1, 115200, 48871e22f635f50569dea1bd5ca40d5c
+0, 222, 222, 1, 115200, 3b8396580f8fbd99daca4df13662f1fc
+0, 223, 223, 1, 115200, 569245e1bf3cb42aa95f765a8449980f
+0, 224, 224, 1, 115200, c5cab497d244447df0ab832dcc9c5968
+0, 225, 225, 1, 115200, 0a98ca4f1d771c4bc0286b825d085955
+0, 226, 226, 1, 115200, e4a55f175c3933f02ccf74ccf2961da2
+0, 227, 227, 1, 115200, 462dca7f377d708e753ef0bbde19a090
+0, 228, 228, 1, 115200, 6f1680f498b0ed6f89a834b5700cc48a
+0, 229, 229, 1, 115200, 996414e2e3a4bac5868ceeb25b84e6e4
+0, 230, 230, 1, 115200, 6ecb4d4b857578d32f716c56dc7e6be9
+0, 231, 231, 1, 115200, e05c8e33157e20c8e8f255e937d6b6cb
+0, 232, 232, 1, 115200, 6542744da147d16533e41dad287a54fc
+0, 233, 233, 1, 115200, bb4b6921d2855025fbcaff4c12299d02
+0, 234, 234, 1, 115200, 6bc3e605759725012f7e44f1285b0899
+0, 235, 235, 1, 115200, 0be37ecb7cec0cf8a0f9bbc3c590ba98
+0, 236, 236, 1, 115200, 4f1103e5923ba8dea3e99c8b75eaed3c
+0, 237, 237, 1, 115200, 220a8fb0409112c4f4ee769880717fea
+0, 238, 238, 1, 115200, e4c612263cfbc0f41283fd1e88e2ff52
+0, 239, 239, 1, 115200, ede2bc67ad87cd78191b742dd56419b5
+0, 240, 240, 1, 115200, ded6a1d0690603aea233e4d624aa60a9
+0, 241, 241, 1, 115200, 59c8b53e47ebdab696547a887163b272
+0, 242, 242, 1, 115200, 985f8afbc6df2d64d601d2fdc93571d7
+0, 243, 243, 1, 115200, e595f0aa7b6b62094f0ad84252105f55
+0, 244, 244, 1, 115200, c2fe4382a1740bcfc2f4c3573c6c3176
+0, 245, 245, 1, 115200, 880d8c906a8b39a61b68eb0ada857e5f
+0, 246, 246, 1, 115200, 9a3ca55d2d75e3c41a86aea2ec87ff76
+0, 247, 247, 1, 115200, f800751663dbefa61c33c3ebbd5430b4
+0, 248, 248, 1, 115200, d904333c0c76235c8ffdfc81dffddb46
+0, 249, 249, 1, 115200, 6a633a9a7686a9a02bd252ec8bcff4fc
+0, 250, 250, 1, 115200, 930d06ecc252a911a60c2d9d4f2618e6
+0, 251, 251, 1, 115200, bb146a4410c34bba74883d8ae478f47b
+0, 252, 252, 1, 115200, be8ab9fc95685ebec64ff1f8129afa35
+0, 253, 253, 1, 115200, d1f871ea3ceb38bf2b6d00ebfc38187a
+0, 254, 254, 1, 115200, ba33366e050a5f5abbf8202e0afbb9e8
+0, 255, 255, 1, 115200, f706356e12cf4082337bb8f7a5a10673
+0, 256, 256, 1, 115200, 6e8200d3c1cccc0f810985ea2a2030f6
+0, 257, 257, 1, 115200, caafdc1810556197df6f42336edcc07b
+0, 258, 258, 1, 115200, 5321ff525f5bb5063443a3dc43fc42af
+0, 259, 259, 1, 115200, c24bdd3b935f7ca6e9e105b1ae8504db
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-016 b/ffmpeg1/tests/ref/fate/vp8-test-vector-016
new file mode 100644
index 0000000..291e7fe
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-016
@@ -0,0 +1,30 @@
+#tb 0: 1/30
+0, 0, 0, 1, 38016, 905a823da31f71f9c25ebb8dfc9ddd3c
+0, 1, 1, 1, 38016, 9a1b97859b2f774954dbf96f45a22a0a
+0, 2, 2, 1, 38016, f0f5651b32577549dc2e6e3050125229
+0, 3, 3, 1, 38016, 9edf800d31dc653a23ed71d0f3fc32e4
+0, 4, 4, 1, 38016, 78dd1fa96e63c177f2b90d702c92f48c
+0, 5, 5, 1, 38016, e1cec336383c4ea63ccaff8bfa5c8e24
+0, 6, 6, 1, 38016, e8b5a454e178ab7ba9b83dfc10b4171e
+0, 7, 7, 1, 38016, 572dbaaf319f1681749135c49940c64e
+0, 8, 8, 1, 38016, b0e8313de033cc75a78532789bb6a3cb
+0, 9, 9, 1, 38016, ffc5581d83ff67b549d63c7de1a1e8cb
+0, 10, 10, 1, 38016, 8ae3fcd3d74947d434b7c5f9ee08bbbf
+0, 11, 11, 1, 38016, 3adff74d92ae0a463dddc6f89965f706
+0, 12, 12, 1, 38016, f08355430fdf5bb16a91eef05f03186b
+0, 13, 13, 1, 38016, d477eb8150a1a94dd6af7f067e8c0429
+0, 14, 14, 1, 38016, f860f225e27871a17060373b79007ec6
+0, 15, 15, 1, 38016, 22a25c07ac5e7c67df793e0d3169386c
+0, 16, 16, 1, 38016, a96f9cef4efe74db0cce039c85c03c4d
+0, 17, 17, 1, 38016, ff9c93cbc364976044144ee631f89bd2
+0, 18, 18, 1, 38016, 3a6b43090adb6c8b5188d544a08295a8
+0, 19, 19, 1, 38016, 7f41a10ada80865d24585860065aa5e4
+0, 20, 20, 1, 38016, 099847f606672fd065e6841000cafcb3
+0, 21, 21, 1, 38016, fbf543c12ce48633e6d10717862c35a7
+0, 22, 22, 1, 38016, 1b9956d8a6c45e39d219da33ff7c334a
+0, 23, 23, 1, 38016, 911eb8f478485c0f4eef1d03f53aa80b
+0, 24, 24, 1, 38016, b801570a437439ce12c5037df0235742
+0, 25, 25, 1, 38016, 8d231805d741abe79670a0e9f13712ea
+0, 26, 26, 1, 38016, 87bfcc2c88c4471067c07fbcf635870d
+0, 27, 27, 1, 38016, d51b6999afde880bc77597063b58d28f
+0, 28, 28, 1, 38016, c69c07a34bfad3b5a95b19a84e991c13
diff --git a/ffmpeg1/tests/ref/fate/vp8-test-vector-017 b/ffmpeg1/tests/ref/fate/vp8-test-vector-017
new file mode 100644
index 0000000..a8ccda8
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vp8-test-vector-017
@@ -0,0 +1,30 @@
+#tb 0: 1/30
+0, 0, 0, 1, 38016, 905a823da31f71f9c25ebb8dfc9ddd3c
+0, 1, 1, 1, 38016, f0f411dd067bff05d5d9c64e3f52a4b1
+0, 2, 2, 1, 38016, c8696f8fa56b4adf18f3db0c384d968f
+0, 3, 3, 1, 38016, 5772aa26a95092b4a8a117e97d6dde49
+0, 4, 4, 1, 38016, fc52254ea1cbcc2e7a5b126d8c44a023
+0, 5, 5, 1, 38016, bf6208554657f568ad69d5c60f692fdb
+0, 6, 6, 1, 38016, 3a68eef642b250177592455f4aa925d9
+0, 7, 7, 1, 38016, 98102b7bd56cbe456d86c93e8cdd48eb
+0, 8, 8, 1, 38016, 59d54b7d97600b2890c8abab2af9a7dc
+0, 9, 9, 1, 38016, ba4b4bb534ee2a00f418828b9723d996
+0, 10, 10, 1, 38016, feb1115136fa96d5e9425ac18261de7c
+0, 11, 11, 1, 38016, ef7eb6dc656c2bd7447c7d8f650108c1
+0, 12, 12, 1, 38016, 89ec385a0d34c8fd5b1334d8756c96b9
+0, 13, 13, 1, 38016, 27bc439dd8e6d50c3c7a6e0b390e7418
+0, 14, 14, 1, 38016, ec36c065d8b668fabb6b16ecc01eea0a
+0, 15, 15, 1, 38016, 5c94f9b441fc70f62856c835f9e9ad50
+0, 16, 16, 1, 38016, 4b6c1bd876b00052b39e6ca91cad9c05
+0, 17, 17, 1, 38016, 1099121afd681cf3218dffb9714a0fd7
+0, 18, 18, 1, 38016, d0c1de888fab35f33c1148dc80494d20
+0, 19, 19, 1, 38016, 745941ea768d06ea27c3fbca782e3591
+0, 20, 20, 1, 38016, 09f85054f188da6f7260debf6b71bbb1
+0, 21, 21, 1, 38016, 2bdd642a7551681f1ca9680a0d9183a8
+0, 22, 22, 1, 38016, 054aba9db9790a0f1c79db491a6cac6d
+0, 23, 23, 1, 38016, fa4b52162f6da0c15100f4382d92d7e4
+0, 24, 24, 1, 38016, 88c589535811dd394bd1723172329629
+0, 25, 25, 1, 38016, c11cc1a30199d46db048120969dc4118
+0, 26, 26, 1, 38016, c61207280f40620f8cd5e962f3aa160f
+0, 27, 27, 1, 38016, 8a721ecbad0b2f17aabb2d06e27c00aa
+0, 28, 28, 1, 38016, da32f1d272e065cd31415b23f86837cc
diff --git a/ffmpeg1/tests/ref/fate/vqa-cc b/ffmpeg1/tests/ref/fate/vqa-cc
new file mode 100644
index 0000000..8950f94
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vqa-cc
@@ -0,0 +1,39 @@
+#tb 0: 1/15
+0, 0, 0, 1, 192000, 0x00000000
+0, 1, 1, 1, 192000, 0x00000000
+0, 2, 2, 1, 192000, 0x00000000
+0, 3, 3, 1, 192000, 0x00000000
+0, 4, 4, 1, 192000, 0x9ee00ccf
+0, 5, 5, 1, 192000, 0x67256507
+0, 6, 6, 1, 192000, 0x74c70e87
+0, 7, 7, 1, 192000, 0x8ecdce9a
+0, 8, 8, 1, 192000, 0xc40f8efd
+0, 9, 9, 1, 192000, 0xb8107dfb
+0, 10, 10, 1, 192000, 0xb4e504eb
+0, 11, 11, 1, 192000, 0x0c7fdb95
+0, 12, 12, 1, 192000, 0x58c9f045
+0, 13, 13, 1, 192000, 0xcba9d0e9
+0, 14, 14, 1, 192000, 0x392a20f6
+0, 15, 15, 1, 192000, 0xc37905cc
+0, 16, 16, 1, 192000, 0xe278cf95
+0, 17, 17, 1, 192000, 0x3d03b01d
+0, 18, 18, 1, 192000, 0x16a26f28
+0, 19, 19, 1, 192000, 0xdd17f51c
+0, 20, 20, 1, 192000, 0x19703b85
+0, 21, 21, 1, 192000, 0xe51f0e70
+0, 22, 22, 1, 192000, 0x6f94ad2a
+0, 23, 23, 1, 192000, 0x71e449f1
+0, 24, 24, 1, 192000, 0x1dcacc52
+0, 25, 25, 1, 192000, 0x49c23f58
+0, 26, 26, 1, 192000, 0x4ce61551
+0, 27, 27, 1, 192000, 0xe54832d5
+0, 28, 28, 1, 192000, 0xbae28a59
+0, 29, 29, 1, 192000, 0xe8a4efbe
+0, 30, 30, 1, 192000, 0xe9e96883
+0, 31, 31, 1, 192000, 0xa5468c49
+0, 32, 32, 1, 192000, 0x7ec6936a
+0, 33, 33, 1, 192000, 0x46e53ee4
+0, 34, 34, 1, 192000, 0x937b168a
+0, 35, 35, 1, 192000, 0xed76cec4
+0, 36, 36, 1, 192000, 0x4b9f454d
+0, 37, 37, 1, 192000, 0xb58c1566
diff --git a/ffmpeg1/tests/ref/fate/vqf-demux b/ffmpeg1/tests/ref/fate/vqf-demux
new file mode 100644
index 0000000..3acae60
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/vqf-demux
@@ -0,0 +1 @@
+d72fb75fb22f4bcc94a1dc7af5356ec1
diff --git a/ffmpeg1/tests/ref/fate/w64 b/ffmpeg1/tests/ref/fate/w64
new file mode 100644
index 0000000..461eadb
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/w64
@@ -0,0 +1 @@
+CRC=0xc1e71a5c
diff --git a/ffmpeg1/tests/ref/fate/wavpack-channels-4.0 b/ffmpeg1/tests/ref/fate/wavpack-channels-4.0
new file mode 100644
index 0000000..4cf6764
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-channels-4.0
@@ -0,0 +1 @@
+a03999c3ad17423f3a7e3d537fea8589
diff --git a/ffmpeg1/tests/ref/fate/wavpack-channels-5.1 b/ffmpeg1/tests/ref/fate/wavpack-channels-5.1
new file mode 100644
index 0000000..49fe876
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-channels-5.1
@@ -0,0 +1 @@
+4ab874ad4a47141073f6db9aeec422a8
diff --git a/ffmpeg1/tests/ref/fate/wavpack-channels-6.1 b/ffmpeg1/tests/ref/fate/wavpack-channels-6.1
new file mode 100644
index 0000000..ed46b7c
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-channels-6.1
@@ -0,0 +1 @@
+a524a76c85f55b7d63914fc1543a5268
diff --git a/ffmpeg1/tests/ref/fate/wavpack-channels-7.1 b/ffmpeg1/tests/ref/fate/wavpack-channels-7.1
new file mode 100644
index 0000000..1f54afe
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-channels-7.1
@@ -0,0 +1 @@
+cffe4d47290ff3cef974e5aa6bc32559
diff --git a/ffmpeg1/tests/ref/fate/wavpack-channels-monofloat b/ffmpeg1/tests/ref/fate/wavpack-channels-monofloat
new file mode 100644
index 0000000..41d94fa
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-channels-monofloat
@@ -0,0 +1 @@
+71386c0f63105e414220f0f0d369a0e6
diff --git a/ffmpeg1/tests/ref/fate/wavpack-channels-monoint b/ffmpeg1/tests/ref/fate/wavpack-channels-monoint
new file mode 100644
index 0000000..204ab6d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-channels-monoint
@@ -0,0 +1 @@
+931f27e3ec69fae0952548504461d97c
diff --git a/ffmpeg1/tests/ref/fate/wavpack-clipping b/ffmpeg1/tests/ref/fate/wavpack-clipping
new file mode 100644
index 0000000..fd19f93
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-clipping
@@ -0,0 +1 @@
+d18d0b2dc7d329aefcbb889dc99383ab
diff --git a/ffmpeg1/tests/ref/fate/wavpack-cuesheet b/ffmpeg1/tests/ref/fate/wavpack-cuesheet
new file mode 100644
index 0000000..e013bb0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-cuesheet
@@ -0,0 +1 @@
+85eb2940491442ca25c2a702a6f30e5f
diff --git a/ffmpeg1/tests/ref/fate/wavpack-falsestereo b/ffmpeg1/tests/ref/fate/wavpack-falsestereo
new file mode 100644
index 0000000..458ce65
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-falsestereo
@@ -0,0 +1 @@
+e3fdd584bef84e85f4ca84e2769306f8
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossless-12bit b/ffmpeg1/tests/ref/fate/wavpack-lossless-12bit
new file mode 100644
index 0000000..2adf043
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossless-12bit
@@ -0,0 +1 @@
+925e047ac0d4c874a9cff3cc9117ac91
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossless-16bit b/ffmpeg1/tests/ref/fate/wavpack-lossless-16bit
new file mode 100644
index 0000000..04fc280
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossless-16bit
@@ -0,0 +1 @@
+e2dc4b85377b275a48c8bd2a4f5b91fd
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossless-24bit b/ffmpeg1/tests/ref/fate/wavpack-lossless-24bit
new file mode 100644
index 0000000..1fd8dca
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossless-24bit
@@ -0,0 +1 @@
+9d7bc1a45bd3ba9d1eb5706f0dfc3e47
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossless-32bit b/ffmpeg1/tests/ref/fate/wavpack-lossless-32bit
new file mode 100644
index 0000000..cef05f3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossless-32bit
@@ -0,0 +1 @@
+c35f539bb5796ed93908c987fab1c26c
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossless-8bit b/ffmpeg1/tests/ref/fate/wavpack-lossless-8bit
new file mode 100644
index 0000000..58cdb99
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossless-8bit
@@ -0,0 +1 @@
+e4e65e2048ba373d89836907328cfb27
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossless-float b/ffmpeg1/tests/ref/fate/wavpack-lossless-float
new file mode 100644
index 0000000..6081ae1
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossless-float
@@ -0,0 +1 @@
+04b860cf4f9ecba36c053fdf83dac14a
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossy-16bit b/ffmpeg1/tests/ref/fate/wavpack-lossy-16bit
new file mode 100644
index 0000000..3adeaa0
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossy-16bit
@@ -0,0 +1 @@
+c2aa8d83d14f799a9289b73bb6263fbc
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossy-24bit b/ffmpeg1/tests/ref/fate/wavpack-lossy-24bit
new file mode 100644
index 0000000..566ec6d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossy-24bit
@@ -0,0 +1 @@
+0c04941424ba0981eac0e681130788f7
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossy-32bit b/ffmpeg1/tests/ref/fate/wavpack-lossy-32bit
new file mode 100644
index 0000000..6b66d0a
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossy-32bit
@@ -0,0 +1 @@
+7b94c7ab8ec78ddf59bd7967199cdc8e
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossy-8bit b/ffmpeg1/tests/ref/fate/wavpack-lossy-8bit
new file mode 100644
index 0000000..d921ea6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossy-8bit
@@ -0,0 +1 @@
+f0e452d762d5e7b675970e6e67b781e7
diff --git a/ffmpeg1/tests/ref/fate/wavpack-lossy-float b/ffmpeg1/tests/ref/fate/wavpack-lossy-float
new file mode 100644
index 0000000..9f984ac
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-lossy-float
@@ -0,0 +1 @@
+d4733e795e5af80da9a265cf83a6da69
diff --git a/ffmpeg1/tests/ref/fate/wavpack-matroskamode b/ffmpeg1/tests/ref/fate/wavpack-matroskamode
new file mode 100644
index 0000000..1f54afe
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-matroskamode
@@ -0,0 +1 @@
+cffe4d47290ff3cef974e5aa6bc32559
diff --git a/ffmpeg1/tests/ref/fate/wavpack-speed-default b/ffmpeg1/tests/ref/fate/wavpack-speed-default
new file mode 100644
index 0000000..9dc559f
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-speed-default
@@ -0,0 +1 @@
+a57bec3f270c3b294d1e5ea07760514c
diff --git a/ffmpeg1/tests/ref/fate/wavpack-speed-fast b/ffmpeg1/tests/ref/fate/wavpack-speed-fast
new file mode 100644
index 0000000..181d7dd
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-speed-fast
@@ -0,0 +1 @@
+ebff08f89073e3f662f822df428711d5
diff --git a/ffmpeg1/tests/ref/fate/wavpack-speed-high b/ffmpeg1/tests/ref/fate/wavpack-speed-high
new file mode 100644
index 0000000..3d85201
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-speed-high
@@ -0,0 +1 @@
+a28c4d0f1d0c6ac7739e05150a8c401a
diff --git a/ffmpeg1/tests/ref/fate/wavpack-speed-vhigh b/ffmpeg1/tests/ref/fate/wavpack-speed-vhigh
new file mode 100644
index 0000000..3d85201
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-speed-vhigh
@@ -0,0 +1 @@
+a28c4d0f1d0c6ac7739e05150a8c401a
diff --git a/ffmpeg1/tests/ref/fate/wavpack-zerolsbs b/ffmpeg1/tests/ref/fate/wavpack-zerolsbs
new file mode 100644
index 0000000..cc16fb9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wavpack-zerolsbs
@@ -0,0 +1 @@
+33c09fedba88693f6cc423ca3763e7fe
diff --git a/ffmpeg1/tests/ref/fate/wc3movie-xan b/ffmpeg1/tests/ref/fate/wc3movie-xan
new file mode 100644
index 0000000..57b7f70
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wc3movie-xan
@@ -0,0 +1,72 @@
+#tb 0: 1/15
+#tb 1: 1/22050
+0, 0, 0, 1, 158400, 0x25aec781
+1, 0, 0, 1470, 2940, 0x92cee2a6
+0, 1, 1, 1, 158400, 0xda4dbf70
+1, 1470, 1470, 1470, 2940, 0x126902c3
+0, 2, 2, 1, 158400, 0x2d8fc909
+1, 2940, 2940, 1470, 2940, 0x4977b9e6
+0, 3, 3, 1, 158400, 0xea93c5ab
+1, 4410, 4410, 1470, 2940, 0x5144d68c
+0, 4, 4, 1, 158400, 0xa1f5bf60
+1, 5880, 5880, 1470, 2940, 0x282ebf71
+0, 5, 5, 1, 158400, 0x739ecfa9
+1, 7350, 7350, 1470, 2940, 0xc2e7c73c
+0, 6, 6, 1, 158400, 0xe9830c7e
+1, 8820, 8820, 1470, 2940, 0x717d6fc5
+0, 7, 7, 1, 158400, 0xd885665b
+1, 10290, 10290, 1470, 2940, 0x78538428
+0, 8, 8, 1, 158400, 0x3235f8ad
+1, 11760, 11760, 1470, 2940, 0x94ffd1ad
+0, 9, 9, 1, 158400, 0xd8550cca
+1, 13230, 13230, 1470, 2940, 0xad43de8b
+0, 10, 10, 1, 158400, 0x05e9e231
+1, 14700, 14700, 1470, 2940, 0x65e4b604
+0, 11, 11, 1, 158400, 0xce9dd29b
+1, 16170, 16170, 1470, 2940, 0xd6d6c30f
+0, 12, 12, 1, 158400, 0x857494a6
+1, 17640, 17640, 1470, 2940, 0x7b897e4e
+0, 13, 13, 1, 158400, 0x9cad464a
+1, 19110, 19110, 1470, 2940, 0xf79546ad
+0, 14, 14, 1, 158400, 0x04c3177a
+1, 20580, 20580, 1470, 2940, 0x658c904e
+0, 15, 15, 1, 158400, 0xa3d2399a
+1, 22050, 22050, 1470, 2940, 0xb7b8cd8c
+0, 16, 16, 1, 158400, 0x12cdd418
+1, 23520, 23520, 1470, 2940, 0x2f2da7c5
+0, 17, 17, 1, 158400, 0x5ef67c9e
+1, 24990, 24990, 1470, 2940, 0x51938cf8
+0, 18, 18, 1, 158400, 0xba7a7f11
+1, 26460, 26460, 1470, 2940, 0xdf61c87a
+0, 19, 19, 1, 158400, 0x084b60e7
+1, 27930, 27930, 1470, 2940, 0xf72a7069
+0, 20, 20, 1, 158400, 0xef95a6a5
+1, 29400, 29400, 1470, 2940, 0x9af2a425
+0, 21, 21, 1, 158400, 0x55f392f1
+1, 30870, 30870, 1470, 2940, 0x4c3f5ac7
+0, 22, 22, 1, 158400, 0x63fca6bb
+1, 32340, 32340, 1470, 2940, 0xfe4cb0b2
+0, 23, 23, 1, 158400, 0x0f7e62fe
+1, 33810, 33810, 1470, 2940, 0x732a35ed
+0, 24, 24, 1, 158400, 0xf35febc1
+1, 35280, 35280, 1470, 2940, 0x526b9e0f
+0, 25, 25, 1, 158400, 0x6bf6f219
+1, 36750, 36750, 1470, 2940, 0x4bd9d4e2
+0, 26, 26, 1, 158400, 0xbdf13e77
+1, 38220, 38220, 1470, 2940, 0x84340827
+0, 27, 27, 1, 158400, 0x88490e47
+1, 39690, 39690, 1470, 2940, 0xe54f7911
+0, 28, 28, 1, 158400, 0xdb786540
+1, 41160, 41160, 1470, 2940, 0x0bbdef52
+0, 29, 29, 1, 158400, 0x7335c045
+1, 42630, 42630, 1470, 2940, 0xc1aac5e1
+0, 30, 30, 1, 158400, 0x6b78015a
+1, 44100, 44100, 1470, 2940, 0x515ea512
+0, 31, 31, 1, 158400, 0x9e9b6d16
+1, 45570, 45570, 1470, 2940, 0x9e7fdac1
+0, 32, 32, 1, 158400, 0xe618e024
+1, 47040, 47040, 1470, 2940, 0xf1d4c9cc
+0, 33, 33, 1, 158400, 0x56cd60f7
+1, 48510, 48510, 1470, 2940, 0x1bc9b6ee
+0, 34, 34, 1, 158400, 0xf08e22fe
+1, 49980, 49980, 1470, 2940, 0xff8ac114
diff --git a/ffmpeg1/tests/ref/fate/westwood-aud b/ffmpeg1/tests/ref/fate/westwood-aud
new file mode 100644
index 0000000..9fab241
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/westwood-aud
@@ -0,0 +1,12 @@
+#tb 0: 1/22050
+0, 0, 0, 1024, 512, 0x6694cc55
+0, 1024, 1024, 1024, 512, 0xdbc5cb22
+0, 2048, 2048, 1024, 512, 0x8e5bcbfd
+0, 3072, 3072, 1024, 512, 0x7b2ac519
+0, 4096, 4096, 1024, 512, 0x6ae0cb0c
+0, 5120, 5120, 1024, 512, 0x055ec435
+0, 6144, 6144, 1024, 512, 0x9424c8d6
+0, 7168, 7168, 1024, 512, 0x58fccb7d
+0, 8192, 8192, 1024, 512, 0x348fd253
+0, 9216, 9216, 1024, 512, 0xe1b1c24e
+0, 10240, 10240, 192, 96, 0x95f81350
diff --git a/ffmpeg1/tests/ref/fate/wmv8-drm b/ffmpeg1/tests/ref/fate/wmv8-drm
new file mode 100644
index 0000000..31291d3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wmv8-drm
@@ -0,0 +1,131 @@
+#tb 0: 1/24
+0, 0, 0, 1, 84480, 0x7760a00b
+0, 29, 29, 1, 84480, 0xfe39a1db
+0, 30, 30, 1, 84480, 0xd71961b4
+0, 31, 31, 1, 84480, 0xc80dedba
+0, 32, 32, 1, 84480, 0x34d8b538
+0, 33, 33, 1, 84480, 0x1a86b8e5
+0, 34, 34, 1, 84480, 0xabf7c25d
+0, 35, 35, 1, 84480, 0x912600ee
+0, 36, 36, 1, 84480, 0x7ee7c70b
+0, 37, 37, 1, 84480, 0x09c5b0d1
+0, 38, 38, 1, 84480, 0x6dbe6c0c
+0, 39, 39, 1, 84480, 0x0fe0a120
+0, 40, 40, 1, 84480, 0x2352d3a2
+0, 41, 41, 1, 84480, 0xb22ce92e
+0, 42, 42, 1, 84480, 0x31db0099
+0, 43, 43, 1, 84480, 0xad2dd73a
+0, 44, 44, 1, 84480, 0xb9af8e20
+0, 45, 45, 1, 84480, 0x7b956549
+0, 46, 46, 1, 84480, 0x3f774b87
+0, 47, 47, 1, 84480, 0x824a23a3
+0, 48, 48, 1, 84480, 0x4469a8d8
+0, 49, 49, 1, 84480, 0xc80c7a0a
+0, 50, 50, 1, 84480, 0xcf958549
+0, 51, 51, 1, 84480, 0x449746e3
+0, 52, 52, 1, 84480, 0xbac66a82
+0, 53, 53, 1, 84480, 0x99e85855
+0, 54, 54, 1, 84480, 0xa4a17d17
+0, 55, 55, 1, 84480, 0xe29c7587
+0, 56, 56, 1, 84480, 0x551de592
+0, 57, 57, 1, 84480, 0xe0877bce
+0, 58, 58, 1, 84480, 0x9660eb35
+0, 59, 59, 1, 84480, 0x0a34b644
+0, 60, 60, 1, 84480, 0x352919f0
+0, 61, 61, 1, 84480, 0xef56ce27
+0, 62, 62, 1, 84480, 0x030fe862
+0, 63, 63, 1, 84480, 0x2eba33e2
+0, 64, 64, 1, 84480, 0x242de401
+0, 65, 65, 1, 84480, 0xbadd61ca
+0, 66, 66, 1, 84480, 0x2060465b
+0, 67, 67, 1, 84480, 0x256e6965
+0, 68, 68, 1, 84480, 0x243b7084
+0, 69, 69, 1, 84480, 0x8b3c0b47
+0, 70, 70, 1, 84480, 0xc174a9af
+0, 71, 71, 1, 84480, 0xb6d48686
+0, 72, 72, 1, 84480, 0xa3dd1871
+0, 73, 73, 1, 84480, 0x04cdcaf7
+0, 74, 74, 1, 84480, 0x55f89c94
+0, 75, 75, 1, 84480, 0xda657032
+0, 76, 76, 1, 84480, 0x38ba7698
+0, 77, 77, 1, 84480, 0x4d03a7f2
+0, 78, 78, 1, 84480, 0x115d9035
+0, 79, 79, 1, 84480, 0x24c6acc6
+0, 80, 80, 1, 84480, 0xdd2bbcae
+0, 81, 81, 1, 84480, 0xb4fee0b9
+0, 82, 82, 1, 84480, 0xc51c14e0
+0, 83, 83, 1, 84480, 0xfb7737de
+0, 84, 84, 1, 84480, 0x38675fb0
+0, 85, 85, 1, 84480, 0x4752c710
+0, 86, 86, 1, 84480, 0xfeb7491b
+0, 87, 87, 1, 84480, 0xaa248122
+0, 88, 88, 1, 84480, 0x9a4af87c
+0, 89, 89, 1, 84480, 0xedcf09df
+0, 90, 90, 1, 84480, 0x563a05df
+0, 91, 91, 1, 84480, 0x0dde1e03
+0, 92, 92, 1, 84480, 0xd8f0ff65
+0, 93, 93, 1, 84480, 0xbeb9ae1a
+0, 94, 94, 1, 84480, 0x416d1468
+0, 95, 95, 1, 84480, 0x66c87d4c
+0, 96, 96, 1, 84480, 0xa67c0774
+0, 97, 97, 1, 84480, 0xd8f8aec1
+0, 98, 98, 1, 84480, 0xadfa502b
+0, 99, 99, 1, 84480, 0x50bf20e4
+0, 100, 100, 1, 84480, 0xbcb3d8cc
+0, 101, 101, 1, 84480, 0xa54677d7
+0, 102, 102, 1, 84480, 0x3566042d
+0, 103, 103, 1, 84480, 0x4c9eed57
+0, 104, 104, 1, 84480, 0xc3b90e58
+0, 105, 105, 1, 84480, 0x3c042bfa
+0, 106, 106, 1, 84480, 0x19f8e890
+0, 107, 107, 1, 84480, 0xd3dacfb9
+0, 108, 108, 1, 84480, 0x2365fc6f
+0, 109, 109, 1, 84480, 0xa2c19d00
+0, 110, 110, 1, 84480, 0xce94336f
+0, 111, 111, 1, 84480, 0xfa9bcf14
+0, 118, 118, 1, 84480, 0x24d6a243
+0, 119, 119, 1, 84480, 0xae1c8854
+0, 120, 120, 1, 84480, 0xbb8968bf
+0, 121, 121, 1, 84480, 0x6f923623
+0, 122, 122, 1, 84480, 0x22e98029
+0, 123, 123, 1, 84480, 0x8ac33af3
+0, 124, 124, 1, 84480, 0x05947b6e
+0, 125, 125, 1, 84480, 0xfc35661a
+0, 126, 126, 1, 84480, 0x0e6b6e47
+0, 127, 127, 1, 84480, 0x82c764bb
+0, 128, 128, 1, 84480, 0x57a36833
+0, 129, 129, 1, 84480, 0xc8dd690a
+0, 130, 130, 1, 84480, 0x02c47232
+0, 131, 131, 1, 84480, 0x6645715d
+0, 132, 132, 1, 84480, 0xc64860f7
+0, 133, 133, 1, 84480, 0x4f5614b3
+0, 134, 134, 1, 84480, 0xa70842ca
+0, 135, 135, 1, 84480, 0x379d8458
+0, 136, 136, 1, 84480, 0xa14701cf
+0, 137, 137, 1, 84480, 0xad1aa2b2
+0, 138, 138, 1, 84480, 0xee28f320
+0, 139, 139, 1, 84480, 0x505801e9
+0, 140, 140, 1, 84480, 0x7947233b
+0, 141, 141, 1, 84480, 0x3ce72a9d
+0, 142, 142, 1, 84480, 0xa6834e64
+0, 143, 143, 1, 84480, 0xfebf4d70
+0, 144, 144, 1, 84480, 0x4a0775e2
+0, 145, 145, 1, 84480, 0x9d7e945b
+0, 146, 146, 1, 84480, 0xaa9eadd9
+0, 147, 147, 1, 84480, 0xaa85c9b1
+0, 148, 148, 1, 84480, 0xa005edaf
+0, 149, 149, 1, 84480, 0x7fc4e5cc
+0, 150, 150, 1, 84480, 0xb0f6e8d1
+0, 151, 151, 1, 84480, 0x9ef9f330
+0, 152, 152, 1, 84480, 0xbe14ff1f
+0, 153, 153, 1, 84480, 0xd494048c
+0, 154, 154, 1, 84480, 0x046166a7
+0, 155, 155, 1, 84480, 0x052a09b2
+0, 156, 156, 1, 84480, 0x71fff4ab
+0, 157, 157, 1, 84480, 0xb9684e41
+0, 158, 158, 1, 84480, 0x1ddce068
+0, 159, 159, 1, 84480, 0xb9de300e
+0, 160, 160, 1, 84480, 0x13962590
+0, 161, 161, 1, 84480, 0xde79482f
+0, 162, 162, 1, 84480, 0x7d1ca064
+0, 163, 163, 1, 84480, 0x0998a064
diff --git a/ffmpeg1/tests/ref/fate/wmv8-drm-nodec b/ffmpeg1/tests/ref/fate/wmv8-drm-nodec
new file mode 100644
index 0000000..76c4e75
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wmv8-drm-nodec
@@ -0,0 +1,152 @@
+#tb 0: 1/1000
+#tb 1: 1/1000
+0, 0, 0, 0, 282, 0x000d949a
+1, 0, 0, 0, 1088, 0x5cd379bb
+1, 435, 435, 0, 1088, 0x8dfa1368
+1, 740, 740, 0, 1088, 0xc0d211be
+1, 1023, 1023, 0, 1088, 0x8238113a
+0, 1208, 1208, 0, 137, 0x903c415e, F=0x0
+0, 1250, 1250, 0, 942, 0xd5b7d2aa, F=0x0
+0, 1291, 1291, 0, 841, 0xaffd8ce6, F=0x0
+1, 1306, 1306, 0, 1088, 0x9f8924b7
+0, 1333, 1333, 0, 1164, 0x4ed84836, F=0x0
+0, 1375, 1375, 0, 1492, 0x37f3e8aa, F=0x0
+0, 1416, 1416, 0, 1663, 0xc091392d, F=0x0
+0, 1458, 1458, 0, 1443, 0x6162c718, F=0x0
+0, 1500, 1500, 0, 1721, 0x7bdb3dd0, F=0x0
+0, 1541, 1541, 0, 1410, 0xde689881, F=0x0
+0, 1583, 1583, 0, 1258, 0xb5b86920, F=0x0
+1, 1589, 1589, 0, 1088, 0x767f317a
+0, 1625, 1625, 0, 2050, 0x99b6d7c7, F=0x0
+0, 1666, 1666, 0, 1242, 0x9ba35009, F=0x0
+0, 1708, 1708, 0, 1630, 0x17f10192, F=0x0
+0, 1750, 1750, 0, 1747, 0xbbee59d7, F=0x0
+0, 1791, 1791, 0, 1565, 0xb09b00d9, F=0x0
+0, 1833, 1833, 0, 1573, 0xd2e62201, F=0x0
+1, 1872, 1872, 0, 1088, 0x57000d38
+0, 1875, 1875, 0, 1353, 0x2305a24d, F=0x0
+0, 1916, 1916, 0, 1425, 0xf41bbb46, F=0x0
+0, 1958, 1958, 0, 1355, 0xfc08a762, F=0x0
+0, 2000, 2000, 0, 1363, 0x98cda71d, F=0x0
+0, 2041, 2041, 0, 1547, 0x8742f11f, F=0x0
+0, 2083, 2083, 0, 1967, 0x43d61723, F=0x0
+0, 2125, 2125, 0, 1378, 0xde22c753, F=0x0
+0, 2166, 2166, 0, 961, 0x2418a4da, F=0x0
+1, 2198, 2198, 0, 1088, 0xad977261
+0, 2208, 2208, 0, 968, 0x0d04ba51, F=0x0
+0, 2250, 2250, 0, 1140, 0x737f3543, F=0x0
+0, 2291, 2291, 0, 1119, 0x3c050388, F=0x0
+0, 2333, 2333, 0, 1078, 0xeac8d981, F=0x0
+0, 2375, 2375, 0, 1113, 0xebfa0314, F=0x0
+0, 2416, 2416, 0, 1229, 0x95dc3cb5, F=0x0
+0, 2458, 2458, 0, 1311, 0x8a6f5bda, F=0x0
+0, 2500, 2500, 0, 1270, 0x2e66540a, F=0x0
+0, 2541, 2541, 0, 1408, 0x5f489779, F=0x0
+0, 2583, 2583, 0, 1359, 0x8bd085f5, F=0x0
+0, 2625, 2625, 0, 1428, 0xef9ba480, F=0x0
+0, 2666, 2666, 0, 1179, 0x5bb221a8, F=0x0
+0, 2708, 2708, 0, 1108, 0x9a6019a8, F=0x0
+0, 2750, 2750, 0, 1205, 0xccba4d22, F=0x0
+0, 2791, 2791, 0, 1306, 0xde708c19, F=0x0
+0, 2833, 2833, 0, 1724, 0xa70b521e, F=0x0
+0, 2875, 2875, 41, 1336, 0xdf3974b9, F=0x0
+0, 2916, 2916, 41, 1259, 0x1f6b4307, F=0x0
+0, 2958, 2958, 41, 1194, 0x635f5a43, F=0x0
+0, 3000, 3000, 41, 1183, 0x1dd47115, F=0x0
+0, 3041, 3041, 41, 1126, 0x5bac3cc8, F=0x0
+0, 3083, 3083, 41, 1360, 0x1fe2d981, F=0x0
+0, 3125, 3125, 41, 1261, 0x34288acb, F=0x0
+0, 3166, 3166, 41, 1250, 0x26bd72b3, F=0x0
+0, 3208, 3208, 41, 1147, 0x02e81ba0, F=0x0
+0, 3250, 3250, 41, 1368, 0xb8146962, F=0x0
+0, 3291, 3291, 41, 1377, 0xf7b6ce65, F=0x0
+0, 3333, 3333, 41, 1396, 0x88467dee, F=0x0
+0, 3375, 3375, 41, 1408, 0x5585c25c, F=0x0
+0, 3416, 3416, 41, 1551, 0x42002c8d, F=0x0
+0, 3458, 3458, 41, 1524, 0xbcb609e3, F=0x0
+1, 3482, 3482, 0, 1088, 0xdce57471
+0, 3500, 3500, 41, 1554, 0x3d740564, F=0x0
+0, 3541, 3541, 41, 1467, 0xc349f2d7, F=0x0
+0, 3583, 3583, 41, 1066, 0xb7401462, F=0x0
+0, 3625, 3625, 41, 1502, 0x3ee602ed, F=0x0
+0, 3666, 3666, 41, 1148, 0xba463637, F=0x0
+0, 3708, 3708, 41, 1351, 0x5e85ae79, F=0x0
+0, 3750, 3750, 41, 1187, 0xed8d6055, F=0x0
+0, 3791, 3791, 41, 1200, 0x64185be6, F=0x0
+0, 3833, 3833, 41, 1175, 0x12ad3c1e, F=0x0
+0, 3875, 3875, 41, 1179, 0x7e034570, F=0x0
+0, 3916, 3916, 41, 1136, 0x5c633c51, F=0x0
+1, 3918, 3918, 0, 1088, 0xf3887977
+0, 3958, 3958, 41, 1064, 0x5eb51d89, F=0x0
+0, 4000, 4000, 41, 953, 0xe148bbdd, F=0x0
+0, 4041, 4041, 41, 989, 0x901ec306, F=0x0
+0, 4083, 4083, 41, 1030, 0x680de26f, F=0x0
+0, 4125, 4125, 41, 1078, 0x86e0ee43, F=0x0
+0, 4166, 4166, 41, 1232, 0x98546a86, F=0x0
+0, 4208, 4208, 41, 1164, 0x93305074, F=0x0
+0, 4250, 4250, 41, 1348, 0x27cfa91b, F=0x0
+0, 4291, 4291, 41, 1417, 0x2312d70e, F=0x0
+0, 4333, 4333, 41, 1285, 0x46ca4cca, F=0x0
+1, 4353, 4353, 0, 1088, 0x1d6c8ed2
+0, 4375, 4375, 41, 1037, 0xcf09dd3d, F=0x0
+0, 4416, 4416, 41, 1005, 0xe780cf1f, F=0x0
+0, 4458, 4458, 41, 890, 0x8b1d8c1b, F=0x0
+0, 4500, 4500, 41, 1023, 0xd1dbd506, F=0x0
+0, 4541, 4541, 41, 803, 0x935e775e, F=0x0
+0, 4583, 4583, 41, 1035, 0x6a220483, F=0x0
+0, 4625, 4625, 41, 466, 0xd88bb237, F=0x0
+1, 4789, 4789, 0, 1088, 0x09115bae
+0, 4916, 4916, 41, 945, 0x8f2eb1ec, F=0x0
+0, 4958, 4958, 41, 1190, 0x4c451c1b
+0, 5000, 5000, 41, 1811, 0x727c52cb, F=0x0
+0, 5041, 5041, 41, 1552, 0x73f82bff, F=0x0
+0, 5083, 5083, 41, 1544, 0xa7241ece, F=0x0
+0, 5125, 5125, 41, 1707, 0x3d1a6464, F=0x0
+0, 5166, 5166, 41, 1103, 0x06b22710, F=0x0
+0, 5208, 5208, 41, 1122, 0x656725b8, F=0x0
+1, 5224, 5224, 0, 1088, 0x0c8b9372
+0, 5250, 5250, 41, 1150, 0xf9674678, F=0x0
+0, 5291, 5291, 41, 1438, 0x03fac426, F=0x0
+0, 5333, 5333, 41, 1623, 0x7adb1321, F=0x0
+0, 5375, 5375, 41, 1677, 0x0b9a3e62, F=0x0
+0, 5416, 5416, 41, 1124, 0x769c0ea2, F=0x0
+0, 5458, 5458, 41, 1221, 0xd942409f, F=0x0
+0, 5500, 5500, 41, 1698, 0xd7ca3fe3, F=0x0
+0, 5541, 5541, 41, 1262, 0xb994692f, F=0x0
+0, 5583, 5583, 41, 2097, 0xf4eb663f, F=0x0
+0, 5625, 5625, 41, 1251, 0xfd4f633a, F=0x0
+1, 5659, 5659, 0, 1088, 0x75a82540
+0, 5666, 5666, 41, 1633, 0xb7e1290e, F=0x0
+0, 5708, 5708, 41, 1739, 0xecd18c38, F=0x0
+0, 5750, 5750, 41, 1132, 0xc83e1828, F=0x0
+0, 5791, 5791, 41, 825, 0xdd02867c, F=0x0
+0, 5833, 5833, 41, 903, 0x349ba205, F=0x0
+0, 5875, 5875, 41, 1013, 0x1366ec2a, F=0x0
+0, 5916, 5916, 41, 1340, 0xeaa2a231, F=0x0
+0, 5958, 5958, 41, 1102, 0x82de2889, F=0x0
+0, 6000, 6000, 41, 1834, 0x59b99b92, F=0x0
+1, 6008, 6008, 0, 1088, 0x690312b0
+0, 6041, 6041, 41, 1332, 0x0610813a, F=0x0
+0, 6083, 6083, 41, 1275, 0x5b0d7be7, F=0x0
+0, 6125, 6125, 41, 1376, 0xd915b0fe, F=0x0
+0, 6166, 6166, 41, 1417, 0x8606b34a, F=0x0
+0, 6208, 6208, 41, 1360, 0x3bcd93d3, F=0x0
+0, 6250, 6250, 41, 1330, 0xd0439c93, F=0x0
+0, 6291, 6291, 41, 1562, 0xb2560a09, F=0x0
+1, 6312, 6312, 0, 1088, 0x76d50ff3
+0, 6333, 6333, 41, 1376, 0x4f9eb447, F=0x0
+0, 6375, 6375, 41, 1405, 0x85d3b084, F=0x0
+0, 6416, 6416, 41, 1344, 0xcdbda2ae, F=0x0
+0, 6458, 6458, 41, 1313, 0xe3067b35, F=0x0
+0, 6500, 6500, 41, 1459, 0xf9d2c56f, F=0x0
+0, 6541, 6541, 41, 1275, 0xf5536d81, F=0x0
+0, 6583, 6583, 41, 1209, 0x3b5b4ea5, F=0x0
+1, 6595, 6595, 0, 1088, 0x8766276f
+0, 6625, 6625, 41, 1352, 0x7b199d28, F=0x0
+0, 6666, 6666, 41, 1349, 0x02adaaf3, F=0x0
+0, 6708, 6708, 41, 1464, 0x20d7cfd2, F=0x0
+0, 6750, 6750, 41, 1377, 0x78e0b1f4, F=0x0
+0, 6791, 6791, 41, 289, 0x1f2e9246, F=0x0
+1, 6878, 6878, 0, 1088, 0x678f20fd
+1, 7161, 7161, 0, 1088, 0x718afa20
+1, 7444, 7444, 0, 1088, 0x758f0939
diff --git a/ffmpeg1/tests/ref/fate/wmv8-x8intra b/ffmpeg1/tests/ref/fate/wmv8-x8intra
new file mode 100644
index 0000000..1f75ce2
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wmv8-x8intra
@@ -0,0 +1,474 @@
+#tb 0: 1/15
+0, 0, 0, 1, 115200, 0x03fbd838
+0, 3, 3, 1, 115200, 0x8911d86f
+0, 4, 4, 1, 115200, 0x7c5dd82e
+0, 5, 5, 1, 115200, 0x7c5ed82e
+0, 30, 30, 1, 115200, 0xd323d838
+0, 31, 31, 1, 115200, 0x6e7479ab
+0, 32, 32, 1, 115200, 0x14674bf6
+0, 33, 33, 1, 115200, 0x074c2e3d
+0, 34, 34, 1, 115200, 0x9b3025ef
+0, 35, 35, 1, 115200, 0x76882dae
+0, 36, 36, 1, 115200, 0xedf3421b
+0, 37, 37, 1, 115200, 0xb5378486
+0, 38, 38, 1, 115200, 0xc4a53420
+0, 39, 39, 1, 115200, 0x559cb60f
+0, 40, 40, 1, 115200, 0xcc034ddd
+0, 41, 41, 1, 115200, 0xb77b7779
+0, 42, 42, 1, 115200, 0x0ad9c3e6
+0, 43, 43, 1, 115200, 0x4e673027
+0, 44, 44, 1, 115200, 0x54717979
+0, 45, 45, 1, 115200, 0xf9e557c9
+0, 46, 46, 1, 115200, 0xefad6344
+0, 47, 47, 1, 115200, 0x07497ba3
+0, 48, 48, 1, 115200, 0xabef71d3
+0, 49, 49, 1, 115200, 0x5b8f5802
+0, 50, 50, 1, 115200, 0x8b920b76
+0, 51, 51, 1, 115200, 0xb93f0f04
+0, 52, 52, 1, 115200, 0xa31b18c0
+0, 53, 53, 1, 115200, 0x9116235b
+0, 54, 54, 1, 115200, 0xe54b1d0b
+0, 55, 55, 1, 115200, 0x35e7252a
+0, 56, 56, 1, 115200, 0x2cae31d5
+0, 57, 57, 1, 115200, 0x28493c57
+0, 58, 58, 1, 115200, 0xd8a445b5
+0, 59, 59, 1, 115200, 0xbf854c55
+0, 60, 60, 1, 115200, 0x3761555c
+0, 61, 61, 1, 115200, 0x07a35c8a
+0, 62, 62, 1, 115200, 0x848c6eb0
+0, 63, 63, 1, 115200, 0x8d7c77d1
+0, 64, 64, 1, 115200, 0x903980b7
+0, 65, 65, 1, 115200, 0xbd30898c
+0, 66, 66, 1, 115200, 0x31f78d25
+0, 67, 67, 1, 115200, 0x308aa19d
+0, 68, 68, 1, 115200, 0xf185948c
+0, 69, 69, 1, 115200, 0x8aeea0b9
+0, 70, 70, 1, 115200, 0x06669545
+0, 71, 71, 1, 115200, 0x4d3e84d7
+0, 72, 72, 1, 115200, 0x80007e9c
+0, 73, 73, 1, 115200, 0x7cad6ea5
+0, 74, 74, 1, 115200, 0xd5d747f6
+0, 75, 75, 1, 115200, 0xeddb43bf
+0, 76, 76, 1, 115200, 0x2d3c30b5
+0, 77, 77, 1, 115200, 0x7b465872
+0, 78, 78, 1, 115200, 0xd144b461
+0, 79, 79, 1, 115200, 0x36b0053e
+0, 80, 80, 1, 115200, 0xdf90ec64
+0, 81, 81, 1, 115200, 0xb59cecc6
+0, 82, 82, 1, 115200, 0x0469ed52
+0, 83, 83, 1, 115200, 0x2d7cf7cb
+0, 84, 84, 1, 115200, 0x8376bf2c
+0, 85, 85, 1, 115200, 0xd79dbd1e
+0, 86, 86, 1, 115200, 0xbc79996d
+0, 87, 87, 1, 115200, 0x524d0a62
+0, 88, 88, 1, 115200, 0x07798f44
+0, 89, 89, 1, 115200, 0xd8b85d49
+0, 90, 90, 1, 115200, 0x54126d07
+0, 91, 91, 1, 115200, 0x0346f350
+0, 92, 92, 1, 115200, 0x0feada4f
+0, 93, 93, 1, 115200, 0x74243c65
+0, 94, 94, 1, 115200, 0xbce280c8
+0, 95, 95, 1, 115200, 0xe9bc40c7
+0, 96, 96, 1, 115200, 0x72ecea21
+0, 97, 97, 1, 115200, 0xb4c32a43
+0, 98, 98, 1, 115200, 0x428a6276
+0, 99, 99, 1, 115200, 0xf67f9364
+0, 100, 100, 1, 115200, 0xf25e8858
+0, 101, 101, 1, 115200, 0x9739b909
+0, 102, 102, 1, 115200, 0x8a1b8f38
+0, 103, 103, 1, 115200, 0xe4a2cff1
+0, 104, 104, 1, 115200, 0xa800b83f
+0, 105, 105, 1, 115200, 0xa88e00d0
+0, 106, 106, 1, 115200, 0x5786082e
+0, 107, 107, 1, 115200, 0xc7205eeb
+0, 108, 108, 1, 115200, 0x9ad02d6b
+0, 109, 109, 1, 115200, 0x5314185d
+0, 110, 110, 1, 115200, 0x015b6351
+0, 111, 111, 1, 115200, 0x51a5c2e1
+0, 112, 112, 1, 115200, 0xc232ec26
+0, 113, 113, 1, 115200, 0x35b30ffc
+0, 114, 114, 1, 115200, 0x2b947acd
+0, 115, 115, 1, 115200, 0xcf1a7971
+0, 116, 116, 1, 115200, 0x70055748
+0, 117, 117, 1, 115200, 0x774b61e6
+0, 118, 118, 1, 115200, 0x74da78a7
+0, 119, 119, 1, 115200, 0x13b5523c
+0, 120, 120, 1, 115200, 0xe27050a0
+0, 121, 121, 1, 115200, 0x073156b0
+0, 122, 122, 1, 115200, 0x9a3662d4
+0, 123, 123, 1, 115200, 0x8c90139c
+0, 124, 124, 1, 115200, 0x45cdeb08
+0, 125, 125, 1, 115200, 0x046ff217
+0, 126, 126, 1, 115200, 0xa6b0a863
+0, 127, 127, 1, 115200, 0xa9c2427a
+0, 128, 128, 1, 115200, 0x7d478df1
+0, 129, 129, 1, 115200, 0x9f426504
+0, 130, 130, 1, 115200, 0x89723d89
+0, 131, 131, 1, 115200, 0x851dd023
+0, 132, 132, 1, 115200, 0xe6ed007d
+0, 133, 133, 1, 115200, 0xfe5cb08d
+0, 134, 134, 1, 115200, 0xc96e52bd
+0, 135, 135, 1, 115200, 0x15c5ffe8
+0, 136, 136, 1, 115200, 0x54540656
+0, 137, 137, 1, 115200, 0xa5e8dbec
+0, 138, 138, 1, 115200, 0x35edde29
+0, 139, 139, 1, 115200, 0xbbb6cb36
+0, 140, 140, 1, 115200, 0x59c5ed50
+0, 141, 141, 1, 115200, 0x7e8a497a
+0, 142, 142, 1, 115200, 0x16586d33
+0, 143, 143, 1, 115200, 0x19dfd6e6
+0, 144, 144, 1, 115200, 0x7ea8574a
+0, 145, 145, 1, 115200, 0x58567b44
+0, 146, 146, 1, 115200, 0x0d2d049e
+0, 147, 147, 1, 115200, 0x7c2d7b00
+0, 148, 148, 1, 115200, 0x92debda6
+0, 149, 149, 1, 115200, 0x1e4cfcc1
+0, 150, 150, 1, 115200, 0xf58b742e
+0, 151, 151, 1, 115200, 0xc2089e8b
+0, 152, 152, 1, 115200, 0x1b4f01e8
+0, 153, 153, 1, 115200, 0x113b1e76
+0, 154, 154, 1, 115200, 0x0f154b48
+0, 155, 155, 1, 115200, 0xf82f5795
+0, 156, 156, 1, 115200, 0xa9f68f5c
+0, 157, 157, 1, 115200, 0xd37992fa
+0, 158, 158, 1, 115200, 0x5e08b0ad
+0, 159, 159, 1, 115200, 0xacf77f50
+0, 160, 160, 1, 115200, 0x4a37945b
+0, 161, 161, 1, 115200, 0x9d2670b7
+0, 162, 162, 1, 115200, 0x7f7e5d76
+0, 163, 163, 1, 115200, 0x357d3ec3
+0, 164, 164, 1, 115200, 0xe4622287
+0, 165, 165, 1, 115200, 0x95260aa6
+0, 166, 166, 1, 115200, 0xff87049a
+0, 167, 167, 1, 115200, 0x5b91c76b
+0, 168, 168, 1, 115200, 0xe5fca44c
+0, 169, 169, 1, 115200, 0xccc46ee1
+0, 170, 170, 1, 115200, 0x0aec53e8
+0, 171, 171, 1, 115200, 0x7509537f
+0, 172, 172, 1, 115200, 0xd6516a81
+0, 173, 173, 1, 115200, 0xbc14562b
+0, 174, 174, 1, 115200, 0xe3f9619e
+0, 175, 175, 1, 115200, 0x2cbe35ef
+0, 176, 176, 1, 115200, 0xd78a40b9
+0, 177, 177, 1, 115200, 0x2cfa08cd
+0, 178, 178, 1, 115200, 0x3ece09fe
+0, 179, 179, 1, 115200, 0xc445d43a
+0, 180, 180, 1, 115200, 0xe1cbacdd
+0, 181, 181, 1, 115200, 0x7a03b421
+0, 182, 182, 1, 115200, 0x7c80ab27
+0, 183, 183, 1, 115200, 0xececae60
+0, 184, 184, 1, 115200, 0xef00c6b3
+0, 185, 185, 1, 115200, 0xcdc9e78d
+0, 186, 186, 1, 115200, 0xa5170dd1
+0, 187, 187, 1, 115200, 0xfe561e1f
+0, 188, 188, 1, 115200, 0xc5d056f9
+0, 189, 189, 1, 115200, 0xf0267284
+0, 190, 190, 1, 115200, 0xcdc4a09a
+0, 191, 191, 1, 115200, 0xa8c8af40
+0, 192, 192, 1, 115200, 0x0c0cc987
+0, 193, 193, 1, 115200, 0x13a0cc64
+0, 194, 194, 1, 115200, 0x0ff3e6fe
+0, 195, 195, 1, 115200, 0x7fbfe852
+0, 196, 196, 1, 115200, 0x62ea0273
+0, 197, 197, 1, 115200, 0x8d021330
+0, 198, 198, 1, 115200, 0x7ac6321a
+0, 199, 199, 1, 115200, 0xefc92de8
+0, 200, 200, 1, 115200, 0x4be95c24
+0, 201, 201, 1, 115200, 0xf62c79b0
+0, 202, 202, 1, 115200, 0x1d9f85c6
+0, 203, 203, 1, 115200, 0x13b6ad8f
+0, 204, 204, 1, 115200, 0x3d96e451
+0, 205, 205, 1, 115200, 0x0891f3c4
+0, 206, 206, 1, 115200, 0xc728f8cd
+0, 207, 207, 1, 115200, 0x9481ee74
+0, 208, 208, 1, 115200, 0xaf95fcf9
+0, 209, 209, 1, 115200, 0x856fe48d
+0, 210, 210, 1, 115200, 0x5b9c03da
+0, 211, 211, 1, 115200, 0x98f80228
+0, 212, 212, 1, 115200, 0xa4e52148
+0, 213, 213, 1, 115200, 0x65bc4b91
+0, 214, 214, 1, 115200, 0x0c166312
+0, 215, 215, 1, 115200, 0x4657a356
+0, 216, 216, 1, 115200, 0xf17e0003
+0, 217, 217, 1, 115200, 0x95a81738
+0, 218, 218, 1, 115200, 0xb02d6bd9
+0, 219, 219, 1, 115200, 0x2594e89d
+0, 220, 220, 1, 115200, 0x5c4a1349
+0, 221, 221, 1, 115200, 0xbc9d5875
+0, 222, 222, 1, 115200, 0xd935b307
+0, 223, 223, 1, 115200, 0x2114cb84
+0, 224, 224, 1, 115200, 0xbe58130c
+0, 225, 225, 1, 115200, 0x7a3d2b2b
+0, 226, 226, 1, 115200, 0xe5753e6b
+0, 227, 227, 1, 115200, 0xc84042cc
+0, 228, 228, 1, 115200, 0x98ef4c58
+0, 229, 229, 1, 115200, 0x2cb83bff
+0, 230, 230, 1, 115200, 0x4e58433a
+0, 231, 231, 1, 115200, 0x7ec26734
+0, 232, 232, 1, 115200, 0x49168d07
+0, 233, 233, 1, 115200, 0xfc9e82f2
+0, 234, 234, 1, 115200, 0x49976c26
+0, 235, 235, 1, 115200, 0xa12466ff
+0, 236, 236, 1, 115200, 0x98ae6499
+0, 237, 237, 1, 115200, 0xc8575e78
+0, 238, 238, 1, 115200, 0xc6596cd2
+0, 239, 239, 1, 115200, 0x83d9a068
+0, 240, 240, 1, 115200, 0xe819b560
+0, 241, 241, 1, 115200, 0xb07ac3c3
+0, 242, 242, 1, 115200, 0x3d79ef5b
+0, 243, 243, 1, 115200, 0xbc6800e0
+0, 244, 244, 1, 115200, 0xc78c15f8
+0, 245, 245, 1, 115200, 0xcb91360b
+0, 246, 246, 1, 115200, 0x6c657143
+0, 247, 247, 1, 115200, 0x636391d1
+0, 248, 248, 1, 115200, 0xb519e49d
+0, 249, 249, 1, 115200, 0xb65d00c5
+0, 250, 250, 1, 115200, 0x14672ba8
+0, 251, 251, 1, 115200, 0xb65d389f
+0, 252, 252, 1, 115200, 0xe88e991b
+0, 253, 253, 1, 115200, 0x6a7bad4e
+0, 254, 254, 1, 115200, 0xd305eca1
+0, 255, 255, 1, 115200, 0x8cdbe729
+0, 256, 256, 1, 115200, 0x0d1bfd9a
+0, 257, 257, 1, 115200, 0xef740a06
+0, 258, 258, 1, 115200, 0x1cd423df
+0, 259, 259, 1, 115200, 0xf78616ba
+0, 260, 260, 1, 115200, 0xcc0b2b81
+0, 261, 261, 1, 115200, 0x434e4ae9
+0, 262, 262, 1, 115200, 0xf2d461ec
+0, 263, 263, 1, 115200, 0xc75f6a15
+0, 264, 264, 1, 115200, 0x71038c87
+0, 265, 265, 1, 115200, 0x7a55ab55
+0, 266, 266, 1, 115200, 0xeef2e1de
+0, 267, 267, 1, 115200, 0xd2600c3d
+0, 268, 268, 1, 115200, 0xdd872452
+0, 269, 269, 1, 115200, 0xd1361fcd
+0, 270, 270, 1, 115200, 0xda4f0d12
+0, 271, 271, 1, 115200, 0xba061920
+0, 272, 272, 1, 115200, 0x4b2ef9ed
+0, 273, 273, 1, 115200, 0x11dfab08
+0, 274, 274, 1, 115200, 0x7a603fc2
+0, 275, 275, 1, 115200, 0x61690ad9
+0, 276, 276, 1, 115200, 0x481ac8b9
+0, 277, 277, 1, 115200, 0xea35570d
+0, 278, 278, 1, 115200, 0xdd306f19
+0, 279, 279, 1, 115200, 0x3f975f1b
+0, 280, 280, 1, 115200, 0x2386cd1f
+0, 281, 281, 1, 115200, 0x1b77f573
+0, 282, 282, 1, 115200, 0x8ce213de
+0, 283, 283, 1, 115200, 0x5f7407c6
+0, 284, 284, 1, 115200, 0x01b3ee00
+0, 285, 285, 1, 115200, 0x92759715
+0, 286, 286, 1, 115200, 0x4a208e1e
+0, 287, 287, 1, 115200, 0x6e1b80a5
+0, 288, 288, 1, 115200, 0x298c7621
+0, 289, 289, 1, 115200, 0x0e255da8
+0, 290, 290, 1, 115200, 0xabd661ca
+0, 291, 291, 1, 115200, 0x6f045226
+0, 292, 292, 1, 115200, 0x396a5e4c
+0, 293, 293, 1, 115200, 0x4bd53915
+0, 294, 294, 1, 115200, 0xaf9631b3
+0, 295, 295, 1, 115200, 0xb2602290
+0, 296, 296, 1, 115200, 0xb1272f1b
+0, 297, 297, 1, 115200, 0xe8d23699
+0, 298, 298, 1, 115200, 0xd6e2558d
+0, 299, 299, 1, 115200, 0xf1270106
+0, 300, 300, 1, 115200, 0x6ab1fc4f
+0, 301, 301, 1, 115200, 0x4a9b5c6f
+0, 302, 302, 1, 115200, 0x14177b61
+0, 303, 303, 1, 115200, 0x8f7f7971
+0, 304, 304, 1, 115200, 0x165973cd
+0, 305, 305, 1, 115200, 0x341c4ba5
+0, 306, 306, 1, 115200, 0x08df3902
+0, 307, 307, 1, 115200, 0x4c1e386a
+0, 308, 308, 1, 115200, 0x1b1c387c
+0, 309, 309, 1, 115200, 0xe42fdb83
+0, 310, 310, 1, 115200, 0x5bb2ad2e
+0, 311, 311, 1, 115200, 0x31924902
+0, 312, 312, 1, 115200, 0x5a290e9a
+0, 313, 313, 1, 115200, 0x15d6ea45
+0, 314, 314, 1, 115200, 0xb5adc34d
+0, 315, 315, 1, 115200, 0xb210a956
+0, 316, 316, 1, 115200, 0x79478dac
+0, 317, 317, 1, 115200, 0x626a3fa9
+0, 318, 318, 1, 115200, 0x6b0e370d
+0, 319, 319, 1, 115200, 0x1f1113ec
+0, 320, 320, 1, 115200, 0x362efa10
+0, 321, 321, 1, 115200, 0xca8de637
+0, 322, 322, 1, 115200, 0x432e1f19
+0, 323, 323, 1, 115200, 0xa2c93031
+0, 324, 324, 1, 115200, 0x63294fcc
+0, 325, 325, 1, 115200, 0x1c1d5928
+0, 326, 326, 1, 115200, 0xe5fb45ea
+0, 327, 327, 1, 115200, 0x0712cc77
+0, 328, 328, 1, 115200, 0xaef1c94b
+0, 329, 329, 1, 115200, 0x30c8a84e
+0, 330, 330, 1, 115200, 0xd6896b75
+0, 331, 331, 1, 115200, 0x7f8839cb
+0, 332, 332, 1, 115200, 0xcd69d7d4
+0, 333, 333, 1, 115200, 0xa6f3cdaa
+0, 334, 334, 1, 115200, 0xccbdc609
+0, 335, 335, 1, 115200, 0x2d3f77d7
+0, 336, 336, 1, 115200, 0x18f8582d
+0, 337, 337, 1, 115200, 0xe88717bb
+0, 338, 338, 1, 115200, 0xb42fd44b
+0, 339, 339, 1, 115200, 0x7edaa5b7
+0, 340, 340, 1, 115200, 0xef399a7b
+0, 341, 341, 1, 115200, 0x11d75f35
+0, 342, 342, 1, 115200, 0xc0717b78
+0, 343, 343, 1, 115200, 0x9aebc04d
+0, 344, 344, 1, 115200, 0x44c705fc
+0, 345, 345, 1, 115200, 0xd322add3
+0, 346, 346, 1, 115200, 0x0f5f0b79
+0, 347, 347, 1, 115200, 0x54a15070
+0, 348, 348, 1, 115200, 0xd11553df
+0, 349, 349, 1, 115200, 0x6f3ed910
+0, 350, 350, 1, 115200, 0x6d3a3c17
+0, 351, 351, 1, 115200, 0x434ebc13
+0, 352, 352, 1, 115200, 0xcf07ecb2
+0, 353, 353, 1, 115200, 0x1c94497e
+0, 354, 354, 1, 115200, 0x83c13cbc
+0, 355, 355, 1, 115200, 0x4a8ba4f5
+0, 356, 356, 1, 115200, 0x922a393f
+0, 357, 357, 1, 115200, 0x44024959
+0, 358, 358, 1, 115200, 0x23f18ebd
+0, 359, 359, 1, 115200, 0x2cdf1146
+0, 360, 360, 1, 115200, 0x8a7d402c
+0, 361, 361, 1, 115200, 0x42d67bb3
+0, 362, 362, 1, 115200, 0x7045ff2c
+0, 363, 363, 1, 115200, 0xb67a4f15
+0, 364, 364, 1, 115200, 0x7481f311
+0, 365, 365, 1, 115200, 0xe394ff8d
+0, 366, 366, 1, 115200, 0x2ca16f23
+0, 367, 367, 1, 115200, 0xd53238e1
+0, 368, 368, 1, 115200, 0xe28a80c9
+0, 369, 369, 1, 115200, 0x043ccd51
+0, 370, 370, 1, 115200, 0x2e950d80
+0, 371, 371, 1, 115200, 0xf7394c6e
+0, 372, 372, 1, 115200, 0xae46d2c8
+0, 373, 373, 1, 115200, 0x4b54df85
+0, 374, 374, 1, 115200, 0x636f4ca5
+0, 375, 375, 1, 115200, 0x2c687754
+0, 376, 376, 1, 115200, 0x0ddea0f9
+0, 377, 377, 1, 115200, 0x82b08dfd
+0, 378, 378, 1, 115200, 0x5db58c25
+0, 379, 379, 1, 115200, 0x9b975eaa
+0, 380, 380, 1, 115200, 0x2cbe4bf1
+0, 381, 381, 1, 115200, 0xc8873bd7
+0, 382, 382, 1, 115200, 0x9aa357f2
+0, 383, 383, 1, 115200, 0x526e5392
+0, 384, 384, 1, 115200, 0x30aa5d18
+0, 385, 385, 1, 115200, 0x1fe738b4
+0, 386, 386, 1, 115200, 0x9cec04ad
+0, 387, 387, 1, 115200, 0x3ddd922d
+0, 388, 388, 1, 115200, 0xc6578bbb
+0, 389, 389, 1, 115200, 0x413c35ae
+0, 390, 390, 1, 115200, 0x90095ab3
+0, 391, 391, 1, 115200, 0x8ae84371
+0, 392, 392, 1, 115200, 0x1c935404
+0, 393, 393, 1, 115200, 0x213f37e8
+0, 394, 394, 1, 115200, 0x19ab39e6
+0, 395, 395, 1, 115200, 0x795bf82f
+0, 396, 396, 1, 115200, 0xe238fccf
+0, 397, 397, 1, 115200, 0xe2c0d69e
+0, 398, 398, 1, 115200, 0xa1e9d34c
+0, 399, 399, 1, 115200, 0xedf3d303
+0, 400, 400, 1, 115200, 0x40fac156
+0, 401, 401, 1, 115200, 0x1bc59ddb
+0, 402, 402, 1, 115200, 0x4295a2ab
+0, 403, 403, 1, 115200, 0xc337809d
+0, 404, 404, 1, 115200, 0x4a329996
+0, 405, 405, 1, 115200, 0xb4fa76b4
+0, 406, 406, 1, 115200, 0xb49b7d18
+0, 407, 407, 1, 115200, 0xfab67262
+0, 408, 408, 1, 115200, 0x31919404
+0, 409, 409, 1, 115200, 0x983d896c
+0, 410, 410, 1, 115200, 0x8594939e
+0, 411, 411, 1, 115200, 0x9fb8932a
+0, 412, 412, 1, 115200, 0xb9f3af07
+0, 413, 413, 1, 115200, 0x5904c5b4
+0, 414, 414, 1, 115200, 0xf6e095d6
+0, 415, 415, 1, 115200, 0xd168bd86
+0, 416, 416, 1, 115200, 0x39151a63
+0, 417, 417, 1, 115200, 0x9e426f6d
+0, 418, 418, 1, 115200, 0x0c6d7d1d
+0, 419, 419, 1, 115200, 0x65f787ca
+0, 420, 420, 1, 115200, 0xf42288c6
+0, 421, 421, 1, 115200, 0x565b8d91
+0, 422, 422, 1, 115200, 0xd72e882f
+0, 423, 423, 1, 115200, 0x8def886c
+0, 424, 424, 1, 115200, 0x1d5e7800
+0, 425, 425, 1, 115200, 0x628276f7
+0, 426, 426, 1, 115200, 0x00e27d0f
+0, 427, 427, 1, 115200, 0x52df7737
+0, 428, 428, 1, 115200, 0xf98f6303
+0, 429, 429, 1, 115200, 0x9a2d2d65
+0, 430, 430, 1, 115200, 0xd8cb25f5
+0, 431, 431, 1, 115200, 0x68071ce1
+0, 432, 432, 1, 115200, 0x4c6218c9
+0, 433, 433, 1, 115200, 0xaf0a11a3
+0, 434, 434, 1, 115200, 0xfa0a0fb9
+0, 435, 435, 1, 115200, 0xc61414fb
+0, 436, 436, 1, 115200, 0x3a8b0e94
+0, 437, 437, 1, 115200, 0x1eab0e92
+0, 438, 438, 1, 115200, 0xc726028c
+0, 439, 439, 1, 115200, 0x2da2f5de
+0, 440, 440, 1, 115200, 0x7672e92f
+0, 441, 441, 1, 115200, 0x7edae686
+0, 442, 442, 1, 115200, 0x9a6ce3c6
+0, 443, 443, 1, 115200, 0x9f69e74c
+0, 444, 444, 1, 115200, 0x73fbf502
+0, 445, 445, 1, 115200, 0xff81f5b8
+0, 446, 446, 1, 115200, 0x2b8bf7de
+0, 447, 447, 1, 115200, 0xcd00f380
+0, 448, 448, 1, 115200, 0x4cedfe7c
+0, 449, 449, 1, 115200, 0xcd30fbb4
+0, 450, 450, 1, 115200, 0x4b7df228
+0, 451, 451, 1, 115200, 0xedc7e5df
+0, 452, 452, 1, 115200, 0x687ae0f5
+0, 453, 453, 1, 115200, 0x8127e2b9
+0, 454, 454, 1, 115200, 0xe31ae11c
+0, 455, 455, 1, 115200, 0xece5e5c5
+0, 456, 456, 1, 115200, 0x4f1bdfe4
+0, 457, 457, 1, 115200, 0x65c5dfe3
+0, 458, 458, 1, 115200, 0xfc89d51f
+0, 459, 459, 1, 115200, 0xedd1c6bc
+0, 460, 460, 1, 115200, 0x2913d073
+0, 461, 461, 1, 115200, 0xf196fbbe
+0, 462, 462, 1, 115200, 0xc0be13e1
+0, 463, 463, 1, 115200, 0x55b21f01
+0, 464, 464, 1, 115200, 0xb16b2364
+0, 465, 465, 1, 115200, 0x4a8632db
+0, 466, 466, 1, 115200, 0x44c94426
+0, 467, 467, 1, 115200, 0xe5470b01
+0, 468, 468, 1, 115200, 0xd895d5d0
+0, 469, 469, 1, 115200, 0xe98715c2
+0, 470, 470, 1, 115200, 0x2688599b
+0, 471, 471, 1, 115200, 0x8e4889aa
+0, 472, 472, 1, 115200, 0x658bcd8d
+0, 473, 473, 1, 115200, 0xf0090c06
+0, 474, 474, 1, 115200, 0xefd9bd28
+0, 475, 475, 1, 115200, 0x45009bb4
+0, 476, 476, 1, 115200, 0x7ebd1655
+0, 477, 477, 1, 115200, 0x64ff7898
+0, 478, 478, 1, 115200, 0x4a9384f1
+0, 479, 479, 1, 115200, 0xd80f0701
+0, 480, 480, 1, 115200, 0x2f855116
+0, 481, 481, 1, 115200, 0x0c1313cb
+0, 482, 482, 1, 115200, 0xf4df4d19
+0, 483, 483, 1, 115200, 0xde6218fb
+0, 484, 484, 1, 115200, 0xce26e6b4
+0, 485, 485, 1, 115200, 0x848af931
+0, 486, 486, 1, 115200, 0x86770a97
+0, 487, 487, 1, 115200, 0x8f35c3c0
+0, 488, 488, 1, 115200, 0xb26dc220
+0, 489, 489, 1, 115200, 0x3d5bbfce
+0, 490, 490, 1, 115200, 0xa1f9bee6
+0, 491, 491, 1, 115200, 0xa87dcd24
+0, 492, 492, 1, 115200, 0x9374cb71
+0, 493, 493, 1, 115200, 0x0c7ccbd0
+0, 494, 494, 1, 115200, 0x9a16cc49
+0, 495, 495, 1, 115200, 0x4df0c28b
+0, 496, 496, 1, 115200, 0xb5b8b866
+0, 497, 497, 1, 115200, 0xafcc1019
+0, 510, 510, 1, 115200, 0x623b0ff3
diff --git a/ffmpeg1/tests/ref/fate/wnv1 b/ffmpeg1/tests/ref/fate/wnv1
new file mode 100644
index 0000000..4de35bf
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wnv1
@@ -0,0 +1,87 @@
+#tb 0: 13333/200000
+0, 0, 0, 1, 38400, 0x4c3fdc2f
+0, 1, 1, 1, 38400, 0x11c9d0cb
+0, 2, 2, 1, 38400, 0x6c37fd7f
+0, 3, 3, 1, 38400, 0x7e6c9b93
+0, 4, 4, 1, 38400, 0xc9d4c5f7
+0, 5, 5, 1, 38400, 0x5038088a
+0, 6, 6, 1, 38400, 0xa48411b6
+0, 7, 7, 1, 38400, 0xb9b7e97b
+0, 8, 8, 1, 38400, 0xce37e037
+0, 9, 9, 1, 38400, 0x5df528da
+0, 10, 10, 1, 38400, 0xe4e65876
+0, 11, 11, 1, 38400, 0x5bf4a46e
+0, 12, 12, 1, 38400, 0xee478c2a
+0, 13, 13, 1, 38400, 0x51a555c2
+0, 14, 14, 1, 38400, 0x30a4030a
+0, 15, 15, 1, 38400, 0xb13802d6
+0, 16, 16, 1, 38400, 0x45ef5482
+0, 17, 17, 1, 38400, 0x00aef51b
+0, 18, 18, 1, 38400, 0xe8a71d7e
+0, 19, 19, 1, 38400, 0x3d185142
+0, 20, 20, 1, 38400, 0x221f59ea
+0, 21, 21, 1, 38400, 0x1ae13572
+0, 22, 22, 1, 38400, 0xe498450e
+0, 23, 23, 1, 38400, 0xe744747a
+0, 24, 24, 1, 38400, 0x44ee3352
+0, 25, 25, 1, 38400, 0x74187342
+0, 26, 26, 1, 38400, 0xbee9656e
+0, 27, 27, 1, 38400, 0x645c8d1a
+0, 28, 28, 1, 38400, 0x443dde1e
+0, 29, 29, 1, 38400, 0x012106fd
+0, 30, 30, 1, 38400, 0x4bb86b82
+0, 31, 31, 1, 38400, 0x152473ba
+0, 32, 32, 1, 38400, 0xa5214ea2
+0, 33, 33, 1, 38400, 0x9e8c7046
+0, 34, 34, 1, 38400, 0xdd95a9ba
+0, 35, 35, 1, 38400, 0x64c5f292
+0, 36, 36, 1, 38400, 0xdd42a04a
+0, 37, 37, 1, 38400, 0x6069359e
+0, 38, 38, 1, 38400, 0x094bf60f
+0, 39, 39, 1, 38400, 0x584217be
+0, 40, 40, 1, 38400, 0x4c5ef453
+0, 41, 41, 1, 38400, 0x7e83eeb7
+0, 42, 42, 1, 38400, 0xaa57efb3
+0, 43, 43, 1, 38400, 0x42b0a66f
+0, 44, 44, 1, 38400, 0x371fdcbf
+0, 45, 45, 1, 38400, 0xb8f1e1bf
+0, 46, 46, 1, 38400, 0x45c91fa6
+0, 47, 47, 1, 38400, 0x7508338e
+0, 48, 48, 1, 38400, 0xb5dd91ab
+0, 49, 49, 1, 38400, 0x0204b38f
+0, 50, 50, 1, 38400, 0x8ae2da6f
+0, 51, 51, 1, 38400, 0x926ad59f
+0, 52, 52, 1, 38400, 0xf9c3234e
+0, 53, 53, 1, 38400, 0xabcb00f6
+0, 54, 54, 1, 38400, 0x2d1de7bb
+0, 55, 55, 1, 38400, 0x332d39ce
+0, 56, 56, 1, 38400, 0xcd767286
+0, 57, 57, 1, 38400, 0xf3d046ae
+0, 58, 58, 1, 38400, 0x7ccc8162
+0, 59, 59, 1, 38400, 0x09f6997e
+0, 60, 60, 1, 38400, 0x5fcc6536
+0, 61, 61, 1, 38400, 0x9959a3b6
+0, 62, 62, 1, 38400, 0x63a5dcd2
+0, 63, 63, 1, 38400, 0x66deae96
+0, 64, 64, 1, 38400, 0x6feb0b1d
+0, 65, 65, 1, 38400, 0x2063c25e
+0, 66, 66, 1, 38400, 0x617f93de
+0, 67, 67, 1, 38400, 0x4251c806
+0, 68, 68, 1, 38400, 0x702eb68e
+0, 69, 69, 1, 38400, 0xe80b8ea6
+0, 70, 70, 1, 38400, 0xa51ec1b2
+0, 71, 71, 1, 38400, 0x8aa8af8a
+0, 72, 72, 1, 38400, 0x9a260321
+0, 73, 73, 1, 38400, 0x2c732c22
+0, 74, 74, 1, 38400, 0x216ed6a2
+0, 75, 75, 1, 38400, 0x5558326d
+0, 76, 76, 1, 38400, 0x0cae4cf5
+0, 77, 77, 1, 38400, 0xf0e02f3d
+0, 78, 78, 1, 38400, 0xfddd061d
+0, 79, 79, 1, 38400, 0x4563e9d6
+0, 80, 80, 1, 38400, 0xc8ac10d1
+0, 81, 81, 1, 38400, 0x97f8c3fa
+0, 82, 82, 1, 38400, 0x86190eb1
+0, 83, 83, 1, 38400, 0xc9022d65
+0, 84, 84, 1, 38400, 0x345738d5
+0, 85, 85, 1, 38400, 0x457ae80e
diff --git a/ffmpeg1/tests/ref/fate/ws_snd b/ffmpeg1/tests/ref/fate/ws_snd
new file mode 100644
index 0000000..4004e33
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/ws_snd
@@ -0,0 +1 @@
+023317c7876aa5271f086f753d84561b
diff --git a/ffmpeg1/tests/ref/fate/wtv-demux b/ffmpeg1/tests/ref/fate/wtv-demux
new file mode 100644
index 0000000..362c55b
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/wtv-demux
@@ -0,0 +1,141 @@
+#tb 0: 1/10000000
+#tb 1: 1/10000000
+1, -2, -2, 240000, 576, 0x9b6e1638
+1, 239998, 239998, 240000, 576, 0x0ca91183
+1, 479998, 479998, 240000, 576, 0xec6a180f
+1, 719998, 719998, 240000, 576, 0x478a2b9b
+1, 959998, 959998, 240000, 576, 0x00fa15b3
+1, 1199998, 1199998, 240000, 576, 0xfb551816
+1, 1439998, 1439998, 240000, 576, 0x422e12bd
+1, 1679998, 1679998, 240000, 576, 0xa7581b29
+1, 1919998, 1919998, 240000, 576, 0xd4b31a74
+1, 2159998, 2159998, 240000, 576, 0x11521b10
+1, 2399998, 2399998, 240000, 576, 0x3dcc1474
+1, 2639998, 2639998, 240000, 576, 0x66c31aab
+1, 2879998, 2879998, 240000, 576, 0x97f318a8
+1, 3119998, 3119998, 240000, 576, 0xd3fb1a30
+1, 3359998, 3359998, 240000, 576, 0xd2bd16af
+1, 3599998, 3599998, 240000, 576, 0x6c10146a
+1, 3839998, 3839998, 240000, 576, 0x10d81468
+1, 4079998, 4079998, 240000, 576, 0x3813162d
+1, 4319998, 4319998, 240000, 576, 0x89e71d95
+1, 4559998, 4559998, 240000, 576, 0xd1c717f9
+1, 4799998, 4799998, 240000, 576, 0x1a311e5f
+1, 5039998, 5039998, 240000, 576, 0x0ea80e05
+1, 5279998, 5279998, 240000, 576, 0x2f1718f2
+1, 5519998, 5519998, 240000, 576, 0xffe01e13
+1, 5759998, 5759998, 240000, 576, 0xa7b02296
+1, 5999998, 5999998, 240000, 576, 0x199f1597
+1, 6239998, 6239998, 240000, 576, 0xdea217ba
+1, 6479998, 6479998, 240000, 576, 0x8a790f01
+1, 6719998, 6719998, 240000, 576, 0x23e80038
+1, 6959998, 6959998, 240000, 576, 0x75dc048a
+1, 7199998, 7199998, 240000, 576, 0xeb4b0d93
+1, 7439998, 7439998, 240000, 576, 0xde1322f5
+1, 7679998, 7679998, 240000, 576, 0xc3131f35
+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, F=0x0
+1, 8879998, 8879998, 240000, 576, 0x31771239
+0, 9086331, 9086331, 400000, 7492, 0x1a47f3e4, F=0x0
+1, 9119998, 9119998, 240000, 576, 0x3ce4097c
+1, 9359998, 9359998, 240000, 576, 0x180e15f4
+0, 9486442, 10686331, 400000, 25068, 0xcb70a744, F=0x0
+1, 9599998, 9599998, 240000, 576, 0x30db0604
+1, 9839998, 9839998, 240000, 576, 0x9b290284
+0, 9886442, 9886442, 400000, 7212, 0x0ab9f558, F=0x0
+1, 10079998, 10079998, 240000, 576, 0xcf340753
+0, 10286442, 10286442, 400000, 7612, 0xa93054f0, F=0x0
+1, 10319998, 10319998, 240000, 576, 0xdaa41457
+1, 10559998, 10559998, 240000, 576, 0x34d310a2
+0, 10686331, 11886331, 400000, 22868, 0xa77db64a, F=0x0
+1, 10799998, 10799998, 240000, 576, 0x58b31010
+1, 11039998, 11039998, 240000, 576, 0x19610f54
+0, 11086442, 11086442, 400000, 6260, 0x6cf76411, F=0x0
+1, 11279998, 11279998, 240000, 576, 0x17762352
+0, 11486331, 11486331, 400000, 6156, 0xe168394b, F=0x0
+1, 11519998, 11519998, 240000, 576, 0x1fea1448
+1, 11759998, 11759998, 240000, 576, 0x55840a01
+0, 11886331, 13086442, 400000, 23364, 0x53164f1e, F=0x0
+1, 11999998, 11999998, 240000, 576, 0x6c9c24ce
+1, 12239998, 12239998, 240000, 576, 0x955f1e97
+0, 12286442, 12286442, 400000, 6708, 0x89877269, F=0x0
+1, 12479998, 12479998, 240000, 576, 0x2827134f
+0, 12686442, 12686442, 400000, 6908, 0x8d62a249, F=0x0
+1, 12719998, 12719998, 240000, 576, 0x34a01c29
+1, 12959998, 12959998, 240000, 576, 0x7d351e52
+0, 13086442, 14286442, 400000, 38156, 0xec41f682
+1, 13199998, 13199998, 240000, 576, 0x00c91d9e
+1, 13439998, 13439998, 240000, 576, 0x57ea1a97
+0, 13486331, 13486331, 400000, 5764, 0xcc04534b, F=0x0
+1, 13679998, 13679998, 240000, 576, 0xef3a1c74
+0, 13886331, 13886331, 400000, 5388, 0xb8a1c3c5, F=0x0
+1, 13919998, 13919998, 240000, 576, 0x11fc217d
+1, 14159998, 14159998, 240000, 576, 0x59ce20e5
+0, 14286442, 15486331, 400000, 16764, 0x59460d96, F=0x0
+1, 14399998, 14399998, 240000, 576, 0xaafc1dbf
+1, 14639998, 14639998, 240000, 576, 0xdd941609
+0, 14686331, 14686331, 400000, 5548, 0x5c91e93d, F=0x0
+1, 14879998, 14879998, 240000, 576, 0x900420b0
+0, 15086331, 15086331, 400000, 5652, 0x5e321aed, F=0x0
+1, 15119998, 15119998, 240000, 576, 0x5f4f1aa1
+1, 15359998, 15359998, 240000, 576, 0x7d7e18de
+0, 15486331, 16686331, 400000, 15564, 0xefdf5080, F=0x0
+1, 15599998, 15599998, 240000, 576, 0x986c0d9d
+1, 15839998, 15839998, 240000, 576, 0xcb4c21c0
+0, 15886331, 15886331, 400000, 6492, 0xd1d5c5f8, F=0x0
+1, 16079998, 16079998, 240000, 576, 0xbcfb1e8b
+0, 16286331, 16286331, 400000, 5604, 0xf9472b44, F=0x0
+1, 16319998, 16319998, 240000, 576, 0xcb541b4c
+1, 16559998, 16559998, 240000, 576, 0x980426e9
+0, 16686331, 17886331, 400000, 17924, 0x45815b7b, F=0x0
+1, 16799998, 16799998, 240000, 576, 0x09d00aa0
+1, 17039998, 17039998, 240000, 576, 0xad591374
+0, 17086442, 17086442, 400000, 5020, 0x3cc5e554, F=0x0
+1, 17279998, 17279998, 240000, 576, 0x97bf1461
+0, 17486442, 17486442, 400000, 5276, 0xa0554c12, F=0x0
+1, 17519998, 17519998, 240000, 576, 0xdc871cc4
+1, 17759998, 17759998, 240000, 576, 0x56781896
+0, 17886331, 19086442, 400000, 31460, 0x5765eb5f
+1, 17999998, 17999998, 240000, 576, 0xc77714e3
+1, 18239998, 18239998, 240000, 576, 0x280e18d4
+0, 18286331, 18286331, 400000, 4972, 0x91adbab7, F=0x0
+1, 18479998, 18479998, 240000, 576, 0xbc0d2302
+0, 18686442, 18686442, 400000, 5580, 0xfea707cb, F=0x0
+1, 18719998, 18719998, 240000, 576, 0x79191384
+1, 18959998, 18959998, 240000, 576, 0x65481c97
+0, 19086442, 20286331, 400000, 17412, 0x0afe4d27, F=0x0
+1, 19199998, 19199998, 240000, 576, 0xc94d227d
+1, 19439998, 19439998, 240000, 576, 0xa68a1f14
+0, 19486442, 19486442, 400000, 5236, 0x03f55309, F=0x0
+1, 19679998, 19679998, 240000, 576, 0x6af11a5c
+0, 19886331, 19886331, 400000, 4924, 0x558e753c, F=0x0
+1, 19919998, 19919998, 240000, 576, 0x4d1019ef
+1, 20159998, 20159998, 240000, 576, 0x3b1b17b5
+0, 20286331, 21486331, 400000, 15396, 0xf145d121, F=0x0
+1, 20399998, 20399998, 240000, 576, 0xcdd8159f
+1, 20639998, 20639998, 240000, 576, 0x97cd1d06
+0, 20686331, 20686331, 400000, 4708, 0x43066a92, F=0x0
+1, 20879998, 20879998, 240000, 576, 0x5d1b1123
+0, 21086442, 21086442, 400000, 4332, 0x9e22bcba, F=0x0
+1, 21119998, 21119998, 240000, 576, 0x888d0cb0
+1, 21359998, 21359998, 240000, 576, 0x556e1dad
+0, 21486331, 22686442, 400000, 12876, 0x46ff9ef4, F=0x0
+1, 21599998, 21599998, 240000, 576, 0xf7af0bce
+1, 21839998, 21839998, 240000, 576, 0xb5da160a
+0, 21886442, 21886442, 400000, 5940, 0x27cba62e, F=0x0
+1, 22079998, 22079998, 240000, 576, 0x4a8d0e98
+0, 22286442, 22286442, 400000, 6124, 0x6bab0a6d, F=0x0
+1, 22319998, 22319998, 240000, 576, 0x183b1c7e
+1, 22559998, 22559998, 240000, 576, 0xc47120e6
+0, 22686442, 23886442, 400000, 36428, 0x942f9648
+1, 22799998, 22799998, 240000, 576, 0xb1f31346
+0, 23086331, 23086331, 400000, 6660, 0x545a0db7, F=0x0
+0, 23486331, 23486331, 400000, 6780, 0x2d1d4189, F=0x0
+0, 23886442, 25086331, 400000, 16460, 0x7c3b3ca4, F=0x0
+0, 24286442, 24286442, 400000, 6724, 0x8538cc6f, F=0x0
+0, 24686442, 24686442, 400000, 7068, 0x69574fd0, F=0x0
+0, 25086331, 26286331, 400000, 19552, 0xf230e854, F=0x0
diff --git a/ffmpeg1/tests/ref/fate/xface b/ffmpeg1/tests/ref/fate/xface
new file mode 100644
index 0000000..7f1f1e6
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/xface
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 288, 0x87ddaef8
diff --git a/ffmpeg1/tests/ref/fate/xmv-demux b/ffmpeg1/tests/ref/fate/xmv-demux
new file mode 100644
index 0000000..49f22c9
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/xmv-demux
@@ -0,0 +1,183 @@
+#tb 0: 1/1000
+#tb 1: 16/11025
+0, 0, 0, 0, 1508, 0xefceba48
+1, 0, 0, 83, 5976, 0xfa2c2db9
+1, 83, 83, 83, 5976, 0x256b935c
+1, 166, 166, 83, 5976, 0xa78a9563
+1, 249, 249, 83, 5976, 0x4ea056f4
+1, 332, 332, 83, 5976, 0xda772d8d
+1, 415, 415, 83, 5976, 0xafacf7c9
+0, 640, 640, 0, 108, 0x06713c96, F=0x0
+0, 680, 680, 0, 952, 0xd306df7e, F=0x0
+0, 720, 720, 0, 2312, 0xaf316585, F=0x0
+1, 498, 498, 83, 5976, 0xdeb003f4
+0, 760, 760, 0, 3872, 0xfc1c527c, F=0x0
+0, 800, 800, 0, 20, 0xaffc0edd, F=0x0
+0, 840, 840, 0, 6600, 0xe1b66c7f, F=0x0
+1, 581, 581, 28, 2016, 0xa7380d36
+0, 880, 880, 0, 6868, 0xd5b3f631, F=0x0
+1, 609, 609, 28, 2016, 0xbc090bac
+0, 920, 920, 0, 8420, 0xf70ee33b, F=0x0
+1, 637, 637, 28, 2016, 0x6f8c164c
+0, 960, 960, 0, 13144, 0x9a54ef39, F=0x0
+1, 665, 665, 28, 2016, 0x13b80e28
+0, 1000, 1000, 0, 6340, 0xe55bf555, F=0x0
+1, 693, 693, 28, 2016, 0xd40ff863
+0, 1040, 1040, 0, 3736, 0x0b23f89f, F=0x0
+1, 721, 721, 28, 2016, 0x4d530ed7
+0, 1080, 1080, 0, 2624, 0x79e2e451, F=0x0
+1, 749, 749, 30, 2160, 0x0fbc37eb
+0, 1120, 1120, 0, 1860, 0x63886f11, F=0x0
+1, 779, 779, 192, 13824, 0x82fb2602
+0, 1160, 1160, 0, 1244, 0x74594601, F=0x0
+0, 1200, 1200, 0, 564, 0xf4561dfb, F=0x0
+0, 1240, 1240, 0, 80, 0xbf8e2e30, F=0x0
+0, 1280, 1280, 0, 20, 0xa0990c29, F=0x0
+1, 971, 971, 192, 13824, 0x08771caf
+1, 1163, 1163, 192, 13824, 0xdf7d4a65
+1, 1355, 1355, 193, 13896, 0x24bf3f47
+1, 1548, 1548, 50, 3600, 0x9ad26b9f
+1, 1598, 1598, 50, 3600, 0x8c666fd6
+1, 1648, 1648, 50, 3600, 0x305c6ca1
+1, 1698, 1698, 50, 3600, 0x48b04e1e
+0, 2480, 2480, 0, 104, 0x12413980, F=0x0
+0, 2520, 2520, 0, 796, 0x2e698ed3, F=0x0
+1, 1748, 1748, 50, 3600, 0x8c915935
+0, 2560, 2560, 0, 1808, 0x8b3e6e5e, F=0x0
+0, 2600, 2600, 0, 4712, 0xdbd51737, F=0x0
+1, 1798, 1798, 50, 3600, 0xa8f45e01
+0, 2640, 2640, 0, 5548, 0xee9c831c, F=0x0
+0, 2680, 2680, 0, 6152, 0x9c18ccc1, F=0x0
+1, 1848, 1848, 53, 3816, 0xc64cc5ed
+0, 2720, 2720, 0, 6452, 0x7860462a, F=0x0
+1, 1901, 1901, 27, 1944, 0x0ac2e3f1
+0, 2760, 2760, 0, 6676, 0xe1b1c9e4, F=0x0
+1, 1928, 1928, 27, 1944, 0x2197dccd
+0, 2800, 2800, 0, 10904, 0x0bded7b7, F=0x0
+1, 1955, 1955, 27, 1944, 0x0c02e77f
+0, 2840, 2840, 0, 12844, 0xe6d16cff, F=0x0
+1, 1982, 1982, 27, 1944, 0x675ee06a
+0, 2880, 2880, 0, 10920, 0xe114c46b, F=0x0
+1, 2009, 2009, 30, 2160, 0x0d803a8b
+0, 2920, 2920, 0, 5952, 0xb7464634, F=0x0
+1, 2039, 2039, 93, 6696, 0xa7a0dfea
+0, 2960, 2960, 0, 4732, 0x2fa2e36d, F=0x0
+0, 3000, 3000, 0, 2592, 0xf54ddd57, F=0x0
+0, 3040, 3040, 0, 1516, 0x4a1cd4d5, F=0x0
+0, 3080, 3080, 0, 864, 0x49889afc, F=0x0
+1, 2132, 2132, 93, 6696, 0x59aa3145
+0, 3120, 3120, 0, 468, 0x3932e6a4, F=0x0
+0, 3160, 3160, 0, 116, 0x2b8341e6, F=0x0
+0, 3200, 3200, 0, 16, 0x6a3109cf, F=0x0
+1, 2225, 2225, 93, 6696, 0x69be4d78
+1, 2318, 2318, 93, 6696, 0x64064c67
+1, 2411, 2411, 93, 6696, 0xc8536f98
+1, 2504, 2504, 93, 6696, 0xc0ce5199
+1, 2597, 2597, 94, 6768, 0x3b275c58
+1, 2691, 2691, 123, 8856, 0x90e5b37c
+0, 4000, 4000, 0, 1508, 0xefceba48
+1, 2814, 2814, 123, 8856, 0x86b33366
+1, 2937, 2937, 123, 8856, 0x19e18797
+1, 3060, 3060, 123, 8856, 0x0a0c7fbd
+1, 3183, 3183, 124, 8928, 0x4a9b2d42
+0, 4640, 4640, 0, 100, 0x45023894, F=0x0
+0, 4680, 4680, 0, 948, 0xa65ed345, F=0x0
+0, 4720, 4720, 0, 2808, 0xd7285746, F=0x0
+0, 4760, 4760, 40, 5372, 0x05794175, F=0x0
+1, 3307, 3307, 21, 1512, 0xed8b3f4b
+0, 4800, 4800, 40, 11596, 0x8636eca7, F=0x0
+1, 3328, 3328, 21, 1512, 0xa27d3891
+0, 4840, 4840, 40, 11524, 0xe1f39be3, F=0x0
+1, 3349, 3349, 21, 1512, 0xb0f13eb6
+0, 4880, 4880, 40, 23392, 0xab053f05, F=0x0
+1, 3370, 3370, 23, 1656, 0xe5a98324
+0, 4920, 4920, 40, 4560, 0x03197d07, F=0x0
+1, 3393, 3393, 31, 2232, 0x15445433
+0, 4960, 4960, 40, 4440, 0x1cc361a2, F=0x0
+1, 3424, 3424, 31, 2232, 0x5cb348a9
+0, 5000, 5000, 40, 23688, 0x16030634, F=0x0
+1, 3455, 3455, 31, 2232, 0xf10347da
+0, 5040, 5040, 40, 16132, 0xf0eca799, F=0x0
+1, 3486, 3486, 34, 2448, 0x3e16a175
+0, 5080, 5080, 40, 29896, 0x0c0988ea, F=0x0
+1, 3520, 3520, 35, 2520, 0x17e3ca2b
+0, 5120, 5120, 40, 19956, 0x0093aa0b, F=0x0
+1, 3555, 3555, 27, 1944, 0x35c2de84
+0, 5160, 5160, 40, 16392, 0x8829a9ca, F=0x0
+1, 3582, 3582, 27, 1944, 0x55b4db40
+0, 5200, 5200, 40, 16772, 0x9a4a546d, F=0x0
+1, 3609, 3609, 29, 2088, 0xdaae14b2
+0, 5240, 5240, 40, 8920, 0xcd8ca203, F=0x0
+1, 3638, 3638, 27, 1944, 0x92ccd37f
+0, 5280, 5280, 40, 9632, 0x53c1d37b, F=0x0
+1, 3665, 3665, 27, 1944, 0x70efede1
+0, 5320, 5320, 40, 8976, 0xfe4da2cc, F=0x0
+1, 3692, 3692, 27, 1944, 0x7601d304
+0, 5360, 5360, 40, 6680, 0x35348fe0, F=0x0
+1, 3719, 3719, 27, 1944, 0x3922ebc2
+0, 5400, 5400, 40, 9228, 0xcbf62b0c, F=0x0
+1, 3746, 3746, 30, 2160, 0xde462f2e
+0, 5440, 5440, 40, 5108, 0xd1d88511, F=0x0
+1, 3776, 3776, 26, 1872, 0x467ac1d2
+0, 5480, 5480, 40, 10016, 0xaff4b2b2, F=0x0
+1, 3802, 3802, 26, 1872, 0xa1e4cd43
+0, 5520, 5520, 40, 7468, 0x23e81ab8, F=0x0
+1, 3828, 3828, 26, 1872, 0x1dceccc6
+0, 5560, 5560, 40, 4172, 0x253cd05b, F=0x0
+1, 3854, 3854, 26, 1872, 0x2bbad2a5
+0, 5600, 5600, 40, 8188, 0x7ede743f, F=0x0
+1, 3880, 3880, 26, 1872, 0xc603d44d
+0, 5640, 5640, 40, 2884, 0x2dec55a3, F=0x0
+1, 3906, 3906, 26, 1872, 0x1b4cc261
+0, 5680, 5680, 40, 3900, 0xd0666a18, F=0x0
+1, 3932, 3932, 26, 1872, 0x10edd6cf
+0, 5720, 5720, 40, 2996, 0x9cc99b8c, F=0x0
+1, 3958, 3958, 33, 2376, 0xecdb9d61
+0, 5760, 5760, 40, 2156, 0xae612776, F=0x0
+1, 3991, 3991, 36, 2592, 0x5559eced
+0, 5800, 5800, 40, 3988, 0x0d2c9992, F=0x0
+0, 5840, 5840, 40, 1512, 0x6281fc00, F=0x0
+1, 4027, 4027, 36, 2592, 0x8848dfc7
+0, 5880, 5880, 40, 6544, 0xb75c2562, F=0x0
+1, 4063, 4063, 36, 2592, 0x4ca2d7da
+0, 5920, 5920, 40, 4108, 0xfb21efc9, F=0x0
+1, 4099, 4099, 36, 2592, 0x285fd7e6
+0, 5960, 5960, 40, 1096, 0x85922a37, F=0x0
+0, 6000, 6000, 40, 9740, 0xe57d7647, F=0x0
+1, 4135, 4135, 36, 2592, 0x2717e404
+0, 6040, 6040, 40, 416, 0x61c2ea02, F=0x0
+1, 4171, 4171, 36, 2592, 0xf106111a
+0, 6080, 6080, 40, 336, 0x1dc5ac1c, F=0x0
+1, 4207, 4207, 36, 2592, 0xd7d01119
+0, 6120, 6120, 40, 204, 0x16f57017, F=0x0
+1, 4243, 4243, 36, 2592, 0x550cfeda
+0, 6160, 6160, 40, 112, 0x78374234, F=0x0
+0, 6200, 6200, 40, 40, 0x6cb21985, F=0x0
+1, 4279, 4279, 36, 2592, 0x47ad00c4
+1, 4315, 4315, 36, 2592, 0x39bbf306
+1, 4351, 4351, 45, 3240, 0x69addfce
+1, 4396, 4396, 297, 21384, 0x254f63e0
+1, 4693, 4693, 298, 21456, 0x2f7a9859
+0, 6840, 6840, 40, 14420, 0x53324ca4, F=0x0
+0, 6880, 6880, 40, 40, 0x10971420, F=0x0
+1, 4991, 4991, 521, 37512, 0x6e962928
+1, 5512, 5512, 38, 2736, 0x1dc91c69
+0, 8000, 8000, 40, 24904, 0x15574f7e
+1, 5550, 5550, 38, 2736, 0x023434fd
+1, 5588, 5588, 38, 2736, 0x906f1541
+0, 8160, 8160, 40, 1908, 0xccb2dd3c, F=0x0
+1, 5626, 5626, 38, 2736, 0x85a31102
+0, 8200, 8200, 40, 4676, 0xbfa42b7e, F=0x0
+1, 5664, 5664, 42, 3024, 0x9296a5f3
+0, 8240, 8240, 40, 3600, 0x87c9dc58, F=0x0
+0, 8280, 8280, 40, 8184, 0x504a8e65, F=0x0
+1, 5706, 5706, 27, 1944, 0x7bf4dedc
+0, 8320, 8320, 40, 9636, 0x2efb3006, F=0x0
+1, 5733, 5733, 27, 1944, 0x4196c404
+1, 5760, 5760, 27, 1944, 0xcda97c7a
+0, 8360, 8360, 40, 9580, 0x0fb6f4e8, F=0x0
+1, 5787, 5787, 27, 1944, 0x5f4922b2
+0, 8400, 8400, 40, 7840, 0xe996f564, F=0x0
+1, 5814, 5814, 29, 2088, 0x37dfc157
+0, 8440, 8440, 40, 4208, 0xe9c2fba2, F=0x0
+0, 8480, 8480, 40, 556, 0x3f1e077c, F=0x0
diff --git a/ffmpeg1/tests/ref/fate/xtea b/ffmpeg1/tests/ref/fate/xtea
new file mode 100644
index 0000000..fed0b4d
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/xtea
@@ -0,0 +1 @@
+Test encryption/decryption success.
diff --git a/ffmpeg1/tests/ref/fate/xwma-demux b/ffmpeg1/tests/ref/fate/xwma-demux
new file mode 100644
index 0000000..83a3b08
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/xwma-demux
@@ -0,0 +1 @@
+CRC=0x2ac2159e
diff --git a/ffmpeg1/tests/ref/fate/xxan-wc4 b/ffmpeg1/tests/ref/fate/xxan-wc4
new file mode 100644
index 0000000..88dcc98
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/xxan-wc4
@@ -0,0 +1,22 @@
+#tb 0: 1/15
+0, 0, 0, 1, 79360, 0x8537821b
+0, 1, 1, 1, 79360, 0x110c4343
+0, 2, 2, 1, 79360, 0xa85105bb
+0, 3, 3, 1, 79360, 0x87431836
+0, 4, 4, 1, 79360, 0x5c701720
+0, 5, 5, 1, 79360, 0x20308ce4
+0, 6, 6, 1, 79360, 0xe51d3794
+0, 7, 7, 1, 79360, 0x80e6f1e0
+0, 8, 8, 1, 79360, 0x5aff64cc
+0, 9, 9, 1, 79360, 0x1a3d9ab3
+0, 10, 10, 1, 79360, 0xe154a195
+0, 11, 11, 1, 79360, 0x608dafdc
+0, 12, 12, 1, 79360, 0x93edf73f
+0, 13, 13, 1, 79360, 0x56d97281
+0, 14, 14, 1, 79360, 0xe7a284e6
+0, 15, 15, 1, 79360, 0xd4e5e513
+0, 16, 16, 1, 79360, 0x0a952ab1
+0, 17, 17, 1, 79360, 0x3b21c91c
+0, 18, 18, 1, 79360, 0x943656cb
+0, 19, 19, 1, 79360, 0xffbdb94b
+0, 20, 20, 1, 79360, 0x74976e16
diff --git a/ffmpeg1/tests/ref/fate/yop b/ffmpeg1/tests/ref/fate/yop
new file mode 100644
index 0000000..1920281
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/yop
@@ -0,0 +1,7 @@
+#tb 0: 1/12
+0, 0, 0, 1, 302760, 0xf24dfa37
+0, 1, 1, 1, 302760, 0xcedcbb6c
+0, 2, 2, 1, 302760, 0xc87716a2
+0, 3, 3, 1, 302760, 0x7e378e5a
+0, 4, 4, 1, 302760, 0xd4a19734
+0, 5, 5, 1, 302760, 0x26e93266
diff --git a/ffmpeg1/tests/ref/fate/zerocodec b/ffmpeg1/tests/ref/fate/zerocodec
new file mode 100644
index 0000000..2d368c3
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/zerocodec
@@ -0,0 +1,39 @@
+#tb 0: 417083/10000000
+0, 0, 0, 1, 1843200, 0x04154bd5
+0, 1, 1, 1, 1843200, 0x3a872d04
+0, 2, 2, 1, 1843200, 0x3b1304a0
+0, 3, 3, 1, 1843200, 0x7474f383
+0, 4, 4, 1, 1843200, 0xce7d1331
+0, 5, 5, 1, 1843200, 0x3cdf496b
+0, 6, 6, 1, 1843200, 0xe9096da2
+0, 7, 7, 1, 1843200, 0x30be7925
+0, 8, 8, 1, 1843200, 0x600b820d
+0, 9, 9, 1, 1843200, 0xe7bb8df1
+0, 10, 10, 1, 1843200, 0x62848e08
+0, 11, 11, 1, 1843200, 0x9a71a7d5
+0, 12, 12, 1, 1843200, 0x743a9f10
+0, 13, 13, 1, 1843200, 0x62b0b185
+0, 14, 14, 1, 1843200, 0xd94eac47
+0, 15, 15, 1, 1843200, 0xa1007b1b
+0, 16, 16, 1, 1843200, 0x11d72cd6
+0, 17, 17, 1, 1843200, 0x141aee09
+0, 18, 18, 1, 1843200, 0x9a90c9d4
+0, 19, 19, 1, 1843200, 0x6bd5cd4c
+0, 20, 20, 1, 1843200, 0xdf2ec1cb
+0, 21, 21, 1, 1843200, 0xeecbcb6c
+0, 22, 22, 1, 1843200, 0x9ecace2f
+0, 23, 23, 1, 1843200, 0x7b59c318
+0, 24, 24, 1, 1843200, 0x050baf2d
+0, 25, 25, 1, 1843200, 0xada36a49
+0, 26, 26, 1, 1843200, 0x4f4d684f
+0, 27, 27, 1, 1843200, 0x9ddc8f33
+0, 28, 28, 1, 1843200, 0x914d9c7e
+0, 29, 29, 1, 1843200, 0x0dc3cab8
+0, 30, 30, 1, 1843200, 0x98f8d766
+0, 31, 31, 1, 1843200, 0x872e3c7b
+0, 32, 32, 1, 1843200, 0xdf7b3cea
+0, 33, 33, 1, 1843200, 0xf7864e53
+0, 34, 34, 1, 1843200, 0x13315ba8
+0, 35, 35, 1, 1843200, 0xc4586114
+0, 36, 36, 1, 1843200, 0x57a96275
+0, 37, 37, 1, 1843200, 0x6e756704
diff --git a/ffmpeg1/tests/ref/fate/zlib b/ffmpeg1/tests/ref/fate/zlib
new file mode 100644
index 0000000..4ff76ff
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/zlib
@@ -0,0 +1,2 @@
+#tb 0: 100/2997
+0, 0, 0, 1, 253440, 0x94af61e5
diff --git a/ffmpeg1/tests/ref/fate/zmbv-15bit b/ffmpeg1/tests/ref/fate/zmbv-15bit
new file mode 100644
index 0000000..384bb65
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/zmbv-15bit
@@ -0,0 +1,160 @@
+#tb 0: 250000/1585341
+0, 0, 0, 1, 192000, 0x8f9020f2
+0, 1, 1, 1, 192000, 0xbfba7f63
+0, 2, 2, 1, 192000, 0x96b48d11
+0, 3, 3, 1, 192000, 0xf91727d5
+0, 4, 4, 1, 192000, 0xf91727d5
+0, 5, 5, 1, 192000, 0xf91727d5
+0, 6, 6, 1, 192000, 0xf91727d5
+0, 7, 7, 1, 192000, 0xf91727d5
+0, 8, 8, 1, 192000, 0xf91727d5
+0, 9, 9, 1, 192000, 0xf91727d5
+0, 10, 10, 1, 192000, 0xf91727d5
+0, 11, 11, 1, 192000, 0xf91727d5
+0, 12, 12, 1, 192000, 0xf91727d5
+0, 13, 13, 1, 192000, 0xf91727d5
+0, 14, 14, 1, 192000, 0xf91727d5
+0, 15, 15, 1, 192000, 0xf91727d5
+0, 16, 16, 1, 192000, 0xf91727d5
+0, 17, 17, 1, 192000, 0x61c4e431
+0, 18, 18, 1, 192000, 0x61c4e431
+0, 19, 19, 1, 192000, 0x61c4e431
+0, 20, 20, 1, 192000, 0x61c4e431
+0, 21, 21, 1, 192000, 0x1fb3f649
+0, 22, 22, 1, 192000, 0x1fb3f649
+0, 23, 23, 1, 192000, 0x1fb3f649
+0, 24, 24, 1, 192000, 0x1fb3f649
+0, 25, 25, 1, 192000, 0x1fb3f649
+0, 26, 26, 1, 192000, 0x14f72c22
+0, 27, 27, 1, 192000, 0x14f72c22
+0, 28, 28, 1, 192000, 0x14f72c22
+0, 29, 29, 1, 192000, 0x14f72c22
+0, 30, 30, 1, 192000, 0x8cae3816
+0, 31, 31, 1, 192000, 0x8cae3816
+0, 32, 32, 1, 192000, 0x8cae3816
+0, 33, 33, 1, 192000, 0x8cae3816
+0, 34, 34, 1, 192000, 0x8cae3816
+0, 35, 35, 1, 192000, 0x2b6f2c22
+0, 36, 36, 1, 192000, 0x2b6f2c22
+0, 37, 37, 1, 192000, 0x2b6f2c22
+0, 38, 38, 1, 192000, 0x2b6f2c22
+0, 39, 39, 1, 192000, 0xc568024c
+0, 40, 40, 1, 192000, 0xc568024c
+0, 41, 41, 1, 192000, 0xc568024c
+0, 42, 42, 1, 192000, 0xc568024c
+0, 43, 43, 1, 192000, 0xc568024c
+0, 44, 44, 1, 192000, 0xa93b440a
+0, 45, 45, 1, 192000, 0xa93b440a
+0, 46, 46, 1, 192000, 0xa93b440a
+0, 47, 47, 1, 192000, 0xa93b440a
+0, 48, 48, 1, 192000, 0x798a2f1f
+0, 49, 49, 1, 192000, 0x798a2f1f
+0, 50, 50, 1, 192000, 0x798a2f1f
+0, 51, 51, 1, 192000, 0x798a2f1f
+0, 52, 52, 1, 192000, 0x798a2f1f
+0, 53, 53, 1, 192000, 0xf04288c5
+0, 54, 54, 1, 192000, 0xf04288c5
+0, 55, 55, 1, 192000, 0xf04288c5
+0, 56, 56, 1, 192000, 0xf04288c5
+0, 57, 57, 1, 192000, 0x4aa04a04
+0, 58, 58, 1, 192000, 0x4aa04a04
+0, 59, 59, 1, 192000, 0x4aa04a04
+0, 60, 60, 1, 192000, 0x4aa04a04
+0, 61, 61, 1, 192000, 0x4aa04a04
+0, 62, 62, 1, 192000, 0xb0304d01
+0, 63, 63, 1, 192000, 0xb0304d01
+0, 64, 64, 1, 192000, 0xb0304d01
+0, 65, 65, 1, 192000, 0xb0304d01
+0, 66, 66, 1, 192000, 0xef353b13
+0, 67, 67, 1, 192000, 0xef353b13
+0, 68, 68, 1, 192000, 0xef353b13
+0, 69, 69, 1, 192000, 0xef353b13
+0, 70, 70, 1, 192000, 0xef353b13
+0, 71, 71, 1, 192000, 0xbf823519
+0, 72, 72, 1, 192000, 0xbf823519
+0, 73, 73, 1, 192000, 0xbf823519
+0, 74, 74, 1, 192000, 0xbf823519
+0, 75, 75, 1, 192000, 0xd0352c22
+0, 76, 76, 1, 192000, 0xd0352c22
+0, 77, 77, 1, 192000, 0xd0352c22
+0, 78, 78, 1, 192000, 0xd0352c22
+0, 79, 79, 1, 192000, 0xd0352c22
+0, 80, 80, 1, 192000, 0x817299a6
+0, 81, 81, 1, 192000, 0xfb1475ca
+0, 82, 82, 1, 192000, 0xfcd278c7
+0, 83, 83, 1, 192000, 0xa08742fd
+0, 84, 84, 1, 192000, 0x47c245fa
+0, 85, 85, 1, 192000, 0xf7e7b48b
+0, 86, 86, 1, 192000, 0xf56378c7
+0, 87, 87, 1, 192000, 0x80bc54eb
+0, 88, 88, 1, 192000, 0xae59221e
+0, 89, 89, 1, 192000, 0x7d0fc869
+0, 90, 90, 1, 192000, 0x8e89da57
+0, 91, 91, 1, 192000, 0xf0a9f53c
+0, 92, 92, 1, 192000, 0x658d013f
+0, 93, 93, 1, 192000, 0x90ef5ae5
+0, 94, 94, 1, 192000, 0x93b81f21
+0, 95, 95, 1, 192000, 0x61e545fa
+0, 96, 96, 1, 192000, 0xc6688ab5
+0, 97, 97, 1, 192000, 0x72032e12
+0, 98, 98, 1, 192000, 0xf28c3a06
+0, 99, 99, 1, 192000, 0xf1bc221e
+0, 100, 100, 1, 192000, 0x941bc869
+0, 101, 101, 1, 192000, 0xe95ead84
+0, 102, 102, 1, 192000, 0x61dbda57
+0, 103, 103, 1, 192000, 0x79800739
+0, 104, 104, 1, 192000, 0x00c31927
+0, 105, 105, 1, 192000, 0x74a3da57
+0, 106, 106, 1, 192000, 0xb98cf53c
+0, 107, 107, 1, 192000, 0xd3f9162a
+0, 108, 108, 1, 192000, 0x888c043c
+0, 109, 109, 1, 192000, 0x100f1f21
+0, 110, 110, 1, 192000, 0x41993d03
+0, 111, 111, 1, 192000, 0x01a548f7
+0, 112, 112, 1, 192000, 0xbe5372cd
+0, 113, 113, 1, 192000, 0x0fec4000
+0, 114, 114, 1, 192000, 0x80e9340c
+0, 115, 115, 1, 192000, 0xea582818
+0, 116, 116, 1, 192000, 0x5c3a2e12
+0, 117, 117, 1, 192000, 0x5c2b4ef1
+0, 118, 118, 1, 192000, 0xf2409fa0
+0, 119, 119, 1, 192000, 0x4bc472cd
+0, 120, 120, 1, 192000, 0x3dcb96a9
+0, 121, 121, 1, 192000, 0xff978ab5
+0, 122, 122, 1, 192000, 0xff72013f
+0, 123, 123, 1, 192000, 0x2f530d33
+0, 124, 124, 1, 192000, 0xa3350d33
+0, 125, 125, 1, 192000, 0x6be6251b
+0, 126, 126, 1, 192000, 0x07f081be
+0, 127, 127, 1, 192000, 0xb5d957e8
+0, 128, 128, 1, 192000, 0x43c551ee
+0, 129, 129, 1, 192000, 0x19224ef1
+0, 130, 130, 1, 192000, 0x0720e64b
+0, 131, 131, 1, 192000, 0x3c53f53c
+0, 132, 132, 1, 192000, 0x8534043c
+0, 133, 133, 1, 192000, 0xb7c7ef42
+0, 134, 134, 1, 192000, 0x9e3e0739
+0, 135, 135, 1, 192000, 0x95e43d03
+0, 136, 136, 1, 192000, 0x92473d03
+0, 137, 137, 1, 192000, 0x636757e8
+0, 138, 138, 1, 192000, 0xba3aec45
+0, 139, 139, 1, 192000, 0xfd9e013f
+0, 140, 140, 1, 192000, 0x108c1927
+0, 141, 141, 1, 192000, 0x29db1030
+0, 142, 142, 1, 192000, 0xe0172e12
+0, 143, 143, 1, 192000, 0x744260df
+0, 144, 144, 1, 192000, 0xc59478c7
+0, 145, 145, 1, 192000, 0xa84475ca
+0, 146, 146, 1, 192000, 0x9d2866d9
+0, 147, 147, 1, 192000, 0xc49342fd
+0, 148, 148, 1, 192000, 0x13e5bd82
+0, 149, 149, 1, 192000, 0x10d10549
+0, 150, 150, 1, 192000, 0xf5ca3b13
+0, 151, 151, 1, 192000, 0x8c27a9a4
+0, 152, 152, 1, 192000, 0xcc4f64e9
+0, 153, 153, 1, 192000, 0x020c67e6
+0, 154, 154, 1, 192000, 0xaf4773da
+0, 155, 155, 1, 192000, 0x62093e10
+0, 156, 156, 1, 192000, 0x96783519
+0, 157, 157, 1, 192000, 0x8b9a113d
+0, 158, 158, 1, 192000, 0x9050f946
diff --git a/ffmpeg1/tests/ref/fate/zmbv-16bit b/ffmpeg1/tests/ref/fate/zmbv-16bit
new file mode 100644
index 0000000..cb39014
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/zmbv-16bit
@@ -0,0 +1,160 @@
+#tb 0: 250000/1585341
+0, 0, 0, 1, 192000, 0xe869dc94
+0, 1, 1, 1, 192000, 0x742932f2
+0, 2, 2, 1, 192000, 0x742932f2
+0, 3, 3, 1, 192000, 0x742932f2
+0, 4, 4, 1, 192000, 0x742932f2
+0, 5, 5, 1, 192000, 0x742932f2
+0, 6, 6, 1, 192000, 0x742932f2
+0, 7, 7, 1, 192000, 0x742932f2
+0, 8, 8, 1, 192000, 0x742932f2
+0, 9, 9, 1, 192000, 0x742932f2
+0, 10, 10, 1, 192000, 0x742932f2
+0, 11, 11, 1, 192000, 0x742932f2
+0, 12, 12, 1, 192000, 0x742932f2
+0, 13, 13, 1, 192000, 0xb718e72e
+0, 14, 14, 1, 192000, 0xb718e72e
+0, 15, 15, 1, 192000, 0xb718e72e
+0, 16, 16, 1, 192000, 0xb718e72e
+0, 17, 17, 1, 192000, 0x7507f946
+0, 18, 18, 1, 192000, 0x7507f946
+0, 19, 19, 1, 192000, 0x7507f946
+0, 20, 20, 1, 192000, 0x7507f946
+0, 21, 21, 1, 192000, 0x7507f946
+0, 22, 22, 1, 192000, 0xe620321c
+0, 23, 23, 1, 192000, 0xe620321c
+0, 24, 24, 1, 192000, 0xe620321c
+0, 25, 25, 1, 192000, 0xe620321c
+0, 26, 26, 1, 192000, 0x9b5f410d
+0, 27, 27, 1, 192000, 0x9b5f410d
+0, 28, 28, 1, 192000, 0x9b5f410d
+0, 29, 29, 1, 192000, 0x9b5f410d
+0, 30, 30, 1, 192000, 0x9b5f410d
+0, 31, 31, 1, 192000, 0xea2c3519
+0, 32, 32, 1, 192000, 0xea2c3519
+0, 33, 33, 1, 192000, 0xea2c3519
+0, 34, 34, 1, 192000, 0xea2c3519
+0, 35, 35, 1, 192000, 0x1acb0549
+0, 36, 36, 1, 192000, 0x1acb0549
+0, 37, 37, 1, 192000, 0x1acb0549
+0, 38, 38, 1, 192000, 0x1acb0549
+0, 39, 39, 1, 192000, 0x1acb0549
+0, 40, 40, 1, 192000, 0x3a064a04
+0, 41, 41, 1, 192000, 0x3a064a04
+0, 42, 42, 1, 192000, 0x3a064a04
+0, 43, 43, 1, 192000, 0x3a064a04
+0, 44, 44, 1, 192000, 0xcede321c
+0, 45, 45, 1, 192000, 0xcede321c
+0, 46, 46, 1, 192000, 0xcede321c
+0, 47, 47, 1, 192000, 0xcede321c
+0, 48, 48, 1, 192000, 0xcede321c
+0, 49, 49, 1, 192000, 0xef4988c5
+0, 50, 50, 1, 192000, 0xef4988c5
+0, 51, 51, 1, 192000, 0xef4988c5
+0, 52, 52, 1, 192000, 0xef4988c5
+0, 53, 53, 1, 192000, 0x1fc84707
+0, 54, 54, 1, 192000, 0x1fc84707
+0, 55, 55, 1, 192000, 0x1fc84707
+0, 56, 56, 1, 192000, 0x1fc84707
+0, 57, 57, 1, 192000, 0x1fc84707
+0, 58, 58, 1, 192000, 0xbabd4a04
+0, 59, 59, 1, 192000, 0xbabd4a04
+0, 60, 60, 1, 192000, 0xbabd4a04
+0, 61, 61, 1, 192000, 0xbabd4a04
+0, 62, 62, 1, 192000, 0x649b3816
+0, 63, 63, 1, 192000, 0x649b3816
+0, 64, 64, 1, 192000, 0x649b3816
+0, 65, 65, 1, 192000, 0x649b3816
+0, 66, 66, 1, 192000, 0x649b3816
+0, 67, 67, 1, 192000, 0x206b3519
+0, 68, 68, 1, 192000, 0x206b3519
+0, 69, 69, 1, 192000, 0x206b3519
+0, 70, 70, 1, 192000, 0x206b3519
+0, 71, 71, 1, 192000, 0x206b3519
+0, 72, 72, 1, 192000, 0x25982f1f
+0, 73, 73, 1, 192000, 0x25982f1f
+0, 74, 74, 1, 192000, 0x25982f1f
+0, 75, 75, 1, 192000, 0x25982f1f
+0, 76, 76, 1, 192000, 0xde0e202e
+0, 77, 77, 1, 192000, 0xced09fa0
+0, 78, 78, 1, 192000, 0x3b4f84bb
+0, 79, 79, 1, 192000, 0xa09c57e8
+0, 80, 80, 1, 192000, 0xf3dd75ca
+0, 81, 81, 1, 192000, 0x4d4ab788
+0, 82, 82, 1, 192000, 0x4ac67bc4
+0, 83, 83, 1, 192000, 0xd61057e8
+0, 84, 84, 1, 192000, 0x03bc251b
+0, 85, 85, 1, 192000, 0xd263cb66
+0, 86, 86, 1, 192000, 0xe3dddd54
+0, 87, 87, 1, 192000, 0x460cf839
+0, 88, 88, 1, 192000, 0xbae1043c
+0, 89, 89, 1, 192000, 0xe6435de2
+0, 90, 90, 1, 192000, 0x340e0d33
+0, 91, 91, 1, 192000, 0x9acd3d03
+0, 92, 92, 1, 192000, 0x1d346cd3
+0, 93, 93, 1, 192000, 0xdabe221e
+0, 94, 94, 1, 192000, 0xeb4b310f
+0, 95, 95, 1, 192000, 0xec8f2e12
+0, 96, 96, 1, 192000, 0xe96fcb66
+0, 97, 97, 1, 192000, 0x3ec1b081
+0, 98, 98, 1, 192000, 0xb72fdd54
+0, 99, 99, 1, 192000, 0xced40a36
+0, 100, 100, 1, 192000, 0x56171c24
+0, 101, 101, 1, 192000, 0xc9f7dd54
+0, 102, 102, 1, 192000, 0x0eeff839
+0, 103, 103, 1, 192000, 0x295c1927
+0, 104, 104, 1, 192000, 0xdde00739
+0, 105, 105, 1, 192000, 0x51903a06
+0, 106, 106, 1, 192000, 0xe16a84bb
+0, 107, 107, 1, 192000, 0xf5b248f7
+0, 108, 108, 1, 192000, 0x054769d6
+0, 109, 109, 1, 192000, 0x9d327ec1
+0, 110, 110, 1, 192000, 0x94470d33
+0, 111, 111, 1, 192000, 0x9671fb36
+0, 112, 112, 1, 192000, 0x0853013f
+0, 113, 113, 1, 192000, 0x0844221e
+0, 114, 114, 1, 192000, 0x9e5972cd
+0, 115, 115, 1, 192000, 0xf7ce45fa
+0, 116, 116, 1, 192000, 0xe9d569d6
+0, 117, 117, 1, 192000, 0xabb05de2
+0, 118, 118, 1, 192000, 0x54d5043c
+0, 119, 119, 1, 192000, 0x00000000
+0, 120, 120, 1, 192000, 0x00000000
+0, 121, 121, 1, 192000, 0x00000000
+0, 122, 122, 1, 192000, 0x00000000
+0, 123, 123, 1, 192000, 0x00000000
+0, 124, 124, 1, 192000, 0x00000000
+0, 125, 125, 1, 192000, 0x00000000
+0, 126, 126, 1, 192000, 0x00000000
+0, 127, 127, 1, 192000, 0x00000000
+0, 128, 128, 1, 192000, 0xd6050414
+0, 129, 129, 1, 192000, 0xf9f90594
+0, 130, 130, 1, 192000, 0xa6220704
+0, 131, 131, 1, 192000, 0x54570858
+0, 132, 132, 1, 192000, 0xd81109ac
+0, 133, 133, 1, 192000, 0xc0540afc
+0, 134, 134, 1, 192000, 0x83ee0c20
+0, 135, 135, 1, 192000, 0x2a810d3c
+0, 136, 136, 1, 192000, 0xb3a71844
+0, 137, 137, 1, 192000, 0xd4ff1c7c
+0, 138, 138, 1, 192000, 0x92b21fdc
+0, 139, 139, 1, 192000, 0x03912364
+0, 140, 140, 1, 192000, 0x65c9262c
+0, 141, 141, 1, 192000, 0xf2e5290c
+0, 142, 142, 1, 192000, 0xc8cc2b4c
+0, 143, 143, 1, 192000, 0x272a2f1c
+0, 144, 144, 1, 192000, 0xa672313c
+0, 145, 145, 1, 192000, 0xab01331c
+0, 146, 146, 1, 192000, 0x92643458
+0, 147, 147, 1, 192000, 0x9a943548
+0, 148, 148, 1, 192000, 0x3eb735ac
+0, 149, 149, 1, 192000, 0x3eb735ac
+0, 150, 150, 1, 192000, 0x3eb735ac
+0, 151, 151, 1, 192000, 0x3eb735ac
+0, 152, 152, 1, 192000, 0x3eb735ac
+0, 153, 153, 1, 192000, 0x3eb735ac
+0, 154, 154, 1, 192000, 0x3eb735ac
+0, 155, 155, 1, 192000, 0x3eb735ac
+0, 156, 156, 1, 192000, 0x3eb735ac
+0, 157, 157, 1, 192000, 0x3eb735ac
+0, 158, 158, 1, 192000, 0x3eb735ac
diff --git a/ffmpeg1/tests/ref/fate/zmbv-32bit b/ffmpeg1/tests/ref/fate/zmbv-32bit
new file mode 100644
index 0000000..e1df123
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/zmbv-32bit
@@ -0,0 +1,160 @@
+#tb 0: 250000/1585341
+0, 0, 0, 1, 192000, 0x3ac10e8e
+0, 1, 1, 1, 192000, 0xb772ee57
+0, 2, 2, 1, 192000, 0x9b6e648a
+0, 3, 3, 1, 192000, 0x3d9c33e3
+0, 4, 4, 1, 192000, 0x006db76d
+0, 5, 5, 1, 192000, 0x006db76d
+0, 6, 6, 1, 192000, 0x006db76d
+0, 7, 7, 1, 192000, 0x006db76d
+0, 8, 8, 1, 192000, 0x006db76d
+0, 9, 9, 1, 192000, 0x006db76d
+0, 10, 10, 1, 192000, 0x006db76d
+0, 11, 11, 1, 192000, 0x006db76d
+0, 12, 12, 1, 192000, 0x006db76d
+0, 13, 13, 1, 192000, 0x006db76d
+0, 14, 14, 1, 192000, 0x006db76d
+0, 15, 15, 1, 192000, 0x7b9b28fb
+0, 16, 16, 1, 192000, 0x7b9b28fb
+0, 17, 17, 1, 192000, 0x7b9b28fb
+0, 18, 18, 1, 192000, 0x7b9b28fb
+0, 19, 19, 1, 192000, 0x7b9b28fb
+0, 20, 20, 1, 192000, 0x7b9b28fb
+0, 21, 21, 1, 192000, 0x67be3519
+0, 22, 22, 1, 192000, 0x67be3519
+0, 23, 23, 1, 192000, 0x67be3519
+0, 24, 24, 1, 192000, 0x67be3519
+0, 25, 25, 1, 192000, 0x67be3519
+0, 26, 26, 1, 192000, 0x2ece70dd
+0, 27, 27, 1, 192000, 0x2ece70dd
+0, 28, 28, 1, 192000, 0x2ece70dd
+0, 29, 29, 1, 192000, 0x2ece70dd
+0, 30, 30, 1, 192000, 0x2ece70dd
+0, 31, 31, 1, 192000, 0x2ece70dd
+0, 32, 32, 1, 192000, 0xd3a382cb
+0, 33, 33, 1, 192000, 0xd3a382cb
+0, 34, 34, 1, 192000, 0xd3a382cb
+0, 35, 35, 1, 192000, 0xd3a382cb
+0, 36, 36, 1, 192000, 0xd3a382cb
+0, 37, 37, 1, 192000, 0xd3a382cb
+0, 38, 38, 1, 192000, 0x2d3d7fce
+0, 39, 39, 1, 192000, 0x2d3d7fce
+0, 40, 40, 1, 192000, 0x2d3d7fce
+0, 41, 41, 1, 192000, 0x2d3d7fce
+0, 42, 42, 1, 192000, 0x2d3d7fce
+0, 43, 43, 1, 192000, 0x36fd52fb
+0, 44, 44, 1, 192000, 0x36fd52fb
+0, 45, 45, 1, 192000, 0x36fd52fb
+0, 46, 46, 1, 192000, 0x36fd52fb
+0, 47, 47, 1, 192000, 0x36fd52fb
+0, 48, 48, 1, 192000, 0x36fd52fb
+0, 49, 49, 1, 192000, 0xa38e9ab3
+0, 50, 50, 1, 192000, 0x57095eef
+0, 51, 51, 1, 192000, 0x5c4f4d01
+0, 52, 52, 1, 192000, 0xac20321c
+0, 53, 53, 1, 192000, 0x7e370e40
+0, 54, 54, 1, 192000, 0xe9d92925
+0, 55, 55, 1, 192000, 0xfef4d26d
+0, 56, 56, 1, 192000, 0x77a4ab94
+0, 57, 57, 1, 192000, 0x802fb18e
+0, 58, 58, 1, 192000, 0xce968db2
+0, 59, 59, 1, 192000, 0x21e6ab94
+0, 60, 60, 1, 192000, 0x309d45fa
+0, 61, 61, 1, 192000, 0x5d193709
+0, 62, 62, 1, 192000, 0x72190d33
+0, 63, 63, 1, 192000, 0xdaed162a
+0, 64, 64, 1, 192000, 0x2fcaf23f
+0, 65, 65, 1, 192000, 0x8986d45d
+0, 66, 66, 1, 192000, 0xcf7de34e
+0, 67, 67, 1, 192000, 0x22390d33
+0, 68, 68, 1, 192000, 0x4b29132d
+0, 69, 69, 1, 192000, 0xbffe1f21
+0, 70, 70, 1, 192000, 0xa4eee34e
+0, 71, 71, 1, 192000, 0xe85ae64b
+0, 72, 72, 1, 192000, 0xb7bef23f
+0, 73, 73, 1, 192000, 0x05ab1927
+0, 74, 74, 1, 192000, 0x915f6cd3
+0, 75, 75, 1, 192000, 0x524d69d6
+0, 76, 76, 1, 192000, 0x62da78c7
+0, 77, 77, 1, 192000, 0xbf6f84bb
+0, 78, 78, 1, 192000, 0xbe9f6cd3
+0, 79, 79, 1, 192000, 0x80d0132d
+0, 80, 80, 1, 192000, 0x0789251b
+0, 81, 81, 1, 192000, 0xba1a1f21
+0, 82, 82, 1, 192000, 0x542b42fd
+0, 83, 83, 1, 192000, 0x0ff951ee
+0, 84, 84, 1, 192000, 0x785048f7
+0, 85, 85, 1, 192000, 0x5a50251b
+0, 86, 86, 1, 192000, 0xd5d73a06
+0, 87, 87, 1, 192000, 0x7a3a54eb
+0, 88, 88, 1, 192000, 0x1e2b5de2
+0, 89, 89, 1, 192000, 0xeac542fd
+0, 90, 90, 1, 192000, 0x897a1f21
+0, 91, 91, 1, 192000, 0x61602b15
+0, 92, 92, 1, 192000, 0xb12f221e
+0, 93, 93, 1, 192000, 0x08541f21
+0, 94, 94, 1, 192000, 0xeebd251b
+0, 95, 95, 1, 192000, 0xc1132e12
+0, 96, 96, 1, 192000, 0x99642818
+0, 97, 97, 1, 192000, 0x9b8e162a
+0, 98, 98, 1, 192000, 0x21b81f21
+0, 99, 99, 1, 192000, 0x1abd1030
+0, 100, 100, 1, 192000, 0x0d613d03
+0, 101, 101, 1, 192000, 0xcb32132d
+0, 102, 102, 1, 192000, 0xc680162a
+0, 103, 103, 1, 192000, 0x8dea2818
+0, 104, 104, 1, 192000, 0x3c4e1927
+0, 105, 105, 1, 192000, 0xed733709
+0, 106, 106, 1, 192000, 0xf4051c24
+0, 107, 107, 1, 192000, 0xb8eb221e
+0, 108, 108, 1, 192000, 0x1a412818
+0, 109, 109, 1, 192000, 0x6ee6162a
+0, 110, 110, 1, 192000, 0xe1a248f7
+0, 111, 111, 1, 192000, 0xc2c2221e
+0, 112, 112, 1, 192000, 0x7fdf1f21
+0, 113, 113, 1, 192000, 0x85bc251b
+0, 114, 114, 1, 192000, 0xe77c251b
+0, 115, 115, 1, 192000, 0x8789340c
+0, 116, 116, 1, 192000, 0xb6014000
+0, 117, 117, 1, 192000, 0xaa9542fd
+0, 118, 118, 1, 192000, 0x36ce54eb
+0, 119, 119, 1, 192000, 0xd1324ef1
+0, 120, 120, 1, 192000, 0x0ade60df
+0, 121, 121, 1, 192000, 0xfac56cd3
+0, 122, 122, 1, 192000, 0x00000000
+0, 123, 123, 1, 192000, 0x00000000
+0, 124, 124, 1, 192000, 0xc61c026a
+0, 125, 125, 1, 192000, 0x60810842
+0, 126, 126, 1, 192000, 0x65081393
+0, 127, 127, 1, 192000, 0xc806209f
+0, 128, 128, 1, 192000, 0x53aa32cb
+0, 129, 129, 1, 192000, 0x176546ef
+0, 130, 130, 1, 192000, 0x4e095d0e
+0, 131, 131, 1, 192000, 0xf74b7774
+0, 132, 132, 1, 192000, 0x32809306
+0, 133, 133, 1, 192000, 0x5219ae81
+0, 134, 134, 1, 192000, 0x3badcc40
+0, 135, 135, 1, 192000, 0x1387ea5d
+0, 136, 136, 1, 192000, 0xe0c606f0
+0, 137, 137, 1, 192000, 0x106f2197
+0, 138, 138, 1, 192000, 0xfe2139cf
+0, 139, 139, 1, 192000, 0x907d4f0a
+0, 140, 140, 1, 192000, 0x04415dad
+0, 141, 141, 1, 192000, 0xe0b864b6
+0, 142, 142, 1, 192000, 0xcb2a64b8
+0, 143, 143, 1, 192000, 0xcb2a64b8
+0, 144, 144, 1, 192000, 0xcb2a64b8
+0, 145, 145, 1, 192000, 0xcb2a64b8
+0, 146, 146, 1, 192000, 0xcb2a64b8
+0, 147, 147, 1, 192000, 0xcb2a64b8
+0, 148, 148, 1, 192000, 0xcb2a64b8
+0, 149, 149, 1, 192000, 0xcb2a64b8
+0, 150, 150, 1, 192000, 0xcb2a64b8
+0, 151, 151, 1, 192000, 0xcb2a64b8
+0, 152, 152, 1, 192000, 0xcb2a64b8
+0, 153, 153, 1, 192000, 0xcb2a64b8
+0, 154, 154, 1, 192000, 0xcb2a64b8
+0, 155, 155, 1, 192000, 0xcb2a64b8
+0, 156, 156, 1, 192000, 0xcb2a64b8
+0, 157, 157, 1, 192000, 0xcb2a64b8
+0, 158, 158, 1, 192000, 0xcb2a64b8
diff --git a/ffmpeg1/tests/ref/fate/zmbv-8bit b/ffmpeg1/tests/ref/fate/zmbv-8bit
new file mode 100644
index 0000000..f104c98
--- /dev/null
+++ b/ffmpeg1/tests/ref/fate/zmbv-8bit
@@ -0,0 +1,277 @@
+#tb 0: 15967/1119068
+0, 0, 0, 1, 192000, 0x5234b617
+0, 1, 1, 1, 192000, 0x5234b617
+0, 2, 2, 1, 192000, 0x5234b617
+0, 3, 3, 1, 192000, 0x5234b617
+0, 4, 4, 1, 192000, 0x5234b617
+0, 5, 5, 1, 192000, 0x5234b617
+0, 6, 6, 1, 192000, 0x5234b617
+0, 7, 7, 1, 192000, 0x5234b617
+0, 8, 8, 1, 192000, 0x5234b617
+0, 9, 9, 1, 192000, 0x5234b617
+0, 10, 10, 1, 192000, 0x5234b617
+0, 11, 11, 1, 192000, 0x5234b617
+0, 12, 12, 1, 192000, 0x5234b617
+0, 13, 13, 1, 192000, 0x5234b617
+0, 14, 14, 1, 192000, 0x5234b617
+0, 15, 15, 1, 192000, 0x5234b617
+0, 16, 16, 1, 192000, 0x5234b617
+0, 17, 17, 1, 192000, 0x5234b617
+0, 18, 18, 1, 192000, 0x5234b617
+0, 19, 19, 1, 192000, 0x5234b617
+0, 20, 20, 1, 192000, 0x5234b617
+0, 21, 21, 1, 192000, 0x5234b617
+0, 22, 22, 1, 192000, 0x5234b617
+0, 23, 23, 1, 192000, 0x5234b617
+0, 24, 24, 1, 192000, 0x5234b617
+0, 25, 25, 1, 192000, 0x5234b617
+0, 26, 26, 1, 192000, 0x5234b617
+0, 27, 27, 1, 192000, 0x5234b617
+0, 28, 28, 1, 192000, 0x5234b617
+0, 29, 29, 1, 192000, 0x5234b617
+0, 30, 30, 1, 192000, 0x5234b617
+0, 31, 31, 1, 192000, 0x5234b617
+0, 32, 32, 1, 192000, 0x5234b617
+0, 33, 33, 1, 192000, 0x5234b617
+0, 34, 34, 1, 192000, 0x5234b617
+0, 35, 35, 1, 192000, 0x5234b617
+0, 36, 36, 1, 192000, 0x5234b617
+0, 37, 37, 1, 192000, 0x5234b617
+0, 38, 38, 1, 192000, 0x5234b617
+0, 39, 39, 1, 192000, 0x5234b617
+0, 40, 40, 1, 192000, 0x5234b617
+0, 41, 41, 1, 192000, 0x5234b617
+0, 42, 42, 1, 192000, 0x5234b617
+0, 43, 43, 1, 192000, 0x5234b617
+0, 44, 44, 1, 192000, 0x5234b617
+0, 45, 45, 1, 192000, 0x5234b617
+0, 46, 46, 1, 192000, 0x5234b617
+0, 47, 47, 1, 192000, 0x5234b617
+0, 48, 48, 1, 192000, 0x5234b617
+0, 49, 49, 1, 192000, 0x5234b617
+0, 50, 50, 1, 192000, 0x5234b617
+0, 51, 51, 1, 192000, 0x5234b617
+0, 52, 52, 1, 192000, 0x5234b617
+0, 53, 53, 1, 192000, 0x5234b617
+0, 54, 54, 1, 192000, 0x5234b617
+0, 55, 55, 1, 192000, 0x5234b617
+0, 56, 56, 1, 192000, 0x5234b617
+0, 57, 57, 1, 192000, 0x5234b617
+0, 58, 58, 1, 192000, 0x5234b617
+0, 59, 59, 1, 192000, 0x5234b617
+0, 60, 60, 1, 192000, 0x5234b617
+0, 61, 61, 1, 192000, 0x5234b617
+0, 62, 62, 1, 192000, 0x5234b617
+0, 63, 63, 1, 192000, 0x5234b617
+0, 64, 64, 1, 192000, 0x5234b617
+0, 65, 65, 1, 192000, 0x5234b617
+0, 66, 66, 1, 192000, 0x5234b617
+0, 67, 67, 1, 192000, 0x5234b617
+0, 68, 68, 1, 192000, 0x5234b617
+0, 69, 69, 1, 192000, 0x5234b617
+0, 70, 70, 1, 192000, 0x5234b617
+0, 71, 71, 1, 192000, 0x5234b617
+0, 72, 72, 1, 192000, 0x5234b617
+0, 73, 73, 1, 192000, 0x5234b617
+0, 74, 74, 1, 192000, 0x5234b617
+0, 75, 75, 1, 192000, 0x5234b617
+0, 76, 76, 1, 192000, 0x5234b617
+0, 77, 77, 1, 192000, 0x5234b617
+0, 78, 78, 1, 192000, 0x5234b617
+0, 79, 79, 1, 192000, 0x5234b617
+0, 80, 80, 1, 192000, 0x5234b617
+0, 81, 81, 1, 192000, 0x5234b617
+0, 82, 82, 1, 192000, 0x5234b617
+0, 83, 83, 1, 192000, 0x5234b617
+0, 84, 84, 1, 192000, 0x5234b617
+0, 85, 85, 1, 192000, 0x5234b617
+0, 86, 86, 1, 192000, 0x0c148693
+0, 87, 87, 1, 192000, 0x973f438b
+0, 88, 88, 1, 192000, 0x602a279b
+0, 89, 89, 1, 192000, 0x739c7527
+0, 90, 90, 1, 192000, 0x4ef4b477
+0, 91, 91, 1, 192000, 0x8fffec23
+0, 92, 92, 1, 192000, 0xe192c706
+0, 93, 93, 1, 192000, 0xf38000e5
+0, 94, 94, 1, 192000, 0x628b9051
+0, 95, 95, 1, 192000, 0xd7c162c0
+0, 96, 96, 1, 192000, 0xd4b85307
+0, 97, 97, 1, 192000, 0x377cf8cf
+0, 98, 98, 1, 192000, 0xf1ffdff2
+0, 99, 99, 1, 192000, 0x95a0ab01
+0, 100, 100, 1, 192000, 0xeb69c7f0
+0, 101, 101, 1, 192000, 0xfbd0af52
+0, 102, 102, 1, 192000, 0x32da6d10
+0, 103, 103, 1, 192000, 0xca8e7836
+0, 104, 104, 1, 192000, 0x404cefe9
+0, 105, 105, 1, 192000, 0x0433e9c8
+0, 106, 106, 1, 192000, 0xd6e09ecf
+0, 107, 107, 1, 192000, 0xc9a822b5
+0, 108, 108, 1, 192000, 0x032f2398
+0, 109, 109, 1, 192000, 0x9e0305bf
+0, 110, 110, 1, 192000, 0x9d66c993
+0, 111, 111, 1, 192000, 0xe126b022
+0, 112, 112, 1, 192000, 0xb59d2829
+0, 113, 113, 1, 192000, 0x967ad5b1
+0, 114, 114, 1, 192000, 0xb76ad1dc
+0, 115, 115, 1, 192000, 0xc901e6e3
+0, 116, 116, 1, 192000, 0xd22bc862
+0, 117, 117, 1, 192000, 0xe7547295
+0, 118, 118, 1, 192000, 0x179a8d78
+0, 119, 119, 1, 192000, 0x87a4310f
+0, 120, 120, 1, 192000, 0x4e24d3b3
+0, 121, 121, 1, 192000, 0xb1b8e58a
+0, 122, 122, 1, 192000, 0x0ae55330
+0, 123, 123, 1, 192000, 0xdb3288ab
+0, 124, 124, 1, 192000, 0x31867a92
+0, 125, 125, 1, 192000, 0x2a44a0a5
+0, 126, 126, 1, 192000, 0x29c062f4
+0, 127, 127, 1, 192000, 0xf4df3a2b
+0, 128, 128, 1, 192000, 0x8e424f86
+0, 129, 129, 1, 192000, 0x25b901f9
+0, 130, 130, 1, 192000, 0x77af6cad
+0, 131, 131, 1, 192000, 0x0b82d562
+0, 132, 132, 1, 192000, 0x4322dc3e
+0, 133, 133, 1, 192000, 0x4322dc3e
+0, 134, 134, 1, 192000, 0x4322dc3e
+0, 135, 135, 1, 192000, 0x2c51f91e
+0, 136, 136, 1, 192000, 0x2c51f91e
+0, 137, 137, 1, 192000, 0x2c51f91e
+0, 138, 138, 1, 192000, 0x2c51f91e
+0, 139, 139, 1, 192000, 0x197128e5
+0, 140, 140, 1, 192000, 0x197128e5
+0, 141, 141, 1, 192000, 0x197128e5
+0, 142, 142, 1, 192000, 0xb67867c5
+0, 143, 143, 1, 192000, 0xb67867c5
+0, 144, 144, 1, 192000, 0xb67867c5
+0, 145, 145, 1, 192000, 0xb67867c5
+0, 146, 146, 1, 192000, 0x62fcac19
+0, 147, 147, 1, 192000, 0x62fcac19
+0, 148, 148, 1, 192000, 0x62fcac19
+0, 149, 149, 1, 192000, 0xe4f4f281
+0, 150, 150, 1, 192000, 0xe4f4f281
+0, 151, 151, 1, 192000, 0xe4f4f281
+0, 152, 152, 1, 192000, 0xe4f4f281
+0, 153, 153, 1, 192000, 0x060c3190
+0, 154, 154, 1, 192000, 0x060c3190
+0, 155, 155, 1, 192000, 0x060c3190
+0, 156, 156, 1, 192000, 0xe5c05bb4
+0, 157, 157, 1, 192000, 0xe5c05bb4
+0, 158, 158, 1, 192000, 0xe5c05bb4
+0, 159, 159, 1, 192000, 0xe5c05bb4
+0, 160, 160, 1, 192000, 0xd4b187fc
+0, 161, 161, 1, 192000, 0xd4b187fc
+0, 162, 162, 1, 192000, 0xd4b187fc
+0, 163, 163, 1, 192000, 0x9a549a6c
+0, 164, 164, 1, 192000, 0x9a549a6c
+0, 165, 165, 1, 192000, 0x9a549a6c
+0, 166, 166, 1, 192000, 0x9a549a6c
+0, 167, 167, 1, 192000, 0xd491bd50
+0, 168, 168, 1, 192000, 0xd491bd50
+0, 169, 169, 1, 192000, 0xd491bd50
+0, 170, 170, 1, 192000, 0xfdfad4a8
+0, 171, 171, 1, 192000, 0xfdfad4a8
+0, 172, 172, 1, 192000, 0xfdfad4a8
+0, 173, 173, 1, 192000, 0xfdfad4a8
+0, 174, 174, 1, 192000, 0x363ef77c
+0, 175, 175, 1, 192000, 0x363ef77c
+0, 176, 176, 1, 192000, 0x363ef77c
+0, 177, 177, 1, 192000, 0x80c016f7
+0, 178, 178, 1, 192000, 0x80c016f7
+0, 179, 179, 1, 192000, 0x80c016f7
+0, 180, 180, 1, 192000, 0x80c016f7
+0, 181, 181, 1, 192000, 0x65852e7f
+0, 182, 182, 1, 192000, 0x65852e7f
+0, 183, 183, 1, 192000, 0x65852e7f
+0, 184, 184, 1, 192000, 0xcb13542b
+0, 185, 185, 1, 192000, 0xcb13542b
+0, 186, 186, 1, 192000, 0xcb13542b
+0, 187, 187, 1, 192000, 0xcb13542b
+0, 188, 188, 1, 192000, 0xb7a5664f
+0, 189, 189, 1, 192000, 0xb7a5664f
+0, 190, 190, 1, 192000, 0xb7a5664f
+0, 191, 191, 1, 192000, 0x8a128fd7
+0, 192, 192, 1, 192000, 0x8a128fd7
+0, 193, 193, 1, 192000, 0x8a128fd7
+0, 194, 194, 1, 192000, 0x8a128fd7
+0, 195, 195, 1, 192000, 0x9674b39b
+0, 196, 196, 1, 192000, 0x9674b39b
+0, 197, 197, 1, 192000, 0x9674b39b
+0, 198, 198, 1, 192000, 0x2940e3b3
+0, 199, 199, 1, 192000, 0x2940e3b3
+0, 200, 200, 1, 192000, 0x2940e3b3
+0, 201, 201, 1, 192000, 0x2940e3b3
+0, 202, 202, 1, 192000, 0x0440e56b
+0, 203, 203, 1, 192000, 0x0440e56b
+0, 204, 204, 1, 192000, 0x0440e56b
+0, 205, 205, 1, 192000, 0xefa3d16b
+0, 206, 206, 1, 192000, 0xefa3d16b
+0, 207, 207, 1, 192000, 0xefa3d16b
+0, 208, 208, 1, 192000, 0xefa3d16b
+0, 209, 209, 1, 192000, 0x6569b257
+0, 210, 210, 1, 192000, 0x6569b257
+0, 211, 211, 1, 192000, 0x6569b257
+0, 212, 212, 1, 192000, 0x089985d7
+0, 213, 213, 1, 192000, 0x089985d7
+0, 214, 214, 1, 192000, 0x089985d7
+0, 215, 215, 1, 192000, 0x089985d7
+0, 216, 216, 1, 192000, 0x87e160af
+0, 217, 217, 1, 192000, 0x87e160af
+0, 218, 218, 1, 192000, 0x87e160af
+0, 219, 219, 1, 192000, 0x117433bb
+0, 220, 220, 1, 192000, 0x117433bb
+0, 221, 221, 1, 192000, 0x117433bb
+0, 222, 222, 1, 192000, 0x117433bb
+0, 223, 223, 1, 192000, 0xd9e0f8bc
+0, 224, 224, 1, 192000, 0xd9e0f8bc
+0, 225, 225, 1, 192000, 0xd9e0f8bc
+0, 226, 226, 1, 192000, 0x653cac38
+0, 227, 227, 1, 192000, 0x653cac38
+0, 228, 228, 1, 192000, 0x653cac38
+0, 229, 229, 1, 192000, 0x653cac38
+0, 230, 230, 1, 192000, 0x9070526c
+0, 231, 231, 1, 192000, 0x9070526c
+0, 232, 232, 1, 192000, 0x9070526c
+0, 233, 233, 1, 192000, 0x15e6e9c9
+0, 234, 234, 1, 192000, 0x15e6e9c9
+0, 235, 235, 1, 192000, 0x15e6e9c9
+0, 236, 236, 1, 192000, 0x15e6e9c9
+0, 237, 237, 1, 192000, 0x610eab25
+0, 238, 238, 1, 192000, 0x610eab25
+0, 239, 239, 1, 192000, 0x610eab25
+0, 240, 240, 1, 192000, 0xde2a829d
+0, 241, 241, 1, 192000, 0xde2a829d
+0, 242, 242, 1, 192000, 0xde2a829d
+0, 243, 243, 1, 192000, 0xde2a829d
+0, 244, 244, 1, 192000, 0x2014becd
+0, 245, 245, 1, 192000, 0x2014becd
+0, 246, 246, 1, 192000, 0x2014becd
+0, 247, 247, 1, 192000, 0x551e0f98
+0, 248, 248, 1, 192000, 0x551e0f98
+0, 249, 249, 1, 192000, 0x551e0f98
+0, 250, 250, 1, 192000, 0x551e0f98
+0, 251, 251, 1, 192000, 0x4aaa6bec
+0, 252, 252, 1, 192000, 0x4aaa6bec
+0, 253, 253, 1, 192000, 0x4aaa6bec
+0, 254, 254, 1, 192000, 0x4053d278
+0, 255, 255, 1, 192000, 0x4053d278
+0, 256, 256, 1, 192000, 0x4053d278
+0, 257, 257, 1, 192000, 0x4053d278
+0, 258, 258, 1, 192000, 0xa0e645db
+0, 259, 259, 1, 192000, 0xa0e645db
+0, 260, 260, 1, 192000, 0xa0e645db
+0, 261, 261, 1, 192000, 0x3f1fc327
+0, 262, 262, 1, 192000, 0x3f1fc327
+0, 263, 263, 1, 192000, 0x3f1fc327
+0, 264, 264, 1, 192000, 0x3f1fc327
+0, 265, 265, 1, 192000, 0xa4ca2a9a
+0, 266, 266, 1, 192000, 0xa4ca2a9a
+0, 267, 267, 1, 192000, 0xa4ca2a9a
+0, 268, 268, 1, 192000, 0xf1b2b22e
+0, 269, 269, 1, 192000, 0xf1b2b22e
+0, 270, 270, 1, 192000, 0xf1b2b22e
+0, 271, 271, 1, 192000, 0xf1b2b22e
+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/ffmpeg1/tests/ref/lavf-fate/latm b/ffmpeg1/tests/ref/lavf-fate/latm
new file mode 100644
index 0000000..8c4f541
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf-fate/latm
@@ -0,0 +1,3 @@
+eb13788e71c9b5bc7d62ceb748312bbb *./tests/data/lavf-fate/lavf.latm
+67876 ./tests/data/lavf-fate/lavf.latm
+./tests/data/lavf-fate/lavf.latm CRC=0xcf94c59d
diff --git a/ffmpeg1/tests/ref/lavf-fate/mp3 b/ffmpeg1/tests/ref/lavf-fate/mp3
new file mode 100644
index 0000000..361314b
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf-fate/mp3
@@ -0,0 +1,3 @@
+7fcf80c2059b5c058a6cdd2e2f798b6c *./tests/data/lavf-fate/lavf.mp3
+96366 ./tests/data/lavf-fate/lavf.mp3
+./tests/data/lavf-fate/lavf.mp3 CRC=0x6c9850fe
diff --git a/ffmpeg1/tests/ref/lavf-fate/ogg_vp3 b/ffmpeg1/tests/ref/lavf-fate/ogg_vp3
new file mode 100644
index 0000000..b77476d
--- /dev/null
+++ b/ffmpeg1/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/ffmpeg1/tests/ref/lavf/aiff b/ffmpeg1/tests/ref/lavf/aiff
new file mode 100644
index 0000000..2a5cd81
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/aiff
@@ -0,0 +1,3 @@
+b0d42747a6fc99a5cd1ab0e861671f3a *./tests/data/lavf/lavf.aif
+90182 ./tests/data/lavf/lavf.aif
+./tests/data/lavf/lavf.aif CRC=0xf1ae5536
diff --git a/ffmpeg1/tests/ref/lavf/alaw b/ffmpeg1/tests/ref/lavf/alaw
new file mode 100644
index 0000000..65bcf99
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/alaw
@@ -0,0 +1,3 @@
+8bce9c3758b0d38da2e0718b6ab57fb4 *./tests/data/lavf/lavf.al
+45056 ./tests/data/lavf/lavf.al
+./tests/data/lavf/lavf.al CRC=0x5e6d372b
diff --git a/ffmpeg1/tests/ref/lavf/asf b/ffmpeg1/tests/ref/lavf/asf
new file mode 100644
index 0000000..cfa53dc
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/asf
@@ -0,0 +1,3 @@
+3937dfece4b48c0cdd8f44bcab3cdd2d *./tests/data/lavf/lavf.asf
+333581 ./tests/data/lavf/lavf.asf
+./tests/data/lavf/lavf.asf CRC=0x51485213
diff --git a/ffmpeg1/tests/ref/lavf/ast b/ffmpeg1/tests/ref/lavf/ast
new file mode 100644
index 0000000..72a9824
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/ast
@@ -0,0 +1,3 @@
+7fa8cd2dd7453428e71930a7c65f7b62 *./tests/data/lavf/lavf.ast
+181696 ./tests/data/lavf/lavf.ast
+./tests/data/lavf/lavf.ast CRC=0x7bd585ff
diff --git a/ffmpeg1/tests/ref/lavf/au b/ffmpeg1/tests/ref/lavf/au
new file mode 100644
index 0000000..b9b70a1
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/au
@@ -0,0 +1,3 @@
+dc54f834a23ddc0c086a86f0cef898d7 *./tests/data/lavf/lavf.au
+90144 ./tests/data/lavf/lavf.au
+./tests/data/lavf/lavf.au CRC=0xf1ae5536
diff --git a/ffmpeg1/tests/ref/lavf/avi b/ffmpeg1/tests/ref/lavf/avi
new file mode 100644
index 0000000..056d0c7
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/avi
@@ -0,0 +1,3 @@
+feb26a85f820ede7e521a55be565f3b1 *./tests/data/lavf/lavf.avi
+330806 ./tests/data/lavf/lavf.avi
+./tests/data/lavf/lavf.avi CRC=0x4780846b
diff --git a/ffmpeg1/tests/ref/lavf/bmp b/ffmpeg1/tests/ref/lavf/bmp
new file mode 100644
index 0000000..8958855
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/bmp
@@ -0,0 +1,3 @@
+71f4d64a6b3c71f43a4eff526f84841c *./tests/data/images/bmp/02.bmp
+./tests/data/images/bmp/%02d.bmp CRC=0xe6c71946
+304182 ./tests/data/images/bmp/02.bmp
diff --git a/ffmpeg1/tests/ref/lavf/caf b/ffmpeg1/tests/ref/lavf/caf
new file mode 100644
index 0000000..f2ae9c3
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/caf
@@ -0,0 +1,3 @@
+6c97bfc8e455d5fb8b3b45806857a953 *./tests/data/lavf/lavf.caf
+90235 ./tests/data/lavf/lavf.caf
+./tests/data/lavf/lavf.caf CRC=0xf1ae5536
diff --git a/ffmpeg1/tests/ref/lavf/dpx b/ffmpeg1/tests/ref/lavf/dpx
new file mode 100644
index 0000000..0206bd7
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/dpx
@@ -0,0 +1,9 @@
+d2f0b4e854fda2d3b3bee84cef80593c *./tests/data/images/dpx/02.dpx
+./tests/data/images/dpx/%02d.dpx CRC=0x6da01946
+305792 ./tests/data/images/dpx/02.dpx
+075963c3c08978b6a20555ba09161434 *./tests/data/images/dpx/02.dpx
+./tests/data/images/dpx/%02d.dpx CRC=0xe5b9c023
+609920 ./tests/data/images/dpx/02.dpx
+b9f22728f8ff393bf30cf6cbd624fa95 *./tests/data/images/dpx/02.dpx
+./tests/data/images/dpx/%02d.dpx CRC=0xb6310a70
+407168 ./tests/data/images/dpx/02.dpx
diff --git a/ffmpeg1/tests/ref/lavf/dv_fmt b/ffmpeg1/tests/ref/lavf/dv_fmt
new file mode 100644
index 0000000..ed8c5cc
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/dv_fmt
@@ -0,0 +1,9 @@
+11be3e5caa2892236b3475c3f7807b76 *./tests/data/lavf/lavf.dv
+3600000 ./tests/data/lavf/lavf.dv
+./tests/data/lavf/lavf.dv CRC=0x25bdd732
+78db8504eefb660ed205b417157d4f44 *./tests/data/lavf/lavf.dv
+3600000 ./tests/data/lavf/lavf.dv
+./tests/data/lavf/lavf.dv CRC=0x1cec8738
+87d3b20f656235671383a7eaa2f66330 *./tests/data/lavf/lavf.dv
+3600000 ./tests/data/lavf/lavf.dv
+./tests/data/lavf/lavf.dv CRC=0x0e868a82
diff --git a/ffmpeg1/tests/ref/lavf/ffm b/ffmpeg1/tests/ref/lavf/ffm
new file mode 100644
index 0000000..6f67365
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/ffm
@@ -0,0 +1,3 @@
+d33fae310a7f6db1dc7fb74d1a9e0e6a *./tests/data/lavf/lavf.ffm
+376832 ./tests/data/lavf/lavf.ffm
+./tests/data/lavf/lavf.ffm CRC=0x5b136bb1
diff --git a/ffmpeg1/tests/ref/lavf/flm b/ffmpeg1/tests/ref/lavf/flm
new file mode 100644
index 0000000..59aac92
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/flm
@@ -0,0 +1,3 @@
+ef4783171ebbc38855331c9ead978322 *./tests/data/lavf/lavf.flm
+10137636 ./tests/data/lavf/lavf.flm
+./tests/data/lavf/lavf.flm CRC=0xcdf15757
diff --git a/ffmpeg1/tests/ref/lavf/flv_fmt b/ffmpeg1/tests/ref/lavf/flv_fmt
new file mode 100644
index 0000000..f014bec
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/flv_fmt
@@ -0,0 +1,3 @@
+0d229f87b3aad778074ace499359d137 *./tests/data/lavf/lavf.flv
+329554 ./tests/data/lavf/lavf.flv
+./tests/data/lavf/lavf.flv CRC=0x4eac88c5
diff --git a/ffmpeg1/tests/ref/lavf/gif b/ffmpeg1/tests/ref/lavf/gif
new file mode 100644
index 0000000..509ea24
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/gif
@@ -0,0 +1,24 @@
+e6089fd4ef3b9df44090ab3650bdd810 *./tests/data/lavf/lavf.gif
+2906401 ./tests/data/lavf/lavf.gif
+./tests/data/lavf/lavf.gif CRC=0x9825d7c0
+022dc66b5068404e88c618ce79d9eb5f *./tests/data/images/gif/02.gif
+./tests/data/images/gif/%02d.gif CRC=0x032e0034
+81538 ./tests/data/images/gif/02.gif
+759522b3025fcf8ed6aae582a18c5a14 *./tests/data/images/gif/02.gif
+./tests/data/images/gif/%02d.gif CRC=0x4c8f8a89
+38715 ./tests/data/images/gif/02.gif
+21e802ae7a2239bdbea6f915da1134b9 *./tests/data/images/gif/02.gif
+./tests/data/images/gif/%02d.gif CRC=0x4c8f8a89
+38715 ./tests/data/images/gif/02.gif
+fc4792ac40319344dc7027668a403fc3 *./tests/data/images/gif/02.gif
+./tests/data/images/gif/%02d.gif CRC=0x032e0034
+81538 ./tests/data/images/gif/02.gif
+022dc66b5068404e88c618ce79d9eb5f *./tests/data/images/gif/02.gif
+./tests/data/images/gif/%02d.gif CRC=0x032e0034
+81538 ./tests/data/images/gif/02.gif
+e3392f49c55aa794d3dc49189f52f257 *./tests/data/images/gif/02.gif
+./tests/data/images/gif/%02d.gif CRC=0x22d67c27
+63144 ./tests/data/images/gif/02.gif
+022dc66b5068404e88c618ce79d9eb5f *./tests/data/images/gif/02.gif
+./tests/data/images/gif/%02d.gif CRC=0x032e0034
+81538 ./tests/data/images/gif/02.gif
diff --git a/ffmpeg1/tests/ref/lavf/gxf b/ffmpeg1/tests/ref/lavf/gxf
new file mode 100644
index 0000000..9e7871d
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/gxf
@@ -0,0 +1,9 @@
+c8b3a8e3ba0185ce39122ac150c12bc3 *./tests/data/lavf/lavf.gxf
+795876 ./tests/data/lavf/lavf.gxf
+./tests/data/lavf/lavf.gxf CRC=0x147ff044
+b26bd3cb439dff8b33cd74a27a3fc2d6 *./tests/data/lavf/lavf.gxf
+794656 ./tests/data/lavf/lavf.gxf
+./tests/data/lavf/lavf.gxf CRC=0xe0199511
+e4721383461d7a9feae41435567c9257 *./tests/data/lavf/lavf.gxf
+795876 ./tests/data/lavf/lavf.gxf
+./tests/data/lavf/lavf.gxf CRC=0xd9d58865
diff --git a/ffmpeg1/tests/ref/lavf/ircam b/ffmpeg1/tests/ref/lavf/ircam
new file mode 100644
index 0000000..e29a7ad
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/ircam
@@ -0,0 +1,3 @@
+2cfae025de1b13098ef84a5e7f9947aa *./tests/data/lavf/lavf.ircam
+91136 ./tests/data/lavf/lavf.ircam
+./tests/data/lavf/lavf.ircam CRC=0xf1ae5536
diff --git a/ffmpeg1/tests/ref/lavf/ismv b/ffmpeg1/tests/ref/lavf/ismv
new file mode 100644
index 0000000..6f9f57b
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/ismv
@@ -0,0 +1,9 @@
+a24a0426b5f8dc896daaf18502e38790 *./tests/data/lavf/lavf.ismv
+312263 ./tests/data/lavf/lavf.ismv
+./tests/data/lavf/lavf.ismv CRC=0x9d9a638a
+1b98502911dd19a9792777de67922db2 *./tests/data/lavf/lavf.ismv
+321189 ./tests/data/lavf/lavf.ismv
+./tests/data/lavf/lavf.ismv CRC=0xe8130120
+a24a0426b5f8dc896daaf18502e38790 *./tests/data/lavf/lavf.ismv
+312263 ./tests/data/lavf/lavf.ismv
+./tests/data/lavf/lavf.ismv CRC=0x9d9a638a
diff --git a/ffmpeg1/tests/ref/lavf/jpg b/ffmpeg1/tests/ref/lavf/jpg
new file mode 100644
index 0000000..1309d74
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/jpg
@@ -0,0 +1,3 @@
+131878fee153a086d740543fbf2ab359 *./tests/data/images/jpg/02.jpg
+./tests/data/images/jpg/%02d.jpg CRC=0xe3509f33
+28406 ./tests/data/images/jpg/02.jpg
diff --git a/ffmpeg1/tests/ref/lavf/mkv b/ffmpeg1/tests/ref/lavf/mkv
new file mode 100644
index 0000000..64979b2
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/mkv
@@ -0,0 +1,6 @@
+b53f31e572394f225aff0bc82b5d1cc9 *./tests/data/lavf/lavf.mkv
+472553 ./tests/data/lavf/lavf.mkv
+./tests/data/lavf/lavf.mkv CRC=0x4780846b
+84dcb326fe85aeeb5768beb44372f248 *./tests/data/lavf/lavf.mkv
+320297 ./tests/data/lavf/lavf.mkv
+./tests/data/lavf/lavf.mkv CRC=0x4780846b
diff --git a/ffmpeg1/tests/ref/lavf/mmf b/ffmpeg1/tests/ref/lavf/mmf
new file mode 100644
index 0000000..fea8015
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/mmf
@@ -0,0 +1,3 @@
+b165af6f2e5c6c1de733e9d3848bcebb *./tests/data/lavf/lavf.mmf
+22611 ./tests/data/lavf/lavf.mmf
+./tests/data/lavf/lavf.mmf CRC=0x03633476
diff --git a/ffmpeg1/tests/ref/lavf/mov b/ffmpeg1/tests/ref/lavf/mov
new file mode 100644
index 0000000..2ed8ad0
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/mov
@@ -0,0 +1,12 @@
+fcbe7806047914d9751fd9053009df69 *./tests/data/lavf/lavf.mov
+367365 ./tests/data/lavf/lavf.mov
+./tests/data/lavf/lavf.mov CRC=0xb2f59ab4
+72eac0051107a16e41d5263dab640f26 *./tests/data/lavf/lavf.mov
+358455 ./tests/data/lavf/lavf.mov
+./tests/data/lavf/lavf.mov CRC=0xb2f59ab4
+cf6ea2e8d4d16626d9dbd9e3fb802ce6 *./tests/data/lavf/lavf.mov
+367549 ./tests/data/lavf/lavf.mov
+./tests/data/lavf/lavf.mov CRC=0x6e82384a
+7c932d24837f46ef57d3e40a61331565 *./tests/data/lavf/lavf.mov
+357837 ./tests/data/lavf/lavf.mov
+./tests/data/lavf/lavf.mov CRC=0xb2f59ab4
diff --git a/ffmpeg1/tests/ref/lavf/mpg b/ffmpeg1/tests/ref/lavf/mpg
new file mode 100644
index 0000000..798ee03
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/mpg
@@ -0,0 +1,9 @@
+ddc5cd5469eb8a0500f8a725baead5e5 *./tests/data/lavf/lavf.mpg
+372736 ./tests/data/lavf/lavf.mpg
+./tests/data/lavf/lavf.mpg CRC=0x5b136bb1
+7962eab004026dd7a8c0417470cdf574 *./tests/data/lavf/lavf.mpg
+389120 ./tests/data/lavf/lavf.mpg
+./tests/data/lavf/lavf.mpg CRC=0xbbbf92bc
+bb22933de60193bce9032f67ce6fcc23 *./tests/data/lavf/lavf.mpg
+372736 ./tests/data/lavf/lavf.mpg
+./tests/data/lavf/lavf.mpg CRC=0x5b136bb1
diff --git a/ffmpeg1/tests/ref/lavf/mulaw b/ffmpeg1/tests/ref/lavf/mulaw
new file mode 100644
index 0000000..c6fa058
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/mulaw
@@ -0,0 +1,3 @@
+e64027a96ad5907ee281deff3286da0a *./tests/data/lavf/lavf.ul
+45056 ./tests/data/lavf/lavf.ul
+./tests/data/lavf/lavf.ul CRC=0xe028b50a
diff --git a/ffmpeg1/tests/ref/lavf/mxf b/ffmpeg1/tests/ref/lavf/mxf
new file mode 100644
index 0000000..b1e46e9
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/mxf
@@ -0,0 +1,9 @@
+967f6ee9223c865328f4891465191108 *./tests/data/lavf/lavf.mxf
+525369 ./tests/data/lavf/lavf.mxf
+./tests/data/lavf/lavf.mxf CRC=0xdbfff6f1
+7788939d349d09a7f9b546e59376a496 *./tests/data/lavf/lavf.mxf
+560697 ./tests/data/lavf/lavf.mxf
+./tests/data/lavf/lavf.mxf CRC=0xb69f428b
+ce535b606423d117675213b16275206a *./tests/data/lavf/lavf.mxf
+525369 ./tests/data/lavf/lavf.mxf
+./tests/data/lavf/lavf.mxf CRC=0xdbfff6f1
diff --git a/ffmpeg1/tests/ref/lavf/mxf_d10 b/ffmpeg1/tests/ref/lavf/mxf_d10
new file mode 100644
index 0000000..8e08bdd
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/mxf_d10
@@ -0,0 +1,3 @@
+28cf73e6d35a8f7aba30c0ed2bd84924 *./tests/data/lavf/lavf.mxf_d10
+5330989 ./tests/data/lavf/lavf.mxf_d10
+./tests/data/lavf/lavf.mxf_d10 CRC=0x6c74d488
diff --git a/ffmpeg1/tests/ref/lavf/nut b/ffmpeg1/tests/ref/lavf/nut
new file mode 100644
index 0000000..72e59e8
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/nut
@@ -0,0 +1,3 @@
+56c403dd91ae1dd4569348381b2b43a4 *./tests/data/lavf/lavf.nut
+319902 ./tests/data/lavf/lavf.nut
+./tests/data/lavf/lavf.nut CRC=0x4780846b
diff --git a/ffmpeg1/tests/ref/lavf/ogg b/ffmpeg1/tests/ref/lavf/ogg
new file mode 100644
index 0000000..584e09b
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/ogg
@@ -0,0 +1,3 @@
+ce1734741fa50c6c85f9cc8f410a720c *./tests/data/lavf/lavf.ogg
+13985 ./tests/data/lavf/lavf.ogg
+./tests/data/lavf/lavf.ogg CRC=0x37a143ea
diff --git a/ffmpeg1/tests/ref/lavf/pam b/ffmpeg1/tests/ref/lavf/pam
new file mode 100644
index 0000000..d21ccd7
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/pam
@@ -0,0 +1,18 @@
+0dce5565222cf0f8b309467f279aecd2 *./tests/data/images/pam/02.pam
+./tests/data/images/pam/%02d.pam CRC=0x6da01946
+304191 ./tests/data/images/pam/02.pam
+2ed31ca8d8de560afb3e0fd7a873cde5 *./tests/data/images/pam/02.pam
+./tests/data/images/pam/%02d.pam CRC=0xf07d29cd
+405573 ./tests/data/images/pam/02.pam
+587284e40b78accd54fa92fdb7ca29f4 *./tests/data/images/pam/02.pam
+./tests/data/images/pam/%02d.pam CRC=0x418d2963
+101445 ./tests/data/images/pam/02.pam
+ebd43e97839b2538a79f35757e84ffb0 *./tests/data/images/pam/02.pam
+./tests/data/images/pam/%02d.pam CRC=0x831a2963
+202823 ./tests/data/images/pam/02.pam
+032538f0313b4f240b44a5bef115f5bf *./tests/data/images/pam/02.pam
+./tests/data/images/pam/%02d.pam CRC=0x5984c023
+608321 ./tests/data/images/pam/02.pam
+e8bd9f1830e6a9db201386e96580f869 *./tests/data/images/pam/02.pam
+./tests/data/images/pam/%02d.pam CRC=0x65707c37
+101447 ./tests/data/images/pam/02.pam
diff --git a/ffmpeg1/tests/ref/lavf/pbmpipe b/ffmpeg1/tests/ref/lavf/pbmpipe
new file mode 100644
index 0000000..d50ed71
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/pbmpipe
@@ -0,0 +1,3 @@
+8ced96f5b6b7362358199ae993b4ceb7 *./tests/data/lavf/pbmpipe.pbm
+317075 ./tests/data/lavf/pbmpipe.pbm
+./tests/data/lavf/pbmpipe.pbm CRC=0xfae0a1ba
diff --git a/ffmpeg1/tests/ref/lavf/pcx b/ffmpeg1/tests/ref/lavf/pcx
new file mode 100644
index 0000000..6568b60
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/pcx
@@ -0,0 +1,3 @@
+c4faf65ecc812ec8412cc26140c13bd5 *./tests/data/images/pcx/02.pcx
+./tests/data/images/pcx/%02d.pcx CRC=0x6da01946
+364147 ./tests/data/images/pcx/02.pcx
diff --git a/ffmpeg1/tests/ref/lavf/pgm b/ffmpeg1/tests/ref/lavf/pgm
new file mode 100644
index 0000000..4043f7a
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/pgm
@@ -0,0 +1,3 @@
+388f5c51a678ca6a52cc006095c12f08 *./tests/data/images/pgm/02.pgm
+./tests/data/images/pgm/%02d.pgm CRC=0x418d2963
+101391 ./tests/data/images/pgm/02.pgm
diff --git a/ffmpeg1/tests/ref/lavf/pgmpipe b/ffmpeg1/tests/ref/lavf/pgmpipe
new file mode 100644
index 0000000..28ad60e
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/pgmpipe
@@ -0,0 +1,3 @@
+04e66c8e9e064c8310bd657ee559bd70 *./tests/data/lavf/pgmpipe.pgm
+2534775 ./tests/data/lavf/pgmpipe.pgm
+./tests/data/lavf/pgmpipe.pgm CRC=0xadf48ba9
diff --git a/ffmpeg1/tests/ref/lavf/pixfmt b/ffmpeg1/tests/ref/lavf/pixfmt
new file mode 100644
index 0000000..bf62d90
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/pixfmt
@@ -0,0 +1,38 @@
+5641dba168ff665af1cdb4a91e1afdd6 *./tests/data/pixfmt/yuv420p.yuv
+304128 ./tests/data/pixfmt/yuv420p.yuv
+ac68f9fdd9d55efd0306d9b004038761 *./tests/data/pixfmt/yuv422p.yuv
+304128 ./tests/data/pixfmt/yuv422p.yuv
+5641dba168ff665af1cdb4a91e1afdd6 *./tests/data/pixfmt/yuv444p.yuv
+304128 ./tests/data/pixfmt/yuv444p.yuv
+ac68f9fdd9d55efd0306d9b004038761 *./tests/data/pixfmt/yuyv422.yuv
+304128 ./tests/data/pixfmt/yuyv422.yuv
+507c7e9f0c97660385df977469ca9e6d *./tests/data/pixfmt/yuv410p.yuv
+304128 ./tests/data/pixfmt/yuv410p.yuv
+8594ea0b8d7c2c964525b0801b5351de *./tests/data/pixfmt/yuv411p.yuv
+304128 ./tests/data/pixfmt/yuv411p.yuv
+e176bd14185788110e055f945de7f95f *./tests/data/pixfmt/yuvj420p.yuv
+304128 ./tests/data/pixfmt/yuvj420p.yuv
+472028e46a81c98d9b2477507def4723 *./tests/data/pixfmt/yuvj422p.yuv
+304128 ./tests/data/pixfmt/yuvj422p.yuv
+c10442da177c9f1d12be3c53be6fa12c *./tests/data/pixfmt/yuvj444p.yuv
+304128 ./tests/data/pixfmt/yuvj444p.yuv
+6bb61113e7b70eb09dbcec356122a0e2 *./tests/data/pixfmt/rgb24.yuv
+304128 ./tests/data/pixfmt/rgb24.yuv
+6bb61113e7b70eb09dbcec356122a0e2 *./tests/data/pixfmt/bgr24.yuv
+304128 ./tests/data/pixfmt/bgr24.yuv
+6bb61113e7b70eb09dbcec356122a0e2 *./tests/data/pixfmt/rgb32.yuv
+304128 ./tests/data/pixfmt/rgb32.yuv
+efa7c0337cc00c796c6df615223716f1 *./tests/data/pixfmt/rgb565.yuv
+304128 ./tests/data/pixfmt/rgb565.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
+6c719671e39f1bcf67b47eab98fa529b *./tests/data/pixfmt/monow.yuv
+304128 ./tests/data/pixfmt/monow.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
+4d8d402c45d913038d4b725396719111 *./tests/data/pixfmt/yuvj440p.yuv
+304128 ./tests/data/pixfmt/yuvj440p.yuv
diff --git a/ffmpeg1/tests/ref/lavf/png b/ffmpeg1/tests/ref/lavf/png
new file mode 100644
index 0000000..40e7cca
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/png
@@ -0,0 +1,9 @@
+2af72da4468e61a37c220b25cb28618a *./tests/data/images/png/02.png
+./tests/data/images/png/%02d.png CRC=0x6da01946
+248633 ./tests/data/images/png/02.png
+62b26c9582ba37dd37b76191338f3770 *./tests/data/images/png/02.png
+./tests/data/images/png/%02d.png CRC=0x831a2963
+41687 ./tests/data/images/png/02.png
+b4e38244c97debe3f528e7d1adb283ef *./tests/data/images/png/02.png
+./tests/data/images/png/%02d.png CRC=0x5984c023
+511900 ./tests/data/images/png/02.png
diff --git a/ffmpeg1/tests/ref/lavf/ppm b/ffmpeg1/tests/ref/lavf/ppm
new file mode 100644
index 0000000..97093aa
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/ppm
@@ -0,0 +1,3 @@
+16d5dadf0b362fc8ba3cb676c5dde985 *./tests/data/images/ppm/02.ppm
+./tests/data/images/ppm/%02d.ppm CRC=0x6da01946
+304143 ./tests/data/images/ppm/02.ppm
diff --git a/ffmpeg1/tests/ref/lavf/ppmpipe b/ffmpeg1/tests/ref/lavf/ppmpipe
new file mode 100644
index 0000000..b703e16
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/ppmpipe
@@ -0,0 +1,3 @@
+74f1f6651ad8f192a7b4c11c2b6c71e5 *./tests/data/lavf/ppmpipe.ppm
+7603575 ./tests/data/lavf/ppmpipe.ppm
+./tests/data/lavf/ppmpipe.ppm CRC=0x87b3c15f
diff --git a/ffmpeg1/tests/ref/lavf/rm b/ffmpeg1/tests/ref/lavf/rm
new file mode 100644
index 0000000..d396e00
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/rm
@@ -0,0 +1,2 @@
+a3a875be9c528a2a4534a5a31230fdae *./tests/data/lavf/lavf.rm
+346424 ./tests/data/lavf/lavf.rm
diff --git a/ffmpeg1/tests/ref/lavf/rso b/ffmpeg1/tests/ref/lavf/rso
new file mode 100644
index 0000000..648c248
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/rso
@@ -0,0 +1,3 @@
+f41fd78f7df981802e7caeb23648b8c0 *./tests/data/lavf/lavf.rso
+45064 ./tests/data/lavf/lavf.rso
+./tests/data/lavf/lavf.rso CRC=0x74b2b546
diff --git a/ffmpeg1/tests/ref/lavf/sgi b/ffmpeg1/tests/ref/lavf/sgi
new file mode 100644
index 0000000..a43c1f4
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/sgi
@@ -0,0 +1,3 @@
+7054acafd275e51cec28d4518e213081 *./tests/data/images/sgi/02.sgi
+./tests/data/images/sgi/%02d.sgi CRC=0x6da01946
+308151 ./tests/data/images/sgi/02.sgi
diff --git a/ffmpeg1/tests/ref/lavf/smjpeg b/ffmpeg1/tests/ref/lavf/smjpeg
new file mode 100644
index 0000000..3e7e8ed
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/smjpeg
@@ -0,0 +1,3 @@
+2f6e613e9e257545e1048d57de92ba92 *./tests/data/lavf/lavf.smjpeg
+791463 ./tests/data/lavf/lavf.smjpeg
+./tests/data/lavf/lavf.smjpeg CRC=0x557714ff
diff --git a/ffmpeg1/tests/ref/lavf/sox b/ffmpeg1/tests/ref/lavf/sox
new file mode 100644
index 0000000..0026480
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/sox
@@ -0,0 +1,3 @@
+e6f278256f145b69ed06f35b8d3585c1 *./tests/data/lavf/lavf.sox
+180256 ./tests/data/lavf/lavf.sox
+./tests/data/lavf/lavf.sox CRC=0xf1ae5536
diff --git a/ffmpeg1/tests/ref/lavf/sunrast b/ffmpeg1/tests/ref/lavf/sunrast
new file mode 100644
index 0000000..4db0505
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/sunrast
@@ -0,0 +1,3 @@
+07518bcb0841bc677ce6aea8464ea240 *./tests/data/images/sun/02.sun
+./tests/data/images/sun/%02d.sun CRC=0xe6c71946
+304123 ./tests/data/images/sun/02.sun
diff --git a/ffmpeg1/tests/ref/lavf/swf b/ffmpeg1/tests/ref/lavf/swf
new file mode 100644
index 0000000..7ce0fa4
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/swf
@@ -0,0 +1,3 @@
+11e9e9bf99a0ae6a0ba5434b745eae21 *./tests/data/lavf/lavf.swf
+329474 ./tests/data/lavf/lavf.swf
+./tests/data/lavf/lavf.swf CRC=0x4eac88c5
diff --git a/ffmpeg1/tests/ref/lavf/tga b/ffmpeg1/tests/ref/lavf/tga
new file mode 100644
index 0000000..7efaf97
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/tga
@@ -0,0 +1,3 @@
+c0305c53e6d79d4ed9f35f04f671246c *./tests/data/images/tga/02.tga
+./tests/data/images/tga/%02d.tga CRC=0xe6c71946
+304172 ./tests/data/images/tga/02.tga
diff --git a/ffmpeg1/tests/ref/lavf/tiff b/ffmpeg1/tests/ref/lavf/tiff
new file mode 100644
index 0000000..4b0b985
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/tiff
@@ -0,0 +1,3 @@
+b3299346a8959553a437e486d8f3bf76 *./tests/data/images/tiff/02.tiff
+./tests/data/images/tiff/%02d.tiff CRC=0x6da01946
+307131 ./tests/data/images/tiff/02.tiff
diff --git a/ffmpeg1/tests/ref/lavf/ts b/ffmpeg1/tests/ref/lavf/ts
new file mode 100644
index 0000000..0cab3dd
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/ts
@@ -0,0 +1,3 @@
+4531d0f4a80d5a2ee2b08a8d4ba3b442 *./tests/data/lavf/lavf.ts
+407020 ./tests/data/lavf/lavf.ts
+./tests/data/lavf/lavf.ts CRC=0xcc2dc628
diff --git a/ffmpeg1/tests/ref/lavf/voc b/ffmpeg1/tests/ref/lavf/voc
new file mode 100644
index 0000000..062da63
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/voc
@@ -0,0 +1,3 @@
+e4cefbeb4c20f5735de1877fbcfd8d1d *./tests/data/lavf/lavf.voc
+45261 ./tests/data/lavf/lavf.voc
+./tests/data/lavf/lavf.voc CRC=0x74b2b546
diff --git a/ffmpeg1/tests/ref/lavf/voc_s16 b/ffmpeg1/tests/ref/lavf/voc_s16
new file mode 100644
index 0000000..23e5aab
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/voc_s16
@@ -0,0 +1,3 @@
+a8225786fdbf5a2a19d1eeaf15f28632 *./tests/data/lavf/lavf.s16.voc
+180439 ./tests/data/lavf/lavf.s16.voc
+./tests/data/lavf/lavf.s16.voc CRC=0x7bd585ff
diff --git a/ffmpeg1/tests/ref/lavf/w64 b/ffmpeg1/tests/ref/lavf/w64
new file mode 100644
index 0000000..9acda83
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/w64
@@ -0,0 +1,3 @@
+420bf38762386ae2ba8bf2e85b6cc7f2 *./tests/data/lavf/lavf.w64
+90224 ./tests/data/lavf/lavf.w64
+./tests/data/lavf/lavf.w64 CRC=0xf1ae5536
diff --git a/ffmpeg1/tests/ref/lavf/wav b/ffmpeg1/tests/ref/lavf/wav
new file mode 100644
index 0000000..cc8ec1d
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/wav
@@ -0,0 +1,3 @@
+c4afa6eafac5243aa1c202397789ccb8 *./tests/data/lavf/lavf.wav
+90188 ./tests/data/lavf/lavf.wav
+./tests/data/lavf/lavf.wav CRC=0xf1ae5536
diff --git a/ffmpeg1/tests/ref/lavf/wtv b/ffmpeg1/tests/ref/lavf/wtv
new file mode 100644
index 0000000..8f2c2ac
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/wtv
@@ -0,0 +1,3 @@
+345516d3a03fd239c62e5e7257c9f4a2 *./tests/data/lavf/lavf.wtv
+413696 ./tests/data/lavf/lavf.wtv
+./tests/data/lavf/lavf.wtv CRC=0xcc2dc628
diff --git a/ffmpeg1/tests/ref/lavf/xbm b/ffmpeg1/tests/ref/lavf/xbm
new file mode 100644
index 0000000..4cc4be6
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/xbm
@@ -0,0 +1,3 @@
+99c20fff5d17b698b4a25282aebc3c51 *./tests/data/images/xbm/02.xbm
+./tests/data/images/xbm/%02d.xbm CRC=0x0f5aa5cb
+76411 ./tests/data/images/xbm/02.xbm
diff --git a/ffmpeg1/tests/ref/lavf/xwd b/ffmpeg1/tests/ref/lavf/xwd
new file mode 100644
index 0000000..73f859d
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/xwd
@@ -0,0 +1,24 @@
+50baa5560b7d1aa3188b19c1162bf7dc *./tests/data/images/xwd/02.xwd
+./tests/data/images/xwd/%02d.xwd CRC=0x6da01946
+304239 ./tests/data/images/xwd/02.xwd
+1cdb43599c956dc8563f1e09fac5df00 *./tests/data/images/xwd/02.xwd
+./tests/data/images/xwd/%02d.xwd CRC=0xf07d29cd
+405615 ./tests/data/images/xwd/02.xwd
+c0866e9e710fce735423594a93bee604 *./tests/data/images/xwd/02.xwd
+./tests/data/images/xwd/%02d.xwd CRC=0x53209216
+202863 ./tests/data/images/xwd/02.xwd
+1300938325d5ac12caa09a43bd58f37c *./tests/data/images/xwd/02.xwd
+./tests/data/images/xwd/%02d.xwd CRC=0x14555d6e
+202863 ./tests/data/images/xwd/02.xwd
+c6f3cb7c45f7238474a89d2ad61a1caf *./tests/data/images/xwd/02.xwd
+./tests/data/images/xwd/%02d.xwd CRC=0xfaafb59b
+104559 ./tests/data/images/xwd/02.xwd
+fe1af954966a40c2cd35fc27094ff823 *./tests/data/images/xwd/02.xwd
+./tests/data/images/xwd/%02d.xwd CRC=0xd69c3a09
+104559 ./tests/data/images/xwd/02.xwd
+9e2f3d455566897692cdfda88ff10112 *./tests/data/images/xwd/02.xwd
+./tests/data/images/xwd/%02d.xwd CRC=0x418d2963
+101487 ./tests/data/images/xwd/02.xwd
+2131b4c41fe35178b0c7d121223af549 *./tests/data/images/xwd/02.xwd
+./tests/data/images/xwd/%02d.xwd CRC=0x0f5aa5cb
+12783 ./tests/data/images/xwd/02.xwd
diff --git a/ffmpeg1/tests/ref/lavf/yuv4mpeg b/ffmpeg1/tests/ref/lavf/yuv4mpeg
new file mode 100644
index 0000000..8c1566e
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavf/yuv4mpeg
@@ -0,0 +1,2 @@
+ec8178cb152f9cdbfd9cb724d977db2e *./tests/data/lavf/lavf.y4m
+3801808 ./tests/data/lavf/lavf.y4m
diff --git a/ffmpeg1/tests/ref/lavfi/alphaextract_rgb b/ffmpeg1/tests/ref/lavfi/alphaextract_rgb
new file mode 100644
index 0000000..d46b563
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/alphaextract_rgb
@@ -0,0 +1 @@
+alphaextract_rgb 4a46df014912056534fcab2f45a02279
diff --git a/ffmpeg1/tests/ref/lavfi/alphaextract_yuv b/ffmpeg1/tests/ref/lavfi/alphaextract_yuv
new file mode 100644
index 0000000..32b9ab9
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/alphaextract_yuv
@@ -0,0 +1 @@
+alphaextract_yuv 591e2d45f96ecfa8cc326eb741456a79
diff --git a/ffmpeg1/tests/ref/lavfi/alphamerge_rgb b/ffmpeg1/tests/ref/lavfi/alphamerge_rgb
new file mode 100644
index 0000000..d890fae
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/alphamerge_rgb
@@ -0,0 +1 @@
+alphamerge_rgb 4a46df014912056534fcab2f45a02279
diff --git a/ffmpeg1/tests/ref/lavfi/alphamerge_yuv b/ffmpeg1/tests/ref/lavfi/alphamerge_yuv
new file mode 100644
index 0000000..2e58301
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/alphamerge_yuv
@@ -0,0 +1 @@
+alphamerge_yuv 591e2d45f96ecfa8cc326eb741456a79
diff --git a/ffmpeg1/tests/ref/lavfi/colormatrix1 b/ffmpeg1/tests/ref/lavfi/colormatrix1
new file mode 100644
index 0000000..9ec093d
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/colormatrix1
@@ -0,0 +1 @@
+colormatrix1 600fef16b66cff4ee76540ff2a8f4480
diff --git a/ffmpeg1/tests/ref/lavfi/colormatrix2 b/ffmpeg1/tests/ref/lavfi/colormatrix2
new file mode 100644
index 0000000..9961bae
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/colormatrix2
@@ -0,0 +1 @@
+colormatrix2 e4ba95b7dd5e0862aa5f5e3ddc54bda4
diff --git a/ffmpeg1/tests/ref/lavfi/crop b/ffmpeg1/tests/ref/lavfi/crop
new file mode 100644
index 0000000..dec7f29
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/crop
@@ -0,0 +1 @@
+crop f7b5236ddf88224188051c7c43503a14
diff --git a/ffmpeg1/tests/ref/lavfi/crop_scale b/ffmpeg1/tests/ref/lavfi/crop_scale
new file mode 100644
index 0000000..e692a8a
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/crop_scale
@@ -0,0 +1 @@
+crop_scale c298d61e731a97d0a9600e7fde80b6b4
diff --git a/ffmpeg1/tests/ref/lavfi/crop_scale_vflip b/ffmpeg1/tests/ref/lavfi/crop_scale_vflip
new file mode 100644
index 0000000..9a7d326
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/crop_scale_vflip
@@ -0,0 +1 @@
+crop_scale_vflip 56b8204e72d0680b139a8d9dd756e332
diff --git a/ffmpeg1/tests/ref/lavfi/crop_vflip b/ffmpeg1/tests/ref/lavfi/crop_vflip
new file mode 100644
index 0000000..d6d6bad
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/crop_vflip
@@ -0,0 +1 @@
+crop_vflip 8368eb12fa29acc5826bade961257375
diff --git a/ffmpeg1/tests/ref/lavfi/drawbox b/ffmpeg1/tests/ref/lavfi/drawbox
new file mode 100644
index 0000000..6d2f632
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/drawbox
@@ -0,0 +1 @@
+drawbox b6ff6ecda5611de46ed26db05b49dc72
diff --git a/ffmpeg1/tests/ref/lavfi/edgedetect b/ffmpeg1/tests/ref/lavfi/edgedetect
new file mode 100644
index 0000000..6db0e72
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/edgedetect
@@ -0,0 +1 @@
+edgedetect 9d396de52d56b63a77ea6933a323f61f
diff --git a/ffmpeg1/tests/ref/lavfi/fade b/ffmpeg1/tests/ref/lavfi/fade
new file mode 100644
index 0000000..852abb9
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/fade
@@ -0,0 +1 @@
+fade 129fb9b266524b0adf102689c366cac8
diff --git a/ffmpeg1/tests/ref/lavfi/field b/ffmpeg1/tests/ref/lavfi/field
new file mode 100644
index 0000000..68a4643
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/field
@@ -0,0 +1,110 @@
+0bgr 57434af4bddb691877f2400c704604eb
+0rgb fc2ba950163aeee98590181e31fcd202
+abgr 3c78d0a72484a1ecd3cae245b9fa988c
+argb d5057a2be412864719ffb8ba129c1f2c
+bgr0 b33c6b58b0d7bf6ce07d5a2d7c267040
+bgr24 bd6620738df19410d5df5f31e7451709
+bgr444be 219e318b7e0e05050181e71df6b9539d
+bgr444le 8354f2cf5b30de0233d302a74816649d
+bgr48be 22be50bd0aa39f07ad1b1aa57cb741ce
+bgr48le c4b0f8057b3eac237e9228e83bdc4c66
+bgr4_byte d4c3304b4b823a130c335379e4d3444d
+bgr555be c3072da465233dbfc8f61dc7a9766d2c
+bgr555le be83adcf0b802b061442f0c564fd5987
+bgr565be bf955b9a035af0e613cf1de249f55f9d
+bgr565le 6dd85cd5e19266c53a54cbcf06d396a7
+bgr8 9669f6974f0fc1c0afa1c7d4df093c0b
+bgra f7cabae31dd7465dab2203f45db646f8
+gbrp 55eab469e3e02ccc5a358565d9b1eaa7
+gbrp10be 38753e9ac21e13d76d1a83bd7272c026
+gbrp10le a65ff11ee79ae698550218549288e6cc
+gbrp12be 5f49bf3190b98221dab95056ab46bd96
+gbrp12le 3d1cd386205bc690407c81a007a79170
+gbrp14be 60e2efec11a36e7cb0db95e01603d9eb
+gbrp14le fdcdecdd2c8dc13561a3788ce0487c85
+gbrp9be 86380bf8eaeee32ec40d776f699394e5
+gbrp9le 1286d4558d9bc7c3d68261f4b43e3ba9
+gray 66a09b53f7d3f79dcb6096f3ec3740c5
+gray16be a447af6482b922c9997ac02e5d3535f1
+gray16le c1dd0db327295898ff282d07f48c105d
+monob 1b7fb7e69a913a0a1c0dffc54e5899ea
+monow b5d3778a054fc73d515d36f8a6bc693b
+nv12 b3829e9ae2a15349432b7efac4236068
+nv21 963cf5780e07301ff2906bf345b6d0ff
+pal8 bfedafc3bf19c2c12eeb87125833142a
+rgb0 d7481143742ff68abfbac4195edbede0
+rgb24 908d5494062c617bc87149c9daaf2167
+rgb444be 281a8f186a2726c2b31aa7e09e21c865
+rgb444le 93f9ee6265d8ad5e744ab652563f9b78
+rgb48be 0d1d60e1639edb2758ad776cb5583970
+rgb48le c958b5e98324263e97de2bb528f5bda4
+rgb4_byte 2ec97bf65649e3d47eb6812701544593
+rgb555be 21b9138b229d4065b02d38b5b62f18d1
+rgb555le 0307ee34e562b2fb2b1c6988ae18b2b2
+rgb565be e8f3ebcbb9a5fff000eca8a312f89782
+rgb565le 53bbd558fb0dcd82f1fad83ea855c3ad
+rgb8 67bfdd4fa88b1ab9be876f42dfc75683
+rgba d0ebdf1495bc6b7e9d3bfbe2813a9d16
+uyvy422 a6a52504a16f09b8f2ec2405bc8190b5
+yuv410p 3feb55b1e2a385b488c82e808a12587b
+yuv411p ab3dd8e6cf1452afe2d2e976e4726370
+yuv420p 52e26ad198368e2326bef97cdfa6a2bb
+yuv420p10be 04353bfc21e9b88cd7776e83be756742
+yuv420p10le 3f8e7167dbd12976c6ee516b8c952363
+yuv420p12be b058ac076c8a5fe522b9fd9b8422054e
+yuv420p12le ad0bf28e69eeb14eac5d8f9ea8b801f1
+yuv420p14be c7a435d42f07928332ecb21a7d96ad7a
+yuv420p14le 5507e8db4e58c9517012686a7408996b
+yuv420p16be 5241d64e9fa2fd6590fd23ea0e8a6f90
+yuv420p16le 78da606f761a4fb62fdac05aa5092742
+yuv420p9be e4bcaf5d6a7030f950b08501327f6175
+yuv420p9le bbf80e57389578be66d4a7a12335a613
+yuv422p e461a21995da361b88202339a2ebb879
+yuv422p10be a3e13070215f5a016ac9bae7e7115417
+yuv422p10le 8e9e3d9adc8fdb8a0a03d79bdc31eefe
+yuv422p12be 6a2aca2ea007534e729203641a82c3a3
+yuv422p12le aef072b55c6e9df8fd9f398d79f864df
+yuv422p14be 34e5f31372c0fdb4d77ccb7fd7bddb2f
+yuv422p14le c2c50fbea0cff7edad5c5e907380cbad
+yuv422p16be 55cfed8fa610f82b6625e16871dab235
+yuv422p16le e2488df0f22987fe7ed12a5ef2adf835
+yuv422p9be 80fcdd7fd9cdd79632104dcc32f78b4b
+yuv422p9le e0ec9f94c875297ee5d0546274df40e9
+yuv440p f8e80596babcdb94378ec8bebf2dd46d
+yuv444p 572bad9e12ed53e242658fa613412279
+yuv444p10be c5304f086afc4624d4fffb66a3cf3cb8
+yuv444p10le d1754974b936f74028752d49413d30aa
+yuv444p12be 7ec8fd2d7986d6e923dfed572589e643
+yuv444p12le 79d0e287e2171a53cf4f285c0d1e83ef
+yuv444p14be be021957cd819ca3146f3247138ccae9
+yuv444p14le bac0b0c70bcf72272d724f0cd1ac411e
+yuv444p16be 3a67c28325978db734ba03b1828c15da
+yuv444p16le c6dc275a4277fd3c65535253bb298263
+yuv444p9be f47357cdd775fc399aeab3ae58712fb9
+yuv444p9le e29799ecb6fac9f5b6d85bc34d248d4b
+yuva420p 82ab09bb7a3a24bf95aeb3fa9d939847
+yuva420p10be f4559039e99ecf74a58e7063b1e7c5d3
+yuva420p10le 32b3858b01be5bfe2579dadd1be3ab12
+yuva420p16be c580495d34c6ac6e3e3b81772a0f3070
+yuva420p16le 1c49deeafb8f81e9186f3906c9b1a670
+yuva420p9be a788d7cc6ad67ad52619a08da126569a
+yuva420p9le c1579a5c015908f26b76480d82f6a648
+yuva422p c162b37ce05360c47b2a2224ea0748ad
+yuva422p10be b7c0adc12a8602ab8b40b611785cc18c
+yuva422p10le 97f91d820f8ba642a3f9ae0901d03826
+yuva422p16be 1c61492076be33404894c1d3ec578d87
+yuva422p16le 1c085c9479a57eea35e74c264c947d73
+yuva422p9be 271c6cc091052731373ef5313bc76435
+yuva422p9le b8c2e963ac35371e8aa6a05d5c252b37
+yuva444p 4a85f1f17e95829cd53c9a28928fd8eb
+yuva444p10be 04c1026f4328ebf24bd7906291b33464
+yuva444p10le 3e8ea3b211bd7ac99cb96ebf71d0e75a
+yuva444p16be ac5c17adeb0ef6730a0de1dbd1d14a1a
+yuva444p16le 41f1a82eb686d7191bdb00206f723247
+yuva444p9be 413d01385a8b008031b2ab3ef0b9eff4
+yuva444p9le 33ede0bd20bfd85489d266ac81d035d6
+yuvj420p 762dc6a157d0bee72da3e3d852668aef
+yuvj422p 8cec955c1c62b00b6798361ef82962b7
+yuvj440p 7b469444994d8b52766ee461bcb795ea
+yuvj444p b395162325af489c465a3e6a31fbb0e7
+yuyv422 1efb17cd0a48d2e956fd574ea6f412e7
diff --git a/ffmpeg1/tests/ref/lavfi/histeq b/ffmpeg1/tests/ref/lavfi/histeq
new file mode 100644
index 0000000..a250902
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/histeq
@@ -0,0 +1,6 @@
+abgr a538e1221c94a12fb4e60b47b5358f67
+argb d0ef008d603d67a6a7d698d2a8f53d6a
+bgr24 9ef3c69a658490c4fbc807272372e73a
+bgra 716e70fdf7413d9a3b83e0365c2b0a99
+rgb24 8423322bbc66bc5050f6b93fdab23433
+rgba a960c9423bbb3925c3511362348b38e2
diff --git a/ffmpeg1/tests/ref/lavfi/hue b/ffmpeg1/tests/ref/lavfi/hue
new file mode 100644
index 0000000..ab412a7
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/hue
@@ -0,0 +1 @@
+hue faddb090f2eefa663b9539fd67451352
diff --git a/ffmpeg1/tests/ref/lavfi/idet b/ffmpeg1/tests/ref/lavfi/idet
new file mode 100644
index 0000000..2c6c2ae
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/idet
@@ -0,0 +1 @@
+idet 1077e3cb6fc4916b5441dd08cea4c9a8
diff --git a/ffmpeg1/tests/ref/lavfi/il b/ffmpeg1/tests/ref/lavfi/il
new file mode 100644
index 0000000..d4a8142
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/il
@@ -0,0 +1,109 @@
+0bgr b85afb77d7c3198ad7ff9ca5cceb970b
+0rgb 7ca2257e526092027c67311e273767bf
+abgr 4df961441de91db58f5a8a80603de585
+argb db1e1e487a489674fbf260f56ac2705d
+bgr0 4335fb9738bb6ca5d6d39d738b934bbd
+bgr24 7446301030e6a26853aca2036309fa8a
+bgr444be f80a44936b1295d14b0bac1db624d02e
+bgr444le cfc1511a390f7ca18516540c31c097c3
+bgr48be 0b1084ac65d328552bd62b4e819ab91d
+bgr48le 04e4f510b6d586dc9082af43a59c0ede
+bgr4_byte 2dfd29e0705fbb2b590458028cb2939d
+bgr555be 5622aa808b389095658a203970bd6028
+bgr555le 6a5ad1e35cbacc45aeb9fd593c6f61ba
+bgr565be 5ff7a76d9f58800e38f21a84d88c7129
+bgr565le 485b2b6f589a936d6fb12d0033809dca
+bgr8 d7fae34b87a67556c273585d9140ff96
+bgra 7b4abc57f0ee99a0226e9bfd5d25cf9e
+gbrp b85cfeb0e34559ffb4b2e4f1209a3712
+gbrp10be 5487219fee31607d6b19aa0d302fb42f
+gbrp10le 7975e53a9e03a8acfa877334ae5e9d1d
+gbrp12be 34bd529e3b085e813e7471e5a5951423
+gbrp12le 14716b36ee4043158f24b49b6a723213
+gbrp14be 426ac36ea666041afd39f842dbdd683c
+gbrp14le e0823115de7b2e44c25e1c59dd204ac1
+gbrp9be 0db6ce2fe6a7fc2d5c7d6d4f0decd112
+gbrp9le 00a1a9fe310753a28c0512568a317c67
+gray 4dd4ea934fdbf689fdcf665856c402ff
+gray16be cd9c1367dabd2f1858ae4f31693e622f
+gray16le 4ef774c282280d7ed4780690df6e5cb4
+monob 07cffe7f5f25f39c3aa38866303791c6
+monow f2d1bdb939813a49abd6348ecfbb2703
+nv12 6847b3f7141ca1e3c40d3a494f0e13cb
+nv21 e7a8e94001151e2bdd68a0ee7e4ac544
+rgb0 0d1dfb1edc9b4a7ad28dde9a1b0bee23
+rgb24 15781da8615974ed12b18f7439a25d6f
+rgb444be 19bc79cdbafee996eb48feea597d761e
+rgb444le de61209ae25f005d357b68e0836c4739
+rgb48be fa24415175a0759ac49949a948820f27
+rgb48le 82d5d55b03dfd9a74f0cc087793cdfc6
+rgb4_byte 7ec4d55df1bfb02ffa9956d85ade89f7
+rgb555be 34ef691ed2b6d22136c086d37bb0fefd
+rgb555le 04b20c057eed7dcaee1858d45500ba54
+rgb565be 077604cc5dc91008b018264db73c8f0c
+rgb565le a97549f25e63dd0dd404db41bbe05c07
+rgb8 a35d3c3b9b87261c7417076a8b18fdb8
+rgba 8ca9c8db589615ebbaa964be4ce62d08
+uyvy422 8be40aded4b407ff66305911ba5ce2ce
+yuv410p 92112d85ba4f74cbd3044945c0f33402
+yuv411p b6b22000e5275c92baf5afc417c32a70
+yuv420p fca7fbbff753612a718ee13e1dfe2af2
+yuv420p10be 15c655b60ff5d212657e0620ed69fadf
+yuv420p10le c9c71c78e00034af1b0fdcfe68615c6f
+yuv420p12be a5377d262bd05698b2bbcfc8dd2b15ea
+yuv420p12le 7d076ea30985ecf2eb590041a45f2cc6
+yuv420p14be 7a33da52fed0ffdc7f90ebcb677dc155
+yuv420p14le f431bf16d8204fb919ba0abf4ea54288
+yuv420p16be 254b78ba00a928d22cba98380546fe9d
+yuv420p16le e6c182b47c3b57814d28248dbbaaea35
+yuv420p9be b1eafb2e864fa86c08684d8dd4628535
+yuv420p9le f07b2282c50f8eb6f138029d748eadfe
+yuv422p ffc2693b9e1d39b59aabb9a7e1dffe05
+yuv422p10be e83db7f2f485bea0ea808f22ffcdb7bc
+yuv422p10le bfd8fbeb5d89ba3904514d835aa6947d
+yuv422p12be 5f31197795eda7998a0ec813496e57f1
+yuv422p12le 903939621d457a034c0181032164b3c1
+yuv422p14be 8d08189d27d3a97fbecec7edd690c691
+yuv422p14le 01b717875b85707185acd48ac75dd6f9
+yuv422p16be 0feb24228cc5ec3963dc0bde913d14be
+yuv422p16le 0d6fe6924f14e77b2fef02e7ad1c47c8
+yuv422p9be 003b2032a30281845dfb6f9a7ebccc71
+yuv422p9le 427c505eb27af0059aeafffd1a858189
+yuv440p 23b55dcf6c876f0c53cf46960b13e6a3
+yuv444p 7730197c0570d46493d50bc163244754
+yuv444p10be 74b13f67114ac0f92af7bb427d6335ae
+yuv444p10le 9ab09ae4acc46a2fa04fdbde1373a9f9
+yuv444p12be 76320bae89f10947e692b6ce1fa22b93
+yuv444p12le a79e40c464df640ba97c13456616b25c
+yuv444p14be de7f737796d1de38a8227511b91d3378
+yuv444p14le 7c27d1b7846beb3565ce086c7df1131f
+yuv444p16be 1d51af32b9e077bf1ad750c6a1787b2c
+yuv444p16le 94a936f571861f25f2539ba099cafd56
+yuv444p9be 384dd0aa411d00b2deb2363a9f345db9
+yuv444p9le 77758bad5ca383b3a698fdcb38a85f20
+yuva420p 24337fc952d7f9c633756549a7b94146
+yuva420p10be f586830e7605b5bbc307f6f5c532958c
+yuva420p10le 7bc9e81d18021dbb7c96ceeef4a18090
+yuva420p16be 54362c9d57d26ead878b9eb05a523785
+yuva420p16le af55baa12d11c0ac6c9065df730d81ef
+yuva420p9be a290f1b1e1fe18ac22fed3535562ff98
+yuva420p9le 89d0fa6679548757044c0e1971c1cbfd
+yuva422p e3fe9f137a37e1b3817fe8579d2d2acc
+yuva422p10be 4aa77b690225054f9b5c7ce7c66950e8
+yuva422p10le e7c6538112fc1d9539f4635dedf52eae
+yuva422p16be 0e5a1b0b52d42f4f07d7e63dbe4ab83b
+yuva422p16le 5b3a1219d7224650929e6272693f1cd3
+yuva422p9be 9d6f936fa9666e2bcbada5188e2a4942
+yuva422p9le 0f97c4d357e103e7263705b918a37824
+yuva444p fe4dbba35f355d68b6c254c06db1cbad
+yuva444p10be 3926a29639556a11acc95888e29517d6
+yuva444p10le 1b68842a69b3b9d5a23854217b410c69
+yuva444p16be 45ec67a0828aedf18f1ed54fcfb0ff83
+yuva444p16le 7b8e5963f19e6fe7fd409b34af014489
+yuva444p9be 6d2905a9e61ce4ff5b3d7b972a7333eb
+yuva444p9le e2ffdb1d867a1b78f3bd38d600b17193
+yuvj420p d1a8d9cf6b4035ac5d6439ab2754b09d
+yuvj422p d20df6138cdf62d7f3b93eb1277827d6
+yuvj440p 17a24a86f279febaebb66d65509088e8
+yuvj444p 326bb83d1aec23d941894a1324984c56
+yuyv422 f9121733169ca5437e95e7600a7c5aea
diff --git a/ffmpeg1/tests/ref/lavfi/kerndeint b/ffmpeg1/tests/ref/lavfi/kerndeint
new file mode 100644
index 0000000..2769319
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/kerndeint
@@ -0,0 +1,10 @@
+0bgr 58fb0bda60562ce17e75f1c3459d0504
+0rgb d29f6a7b63ade359ec81f5856633ec06
+abgr 71071045b8ec66a6d0a38bb3fed1ca51
+argb 93ba0daa1e945ad1a6f8c0c1cd2e1858
+bgr0 364b8bcd1c7a384902077bc7190c5ea3
+bgra 81ac8315a4c66e363bc6fa3e99d9cd2b
+rgb0 ae0c2afbc266345c1372276755595105
+rgba 42a6cc9b815ca0ee69c29db3616ce25e
+yuv420p 40ca042814882b0b791cbec38e289702
+yuyv422 f549c98059ba9ce50e28204256d13b5d
diff --git a/ffmpeg1/tests/ref/lavfi/life b/ffmpeg1/tests/ref/lavfi/life
new file mode 100644
index 0000000..05713f3
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/life
@@ -0,0 +1 @@
+life bc4822aa5d473a8b5efb31fef7aeac86
diff --git a/ffmpeg1/tests/ref/lavfi/null b/ffmpeg1/tests/ref/lavfi/null
new file mode 100644
index 0000000..0b9b9b8
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/null
@@ -0,0 +1 @@
+null 61fffd2d8425759a33ae07e718d0242d
diff --git a/ffmpeg1/tests/ref/lavfi/overlay_rgb b/ffmpeg1/tests/ref/lavfi/overlay_rgb
new file mode 100644
index 0000000..ce4e30b
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/overlay_rgb
@@ -0,0 +1 @@
+overlay_rgb abea47d9e61d7eab40c4734294519524
diff --git a/ffmpeg1/tests/ref/lavfi/overlay_yuv420 b/ffmpeg1/tests/ref/lavfi/overlay_yuv420
new file mode 100644
index 0000000..3d12251
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/overlay_yuv420
@@ -0,0 +1 @@
+overlay_yuv420 4e85d551db9e56e8faddc1fc70fd6a00
diff --git a/ffmpeg1/tests/ref/lavfi/overlay_yuv444 b/ffmpeg1/tests/ref/lavfi/overlay_yuv444
new file mode 100644
index 0000000..b83e605
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/overlay_yuv444
@@ -0,0 +1 @@
+overlay_yuv444 16215d0b4054a44bbe7f6c46bd97d235
diff --git a/ffmpeg1/tests/ref/lavfi/pad b/ffmpeg1/tests/ref/lavfi/pad
new file mode 100644
index 0000000..7a6f61e
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pad
@@ -0,0 +1 @@
+pad 8122d716097523d0875e2d55b0926105
diff --git a/ffmpeg1/tests/ref/lavfi/pixfmts_copy b/ffmpeg1/tests/ref/lavfi/pixfmts_copy
new file mode 100644
index 0000000..68ec828
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pixfmts_copy
@@ -0,0 +1,110 @@
+0bgr a06d3a7652e4885c65895e0e168aab28
+0rgb b6b5653d2228cdf2ba3c55a72f2e713f
+abgr 1a147fa04ed70b9a7e67a4c89052f630
+argb 997df0b5c268a0d8f9c611cae4e01e05
+bgr0 218df6dc3eb5094a0c16a8bd18bc3999
+bgr24 d6370f6dc34df2ea66e1718baf74137b
+bgr444be aba6dfea008ae12c2120a95f54293904
+bgr444le cfb5401e8f076cc8675e17ed1114a3df
+bgr48be ab65229b64606f6408cd732b967c0b01
+bgr48le f1b4e718cadee9bd2978289153ce43de
+bgr4_byte de96505ef9ad7078f87b4dfdf6fe4b61
+bgr555be 8d5de9e9200d622f27dc73958a85045c
+bgr555le 74eb9837706143a40e26305a16a79369
+bgr565be 13a36d6502be88fc0c2aec05b8d2d501
+bgr565le ed027571692aecd522aa65a90cc7e09b
+bgr8 71ef789609c746c2e7e4be9dec29062c
+bgra 0364b074268682ea46168742a8239f7d
+gbrp 89d6e4b116e3bd542fa09a19a977ad16
+gbrp10be 5dc62e2d01fa7c19a57abe48246f2232
+gbrp10le 0cac205a304b59811ce30fcad49b3527
+gbrp12be de1d2a6b1d189bce9b9a2cf322c31c24
+gbrp12le e3267ef00bb48778df21a386416d2e14
+gbrp14be 7979d158b30c0b45db97aba2228d15fc
+gbrp14le d32b6c73a820f9d03a779a996924893d
+gbrp9be 2478d1c27ae4ec94ec4b5e439128af0c
+gbrp9le 640240ca2663e48f0bacd8edb5242c7d
+gray 1e5e2b8548843a6898eedd9c974c422c
+gray16be 389f4e5a8ab413b3af32767b59ed7f9e
+gray16le a1f912941247e45b394b9cf4f0e81130
+monob 309b5785a36bd988d17e15d88f4ffad1
+monow 8809a02bc69b58d1114b09ca79ebffad
+nv12 75e90c54d858b993e99f4ee6d2a2a38f
+nv21 8831a3f411015d45fbc5dd191245ba9c
+pal8 13de2a1c3c80cb64d14e2bc4f6f461d0
+rgb0 992f5ad24802cc255edab45c3084db4a
+rgb24 c71ba90f69f15c8275232bb3f62d0ced
+rgb444be 26eaec65d7efd2b0c9c13b47dfd9b241
+rgb444le 5f29863553107110ea817f52151d77b7
+rgb48be a3bc81c46c21818a989f23104a599ab0
+rgb48le e87c661ac49aea1f1e93939802883d92
+rgb4_byte 293b1b84f01efd90bde40cb3faffc127
+rgb555be 5229183fa64d4e5c7e3703d8263ee6ae
+rgb555le c3e9978cb2a4129a5575935e8cbc433a
+rgb565be bc123b962629ead1a06af0c18cbb6e5f
+rgb565le 20757fafe4756e62d845b2ab4c0b8f93
+rgb8 e01614f5416dcc8ad365ad7a57afc9fb
+rgba 53796fa4c392a1b2659595b6a284f8c4
+uyvy422 3f411f947e3ac8f842c88e717d68bd9a
+yuv410p 7dcf3f4770c8b494290ceacd2c2ce6db
+yuv411p 9461b188dab6f8b90d9a27e353a89f58
+yuv420p 61fffd2d8425759a33ae07e718d0242d
+yuv420p10be 2abf90242cb021cb6fcf9f2c3c92f6a7
+yuv420p10le 180b7e4de684c7225d2fb37614f842cb
+yuv420p12be 256c9e6cfc878a8abf681b30777c0620
+yuv420p12le 8dc8b86c4790da3769d4a62e87608623
+yuv420p14be 8d22756c5d2b9e501924c082bfb22a6c
+yuv420p14le c9da19d4818bcb119ad6481b75778f7e
+yuv420p16be 4ccdcca6dd6a960f9a3333f0aee095bd
+yuv420p16le 9c5847d9b0de258a10ee906dc47e24ea
+yuv420p9be fa7ad4f73232aac0e35def62af1e2c39
+yuv420p9le 3720ba1786b56c8f4913e67dddebbb07
+yuv422p eee223e92f1f2e5ad4186b411ebf5816
+yuv422p10be 80fa87750491dcc3e93d175b64835654
+yuv422p10le e1640cd315bd96c6b59f7753825a7306
+yuv422p12be 5c6d86e919515d1af71f8004a6252f9e
+yuv422p12le 7f331cadb0ab75d07656d29f47bd8bd9
+yuv422p14be 4f4e186ba683b90fe990cccc4db7e521
+yuv422p14le d78016c9119b1f1d1c922bd5aaf47732
+yuv422p16be 1f3c216927d17966a009a42def124bba
+yuv422p16le 90adbdffaeea9b09398339c8a1322b02
+yuv422p9be e46446534dd0821029d3b831c9c1d1b0
+yuv422p9le 520e418a2429f7efee511b7fcbf45ab6
+yuv440p 456d83524b299f2fa1bb988e421554d9
+yuv444p 068bc09d282d18c9fa35c2787943fc2a
+yuv444p10be 9f6e1490080a454243daee9229425e1e
+yuv444p10le cc183e51041351d9ac06c4df6e8ad5f7
+yuv444p12be 34f63ac6a47ac681016105d3bfb3e118
+yuv444p12le 7964701bfe8d718edf97f6e0002935bd
+yuv444p14be 4ad3a9d52fe9c050150c0f7d2f3cf63d
+yuv444p14le 69575e5a94b978f159c4fdb1a61587b0
+yuv444p16be 4000b12fa88ed0feef182da31c7e6b96
+yuv444p16le 96a857dba8dc6792c58daec872825b32
+yuv444p9be 07727e5c9040b7f0a17d591288ac330d
+yuv444p9le 4d12d20a68dc28618594c96c2ade4ff4
+yuva420p 3a8c5c142e051367c196f95696e0e2c3
+yuva420p10be 1b7c5ec6691498e24676ce6ed97f62f8
+yuva420p10le 4c13322bca914df2727da91cca85ca1a
+yuva420p16be 6afcf758f4b66c0b4173c942d42212d7
+yuva420p16le 13e195aa96329eb49921b6f9f07b875c
+yuva420p9be 05a78390de312dfd21ac666a9da05fbd
+yuva420p9le 78f5593bf51a31841ef83df41d0316eb
+yuva422p 45ae66d6f69fd5b77e6831e98d228bf4
+yuva422p10be 18284c58b926fe2389605c692a703145
+yuva422p10le b934d28b615729a24bebf0381c465e37
+yuva422p16be c3f7354b6013b43439e02aa02be5fe69
+yuva422p16le a7ccc43820683ab15061d14cf8efce6c
+yuva422p9be 14c55a16d19499b54b4341f135d3e558
+yuva422p9le a8bf168e5d2709222192d0aff46b1373
+yuva444p 86b05da54db8c7e8cf5b6638e19c6fc5
+yuva444p10be 8c417158165c00fbd42def60cbc27d69
+yuva444p10le 5f303ef3fb56faed69b4cc1c760ac6ae
+yuva444p16be 52a9591ec0d5059e49b1b2803f8582aa
+yuva444p16le a9272ac197e4a4195662ce90f533976c
+yuva444p9be f72f646ef07cdab613420585aba041ac
+yuva444p9le 6d431b0a27bf4f86ea44ef5f14247a01
+yuvj420p 73661456012f20cda81207b14bb0c0a5
+yuvj422p aa97862b57f47c5a6506156e9aaf129a
+yuvj440p ff8b9884a49d546b035f5d2ac1e673df
+yuvj444p b8142888d80b8065c54045839e79b331
+yuyv422 f06a4fbbdb32807d05de825daa2c3a1b
diff --git a/ffmpeg1/tests/ref/lavfi/pixfmts_crop b/ffmpeg1/tests/ref/lavfi/pixfmts_crop
new file mode 100644
index 0000000..797aedc
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pixfmts_crop
@@ -0,0 +1,43 @@
+abgr ef31d9057f6e65a7c3308a1b1daa98fa
+argb 5e5e261c4870e0de05d56ff640b9550a
+bgr24 44bec15f35513de7e957b3d59b53cb7b
+bgr48be 0b5ebce3c48eb8614d79e204b5268603
+bgr48le c4ab61a8b9d502132730c6abb6ffd84c
+bgr4_byte cab930dbe1fe77d58b41837ecdcb8460
+bgr555be 67162782fdb86813f446d8e1c21c73e9
+bgr555le 85913cfa8dab465f7dcfcfe7f9001a01
+bgr565be ee9a1debb896d41c53a026f9e6ce006b
+bgr565le ab7b6055bc3b6b7edc9a5e4de43ec90d
+bgr8 f85ff16e21d922ad6d32648ef3acfbfb
+bgra 9f2e37d73ad3b759fc9d6b12ee668c38
+gray 3266b99065a17cbd647f2339addc5303
+gray16be 02ac848ad4e28c06938599563ba81ff7
+gray16le 672aebfeb8a0f4067b3c6064340056e4
+pal8 e1fd50b8a8a67fb5abd8b44abc778bbb
+rgb24 d044123f1fe50f656f2101dd3f091ead
+rgb48be ef5507f88948b54218911d12e1dbef36
+rgb48le 6d045d5990d6ada64a112e3b581a7b38
+rgb4_byte 0f0f9ee31c65dc60da49bf98a1b06dcf
+rgb555be 48fa619bfd04f6dee05416b02605c031
+rgb555le 292cff1f824e49076bad50a07ab1c749
+rgb565be 0dd6f6a5a8713bd1c3d9826bb7a88eab
+rgb565le 6afd85faa8c6f0f330969539178eb9a2
+rgb8 87cf541b110e35a6f9a983e9cde85e15
+rgba 7abe1af7b97f5b9a7aa5ad3e4bf32f76
+yuv410p 126e0da1da4fd89be28087b8367bbb36
+yuv411p b94f0af107fc4796aca70c0a36d374c5
+yuv420p 74c6b331bd30f005e6c75a192423ad90
+yuv420p16be 2d3c84ebff77479e8c5b6e3e59ec4e45
+yuv420p16le e2c906f2751609bf8cbcbeb2f629319a
+yuv422p 124bc8d668072de1bb3b894cc4bae859
+yuv422p16be 3ec47e2709107fcc388b5e0abebf7eaf
+yuv422p16le a4183a62917bf8568fe11ff446dd18f9
+yuv440p 15c81c685fa5b9db95150caff14ff83f
+yuv444p 12b752f78af72666627cea2d0c274cdb
+yuv444p16be f2bf0e22a1d184e37eaa199a76cf22ba
+yuv444p16le c11b151dced5c8854d385373fa4dcc8f
+yuva420p 920c5d1b965eeb72e3a0e343696face3
+yuvj420p f9183e49f42bae31d7d85b92161fa82f
+yuvj422p aabeed60a6e1b2cf88665ac627bf531f
+yuvj440p 5ae4f404b42f3167f978473d9a3737fc
+yuvj444p 6728997f65b879fd5a3175cb449a8f0c
diff --git a/ffmpeg1/tests/ref/lavfi/pixfmts_hflip b/ffmpeg1/tests/ref/lavfi/pixfmts_hflip
new file mode 100644
index 0000000..ee5c2d3
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pixfmts_hflip
@@ -0,0 +1,106 @@
+0bgr 03d8a8920dbb408218376baee8665649
+0rgb 6ee5f3b85ec38953df0762ddd0bdf561
+abgr 8ab842e280c8b31f66450e8951dfedfa
+argb cdb6aa47939d49c0ff72537bfc8c82e0
+bgr0 1b0b59382ddbbf045be6b160b7df5881
+bgr24 5b64fd60e2050946b50da1f4945127fb
+bgr444be b52c1b9d9dc02cb46c04e80d97139e60
+bgr444le 48172797fa65a25c0ad30ddc7e8f5bcb
+bgr48be 58e292c33eb60708171c3393a5700615
+bgr48le e1be8e6bfe26acdee258e76329d2f03d
+bgr4_byte af34e1158edfbc8c6929365d651a9549
+bgr555be c82d7877f7ef25ee1154d05b240cf54c
+bgr555le b7a4e2c66807a82bd132dfcf8540bfb5
+bgr565be 3b464a00c619410eac7bdea9c96faf60
+bgr565le 4b4c708d4ad222f41734dce68e9d48b6
+bgr8 ad1db7a17cdfab2ede6f22c2415a3fbf
+bgra 85fa06ad9fd156c3179a647a2e741b60
+gbrp 95fde5b6a767cf8d2679a4a6d18fdbe7
+gbrp10be 5ddc834dbf2198f6b1af36c66b185e2c
+gbrp10le 04814cbb805b66e8e085c7db4a548deb
+gbrp12be 8184b00342421c366764c091e9174260
+gbrp12le 1519cba0b6ddd7ee3df7c97670f1cbd5
+gbrp14be 10872df155aab67a13b98ad162908896
+gbrp14le 5fd363517fca5ef0ac725d1c047f2e75
+gbrp9be 187c83736d4fe1d7c8491609debc8f86
+gbrp9le 5476b0787da2d928d98d4cda60537fb5
+gray 35b50e78d5d27255f43e642a404dd708
+gray16be d206a080739d89cb7dc0009ad4082ed4
+gray16le 7ebcfd9401ba85e584230de8fc02986d
+nv12 719adbc47fa74e92f83150921917483f
+nv21 9c833b3ce53539d270e1f21e4319797b
+pal8 19c8735b23feeed18ec2d37913a5f3f8
+rgb0 ce26538ebe1ec09dec3dde5e4d8a1405
+rgb24 c2752464ac2b549268e9638745dba857
+rgb444be 85586541cc7eb12e05ff7162b12304c2
+rgb444le 670da20b82403e00609bf2c1f5611223
+rgb48be a9ee2c9946d8d54dba60cebbdbe43886
+rgb48le 28e2cf59b789249dbd0859f58f4ae55d
+rgb4_byte 31dca70b4f3537afa9840cea1b062acf
+rgb555be c010cc746ce9483b47387ba846670179
+rgb555le a768de014e0908dfa886108da376b2e5
+rgb565be 6727e71974c8e5dad157925c10ee1532
+rgb565le b0a2b4817775289cfc415bb951f9ae0c
+rgb8 22fdbd14ce296c1afa9bb4a6ea09b3fe
+rgba a37789c4df73c3bd8648ad1fe9d3f991
+yuv410p a1280c2b9b562dba3c2d35a1e5fc4b23
+yuv411p 6bf10756ac5c7841db63a97106ff911b
+yuv420p 45f4a06481f2cd8e28fb29c7c151e110
+yuv420p10be ddfef981d53de0f808173bb267203ca6
+yuv420p10le 966b8c55de4d8a12bdc8db3d9ad3ae6d
+yuv420p12be 735da68f3ac8380a993f46a460c02432
+yuv420p12le 3a71ae4e6a7b106b3e1532c6d148fa61
+yuv420p14be d921d7b364d0a7bde183ba717a77f1d4
+yuv420p14le ab410b636acd41234cc396967f66c859
+yuv420p16be cde798cad650bcb087943442a399c8ea
+yuv420p16le b7124c56605eeb12f3d13287ddc77f3a
+yuv420p9be b0f6044fb40cf0ef41cc536311566cc6
+yuv420p9le 086f9320167a755faed18c0a3a36c0e6
+yuv422p c3982fbb57e796881efedae11b8346de
+yuv422p10be a3db158525c7794fd06b4d20e558e64d
+yuv422p10le 31cf611e502584fcf846d3ba2583028a
+yuv422p12be 8cafc31b579b168a71f7093a161b8023
+yuv422p12le be83ffe86cb99ecfef76affb2b73d5b2
+yuv422p14be 96870c66856e2669095ccdea034558ab
+yuv422p14le 46dcb0160aa8ada4025b365873a78d6c
+yuv422p16be 4b96fb571e686185d96b4a97e3413d5f
+yuv422p16le 503bc49bace58dae1767173746a16056
+yuv422p9be 0ffc1bfde0b679e6e7b7e0c8c84e686a
+yuv422p9le 3c061cdb9f302c8f8806b409bd2b0aca
+yuv440p 44f78792c5766ab896fbe0d718976946
+yuv444p a36b8ce12de27971b52e93267fe6583f
+yuv444p10be 90e94770d3eb4693b09925f549d7311e
+yuv444p10le 8a26fba7c2223d72cd5ad00c1941948f
+yuv444p12be 24bdad5d7ddca614da7d105e931c49e8
+yuv444p12le a996cb8a1c062d2238b58a5db9b990dd
+yuv444p14be a9f7dd66b6f54bbdbf176894b01d7422
+yuv444p14le 6204f763af4a0d26f41ddca1d1ae9741
+yuv444p16be 9370058632b2582ab7a21725ec4f4e1d
+yuv444p16le 0674c63a0e8debbfc010a2730da66a13
+yuv444p9be b1327e7ca47a950ee99bd2a7e05f56d0
+yuv444p9le 2f89171f0470eefa9f89fdc43874dc1d
+yuva420p a62cf0a72905b54a7ef10fcaeff723bc
+yuva420p10be 602b6a8c0b16ce2b55ddcae443e75dac
+yuva420p10le 1c086d4ee0619ac65cb5a69481b981ca
+yuva420p16be 51c45f4227ba86159f46c65783d64cef
+yuva420p16le e87030429a965f2ddc8f07ca49014573
+yuva420p9be a48309403dc66dc5242cac19cc7598e5
+yuva420p9le ae2dcb326eb3a2ff170f498077ae5624
+yuva422p 6e7c30ea252a41b70d26250f624ab284
+yuva422p10be e0ee8576f9328ca4ec174a8c084f2235
+yuva422p10le b489c203b9b0ebc42adb794bb10a3c4f
+yuva422p16be 550b1d2ecbc3d5f50041816090d62a02
+yuva422p16le 73a426eb63685247ea037389595cb43a
+yuva422p9be c65251c422cd3c81ff5d97d207312292
+yuva422p9le 3405924773c6bdc42325a8a1ff658595
+yuva444p e32ba5dcb01ba848e7dead04112b1aa5
+yuva444p10be 97549388c7f9fbc1425b1663b46c43d1
+yuva444p10le 0b88bed194caea2fa06f458034b1b90e
+yuva444p16be 2dd545e4ddb0f134322eee1c1de4c2ff
+yuva444p16le 1e144cc9ea16429c1655c67e2f12f5c9
+yuva444p9be e37fa0743bf720fbe31605714d7f7ad6
+yuva444p9le 9bd4083c1384a55e91f02630161dc4c3
+yuvj420p 86370b945c5d19d809ee92386d476a53
+yuvj422p d3bda08bd4b92a256a8ec8432c4767d1
+yuvj440p dbae7083c82f20a38fc55e6f8bc374bc
+yuvj444p 55ce75c7bd172b28703e82f64186e6b6
diff --git a/ffmpeg1/tests/ref/lavfi/pixfmts_null b/ffmpeg1/tests/ref/lavfi/pixfmts_null
new file mode 100644
index 0000000..68ec828
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pixfmts_null
@@ -0,0 +1,110 @@
+0bgr a06d3a7652e4885c65895e0e168aab28
+0rgb b6b5653d2228cdf2ba3c55a72f2e713f
+abgr 1a147fa04ed70b9a7e67a4c89052f630
+argb 997df0b5c268a0d8f9c611cae4e01e05
+bgr0 218df6dc3eb5094a0c16a8bd18bc3999
+bgr24 d6370f6dc34df2ea66e1718baf74137b
+bgr444be aba6dfea008ae12c2120a95f54293904
+bgr444le cfb5401e8f076cc8675e17ed1114a3df
+bgr48be ab65229b64606f6408cd732b967c0b01
+bgr48le f1b4e718cadee9bd2978289153ce43de
+bgr4_byte de96505ef9ad7078f87b4dfdf6fe4b61
+bgr555be 8d5de9e9200d622f27dc73958a85045c
+bgr555le 74eb9837706143a40e26305a16a79369
+bgr565be 13a36d6502be88fc0c2aec05b8d2d501
+bgr565le ed027571692aecd522aa65a90cc7e09b
+bgr8 71ef789609c746c2e7e4be9dec29062c
+bgra 0364b074268682ea46168742a8239f7d
+gbrp 89d6e4b116e3bd542fa09a19a977ad16
+gbrp10be 5dc62e2d01fa7c19a57abe48246f2232
+gbrp10le 0cac205a304b59811ce30fcad49b3527
+gbrp12be de1d2a6b1d189bce9b9a2cf322c31c24
+gbrp12le e3267ef00bb48778df21a386416d2e14
+gbrp14be 7979d158b30c0b45db97aba2228d15fc
+gbrp14le d32b6c73a820f9d03a779a996924893d
+gbrp9be 2478d1c27ae4ec94ec4b5e439128af0c
+gbrp9le 640240ca2663e48f0bacd8edb5242c7d
+gray 1e5e2b8548843a6898eedd9c974c422c
+gray16be 389f4e5a8ab413b3af32767b59ed7f9e
+gray16le a1f912941247e45b394b9cf4f0e81130
+monob 309b5785a36bd988d17e15d88f4ffad1
+monow 8809a02bc69b58d1114b09ca79ebffad
+nv12 75e90c54d858b993e99f4ee6d2a2a38f
+nv21 8831a3f411015d45fbc5dd191245ba9c
+pal8 13de2a1c3c80cb64d14e2bc4f6f461d0
+rgb0 992f5ad24802cc255edab45c3084db4a
+rgb24 c71ba90f69f15c8275232bb3f62d0ced
+rgb444be 26eaec65d7efd2b0c9c13b47dfd9b241
+rgb444le 5f29863553107110ea817f52151d77b7
+rgb48be a3bc81c46c21818a989f23104a599ab0
+rgb48le e87c661ac49aea1f1e93939802883d92
+rgb4_byte 293b1b84f01efd90bde40cb3faffc127
+rgb555be 5229183fa64d4e5c7e3703d8263ee6ae
+rgb555le c3e9978cb2a4129a5575935e8cbc433a
+rgb565be bc123b962629ead1a06af0c18cbb6e5f
+rgb565le 20757fafe4756e62d845b2ab4c0b8f93
+rgb8 e01614f5416dcc8ad365ad7a57afc9fb
+rgba 53796fa4c392a1b2659595b6a284f8c4
+uyvy422 3f411f947e3ac8f842c88e717d68bd9a
+yuv410p 7dcf3f4770c8b494290ceacd2c2ce6db
+yuv411p 9461b188dab6f8b90d9a27e353a89f58
+yuv420p 61fffd2d8425759a33ae07e718d0242d
+yuv420p10be 2abf90242cb021cb6fcf9f2c3c92f6a7
+yuv420p10le 180b7e4de684c7225d2fb37614f842cb
+yuv420p12be 256c9e6cfc878a8abf681b30777c0620
+yuv420p12le 8dc8b86c4790da3769d4a62e87608623
+yuv420p14be 8d22756c5d2b9e501924c082bfb22a6c
+yuv420p14le c9da19d4818bcb119ad6481b75778f7e
+yuv420p16be 4ccdcca6dd6a960f9a3333f0aee095bd
+yuv420p16le 9c5847d9b0de258a10ee906dc47e24ea
+yuv420p9be fa7ad4f73232aac0e35def62af1e2c39
+yuv420p9le 3720ba1786b56c8f4913e67dddebbb07
+yuv422p eee223e92f1f2e5ad4186b411ebf5816
+yuv422p10be 80fa87750491dcc3e93d175b64835654
+yuv422p10le e1640cd315bd96c6b59f7753825a7306
+yuv422p12be 5c6d86e919515d1af71f8004a6252f9e
+yuv422p12le 7f331cadb0ab75d07656d29f47bd8bd9
+yuv422p14be 4f4e186ba683b90fe990cccc4db7e521
+yuv422p14le d78016c9119b1f1d1c922bd5aaf47732
+yuv422p16be 1f3c216927d17966a009a42def124bba
+yuv422p16le 90adbdffaeea9b09398339c8a1322b02
+yuv422p9be e46446534dd0821029d3b831c9c1d1b0
+yuv422p9le 520e418a2429f7efee511b7fcbf45ab6
+yuv440p 456d83524b299f2fa1bb988e421554d9
+yuv444p 068bc09d282d18c9fa35c2787943fc2a
+yuv444p10be 9f6e1490080a454243daee9229425e1e
+yuv444p10le cc183e51041351d9ac06c4df6e8ad5f7
+yuv444p12be 34f63ac6a47ac681016105d3bfb3e118
+yuv444p12le 7964701bfe8d718edf97f6e0002935bd
+yuv444p14be 4ad3a9d52fe9c050150c0f7d2f3cf63d
+yuv444p14le 69575e5a94b978f159c4fdb1a61587b0
+yuv444p16be 4000b12fa88ed0feef182da31c7e6b96
+yuv444p16le 96a857dba8dc6792c58daec872825b32
+yuv444p9be 07727e5c9040b7f0a17d591288ac330d
+yuv444p9le 4d12d20a68dc28618594c96c2ade4ff4
+yuva420p 3a8c5c142e051367c196f95696e0e2c3
+yuva420p10be 1b7c5ec6691498e24676ce6ed97f62f8
+yuva420p10le 4c13322bca914df2727da91cca85ca1a
+yuva420p16be 6afcf758f4b66c0b4173c942d42212d7
+yuva420p16le 13e195aa96329eb49921b6f9f07b875c
+yuva420p9be 05a78390de312dfd21ac666a9da05fbd
+yuva420p9le 78f5593bf51a31841ef83df41d0316eb
+yuva422p 45ae66d6f69fd5b77e6831e98d228bf4
+yuva422p10be 18284c58b926fe2389605c692a703145
+yuva422p10le b934d28b615729a24bebf0381c465e37
+yuva422p16be c3f7354b6013b43439e02aa02be5fe69
+yuva422p16le a7ccc43820683ab15061d14cf8efce6c
+yuva422p9be 14c55a16d19499b54b4341f135d3e558
+yuva422p9le a8bf168e5d2709222192d0aff46b1373
+yuva444p 86b05da54db8c7e8cf5b6638e19c6fc5
+yuva444p10be 8c417158165c00fbd42def60cbc27d69
+yuva444p10le 5f303ef3fb56faed69b4cc1c760ac6ae
+yuva444p16be 52a9591ec0d5059e49b1b2803f8582aa
+yuva444p16le a9272ac197e4a4195662ce90f533976c
+yuva444p9be f72f646ef07cdab613420585aba041ac
+yuva444p9le 6d431b0a27bf4f86ea44ef5f14247a01
+yuvj420p 73661456012f20cda81207b14bb0c0a5
+yuvj422p aa97862b57f47c5a6506156e9aaf129a
+yuvj440p ff8b9884a49d546b035f5d2ac1e673df
+yuvj444p b8142888d80b8065c54045839e79b331
+yuyv422 f06a4fbbdb32807d05de825daa2c3a1b
diff --git a/ffmpeg1/tests/ref/lavfi/pixfmts_pad b/ffmpeg1/tests/ref/lavfi/pixfmts_pad
new file mode 100644
index 0000000..192ff6a
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pixfmts_pad
@@ -0,0 +1,25 @@
+0bgr 36ba5b43e0ac64d8daad4f897efd8cdf
+0rgb cc3ca0f63885af19b3daa4504cadcc19
+abgr 9ddb78f395d7d3f75b65b5309223c0c5
+argb e5fbb7bb282a80897b8f730627f68876
+bgr0 c55368036cccbb0af471d6bd82abe02a
+bgr24 67f9fd70dc6d9896b7122976b33932b4
+bgra c8dd017b5a3b55e8b9d0ac1cdcf327bd
+gbrp 74f83deee9866bbdce3f91fa2aeddaaa
+gray b1abadae3718522aa57a7972da8cbe17
+rgb0 b1977b45634c4db58a183a07feb2acff
+rgb24 e73de9dc0fdd78f4853c168603cc7aba
+rgba 5a36df3c5ba623b589728a5a442e98e2
+yuv410p ff246b8b41d3d4a3eb90414ae3031123
+yuv411p a82c606c665fa747679aa8bfffa8a5db
+yuv420p 0fe4d9031999f83ca96292ec2025f272
+yuv422p 5e0bffdac30b39f1bae9ec54fd9a6a34
+yuv440p 5e338303cd89d1d76ab918e5bec1e90d
+yuv444p 248bdf9747d5c3718580dc2279e2e273
+yuva420p b5bdefbb0c5b302b6d18ee4df7c1d7c7
+yuva422p 8b56b36d9eb3c382d2a5a695107e759d
+yuva444p 389cf95e98bf24684a42d5d67b913e16
+yuvj420p d182ac937d312e4894c1bc548883bf1c
+yuvj422p 26ac91b5daf6f2f1f3c22be489e994a3
+yuvj440p 63e2b94f81e0a6f2868055a4c8258b63
+yuvj444p 64f103c7db8fc803d062db7ed2b8dc76
diff --git a/ffmpeg1/tests/ref/lavfi/pixfmts_pixdesctest b/ffmpeg1/tests/ref/lavfi/pixfmts_pixdesctest
new file mode 100644
index 0000000..05d5e0f
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pixfmts_pixdesctest
@@ -0,0 +1,110 @@
+0bgr 2b46a6ce47a19ffc240e4e93f498f491
+0rgb e90e5d377a3e5af69fdf7b60cbf88f51
+abgr 1a147fa04ed70b9a7e67a4c89052f630
+argb 997df0b5c268a0d8f9c611cae4e01e05
+bgr0 b61591a68252e66c576b9bb074a9eaed
+bgr24 d6370f6dc34df2ea66e1718baf74137b
+bgr444be aba6dfea008ae12c2120a95f54293904
+bgr444le cfb5401e8f076cc8675e17ed1114a3df
+bgr48be ab65229b64606f6408cd732b967c0b01
+bgr48le f1b4e718cadee9bd2978289153ce43de
+bgr4_byte de96505ef9ad7078f87b4dfdf6fe4b61
+bgr555be 8d5de9e9200d622f27dc73958a85045c
+bgr555le 74eb9837706143a40e26305a16a79369
+bgr565be 13a36d6502be88fc0c2aec05b8d2d501
+bgr565le ed027571692aecd522aa65a90cc7e09b
+bgr8 71ef789609c746c2e7e4be9dec29062c
+bgra 0364b074268682ea46168742a8239f7d
+gbrp 89d6e4b116e3bd542fa09a19a977ad16
+gbrp10be 5dc62e2d01fa7c19a57abe48246f2232
+gbrp10le 0cac205a304b59811ce30fcad49b3527
+gbrp12be de1d2a6b1d189bce9b9a2cf322c31c24
+gbrp12le e3267ef00bb48778df21a386416d2e14
+gbrp14be 7979d158b30c0b45db97aba2228d15fc
+gbrp14le d32b6c73a820f9d03a779a996924893d
+gbrp9be 2478d1c27ae4ec94ec4b5e439128af0c
+gbrp9le 640240ca2663e48f0bacd8edb5242c7d
+gray 1e5e2b8548843a6898eedd9c974c422c
+gray16be 389f4e5a8ab413b3af32767b59ed7f9e
+gray16le a1f912941247e45b394b9cf4f0e81130
+monob 309b5785a36bd988d17e15d88f4ffad1
+monow 8809a02bc69b58d1114b09ca79ebffad
+nv12 75e90c54d858b993e99f4ee6d2a2a38f
+nv21 8831a3f411015d45fbc5dd191245ba9c
+pal8 13de2a1c3c80cb64d14e2bc4f6f461d0
+rgb0 5774780b3c532896300fa326fcde01a8
+rgb24 c71ba90f69f15c8275232bb3f62d0ced
+rgb444be 26eaec65d7efd2b0c9c13b47dfd9b241
+rgb444le 5f29863553107110ea817f52151d77b7
+rgb48be a3bc81c46c21818a989f23104a599ab0
+rgb48le e87c661ac49aea1f1e93939802883d92
+rgb4_byte 293b1b84f01efd90bde40cb3faffc127
+rgb555be 5229183fa64d4e5c7e3703d8263ee6ae
+rgb555le c3e9978cb2a4129a5575935e8cbc433a
+rgb565be bc123b962629ead1a06af0c18cbb6e5f
+rgb565le 20757fafe4756e62d845b2ab4c0b8f93
+rgb8 e01614f5416dcc8ad365ad7a57afc9fb
+rgba 53796fa4c392a1b2659595b6a284f8c4
+uyvy422 3f411f947e3ac8f842c88e717d68bd9a
+yuv410p 7dcf3f4770c8b494290ceacd2c2ce6db
+yuv411p 9461b188dab6f8b90d9a27e353a89f58
+yuv420p 61fffd2d8425759a33ae07e718d0242d
+yuv420p10be 2abf90242cb021cb6fcf9f2c3c92f6a7
+yuv420p10le 180b7e4de684c7225d2fb37614f842cb
+yuv420p12be 256c9e6cfc878a8abf681b30777c0620
+yuv420p12le 8dc8b86c4790da3769d4a62e87608623
+yuv420p14be 8d22756c5d2b9e501924c082bfb22a6c
+yuv420p14le c9da19d4818bcb119ad6481b75778f7e
+yuv420p16be 4ccdcca6dd6a960f9a3333f0aee095bd
+yuv420p16le 9c5847d9b0de258a10ee906dc47e24ea
+yuv420p9be fa7ad4f73232aac0e35def62af1e2c39
+yuv420p9le 3720ba1786b56c8f4913e67dddebbb07
+yuv422p eee223e92f1f2e5ad4186b411ebf5816
+yuv422p10be 80fa87750491dcc3e93d175b64835654
+yuv422p10le e1640cd315bd96c6b59f7753825a7306
+yuv422p12be 5c6d86e919515d1af71f8004a6252f9e
+yuv422p12le 7f331cadb0ab75d07656d29f47bd8bd9
+yuv422p14be 4f4e186ba683b90fe990cccc4db7e521
+yuv422p14le d78016c9119b1f1d1c922bd5aaf47732
+yuv422p16be 1f3c216927d17966a009a42def124bba
+yuv422p16le 90adbdffaeea9b09398339c8a1322b02
+yuv422p9be e46446534dd0821029d3b831c9c1d1b0
+yuv422p9le 520e418a2429f7efee511b7fcbf45ab6
+yuv440p 456d83524b299f2fa1bb988e421554d9
+yuv444p 068bc09d282d18c9fa35c2787943fc2a
+yuv444p10be 9f6e1490080a454243daee9229425e1e
+yuv444p10le cc183e51041351d9ac06c4df6e8ad5f7
+yuv444p12be 34f63ac6a47ac681016105d3bfb3e118
+yuv444p12le 7964701bfe8d718edf97f6e0002935bd
+yuv444p14be 4ad3a9d52fe9c050150c0f7d2f3cf63d
+yuv444p14le 69575e5a94b978f159c4fdb1a61587b0
+yuv444p16be 4000b12fa88ed0feef182da31c7e6b96
+yuv444p16le 96a857dba8dc6792c58daec872825b32
+yuv444p9be 07727e5c9040b7f0a17d591288ac330d
+yuv444p9le 4d12d20a68dc28618594c96c2ade4ff4
+yuva420p 3a8c5c142e051367c196f95696e0e2c3
+yuva420p10be 1b7c5ec6691498e24676ce6ed97f62f8
+yuva420p10le 4c13322bca914df2727da91cca85ca1a
+yuva420p16be 6afcf758f4b66c0b4173c942d42212d7
+yuva420p16le 13e195aa96329eb49921b6f9f07b875c
+yuva420p9be 05a78390de312dfd21ac666a9da05fbd
+yuva420p9le 78f5593bf51a31841ef83df41d0316eb
+yuva422p 45ae66d6f69fd5b77e6831e98d228bf4
+yuva422p10be 18284c58b926fe2389605c692a703145
+yuva422p10le b934d28b615729a24bebf0381c465e37
+yuva422p16be c3f7354b6013b43439e02aa02be5fe69
+yuva422p16le a7ccc43820683ab15061d14cf8efce6c
+yuva422p9be 14c55a16d19499b54b4341f135d3e558
+yuva422p9le a8bf168e5d2709222192d0aff46b1373
+yuva444p 86b05da54db8c7e8cf5b6638e19c6fc5
+yuva444p10be 8c417158165c00fbd42def60cbc27d69
+yuva444p10le 5f303ef3fb56faed69b4cc1c760ac6ae
+yuva444p16be 52a9591ec0d5059e49b1b2803f8582aa
+yuva444p16le a9272ac197e4a4195662ce90f533976c
+yuva444p9be f72f646ef07cdab613420585aba041ac
+yuva444p9le 6d431b0a27bf4f86ea44ef5f14247a01
+yuvj420p 73661456012f20cda81207b14bb0c0a5
+yuvj422p aa97862b57f47c5a6506156e9aaf129a
+yuvj440p ff8b9884a49d546b035f5d2ac1e673df
+yuvj444p b8142888d80b8065c54045839e79b331
+yuyv422 f06a4fbbdb32807d05de825daa2c3a1b
diff --git a/ffmpeg1/tests/ref/lavfi/pixfmts_scale b/ffmpeg1/tests/ref/lavfi/pixfmts_scale
new file mode 100644
index 0000000..9bc3ced
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pixfmts_scale
@@ -0,0 +1,110 @@
+0bgr 710350573339f608b23e5bf8ea3327d0
+0rgb ba87d80ccd24ffb20ac711511132adb8
+abgr e448ff50225b119979987e55399e49e2
+argb ef03d804e0de6315fd59e3d2edaddb9d
+bgr0 93cd61cfcbef1789d2d5ccae4de75f79
+bgr24 793fc4c2b1c92ad4f7f4dca157e624d1
+bgr444be 9af6abe0bc74cdcc75b4ab2f441f5f67
+bgr444le b8c0e693ae2cbd7c03abcc3aeb4bf7b4
+bgr48be 3aa33b667b9baefe3f17ef44360688cd
+bgr48le eaf353ab363fbb279fd72d6c6e3b8855
+bgr4_byte a6e269daf7085504a01113ce5e8bff57
+bgr555be 9d71206c1a5373b8978126e5f5779726
+bgr555le 025caaa21fed9d14c382cac26af778c8
+bgr565be fca6f07daf23d9dd84381dd4c9afd959
+bgr565le f524e9f16bdd68b247dbcb621e543fc0
+bgr8 68a3a395043dc57335ad1f8e891229c5
+bgra 3eaf5489b8aa13a3388aad3751b597bf
+gbrp 7b83ae32c1f76bd634e50f4797a74e92
+gbrp10be 77dae432c42fad019c286753b0e4b0a8
+gbrp10le 7d3e7341423b1206e8a6a3a02b48b5d7
+gbrp12be 2c237c413e765024eb3f73d8c5e03df8
+gbrp12le 9a0c9eda1f16d640663c729d4bb88024
+gbrp14be 2b4f1928a5ef53d0a216b3b10fa11ca0
+gbrp14le 47100ec39fad45579de1dff56fe17117
+gbrp9be c345137de0aa4b0536a00009e8e11267
+gbrp9le b798662b2ba4cdf21ad6a6d4c1fe1b72
+gray 045c35e6cc7d41460f2b96b3e254deab
+gray16be 70064f9acdc5e3935ccda67e765bf2fb
+gray16le 578241fb43029e5ae841a3c94d940dce
+monob 91ec2a25b13f6ca34d42da778b217de0
+monow a991455fda8f60f373aeb744456996b9
+nv12 0617f1e13ae4a43d4cb49282b9c02f71
+nv21 8a00d5d29766c1251eeda74c0ddee3f2
+pal8 7849884994cf99604f025b053332d08d
+rgb0 6a9d26ebf674f02b5a8830583ba7a171
+rgb24 1de2978e23ad10b9b4ca2777688b4546
+rgb444be 88f534c5d07ebf5a4374484aed540893
+rgb444le c243685bfad7c243a78892a0dafe2b9f
+rgb48be 874c8e2305ce9d82165ffddf2854d1f2
+rgb48le 877075f2ff2d9a0aec6fec843385f126
+rgb4_byte 4a8b119cf1996efe273302da29cbfbfb
+rgb555be 8aeefa1fc4eba200abee3b1eb52186af
+rgb555le 0495a7c13f9b0d0253379d5ae90cf6c4
+rgb565be 5168b66e69c25351948085e5fc51bb3a
+rgb565le 301a4d41f0db3aaed341d812ed0d7927
+rgb8 8e5786e83099bc89d2e38a76e6dfcc52
+rgba de6a65b8c01bdad84e575202ca8b66a0
+uyvy422 479105bc4c7fbb4a33ca8745aa8c2de8
+yuv410p d0daa93f5cee83360e219e39563ab6da
+yuv411p e5c8f3ca024a88dd07e0a92db3e2133d
+yuv420p 485d9af8608f926ffffbf42230b4150d
+yuv420p10be e4f12002b46549779886f27fd3c6c645
+yuv420p10le 698b7a346ae6d1315280d3e28c86b973
+yuv420p12be 10ccb1da4f69f5578e017ffdaa19adf6
+yuv420p12le 4f68fcfeee4fb70ea941979cc6a39d1f
+yuv420p14be d7b1183a6ca2f5d80d1bddf609c35995
+yuv420p14le 934dbea61d804e7c66e805a45f1e3914
+yuv420p16be 6ebcf48a9317c6265430cd3ba5f569a2
+yuv420p16le 604a7215f384488a38aa0cffdbcbe17e
+yuv420p9be 7b293aec92897bf0a32ec3a02a20acf9
+yuv420p9le f37fdff7d6c62ebe2ab0cf791cd049db
+yuv422p b1724528079199908c667b3428a7c01c
+yuv422p10be 1c7281254fb980c123148dfd145c4a05
+yuv422p10le 959caa253354e897f01848db21b8006e
+yuv422p12be 9e1db2326fb3dd3a8f8d32f3a6f61305
+yuv422p12le 5a4aecf4baf74358551e75fd7f1549cd
+yuv422p14be e75088b934f86ddb6a7ff1749b77687c
+yuv422p14le 2cdae3e0447b35ddee6161639107205b
+yuv422p16be 4ccc3e0bc94eaf3a3350e4d694c3a56c
+yuv422p16le dde889032f13fa5f8d76b8484dd73116
+yuv422p9be ba5eae7669d02a13f54a592344612098
+yuv422p9le 2deb39425d924a15c8946df79ceaa579
+yuv440p 19de0ba1fd354b42189e96cdf73ef7cc
+yuv444p fba8a00cd0b182af82e9de3b2f4d2c8a
+yuv444p10be db89397ac4d33e66b5eab3678661f73a
+yuv444p10le 28208677f07d4e4191ef228c096f3297
+yuv444p12be 55d291347d13f98b520c7d0cf7e0bdfe
+yuv444p12le fd12d6054262cebda2a9b1a2ac4dac98
+yuv444p14be a078f34e001828d576e748ca0850af56
+yuv444p14le d02ba5c47b0bbb359df8ef478aa4c395
+yuv444p16be 07e27200d2f4382090ca260874f02e92
+yuv444p16le f8bac16bf1f2afbd3626e07bcc815a9f
+yuv444p9be db739906e3ae3b8792cdc5a0c3387565
+yuv444p9le 693b8d30958ef1a37296b1690b4b36d2
+yuva420p df46b738bdaf30d3a7f880b5ae45b092
+yuva420p10be 8e5f3b069fdf2f0c14f49ad827991092
+yuva420p10le ce4ac1961e0466c40448353cf76b3282
+yuva420p16be aa8ca29a93936c62ef038ca8a57f47d7
+yuva420p16le ee0cbb31f9cdb897c1982df0caa8ffa0
+yuva420p9be b8ca5603123aeb953b9d4fc8ec8e35e1
+yuva420p9le 220212a81cda0f2d112f7ae96d532ff9
+yuva422p 650755270debb03d2c03b2e93b64c576
+yuva422p10be 8d077362542a73c72aadb885510ea0c7
+yuva422p10le 80f729d9f8f438d2ab87909797c27873
+yuva422p16be 0b8f9385498d2449b18fb15237b0a448
+yuva422p16le ce22b20deb93b4846a5043aa104f22d1
+yuva422p9be 822df465d12916d8852340d6b56247c8
+yuva422p9le f69c09e872838fe392dfe1825263d3f1
+yuva444p 72083e0941cc45af9f97b89d3cd16112
+yuva444p10be 42e159c62771239fa14d06a2db3b357d
+yuva444p10le ee9786aee055c39da2dfbdb91ab834b5
+yuva444p16be 36a8797545163c24fc0d73f669c3108c
+yuva444p16le c017c229aacb832a12c2297fb080a7a0
+yuva444p9be 8bfb5decfc8b71478b090a5b48c316c3
+yuva444p9le 2c7bfb90f7db9faab6862537801e1143
+yuvj420p 31386dce60a2dcc493da5d0ed9d880df
+yuvj422p 492452e50a3fe66724840cad29be4098
+yuvj440p 7632893e81d3f4f3ace3755f97479897
+yuvj444p 389388dd5d623f660c30ab840807ce82
+yuyv422 518be9b5ac93c365c0962453770fbe73
diff --git a/ffmpeg1/tests/ref/lavfi/pixfmts_super2xsai b/ffmpeg1/tests/ref/lavfi/pixfmts_super2xsai
new file mode 100644
index 0000000..964d04a
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pixfmts_super2xsai
@@ -0,0 +1,14 @@
+abgr b04e3dfb0043f6eb04a573d2d13052eb
+argb 257e33717d23298430025c0665642cd5
+bgr24 3765d88f93d4ae8baa2cfbc64b0b32e1
+bgr555be 81832e6269c509be55bba49bdd0ebed5
+bgr555le 56772e91aefba4013890d156866730ce
+bgr565be 0b3c420fbddcec5a420c285b3c4b8792
+bgr565le 6cbded26d2bab8204afe2115384c09a8
+bgra c81430c3d1465e37b6acaa19cc54e932
+rgb24 9899359a817e705dc5b9cc363d35a625
+rgb555be 9b60d9aa1f3c78edf9936894f37e3243
+rgb555le 917fa8565f35882404a45fee3a947bf7
+rgb565be 12edaab49440fbb3aa4c1835fd697745
+rgb565le 5bf91cb1767066f23f0c672dedb4d476
+rgba 71687289b6c3ab6fa727d468de459026
diff --git a/ffmpeg1/tests/ref/lavfi/pixfmts_vflip b/ffmpeg1/tests/ref/lavfi/pixfmts_vflip
new file mode 100644
index 0000000..7990c3e
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pixfmts_vflip
@@ -0,0 +1,110 @@
+0bgr 30d1f7d7081c012556da0373e6d389ee
+0rgb 66cd838e9c19f750c61efd73f66c42ac
+abgr e6cc18ed21293e455d1dc63f9e1645e4
+argb b5383d783698a0b3d753d01f2498e490
+bgr0 f99729e70a94d1c278c292a7acdddae5
+bgr24 c48ec71c68a9840572a548c2ad141028
+bgr444be ab9253d2f836f58ff8f3f2b4ec76abdc
+bgr444le b1bd8245a286b615e75e10d34fda4e62
+bgr48be b5355b4fa578b9422288507cf7fba2b6
+bgr48le 11dc232500b6339f58a9981f46d1d7a9
+bgr4_byte 531fd9a2249a213c89b1afc9788d070e
+bgr555be 54ba55dc1dcc5a7f27f2727976be6583
+bgr555le a45c637fe5ce84b238b1e6f66fc8c852
+bgr565be 7100c2ddfee42e7efafec1ccefecf7c6
+bgr565le 9fab295d966386d4ef99d5b43066da47
+bgr8 275ce12eeb05de67a6915f67cbb43ce5
+bgra d29c35871248c476c366e678db580982
+gbrp 7852e9bbe52cfad9bab8081a5c7a5a31
+gbrp10be f591c6c98396baf3242837827081f2f7
+gbrp10le c5edb9bb566edbc8c478595ac6ab070f
+gbrp12be c61c19ad1bcca18719dd071e2cb77287
+gbrp12le 334a6c802ae0e15d9e0950c27ce4a457
+gbrp14be e24459d3b4a1e9c56ec3658c525b7a32
+gbrp14le 99207ef7c7dcb1d1369dc3fe3b5dc261
+gbrp9be 1daea1677f8a62c5a1ef8959c5e0e4b0
+gbrp9le e3cca50b844e7dd326eadf6e38fab84b
+gray a53528cdf80ed31c9897042a2ea16618
+gray16be 9b23f3e79c54a6ccb62e0135a32e3045
+gray16le 93cfa8fbb2a86ead275ce1817444e6d5
+monob c395a8efb9477b4ec53a77326e41ccd7
+monow efaee1c763ccd5ce1a8519d2ed5aa5a9
+nv12 77373304a9c732b65dab0a33afba9295
+nv21 1e70b3ce8be75f91f465a6d62df550c3
+pal8 be51ffaaad8e8428f2ce1e10d5729d3d
+rgb0 84a83e576fc59ffd1ac5549fd7aa0023
+rgb24 a00171a51cbbdcc61ecbd0198b2e2513
+rgb444be 09a819863d3fe75518376cdac01c069f
+rgb444le 4ab35fc85b8550be2a9b96dec9bf7306
+rgb48be 97a30a902d26b4840235926dae9028dd
+rgb48le 82b33a864bab70d5463d57eaf693e78c
+rgb4_byte afbfab537406988eab7460ec748a0389
+rgb555be 95e417e9429622245e2d2e0b1c3ab3e4
+rgb555le e4b35d8e9c1710f6d051fb4bda8700cc
+rgb565be c70d86afbd68a073f2d4fe0eee3a9832
+rgb565le 991576c5d3308a73068a826543b3e7af
+rgb8 42230235c5a2a66c0f9a2fcd20f9f5cd
+rgba a6973a2940a378d2a8284194da26eec0
+uyvy422 21c48162379321bb83ec2399535f9253
+yuv410p 8699f50c04f8ac931aa5a8306827364b
+yuv411p 47af34559b92b68851df4c2b170f7736
+yuv420p c59b35b82b5a195128736021913b35a4
+yuv420p10be fc5eed1744cdd033728362772a450e32
+yuv420p10le 141e6b39adac979765c846f3a5a8293c
+yuv420p12be 0e0145d3592d56362c1bcc62cbd78a78
+yuv420p12le 8c3a2b27126df203786d4e05fd79e269
+yuv420p14be 6a11c75aa378f9628cd8fc3339474e68
+yuv420p14le e8b683876508bc0371582e2b8c0eb191
+yuv420p16be c467fae3a1936f3f91c19dd1c0c63e49
+yuv420p16le 87f09595ac106e694c538382179bfcc5
+yuv420p9be 31bc440f64fdd8d9e7cba897881345ec
+yuv420p9le c6fed3016f03c49aa01bdcd63f846d3a
+yuv422p 5e48541d3e659046ac0e1eacb038485f
+yuv422p10be 9097b4d06f1fc598375b7c6480a2ba50
+yuv422p10le da7bd36f65cac06bd54bc9857493d835
+yuv422p12be 9c0fd650ec9872fbe06e82dc41a7399f
+yuv422p12le 3bdb982268c06b8876e206d8b89b4583
+yuv422p14be bb0fc25212c2aa9f273aad2d562c3384
+yuv422p14le 1f89e82da25ce459db456ed27631054f
+yuv422p16be 95ed65e718929dbeb5092bf0d852026d
+yuv422p16le c62e554dde4a170177bec2efc3f4f1a2
+yuv422p9be b249cd58eaab5ccac6bae3e184774362
+yuv422p9le 696fc2a55f155edaaa9fc289574b2bb8
+yuv440p fca8395b7e43e2d0f38dd6ba822ef747
+yuv444p 1ef971a434c53e81c578e3c7cb9cbcad
+yuv444p10be 3114a7469c2b9c440a9a9ccbd6e167d6
+yuv444p10le 34cb8774a1eb627b5f32825ac7d0ae9a
+yuv444p12be 2fd83655c3223d176243d7ff871df3cc
+yuv444p12le cfec541fde2894656f6b3401177b7604
+yuv444p14be 11671a128afd177e5eda13bd2e93ac26
+yuv444p14le 5aefe5d3f78e4f3b86ed7041a20f9b8e
+yuv444p16be 35340098dc6956c34afce17bc6ffcedd
+yuv444p16le 201e3acfa6f7628dfe2a1663de1128b1
+yuv444p9be 6143c321929ade9e0bc93ddea926e936
+yuv444p9le e43ba2026848ec803fabf74d77c10125
+yuva420p dc8fd115eaf203a3eac351b92a7d8f18
+yuva420p10be b3aaa8a5c9b9c3c9d66053159af3ec99
+yuva420p10le f7a8ae85fcac45db1f1689a1ab7cc63e
+yuva420p16be b5c54895e87521f65a298d33bab5eb08
+yuva420p16le 95e208bc6644e23a2126ac5fca085f06
+yuva420p9be 1ba55d16f060bf54698dd7200523b44f
+yuva420p9le 4b57b8bd1534743f6740502c74bef385
+yuva422p 6091f9c62a121c09eadb02e9173b2da2
+yuva422p10be a6e8352978f263ea89e63ad06a9339b1
+yuva422p10le ee39cfa1d29c294dc096f739bf454478
+yuva422p16be 3fa019b3d5e6dcb7c8e338837b9cffe1
+yuva422p16le 871f244989e14f5d3eda45abb6b3dfd1
+yuva422p9be 923c816778f782ff8a56bcd1b14ef08d
+yuva422p9le bd882d40af0369d9ef7891c8e7891024
+yuva444p 9a55e83047abcc7a709f20805070135e
+yuva444p10be 6258901ef2ddfdb526a1038d92e8b63c
+yuva444p10le 24b8ef0f63e60f0f0a4d47a5870ad773
+yuva444p16be 4699a802e8ea3e74e968122980c0b0b0
+yuva444p16le 6f54a8cff38c54a235b92a0f1314e0aa
+yuva444p9be 7472bb4b0c774d5d741035086d5e4330
+yuva444p9le ae11ddd5a3e8d69a36989f6f2a8897a1
+yuvj420p 200b0332de9944e76c94d2e0699a5a2d
+yuvj422p a19a89ef145305cf224ef5aa247d075a
+yuvj440p 4240c9348d28af5f3edd0e642002bd2c
+yuvj444p 9e11298ba9c4faae0f5c81420d2123f2
+yuyv422 867fff568fa4170503779c48e5f25e6e
diff --git a/ffmpeg1/tests/ref/lavfi/pp b/ffmpeg1/tests/ref/lavfi/pp
new file mode 100644
index 0000000..1f7efef
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pp
@@ -0,0 +1 @@
+pp 62a6acf1969155f29249fd0757540f9f
diff --git a/ffmpeg1/tests/ref/lavfi/pp2 b/ffmpeg1/tests/ref/lavfi/pp2
new file mode 100644
index 0000000..b32bd1a
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pp2
@@ -0,0 +1 @@
+pp2 efcfe545df8f869e3a93ae25a3e08967
diff --git a/ffmpeg1/tests/ref/lavfi/pp3 b/ffmpeg1/tests/ref/lavfi/pp3
new file mode 100644
index 0000000..ccf2eeb
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pp3
@@ -0,0 +1 @@
+pp3 39af1a30d0ea0e906df264773adfcaa6
diff --git a/ffmpeg1/tests/ref/lavfi/pp4 b/ffmpeg1/tests/ref/lavfi/pp4
new file mode 100644
index 0000000..0557ca6
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pp4
@@ -0,0 +1 @@
+pp4 d79a3727359f62747edb82cc92ed040b
diff --git a/ffmpeg1/tests/ref/lavfi/pp5 b/ffmpeg1/tests/ref/lavfi/pp5
new file mode 100644
index 0000000..4265566
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pp5
@@ -0,0 +1 @@
+pp5 5dc5a1f0c67d8a78e32cf50f47d1b27f
diff --git a/ffmpeg1/tests/ref/lavfi/pp6 b/ffmpeg1/tests/ref/lavfi/pp6
new file mode 100644
index 0000000..ca40024
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/pp6
@@ -0,0 +1 @@
+pp6 40fb584b10082dff87fb947a1bccdbef
diff --git a/ffmpeg1/tests/ref/lavfi/scale200 b/ffmpeg1/tests/ref/lavfi/scale200
new file mode 100644
index 0000000..f267522
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/scale200
@@ -0,0 +1 @@
+scale200 e84ce966038a9f8f915704959f64278d
diff --git a/ffmpeg1/tests/ref/lavfi/scale500 b/ffmpeg1/tests/ref/lavfi/scale500
new file mode 100644
index 0000000..ec4a699
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/scale500
@@ -0,0 +1 @@
+scale500 24e89b23ba4286162c2026181db8d2b7
diff --git a/ffmpeg1/tests/ref/lavfi/scalenorm b/ffmpeg1/tests/ref/lavfi/scalenorm
new file mode 100644
index 0000000..6df4bb8
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/scalenorm
@@ -0,0 +1 @@
+scalenorm cad5d7b40b213deecc1d156cf45fc70d
diff --git a/ffmpeg1/tests/ref/lavfi/select b/ffmpeg1/tests/ref/lavfi/select
new file mode 100644
index 0000000..a9d2be0
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/select
@@ -0,0 +1 @@
+select 7975bb8d0e326af9369379927324f1a6
diff --git a/ffmpeg1/tests/ref/lavfi/setdar b/ffmpeg1/tests/ref/lavfi/setdar
new file mode 100644
index 0000000..5bc7d5d
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/setdar
@@ -0,0 +1 @@
+setdar 04b06d4622b116cdae756d4b475b9d5d
diff --git a/ffmpeg1/tests/ref/lavfi/setsar b/ffmpeg1/tests/ref/lavfi/setsar
new file mode 100644
index 0000000..86592e8
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/setsar
@@ -0,0 +1 @@
+setsar 04b06d4622b116cdae756d4b475b9d5d
diff --git a/ffmpeg1/tests/ref/lavfi/testsrc b/ffmpeg1/tests/ref/lavfi/testsrc
new file mode 100644
index 0000000..8e2363b
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/testsrc
@@ -0,0 +1 @@
+testsrc cdac8817054b30e086d6ecabdcec5444
diff --git a/ffmpeg1/tests/ref/lavfi/thumbnail b/ffmpeg1/tests/ref/lavfi/thumbnail
new file mode 100644
index 0000000..5cfbf50
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/thumbnail
@@ -0,0 +1 @@
+thumbnail 33c479d5701943253df5e6adc6bc8746
diff --git a/ffmpeg1/tests/ref/lavfi/tile b/ffmpeg1/tests/ref/lavfi/tile
new file mode 100644
index 0000000..376acfc
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/tile
@@ -0,0 +1 @@
+tile bfd98570151154d078b14398f867f0e8
diff --git a/ffmpeg1/tests/ref/lavfi/tinterlace_merge b/ffmpeg1/tests/ref/lavfi/tinterlace_merge
new file mode 100644
index 0000000..300713f
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/tinterlace_merge
@@ -0,0 +1,10 @@
+gray c996e583bbc5a6f380463142eb77b7c6
+yuv410p c9bad1317b496071d6d895238638e07d
+yuv420p 9794d11e59ec7bcdf9e30a433e4137b1
+yuv422p e852e61e455db8ee3981ea942d510b0f
+yuv444p a38a3f65d2f358cde5e9547c897cfcd5
+yuva420p c1dc15d6ee78587d9f825acd795673d7
+yuvj420p 3ee7014727ee64b45292a4f15ba028d8
+yuvj422p 4f990d5473f15571276adb5770b3b773
+yuvj440p 9a005e8b8431aaa762fde8d942fd11a9
+yuvj444p e29bf9f42e3a3632e09df529979e0040
diff --git a/ffmpeg1/tests/ref/lavfi/tinterlace_pad b/ffmpeg1/tests/ref/lavfi/tinterlace_pad
new file mode 100644
index 0000000..722ac85
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/tinterlace_pad
@@ -0,0 +1,10 @@
+gray 25a7d1ccf1a06c1a8a0520c1e6cb30ff
+yuv410p 17163d1b4f21d894598fc62e6aeb8141
+yuv420p f8bbae33295741c1c17d33ff8ee16f7f
+yuv422p 4fa67d1580d3453942bb0950c5784f6e
+yuv444p f0558305fb7ca65b5b86d3ee88c4201e
+yuva420p 7c76c0ca03a62275d25e8140c68da2b9
+yuvj420p b5b7baf11946a2265fc56e48be5b0436
+yuvj422p 2e70ab700851d12a773f926bb1785235
+yuvj440p 93319f9c8a02ee793966fae40f7e42fd
+yuvj444p 81a124fffe0214bee5205c90ae0dd201
diff --git a/ffmpeg1/tests/ref/lavfi/transpose b/ffmpeg1/tests/ref/lavfi/transpose
new file mode 100644
index 0000000..1785e3a
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/transpose
@@ -0,0 +1 @@
+transpose 75d71957db820f657ccc46c14da6c8e9
diff --git a/ffmpeg1/tests/ref/lavfi/unsharp b/ffmpeg1/tests/ref/lavfi/unsharp
new file mode 100644
index 0000000..ad064ae
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/unsharp
@@ -0,0 +1 @@
+unsharp 7d72d2ab7b7f60159c822a097e01068b
diff --git a/ffmpeg1/tests/ref/lavfi/vflip b/ffmpeg1/tests/ref/lavfi/vflip
new file mode 100644
index 0000000..ee49247
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/vflip
@@ -0,0 +1 @@
+vflip c59b35b82b5a195128736021913b35a4
diff --git a/ffmpeg1/tests/ref/lavfi/vflip_crop b/ffmpeg1/tests/ref/lavfi/vflip_crop
new file mode 100644
index 0000000..43c944a
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/vflip_crop
@@ -0,0 +1 @@
+vflip_crop cd56578bb7e89ca0853467dfecab244b
diff --git a/ffmpeg1/tests/ref/lavfi/vflip_vflip b/ffmpeg1/tests/ref/lavfi/vflip_vflip
new file mode 100644
index 0000000..f401fc7
--- /dev/null
+++ b/ffmpeg1/tests/ref/lavfi/vflip_vflip
@@ -0,0 +1 @@
+vflip_vflip 61fffd2d8425759a33ae07e718d0242d
diff --git a/ffmpeg1/tests/ref/seek/acodec-adpcm-ima_qt b/ffmpeg1/tests/ref/seek/acodec-adpcm-ima_qt
new file mode 100644
index 0000000..bdaf1f0
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-adpcm-ima_qt
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 72 size: 68
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 72 size: 68
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.893878 pts: 1.893878 pos: 88812 size: 68
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.789478 pts: 0.789478 pos: 37064 size: 68
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 72 size: 68
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.577438 pts: 2.577438 pos: 120840 size: 68
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470113 pts: 1.470113 pos: 68956 size: 68
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365714 pts: 0.365714 pos: 17208 size: 68
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 72 size: 68
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153673 pts: 2.153673 pos: 100984 size: 68
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.046349 pts: 1.046349 pos: 49100 size: 68
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 72 size: 68
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835760 pts: 2.835760 pos: 132944 size: 68
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.731338 pts: 1.731338 pos: 81196 size: 68
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624036 pts: 0.624036 pos: 29312 size: 68
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 72 size: 68
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.411995 pts: 2.411995 pos: 113088 size: 68
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.307574 pts: 1.307574 pos: 61340 size: 68
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200272 pts: 0.200272 pos: 9456 size: 68
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 72 size: 68
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.988209 pts: 1.988209 pos: 93232 size: 68
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883810 pts: 0.883810 pos: 41484 size: 68
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 72 size: 68
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671769 pts: 2.671769 pos: 125260 size: 68
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.564444 pts: 1.564444 pos: 73376 size: 68
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460045 pts: 0.460045 pos: 21628 size: 68
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 72 size: 68
diff --git a/ffmpeg1/tests/ref/seek/acodec-adpcm-ima_wav b/ffmpeg1/tests/ref/seek/acodec-adpcm-ima_wav
new file mode 100644
index 0000000..b6517c5
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-adpcm-ima_wav
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 60 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 60 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.856009 pts: 1.856009 pos: 29756 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.831995 pts: 0.831995 pos: 13372 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 60 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.623991 pts: 2.623991 pos: 42044 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.408005 pts: 1.408005 pos: 22588 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.383991 pts: 0.383991 pos: 6204 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 60 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.176009 pts: 2.176009 pos: 34876 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.023991 pts: 1.023991 pos: 16444 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 60 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.816009 pts: 2.816009 pos: 45116 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.791995 pts: 1.791995 pos: 28732 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.576009 pts: 0.576009 pos: 9276 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 60 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.368005 pts: 2.368005 pos: 37948 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.343991 pts: 1.343991 pos: 21564 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.191995 pts: 0.191995 pos: 3132 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 60 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.983991 pts: 1.983991 pos: 31804 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.896009 pts: 0.896009 pos: 14396 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 60 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.688005 pts: 2.688005 pos: 43068 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.536009 pts: 1.536009 pos: 24636 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.511995 pts: 0.511995 pos: 8252 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 60 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-adpcm-ms b/ffmpeg1/tests/ref/seek/acodec-adpcm-ms
new file mode 100644
index 0000000..579be7f
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-adpcm-ms
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 90 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 90 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.856009 pts: 1.856009 pos: 29786 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.831995 pts: 0.831995 pos: 13402 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 90 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.623991 pts: 2.623991 pos: 42074 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.408005 pts: 1.408005 pos: 22618 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.383991 pts: 0.383991 pos: 6234 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 90 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.176009 pts: 2.176009 pos: 34906 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.023991 pts: 1.023991 pos: 16474 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 90 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.816009 pts: 2.816009 pos: 45146 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.791995 pts: 1.791995 pos: 28762 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.576009 pts: 0.576009 pos: 9306 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 90 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.368005 pts: 2.368005 pos: 37978 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.343991 pts: 1.343991 pos: 21594 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.191995 pts: 0.191995 pos: 3162 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 90 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.983991 pts: 1.983991 pos: 31834 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.896009 pts: 0.896009 pos: 14426 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 90 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.688005 pts: 2.688005 pos: 43098 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.536009 pts: 1.536009 pos: 24666 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.511995 pts: 0.511995 pos: 8282 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 90 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-adpcm-swf b/ffmpeg1/tests/ref/seek/acodec-adpcm-swf
new file mode 100644
index 0000000..2f90913
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-adpcm-swf
@@ -0,0 +1,49 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 208 size: 2053
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 208 size: 2053
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.858000 pts: 1.858000 pos: 82968 size: 2053
+ret: 0 st: 0 flags:0 ts: 0.788000
+ret: 0 st: 0 flags:1 dts: 0.789000 pts: 0.789000 pos: 35381 size: 2053
+ret:-1 st: 0 flags:1 ts:-0.317000
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.601000 pts: 2.601000 pos: 116072 size: 2053
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 64347 size: 2053
+ret: 0 st: 0 flags:0 ts: 0.365000
+ret: 0 st: 0 flags:1 dts: 0.372000 pts: 0.372000 pos: 16760 size: 2053
+ret:-1 st: 0 flags:1 ts:-0.741000
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.183000 pts: 2.183000 pos: 97451 size: 2053
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.022000 pts: 1.022000 pos: 45726 size: 2053
+ret: 0 st: 0 flags:0 ts:-0.058000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 208 size: 2053
+ret: 0 st: 0 flags:1 ts: 2.836000
+ret: 0 st: 0 flags:1 dts: 2.833000 pts: 2.833000 pos: 126417 size: 2053
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.765000 pts: 1.765000 pos: 78830 size: 2053
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.604000 pts: 0.604000 pos: 27105 size: 2053
+ret: 0 st: 0 flags:0 ts:-0.482000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 208 size: 2053
+ret: 0 st: 0 flags:1 ts: 2.413000
+ret: 0 st: 0 flags:1 dts: 2.368000 pts: 2.368000 pos: 105727 size: 2053
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.347000 pts: 1.347000 pos: 60209 size: 2053
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.186000 pts: 0.186000 pos: 8484 size: 2053
+ret: 0 st: 0 flags:0 ts:-0.905000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 208 size: 2053
+ret: 0 st: 0 flags:1 ts: 1.989000
+ret: 0 st: 0 flags:1 dts: 1.950000 pts: 1.950000 pos: 87106 size: 2053
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.929000 pts: 0.929000 pos: 41588 size: 2053
+ret:-1 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:0 ts: 2.672000
+ret: 0 st: 0 flags:1 dts: 2.694000 pts: 2.694000 pos: 120210 size: 2053
+ret: 0 st: 0 flags:1 ts: 1.566000
+ret: 0 st: 0 flags:1 dts: 1.533000 pts: 1.533000 pos: 68485 size: 2053
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.464000 pts: 0.464000 pos: 20898 size: 2053
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/acodec-adpcm-yamaha b/ffmpeg1/tests/ref/seek/acodec-adpcm-yamaha
new file mode 100644
index 0000000..5cbfaed
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-adpcm-yamaha
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.856009 pts: 1.856009 pos: 29754 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.831995 pts: 0.831995 pos: 13370 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.623991 pts: 2.623991 pos: 42042 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.408005 pts: 1.408005 pos: 22586 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.383991 pts: 0.383991 pos: 6202 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.176009 pts: 2.176009 pos: 34874 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.023991 pts: 1.023991 pos: 16442 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.816009 pts: 2.816009 pos: 45114 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.791995 pts: 1.791995 pos: 28730 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.576009 pts: 0.576009 pos: 9274 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.368005 pts: 2.368005 pos: 37946 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.343991 pts: 1.343991 pos: 21562 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.191995 pts: 0.191995 pos: 3130 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.983991 pts: 1.983991 pos: 31802 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.896009 pts: 0.896009 pos: 14394 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.688005 pts: 2.688005 pos: 43066 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.536009 pts: 1.536009 pos: 24634 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.511995 pts: 0.511995 pos: 8250 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-alac b/ffmpeg1/tests/ref/seek/acodec-alac
new file mode 100644
index 0000000..a281d2e
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-alac
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 3236
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 3236
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.857596 pts: 1.857596 pos: 73647 size: 4961
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.835918 pts: 0.835918 pos: 29032 size: 3194
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 3236
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.600635 pts: 2.600635 pos: 137553 size: 12843
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.393197 pts: 1.393197 pos: 50155 size: 4414
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.371519 pts: 0.371519 pos: 12942 size: 3209
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 3236
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.229116 pts: 2.229116 pos: 100931 size: 7896
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.021678 pts: 1.021678 pos: 35314 size: 3031
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 3236
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.786395 pts: 2.786395 pos: 163176 size: 12765
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.764717 pts: 1.764717 pos: 68676 size: 4971
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.557279 pts: 0.557279 pos: 19337 size: 3234
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 3236
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.321995 pts: 2.321995 pos: 108827 size: 7886
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.393197 pts: 1.393197 pos: 50155 size: 4414
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.185760 pts: 0.185760 pos: 6466 size: 3245
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 3236
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.950476 pts: 1.950476 pos: 78608 size: 6514
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.928798 pts: 0.928798 pos: 32226 size: 3088
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 3236
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.693515 pts: 2.693515 pos: 150396 size: 12780
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.486077 pts: 1.486077 pos: 54569 size: 4554
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.464399 pts: 0.464399 pos: 16151 size: 3186
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 3236
diff --git a/ffmpeg1/tests/ref/seek/acodec-flac b/ffmpeg1/tests/ref/seek/acodec-flac
new file mode 100644
index 0000000..ab31891
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-flac
@@ -0,0 +1,49 @@
+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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 19353 size: 608
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/acodec-mp2 b/ffmpeg1/tests/ref/seek/acodec-mp2
new file mode 100644
index 0000000..8de3676
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-mp2
@@ -0,0 +1,49 @@
+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:-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:-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:-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
+ret: 0 st: 0 flags:1 dts: 1.044898 pts: 1.044898 pos: 16718 size: 418
+ret: 0 st: 0 flags:0 ts:-0.058330
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
+ret: 0 st: 0 flags:1 ts: 2.835837
+ret: 0 st: 0 flags:1 dts: 2.821224 pts: 2.821224 pos: 45139 size: 418
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.750204 pts: 1.750204 pos: 28003 size: 418
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.600816 pts: 0.600816 pos: 9613 size: 418
+ret: 0 st: 0 flags:0 ts:-0.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 0 flags:1 dts: 2.403265 pts: 2.403265 pos: 38452 size: 418
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.332245 pts: 1.332245 pos: 21315 size: 418
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.182857 pts: 0.182857 pos: 2925 size: 418
+ret: 0 st: 0 flags:0 ts:-0.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
+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: 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
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-alaw b/ffmpeg1/tests/ref/seek/acodec-pcm-alaw
new file mode 100644
index 0000000..e5466bd
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-alaw
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 167124 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 69590 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 227320 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 129786 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 32252 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 189982 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 92448 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 250178 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 152644 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 55110 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 212840 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 115306 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 17772 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 175504 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 77968 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 235700 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 138166 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 40630 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-f32be b/ffmpeg1/tests/ref/seek/acodec-pcm-f32be
new file mode 100644
index 0000000..b838262
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-f32be
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 8192
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 8192
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 668296 size: 8192
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 278160 size: 8192
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 8192
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 909080 size: 8192
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 518944 size: 8192
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 128808 size: 8192
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 8192
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 759728 size: 8192
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 369592 size: 8192
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 8192
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:1000512 size: 8192
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 610376 size: 8192
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 220240 size: 8192
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 8192
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 851160 size: 8192
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 461024 size: 8192
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 70888 size: 8192
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 8192
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 701816 size: 8192
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 311672 size: 8192
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 8192
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 942600 size: 8192
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 552464 size: 8192
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 162320 size: 8192
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 8192
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-f32le b/ffmpeg1/tests/ref/seek/acodec-pcm-f32le
new file mode 100644
index 0000000..335a8a0
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-f32le
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 668344 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 278208 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 909128 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 518992 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 128856 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 759776 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 369640 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:1000560 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 610424 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 220288 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 851208 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 461072 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 70936 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 701864 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 311720 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 942648 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 552512 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 162368 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-f64be b/ffmpeg1/tests/ref/seek/acodec-pcm-f64be
new file mode 100644
index 0000000..8222351
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-f64be
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 16384
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 16384
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos:1336560 size: 16384
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 556288 size: 16384
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 16384
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos:1818128 size: 16384
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:1037856 size: 16384
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 257584 size: 16384
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 16384
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos:1519424 size: 16384
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 739152 size: 16384
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 16384
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:2000992 size: 16384
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos:1220720 size: 16384
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 440448 size: 16384
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 16384
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos:1702288 size: 16384
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 922016 size: 16384
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 141744 size: 16384
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 16384
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos:1403600 size: 16384
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 623312 size: 16384
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 16384
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos:1885168 size: 16384
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:1104896 size: 16384
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 324608 size: 16384
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 16384
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-f64le b/ffmpeg1/tests/ref/seek/acodec-pcm-f64le
new file mode 100644
index 0000000..41eeda0
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-f64le
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos:1336608 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 556336 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos:1818176 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:1037904 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 257632 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos:1519472 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 739200 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:2001040 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos:1220768 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 440496 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos:1702336 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 922064 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 141792 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos:1403648 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 623360 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos:1885216 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:1104944 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 324656 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 80 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-mulaw b/ffmpeg1/tests/ref/seek/acodec-pcm-mulaw
new file mode 100644
index 0000000..e5466bd
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-mulaw
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 167124 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 69590 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 227320 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 129786 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 32252 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 189982 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 92448 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 250178 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 152644 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 55110 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 212840 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 115306 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 17772 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 175504 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 77968 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 235700 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 138166 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 40630 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 58 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-s16be b/ffmpeg1/tests/ref/seek/acodec-pcm-s16be
new file mode 100644
index 0000000..f6a6be4
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-s16be
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880816 pts: 1.880816 pos: 331812 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.789478 pts: 0.789478 pos: 139300 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.577415 pts: 2.577415 pos: 454692 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.462857 pts: 1.462857 pos: 258084 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.371519 pts: 0.371519 pos: 65572 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.159456 pts: 2.159456 pos: 380964 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.044898 pts: 1.044898 pos: 184356 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.832834 pts: 2.832834 pos: 499748 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.741497 pts: 1.741497 pos: 307236 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.603719 pts: 0.603719 pos: 106532 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.391655 pts: 2.391655 pos: 421924 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.323537 pts: 1.323537 pos: 233508 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.185760 pts: 0.185760 pos: 32804 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.973696 pts: 1.973696 pos: 348196 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.905578 pts: 0.905578 pos: 159780 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.693515 pts: 2.693515 pos: 475172 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.555737 pts: 1.555737 pos: 274468 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.464399 pts: 0.464399 pos: 81956 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-s16le b/ffmpeg1/tests/ref/seek/acodec-pcm-s16le
new file mode 100644
index 0000000..4f1ffc5
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-s16le
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 334178 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 139110 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 454570 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 259502 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 64434 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 379894 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 184826 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 500286 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 305218 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 110150 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 425610 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 230542 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 35474 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 350938 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 155866 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 471330 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 276262 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 81190 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-s24be b/ffmpeg1/tests/ref/seek/acodec-pcm-s24be
new file mode 100644
index 0000000..ef22082
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-s24be
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 6144
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 6144
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880816 pts: 1.880816 pos: 497700 size: 6144
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.789478 pts: 0.789478 pos: 208932 size: 6144
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 6144
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.577415 pts: 2.577415 pos: 682020 size: 6144
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.462857 pts: 1.462857 pos: 387108 size: 6144
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.371519 pts: 0.371519 pos: 98340 size: 6144
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 6144
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.159456 pts: 2.159456 pos: 571428 size: 6144
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.044898 pts: 1.044898 pos: 276516 size: 6144
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 6144
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.832834 pts: 2.832834 pos: 749604 size: 6144
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.741497 pts: 1.741497 pos: 460836 size: 6144
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.603719 pts: 0.603719 pos: 159780 size: 6144
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 6144
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.391655 pts: 2.391655 pos: 632868 size: 6144
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.323537 pts: 1.323537 pos: 350244 size: 6144
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.185760 pts: 0.185760 pos: 49188 size: 6144
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 6144
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.973696 pts: 1.973696 pos: 522276 size: 6144
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.905578 pts: 0.905578 pos: 239652 size: 6144
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 6144
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.693515 pts: 2.693515 pos: 712740 size: 6144
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.555737 pts: 1.555737 pos: 411684 size: 6144
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.464399 pts: 0.464399 pos: 122916 size: 6144
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 6144
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-s24le b/ffmpeg1/tests/ref/seek/acodec-pcm-s24le
new file mode 100644
index 0000000..c6a37f8
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-s24le
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4092
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4092
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 501266 size: 4092
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 208664 size: 4092
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4092
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 681854 size: 4092
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 389252 size: 4092
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 96650 size: 4092
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4092
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 569840 size: 4092
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 277238 size: 4092
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4092
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 750428 size: 4092
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 457826 size: 4092
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 165224 size: 4092
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4092
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 638414 size: 4092
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 345812 size: 4092
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 53210 size: 4092
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4092
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 526406 size: 4092
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 233798 size: 4092
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4092
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 706994 size: 4092
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 414392 size: 4092
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 121784 size: 4092
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4092
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-s32be b/ffmpeg1/tests/ref/seek/acodec-pcm-s32be
new file mode 100644
index 0000000..6aed744
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-s32be
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 8192
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 8192
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880816 pts: 1.880816 pos: 663588 size: 8192
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.789478 pts: 0.789478 pos: 278564 size: 8192
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 8192
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.577415 pts: 2.577415 pos: 909348 size: 8192
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.462857 pts: 1.462857 pos: 516132 size: 8192
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.371519 pts: 0.371519 pos: 131108 size: 8192
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 8192
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.159456 pts: 2.159456 pos: 761892 size: 8192
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.044898 pts: 1.044898 pos: 368676 size: 8192
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 8192
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.832834 pts: 2.832834 pos: 999460 size: 8192
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.741497 pts: 1.741497 pos: 614436 size: 8192
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.603719 pts: 0.603719 pos: 213028 size: 8192
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 8192
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.391655 pts: 2.391655 pos: 843812 size: 8192
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.323537 pts: 1.323537 pos: 466980 size: 8192
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.185760 pts: 0.185760 pos: 65572 size: 8192
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 8192
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.973696 pts: 1.973696 pos: 696356 size: 8192
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.905578 pts: 0.905578 pos: 319524 size: 8192
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 8192
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.693515 pts: 2.693515 pos: 950308 size: 8192
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.555737 pts: 1.555737 pos: 548900 size: 8192
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.464399 pts: 0.464399 pos: 163876 size: 8192
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 8192
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-s32le b/ffmpeg1/tests/ref/seek/acodec-pcm-s32le
new file mode 100644
index 0000000..df85b2d
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-s32le
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 668332 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 278196 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 909116 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 518980 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 128844 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 759764 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 369628 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:1000548 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 610412 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 220276 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 851196 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 461060 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 70924 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 701852 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 311708 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 942636 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 552500 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 162356 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 68 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-s8 b/ffmpeg1/tests/ref/seek/acodec-pcm-s8
new file mode 100644
index 0000000..b119e2e
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-s8
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 2048
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 2048
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880816 pts: 1.880816 pos: 165924 size: 2048
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.789478 pts: 0.789478 pos: 69668 size: 2048
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 2048
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.577415 pts: 2.577415 pos: 227364 size: 2048
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.462857 pts: 1.462857 pos: 129060 size: 2048
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.371519 pts: 0.371519 pos: 32804 size: 2048
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 2048
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.159456 pts: 2.159456 pos: 190500 size: 2048
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.044898 pts: 1.044898 pos: 92196 size: 2048
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 2048
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.832834 pts: 2.832834 pos: 249892 size: 2048
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.741497 pts: 1.741497 pos: 153636 size: 2048
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.603719 pts: 0.603719 pos: 53284 size: 2048
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 2048
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.391655 pts: 2.391655 pos: 210980 size: 2048
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.323537 pts: 1.323537 pos: 116772 size: 2048
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.185760 pts: 0.185760 pos: 16420 size: 2048
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 2048
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.973696 pts: 1.973696 pos: 174116 size: 2048
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.905578 pts: 0.905578 pos: 79908 size: 2048
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 2048
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.693515 pts: 2.693515 pos: 237604 size: 2048
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.555737 pts: 1.555737 pos: 137252 size: 2048
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.464399 pts: 0.464399 pos: 40996 size: 2048
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 2048
diff --git a/ffmpeg1/tests/ref/seek/acodec-pcm-u8 b/ffmpeg1/tests/ref/seek/acodec-pcm-u8
new file mode 100644
index 0000000..8348916
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/acodec-pcm-u8
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 167112 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 69578 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 227308 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 129774 size: 4096
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 32240 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 189970 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 92436 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 250166 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 152632 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 55098 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 212828 size: 4096
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 115294 size: 4096
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 17760 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 175492 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 77956 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 235688 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 138154 size: 4096
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 40618 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 46 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/lavf-aiff b/ffmpeg1/tests/ref/seek/lavf-aiff
new file mode 100644
index 0000000..eb9ada0
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-aiff
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 70 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 70 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret:-EOF
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 69602 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 70 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret:-EOF
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 32264 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 70 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret:-EOF
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 70 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 55122 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 70 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 17784 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 70 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 77980 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 70 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret:-EOF
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 40642 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 70 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/lavf-alaw b/ffmpeg1/tests/ref/seek/lavf-alaw
new file mode 100644
index 0000000..84661ec
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-alaw
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos: 41766 size: 1024
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 17383 size: 1024
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 32432 size: 1024
+ret: 0 st: 0 flags:0 ts: 0.364989
+ret: 0 st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos: 8048 size: 1024
+ret: 0 st: 0 flags:1 ts:-0.740816
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047483 pts: 1.047483 pos: 23097 size: 1024
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos: 38147 size: 1024
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 13763 size: 1024
+ret: 0 st: 0 flags:0 ts:-0.481678
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st: 0 flags:1 ts: 2.412517
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 28812 size: 1024
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos: 4428 size: 1024
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st: 0 flags:1 ts: 1.989161
+ret: 0 st: 0 flags:1 dts: 1.989161 pts: 1.989161 pos: 43861 size: 1024
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos: 19478 size: 1024
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st: 0 flags:0 ts: 2.671655
+ret:-EOF
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 34527 size: 1024
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 10143 size: 1024
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
diff --git a/ffmpeg1/tests/ref/seek/lavf-asf b/ffmpeg1/tests/ref/seek/lavf-asf
new file mode 100644
index 0000000..9a14895
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-asf
@@ -0,0 +1,53 @@
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 1 flags:1 dts: 0.470000 pts: 0.470000 pos: 147889 size: 209
+ret: 0 st: 0 flags:0 ts: 0.788000
+ret: 0 st: 1 flags:1 dts: 0.470000 pts: 0.470000 pos: 147889 size: 209
+ret: 0 st: 0 flags:1 ts:-0.317000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
+ret: 0 st: 1 flags:0 ts: 2.577000
+ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 330289 size: 209
+ret: 0 st: 1 flags:1 ts: 1.471000
+ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 330289 size: 209
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 1 flags:1 dts: 0.470000 pts: 0.470000 pos: 147889 size: 209
+ret: 0 st:-1 flags:1 ts:-0.740831
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
+ret: 0 st: 0 flags:0 ts: 2.153000
+ret: 0 st: 1 flags:1 dts: 0.941000 pts: 0.941000 pos: 301489 size: 209
+ret: 0 st: 0 flags:1 ts: 1.048000
+ret: 0 st: 1 flags:1 dts: 0.941000 pts: 0.941000 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: 689 size: 208
+ret: 0 st: 1 flags:1 ts: 2.836000
+ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 330289 size: 209
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 1 flags:1 dts: 0.941000 pts: 0.941000 pos: 301489 size: 209
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
+ret: 0 st: 0 flags:0 ts:-0.482000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
+ret: 0 st: 0 flags:1 ts: 2.413000
+ret: 0 st: 1 flags:1 dts: 0.941000 pts: 0.941000 pos: 301489 size: 209
+ret: 0 st: 1 flags:0 ts: 1.307000
+ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 330289 size: 209
+ret: 0 st: 1 flags:1 ts: 0.201000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 1 flags:1 dts: 0.941000 pts: 0.941000 pos: 301489 size: 209
+ret: 0 st: 0 flags:0 ts: 0.883000
+ret: 0 st: 1 flags:1 dts: 0.470000 pts: 0.470000 pos: 147889 size: 209
+ret: 0 st: 0 flags:1 ts:-0.222000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
+ret: 0 st: 1 flags:0 ts: 2.672000
+ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 330289 size: 209
+ret: 0 st: 1 flags:1 ts: 1.566000
+ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 330289 size: 209
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 1 flags:1 dts: 0.470000 pts: 0.470000 pos: 147889 size: 209
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 689 size: 208
diff --git a/ffmpeg1/tests/ref/seek/lavf-au b/ffmpeg1/tests/ref/seek/lavf-au
new file mode 100644
index 0000000..d5a70b2
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-au
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 2048
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 2048
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret:-EOF
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 69564 size: 2048
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 2048
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret:-EOF
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 32226 size: 2048
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 2048
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret:-EOF
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 2048
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 55084 size: 2048
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 2048
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 17746 size: 2048
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 2048
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 77942 size: 2048
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 2048
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret:-EOF
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 40604 size: 2048
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 2048
diff --git a/ffmpeg1/tests/ref/seek/lavf-avi b/ffmpeg1/tests/ref/seek/lavf-avi
new file mode 100644
index 0000000..7725134
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-avi
@@ -0,0 +1,44 @@
+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: 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: 301474 size: 27864
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301474 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: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301474 size: 27864
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 1 flags:1 dts: 0.470204 pts: 0.470204 pos: 155956 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: 301474 size: 27864
+ret: 0 st: 1 flags:0 ts:-0.052245
+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: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301474 size: 27864
+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.470204 pts: 0.470204 pos: 155956 size: 209
+ret: 0 st: 0 flags:0 ts:-0.480000
+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: 301474 size: 27864
+ret:-1 st: 1 flags:0 ts: 1.306122
+ret: 0 st: 1 flags:1 ts: 0.208980
+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: 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: 301474 size: 27864
+ret: 0 st: 0 flags:0 ts: 0.880000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301474 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: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 301474 size: 27864
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 1 flags:1 dts: 0.470204 pts: 0.470204 pos: 155956 size: 209
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-bmp b/ffmpeg1/tests/ref/seek/lavf-bmp
new file mode 100644
index 0000000..0f0b152
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-bmp
@@ -0,0 +1,30 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:304182
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:304182
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:304182
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:304182
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-dv_fmt b/ffmpeg1/tests/ref/seek/lavf-dv_fmt
new file mode 100644
index 0000000..0000ff5
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-dv_fmt
@@ -0,0 +1,53 @@
+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: 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: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: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: 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: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: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: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: 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: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: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: 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: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: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: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: 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: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: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: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: 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: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: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: 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: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: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: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: 0 size:144000
diff --git a/ffmpeg1/tests/ref/seek/lavf-ffm b/ffmpeg1/tests/ref/seek/lavf-ffm
new file mode 100644
index 0000000..eceed1a
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-ffm
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24663
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24663
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st: 0 flags:0 ts: 0.788334
+ret: 0 st: 1 flags:1 dts: 0.825011 pts: 0.825011 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: 24663
+ret: 0 st: 1 flags:0 ts: 2.576668
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st: 1 flags:1 ts: 1.470835
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 1 flags:1 dts: 0.380930 pts: 0.380930 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: 24663
+ret: 0 st: 0 flags:0 ts: 2.153336
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st: 0 flags:1 ts: 1.047503
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st: 1 flags:0 ts:-0.058330
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24663
+ret: 0 st: 1 flags:1 ts: 2.835837
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 1 flags:1 dts: 0.642154 pts: 0.642154 pos: 274432 size: 209
+ret: 0 st: 0 flags:0 ts:-0.481662
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24663
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st: 1 flags:0 ts: 1.306672
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st: 1 flags:1 ts: 0.200839
+ret: 0 st: 1 flags:1 dts: 0.224195 pts: 0.224195 pos: 114688 size: 209
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24663
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 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: 0 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 8192 size: 24663
+ret: 0 st: 1 flags:0 ts: 2.671674
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st: 1 flags:1 ts: 1.565841
+ret: 0 st: 1 flags:1 dts: 0.929501 pts: 0.929501 pos: 376832 size: 209
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 1 flags:1 dts: 0.485420 pts: 0.485420 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: 24663
diff --git a/ffmpeg1/tests/ref/seek/lavf-flv_fmt b/ffmpeg1/tests/ref/seek/lavf-flv_fmt
new file mode 100644
index 0000000..c12da84
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-flv_fmt
@@ -0,0 +1,44 @@
+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: 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: 298416 size: 31134
+ret: 0 st: 0 flags:0 ts: 0.788000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298416 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: 298416 size: 31134
+ret: 0 st: 0 flags:0 ts: 0.365000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 149456 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: 298416 size: 31134
+ret: 0 st: 0 flags:0 ts:-0.058000
+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: 298416 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: 149456 size: 31125
+ret: 0 st: 0 flags:0 ts:-0.482000
+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: 298416 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: 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: 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: 298416 size: 31134
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 298416 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: 298416 size: 31134
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 149456 size: 31125
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-gif b/ffmpeg1/tests/ref/seek/lavf-gif
new file mode 100644
index 0000000..0a2d1b3
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-gif
@@ -0,0 +1,40 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+ret:-1 st: 0 flags:0 ts: 0.790000
+ret:-1 st: 0 flags:1 ts:-0.320000
+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.000000 pts: 0.000000 pos: 0 size:117024
+ret:-1 st: 0 flags:0 ts: 0.370000
+ret:-1 st: 0 flags:1 ts:-0.740000
+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.000000 pts: 0.000000 pos: 0 size:117024
+ret: 0 st: 0 flags:0 ts:-0.060000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+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.000000 pts: 0.000000 pos: 0 size:117024
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+ret: 0 st: 0 flags:1 ts: 2.410000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+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: 0 size:117024
+ret: 0 st: 0 flags:0 ts:-0.900000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+ret: 0 st: 0 flags:1 ts: 1.990000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+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.670000
+ret: 0 st: 0 flags:1 ts: 1.570000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:117024
+ret:-1 st:-1 flags:0 ts: 0.460008
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-gxf b/ffmpeg1/tests/ref/seek/lavf-gxf
new file mode 100644
index 0000000..7162462
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-gxf
@@ -0,0 +1,53 @@
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 5024 size: 65536
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 5024 size: 65536
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st: 0 flags:0 ts: 0.780000
+ret: 0 st: 0 flags:0 dts: 0.800000 pts: NOPTS pos: 653420 size: 22124
+ret: 0 st: 0 flags:1 ts:-0.320000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 5024 size: 65536
+ret: 0 st: 1 flags:0 ts: 2.580000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st: 1 flags:1 ts: 1.480000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st: 2 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:0 dts: 0.360000 pts: NOPTS pos: 302672 size: 25116
+ret: 0 st: 2 flags:1 ts:-0.740000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 5024 size: 65536
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st: 0 flags:0 ts:-0.060000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 5024 size: 65536
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st: 1 flags:0 ts: 1.740000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st: 1 flags:1 ts: 0.620000
+ret: 0 st: 0 flags:0 dts: 0.640000 pts: NOPTS pos: 497196 size: 21612
+ret: 0 st: 2 flags:0 ts:-0.480000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 5024 size: 65536
+ret: 0 st: 2 flags:1 ts: 2.420000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:0 dts: 0.200000 pts: NOPTS pos: 209504 size: 22964
+ret: 0 st: 0 flags:0 ts:-0.900000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 5024 size: 65536
+ret: 0 st: 0 flags:1 ts: 1.980000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st: 1 flags:0 ts: 0.880000
+ret: 0 st: 0 flags:0 dts: 0.880000 pts: NOPTS pos: 696160 size: 21820
+ret: 0 st: 1 flags:1 ts:-0.220000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 5024 size: 65536
+ret: 0 st: 2 flags:0 ts: 2.680000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st: 2 flags:1 ts: 1.560000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 741124 size: 54736
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 370700 size: 54628
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 5024 size: 65536
diff --git a/ffmpeg1/tests/ref/seek/lavf-jpg b/ffmpeg1/tests/ref/seek/lavf-jpg
new file mode 100644
index 0000000..4f3a14c
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-jpg
@@ -0,0 +1,30 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size: 28070
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size: 27771
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size: 28197
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size: 27950
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-mkv b/ffmpeg1/tests/ref/seek/lavf-mkv
new file mode 100644
index 0000000..681462c
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-mkv
@@ -0,0 +1,48 @@
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 555 size: 208
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 771 size: 27837
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292185 size: 27834
+ret: 0 st: 0 flags:0 ts: 0.788000
+ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292185 size: 27834
+ret: 0 st: 0 flags:1 ts:-0.317000
+ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 771 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: 320026 size: 209
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 0 flags:1 dts: 0.491000 pts: 0.491000 pos: 146738 size: 27925
+ret: 0 st:-1 flags:1 ts:-0.740831
+ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 771 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.971000 pts: 0.971000 pos: 292185 size: 27834
+ret: 0 st: 1 flags:0 ts:-0.058000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 555 size: 208
+ret: 0 st: 1 flags:1 ts: 2.836000
+ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 320026 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.491000 pts: 0.491000 pos: 146738 size: 27925
+ret: 0 st: 0 flags:0 ts:-0.482000
+ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 771 size: 27837
+ret: 0 st: 0 flags:1 ts: 2.413000
+ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292185 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.000000 pts: 0.000000 pos: 555 size: 208
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 771 size: 27837
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292185 size: 27834
+ret: 0 st: 0 flags:0 ts: 0.883000
+ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292185 size: 27834
+ret: 0 st: 0 flags:1 ts:-0.222000
+ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 771 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: 320026 size: 209
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.491000 pts: 0.491000 pos: 146738 size: 27925
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 771 size: 27837
diff --git a/ffmpeg1/tests/ref/seek/lavf-mmf b/ffmpeg1/tests/ref/seek/lavf-mmf
new file mode 100644
index 0000000..0bc98fa
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-mmf
@@ -0,0 +1,44 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 83 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 83 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.928798 pts: 0.928798 pos: 20563 size: 2048
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.928798 pts: 0.928798 pos: 20563 size: 2048
+ret:-1 st: 0 flags:1 ts:-0.317506
+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.928798 pts: 0.928798 pos: 20563 size: 2048
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.371519 pts: 0.371519 pos: 8275 size: 4096
+ret:-1 st: 0 flags:1 ts:-0.740839
+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.928798 pts: 0.928798 pos: 20563 size: 2048
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 83 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 0.928798 pts: 0.928798 pos: 20563 size: 2048
+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.557279 pts: 0.557279 pos: 12371 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 83 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 0.928798 pts: 0.928798 pos: 20563 size: 2048
+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.185760 pts: 0.185760 pos: 4179 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 83 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 0.928798 pts: 0.928798 pos: 20563 size: 2048
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.928798 pts: 0.928798 pos: 20563 size: 2048
+ret:-1 st:-1 flags:1 ts:-0.222493
+ret:-1 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 0.928798 pts: 0.928798 pos: 20563 size: 2048
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.557279 pts: 0.557279 pos: 12371 size: 4096
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-mov b/ffmpeg1/tests/ref/seek/lavf-mov
new file mode 100644
index 0000000..9563a0d
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-mov
@@ -0,0 +1,48 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326931 size: 1024
+ret: 0 st: 0 flags:0 ts: 0.788359
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 327955 size: 27834
+ret: 0 st: 0 flags:1 ts:-0.317500
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
+ret:-1 st: 1 flags:0 ts: 2.576667
+ret: 0 st: 1 flags:1 ts: 1.470839
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 327955 size: 27834
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 165209 size: 27925
+ret: 0 st:-1 flags:1 ts:-0.740831
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
+ret:-1 st: 0 flags:0 ts: 2.153359
+ret: 0 st: 0 flags:1 ts: 1.047500
+ret: 0 st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326931 size: 1024
+ret: 0 st: 1 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
+ret: 0 st: 1 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 327955 size: 27834
+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.464399 pts: 0.464399 pos: 164185 size: 1024
+ret: 0 st: 0 flags:0 ts:-0.481641
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
+ret: 0 st: 0 flags:1 ts: 2.412500
+ret: 0 st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326931 size: 1024
+ret:-1 st: 1 flags:0 ts: 1.306667
+ret: 0 st: 1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326931 size: 1024
+ret: 0 st: 0 flags:0 ts: 0.883359
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 327955 size: 27834
+ret: 0 st: 0 flags:1 ts:-0.222500
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
+ret:-1 st: 1 flags:0 ts: 2.671678
+ret: 0 st: 1 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 327955 size: 27834
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 165209 size: 27925
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 1727 size: 27837
diff --git a/ffmpeg1/tests/ref/seek/lavf-mpg b/ffmpeg1/tests/ref/seek/lavf-mpg
new file mode 100644
index 0000000..e804b84
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-mpg
@@ -0,0 +1,53 @@
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 1 flags:1 dts: 1.051544 pts: 1.051544 pos: 342028 size: 314
+ret: 0 st: 0 flags:0 ts: 0.788333
+ret: 0 st: 0 flags:0 dts: 0.820000 pts: 0.860000 pos: 118784 size: 14717
+ret: 0 st: 0 flags:1 ts:-0.317500
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st: 1 flags:0 ts: 2.576667
+ret: 0 st: 1 flags:1 dts: 1.312767 pts: 1.312767 pos: 368652 size: 379
+ret: 0 st: 1 flags:1 ts: 1.470833
+ret: 0 st: 1 flags:1 dts: 1.312767 pts: 1.312767 pos: 368652 size: 379
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st:-1 flags:1 ts:-0.740831
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st: 0 flags:0 ts: 2.153333
+ret: 0 st: 1 flags:1 dts: 1.051544 pts: 1.051544 pos: 342028 size: 314
+ret: 0 st: 0 flags:1 ts: 1.047500
+ret: 0 st: 0 flags:0 dts: 1.020000 pts: 1.060000 pos: 196608 size: 17639
+ret: 0 st: 1 flags:0 ts:-0.058333
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st: 1 flags:1 ts: 2.835833
+ret: 0 st: 1 flags:1 dts: 1.312767 pts: 1.312767 pos: 368652 size: 379
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 1 flags:1 dts: 1.051544 pts: 1.051544 pos: 342028 size: 314
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:0 dts: 0.620000 pts: 0.660000 pos: 55296 size: 14239
+ret: 0 st: 0 flags:0 ts:-0.481667
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st: 0 flags:1 ts: 2.412500
+ret: 0 st: 1 flags:1 dts: 1.051544 pts: 1.051544 pos: 342028 size: 314
+ret: 0 st: 1 flags:0 ts: 1.306667
+ret: 0 st: 1 flags:1 dts: 1.312767 pts: 1.312767 pos: 368652 size: 379
+ret: 0 st: 1 flags:1 ts: 0.200844
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 1 flags:1 dts: 1.051544 pts: 1.051544 pos: 342028 size: 314
+ret: 0 st: 0 flags:0 ts: 0.883344
+ret: 0 st: 0 flags:0 dts: 0.900000 pts: 0.940000 pos: 147456 size: 12755
+ret: 0 st: 0 flags:1 ts:-0.222489
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st: 1 flags:0 ts: 2.671678
+ret: 0 st: 1 flags:1 dts: 1.312767 pts: 1.312767 pos: 368652 size: 379
+ret: 0 st: 1 flags:1 ts: 1.565844
+ret: 0 st: 1 flags:1 dts: 1.312767 pts: 1.312767 pos: 368652 size: 379
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 1 flags:1 dts: 0.529089 pts: 0.529089 pos: 2048 size: 208
diff --git a/ffmpeg1/tests/ref/seek/lavf-mulaw b/ffmpeg1/tests/ref/seek/lavf-mulaw
new file mode 100644
index 0000000..84661ec
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-mulaw
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos: 41766 size: 1024
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 17383 size: 1024
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 32432 size: 1024
+ret: 0 st: 0 flags:0 ts: 0.364989
+ret: 0 st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos: 8048 size: 1024
+ret: 0 st: 0 flags:1 ts:-0.740816
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 1.047483 pts: 1.047483 pos: 23097 size: 1024
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos: 38147 size: 1024
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 13763 size: 1024
+ret: 0 st: 0 flags:0 ts:-0.481678
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st: 0 flags:1 ts: 2.412517
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 28812 size: 1024
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos: 4428 size: 1024
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st: 0 flags:1 ts: 1.989161
+ret: 0 st: 0 flags:1 dts: 1.989161 pts: 1.989161 pos: 43861 size: 1024
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos: 19478 size: 1024
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
+ret: 0 st: 0 flags:0 ts: 2.671655
+ret:-EOF
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 34527 size: 1024
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 10143 size: 1024
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 1024
diff --git a/ffmpeg1/tests/ref/seek/lavf-mxf b/ffmpeg1/tests/ref/seek/lavf-mxf
new file mode 100644
index 0000000..9b23466
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-mxf
@@ -0,0 +1,48 @@
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: 0.960000 pos: 460288 size: 24711
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: 0.960000 pos: 460288 size: 24711
+ret: 0 st: 0 flags:1 ts:-0.320000
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
+ret:-1 st: 1 flags:0 ts: 2.576667
+ret: 0 st: 1 flags:1 ts: 1.470833
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: 0.960000 pos: 460288 size: 24711
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.480000 pos: 211456 size: 24786
+ret: 0 st:-1 flags:1 ts:-0.740831
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
+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.840000 pts: 0.960000 pos: 460288 size: 24711
+ret: 0 st: 1 flags:0 ts:-0.058333
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
+ret: 0 st: 1 flags:1 ts: 2.835833
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: 0.960000 pos: 460288 size: 24711
+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.360000 pts: 0.480000 pos: 211456 size: 24786
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: 0.960000 pos: 460288 size: 24711
+ret:-1 st: 1 flags:0 ts: 1.306667
+ret: 0 st: 1 flags:1 ts: 0.200833
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: 0.960000 pos: 460288 size: 24711
+ret: 0 st: 0 flags:0 ts: 0.880000
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: 0.960000 pos: 460288 size: 24711
+ret: 0 st: 0 flags:1 ts:-0.240000
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
+ret:-1 st: 1 flags:0 ts: 2.671667
+ret: 0 st: 1 flags:1 ts: 1.565833
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: 0.960000 pos: 460288 size: 24711
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.840000 pts: 0.960000 pos: 460288 size: 24711
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts:-0.040000 pts: 0.000000 pos: 6144 size: 24801
diff --git a/ffmpeg1/tests/ref/seek/lavf-mxf_d10 b/ffmpeg1/tests/ref/seek/lavf-mxf_d10
new file mode 100644
index 0000000..17cca29
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-mxf_d10
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 6144 size:150000
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 6144 size:150000
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:5117952 size:150000
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:4265984 size:150000
+ret: 0 st: 0 flags:1 ts:-0.320000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 6144 size:150000
+ret: 0 st: 1 flags:0 ts: 2.576667
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:5117952 size:150000
+ret: 0 st: 1 flags:1 ts: 1.470833
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:5117952 size:150000
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:1923072 size:150000
+ret: 0 st:-1 flags:1 ts:-0.740831
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 6144 size:150000
+ret: 0 st: 0 flags:0 ts: 2.160000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:5117952 size:150000
+ret: 0 st: 0 flags:1 ts: 1.040000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:5117952 size:150000
+ret: 0 st: 1 flags:0 ts:-0.058333
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 6144 size:150000
+ret: 0 st: 1 flags:1 ts: 2.835833
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:5117952 size:150000
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:5117952 size:150000
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:3414016 size:150000
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 6144 size:150000
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:5117952 size:150000
+ret: 0 st: 1 flags:0 ts: 1.306667
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:5117952 size:150000
+ret: 0 st: 1 flags:1 ts: 0.200833
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:1071104 size:150000
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 6144 size:150000
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:5117952 size:150000
+ret: 0 st: 0 flags:0 ts: 0.880000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:4691968 size:150000
+ret: 0 st: 0 flags:1 ts:-0.240000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 6144 size:150000
+ret: 0 st: 1 flags:0 ts: 2.671667
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:5117952 size:150000
+ret: 0 st: 1 flags:1 ts: 1.565833
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:5117952 size:150000
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:2562048 size:150000
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 6144 size:150000
diff --git a/ffmpeg1/tests/ref/seek/lavf-nut b/ffmpeg1/tests/ref/seek/lavf-nut
new file mode 100644
index 0000000..ef47ceb
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-nut
@@ -0,0 +1,53 @@
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 339 size: 208
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos: 567 size: 27837
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st: 0 flags:0 ts: 0.788340
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st: 0 flags:1 ts:-0.317500
+ret: 0 st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos: 567 size: 27837
+ret: 0 st: 1 flags:0 ts: 2.576667
+ret: 0 st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size: 209
+ret: 0 st: 1 flags:1 ts: 1.470839
+ret: 0 st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size: 209
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st:-1 flags:1 ts:-0.740831
+ret: 0 st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos: 567 size: 27837
+ret: 0 st: 0 flags:0 ts: 2.153340
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st: 0 flags:1 ts: 1.047500
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st: 1 flags:0 ts:-0.058322
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 339 size: 208
+ret: 0 st: 1 flags:1 ts: 2.835828
+ret: 0 st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size: 209
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st: 0 flags:0 ts:-0.481660
+ret: 0 st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos: 567 size: 27837
+ret: 0 st: 0 flags:1 ts: 2.412500
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st: 1 flags:0 ts: 1.306667
+ret: 0 st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size: 209
+ret: 0 st: 1 flags:1 ts: 0.200839
+ret: 0 st: 1 flags:1 dts: 0.182857 pts: 0.182857 pos: 71901 size: 209
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos: 567 size: 27837
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st: 0 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st: 0 flags:1 ts:-0.222500
+ret: 0 st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos: 567 size: 27837
+ret: 0 st: 1 flags:0 ts: 2.671678
+ret: 0 st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size: 209
+ret: 0 st: 1 flags:1 ts: 1.565850
+ret: 0 st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size: 209
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos: 567 size: 27837
diff --git a/ffmpeg1/tests/ref/seek/lavf-ogg b/ffmpeg1/tests/ref/seek/lavf-ogg
new file mode 100644
index 0000000..583526e
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-ogg
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 143 size: 1364
diff --git a/ffmpeg1/tests/ref/seek/lavf-pbmpipe b/ffmpeg1/tests/ref/seek/lavf-pbmpipe
new file mode 100644
index 0000000..2858934
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-pbmpipe
@@ -0,0 +1,27 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:317075
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret:-EINVAL st: 0 flags:0 ts: 0.360000
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret:-EINVAL st:-1 flags:1 ts: 0.200839
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret:-EINVAL st:-1 flags:0 ts: 0.460008
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-pcx b/ffmpeg1/tests/ref/seek/lavf-pcx
new file mode 100644
index 0000000..ba21627
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-pcx
@@ -0,0 +1,30 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:364047
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:363107
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:364760
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:362983
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-pgm b/ffmpeg1/tests/ref/seek/lavf-pgm
new file mode 100644
index 0000000..ceac008
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-pgm
@@ -0,0 +1,30 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:101391
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:101391
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:101391
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:101391
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-pgmpipe b/ffmpeg1/tests/ref/seek/lavf-pgmpipe
new file mode 100644
index 0000000..8ba5180
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-pgmpipe
@@ -0,0 +1,27 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:2534775
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret:-EINVAL st: 0 flags:0 ts: 0.360000
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret:-EINVAL st:-1 flags:1 ts: 0.200839
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret:-EINVAL st:-1 flags:0 ts: 0.460008
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-ppm b/ffmpeg1/tests/ref/seek/lavf-ppm
new file mode 100644
index 0000000..6d53ce0
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-ppm
@@ -0,0 +1,30 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:304143
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:304143
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:304143
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:304143
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-ppmpipe b/ffmpeg1/tests/ref/seek/lavf-ppmpipe
new file mode 100644
index 0000000..46c535a
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-ppmpipe
@@ -0,0 +1,27 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:7603575
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret:-EINVAL st: 0 flags:0 ts: 0.360000
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret:-EINVAL st:-1 flags:1 ts: 0.200839
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret:-EINVAL st:-1 flags:0 ts: 0.460008
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-rm b/ffmpeg1/tests/ref/seek/lavf-rm
new file mode 100644
index 0000000..4b19173
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-rm
@@ -0,0 +1,53 @@
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 395 size: 278
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 696 size: 31082
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314992 size: 31143
+ret: 0 st: 0 flags:0 ts: 0.788000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314992 size: 31143
+ret: 0 st: 0 flags:1 ts:-0.317000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 696 size: 31082
+ret: 0 st: 1 flags:0 ts: 2.577000
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346138 size: 278
+ret: 0 st: 1 flags:1 ts: 1.471000
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346138 size: 278
+ret: 0 st:-1 flags:0 ts: 0.365002
+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: 696 size: 31082
+ret: 0 st: 0 flags:0 ts: 2.153000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314992 size: 31143
+ret: 0 st: 0 flags:1 ts: 1.048000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314992 size: 31143
+ret: 0 st: 1 flags:0 ts:-0.058000
+ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 395 size: 278
+ret: 0 st: 1 flags:1 ts: 2.836000
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346138 size: 278
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314992 size: 31143
+ret: 0 st:-1 flags:1 ts: 0.624171
+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: 696 size: 31082
+ret: 0 st: 0 flags:1 ts: 2.413000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314992 size: 31143
+ret: 0 st: 1 flags:0 ts: 1.307000
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346138 size: 278
+ret: 0 st: 1 flags:1 ts: 0.201000
+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: 696 size: 31082
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314992 size: 31143
+ret: 0 st: 0 flags:0 ts: 0.883000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314992 size: 31143
+ret: 0 st: 0 flags:1 ts:-0.222000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 696 size: 31082
+ret: 0 st: 1 flags:0 ts: 2.672000
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346138 size: 278
+ret: 0 st: 1 flags:1 ts: 1.566000
+ret: 0 st: 1 flags:1 dts: 0.975000 pts: 0.975000 pos: 346138 size: 278
+ret: 0 st:-1 flags:0 ts: 0.460008
+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: 696 size: 31082
diff --git a/ffmpeg1/tests/ref/seek/lavf-sgi b/ffmpeg1/tests/ref/seek/lavf-sgi
new file mode 100644
index 0000000..b07132a
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-sgi
@@ -0,0 +1,30 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:308336
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:308572
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:308294
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:307773
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-swf b/ffmpeg1/tests/ref/seek/lavf-swf
new file mode 100644
index 0000000..52cd1e2
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-swf
@@ -0,0 +1,27 @@
+ret: 0 st: 0 flags:0 dts: 0.000000 pts: 0.000000 pos: 55 size: 31074
+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.800000
+ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st:-1 flags:0 ts: 2.576668
+ret:-1 st:-1 flags:1 ts: 1.470835
+ret:-1 st: 0 flags:0 ts: 0.360000
+ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st:-1 flags:0 ts: 2.153336
+ret:-1 st:-1 flags:1 ts: 1.047503
+ret:-1 st: 0 flags:0 ts:-0.040000
+ret:-1 st: 0 flags:1 ts: 2.840000
+ret:-1 st:-1 flags:0 ts: 1.730004
+ret:-1 st:-1 flags:1 ts: 0.624171
+ret:-1 st: 0 flags:0 ts:-0.480000
+ret:-1 st: 0 flags:1 ts: 2.400000
+ret:-1 st:-1 flags:0 ts: 1.306672
+ret:-1 st:-1 flags:1 ts: 0.200839
+ret:-1 st: 0 flags:0 ts:-0.920000
+ret:-1 st: 0 flags:1 ts: 2.000000
+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:-1 st: 0 flags:1 ts: 1.560000
+ret:-1 st:-1 flags:0 ts: 0.460008
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-tga b/ffmpeg1/tests/ref/seek/lavf-tga
new file mode 100644
index 0000000..ee7552a
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-tga
@@ -0,0 +1,30 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:304172
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:304172
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:304172
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:304172
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-tiff b/ffmpeg1/tests/ref/seek/lavf-tiff
new file mode 100644
index 0000000..0d9fb04
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-tiff
@@ -0,0 +1,30 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:307124
+ret:-EINVAL st:-1 flags:0 ts:-1.000000
+ret:-EINVAL st:-1 flags:1 ts: 1.894167
+ret:-EINVAL st: 0 flags:0 ts: 0.800000
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:307150
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: -1 size:307140
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:307140
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-ts b/ffmpeg1/tests/ref/seek/lavf-ts
new file mode 100644
index 0000000..407ba59
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-ts
@@ -0,0 +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:1 dts: 1.360000 pts: 1.400000 pos: 564 size: 24801
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:0 dts: 1.880000 pts: 1.920000 pos: 216388 size: 17440
+ret: 0 st: 0 flags:0 ts: 0.788333
+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.120522 pts: 2.120522 pos: 404576 size: 209
+ret: 0 st: 1 flags:1 ts: 1.470833
+ret: 0 st: 1 flags:1 dts: 1.389089 pts: 1.389089 pos: 159988 size: 208
+ret: 0 st:-1 flags:0 ts: 0.365002
+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: 0 flags:0 dts: 2.160000 pts: 2.200000 pos: 325992 size: 12692
+ret: 0 st: 0 flags:1 ts: 1.047500
+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: 1 flags:1 dts: 1.389089 pts: 1.389089 pos: 159988 size: 208
+ret: 0 st: 1 flags:1 ts: 2.835833
+ret: 0 st: 1 flags:1 dts: 2.120522 pts: 2.120522 pos: 404576 size: 209
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:0 dts: 1.760000 pts: 1.800000 pos: 162996 size: 12135
+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: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.120522 pts: 2.120522 pos: 404576 size: 209
+ret: 0 st: 1 flags:0 ts: 1.306667
+ret: 0 st: 1 flags:1 dts: 1.389089 pts: 1.389089 pos: 159988 size: 208
+ret: 0 st: 1 flags:1 ts: 0.200844
+ret: 0 st: 1 flags:1 dts: 1.389089 pts: 1.389089 pos: 159988 size: 208
+ret: 0 st:-1 flags:0 ts:-0.904994
+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: 0 flags:0 dts: 1.960000 pts: 2.000000 pos: 251356 size: 13449
+ret: 0 st: 0 flags:0 ts: 0.883344
+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.120522 pts: 2.120522 pos: 404576 size: 209
+ret: 0 st: 1 flags:1 ts: 1.565844
+ret: 0 st: 1 flags:1 dts: 1.389089 pts: 1.389089 pos: 159988 size: 208
+ret: 0 st:-1 flags:0 ts: 0.460008
+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/ffmpeg1/tests/ref/seek/lavf-voc b/ffmpeg1/tests/ref/seek/lavf-voc
new file mode 100644
index 0000000..833d763
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-voc
@@ -0,0 +1,27 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 1024
+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.788330
+ret:-1 st: 0 flags:1 ts:-0.317494
+ret:-1 st:-1 flags:0 ts: 2.576668
+ret:-1 st:-1 flags:1 ts: 1.470835
+ret:-1 st: 0 flags:0 ts: 0.365012
+ret:-1 st: 0 flags:1 ts:-0.740834
+ret:-1 st:-1 flags:0 ts: 2.153336
+ret:-1 st:-1 flags:1 ts: 1.047503
+ret:-1 st: 0 flags:0 ts:-0.058328
+ret:-1 st: 0 flags:1 ts: 2.835848
+ret:-1 st:-1 flags:0 ts: 1.730004
+ret:-1 st:-1 flags:1 ts: 0.624171
+ret:-1 st: 0 flags:0 ts:-0.481669
+ret:-1 st: 0 flags:1 ts: 2.412507
+ret:-1 st:-1 flags:0 ts: 1.306672
+ret:-1 st:-1 flags:1 ts: 0.200839
+ret:-1 st: 0 flags:0 ts:-0.904986
+ret:-1 st: 0 flags:1 ts: 1.989167
+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.671673
+ret:-1 st: 0 flags:1 ts: 1.565849
+ret:-1 st:-1 flags:0 ts: 0.460008
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/lavf-wav b/ffmpeg1/tests/ref/seek/lavf-wav
new file mode 100644
index 0000000..16a33be
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-wav
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 76 size: 4096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 76 size: 4096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret:-EOF
+ret: 0 st: 0 flags:0 ts: 0.788345
+ret: 0 st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 69608 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.317506
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 76 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret:-EOF
+ret: 0 st: 0 flags:0 ts: 0.365011
+ret: 0 st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 32270 size: 4096
+ret: 0 st: 0 flags:1 ts:-0.740839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 76 size: 4096
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret:-EOF
+ret: 0 st: 0 flags:0 ts:-0.058322
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 76 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.835828
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 55128 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.481655
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 76 size: 4096
+ret: 0 st: 0 flags:1 ts: 2.412494
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret:-EOF
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 17790 size: 4096
+ret: 0 st: 0 flags:0 ts:-0.904989
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 76 size: 4096
+ret: 0 st: 0 flags:1 ts: 1.989184
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 77986 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 76 size: 4096
+ret: 0 st: 0 flags:0 ts: 2.671678
+ret:-EOF
+ret: 0 st: 0 flags:1 ts: 1.565850
+ret:-EOF
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 40648 size: 4096
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 76 size: 4096
diff --git a/ffmpeg1/tests/ref/seek/lavf-wtv b/ffmpeg1/tests/ref/seek/lavf-wtv
new file mode 100644
index 0000000..67def8a
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-wtv
@@ -0,0 +1,48 @@
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 1 flags:1 dts: 0.694399 pts: 0.694399 pos: 294744 size: 209
+ret: 0 st: 0 flags:0 ts: 0.788334
+ret: 0 st: 1 flags:1 dts: 0.694399 pts: 0.694399 pos: 294744 size: 209
+ret: 0 st: 0 flags:1 ts:-0.317499
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret:-1 st: 1 flags:0 ts: 2.576668
+ret: 0 st: 1 flags:1 ts: 1.470835
+ret: 0 st: 1 flags:1 dts: 0.694399 pts: 0.694399 pos: 294744 size: 209
+ret: 0 st:-1 flags:0 ts: 0.365002
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret: 0 st:-1 flags:1 ts:-0.740831
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret:-1 st: 0 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 ts: 1.047503
+ret: 0 st: 1 flags:1 dts: 0.694399 pts: 0.694399 pos: 294744 size: 209
+ret: 0 st: 1 flags:0 ts:-0.058330
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret: 0 st: 1 flags:1 ts: 2.835837
+ret: 0 st: 1 flags:1 dts: 0.694399 pts: 0.694399 pos: 294744 size: 209
+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.010907 pts:-0.010907 pos: 26344 size: 208
+ret: 0 st: 0 flags:0 ts:-0.481662
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 1 flags:1 dts: 0.694399 pts: 0.694399 pos: 294744 size: 209
+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.224195 pts: 0.224195 pos: 112904 size: 209
+ret: 0 st:-1 flags:0 ts:-0.904994
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret: 0 st:-1 flags:1 ts: 1.989173
+ret: 0 st: 1 flags:1 dts: 0.694399 pts: 0.694399 pos: 294744 size: 209
+ret: 0 st: 0 flags:0 ts: 0.883340
+ret: 0 st: 1 flags:1 dts: 0.694399 pts: 0.694399 pos: 294744 size: 209
+ret: 0 st: 0 flags:1 ts:-0.222493
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret:-1 st: 1 flags:0 ts: 2.671674
+ret: 0 st: 1 flags:1 ts: 1.565841
+ret: 0 st: 1 flags:1 dts: 0.694399 pts: 0.694399 pos: 294744 size: 209
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 1 flags:1 dts:-0.010907 pts:-0.010907 pos: 26344 size: 208
diff --git a/ffmpeg1/tests/ref/seek/lavf-yuv4mpeg b/ffmpeg1/tests/ref/seek/lavf-yuv4mpeg
new file mode 100644
index 0000000..81c1de9
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/lavf-yuv4mpeg
@@ -0,0 +1,27 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 64 size:152064
+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.800000
+ret:-1 st: 0 flags:1 ts:-0.320000
+ret:-1 st:-1 flags:0 ts: 2.576668
+ret:-1 st:-1 flags:1 ts: 1.470835
+ret:-1 st: 0 flags:0 ts: 0.360000
+ret:-1 st: 0 flags:1 ts:-0.760000
+ret:-1 st:-1 flags:0 ts: 2.153336
+ret:-1 st:-1 flags:1 ts: 1.047503
+ret:-1 st: 0 flags:0 ts:-0.040000
+ret:-1 st: 0 flags:1 ts: 2.840000
+ret:-1 st:-1 flags:0 ts: 1.730004
+ret:-1 st:-1 flags:1 ts: 0.624171
+ret:-1 st: 0 flags:0 ts:-0.480000
+ret:-1 st: 0 flags:1 ts: 2.400000
+ret:-1 st:-1 flags:0 ts: 1.306672
+ret:-1 st:-1 flags:1 ts: 0.200839
+ret:-1 st: 0 flags:0 ts:-0.920000
+ret:-1 st: 0 flags:1 ts: 2.000000
+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:-1 st: 0 flags:1 ts: 1.560000
+ret:-1 st:-1 flags:0 ts: 0.460008
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-asv1 b/ffmpeg1/tests/ref/seek/vsynth2-asv1
new file mode 100644
index 0000000..5873bb1
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-asv1
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 14316
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 14316
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos: 776840 size: 18256
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos: 305352 size: 16180
+ret:-1 st: 0 flags:1 ts:-0.320000
+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.480000 pts: 1.480000 pos: 595448 size: 17980
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: 135516 size: 14868
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 1.040000 pts: 1.040000 pos: 404100 size: 16856
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 14316
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: 813396 size: 18296
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos: 704136 size: 18140
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos: 241764 size: 15736
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 14316
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: 813396 size: 18296
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos: 524488 size: 17548
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: 77020 size: 14496
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 14316
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: 813396 size: 18296
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos: 337808 size: 16388
+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: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos: 631584 size: 18188
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 180212 size: 15168
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-asv2 b/ffmpeg1/tests/ref/seek/vsynth2-asv2
new file mode 100644
index 0000000..7d37b7a
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-asv2
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 13732
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 13732
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos: 736152 size: 17340
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos: 289708 size: 15300
+ret:-1 st: 0 flags:1 ts:-0.320000
+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.480000 pts: 1.480000 pos: 564140 size: 17016
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: 128564 size: 14052
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 1.040000 pts: 1.040000 pos: 383244 size: 15896
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 13732
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: 770852 size: 17400
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos: 667016 size: 17172
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos: 229388 size: 14956
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 13732
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: 770852 size: 17400
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos: 496932 size: 16564
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: 73176 size: 13664
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5656 size: 13732
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: 770852 size: 17400
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos: 320444 size: 15592
+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: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos: 598288 size: 17180
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 171012 size: 14392
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-dnxhd-1080i b/ffmpeg1/tests/ref/seek/vsynth2-dnxhd-1080i
new file mode 100644
index 0000000..a5f0ce9
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-dnxhd-1080i
@@ -0,0 +1,44 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size:606208
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size:606208
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:2424868 size:606208
+ret:-1 st: 0 flags:0 ts: 0.788359
+ret: 0 st: 0 flags:1 ts:-0.317500
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size:606208
+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:2424868 size:606208
+ret:-1 st: 0 flags:0 ts: 0.365000
+ret: 0 st: 0 flags:1 ts:-0.740859
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size:606208
+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:2424868 size:606208
+ret: 0 st: 0 flags:0 ts:-0.058359
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size:606208
+ret: 0 st: 0 flags:1 ts: 2.835859
+ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:2424868 size:606208
+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:2424868 size:606208
+ret: 0 st: 0 flags:0 ts:-0.481641
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size:606208
+ret: 0 st: 0 flags:1 ts: 2.412500
+ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:2424868 size:606208
+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:2424868 size:606208
+ret: 0 st: 0 flags:0 ts:-0.905000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size:606208
+ret: 0 st: 0 flags:1 ts: 1.989141
+ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:2424868 size:606208
+ret:-1 st:-1 flags:0 ts: 0.883340
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size:606208
+ret:-1 st: 0 flags:0 ts: 2.671641
+ret: 0 st: 0 flags:1 ts: 1.565859
+ret: 0 st: 0 flags:1 dts: 0.160000 pts: 0.160000 pos:2424868 size:606208
+ret:-1 st:-1 flags:0 ts: 0.460008
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size:606208
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-dnxhd-720p b/ffmpeg1/tests/ref/seek/vsynth2-dnxhd-720p
new file mode 100644
index 0000000..b57f07d
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-dnxhd-720p
@@ -0,0 +1,40 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
+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.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.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.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.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.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.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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
+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.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/ffmpeg1/tests/ref/seek/vsynth2-dnxhd-720p-rd b/ffmpeg1/tests/ref/seek/vsynth2-dnxhd-720p-rd
new file mode 100644
index 0000000..b57f07d
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-dnxhd-720p-rd
@@ -0,0 +1,40 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
+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.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.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.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.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.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.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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size:458752
+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.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/ffmpeg1/tests/ref/seek/vsynth2-dv b/ffmpeg1/tests/ref/seek/vsynth2-dv
new file mode 100644
index 0000000..d318794
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-dv
@@ -0,0 +1,53 @@
+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: 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: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: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: 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: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: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: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: 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: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: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: 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: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: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: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: 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: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: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: 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: 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: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: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: 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: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: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: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: 0 size:144000
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-dv-411 b/ffmpeg1/tests/ref/seek/vsynth2-dv-411
new file mode 100644
index 0000000..d318794
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-dv-411
@@ -0,0 +1,53 @@
+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: 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: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: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: 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: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: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: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: 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: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: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: 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: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: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: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: 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: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: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: 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: 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: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: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: 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: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: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: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: 0 size:144000
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-dv-50 b/ffmpeg1/tests/ref/seek/vsynth2-dv-50
new file mode 100644
index 0000000..fae6d1b
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-dv-50
@@ -0,0 +1,53 @@
+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: 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: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: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: 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: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: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: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: 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: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: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: 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: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: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: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: 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: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: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: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: 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: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: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: 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: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: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: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: 0 size:288000
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-ffv1 b/ffmpeg1/tests/ref/seek/vsynth2-ffv1
new file mode 100644
index 0000000..715a272
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-ffv1
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5688 size: 71679
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5688 size: 71679
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos:2498334 size: 75937
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:1630830 size: 72682
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos:2498334 size: 75937
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 801262 size: 69457
+ret:-1 st: 0 flags:1 ts:-0.760000
+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:1630830 size: 72682
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5688 size: 71679
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos:3392418 size: 77461
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos:3392418 size: 77461
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 801262 size: 69457
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5688 size: 71679
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos:3392418 size: 77461
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos:2498334 size: 75937
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5688 size: 71679
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5688 size: 71679
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos:3392418 size: 77461
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:1630830 size: 72682
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos:2498334 size: 75937
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 801262 size: 69457
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-flashsv b/ffmpeg1/tests/ref/seek/vsynth2-flashsv
new file mode 100644
index 0000000..8bfb2fc
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-flashsv
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size:240757
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size:240757
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos:11605762 size:254053
+ret: 0 st: 0 flags:0 ts: 0.788000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:4820517 size:245503
+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: 1.440000 pts: 1.440000 pos:8811911 size:253041
+ret: 0 st: 0 flags:0 ts: 0.365000
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: 0.400000 pos:2387452 size:241101
+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: 1.040000 pts: 1.040000 pos:6302834 size:248927
+ret: 0 st: 0 flags:0 ts:-0.058000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size:240757
+ret: 0 st: 0 flags:1 ts: 2.836000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:12114712 size:254237
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.760000 pts: 1.760000 pos:10843576 size:253913
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.600000 pts: 0.600000 pos:3598805 size:243372
+ret: 0 st: 0 flags:0 ts:-0.482000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size:240757
+ret: 0 st: 0 flags:1 ts: 2.413000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:12114712 size:254237
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos:8053716 size:252195
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:1187821 size:238567
+ret: 0 st: 0 flags:0 ts:-0.905000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size:240757
+ret: 0 st: 0 flags:1 ts: 1.989000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:12114712 size:254237
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.920000 pts: 0.920000 pos:5559238 size:247341
+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: 1.560000 pts: 1.560000 pos:9572247 size:254219
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:2870253 size:242377
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-flv b/ffmpeg1/tests/ref/seek/vsynth2-flv
new file mode 100644
index 0000000..d4aecda
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-flv
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 10380
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 10380
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83240 size: 12295
+ret: 0 st: 0 flags:0 ts: 0.788000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 52585 size: 11127
+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: 1.440000 pts: 1.440000 pos: 83240 size: 12295
+ret: 0 st: 0 flags:0 ts: 0.365000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 25960 size: 10089
+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: 52585 size: 11127
+ret: 0 st: 0 flags:0 ts:-0.058000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 10380
+ret: 0 st: 0 flags:1 ts: 2.836000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 117177 size: 12730
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 117177 size: 12730
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 25960 size: 10089
+ret: 0 st: 0 flags:0 ts:-0.482000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 10380
+ret: 0 st: 0 flags:1 ts: 2.413000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 117177 size: 12730
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83240 size: 12295
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 10380
+ret: 0 st: 0 flags:0 ts:-0.905000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 199 size: 10380
+ret: 0 st: 0 flags:1 ts: 1.989000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 117177 size: 12730
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 52585 size: 11127
+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: 1.440000 pts: 1.440000 pos: 83240 size: 12295
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 25960 size: 10089
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-h261 b/ffmpeg1/tests/ref/seek/vsynth2-h261
new file mode 100644
index 0000000..48ee00f
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-h261
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9645
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9645
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 126494 size: 11377
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 82052 size: 10322
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 126494 size: 11377
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 44664 size: 9404
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 82052 size: 10322
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9645
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 175856 size: 11707
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 175856 size: 11707
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 44664 size: 9404
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9645
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 175856 size: 11707
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 126494 size: 11377
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9645
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9645
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 175856 size: 11707
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 82052 size: 10322
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 126494 size: 11377
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 44664 size: 9404
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-h263 b/ffmpeg1/tests/ref/seek/vsynth2-h263
new file mode 100644
index 0000000..6b7df48
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-h263
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10381
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10381
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 103702 size: 12296
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 66792 size: 11128
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 103702 size: 12296
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 36438 size: 10090
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 66792 size: 11128
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10381
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 144552 size: 12731
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 144552 size: 12731
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 36438 size: 10090
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10381
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 144552 size: 12731
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 103702 size: 12296
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10381
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10381
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 144552 size: 12731
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 66792 size: 11128
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 103702 size: 12296
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 36438 size: 10090
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-h263p b/ffmpeg1/tests/ref/seek/vsynth2-h263p
new file mode 100644
index 0000000..7dd4852
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-h263p
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 36208
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 36208
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 569918 size: 45151
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 355968 size: 40907
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 569918 size: 45151
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 171042 size: 36514
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 355968 size: 40907
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 36208
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 804358 size: 46411
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 804358 size: 46411
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 171042 size: 36514
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 36208
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 804358 size: 46411
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 569918 size: 45151
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 36208
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 36208
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 804358 size: 46411
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 355968 size: 40907
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 569918 size: 45151
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 171042 size: 36514
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-huffyuv b/ffmpeg1/tests/ref/seek/vsynth2-huffyuv
new file mode 100644
index 0000000..69a37f5
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-huffyuv
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5724 size:129760
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5724 size:129760
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos:6069172 size:128520
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:2579612 size:129192
+ret:-1 st: 0 flags:1 ts:-0.320000
+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.480000 pts: 1.480000 pos:4778228 size:129424
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:1160248 size:128504
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 1.040000 pts: 1.040000 pos:3355284 size:129424
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5724 size:129760
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:6326124 size:128288
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos:5553996 size:129016
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:2062492 size:129204
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5724 size:129760
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:6326124 size:128288
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos:4260860 size:129280
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: 646908 size:128204
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5724 size:129760
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:6326124 size:128288
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:2838068 size:129268
+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: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos:5037024 size:129284
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:1546172 size:128860
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-jpegls b/ffmpeg1/tests/ref/seek/vsynth2-jpegls
new file mode 100644
index 0000000..3c0da21
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-jpegls
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:164074
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:164074
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos:7804118 size:176295
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:3172780 size:164643
+ret:-1 st: 0 flags:1 ts:-0.320000
+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.480000 pts: 1.480000 pos:6052974 size:174097
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:1402344 size:157283
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 1.040000 pts: 1.040000 pos:4170248 size:168401
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:164074
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:8157016 size:176793
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos:7101754 size:175326
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:2519260 size:162522
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:164074
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:8157016 size:176793
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos:5360818 size:172183
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: 779834 size:154579
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:164074
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:8157016 size:176793
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:3502828 size:166017
+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: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos:6401452 size:174815
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:1876416 size:159659
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-ljpeg b/ffmpeg1/tests/ref/seek/vsynth2-ljpeg
new file mode 100644
index 0000000..92264c9
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-ljpeg
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 96069
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 96069
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos:4481864 size: 94870
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:1902318 size: 95465
+ret:-1 st: 0 flags:1 ts:-0.320000
+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.480000 pts: 1.480000 pos:3527724 size: 95724
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: 854944 size: 94635
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 1.040000 pts: 1.040000 pos:2475566 size: 95649
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 96069
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:4671498 size: 94595
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos:4101338 size: 95353
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:1520284 size: 95410
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 96069
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:4671498 size: 94595
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos:3145114 size: 95587
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: 477226 size: 94261
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 96069
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:4671498 size: 94595
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:2093302 size: 95528
+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: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos:3719126 size: 95615
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:1139238 size: 95032
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mjpeg b/ffmpeg1/tests/ref/seek/vsynth2-mjpeg
new file mode 100644
index 0000000..c1395a9
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mjpeg
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 12096
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 12096
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos: 627814 size: 14806
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos: 247498 size: 12959
+ret:-1 st: 0 flags:1 ts:-0.320000
+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.480000 pts: 1.480000 pos: 480736 size: 14519
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: 110996 size: 11924
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 1.040000 pts: 1.040000 pos: 326680 size: 13491
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 12096
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: 657468 size: 14897
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos: 568606 size: 14751
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos: 196420 size: 12720
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 12096
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: 657468 size: 14897
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos: 423470 size: 14114
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: 63862 size: 11715
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 12096
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos: 657468 size: 14897
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos: 273512 size: 13122
+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: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos: 509892 size: 14594
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 146950 size: 12173
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg1 b/ffmpeg1/tests/ref/seek/vsynth2-mpeg1
new file mode 100644
index 0000000..0ec751a
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg1
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 9779
+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: 124255 size: 11796
+ret: 0 st: 0 flags:0 ts: 0.788334
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 76706 size: 10792
+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: 124255 size: 11796
+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.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: 76706 size: 10792
+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.835837
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 177099 size: 12057
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 177099 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.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9779
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 177099 size: 12057
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 124255 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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9779
+ret: 0 st: 0 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 177099 size: 12057
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 76706 size: 10792
+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.440000 pts: NOPTS pos: 124255 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
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg1b b/ffmpeg1/tests/ref/seek/vsynth2-mpeg1b
new file mode 100644
index 0000000..e079e34
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg1b
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 11817
+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: 194424 size: 14837
+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.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.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.058330
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 11817
+ret: 0 st: 0 flags:1 ts: 2.835837
+ret: 0 st: 0 flags:1 dts: 1.800000 pts: NOPTS pos: 194424 size: 14837
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.800000 pts: NOPTS pos: 194424 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.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 11817
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 0 flags:1 dts: 1.800000 pts: NOPTS pos: 194424 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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 11817
+ret: 0 st: 0 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 1.800000 pts: NOPTS pos: 194424 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.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
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-422 b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-422
new file mode 100644
index 0000000..06d8f7a
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-422
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 17497
+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: 325397 size: 19967
+ret: 0 st: 0 flags:0 ts: 0.788334
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 200747 size: 22575
+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: 265466 size: 21329
+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.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: 200747 size: 22575
+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.835837
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 325397 size: 19967
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 325397 size: 19967
+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.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 17497
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 325397 size: 19967
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 265466 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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 17497
+ret: 0 st: 0 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 325397 size: 19967
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 265466 size: 21329
+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: 265466 size: 21329
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 200747 size: 22575
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-idct-int b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-idct-int
new file mode 100644
index 0000000..b096f6f
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-idct-int
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9911
+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.788334
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: NOPTS pos: 79103 size: 10909
+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.365002
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: NOPTS pos: 38992 size: 9985
+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.058330
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9911
+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.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9911
+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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9911
+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.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
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-ilace b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-ilace
new file mode 100644
index 0000000..d2a7838
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-ilace
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
+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: 132603 size: 11970
+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.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: 132603 size: 11970
+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.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.058330
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
+ret: 0 st: 0 flags:1 ts: 2.835837
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 188425 size: 12232
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 188425 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.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 188425 size: 12232
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 132603 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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
+ret: 0 st: 0 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: NOPTS pos: 188425 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.671674
+ret: 0 st: 0 flags:1 ts: 1.565841
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: NOPTS pos: 132603 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
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-ivlc-qprd b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-ivlc-qprd
new file mode 100644
index 0000000..330dc16
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-ivlc-qprd
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 16239
+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.788334
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 164167 size: 13921
+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.365002
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 98748 size: 29165
+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.058330
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 16239
+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.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 16239
+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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 16239
+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: 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.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
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-thread b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-thread
new file mode 100644
index 0000000..8e16f43
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-thread
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
+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: 158232 size: 12232
+ret: 0 st: 0 flags:0 ts: 0.788334
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67783 size: 10965
+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: 110336 size: 11970
+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.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: 67783 size: 10965
+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.835837
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 158232 size: 12232
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 158232 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.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 158232 size: 12232
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110336 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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9961
+ret: 0 st: 0 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 158232 size: 12232
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110336 size: 11970
+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: 110336 size: 11970
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67783 size: 10965
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-thread-ivlc b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-thread-ivlc
new file mode 100644
index 0000000..49ec819
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg2-thread-ivlc
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9954
+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: 157685 size: 11930
+ret: 0 st: 0 flags:0 ts: 0.788334
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67716 size: 10791
+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: 110086 size: 11697
+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.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: 67716 size: 10791
+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.835837
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 157685 size: 11930
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 157685 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.481662
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9954
+ret: 0 st: 0 flags:1 ts: 2.412505
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 157685 size: 11930
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110086 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.904994
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 0 size: 9954
+ret: 0 st: 0 flags:1 ts: 1.989173
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 157685 size: 11930
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 110086 size: 11697
+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: 110086 size: 11697
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 67716 size: 10791
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg4 b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4
new file mode 100644
index 0000000..b1c8a19
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4
@@ -0,0 +1,50 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 75140 size: 10776
+ret: 0 st: 0 flags:0 ts: 0.788359
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 47228 size: 9634
+ret: 0 st: 0 flags:1 ts:-0.317500
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
+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: 1.440000 pos: 75140 size: 10776
+ret: 0 st: 0 flags:0 ts: 0.365000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 23271 size: 8524
+ret: 0 st: 0 flags:1 ts:-0.740859
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
+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: 47228 size: 9634
+ret: 0 st: 0 flags:0 ts:-0.058359
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
+ret: 0 st: 0 flags:1 ts: 2.835859
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 106181 size: 11182
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 106181 size: 11182
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 23271 size: 8524
+ret: 0 st: 0 flags:0 ts:-0.481641
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
+ret: 0 st: 0 flags:1 ts: 2.412500
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 106181 size: 11182
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 75140 size: 10776
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
+ret: 0 st: 0 flags:0 ts:-0.905000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
+ret: 0 st: 0 flags:1 ts: 1.989141
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 106181 size: 11182
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 47228 size: 9634
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
+ret:-1 st: 0 flags:0 ts: 2.671641
+ret: 0 st: 0 flags:1 ts: 1.565859
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 75140 size: 10776
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 23271 size: 8524
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 44 size: 8719
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-adap b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-adap
new file mode 100644
index 0000000..cb6beee
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-adap
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 6855
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 6855
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 174442 size: 16883
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 98216 size: 17063
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 135578 size: 17525
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 59442 size: 17261
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 98216 size: 17063
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 6855
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 174442 size: 16883
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 174442 size: 16883
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 59442 size: 17261
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 6855
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 174442 size: 16883
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 135578 size: 17525
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 6855
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 6855
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 174442 size: 16883
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 98216 size: 17063
+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: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 135578 size: 17525
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 98216 size: 17063
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-adv b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-adv
new file mode 100644
index 0000000..6765864
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-adv
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8653
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8653
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 91718 size: 11013
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 59492 size: 9815
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 91718 size: 11013
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 31932 size: 8753
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 59492 size: 9815
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8653
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 127612 size: 11279
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 127612 size: 11279
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 31932 size: 8753
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8653
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 127612 size: 11279
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 91718 size: 11013
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8653
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8653
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 127612 size: 11279
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 59492 size: 9815
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 91718 size: 11013
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 31932 size: 8753
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-error b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-error
new file mode 100644
index 0000000..e31df5d
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-error
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9729
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9729
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 113182 size: 15063
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 73142 size: 10235
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 113182 size: 15063
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 38228 size: 10303
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 73142 size: 10235
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9729
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 163064 size: 13980
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 163064 size: 13980
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 38228 size: 10303
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9729
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 163064 size: 13980
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 113182 size: 15063
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9729
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9729
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 163064 size: 13980
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 73142 size: 10235
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 113182 size: 15063
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 38228 size: 10303
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-nr b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-nr
new file mode 100644
index 0000000..3d6b5ce
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-nr
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10673
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10673
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 100652 size: 12464
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 65488 size: 11180
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 100652 size: 12464
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 35310 size: 9987
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 65488 size: 11180
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10673
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139372 size: 12911
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139372 size: 12911
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 35310 size: 9987
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10673
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139372 size: 12911
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 100652 size: 12464
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10673
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 10673
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139372 size: 12911
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 65488 size: 11180
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 100652 size: 12464
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 35310 size: 9987
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-qpel b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-qpel
new file mode 100644
index 0000000..cd6eaf0
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-qpel
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 11938
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 11938
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 141526 size: 15554
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 64110 size: 13377
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 100336 size: 15055
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 32836 size: 11806
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 64110 size: 13377
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 11938
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 141526 size: 15554
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 141526 size: 15554
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 32836 size: 11806
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 11938
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 141526 size: 15554
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 100336 size: 15055
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 11938
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 11938
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 141526 size: 15554
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 64110 size: 13377
+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: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 100336 size: 15055
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 64110 size: 13377
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-qprd b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-qprd
new file mode 100644
index 0000000..74aee79
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-qprd
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14873
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14873
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 211030 size: 14638
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 150654 size: 14502
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 180778 size: 14371
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 93024 size: 29366
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 150654 size: 14502
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14873
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 211030 size: 14638
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 211030 size: 14638
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 93024 size: 29366
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14873
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 211030 size: 14638
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 180778 size: 14371
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14873
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14873
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 211030 size: 14638
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 150654 size: 14502
+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: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 180778 size: 14371
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 150654 size: 14502
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-rc b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-rc
new file mode 100644
index 0000000..6bcfd48
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-rc
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 15766
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 15766
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 207950 size: 13826
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 153784 size: 13377
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 180946 size: 13326
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 94574 size: 32807
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 153784 size: 13377
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 15766
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 207950 size: 13826
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 207950 size: 13826
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 94574 size: 32807
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 15766
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 207950 size: 13826
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 180946 size: 13326
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 15766
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 15766
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 207950 size: 13826
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 153784 size: 13377
+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: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 180946 size: 13326
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 153784 size: 13377
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-thread b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-thread
new file mode 100644
index 0000000..ca849f3
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-mpeg4-thread
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14874
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14874
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 228186 size: 16323
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 162156 size: 16462
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 195330 size: 16153
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 97832 size: 33332
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 162156 size: 16462
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14874
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 228186 size: 16323
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 228186 size: 16323
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.400000 pts: NOPTS pos: 97832 size: 33332
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14874
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 228186 size: 16323
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 195330 size: 16153
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14874
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: NOPTS pos: 5648 size: 14874
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.840000 pts: NOPTS pos: 228186 size: 16323
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 162156 size: 16462
+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: 0 st: 0 flags:1 dts: 1.360000 pts: NOPTS pos: 195330 size: 16153
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: NOPTS pos: 162156 size: 16462
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-msmpeg4 b/ffmpeg1/tests/ref/seek/vsynth2-msmpeg4
new file mode 100644
index 0000000..e096f76
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-msmpeg4
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8637
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8637
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 82508 size: 10783
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 53846 size: 9624
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 82508 size: 10783
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29388 size: 8502
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 53846 size: 9624
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8637
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 114256 size: 11180
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 114256 size: 11180
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29388 size: 8502
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8637
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 114256 size: 11180
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 82508 size: 10783
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8637
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8637
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 114256 size: 11180
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 53846 size: 9624
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 82508 size: 10783
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29388 size: 8502
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-msmpeg4v2 b/ffmpeg1/tests/ref/seek/vsynth2-msmpeg4v2
new file mode 100644
index 0000000..00a175d
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-msmpeg4v2
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9003
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9003
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83870 size: 11165
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 54778 size: 10010
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 83870 size: 11165
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29770 size: 8869
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 54778 size: 10010
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9003
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 116112 size: 11578
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 116112 size: 11578
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29770 size: 8869
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9003
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 116112 size: 11578
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83870 size: 11165
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9003
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 9003
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 116112 size: 11578
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 54778 size: 10010
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83870 size: 11165
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29770 size: 8869
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-rgb b/ffmpeg1/tests/ref/seek/vsynth2-rgb
new file mode 100644
index 0000000..91f7260
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-rgb
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:304128
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:304128
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos:14300040 size:304128
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:6088368 size:304128
+ret:-1 st: 0 flags:1 ts:-0.320000
+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.480000 pts: 1.480000 pos:11258680 size:304128
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:2742872 size:304128
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 1.040000 pts: 1.040000 pos:7913184 size:304128
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:304128
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:14908312 size:304128
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos:13083496 size:304128
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:4871824 size:304128
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:304128
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:14908312 size:304128
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos:10042136 size:304128
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:1526328 size:304128
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:304128
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:14908312 size:304128
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:6696640 size:304128
+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: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos:11866952 size:304128
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:3655280 size:304128
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-roqvideo b/ffmpeg1/tests/ref/seek/vsynth2-roqvideo
new file mode 100644
index 0000000..d003a37
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-roqvideo
@@ -0,0 +1,27 @@
+ret: 0 st: 0 flags:0 dts: 0.000000 pts: 0.000000 pos: 24 size: 26082
+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.800000
+ret:-1 st: 0 flags:1 ts:-0.333333
+ret:-1 st:-1 flags:0 ts: 2.576668
+ret:-1 st:-1 flags:1 ts: 1.470835
+ret:-1 st: 0 flags:0 ts: 0.366667
+ret:-1 st: 0 flags:1 ts:-0.733333
+ret:-1 st:-1 flags:0 ts: 2.153336
+ret:-1 st:-1 flags:1 ts: 1.047503
+ret:-1 st: 0 flags:0 ts:-0.066667
+ret:-1 st: 0 flags:1 ts: 2.833333
+ret:-1 st:-1 flags:0 ts: 1.730004
+ret:-1 st:-1 flags:1 ts: 0.624171
+ret:-1 st: 0 flags:0 ts:-0.466667
+ret:-1 st: 0 flags:1 ts: 2.400000
+ret:-1 st:-1 flags:0 ts: 1.306672
+ret:-1 st:-1 flags:1 ts: 0.200839
+ret:-1 st: 0 flags:0 ts:-0.900000
+ret:-1 st: 0 flags:1 ts: 2.000000
+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.666667
+ret:-1 st: 0 flags:1 ts: 1.566667
+ret:-1 st:-1 flags:0 ts: 0.460008
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-rv10 b/ffmpeg1/tests/ref/seek/vsynth2-rv10
new file mode 100644
index 0000000..818040d
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-rv10
@@ -0,0 +1,52 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
+ret:-1 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:0 ts: 0.788000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 61592 size: 11135
+ret: 0 st: 0 flags:1 ts:-0.317000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139566 size: 12738
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 98608 size: 12303
+ret: 0 st: 0 flags:0 ts: 0.365000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 31132 size: 10097
+ret: 0 st: 0 flags:1 ts:-0.741000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139566 size: 12738
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 61592 size: 11135
+ret: 0 st: 0 flags:0 ts:-0.058000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
+ret: 0 st: 0 flags:1 ts: 2.836000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139566 size: 12738
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139566 size: 12738
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 31132 size: 10097
+ret: 0 st: 0 flags:0 ts:-0.482000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
+ret: 0 st: 0 flags:1 ts: 2.413000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139566 size: 12738
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 98608 size: 12303
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
+ret: 0 st: 0 flags:0 ts:-0.905000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
+ret: 0 st: 0 flags:1 ts: 1.989000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139566 size: 12738
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 61592 size: 11135
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
+ret: 0 st: 0 flags:0 ts: 2.672000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139566 size: 12738
+ret: 0 st: 0 flags:1 ts: 1.566000
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 98608 size: 12303
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 31132 size: 10097
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 10388
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-rv20 b/ffmpeg1/tests/ref/seek/vsynth2-rv20
new file mode 100644
index 0000000..7f1ad39
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-rv20
@@ -0,0 +1,53 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 98158 size: 11344
+ret: 0 st: 0 flags:0 ts: 0.788000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 61133 size: 10166
+ret: 0 st: 0 flags:1 ts:-0.317000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
+ret: 0 st:-1 flags:0 ts: 2.576668
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139147 size: 11803
+ret: 0 st:-1 flags:1 ts: 1.470835
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 98158 size: 11344
+ret: 0 st: 0 flags:0 ts: 0.365000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 30753 size: 9101
+ret: 0 st: 0 flags:1 ts:-0.741000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
+ret: 0 st:-1 flags:0 ts: 2.153336
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139147 size: 11803
+ret: 0 st:-1 flags:1 ts: 1.047503
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 61133 size: 10166
+ret: 0 st: 0 flags:0 ts:-0.058000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
+ret: 0 st: 0 flags:1 ts: 2.836000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139147 size: 11803
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139147 size: 11803
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 30753 size: 9101
+ret: 0 st: 0 flags:0 ts:-0.482000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
+ret: 0 st: 0 flags:1 ts: 2.413000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139147 size: 11803
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 98158 size: 11344
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
+ret: 0 st: 0 flags:0 ts:-0.905000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
+ret: 0 st: 0 flags:1 ts: 1.989000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139147 size: 11803
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 61133 size: 10166
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
+ret: 0 st: 0 flags:0 ts: 2.672000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 139147 size: 11803
+ret: 0 st: 0 flags:1 ts: 1.566000
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 98158 size: 11344
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 30753 size: 9101
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 239 size: 9361
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-snow b/ffmpeg1/tests/ref/seek/vsynth2-snow
new file mode 100644
index 0000000..d8f5aae
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-snow
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 3035
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 3035
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39714 size: 3640
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 27434 size: 3494
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 39714 size: 3640
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 16124 size: 3244
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 27434 size: 3494
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 3035
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52604 size: 3582
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52604 size: 3582
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 16124 size: 3244
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 3035
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52604 size: 3582
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39714 size: 3640
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 3035
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 3035
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52604 size: 3582
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 27434 size: 3494
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39714 size: 3640
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 16124 size: 3244
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-snow-ll b/ffmpeg1/tests/ref/seek/vsynth2-snow-ll
new file mode 100644
index 0000000..95a4a79
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-snow-ll
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 72476
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 72476
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos:1902788 size: 78837
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:1239090 size: 74994
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos:1902788 size: 78837
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 605628 size: 71059
+ret:-1 st: 0 flags:1 ts:-0.760000
+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:1239090 size: 74994
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 72476
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos:2585614 size: 79731
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos:2585614 size: 79731
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 605628 size: 71059
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 72476
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos:2585614 size: 79731
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos:1902788 size: 78837
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 72476
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 72476
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos:2585614 size: 79731
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos:1239090 size: 74994
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos:1902788 size: 78837
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 605628 size: 71059
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-svq1 b/ffmpeg1/tests/ref/seek/vsynth2-svq1
new file mode 100644
index 0000000..33fe33e
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-svq1
@@ -0,0 +1,50 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 517568 size: 25636
+ret: 0 st: 0 flags:0 ts: 0.788359
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 326556 size: 23552
+ret: 0 st: 0 flags:1 ts:-0.317500
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
+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: 1.440000 pos: 517568 size: 25636
+ret: 0 st: 0 flags:0 ts: 0.365000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 157040 size: 21896
+ret: 0 st: 0 flags:1 ts:-0.740859
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
+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: 326556 size: 23552
+ret: 0 st: 0 flags:0 ts:-0.058359
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
+ret: 0 st: 0 flags:1 ts: 2.835859
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 722804 size: 25888
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 722804 size: 25888
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 157040 size: 21896
+ret: 0 st: 0 flags:0 ts:-0.481641
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
+ret: 0 st: 0 flags:1 ts: 2.412500
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 722804 size: 25888
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 517568 size: 25636
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
+ret: 0 st: 0 flags:0 ts:-0.905000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
+ret: 0 st: 0 flags:1 ts: 1.989141
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 722804 size: 25888
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 326556 size: 23552
+ret: 0 st:-1 flags:1 ts:-0.222493
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
+ret:-1 st: 0 flags:0 ts: 2.671641
+ret: 0 st: 0 flags:1 ts: 1.565859
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 517568 size: 25636
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 157040 size: 21896
+ret: 0 st:-1 flags:1 ts:-0.645825
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 36 size: 22300
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-wmv1 b/ffmpeg1/tests/ref/seek/vsynth2-wmv1
new file mode 100644
index 0000000..0f073b2
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-wmv1
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8990
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8990
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83742 size: 11099
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 54758 size: 9931
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 83742 size: 11099
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29794 size: 8796
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 54758 size: 9931
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8990
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 115806 size: 11486
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 115806 size: 11486
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29794 size: 8796
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8990
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 115806 size: 11486
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83742 size: 11099
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8990
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size: 8990
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 115806 size: 11486
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 54758 size: 9931
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83742 size: 11099
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29794 size: 8796
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-wmv2 b/ffmpeg1/tests/ref/seek/vsynth2-wmv2
new file mode 100644
index 0000000..a29f0d4
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-wmv2
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 8917
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 8917
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83764 size: 11169
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 54534 size: 9989
+ret:-1 st: 0 flags:1 ts:-0.320000
+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: 1.440000 pos: 83764 size: 11169
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29588 size: 8839
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 54534 size: 9989
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 8917
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 116066 size: 11554
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 116066 size: 11554
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29588 size: 8839
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 8917
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 116066 size: 11554
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83764 size: 11169
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 8917
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 8917
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 116066 size: 11554
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 54534 size: 9989
+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: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 83764 size: 11169
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 29588 size: 8839
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/seek/vsynth2-yuv b/ffmpeg1/tests/ref/seek/vsynth2-yuv
new file mode 100644
index 0000000..d440761
--- /dev/null
+++ b/ffmpeg1/tests/ref/seek/vsynth2-yuv
@@ -0,0 +1,46 @@
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:152064
+ret: 0 st:-1 flags:0 ts:-1.000000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:152064
+ret: 0 st:-1 flags:1 ts: 1.894167
+ret: 0 st: 0 flags:1 dts: 1.880000 pts: 1.880000 pos:7153032 size:152064
+ret: 0 st: 0 flags:0 ts: 0.800000
+ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos:3047088 size:152064
+ret:-1 st: 0 flags:1 ts:-0.320000
+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.480000 pts: 1.480000 pos:5632312 size:152064
+ret: 0 st: 0 flags:0 ts: 0.360000
+ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:1374296 size:152064
+ret:-1 st: 0 flags:1 ts:-0.760000
+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: 1.040000 pts: 1.040000 pos:3959520 size:152064
+ret: 0 st: 0 flags:0 ts:-0.040000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:152064
+ret: 0 st: 0 flags:1 ts: 2.840000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7457176 size:152064
+ret: 0 st:-1 flags:0 ts: 1.730004
+ret: 0 st: 0 flags:1 dts: 1.720000 pts: 1.720000 pos:6544744 size:152064
+ret: 0 st:-1 flags:1 ts: 0.624171
+ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos:2438800 size:152064
+ret: 0 st: 0 flags:0 ts:-0.480000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:152064
+ret: 0 st: 0 flags:1 ts: 2.400000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7457176 size:152064
+ret: 0 st:-1 flags:0 ts: 1.306672
+ret: 0 st: 0 flags:1 dts: 1.320000 pts: 1.320000 pos:5024024 size:152064
+ret: 0 st:-1 flags:1 ts: 0.200839
+ret: 0 st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos: 766008 size:152064
+ret: 0 st: 0 flags:0 ts:-0.920000
+ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5648 size:152064
+ret: 0 st: 0 flags:1 ts: 2.000000
+ret: 0 st: 0 flags:1 dts: 1.960000 pts: 1.960000 pos:7457176 size:152064
+ret: 0 st:-1 flags:0 ts: 0.883340
+ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos:3351232 size:152064
+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: 0 st: 0 flags:1 dts: 1.560000 pts: 1.560000 pos:5936456 size:152064
+ret: 0 st:-1 flags:0 ts: 0.460008
+ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:1830512 size:152064
+ret:-1 st:-1 flags:1 ts:-0.645825
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-amv b/ffmpeg1/tests/ref/vsynth/vsynth1-amv
new file mode 100644
index 0000000..f7c7f57
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-amv
@@ -0,0 +1,4 @@
+34c4d4033d31c7401d32fee9d6ce0de2 *tests/data/fate/vsynth1-amv.avi
+1365496 tests/data/fate/vsynth1-amv.avi
+e38681b9527b6d2531942f8a176a0265 *tests/data/fate/vsynth1-amv.out.rawvideo
+stddev: 10.07 PSNR: 28.06 MAXDIFF: 98 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-asv1 b/ffmpeg1/tests/ref/vsynth/vsynth1-asv1
new file mode 100644
index 0000000..e640f1c
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-asv1
@@ -0,0 +1,4 @@
+41b011551d23ddadaab1083cb2106d9f *tests/data/fate/vsynth1-asv1.avi
+1489644 tests/data/fate/vsynth1-asv1.avi
+2dfc5dfc2c1cbbc2543257cd3d2df6af *tests/data/fate/vsynth1-asv1.out.rawvideo
+stddev: 20.00 PSNR: 22.11 MAXDIFF: 158 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-asv2 b/ffmpeg1/tests/ref/vsynth/vsynth1-asv2
new file mode 100644
index 0000000..6282ad4
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-asv2
@@ -0,0 +1,4 @@
+a0773690d0e772ff832adea1e8c16773 *tests/data/fate/vsynth1-asv2.avi
+1456044 tests/data/fate/vsynth1-asv2.avi
+d451be09793cd0f35b6d91fc36e2571a *tests/data/fate/vsynth1-asv2.out.rawvideo
+stddev: 18.82 PSNR: 22.63 MAXDIFF: 131 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-avui b/ffmpeg1/tests/ref/vsynth/vsynth1-avui
new file mode 100644
index 0000000..e4434e8
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-avui
@@ -0,0 +1,4 @@
+0e71be51f4e0701d91ff7fa4d9ea0533 *tests/data/fate/vsynth1-avui.mov
+42624917 tests/data/fate/vsynth1-avui.mov
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-avui.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-cljr b/ffmpeg1/tests/ref/vsynth/vsynth1-cljr
new file mode 100644
index 0000000..5207d92
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-cljr
@@ -0,0 +1,4 @@
+eb9131f74c29cda83ba706293c85afb4 *tests/data/fate/vsynth1-cljr.avi
+5075648 tests/data/fate/vsynth1-cljr.avi
+7bd979b8b397f7bac22a0102c7889452 *tests/data/fate/vsynth1-cljr.out.rawvideo
+stddev: 6.74 PSNR: 31.55 MAXDIFF: 84 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-1080i b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-1080i
new file mode 100644
index 0000000..dbe2c37
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-1080i
@@ -0,0 +1,4 @@
+124c991ee3ac0caef39a58a45287a762 *tests/data/fate/vsynth1-dnxhd-1080i.mov
+3031911 tests/data/fate/vsynth1-dnxhd-1080i.mov
+a09132c6db44f415e831dcaa630a351b *tests/data/fate/vsynth1-dnxhd-1080i.out.rawvideo
+stddev: 6.29 PSNR: 32.15 MAXDIFF: 64 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p
new file mode 100644
index 0000000..fd77e86
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p
@@ -0,0 +1,4 @@
+af03d57b8320568027162132643f7814 *tests/data/fate/vsynth1-dnxhd-720p.dnxhd
+2293760 tests/data/fate/vsynth1-dnxhd-720p.dnxhd
+f074f1b5ed394871b3c73184ad55b895 *tests/data/fate/vsynth1-dnxhd-720p.out.rawvideo
+stddev: 6.26 PSNR: 32.19 MAXDIFF: 65 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p-10bit b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p-10bit
new file mode 100644
index 0000000..59423e7
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p-10bit
@@ -0,0 +1,4 @@
+f8c4b7aa165a80df2485d526161290a3 *tests/data/fate/vsynth1-dnxhd-720p-10bit.dnxhd
+2293760 tests/data/fate/vsynth1-dnxhd-720p-10bit.dnxhd
+790777baa4bb70c4e32cb13649cc26bf *tests/data/fate/vsynth1-dnxhd-720p-10bit.out.rawvideo
+stddev: 6.27 PSNR: 32.18 MAXDIFF: 64 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p-rd b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p-rd
new file mode 100644
index 0000000..0422776
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd-720p-rd
@@ -0,0 +1,4 @@
+276e5175376051218b0e3eb36f9e9a63 *tests/data/fate/vsynth1-dnxhd-720p-rd.dnxhd
+2293760 tests/data/fate/vsynth1-dnxhd-720p-rd.dnxhd
+28662df973b289798bf6069fbbee8071 *tests/data/fate/vsynth1-dnxhd-720p-rd.out.rawvideo
+stddev: 6.26 PSNR: 32.19 MAXDIFF: 65 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd_1080i b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd_1080i
new file mode 100644
index 0000000..f8f6df0
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-dnxhd_1080i
@@ -0,0 +1,4 @@
+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/ffmpeg1/tests/ref/vsynth/vsynth1-dv b/ffmpeg1/tests/ref/vsynth/vsynth1-dv
new file mode 100644
index 0000000..d051e8d
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-dv
@@ -0,0 +1,4 @@
+4d572f758b55a1756adf9f54132f3b9e *tests/data/fate/vsynth1-dv.dv
+7200000 tests/data/fate/vsynth1-dv.dv
+02ac7cdeab91d4d5621e7ce96dddc498 *tests/data/fate/vsynth1-dv.out.rawvideo
+stddev: 6.90 PSNR: 31.34 MAXDIFF: 76 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-dv-411 b/ffmpeg1/tests/ref/vsynth/vsynth1-dv-411
new file mode 100644
index 0000000..bc4b802
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-dv-411
@@ -0,0 +1,4 @@
+f179899efba432c6f01149c36c709092 *tests/data/fate/vsynth1-dv-411.dv
+7200000 tests/data/fate/vsynth1-dv-411.dv
+53946d51762b7826773e681fb02f377b *tests/data/fate/vsynth1-dv-411.out.rawvideo
+stddev: 9.45 PSNR: 28.62 MAXDIFF: 84 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-dv-50 b/ffmpeg1/tests/ref/vsynth/vsynth1-dv-50
new file mode 100644
index 0000000..e747075
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-dv-50
@@ -0,0 +1,4 @@
+a193c5f92bf6e74c604e759d5f4f0f94 *tests/data/fate/vsynth1-dv-50.dv
+14400000 tests/data/fate/vsynth1-dv-50.dv
+a2ff093e93ffed10f730fa21df02fc50 *tests/data/fate/vsynth1-dv-50.out.rawvideo
+stddev: 1.72 PSNR: 43.38 MAXDIFF: 29 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-dv_411 b/ffmpeg1/tests/ref/vsynth/vsynth1-dv_411
new file mode 100644
index 0000000..c45b593
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-dv_411
@@ -0,0 +1,4 @@
+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/ffmpeg1/tests/ref/vsynth/vsynth1-ffv1 b/ffmpeg1/tests/ref/vsynth/vsynth1-ffv1
new file mode 100644
index 0000000..a162a77
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-ffv1
@@ -0,0 +1,4 @@
+d236e8441d7e04e24d882bb97faccd36 *tests/data/fate/vsynth1-ffv1.avi
+2689718 tests/data/fate/vsynth1-ffv1.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-ffvhuff b/ffmpeg1/tests/ref/vsynth/vsynth1-ffvhuff
new file mode 100644
index 0000000..d752c4b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-ffvhuff
@@ -0,0 +1,4 @@
+96789e7ed68de5314e65bc496c75e0a5 *tests/data/fate/vsynth1-ffvhuff.avi
+5987196 tests/data/fate/vsynth1-ffvhuff.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffvhuff.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-flashsv b/ffmpeg1/tests/ref/vsynth/vsynth1-flashsv
new file mode 100644
index 0000000..8b27830
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-flashsv
@@ -0,0 +1,4 @@
+97894502b4cb57aca1105b6333f72dae *tests/data/fate/vsynth1-flashsv.flv
+14681925 tests/data/fate/vsynth1-flashsv.flv
+791e1fb999deb2e4156e2286d48c4ed1 *tests/data/fate/vsynth1-flashsv.out.rawvideo
+stddev: 2.84 PSNR: 39.04 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-flashsv2 b/ffmpeg1/tests/ref/vsynth/vsynth1-flashsv2
new file mode 100644
index 0000000..a01ccbe
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-flashsv2
@@ -0,0 +1,4 @@
+adbbdd25c1ed2f87ea589d2314307cdf *tests/data/fate/vsynth1-flashsv2.flv
+9368395 tests/data/fate/vsynth1-flashsv2.flv
+efa88d09115a2e947eff00ee435ba3f3 *tests/data/fate/vsynth1-flashsv2.out.rawvideo
+stddev: 3.47 PSNR: 37.31 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-flv b/ffmpeg1/tests/ref/vsynth/vsynth1-flv
new file mode 100644
index 0000000..3a21e6a
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-flv
@@ -0,0 +1,4 @@
+7f6ece1acc4163e33a982dd77dfad58a *tests/data/fate/vsynth1-flv.flv
+636264 tests/data/fate/vsynth1-flv.flv
+00ffbd9dac9233e53f4a4a19589a0efe *tests/data/fate/vsynth1-flv.out.rawvideo
+stddev: 8.02 PSNR: 30.04 MAXDIFF: 105 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-h261 b/ffmpeg1/tests/ref/vsynth/vsynth1-h261
new file mode 100644
index 0000000..02b956b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-h261
@@ -0,0 +1,4 @@
+2e613918f64c3473b887306fc5eb3c3d *tests/data/fate/vsynth1-h261.avi
+707546 tests/data/fate/vsynth1-h261.avi
+85fde92037c2ccecc02e2d6c21a169b0 *tests/data/fate/vsynth1-h261.out.rawvideo
+stddev: 9.11 PSNR: 28.93 MAXDIFF: 113 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-h263 b/ffmpeg1/tests/ref/vsynth/vsynth1-h263
new file mode 100644
index 0000000..f985d61
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-h263
@@ -0,0 +1,4 @@
+36abb66d2480121f66a23e07d2b903be *tests/data/fate/vsynth1-h263.avi
+659674 tests/data/fate/vsynth1-h263.avi
+aef88517578fa7f53fe5159c4b6754ef *tests/data/fate/vsynth1-h263.out.rawvideo
+stddev: 8.03 PSNR: 30.03 MAXDIFF: 103 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-h263-obmc b/ffmpeg1/tests/ref/vsynth/vsynth1-h263-obmc
new file mode 100644
index 0000000..f60e252
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-h263-obmc
@@ -0,0 +1,4 @@
+ec2262cb7c674fd85afb14d9eb27d9d6 *tests/data/fate/vsynth1-h263-obmc.avi
+657316 tests/data/fate/vsynth1-h263-obmc.avi
+844f7ee27fa122e199fe20987b41a15c *tests/data/fate/vsynth1-h263-obmc.out.rawvideo
+stddev: 8.16 PSNR: 29.89 MAXDIFF: 113 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-h263p b/ffmpeg1/tests/ref/vsynth/vsynth1-h263p
new file mode 100644
index 0000000..72ef0ff
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-h263p
@@ -0,0 +1,4 @@
+03ebe03b70ee93524ec30c5abb69205a *tests/data/fate/vsynth1-h263p.avi
+2328362 tests/data/fate/vsynth1-h263p.avi
+911330cb57c99c440234392be1588081 *tests/data/fate/vsynth1-h263p.out.rawvideo
+stddev: 2.06 PSNR: 41.83 MAXDIFF: 20 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-huffyuv b/ffmpeg1/tests/ref/vsynth/vsynth1-huffyuv
new file mode 100644
index 0000000..ed08365
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-huffyuv
@@ -0,0 +1,4 @@
+829bf3e22e5d1df2aa9a709c9d5aff57 *tests/data/fate/vsynth1-huffyuv.avi
+7933788 tests/data/fate/vsynth1-huffyuv.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-huffyuv.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-j2k b/ffmpeg1/tests/ref/vsynth/vsynth1-j2k
new file mode 100644
index 0000000..1e2f3f2
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-j2k
@@ -0,0 +1,4 @@
+e6e3d338eeb394d6fadc7bbb55fa9e6e *tests/data/fate/vsynth1-j2k.avi
+2306902 tests/data/fate/vsynth1-j2k.avi
+ee9b245b3b07eed90bc6f2147bbd916c *tests/data/fate/vsynth1-j2k.out.rawvideo
+stddev: 5.47 PSNR: 33.37 MAXDIFF: 64 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-jpegls b/ffmpeg1/tests/ref/vsynth/vsynth1-jpegls
new file mode 100644
index 0000000..fc21074
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-jpegls
@@ -0,0 +1,4 @@
+f8acf917e24ea6c9200f2cdf99744ca9 *tests/data/fate/vsynth1-jpegls.avi
+9089800 tests/data/fate/vsynth1-jpegls.avi
+791e1fb999deb2e4156e2286d48c4ed1 *tests/data/fate/vsynth1-jpegls.out.rawvideo
+stddev: 2.84 PSNR: 39.04 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-ljpeg b/ffmpeg1/tests/ref/vsynth/vsynth1-ljpeg
new file mode 100644
index 0000000..e229db5
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-ljpeg
@@ -0,0 +1,4 @@
+2b1a2d5ad7f357df955d8548320d13f7 *tests/data/fate/vsynth1-ljpeg.avi
+6312924 tests/data/fate/vsynth1-ljpeg.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ljpeg.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg b/ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg
new file mode 100644
index 0000000..80f15ca
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg
@@ -0,0 +1,4 @@
+3d3a9cef95621e1c153649721c5a8590 *tests/data/fate/vsynth1-mjpeg.avi
+1515902 tests/data/fate/vsynth1-mjpeg.avi
+9a3b8169c251d19044f7087a95458c55 *tests/data/fate/vsynth1-mjpeg.out.rawvideo
+stddev: 7.87 PSNR: 30.21 MAXDIFF: 63 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg-422 b/ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg-422
new file mode 100644
index 0000000..e631a2b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg-422
@@ -0,0 +1,4 @@
+cd452cb6a2967b2f3bd2d31de6c95bf1 *tests/data/fate/vsynth1-mjpeg-422.avi
+1756300 tests/data/fate/vsynth1-mjpeg-422.avi
+c35eea486c6d72050f4848eab64032b5 *tests/data/fate/vsynth1-mjpeg-422.out.rawvideo
+stddev: 7.45 PSNR: 30.69 MAXDIFF: 63 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg-444 b/ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg-444
new file mode 100644
index 0000000..ba24914
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mjpeg-444
@@ -0,0 +1,4 @@
+94ca37e075ee24047b5dcd8f27b51a9f *tests/data/fate/vsynth1-mjpeg-444.avi
+1989780 tests/data/fate/vsynth1-mjpeg-444.avi
+313a4a76af13d5879ea4910107b7ea74 *tests/data/fate/vsynth1-mjpeg-444.out.rawvideo
+stddev: 7.37 PSNR: 30.77 MAXDIFF: 63 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg1 b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg1
new file mode 100644
index 0000000..b350cda
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg1
@@ -0,0 +1,4 @@
+490e08209e30f162cf3f2a6f2e49c7ce *tests/data/fate/vsynth1-mpeg1.mpeg1video
+711835 tests/data/fate/vsynth1-mpeg1.mpeg1video
+c126c7dd12e7161df192d253e3100475 *tests/data/fate/vsynth1-mpeg1.out.rawvideo
+stddev: 7.63 PSNR: 30.48 MAXDIFF: 84 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg1b b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg1b
new file mode 100644
index 0000000..5c9e3c1
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg1b
@@ -0,0 +1,4 @@
+fc095c7816920052fd0b91329c60cf29 *tests/data/fate/vsynth1-mpeg1b.mpeg1video
+1031387 tests/data/fate/vsynth1-mpeg1b.mpeg1video
+22289cbbeb1e40c5fd68dcc73a07d8f5 *tests/data/fate/vsynth1-mpeg1b.out.rawvideo
+stddev: 6.30 PSNR: 32.13 MAXDIFF: 75 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2 b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2
new file mode 100644
index 0000000..8dbc88b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2
@@ -0,0 +1,4 @@
+5434d2fbac67dc1a910883c9c04644fa *tests/data/fate/vsynth1-mpeg2.mpeg2video
+728400 tests/data/fate/vsynth1-mpeg2.mpeg2video
+66c2a14725ba0a6f1535b9a62768977b *tests/data/fate/vsynth1-mpeg2.out.rawvideo
+stddev: 7.65 PSNR: 30.45 MAXDIFF: 84 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-422 b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-422
new file mode 100644
index 0000000..bb0dce7
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-422
@@ -0,0 +1,4 @@
+0af0a148bf44bed5d260cafae6cc53e7 *tests/data/fate/vsynth1-mpeg2-422.mpeg2video
+730780 tests/data/fate/vsynth1-mpeg2-422.mpeg2video
+0273cd8463d1fc115378748239951560 *tests/data/fate/vsynth1-mpeg2-422.out.rawvideo
+stddev: 10.27 PSNR: 27.90 MAXDIFF: 162 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-idct-int b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-idct-int
new file mode 100644
index 0000000..dd72d71
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-idct-int
@@ -0,0 +1,4 @@
+4c067397b504d65532d7779cd36f3f88 *tests/data/fate/vsynth1-mpeg2-idct-int.mpeg2video
+725668 tests/data/fate/vsynth1-mpeg2-idct-int.mpeg2video
+8130f71a467315c9e7bd1a25a01dbb23 *tests/data/fate/vsynth1-mpeg2-idct-int.out.rawvideo
+stddev: 7.65 PSNR: 30.45 MAXDIFF: 80 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-ilace b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-ilace
new file mode 100644
index 0000000..b83b04c
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-ilace
@@ -0,0 +1,4 @@
+8492b04953b04dbef51cbe065f894e47 *tests/data/fate/vsynth1-mpeg2-ilace.mpeg2video
+738127 tests/data/fate/vsynth1-mpeg2-ilace.mpeg2video
+d0f2fab8d3a3fb8bc67aca068447d2db *tests/data/fate/vsynth1-mpeg2-ilace.out.rawvideo
+stddev: 7.67 PSNR: 30.43 MAXDIFF: 84 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd
new file mode 100644
index 0000000..4e00f0a
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd
@@ -0,0 +1,4 @@
+f5e8917781d576d0721d44a3111d3efa *tests/data/fate/vsynth1-mpeg2-ivlc-qprd.mpeg2video
+783518 tests/data/fate/vsynth1-mpeg2-ivlc-qprd.mpeg2video
+0876d78f40971c5a8eb2367cbd27c5a6 *tests/data/fate/vsynth1-mpeg2-ivlc-qprd.out.rawvideo
+stddev: 10.07 PSNR: 28.07 MAXDIFF: 165 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-thread b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-thread
new file mode 100644
index 0000000..fd56bf0
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-thread
@@ -0,0 +1,4 @@
+c52f961dd53263cd9e7785a0d46949b7 *tests/data/fate/vsynth1-mpeg2-thread.mpeg2video
+801214 tests/data/fate/vsynth1-mpeg2-thread.mpeg2video
+d433c9b07b40b0d6c4fd5426699efb7f *tests/data/fate/vsynth1-mpeg2-thread.out.rawvideo
+stddev: 7.63 PSNR: 30.48 MAXDIFF: 110 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc
new file mode 100644
index 0000000..235dfe5
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc
@@ -0,0 +1,4 @@
+6c5ac0817a7fc501ed6d91e9b9899ed3 *tests/data/fate/vsynth1-mpeg2-thread-ivlc.mpeg2video
+791673 tests/data/fate/vsynth1-mpeg2-thread-ivlc.mpeg2video
+d433c9b07b40b0d6c4fd5426699efb7f *tests/data/fate/vsynth1-mpeg2-thread-ivlc.out.rawvideo
+stddev: 7.63 PSNR: 30.48 MAXDIFF: 110 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4 b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4
new file mode 100644
index 0000000..b6da11c
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4
@@ -0,0 +1,4 @@
+a2acdf772bf7b7641079d8a03ea03ccf *tests/data/fate/vsynth1-mpeg4.mp4
+540024 tests/data/fate/vsynth1-mpeg4.mp4
+f80ec173d37f2f91add031e95579a220 *tests/data/fate/vsynth1-mpeg4.out.rawvideo
+stddev: 7.97 PSNR: 30.10 MAXDIFF: 105 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-adap b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-adap
new file mode 100644
index 0000000..00ea53d
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-adap
@@ -0,0 +1,4 @@
+2aa8bfefc09135a9a25dc23e3a14c6a4 *tests/data/fate/vsynth1-mpeg4-adap.avi
+403432 tests/data/fate/vsynth1-mpeg4-adap.avi
+fad0b9dc08fe4a95b297af1a7411c1e9 *tests/data/fate/vsynth1-mpeg4-adap.out.rawvideo
+stddev: 14.05 PSNR: 25.17 MAXDIFF: 184 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-adv b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-adv
new file mode 100644
index 0000000..a67cc14
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-adv
@@ -0,0 +1,4 @@
+b12cf575e8a28975cfeb67c23870afdd *tests/data/fate/vsynth1-mpeg4-adv.avi
+589704 tests/data/fate/vsynth1-mpeg4-adv.avi
+b651bd94456005a1990fb64c28306262 *tests/data/fate/vsynth1-mpeg4-adv.out.rawvideo
+stddev: 6.98 PSNR: 31.25 MAXDIFF: 84 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-error b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-error
new file mode 100644
index 0000000..b694362
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-error
@@ -0,0 +1,4 @@
+5a6d923425ff437924d4723aa73a817f *tests/data/fate/vsynth1-mpeg4-error.avi
+752346 tests/data/fate/vsynth1-mpeg4-error.avi
+5853c8c789f260ae4dcbf37a17d04b66 *tests/data/fate/vsynth1-mpeg4-error.out.rawvideo
+stddev: 17.33 PSNR: 23.35 MAXDIFF: 229 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-nr b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-nr
new file mode 100644
index 0000000..e71dd2b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-nr
@@ -0,0 +1,4 @@
+6515d1676d4d0c92c85c0468c53261aa *tests/data/fate/vsynth1-mpeg4-nr.avi
+675452 tests/data/fate/vsynth1-mpeg4-nr.avi
+5fee518cde41e5567f800fbe14210fb8 *tests/data/fate/vsynth1-mpeg4-nr.out.rawvideo
+stddev: 6.99 PSNR: 31.24 MAXDIFF: 86 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-qpel b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-qpel
new file mode 100644
index 0000000..67b72a1
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-qpel
@@ -0,0 +1,4 @@
+594626acf31cbfc4a14af4d9b3cd8a6c *tests/data/fate/vsynth1-mpeg4-qpel.avi
+858680 tests/data/fate/vsynth1-mpeg4-qpel.avi
+5089090df7169eb482532df5471d7f5f *tests/data/fate/vsynth1-mpeg4-qpel.out.rawvideo
+stddev: 5.63 PSNR: 33.11 MAXDIFF: 70 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-qprd b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-qprd
new file mode 100644
index 0000000..0475e70
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-qprd
@@ -0,0 +1,4 @@
+96590e5921628ff84d109624e6124911 *tests/data/fate/vsynth1-mpeg4-qprd.avi
+710672 tests/data/fate/vsynth1-mpeg4-qprd.avi
+693231ac7e6fbf8758415f9f2509408d *tests/data/fate/vsynth1-mpeg4-qprd.out.rawvideo
+stddev: 9.79 PSNR: 28.31 MAXDIFF: 176 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-rc b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-rc
new file mode 100644
index 0000000..96e41be
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-rc
@@ -0,0 +1,4 @@
+59cf839b030f7df30b95fd300c4defb1 *tests/data/fate/vsynth1-mpeg4-rc.avi
+830494 tests/data/fate/vsynth1-mpeg4-rc.avi
+9dcd9d022ae14fe1e4a53aa4865464c6 *tests/data/fate/vsynth1-mpeg4-rc.out.rawvideo
+stddev: 10.24 PSNR: 27.92 MAXDIFF: 196 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-thread b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-thread
new file mode 100644
index 0000000..a998273
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpeg4-thread
@@ -0,0 +1,4 @@
+14059560812963039e852f4f6419c238 *tests/data/fate/vsynth1-mpeg4-thread.avi
+774750 tests/data/fate/vsynth1-mpeg4-thread.avi
+9aa327a244d5179acf7fe64dc1459bff *tests/data/fate/vsynth1-mpeg4-thread.out.rawvideo
+stddev: 10.13 PSNR: 28.02 MAXDIFF: 183 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-mpng b/ffmpeg1/tests/ref/vsynth/vsynth1-mpng
new file mode 100644
index 0000000..5ca268b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-mpng
@@ -0,0 +1,4 @@
+10bcdf8600d3985aeb57dc774df2b747 *tests/data/fate/vsynth1-mpng.avi
+12158276 tests/data/fate/vsynth1-mpng.avi
+93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mpng.out.rawvideo
+stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-msmpeg4 b/ffmpeg1/tests/ref/vsynth/vsynth1-msmpeg4
new file mode 100644
index 0000000..4adabbe
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-msmpeg4
@@ -0,0 +1,4 @@
+7d9d622b04156246348bde2e3a4d9c9c *tests/data/fate/vsynth1-msmpeg4.avi
+624702 tests/data/fate/vsynth1-msmpeg4.avi
+4529fee96b8073e02974f5355e5f6c4e *tests/data/fate/vsynth1-msmpeg4.out.rawvideo
+stddev: 7.98 PSNR: 30.09 MAXDIFF: 104 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-msmpeg4v2 b/ffmpeg1/tests/ref/vsynth/vsynth1-msmpeg4v2
new file mode 100644
index 0000000..775d575
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-msmpeg4v2
@@ -0,0 +1,4 @@
+a0539692d72e763448fc0dbe98d92ea3 *tests/data/fate/vsynth1-msmpeg4v2.avi
+623766 tests/data/fate/vsynth1-msmpeg4v2.avi
+0476d9aafc4358654f411fa9648f9560 *tests/data/fate/vsynth1-msmpeg4v2.out.rawvideo
+stddev: 7.97 PSNR: 30.10 MAXDIFF: 105 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-msvideo1 b/ffmpeg1/tests/ref/vsynth/vsynth1-msvideo1
new file mode 100644
index 0000000..0ab8860
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-msvideo1
@@ -0,0 +1,4 @@
+bea8dd62e64453fb08e4f3d19be23792 *tests/data/fate/vsynth1-msvideo1.avi
+2051892 tests/data/fate/vsynth1-msvideo1.avi
+f4605ac6df556a3ca7053c49aaac04d8 *tests/data/fate/vsynth1-msvideo1.out.rawvideo
+stddev: 11.89 PSNR: 26.62 MAXDIFF: 159 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-prores b/ffmpeg1/tests/ref/vsynth/vsynth1-prores
new file mode 100644
index 0000000..16517ee
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-prores
@@ -0,0 +1,4 @@
+6f7ce83099b35e5af0cf484f2e9f1f4f *tests/data/fate/vsynth1-prores.mov
+5022821 tests/data/fate/vsynth1-prores.mov
+a2e2d1d45341a94ff994d1d92629f778 *tests/data/fate/vsynth1-prores.out.rawvideo
+stddev: 2.47 PSNR: 40.27 MAXDIFF: 31 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-prores_kostya b/ffmpeg1/tests/ref/vsynth/vsynth1-prores_kostya
new file mode 100644
index 0000000..ab6ecff
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-prores_kostya
@@ -0,0 +1,4 @@
+36411e06db3f86ddedd6171a56784d6b *tests/data/fate/vsynth1-prores_kostya.mov
+3858911 tests/data/fate/vsynth1-prores_kostya.mov
+0a4153637d0cc0a88a8bcbf04cfaf8c6 *tests/data/fate/vsynth1-prores_kostya.out.rawvideo
+stddev: 3.17 PSNR: 38.09 MAXDIFF: 39 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-qtrle b/ffmpeg1/tests/ref/vsynth/vsynth1-qtrle
new file mode 100644
index 0000000..9bd79cc
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-qtrle
@@ -0,0 +1,4 @@
+4eaa59011403ce3e53f8abb5cf6d26e5 *tests/data/fate/vsynth1-qtrle.mov
+15263158 tests/data/fate/vsynth1-qtrle.mov
+93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-qtrle.out.rawvideo
+stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-qtrlegray b/ffmpeg1/tests/ref/vsynth/vsynth1-qtrlegray
new file mode 100644
index 0000000..425c11f
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-qtrlegray
@@ -0,0 +1,4 @@
+d010ff7be190f4cd053d79ee7f601ce2 *tests/data/fate/vsynth1-qtrlegray.mov
+5113294 tests/data/fate/vsynth1-qtrlegray.mov
+29def4aed035ed65d3a89f7d382fccbe *tests/data/fate/vsynth1-qtrlegray.out.rawvideo
+stddev: 25.95 PSNR: 19.85 MAXDIFF: 122 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-r210 b/ffmpeg1/tests/ref/vsynth/vsynth1-r210
new file mode 100644
index 0000000..15b56a2
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-r210
@@ -0,0 +1,4 @@
+80c966b18025897207ab624206a6e7a0 *tests/data/fate/vsynth1-r210.avi
+22125248 tests/data/fate/vsynth1-r210.avi
+ecaafa9eec11b5e1453a63ed6d194eed *tests/data/fate/vsynth1-r210.out.rawvideo
+stddev: 3.23 PSNR: 37.94 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-rgb b/ffmpeg1/tests/ref/vsynth/vsynth1-rgb
new file mode 100644
index 0000000..3db3348
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-rgb
@@ -0,0 +1,4 @@
+d78bcd5828862c3342388ec8a2c34fef *tests/data/fate/vsynth1-rgb.avi
+15213248 tests/data/fate/vsynth1-rgb.avi
+93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-rgb.out.rawvideo
+stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-roqvideo b/ffmpeg1/tests/ref/vsynth/vsynth1-roqvideo
new file mode 100644
index 0000000..5adba69
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-roqvideo
@@ -0,0 +1,4 @@
+cf8b7b0e539bab3169c234ca63d71dd8 *tests/data/fate/vsynth1-roqvideo.roq
+101671 tests/data/fate/vsynth1-roqvideo.roq
+0ad983c291b1ed373645c5b12a108c61 *tests/data/fate/vsynth1-roqvideo.out.rawvideo
+stddev: 7.74 PSNR: 30.35 MAXDIFF: 89 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-rv10 b/ffmpeg1/tests/ref/vsynth/vsynth1-rv10
new file mode 100644
index 0000000..d414bd6
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-rv10
@@ -0,0 +1,4 @@
+5ef46004d474669d19ad06133a1cf137 *tests/data/fate/vsynth1-rv10.rm
+653907 tests/data/fate/vsynth1-rv10.rm
+aef88517578fa7f53fe5159c4b6754ef *tests/data/fate/vsynth1-rv10.out.rawvideo
+stddev: 8.03 PSNR: 30.03 MAXDIFF: 103 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-rv20 b/ffmpeg1/tests/ref/vsynth/vsynth1-rv20
new file mode 100644
index 0000000..5b3310a
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-rv20
@@ -0,0 +1,4 @@
+0f04eec24aaa8ea06eafc58082c2e2ef *tests/data/fate/vsynth1-rv20.rm
+646019 tests/data/fate/vsynth1-rv20.rm
+3f55bcfb3c672d74f0fa64aa90aa0395 *tests/data/fate/vsynth1-rv20.out.rawvideo
+stddev: 8.26 PSNR: 29.79 MAXDIFF: 103 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-snow b/ffmpeg1/tests/ref/vsynth/vsynth1-snow
new file mode 100644
index 0000000..701b5cc
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-snow
@@ -0,0 +1,4 @@
+44fed844eb715fba0cc2433e7d7713bb *tests/data/fate/vsynth1-snow.avi
+136076 tests/data/fate/vsynth1-snow.avi
+91021b7d6d7908648fe78cc1975af8c4 *tests/data/fate/vsynth1-snow.out.rawvideo
+stddev: 22.77 PSNR: 20.98 MAXDIFF: 172 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-snow-hpel b/ffmpeg1/tests/ref/vsynth/vsynth1-snow-hpel
new file mode 100644
index 0000000..c22ad0a
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-snow-hpel
@@ -0,0 +1,4 @@
+f60c8cb8f41b66bc38df87e9bdb84b34 *tests/data/fate/vsynth1-snow-hpel.avi
+138700 tests/data/fate/vsynth1-snow-hpel.avi
+d6845c8f1310e041afdcebc6bbfc449b *tests/data/fate/vsynth1-snow-hpel.out.rawvideo
+stddev: 22.74 PSNR: 20.99 MAXDIFF: 171 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-snow-ll b/ffmpeg1/tests/ref/vsynth/vsynth1-snow-ll
new file mode 100644
index 0000000..1636af5
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-snow-ll
@@ -0,0 +1,4 @@
+bdc7a025cd306f3da0d377b06bbe909b *tests/data/fate/vsynth1-snow-ll.avi
+3419968 tests/data/fate/vsynth1-snow-ll.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-snow-ll.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-svq1 b/ffmpeg1/tests/ref/vsynth/vsynth1-svq1
new file mode 100644
index 0000000..6be76e1
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-svq1
@@ -0,0 +1,4 @@
+ea441979fa5bf694d1f6cee958d56560 *tests/data/fate/vsynth1-svq1.mov
+1334233 tests/data/fate/vsynth1-svq1.mov
+9cc35c54b2c77d36bd7e308b393c1f81 *tests/data/fate/vsynth1-svq1.out.rawvideo
+stddev: 9.58 PSNR: 28.50 MAXDIFF: 210 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-v210 b/ffmpeg1/tests/ref/vsynth/vsynth1-v210
new file mode 100644
index 0000000..defd2f6
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-v210
@@ -0,0 +1,4 @@
+054d7e903fb4d9e68700c56b93d45916 *tests/data/fate/vsynth1-v210.avi
+14752448 tests/data/fate/vsynth1-v210.avi
+50973792d3f1abe04a51ee0121f077f2 *tests/data/fate/vsynth1-v210.out.rawvideo
+stddev: 1.85 PSNR: 42.78 MAXDIFF: 29 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-v308 b/ffmpeg1/tests/ref/vsynth/vsynth1-v308
new file mode 100644
index 0000000..7dc5de9
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-v308
@@ -0,0 +1,4 @@
+05552ba36d003f8d5fec739c5ed90a67 *tests/data/fate/vsynth1-v308.avi
+15213248 tests/data/fate/vsynth1-v308.avi
+10fb42f1abf40a289c3edafc0390482c *tests/data/fate/vsynth1-v308.out.rawvideo
+stddev: 2.67 PSNR: 39.60 MAXDIFF: 43 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-v408 b/ffmpeg1/tests/ref/vsynth/vsynth1-v408
new file mode 100644
index 0000000..f1523d1
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-v408
@@ -0,0 +1,4 @@
+415c94a79b0eb58c445221a362e0054e *tests/data/fate/vsynth1-v408.avi
+20282048 tests/data/fate/vsynth1-v408.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-v408.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-wmv1 b/ffmpeg1/tests/ref/vsynth/vsynth1-wmv1
new file mode 100644
index 0000000..8d24543
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-wmv1
@@ -0,0 +1,4 @@
+2760d19cb77d84bd5bfc588d23306113 *tests/data/fate/vsynth1-wmv1.avi
+626870 tests/data/fate/vsynth1-wmv1.avi
+3354066ebdd8cd8098394be2384744e7 *tests/data/fate/vsynth1-wmv1.out.rawvideo
+stddev: 7.97 PSNR: 30.09 MAXDIFF: 110 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-wmv2 b/ffmpeg1/tests/ref/vsynth/vsynth1-wmv2
new file mode 100644
index 0000000..872ffc9
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-wmv2
@@ -0,0 +1,4 @@
+4ab9357e6369c81fecb1ebcbc7551f0c *tests/data/fate/vsynth1-wmv2.avi
+659138 tests/data/fate/vsynth1-wmv2.avi
+8a6061ef825e79d887705db656d51247 *tests/data/fate/vsynth1-wmv2.out.rawvideo
+stddev: 7.97 PSNR: 30.09 MAXDIFF: 105 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-y41p b/ffmpeg1/tests/ref/vsynth/vsynth1-y41p
new file mode 100644
index 0000000..93fa938
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-y41p
@@ -0,0 +1,4 @@
+c9fce228075067c51511d8b070fde340 *tests/data/fate/vsynth1-y41p.avi
+7610048 tests/data/fate/vsynth1-y41p.avi
+3aef1d83732a3f9835ee2523a11c95c1 *tests/data/fate/vsynth1-y41p.out.rawvideo
+stddev: 5.98 PSNR: 32.59 MAXDIFF: 87 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-yuv b/ffmpeg1/tests/ref/vsynth/vsynth1-yuv
new file mode 100644
index 0000000..2eeff80
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-yuv
@@ -0,0 +1,4 @@
+9622cbbe3ced7490f50e74cf088bc7c9 *tests/data/fate/vsynth1-yuv.avi
+7610048 tests/data/fate/vsynth1-yuv.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-yuv.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-yuv4 b/ffmpeg1/tests/ref/vsynth/vsynth1-yuv4
new file mode 100644
index 0000000..5c473a2
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-yuv4
@@ -0,0 +1,4 @@
+45805be52d9807f0c6f76011a64bf67b *tests/data/fate/vsynth1-yuv4.avi
+7610048 tests/data/fate/vsynth1-yuv4.avi
+c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-yuv4.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-zlib b/ffmpeg1/tests/ref/vsynth/vsynth1-zlib
new file mode 100644
index 0000000..f5441e1
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-zlib
@@ -0,0 +1,4 @@
+fd52fff386f172bb3aef97761b99331c *tests/data/fate/vsynth1-zlib.avi
+12108632 tests/data/fate/vsynth1-zlib.avi
+93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-zlib.out.rawvideo
+stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth1-zmbv b/ffmpeg1/tests/ref/vsynth/vsynth1-zmbv
new file mode 100644
index 0000000..c608c4b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth1-zmbv
@@ -0,0 +1,4 @@
+09bae55394f86ddb9e5c3254b174f865 *tests/data/fate/vsynth1-zmbv.avi
+2285442 tests/data/fate/vsynth1-zmbv.avi
+4ad1ca9de7c65eab68a619c54fffaec8 *tests/data/fate/vsynth1-zmbv.out.rawvideo
+stddev: 8.61 PSNR: 29.43 MAXDIFF: 64 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-amv b/ffmpeg1/tests/ref/vsynth/vsynth2-amv
new file mode 100644
index 0000000..6937df3
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-amv
@@ -0,0 +1,4 @@
+26d039bc37b2186d57522a8e3dc76217 *tests/data/fate/vsynth2-amv.avi
+761976 tests/data/fate/vsynth2-amv.avi
+f256ad9feefb499c6569d06d868eb496 *tests/data/fate/vsynth2-amv.out.rawvideo
+stddev: 4.30 PSNR: 35.46 MAXDIFF: 65 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-asv1 b/ffmpeg1/tests/ref/vsynth/vsynth2-asv1
new file mode 100644
index 0000000..282435b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-asv1
@@ -0,0 +1,4 @@
+ae8d79e0e421138a9a67a148a42c26c5 *tests/data/fate/vsynth2-asv1.avi
+832500 tests/data/fate/vsynth2-asv1.avi
+c96ff7fd17c52f99ddb7922a4cb9168f *tests/data/fate/vsynth2-asv1.out.rawvideo
+stddev: 10.47 PSNR: 27.73 MAXDIFF: 98 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-asv2 b/ffmpeg1/tests/ref/vsynth/vsynth2-asv2
new file mode 100644
index 0000000..8942862
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-asv2
@@ -0,0 +1,4 @@
+ccf6762758395eee9a29ef7a4ef3cd58 *tests/data/fate/vsynth2-asv2.avi
+789060 tests/data/fate/vsynth2-asv2.avi
+74a78015b64b2cf8cb9da2e44f508a69 *tests/data/fate/vsynth2-asv2.out.rawvideo
+stddev: 10.28 PSNR: 27.89 MAXDIFF: 95 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-avui b/ffmpeg1/tests/ref/vsynth/vsynth2-avui
new file mode 100644
index 0000000..743c6ff
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-avui
@@ -0,0 +1,4 @@
+ec8b12fd9f1f7737f7e23419457fe431 *tests/data/fate/vsynth2-avui.mov
+42624917 tests/data/fate/vsynth2-avui.mov
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth2-avui.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-cljr b/ffmpeg1/tests/ref/vsynth/vsynth2-cljr
new file mode 100644
index 0000000..c93da2e
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-cljr
@@ -0,0 +1,4 @@
+d9da8b1a1e78a8f0438d37c10f975ba3 *tests/data/fate/vsynth2-cljr.avi
+5075648 tests/data/fate/vsynth2-cljr.avi
+965c4a134144b30b24d6d138b03ddb8c *tests/data/fate/vsynth2-cljr.out.rawvideo
+stddev: 3.29 PSNR: 37.76 MAXDIFF: 23 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-1080i b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-1080i
new file mode 100644
index 0000000..f657eb4
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-1080i
@@ -0,0 +1,4 @@
+5d7ab75ce6e547ed63a7a0eacf18f078 *tests/data/fate/vsynth2-dnxhd-1080i.mov
+3031911 tests/data/fate/vsynth2-dnxhd-1080i.mov
+744ba46da5d4c19a28562ea31061d170 *tests/data/fate/vsynth2-dnxhd-1080i.out.rawvideo
+stddev: 1.31 PSNR: 45.77 MAXDIFF: 23 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p
new file mode 100644
index 0000000..0a8441b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p
@@ -0,0 +1,4 @@
+4ca9473a8d106bdfe36e9bf7c516b648 *tests/data/fate/vsynth2-dnxhd-720p.dnxhd
+2293760 tests/data/fate/vsynth2-dnxhd-720p.dnxhd
+d44c4b08cda8a8042ae345124fdfffcc *tests/data/fate/vsynth2-dnxhd-720p.out.rawvideo
+stddev: 1.32 PSNR: 45.68 MAXDIFF: 22 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p-10bit b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p-10bit
new file mode 100644
index 0000000..cf3ba7b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p-10bit
@@ -0,0 +1,4 @@
+e96fc4a7d994b9369c50da32fd325822 *tests/data/fate/vsynth2-dnxhd-720p-10bit.dnxhd
+2293760 tests/data/fate/vsynth2-dnxhd-720p-10bit.dnxhd
+a57ce32ab22ae60bf21655b0d1ba3b07 *tests/data/fate/vsynth2-dnxhd-720p-10bit.out.rawvideo
+stddev: 1.35 PSNR: 45.47 MAXDIFF: 22 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p-rd b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p-rd
new file mode 100644
index 0000000..5387ce5
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd-720p-rd
@@ -0,0 +1,4 @@
+b305b03708e905717b42fc0b304367d4 *tests/data/fate/vsynth2-dnxhd-720p-rd.dnxhd
+2293760 tests/data/fate/vsynth2-dnxhd-720p-rd.dnxhd
+13de1c5ed025abb5120450e134aa623d *tests/data/fate/vsynth2-dnxhd-720p-rd.out.rawvideo
+stddev: 1.32 PSNR: 45.66 MAXDIFF: 22 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd_1080i b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd_1080i
new file mode 100644
index 0000000..81ecc5e
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-dnxhd_1080i
@@ -0,0 +1,4 @@
+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/ffmpeg1/tests/ref/vsynth/vsynth2-dv b/ffmpeg1/tests/ref/vsynth/vsynth2-dv
new file mode 100644
index 0000000..0d1465c
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-dv
@@ -0,0 +1,4 @@
+85b8d55b0b68bb3fc2e90babb580f9b7 *tests/data/fate/vsynth2-dv.dv
+7200000 tests/data/fate/vsynth2-dv.dv
+7ec62bd3350a6848364669e6e1e4b9cc *tests/data/fate/vsynth2-dv.out.rawvideo
+stddev: 1.71 PSNR: 43.47 MAXDIFF: 33 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-dv-411 b/ffmpeg1/tests/ref/vsynth/vsynth2-dv-411
new file mode 100644
index 0000000..d0e6d29
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-dv-411
@@ -0,0 +1,4 @@
+e428508f400327aeb96969c08fb9e1b5 *tests/data/fate/vsynth2-dv-411.dv
+7200000 tests/data/fate/vsynth2-dv-411.dv
+3cd4b85065d67bfb7fbab3bea4039711 *tests/data/fate/vsynth2-dv-411.out.rawvideo
+stddev: 2.89 PSNR: 38.91 MAXDIFF: 45 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-dv-50 b/ffmpeg1/tests/ref/vsynth/vsynth2-dv-50
new file mode 100644
index 0000000..c5ac608
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-dv-50
@@ -0,0 +1,4 @@
+0032a07167199e6f49e07fa7ed4d5f62 *tests/data/fate/vsynth2-dv-50.dv
+14400000 tests/data/fate/vsynth2-dv-50.dv
+af3f2dd5ab62c1a1d98b07d4aeb6852f *tests/data/fate/vsynth2-dv-50.out.rawvideo
+stddev: 0.82 PSNR: 49.82 MAXDIFF: 12 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-dv_411 b/ffmpeg1/tests/ref/vsynth/vsynth2-dv_411
new file mode 100644
index 0000000..708ac88
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-dv_411
@@ -0,0 +1,4 @@
+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/ffmpeg1/tests/ref/vsynth/vsynth2-ffv1 b/ffmpeg1/tests/ref/vsynth/vsynth2-ffv1
new file mode 100644
index 0000000..8263b01
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-ffv1
@@ -0,0 +1,4 @@
+9d8486fc8a260204d8ee3212d95915b5 *tests/data/fate/vsynth2-ffv1.avi
+3546258 tests/data/fate/vsynth2-ffv1.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth2-ffv1.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-ffvhuff b/ffmpeg1/tests/ref/vsynth/vsynth2-ffvhuff
new file mode 100644
index 0000000..164e773
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-ffvhuff
@@ -0,0 +1,4 @@
+6689843a60dcc046fe1d7be3afab2cab *tests/data/fate/vsynth2-ffvhuff.avi
+4988044 tests/data/fate/vsynth2-ffvhuff.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth2-ffvhuff.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-flashsv b/ffmpeg1/tests/ref/vsynth/vsynth2-flashsv
new file mode 100644
index 0000000..e44fa8f
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-flashsv
@@ -0,0 +1,4 @@
+0667077971e0cb63b5f49c580006e90e *tests/data/fate/vsynth2-flashsv.flv
+12368953 tests/data/fate/vsynth2-flashsv.flv
+3a984506f1ebfc9fb73b6814cab201cc *tests/data/fate/vsynth2-flashsv.out.rawvideo
+stddev: 0.66 PSNR: 51.73 MAXDIFF: 14 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-flashsv2 b/ffmpeg1/tests/ref/vsynth/vsynth2-flashsv2
new file mode 100644
index 0000000..d207a8b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-flashsv2
@@ -0,0 +1,4 @@
+01e0aa4da9ccc8e12fd03df63625eea4 *tests/data/fate/vsynth2-flashsv2.flv
+9291162 tests/data/fate/vsynth2-flashsv2.flv
+8f63e24049ba1789a7f8353c695a3d99 *tests/data/fate/vsynth2-flashsv2.out.rawvideo
+stddev: 2.39 PSNR: 40.55 MAXDIFF: 21 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-flv b/ffmpeg1/tests/ref/vsynth/vsynth2-flv
new file mode 100644
index 0000000..ab31755
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-flv
@@ -0,0 +1,4 @@
+dee04bdab18c2eed81373faec89fd5a7 *tests/data/fate/vsynth2-flv.flv
+131380 tests/data/fate/vsynth2-flv.flv
+184034553ceb801bb1d1521d2d998a67 *tests/data/fate/vsynth2-flv.out.rawvideo
+stddev: 5.33 PSNR: 33.59 MAXDIFF: 79 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-h261 b/ffmpeg1/tests/ref/vsynth/vsynth2-h261
new file mode 100644
index 0000000..f9091c7
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-h261
@@ -0,0 +1,4 @@
+dc32bc8a9e6eae15362ab86f8156f96a *tests/data/fate/vsynth2-h261.avi
+191060 tests/data/fate/vsynth2-h261.avi
+08f65e9aeeeaf189548c2bb417d5114f *tests/data/fate/vsynth2-h261.out.rawvideo
+stddev: 6.37 PSNR: 32.03 MAXDIFF: 77 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-h263 b/ffmpeg1/tests/ref/vsynth/vsynth2-h263
new file mode 100644
index 0000000..944d8ea
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-h263
@@ -0,0 +1,4 @@
+949d8c9926914751af5f433af0f8fd65 *tests/data/fate/vsynth2-h263.avi
+160102 tests/data/fate/vsynth2-h263.avi
+b7d733ebedbaa04f49bf7493a907e223 *tests/data/fate/vsynth2-h263.out.rawvideo
+stddev: 5.43 PSNR: 33.42 MAXDIFF: 77 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-h263-obmc b/ffmpeg1/tests/ref/vsynth/vsynth2-h263-obmc
new file mode 100644
index 0000000..a704318
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-h263-obmc
@@ -0,0 +1,4 @@
+7825a0bdf024673da2371829e3f01cc3 *tests/data/fate/vsynth2-h263-obmc.avi
+154726 tests/data/fate/vsynth2-h263-obmc.avi
+588d992d9d8096da8bdc5027268da914 *tests/data/fate/vsynth2-h263-obmc.out.rawvideo
+stddev: 5.39 PSNR: 33.49 MAXDIFF: 82 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-h263p b/ffmpeg1/tests/ref/vsynth/vsynth2-h263p
new file mode 100644
index 0000000..b4ebed9
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-h263p
@@ -0,0 +1,4 @@
+3894234818ed65426b5f20f058d27c73 *tests/data/fate/vsynth2-h263p.avi
+867998 tests/data/fate/vsynth2-h263p.avi
+dca18571c05c13dd691d7b0b232e43fc *tests/data/fate/vsynth2-h263p.out.rawvideo
+stddev: 1.91 PSNR: 42.50 MAXDIFF: 19 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-huffyuv b/ffmpeg1/tests/ref/vsynth/vsynth2-huffyuv
new file mode 100644
index 0000000..9b67815
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-huffyuv
@@ -0,0 +1,4 @@
+b5ae95ae03856ee14bbd38784a02f3ca *tests/data/fate/vsynth2-huffyuv.avi
+6455220 tests/data/fate/vsynth2-huffyuv.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth2-huffyuv.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-j2k b/ffmpeg1/tests/ref/vsynth/vsynth2-j2k
new file mode 100644
index 0000000..4f038fe
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-j2k
@@ -0,0 +1,4 @@
+fc49816ba28731689872f5c87ca91c10 *tests/data/fate/vsynth2-j2k.avi
+1151144 tests/data/fate/vsynth2-j2k.avi
+ec5218eec33a021945c28c72093382a5 *tests/data/fate/vsynth2-j2k.out.rawvideo
+stddev: 4.54 PSNR: 34.99 MAXDIFF: 61 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-jpegls b/ffmpeg1/tests/ref/vsynth/vsynth2-jpegls
new file mode 100644
index 0000000..f8f7081
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-jpegls
@@ -0,0 +1,4 @@
+f34315ed0e30cf4d94dd21ff1d4cea1b *tests/data/fate/vsynth2-jpegls.avi
+8334618 tests/data/fate/vsynth2-jpegls.avi
+3a984506f1ebfc9fb73b6814cab201cc *tests/data/fate/vsynth2-jpegls.out.rawvideo
+stddev: 0.66 PSNR: 51.73 MAXDIFF: 14 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-ljpeg b/ffmpeg1/tests/ref/vsynth/vsynth2-ljpeg
new file mode 100644
index 0000000..fa2f978
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-ljpeg
@@ -0,0 +1,4 @@
+db9fd56e154b1056c9443a82a96db6f5 *tests/data/fate/vsynth2-ljpeg.avi
+4766902 tests/data/fate/vsynth2-ljpeg.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth2-ljpeg.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg b/ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg
new file mode 100644
index 0000000..f1780c5
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg
@@ -0,0 +1,4 @@
+302197cccebb4d9797a08d06ca189533 *tests/data/fate/vsynth2-mjpeg.avi
+673174 tests/data/fate/vsynth2-mjpeg.avi
+9d4bd90e9abfa18192383b4adc23c8d4 *tests/data/fate/vsynth2-mjpeg.out.rawvideo
+stddev: 4.32 PSNR: 35.40 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg-422 b/ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg-422
new file mode 100644
index 0000000..fc0a4ba
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg-422
@@ -0,0 +1,4 @@
+1ec800caa1dd2244677220d8a2b342ca *tests/data/fate/vsynth2-mjpeg-422.avi
+746530 tests/data/fate/vsynth2-mjpeg-422.avi
+451ac80989c4e14445cf951fd7f83b6d *tests/data/fate/vsynth2-mjpeg-422.out.rawvideo
+stddev: 4.18 PSNR: 35.70 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg-444 b/ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg-444
new file mode 100644
index 0000000..b09f889
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mjpeg-444
@@ -0,0 +1,4 @@
+10abd087833f9bdf3b77c1aa37dc11e5 *tests/data/fate/vsynth2-mjpeg-444.avi
+851442 tests/data/fate/vsynth2-mjpeg-444.avi
+34edcb9c87ff7aac456a4fb07f43504b *tests/data/fate/vsynth2-mjpeg-444.out.rawvideo
+stddev: 4.05 PSNR: 35.96 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg1 b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg1
new file mode 100644
index 0000000..bc94fbc
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg1
@@ -0,0 +1,4 @@
+c6f1a98dd7201b1e5d7f0f69d7e9577d *tests/data/fate/vsynth2-mpeg1.mpeg1video
+192794 tests/data/fate/vsynth2-mpeg1.mpeg1video
+b3584042c60385e0fb988b8ec5b36409 *tests/data/fate/vsynth2-mpeg1.out.rawvideo
+stddev: 4.95 PSNR: 34.22 MAXDIFF: 57 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg1b b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg1b
new file mode 100644
index 0000000..f4864a5
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg1b
@@ -0,0 +1,4 @@
+8300bede250c3987f1c5bc9bbd1d78e1 *tests/data/fate/vsynth2-mpeg1b.mpeg1video
+225201 tests/data/fate/vsynth2-mpeg1b.mpeg1video
+f17fb3eef4ed3d03eeaaee45b217f7a5 *tests/data/fate/vsynth2-mpeg1b.out.rawvideo
+stddev: 4.10 PSNR: 35.86 MAXDIFF: 59 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2 b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2
new file mode 100644
index 0000000..b5f5af9
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2
@@ -0,0 +1,4 @@
+81fc934ad6901b6c37a59b94ccda8de7 *tests/data/fate/vsynth2-mpeg2.mpeg2video
+198673 tests/data/fate/vsynth2-mpeg2.mpeg2video
+9efe4846a75d9b7387d1e3bb1e5db29a *tests/data/fate/vsynth2-mpeg2.out.rawvideo
+stddev: 4.96 PSNR: 34.20 MAXDIFF: 59 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-422 b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-422
new file mode 100644
index 0000000..14d751b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-422
@@ -0,0 +1,4 @@
+99ba26ba009e0172855a9dadaefef2d9 *tests/data/fate/vsynth2-mpeg2-422.mpeg2video
+356431 tests/data/fate/vsynth2-mpeg2-422.mpeg2video
+51ca353620f85db8b5b1c56f1a275add *tests/data/fate/vsynth2-mpeg2-422.out.rawvideo
+stddev: 3.15 PSNR: 38.14 MAXDIFF: 49 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-idct-int b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-idct-int
new file mode 100644
index 0000000..83874b1
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-idct-int
@@ -0,0 +1,4 @@
+f979bcca866e6e4cad5dc6cb06e56cfb *tests/data/fate/vsynth2-mpeg2-idct-int.mpeg2video
+198041 tests/data/fate/vsynth2-mpeg2-idct-int.mpeg2video
+92794e70e4a19a494f10efe353d9895d *tests/data/fate/vsynth2-mpeg2-idct-int.out.rawvideo
+stddev: 4.97 PSNR: 34.19 MAXDIFF: 58 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-ilace b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-ilace
new file mode 100644
index 0000000..2f9a306
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-ilace
@@ -0,0 +1,4 @@
+a6f4c4dbd7f73b73e876fbd7a9650610 *tests/data/fate/vsynth2-mpeg2-ilace.mpeg2video
+204576 tests/data/fate/vsynth2-mpeg2-ilace.mpeg2video
+d69be0d4ba1cb9c1fef9fb0d94a912ba *tests/data/fate/vsynth2-mpeg2-ilace.out.rawvideo
+stddev: 4.98 PSNR: 34.18 MAXDIFF: 65 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd
new file mode 100644
index 0000000..30e129b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd
@@ -0,0 +1,4 @@
+1ba5efeb53fab7b4b71edc96d86f6c91 *tests/data/fate/vsynth2-mpeg2-ivlc-qprd.mpeg2video
+244694 tests/data/fate/vsynth2-mpeg2-ivlc-qprd.mpeg2video
+b26e21599dee48a174bdbc40b2817e55 *tests/data/fate/vsynth2-mpeg2-ivlc-qprd.out.rawvideo
+stddev: 4.15 PSNR: 35.76 MAXDIFF: 74 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-thread b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-thread
new file mode 100644
index 0000000..40552fe
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-thread
@@ -0,0 +1,4 @@
+38af1e2261ae363abea5818db74ea241 *tests/data/fate/vsynth2-mpeg2-thread.mpeg2video
+179656 tests/data/fate/vsynth2-mpeg2-thread.mpeg2video
+f8f084b7f51fbe4f82d57b8aeec17edf *tests/data/fate/vsynth2-mpeg2-thread.out.rawvideo
+stddev: 4.72 PSNR: 34.65 MAXDIFF: 72 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc
new file mode 100644
index 0000000..9bcac8b
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc
@@ -0,0 +1,4 @@
+9cb6b65e05fa854da2ad08b34fe032aa *tests/data/fate/vsynth2-mpeg2-thread-ivlc.mpeg2video
+178807 tests/data/fate/vsynth2-mpeg2-thread-ivlc.mpeg2video
+f8f084b7f51fbe4f82d57b8aeec17edf *tests/data/fate/vsynth2-mpeg2-thread-ivlc.out.rawvideo
+stddev: 4.72 PSNR: 34.65 MAXDIFF: 72 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4 b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4
new file mode 100644
index 0000000..399ef58
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4
@@ -0,0 +1,4 @@
+04f74c54f4db25e1d454ede9216632c1 *tests/data/fate/vsynth2-mpeg4.mp4
+119661 tests/data/fate/vsynth2-mpeg4.mp4
+9a1e085d9e488c5ead0c940c9612a37a *tests/data/fate/vsynth2-mpeg4.out.rawvideo
+stddev: 5.34 PSNR: 33.57 MAXDIFF: 83 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-adap b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-adap
new file mode 100644
index 0000000..175552d
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-adap
@@ -0,0 +1,4 @@
+4b39d46a436f1bce59e2902cec3478e9 *tests/data/fate/vsynth2-mpeg4-adap.avi
+198496 tests/data/fate/vsynth2-mpeg4-adap.avi
+87b6dbe98d276137fceaae2fa672eced *tests/data/fate/vsynth2-mpeg4-adap.out.rawvideo
+stddev: 3.75 PSNR: 36.65 MAXDIFF: 71 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-adv b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-adv
new file mode 100644
index 0000000..b3bf264
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-adv
@@ -0,0 +1,4 @@
+1875ae5a45936c08778c4430a22e87eb *tests/data/fate/vsynth2-mpeg4-adv.avi
+141534 tests/data/fate/vsynth2-mpeg4-adv.avi
+3f3a21e9db85a9c0f7022f557a5374c1 *tests/data/fate/vsynth2-mpeg4-adv.out.rawvideo
+stddev: 4.94 PSNR: 34.25 MAXDIFF: 69 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-error b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-error
new file mode 100644
index 0000000..c6a2218
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-error
@@ -0,0 +1,4 @@
+599a21c149a150072db364298dbcdda2 *tests/data/fate/vsynth2-mpeg4-error.avi
+180364 tests/data/fate/vsynth2-mpeg4-error.avi
+4537ba5320f1ae0971cc6e329c366776 *tests/data/fate/vsynth2-mpeg4-error.out.rawvideo
+stddev: 7.65 PSNR: 30.45 MAXDIFF: 158 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-nr b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-nr
new file mode 100644
index 0000000..45db4b6
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-nr
@@ -0,0 +1,4 @@
+e1cf863ec6c0a4975d49326df63342ca *tests/data/fate/vsynth2-mpeg4-nr.avi
+154994 tests/data/fate/vsynth2-mpeg4-nr.avi
+d89cd5d0b1707f48fa9c4747c66d2d56 *tests/data/fate/vsynth2-mpeg4-nr.out.rawvideo
+stddev: 4.73 PSNR: 34.63 MAXDIFF: 64 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-qpel b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-qpel
new file mode 100644
index 0000000..8705bd5
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-qpel
@@ -0,0 +1,4 @@
+b36ad1ca7ac6e1aff6d69b8df4386011 *tests/data/fate/vsynth2-mpeg4-qpel.avi
+163662 tests/data/fate/vsynth2-mpeg4-qpel.avi
+e2ce994dbb66da51c2e1ad26617d7c2f *tests/data/fate/vsynth2-mpeg4-qpel.out.rawvideo
+stddev: 3.97 PSNR: 36.14 MAXDIFF: 54 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-qprd b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-qprd
new file mode 100644
index 0000000..1bbda29
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-qprd
@@ -0,0 +1,4 @@
+ee24ddde5e3c06a6c44093a59e7ac413 *tests/data/fate/vsynth2-mpeg4-qprd.avi
+231450 tests/data/fate/vsynth2-mpeg4-qprd.avi
+3071250e0864546c2455c9f9c9b8604e *tests/data/fate/vsynth2-mpeg4-qprd.out.rawvideo
+stddev: 3.71 PSNR: 36.72 MAXDIFF: 61 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-rc b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-rc
new file mode 100644
index 0000000..2a26a16
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-rc
@@ -0,0 +1,4 @@
+20028333988bb7a0888a79799ea63b19 *tests/data/fate/vsynth2-mpeg4-rc.avi
+226310 tests/data/fate/vsynth2-mpeg4-rc.avi
+6e8b62e8c3bcbfdcc58afb69a0b1c4e3 *tests/data/fate/vsynth2-mpeg4-rc.out.rawvideo
+stddev: 4.23 PSNR: 35.60 MAXDIFF: 85 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-thread b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-thread
new file mode 100644
index 0000000..d8d87c4
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpeg4-thread
@@ -0,0 +1,4 @@
+d50954ec2c64c2634d88ba1df879dde0 *tests/data/fate/vsynth2-mpeg4-thread.avi
+250092 tests/data/fate/vsynth2-mpeg4-thread.avi
+045fe9f226bbcc3d41644bffaed03b31 *tests/data/fate/vsynth2-mpeg4-thread.out.rawvideo
+stddev: 3.69 PSNR: 36.78 MAXDIFF: 65 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-mpng b/ffmpeg1/tests/ref/vsynth/vsynth2-mpng
new file mode 100644
index 0000000..2e6865c
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-mpng
@@ -0,0 +1,4 @@
+b8f9aa584da89837058c96fc5c3a6562 *tests/data/fate/vsynth2-mpng.avi
+12558330 tests/data/fate/vsynth2-mpng.avi
+98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth2-mpng.out.rawvideo
+stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-msmpeg4 b/ffmpeg1/tests/ref/vsynth/vsynth2-msmpeg4
new file mode 100644
index 0000000..274cecc
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-msmpeg4
@@ -0,0 +1,4 @@
+6eb2a9770c223636befacfba83f72c44 *tests/data/fate/vsynth2-msmpeg4.avi
+127660 tests/data/fate/vsynth2-msmpeg4.avi
+bb14902d5850d6b0ab70fdb017855775 *tests/data/fate/vsynth2-msmpeg4.out.rawvideo
+stddev: 5.33 PSNR: 33.58 MAXDIFF: 78 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-msmpeg4v2 b/ffmpeg1/tests/ref/vsynth/vsynth2-msmpeg4v2
new file mode 100644
index 0000000..a851a2f
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-msmpeg4v2
@@ -0,0 +1,4 @@
+e0929f2cebefc9f6259870b806829de3 *tests/data/fate/vsynth2-msmpeg4v2.avi
+129918 tests/data/fate/vsynth2-msmpeg4v2.avi
+537c114e1d47c54a4bccd31f4073e9bd *tests/data/fate/vsynth2-msmpeg4v2.out.rawvideo
+stddev: 5.33 PSNR: 33.59 MAXDIFF: 79 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-msvideo1 b/ffmpeg1/tests/ref/vsynth/vsynth2-msvideo1
new file mode 100644
index 0000000..a915c13
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-msvideo1
@@ -0,0 +1,4 @@
+6c1709d61202ec2e73b467e76cb79f9b *tests/data/fate/vsynth2-msvideo1.avi
+914560 tests/data/fate/vsynth2-msvideo1.avi
+9a6ac7c0171286f009d159b59fdc1154 *tests/data/fate/vsynth2-msvideo1.out.rawvideo
+stddev: 7.97 PSNR: 30.10 MAXDIFF: 123 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-prores b/ffmpeg1/tests/ref/vsynth/vsynth2-prores
new file mode 100644
index 0000000..b5c80e2
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-prores
@@ -0,0 +1,4 @@
+a6351254cccdbc7147600951a798172a *tests/data/fate/vsynth2-prores.mov
+2844076 tests/data/fate/vsynth2-prores.mov
+b5844025c0f4c7c37db702c3213db232 *tests/data/fate/vsynth2-prores.out.rawvideo
+stddev: 1.31 PSNR: 45.77 MAXDIFF: 11 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-prores_kostya b/ffmpeg1/tests/ref/vsynth/vsynth2-prores_kostya
new file mode 100644
index 0000000..16b6078
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-prores_kostya
@@ -0,0 +1,4 @@
+7de64c634620de738c98aa22e9df927d *tests/data/fate/vsynth2-prores_kostya.mov
+3884596 tests/data/fate/vsynth2-prores_kostya.mov
+ca2f6c1162635dedfa468c90f1fdc0ef *tests/data/fate/vsynth2-prores_kostya.out.rawvideo
+stddev: 0.92 PSNR: 48.77 MAXDIFF: 10 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-qtrle b/ffmpeg1/tests/ref/vsynth/vsynth2-qtrle
new file mode 100644
index 0000000..5f53608
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-qtrle
@@ -0,0 +1,4 @@
+f2aea57de225cccadb936bba4086a836 *tests/data/fate/vsynth2-qtrle.mov
+14798345 tests/data/fate/vsynth2-qtrle.mov
+98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth2-qtrle.out.rawvideo
+stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-qtrlegray b/ffmpeg1/tests/ref/vsynth/vsynth2-qtrlegray
new file mode 100644
index 0000000..4568391
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-qtrlegray
@@ -0,0 +1,4 @@
+fa10a87e9cf648d635340b90e41d2d38 *tests/data/fate/vsynth2-qtrlegray.mov
+5111283 tests/data/fate/vsynth2-qtrlegray.mov
+f63b5ebdfdba750e547c25131b0a3fd1 *tests/data/fate/vsynth2-qtrlegray.out.rawvideo
+stddev: 19.42 PSNR: 22.36 MAXDIFF: 72 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-r210 b/ffmpeg1/tests/ref/vsynth/vsynth2-r210
new file mode 100644
index 0000000..a91c12a
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-r210
@@ -0,0 +1,4 @@
+4568992c4f5562be06374519a419d3a3 *tests/data/fate/vsynth2-r210.avi
+22125248 tests/data/fate/vsynth2-r210.avi
+6ea4fcd93fc83defc8770e85b64b60bb *tests/data/fate/vsynth2-r210.out.rawvideo
+stddev: 0.70 PSNR: 51.12 MAXDIFF: 12 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-rgb b/ffmpeg1/tests/ref/vsynth/vsynth2-rgb
new file mode 100644
index 0000000..6f5169d
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-rgb
@@ -0,0 +1,4 @@
+01199075994e44f282fbb6a8e3ccc668 *tests/data/fate/vsynth2-rgb.avi
+15213248 tests/data/fate/vsynth2-rgb.avi
+98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth2-rgb.out.rawvideo
+stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-roqvideo b/ffmpeg1/tests/ref/vsynth/vsynth2-roqvideo
new file mode 100644
index 0000000..d4c075a
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-roqvideo
@@ -0,0 +1,4 @@
+b46f899b2363065c60f3782ba1f8b7bd *tests/data/fate/vsynth2-roqvideo.roq
+92786 tests/data/fate/vsynth2-roqvideo.roq
+e69fca960dd0911e9b8d589c13e11dc1 *tests/data/fate/vsynth2-roqvideo.out.rawvideo
+stddev: 3.81 PSNR: 36.49 MAXDIFF: 54 bytes: 7603200/ 760320
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-rv10 b/ffmpeg1/tests/ref/vsynth/vsynth2-rv10
new file mode 100644
index 0000000..3fc93d9
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-rv10
@@ -0,0 +1,4 @@
+33a2aae3351b0b2121f823057c0e226f *tests/data/fate/vsynth2-rv10.rm
+154321 tests/data/fate/vsynth2-rv10.rm
+b7d733ebedbaa04f49bf7493a907e223 *tests/data/fate/vsynth2-rv10.out.rawvideo
+stddev: 5.43 PSNR: 33.42 MAXDIFF: 77 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-rv20 b/ffmpeg1/tests/ref/vsynth/vsynth2-rv20
new file mode 100644
index 0000000..1251e49
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-rv20
@@ -0,0 +1,4 @@
+4d23a72fe7e29f98f38888804eacd111 *tests/data/fate/vsynth2-rv20.rm
+153304 tests/data/fate/vsynth2-rv20.rm
+6fa5dc1c2f00f858fc4895ad640891a2 *tests/data/fate/vsynth2-rv20.out.rawvideo
+stddev: 5.48 PSNR: 33.35 MAXDIFF: 81 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-snow b/ffmpeg1/tests/ref/vsynth/vsynth2-snow
new file mode 100644
index 0000000..12f3811
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-snow
@@ -0,0 +1,4 @@
+4b6236e23ae4a52655f2c24c5a09380a *tests/data/fate/vsynth2-snow.avi
+57688 tests/data/fate/vsynth2-snow.avi
+8890189af71a0dd3447c4e8424c9a76b *tests/data/fate/vsynth2-snow.out.rawvideo
+stddev: 10.47 PSNR: 27.72 MAXDIFF: 119 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-snow-hpel b/ffmpeg1/tests/ref/vsynth/vsynth2-snow-hpel
new file mode 100644
index 0000000..955f1bf
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-snow-hpel
@@ -0,0 +1,4 @@
+9872032345c33cf8e8fc26ab655be3d3 *tests/data/fate/vsynth2-snow-hpel.avi
+61760 tests/data/fate/vsynth2-snow-hpel.avi
+8680d40905f423999d65b996c4dcb984 *tests/data/fate/vsynth2-snow-hpel.out.rawvideo
+stddev: 10.45 PSNR: 27.74 MAXDIFF: 123 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-snow-ll b/ffmpeg1/tests/ref/vsynth/vsynth2-snow-ll
new file mode 100644
index 0000000..9a72549
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-snow-ll
@@ -0,0 +1,4 @@
+30b40e0bf64f92b23d6f94056c0c6da5 *tests/data/fate/vsynth2-snow-ll.avi
+2721746 tests/data/fate/vsynth2-snow-ll.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth2-snow-ll.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-svq1 b/ffmpeg1/tests/ref/vsynth/vsynth2-svq1
new file mode 100644
index 0000000..bdde55e
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-svq1
@@ -0,0 +1,4 @@
+11da7948184b3fee455f66cc5f6f8ca5 *tests/data/fate/vsynth2-svq1.mov
+766701 tests/data/fate/vsynth2-svq1.mov
+aa03471dac3f49455a33a2b19fda1098 *tests/data/fate/vsynth2-svq1.out.rawvideo
+stddev: 3.23 PSNR: 37.93 MAXDIFF: 61 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-v210 b/ffmpeg1/tests/ref/vsynth/vsynth2-v210
new file mode 100644
index 0000000..eb80b34
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-v210
@@ -0,0 +1,4 @@
+ddc80f41b9e92c26adbe09567a4c7a1d *tests/data/fate/vsynth2-v210.avi
+14752448 tests/data/fate/vsynth2-v210.avi
+a627fb50c8276200fd71383977d87ca3 *tests/data/fate/vsynth2-v210.out.rawvideo
+stddev: 0.34 PSNR: 57.43 MAXDIFF: 6 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-v308 b/ffmpeg1/tests/ref/vsynth/vsynth2-v308
new file mode 100644
index 0000000..f7c46fc
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-v308
@@ -0,0 +1,4 @@
+aba17ed2860ac714da0e378ebe47e7bb *tests/data/fate/vsynth2-v308.avi
+15213248 tests/data/fate/vsynth2-v308.avi
+d43cb310c130c69214332d74f6ee5f9a *tests/data/fate/vsynth2-v308.out.rawvideo
+stddev: 0.41 PSNR: 55.80 MAXDIFF: 7 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-v408 b/ffmpeg1/tests/ref/vsynth/vsynth2-v408
new file mode 100644
index 0000000..4c63dec
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-v408
@@ -0,0 +1,4 @@
+d689d4a53081765f0fbc965554c06faa *tests/data/fate/vsynth2-v408.avi
+20282048 tests/data/fate/vsynth2-v408.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth2-v408.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-wmv1 b/ffmpeg1/tests/ref/vsynth/vsynth2-wmv1
new file mode 100644
index 0000000..6e56b6f
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-wmv1
@@ -0,0 +1,4 @@
+dc2affb9b9a95a09dd69c25c75c50174 *tests/data/fate/vsynth2-wmv1.avi
+129510 tests/data/fate/vsynth2-wmv1.avi
+dec44e3c04db4fef49a7728f164d9159 *tests/data/fate/vsynth2-wmv1.out.rawvideo
+stddev: 5.33 PSNR: 33.60 MAXDIFF: 77 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-wmv2 b/ffmpeg1/tests/ref/vsynth/vsynth2-wmv2
new file mode 100644
index 0000000..5de4898
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-wmv2
@@ -0,0 +1,4 @@
+1b0e968e180346914c11875f4eec57eb *tests/data/fate/vsynth2-wmv2.avi
+129852 tests/data/fate/vsynth2-wmv2.avi
+b4de16a0d302c52702f7a4362da989bc *tests/data/fate/vsynth2-wmv2.out.rawvideo
+stddev: 5.33 PSNR: 33.59 MAXDIFF: 77 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-y41p b/ffmpeg1/tests/ref/vsynth/vsynth2-y41p
new file mode 100644
index 0000000..ac9d64a
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-y41p
@@ -0,0 +1,4 @@
+0689a7a5c4dd6ac6ac515b54d45d249e *tests/data/fate/vsynth2-y41p.avi
+7610048 tests/data/fate/vsynth2-y41p.avi
+d27a84ccdac09055724d122e03fea82a *tests/data/fate/vsynth2-y41p.out.rawvideo
+stddev: 1.07 PSNR: 47.54 MAXDIFF: 21 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-yuv b/ffmpeg1/tests/ref/vsynth/vsynth2-yuv
new file mode 100644
index 0000000..d6b8736
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-yuv
@@ -0,0 +1,4 @@
+0029ade090172b34687cdc9163748e47 *tests/data/fate/vsynth2-yuv.avi
+7610048 tests/data/fate/vsynth2-yuv.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth2-yuv.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-yuv4 b/ffmpeg1/tests/ref/vsynth/vsynth2-yuv4
new file mode 100644
index 0000000..8fa347a
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-yuv4
@@ -0,0 +1,4 @@
+00454056d8560cde37409e0b578209d8 *tests/data/fate/vsynth2-yuv4.avi
+7610048 tests/data/fate/vsynth2-yuv4.avi
+dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth2-yuv4.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-zlib b/ffmpeg1/tests/ref/vsynth/vsynth2-zlib
new file mode 100644
index 0000000..0a7ed3c
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-zlib
@@ -0,0 +1,4 @@
+d0e240b5241c3e0a5f813644d3dc5d9f *tests/data/fate/vsynth2-zlib.avi
+12517176 tests/data/fate/vsynth2-zlib.avi
+98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth2-zlib.out.rawvideo
+stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth/vsynth2-zmbv b/ffmpeg1/tests/ref/vsynth/vsynth2-zmbv
new file mode 100644
index 0000000..93e0b6a
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth/vsynth2-zmbv
@@ -0,0 +1,4 @@
+e9cc761eb3fedc36ce5f97744196ed8b *tests/data/fate/vsynth2-zmbv.avi
+1808720 tests/data/fate/vsynth2-zmbv.avi
+ee68a5292fd0745834246b4ec0d85e9b *tests/data/fate/vsynth2-zmbv.out.rawvideo
+stddev: 8.12 PSNR: 29.94 MAXDIFF: 32 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth1/cljr b/ffmpeg1/tests/ref/vsynth1/cljr
new file mode 100644
index 0000000..6002bbb
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth1/cljr
@@ -0,0 +1,4 @@
+041982e4fa83428c621a127647d47b3f *./tests/data/vsynth1/cljr.avi
+5075660 ./tests/data/vsynth1/cljr.avi
+e1c4c96c74de3435d0f9f6118c5ed9b5 *./tests/data/cljr.vsynth1.out.yuv
+stddev: 30.53 PSNR: 18.43 MAXDIFF: 225 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth1/yuv b/ffmpeg1/tests/ref/vsynth1/yuv
new file mode 100644
index 0000000..6d8b143
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth1/yuv
@@ -0,0 +1,4 @@
+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/ffmpeg1/tests/ref/vsynth2/cljr b/ffmpeg1/tests/ref/vsynth2/cljr
new file mode 100644
index 0000000..f4cf7d1
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth2/cljr
@@ -0,0 +1,4 @@
+fdc1926e0a599de94513f0a3472b598f *./tests/data/vsynth2/cljr.avi
+5075660 ./tests/data/vsynth2/cljr.avi
+7df03229ee6361ea11a0d83d4926cb10 *./tests/data/cljr.vsynth2.out.yuv
+stddev: 10.30 PSNR: 27.87 MAXDIFF: 65 bytes: 7603200/ 7603200
diff --git a/ffmpeg1/tests/ref/vsynth2/huffyuv b/ffmpeg1/tests/ref/vsynth2/huffyuv
new file mode 100644
index 0000000..e59b53c
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth2/huffyuv
@@ -0,0 +1,4 @@
+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/ffmpeg1/tests/ref/vsynth2/yuv b/ffmpeg1/tests/ref/vsynth2/yuv
new file mode 100644
index 0000000..699ebc9
--- /dev/null
+++ b/ffmpeg1/tests/ref/vsynth2/yuv
@@ -0,0 +1,4 @@
+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