diff mbox series

[FFmpeg-devel,9/9] avformat/pcm: decrease target audio frame per sec to 10

Message ID 20240305225147.6849-9-cus@passwd.hu
State New
Headers show
Series [FFmpeg-devel,1/9] avcodec/bsf/pcm_rechunk: reorder supported codec list | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Marton Balint March 5, 2024, 10:51 p.m. UTC
This makes the wav and pcm demuxer demux bigger packets, which is more
efficient.

Signed-off-by: Marton Balint <cus@passwd.hu>
---
 libavformat/pcm.c                             |   2 +-
 tests/ref/acodec/pcm-s16be                    |   2 +-
 tests/ref/acodec/pcm-s16be_planar             |   4 +-
 tests/ref/acodec/pcm-s16le_planar             |   4 +-
 tests/ref/acodec/pcm-s24be                    |   2 +-
 tests/ref/acodec/pcm-s24le_planar             |   4 +-
 tests/ref/acodec/pcm-s32be                    |   2 +-
 tests/ref/acodec/pcm-s32le_planar             |   4 +-
 tests/ref/acodec/pcm-s8_planar                |   4 +-
 tests/ref/acodec/pcm-u16be                    |   4 +-
 tests/ref/acodec/pcm-u16le                    |   4 +-
 tests/ref/acodec/pcm-u24be                    |   4 +-
 tests/ref/acodec/pcm-u24le                    |   4 +-
 tests/ref/acodec/pcm-u32be                    |   4 +-
 tests/ref/acodec/pcm-u32le                    |   4 +-
 tests/ref/acodec/s302m                        |   8 +-
 tests/ref/fate/dcinema-encode                 |  63 +-
 tests/ref/fate/filter-acrossfade              | 623 ++++--------------
 tests/ref/fate/filter-adelay                  | 324 ++-------
 tests/ref/fate/filter-aecho                   | 324 ++-------
 tests/ref/fate/filter-aemphasis-50fm          | 324 ++-------
 tests/ref/fate/filter-aemphasis-75kf          | 324 ++-------
 tests/ref/fate/filter-afade-esin              | 324 ++-------
 tests/ref/fate/filter-afade-exp               | 324 ++-------
 tests/ref/fate/filter-afade-hsin              | 324 ++-------
 tests/ref/fate/filter-afade-iqsin             | 324 ++-------
 tests/ref/fate/filter-afade-log               | 324 ++-------
 tests/ref/fate/filter-afade-qsin              | 324 ++-------
 tests/ref/fate/filter-agate                   | 324 ++-------
 tests/ref/fate/filter-alimiter                | 324 ++-------
 tests/ref/fate/filter-amerge                  | 324 ++-------
 tests/ref/fate/filter-anequalizer             | 324 ++-------
 tests/ref/fate/filter-apad                    | 324 ++-------
 .../ref/fate/filter-asegment-samples-absolute | 324 ++-------
 .../ref/fate/filter-asegment-samples-relative | 324 ++-------
 .../fate/filter-asegment-timestamps-absolute  | 326 ++-------
 .../fate/filter-asegment-timestamps-relative  | 326 ++-------
 tests/ref/fate/filter-asetrate                |  40 +-
 tests/ref/fate/filter-atrim-mixed             |   4 +-
 tests/ref/fate/filter-atrim-time              |   5 +-
 tests/ref/fate/filter-chorus                  |  20 +-
 tests/ref/fate/filter-compand                 |  40 +-
 tests/ref/fate/filter-crystalizer             | 324 ++-------
 tests/ref/fate/filter-dcshift                 |  40 +-
 tests/ref/fate/filter-earwax                  |  40 +-
 tests/ref/fate/filter-extrastereo             |  40 +-
 tests/ref/fate/filter-pan-downmix1            |  40 +-
 tests/ref/fate/filter-pan-downmix2            |  40 +-
 tests/ref/fate/filter-pan-mono1               |  40 +-
 tests/ref/fate/filter-pan-mono2               |  40 +-
 tests/ref/fate/filter-pan-stereo1             |  40 +-
 tests/ref/fate/filter-pan-stereo2             |  40 +-
 tests/ref/fate/filter-pan-stereo3             |  40 +-
 tests/ref/fate/filter-pan-stereo4             |  40 +-
 tests/ref/fate/filter-pan-upmix1              |  40 +-
 tests/ref/fate/filter-pan-upmix2              |  40 +-
 tests/ref/fate/filter-stereotools             |  40 +-
 tests/ref/fate/g722-encode                    | 141 ++--
 tests/ref/fate/g726-encode-2bit               |  69 +-
 tests/ref/fate/g726-encode-3bit               |  36 +-
 tests/ref/fate/g726-encode-4bit               | 141 ++--
 tests/ref/fate/g726-encode-5bit               |  36 +-
 tests/ref/fate/matroska-move-cues-to-front    |  18 +-
 tests/ref/fate/mov-channel-description        |   4 +-
 tests/ref/fate/mov-mp4-pcm                    |   4 +-
 tests/ref/fate/mov-mp4-pcm-float              |   2 +-
 tests/ref/lavf/ast                            |   4 +-
 tests/ref/lavf/mov                            |  12 +-
 tests/ref/lavf/mov_rtphint                    |   4 +-
 tests/ref/lavf/s16.voc                        |   4 +-
 tests/ref/lavf/smjpeg                         |   6 +-
 tests/ref/lavf/voc                            |   4 +-
 tests/ref/seek/acodec-pcm-alaw                |  54 +-
 tests/ref/seek/acodec-pcm-f32be               |  54 +-
 tests/ref/seek/acodec-pcm-f32le               |  54 +-
 tests/ref/seek/acodec-pcm-f64be               |  54 +-
 tests/ref/seek/acodec-pcm-f64le               |  54 +-
 tests/ref/seek/acodec-pcm-mulaw               |  54 +-
 tests/ref/seek/acodec-pcm-s16le               |  54 +-
 tests/ref/seek/acodec-pcm-s24le               |  54 +-
 tests/ref/seek/acodec-pcm-s32le               |  54 +-
 tests/ref/seek/acodec-pcm-u8                  |  54 +-
 tests/ref/seek/lavf-al                        |  46 +-
 tests/ref/seek/lavf-au                        |  30 +-
 tests/ref/seek/lavf-mov                       |  44 +-
 tests/ref/seek/lavf-ul                        |  46 +-
 tests/ref/seek/lavf-voc                       |  22 +-
 tests/ref/seek/lavf-wav                       |  30 +-
 88 files changed, 2400 insertions(+), 6742 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/pcm.c b/libavformat/pcm.c
index 1d5b83f481..f773458ea7 100644
--- a/libavformat/pcm.c
+++ b/libavformat/pcm.c
@@ -24,7 +24,7 @@ 
 #include "internal.h"
 #include "pcm.h"
 
-#define PCM_DEMUX_TARGET_FPS  25
+#define PCM_DEMUX_TARGET_FPS  10
 
 int ff_pcm_default_packet_size(AVCodecParameters *par)
 {
diff --git a/tests/ref/acodec/pcm-s16be b/tests/ref/acodec/pcm-s16be
index 2c051ce616..2c9dc4eb42 100644
--- a/tests/ref/acodec/pcm-s16be
+++ b/tests/ref/acodec/pcm-s16be
@@ -1,4 +1,4 @@ 
-5acf4268c4c4485ab79893f5e2f24e26 *tests/data/fate/acodec-pcm-s16be.mov
+203b3a036a6403f1393e14f0916b12d7 *tests/data/fate/acodec-pcm-s16be.mov
 1059069 tests/data/fate/acodec-pcm-s16be.mov
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s16be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s16be_planar b/tests/ref/acodec/pcm-s16be_planar
index 12ebdee03f..89b96f4ec8 100644
--- a/tests/ref/acodec/pcm-s16be_planar
+++ b/tests/ref/acodec/pcm-s16be_planar
@@ -1,4 +1,4 @@ 
-b2acc0309be76b5f6200b525281a9037 *tests/data/fate/acodec-pcm-s16be_planar.nut
-1060727 tests/data/fate/acodec-pcm-s16be_planar.nut
+70d169feea255cb1675342dead3457d5 *tests/data/fate/acodec-pcm-s16be_planar.nut
+1060414 tests/data/fate/acodec-pcm-s16be_planar.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s16be_planar.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s16le_planar b/tests/ref/acodec/pcm-s16le_planar
index cc5c3c65ac..1a0f4ae9ee 100644
--- a/tests/ref/acodec/pcm-s16le_planar
+++ b/tests/ref/acodec/pcm-s16le_planar
@@ -1,4 +1,4 @@ 
-15aa8f9d8ca30a17c7821acfcd9d87f9 *tests/data/fate/acodec-pcm-s16le_planar.nut
-1060727 tests/data/fate/acodec-pcm-s16le_planar.nut
+2c3156c45b72cbb37ffd17a2d05bd244 *tests/data/fate/acodec-pcm-s16le_planar.nut
+1060414 tests/data/fate/acodec-pcm-s16le_planar.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s16le_planar.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s24be b/tests/ref/acodec/pcm-s24be
index e36b503d75..165fca64e7 100644
--- a/tests/ref/acodec/pcm-s24be
+++ b/tests/ref/acodec/pcm-s24be
@@ -1,4 +1,4 @@ 
-62e578b2e3e115a228e1ebfceeeb65c2 *tests/data/fate/acodec-pcm-s24be.mov
+90ed890d45e9ea8edb37d2e2e09227df *tests/data/fate/acodec-pcm-s24be.mov
 1588323 tests/data/fate/acodec-pcm-s24be.mov
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s24be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s24le_planar b/tests/ref/acodec/pcm-s24le_planar
index 5e83a1904d..2ba195af0c 100644
--- a/tests/ref/acodec/pcm-s24le_planar
+++ b/tests/ref/acodec/pcm-s24le_planar
@@ -1,4 +1,4 @@ 
-1c746862c9d79c57e275266f63822b29 *tests/data/fate/acodec-pcm-s24le_planar.nut
-1590256 tests/data/fate/acodec-pcm-s24le_planar.nut
+a490736ae2b5c358fbd6d81f63efc143 *tests/data/fate/acodec-pcm-s24le_planar.nut
+1589636 tests/data/fate/acodec-pcm-s24le_planar.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s24le_planar.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s32be b/tests/ref/acodec/pcm-s32be
index 128187362c..0c4e64fd34 100644
--- a/tests/ref/acodec/pcm-s32be
+++ b/tests/ref/acodec/pcm-s32be
@@ -1,4 +1,4 @@ 
-2a4d853ef4916ca5081fafe234d18596 *tests/data/fate/acodec-pcm-s32be.mov
+d18a498075997bf7221bb28ff566f0fa *tests/data/fate/acodec-pcm-s32be.mov
 2117527 tests/data/fate/acodec-pcm-s32be.mov
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s32be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s32le_planar b/tests/ref/acodec/pcm-s32le_planar
index ff3051bf84..45ab786814 100644
--- a/tests/ref/acodec/pcm-s32le_planar
+++ b/tests/ref/acodec/pcm-s32le_planar
@@ -1,4 +1,4 @@ 
-d142973733ff4d61644b704438a4ba32 *tests/data/fate/acodec-pcm-s32le_planar.nut
-2120202 tests/data/fate/acodec-pcm-s32le_planar.nut
+0fe5f93bda9400e0f1f4234eca9364eb *tests/data/fate/acodec-pcm-s32le_planar.nut
+2118837 tests/data/fate/acodec-pcm-s32le_planar.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s32le_planar.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s8_planar b/tests/ref/acodec/pcm-s8_planar
index 9cd795dc45..7710543393 100644
--- a/tests/ref/acodec/pcm-s8_planar
+++ b/tests/ref/acodec/pcm-s8_planar
@@ -1,4 +1,4 @@ 
-f04f79b2e90921a513f2d22fdab0dc47 *tests/data/fate/acodec-pcm-s8_planar.nut
-531105 tests/data/fate/acodec-pcm-s8_planar.nut
+f58ac9f9bca0f4b1382761b2af584a8a *tests/data/fate/acodec-pcm-s8_planar.nut
+530223 tests/data/fate/acodec-pcm-s8_planar.nut
 652edf30f35ad89bf27bcc9d2f9c7b53 *tests/data/fate/acodec-pcm-s8_planar.out.wav
 stddev:  147.89 PSNR: 52.93 MAXDIFF:  255 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u16be b/tests/ref/acodec/pcm-u16be
index 015340cb8a..2842961bff 100644
--- a/tests/ref/acodec/pcm-u16be
+++ b/tests/ref/acodec/pcm-u16be
@@ -1,4 +1,4 @@ 
-abc31c722aee72f21b5f858731c28fb9 *tests/data/fate/acodec-pcm-u16be.nut
-1060720 tests/data/fate/acodec-pcm-u16be.nut
+7d3553681858a275611288f4c3101ffe *tests/data/fate/acodec-pcm-u16be.nut
+1060407 tests/data/fate/acodec-pcm-u16be.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u16be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u16le b/tests/ref/acodec/pcm-u16le
index 7efb086172..2bccd15b77 100644
--- a/tests/ref/acodec/pcm-u16le
+++ b/tests/ref/acodec/pcm-u16le
@@ -1,4 +1,4 @@ 
-80cf805a16a6b4f02f46ff9008ca16f7 *tests/data/fate/acodec-pcm-u16le.nut
-1060720 tests/data/fate/acodec-pcm-u16le.nut
+fdaa2a0c3b8830e80187ccd4d62e0c26 *tests/data/fate/acodec-pcm-u16le.nut
+1060407 tests/data/fate/acodec-pcm-u16le.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u16le.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u24be b/tests/ref/acodec/pcm-u24be
index ef423ea10d..912bb9ed0b 100644
--- a/tests/ref/acodec/pcm-u24be
+++ b/tests/ref/acodec/pcm-u24be
@@ -1,4 +1,4 @@ 
-c5b7d1898d8f5d6675ba543d2830bbaf *tests/data/fate/acodec-pcm-u24be.nut
-1590249 tests/data/fate/acodec-pcm-u24be.nut
+67f6e0040f65830ad408903a9565417c *tests/data/fate/acodec-pcm-u24be.nut
+1589629 tests/data/fate/acodec-pcm-u24be.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u24be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u24le b/tests/ref/acodec/pcm-u24le
index 4010a1a3f3..c98e9d495d 100644
--- a/tests/ref/acodec/pcm-u24le
+++ b/tests/ref/acodec/pcm-u24le
@@ -1,4 +1,4 @@ 
-884a3a562a8005084fde088fc3a74283 *tests/data/fate/acodec-pcm-u24le.nut
-1590249 tests/data/fate/acodec-pcm-u24le.nut
+ad263ac0fc0bc92f1bc20739c54b4904 *tests/data/fate/acodec-pcm-u24le.nut
+1589629 tests/data/fate/acodec-pcm-u24le.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u24le.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u32be b/tests/ref/acodec/pcm-u32be
index 358a01ef99..e7352254ee 100644
--- a/tests/ref/acodec/pcm-u32be
+++ b/tests/ref/acodec/pcm-u32be
@@ -1,4 +1,4 @@ 
-88d1f0b98e2878f0a45abde7ad73e9f1 *tests/data/fate/acodec-pcm-u32be.nut
-2120195 tests/data/fate/acodec-pcm-u32be.nut
+114b4a686b05672f77594dfdae57694b *tests/data/fate/acodec-pcm-u32be.nut
+2118830 tests/data/fate/acodec-pcm-u32be.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u32be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u32le b/tests/ref/acodec/pcm-u32le
index 6857ec02c3..c1586b24eb 100644
--- a/tests/ref/acodec/pcm-u32le
+++ b/tests/ref/acodec/pcm-u32le
@@ -1,4 +1,4 @@ 
-7257d6251524479c563c9f17a2642222 *tests/data/fate/acodec-pcm-u32le.nut
-2120195 tests/data/fate/acodec-pcm-u32le.nut
+fb33ec03170dcdb86ef17f6b0d77a3e3 *tests/data/fate/acodec-pcm-u32le.nut
+2118830 tests/data/fate/acodec-pcm-u32le.nut
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u32le.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/s302m b/tests/ref/acodec/s302m
index 2919ed6e55..bc4986cabd 100644
--- a/tests/ref/acodec/s302m
+++ b/tests/ref/acodec/s302m
@@ -1,4 +1,4 @@ 
-0bf5457fd41a22fc5cdd99ae5ad4e273 *tests/data/fate/acodec-s302m.mpegts
-1527688 tests/data/fate/acodec-s302m.mpegts
-31f25a0020fd9017de9c3c608316854b *tests/data/fate/acodec-s302m.out.wav
-stddev:  986.94 PSNR: 36.44 MAXDIFF:18571 bytes:  1058400/  1056708
+08a3bec0e1626ad8c8a13b181ee1afb5 *tests/data/fate/acodec-s302m.mpegts
+1496104 tests/data/fate/acodec-s302m.mpegts
+abc1b26737c8103c3f122539d239f6be *tests/data/fate/acodec-s302m.out.wav
+stddev:  986.15 PSNR: 36.45 MAXDIFF:18571 bytes:  1058400/  1058400
diff --git a/tests/ref/fate/dcinema-encode b/tests/ref/fate/dcinema-encode
index ce5e9d2550..9c2b6f72f1 100644
--- a/tests/ref/fate/dcinema-encode
+++ b/tests/ref/fate/dcinema-encode
@@ -27,4 +27,65 @@ 
 0,      34000,      34000,     2000,    24000, acffdfa3337a082091398ac8085882e1
 0,      36000,      36000,     2000,    24000, 5daaa9b578b92270de0394baadf37a2c
 0,      38000,      38000,     2000,    24000, 67a3b8af025b212a62229ae57f99f7a6
-0,      40000,      40000,      960,    11520, c6d89c32b3337e204245ec6f8d144aef
+0,      40000,      40000,     2000,    24000, e8f6f41edfdf4b198055349e90f36cd4
+0,      42000,      42000,     2000,    24000, 43d7cd1917a7e1ecfcae1c762a4f8284
+0,      44000,      44000,     2000,    24000, 21cc3c1b9dc3994df6ce90cc3f0bf03d
+0,      46000,      46000,     2000,    24000, 763a76a1dca46e743fbe1ef90dac1b68
+0,      48000,      48000,     2000,    24000, 5d307e637e1dc4218d88e48a0189beb0
+0,      50000,      50000,     2000,    24000, dafc392287225811c1cb1c813789f2b8
+0,      52000,      52000,     2000,    24000, c1a58740c9b731bc1f2702dc56ba3cd6
+0,      54000,      54000,     2000,    24000, 891e6d94c34a60e24925ea28f19ccf2a
+0,      56000,      56000,     2000,    24000, afc88ea476094f7b5accb8ca080a69a5
+0,      58000,      58000,     2000,    24000, 74ab38c75d3810f7bf74901305eab47c
+0,      60000,      60000,     2000,    24000, 838144d8da6a6eca8aef01195b430363
+0,      62000,      62000,     2000,    24000, ebfb8a30c334061361241fd53067b416
+0,      64000,      64000,     2000,    24000, 83324adc64db2f46a94363bf04a60773
+0,      66000,      66000,     2000,    24000, 34606f116338b7045515c3b56e1633f9
+0,      68000,      68000,     2000,    24000, 7450cc8b2c3746380140a47a47b41b73
+0,      70000,      70000,     2000,    24000, 0f6d7bc6adf2facbd72403b17d035bf5
+0,      72000,      72000,     2000,    24000, 844f2585154aa770ebe4df514c6139af
+0,      74000,      74000,     2000,    24000, 36b5914af624b3f301bce43c42ec0523
+0,      76000,      76000,     2000,    24000, 9fc415ae7ae0db7f9be51a2a5654bafd
+0,      78000,      78000,     2000,    24000, bad8e1b1b484405ea814683eca929e1d
+0,      80000,      80000,     2000,    24000, 25ad314aaa14e866327d9d58c65b49e7
+0,      82000,      82000,     2000,    24000, 468fafbd7548d9c79284cdc9207bab4e
+0,      84000,      84000,     2000,    24000, 7f3c9b931f21d4afa4319b4cd5dfc850
+0,      86000,      86000,     2000,    24000, a96e220a2c9c4f85d843074bc4b966b6
+0,      88000,      88000,     2000,    24000, ccaf7968a2cf2811f44e68555bdb421b
+0,      90000,      90000,     2000,    24000, 9a308f3af192f1a232924f61e9558358
+0,      92000,      92000,     2000,    24000, 8a11dbc1b0292a08848d6207be61cfce
+0,      94000,      94000,     2000,    24000, ab261359b88b39c36786b6c181846096
+0,      96000,      96000,     2000,    24000, c2dd68e56ef0d402725167cb44d57be1
+0,      98000,      98000,     2000,    24000, 892250bb4cbce7c2784d09dfd06526b6
+0,     100000,     100000,     2000,    24000, 121e981c4128df538fe551ea4d5a8225
+0,     102000,     102000,     2000,    24000, 4b2a5d77951b07f81ae924abac73b8d1
+0,     104000,     104000,     2000,    24000, b7f4c1ef2daa35c6cdcf1116eecfdb91
+0,     106000,     106000,     2000,    24000, a9dd31482a4fa41b67ebaba1b4ff97e8
+0,     108000,     108000,     2000,    24000, 672e5e89906d030a05b98d64d9eaefe4
+0,     110000,     110000,     2000,    24000, 7455205e802f5c737e9867e19cb80b35
+0,     112000,     112000,     2000,    24000, 49181c9defd9cfe163ed94bda127b64f
+0,     114000,     114000,     2000,    24000, 76efe094889bfc9fca0a80fc628c2184
+0,     116000,     116000,     2000,    24000, 667385cbeff8074ad31fbfaf372d3036
+0,     118000,     118000,     2000,    24000, d5a0dd00353f92dd2d0298a98fcf68ff
+0,     120000,     120000,     2000,    24000, c95d627e1899be337f01412ac708cebc
+0,     122000,     122000,     2000,    24000, 0cae246a75aa327304c13b051cc43883
+0,     124000,     124000,     2000,    24000, e244e6793f933c8309495796fd7d4cb5
+0,     126000,     126000,     2000,    24000, d78955106c5f0acca4b61e2cc27a962b
+0,     128000,     128000,     2000,    24000, 630581ff6634952db8ad3a791501c596
+0,     130000,     130000,     2000,    24000, b70414eb688bc1abcd8ed08b38c90cd0
+0,     132000,     132000,     2000,    24000, 284a1822740697edd2d6cceb4eac232e
+0,     134000,     134000,     2000,    24000, ce67357e80bdb6bc0caa226abdf934aa
+0,     136000,     136000,     2000,    24000, f952be1e1c7d48acd73d652ef4ea3aad
+0,     138000,     138000,     2000,    24000, e42cbabef9d9675429dcb6fa28ce39f4
+0,     140000,     140000,     2000,    24000, 9c6613b980bcbe9ebacbb6a492f53b16
+0,     142000,     142000,     2000,    24000, 1882d1ae4b08fa7cc848eba60d645463
+0,     144000,     144000,     2000,    24000, a361b56ba31c90557689631f0e7afc63
+0,     146000,     146000,     2000,    24000, 341fbe24112c4060bb643750895a9041
+0,     148000,     148000,     2000,    24000, 38340ef2ef764bb8007efe9cd0af54d7
+0,     150000,     150000,     2000,    24000, 9b013a00bbedad211ba33326a3cfaa6e
+0,     152000,     152000,     2000,    24000, 9d3469da4442cdfd2b8a5beacb789701
+0,     154000,     154000,     2000,    24000, cf8e3880ecb46011328135dba1015044
+0,     156000,     156000,     2000,    24000, 3be9fa7d0e0541269339ee032bda4021
+0,     158000,     158000,     2000,    24000, ffd2646acf86524651416bc412afd846
+0,     160000,     160000,     2000,    24000, 715163d8f82f007b1b6c42b06bd08b5a
+0,     162000,     162000,     1840,    22080, c2079a237d021d7aa27e44acf979b1f0
diff --git a/tests/ref/fate/filter-acrossfade b/tests/ref/fate/filter-acrossfade
index 8737d9da57..f80aa10b55 100644
--- a/tests/ref/fate/filter-acrossfade
+++ b/tests/ref/fate/filter-acrossfade
@@ -3,501 +3,130 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,      888,     3552, 0x592ce6cc
-0,        888,        888,     1024,     4096, 0x20f6f6a9
-0,       1912,       1912,     1024,     4096, 0x3f840122
-0,       2936,       2936,     1024,     4096, 0xa905f9d1
-0,       3960,       3960,     1024,     4096, 0x1547eb1b
-0,       4984,       4984,     1024,     4096, 0xab54067e
-0,       6008,       6008,     1024,     4096, 0x06c6f5ef
-0,       7032,       7032,     1024,     4096, 0xc5c1f5bb
-0,       8056,       8056,     1024,     4096, 0x6a89fd31
-0,       9080,       9080,     1024,     4096, 0xb9d3ffa1
-0,      10104,      10104,     1024,     4096, 0x4262e2ff
-0,      11128,      11128,     1024,     4096, 0x7afffe9d
-0,      12152,      12152,     1024,     4096, 0xdc1d0274
-0,      13176,      13176,     1024,     4096, 0xad97f96f
-0,      14200,      14200,     1024,     4096, 0xb26ee1cb
-0,      15224,      15224,     1024,     4096, 0xbe90fb3d
-0,      16248,      16248,     1024,     4096, 0xf1d30268
-0,      17272,      17272,     1024,     4096, 0x697ffa2d
-0,      18296,      18296,     1024,     4096, 0x5531efc3
-0,      19320,      19320,     1024,     4096, 0xf857f707
-0,      20344,      20344,     1024,     4096, 0x63b005c8
-0,      21368,      21368,     1024,     4096, 0xec82ea67
-0,      22392,      22392,     1024,     4096, 0x9f6dfae9
-0,      23416,      23416,     1024,     4096, 0xdebbfb1d
-0,      24440,      24440,     1024,     4096, 0xd454efab
-0,      25464,      25464,     1024,     4096, 0xd093f135
-0,      26488,      26488,     1024,     4096, 0x52530de6
-0,      27512,      27512,     1024,     4096, 0x23f6f239
-0,      28536,      28536,     1024,     4096, 0xb179ee71
-0,      29560,      29560,     1024,     4096, 0xea3ff767
-0,      30584,      30584,     1024,     4096, 0xf40e0f1c
-0,      31608,      31608,     1024,     4096, 0xc960f597
-0,      32632,      32632,     1024,     4096, 0x9c1bee7d
-0,      33656,      33656,     1024,     4096, 0x20f6f6a9
-0,      34680,      34680,     1024,     4096, 0x3f840122
-0,      35704,      35704,     1024,     4096, 0xa905f9d1
-0,      36728,      36728,     1024,     4096, 0x1547eb1b
-0,      37752,      37752,     1024,     4096, 0xab54067e
-0,      38776,      38776,     1024,     4096, 0x06c6f5ef
-0,      39800,      39800,     1024,     4096, 0xc5c1f5bb
-0,      40824,      40824,     1024,     4096, 0x6a89fd31
-0,      41848,      41848,     1024,     4096, 0xb9d3ffa1
-0,      42872,      42872,     1024,     4096, 0x4262e2ff
-0,      43896,      43896,     1024,     4096, 0x78b0e7fb
-0,      44920,      44920,     1024,     4096, 0x498cf37b
-0,      45944,      45944,     1024,     4096, 0xdedfdf2b
-0,      46968,      46968,     1024,     4096, 0x430efa55
-0,      47992,      47992,     1024,     4096, 0xa487044e
-0,      49016,      49016,     1024,     4096, 0x0dfff373
-0,      50040,      50040,     1024,     4096, 0xf922f9e1
-0,      51064,      51064,     1024,     4096, 0xc577f857
-0,      52088,      52088,     1024,     4096, 0x33b5ee21
-0,      53112,      53112,     1024,     4096, 0x3e5ff725
-0,      54136,      54136,     1024,     4096, 0x909f0630
-0,      55160,      55160,     1024,     4096, 0xe087f33f
-0,      56184,      56184,     1024,     4096, 0x8162efc1
-0,      57208,      57208,     1024,     4096, 0x6c953c36
-0,      58232,      58232,     1024,     4096, 0x413d0d22
-0,      59256,      59256,     1024,     4096, 0xeed90a6c
-0,      60280,      60280,     1024,     4096, 0x15c6f533
-0,      61304,      61304,     1024,     4096, 0xb7a1eb5f
-0,      62328,      62328,     1024,     4096, 0x9a83e815
-0,      63352,      63352,     1024,     4096, 0x3370056e
-0,      64376,      64376,     1024,     4096, 0xea3ee86b
-0,      65400,      65400,     1024,     4096, 0xc05be2c5
-0,      66424,      66424,     1024,     4096, 0x4b41001a
-0,      67448,      67448,     1024,     4096, 0x8aa1fd37
-0,      68472,      68472,     1024,     4096, 0x940df3d9
-0,      69496,      69496,     1024,     4096, 0x6d8f0206
-0,      70520,      70520,     1024,     4096, 0xbfd9dea3
-0,      71544,      71544,     1024,     4096, 0x1e8309a0
-0,      72568,      72568,     1024,     4096, 0xf188fe8d
-0,      73592,      73592,     1024,     4096, 0x498ffb27
-0,      74616,      74616,     1024,     4096, 0x64fc009a
-0,      75640,      75640,     1024,     4096, 0x196df42b
-0,      76664,      76664,     1024,     4096, 0x4863297a
-0,      77688,      77688,     1024,     4096, 0xbaac05c2
-0,      78712,      78712,     1024,     4096, 0xf47e0996
-0,      79736,      79736,     1024,     4096, 0xafa4e80b
-0,      80760,      80760,     1024,     4096, 0x0240f325
-0,      81784,      81784,     1024,     4096, 0x5c1d0962
-0,      82808,      82808,     1024,     4096, 0x5bfa50e2
-0,      83832,      83832,     1024,     4096, 0x666becf9
-0,      84856,      84856,     1024,     4096, 0x96060590
-0,      85880,      85880,     1024,     4096, 0x05060204
-0,      86904,      86904,     1024,     4096, 0x05cf0c16
-0,      87928,      87928,     1024,     4096, 0xb348e18d
-0,      88952,      88952,     1024,     4096, 0xfc88d47b
-0,      89976,      89976,     1024,     4096, 0xd445b2b9
-0,      91000,      91000,     1024,     4096, 0x5d83bd97
-0,      92024,      92024,     1024,     4096, 0x43fa9721
-0,      93048,      93048,     1024,     4096, 0x25219dbd
-0,      94072,      94072,     1024,     4096, 0x1759bc3f
-0,      95096,      95096,     1024,     4096, 0x4925b38d
-0,      96120,      96120,     1024,     4096, 0xa8a7c7e7
-0,      97144,      97144,     1024,     4096, 0x9dbbfe19
-0,      98168,      98168,     1024,     4096, 0x8b2182a9
-0,      99192,      99192,     1024,     4096, 0x3601b417
-0,     100216,     100216,     1024,     4096, 0xdedaed89
-0,     101240,     101240,     1024,     4096, 0xffacd8db
-0,     102264,     102264,     1024,     4096, 0x7df9d58d
-0,     103288,     103288,     1024,     4096, 0x9cecae51
-0,     104312,     104312,     1024,     4096, 0xc163cc3f
-0,     105336,     105336,     1024,     4096, 0x3d25b799
-0,     106360,     106360,     1024,     4096, 0x815192fb
-0,     107384,     107384,     1024,     4096, 0xaeb1ad99
-0,     108408,     108408,     1024,     4096, 0x9f05ed2b
-0,     109432,     109432,     1024,     4096, 0xf3bacd99
-0,     110456,     110456,     1024,     4096, 0x56e4f28b
-0,     111480,     111480,     1024,     4096, 0xe733e81d
-0,     112504,     112504,     1024,     4096, 0x9e54195e
-0,     113528,     113528,     1024,     4096, 0x4e61fa9f
-0,     114552,     114552,     1024,     4096, 0x5425ed95
-0,     115576,     115576,     1024,     4096, 0x0ba4ed4d
-0,     116600,     116600,     1024,     4096, 0x1027fc33
-0,     117624,     117624,     1024,     4096, 0x1622c7e5
-0,     118648,     118648,     1024,     4096, 0x0471ff05
-0,     119672,     119672,     1024,     4096, 0x69a40e10
-0,     120696,     120696,     1024,     4096, 0x22e413ba
-0,     121720,     121720,     1024,     4096, 0x78fafea9
-0,     122744,     122744,     1024,     4096, 0x30f1f61d
-0,     123768,     123768,     1024,     4096, 0x5e24f561
-0,     124792,     124792,     1024,     4096, 0xab19ceb5
-0,     125816,     125816,     1024,     4096, 0x0c16c3dd
-0,     126840,     126840,     1024,     4096, 0xe13afd1b
-0,     127864,     127864,     1024,     4096, 0xb3a0f46d
-0,     128888,     128888,     1024,     4096, 0xe1f4f585
-0,     129912,     129912,     1024,     4096, 0x51cd28e2
-0,     130936,     130936,     1024,     4096, 0x34c1047e
-0,     131960,     131960,     1024,     4096, 0x5c04f360
-0,     132984,     132984,     1024,     4096, 0x17bfe876
-0,     134008,     134008,     1024,     4096, 0x4d7fea40
-0,     135032,     135032,     1024,     4096, 0x8d23f2da
-0,     136056,     136056,     1024,     4096, 0xfc140395
-0,     137080,     137080,     1024,     4096, 0x891f0008
-0,     138104,     138104,     1024,     4096, 0x28d0188a
-0,     139128,     139128,     1024,     4096, 0xbf0df63e
-0,     140152,     140152,     1024,     4096, 0x1751e8f0
-0,     141176,     141176,     1024,     4096, 0xe1beee48
-0,     142200,     142200,     1024,     4096, 0x27adfc7c
-0,     143224,     143224,     1024,     4096, 0x2314d632
-0,     144248,     144248,     1024,     4096, 0xf39aff11
-0,     145272,     145272,     1024,     4096, 0xd1fb0d61
-0,     146296,     146296,     1024,     4096, 0xf51b0083
-0,     147320,     147320,     1024,     4096, 0x9822f530
-0,     148344,     148344,     1024,     4096, 0x6dc8df31
-0,     149368,     149368,     1024,     4096, 0x6f2e0184
-0,     150392,     150392,     1024,     4096, 0x7a9afdb9
-0,     151416,     151416,     1024,     4096, 0x2f85001a
-0,     152440,     152440,     1024,     4096, 0x3a6cf053
-0,     153464,     153464,     1024,     4096, 0x030a131d
-0,     154488,     154488,     1024,     4096, 0xfc050025
-0,     155512,     155512,     1024,     4096, 0xd1a9d654
-0,     156536,     156536,     1024,     4096, 0x199ff4fe
-0,     157560,     157560,     1024,     4096, 0xa84bee80
-0,     158584,     158584,     1024,     4096, 0xda96e946
-0,     159608,     159608,     1024,     4096, 0xc026e284
-0,     160632,     160632,     1024,     4096, 0x1400185d
-0,     161656,     161656,     1024,     4096, 0xd9a2f887
-0,     162680,     162680,     1024,     4096, 0xaa8bfdfe
-0,     163704,     163704,     1024,     4096, 0x49a9e7df
-0,     164728,     164728,     1024,     4096, 0x159e0717
-0,     165752,     165752,     1024,     4096, 0x9a3eff6b
-0,     166776,     166776,     1024,     4096, 0xaa5ef364
-0,     167800,     167800,     1024,     4096, 0x32c20b32
-0,     168824,     168824,     1024,     4096, 0x67f0f55b
-0,     169848,     169848,     1024,     4096, 0x1002eff5
-0,     170872,     170872,     1024,     4096, 0x7fa0ea71
-0,     171896,     171896,     1024,     4096, 0x0c61e8ea
-0,     172920,     172920,     1024,     4096, 0xd68fe4bf
-0,     173944,     173944,     1024,     4096, 0x2aa00648
-0,     174968,     174968,     1024,     4096, 0x74ffeeae
-0,     175992,     175992,      408,     1632, 0x28353dae
+0,          0,          0,     1912,     7648, 0x1294dd84
+0,       1912,       1912,     4096,    16384, 0x8d5eec9b
+0,       6008,       6008,     4096,    16384, 0x9f15e8a9
+0,      10104,      10104,     4096,    16384, 0x5594dd9d
+0,      14200,      14200,     4096,    16384, 0x5115d9bb
+0,      18296,      18296,     4096,    16384, 0x0511d717
+0,      22392,      22392,     4096,    16384, 0x9cbdd713
+0,      26488,      26488,     4096,    16384, 0x2f13e615
+0,      30584,      30584,     4096,    16384, 0x415ae9f7
+0,      34680,      34680,     4096,    16384, 0x8d5eec9b
+0,      38776,      38776,     4096,    16384, 0x9f15e8a9
+0,      42872,      42872,     4096,    16384, 0xd9809dcd
+0,      46968,      46968,     4096,    16384, 0x7b60ec15
+0,      51064,      51064,     4096,    16384, 0xe92de3eb
+0,      55160,      55160,     4096,    16384, 0x063d2c76
+0,      59256,      59256,     4096,    16384, 0xacbed331
+0,      63352,      63352,     4096,    16384, 0x1137d0c7
+0,      67448,      67448,     4096,    16384, 0xafbad1d7
+0,      71544,      71544,     4096,    16384, 0xb2a0040c
+0,      75640,      75640,     4096,    16384, 0x83222d0c
+0,      79736,      79736,     4096,    16384, 0x97993592
+0,      83832,      83832,     4096,    16384, 0x9e4200b2
+0,      87928,      87928,     4096,    16384, 0xf24c2685
+0,      92024,      92024,     4096,    16384, 0x0b23a4c8
+0,      96120,      96120,     4096,    16384, 0x9105fcde
+0,     100216,     100216,     4096,    16384, 0xd4b64a6f
+0,     104312,     104312,     4096,    16384, 0xef56c48a
+0,     108408,     108408,     4096,    16384, 0xb12b9599
+0,     112504,     112504,     4096,    16384, 0x18bbeefd
+0,     116600,     116600,     4096,    16384, 0x3fe2d14b
+0,     120696,     120696,     4096,    16384, 0xf6d6fdff
+0,     124792,     124792,     4096,    16384, 0x2e538447
+0,     128888,     128888,     4096,    16384, 0xd8251663
+0,     132984,     132984,     4096,    16384, 0xd783c943
+0,     137080,     137080,     4096,    16384, 0x3d64f7cf
+0,     141176,     141176,     4096,    16384, 0x80e2c034
+0,     145272,     145272,     4096,    16384, 0x69a7e254
+0,     149368,     149368,     4096,    16384, 0xb3f5efb9
+0,     153464,     153464,     4096,    16384, 0x3975dea3
+0,     157560,     157560,     4096,    16384, 0x7ff7d2c5
+0,     161656,     161656,     4096,    16384, 0x5476e599
+0,     165752,     165752,     4096,    16384, 0x30e4f37a
+0,     169848,     169848,     4096,    16384, 0x57c1a83c
+0,     173944,     173944,     2456,     9824, 0x498532b3
 0,     176400,     176400,    88200,   352800, 0x4fb492af
-0,     264600,     264600,      888,     3552, 0xa5a41b07
-0,     265488,     265488,     1024,     4096, 0xc1c61f53
-0,     266512,     266512,     1024,     4096, 0x35b6d595
-0,     267536,     267536,     1024,     4096, 0xc4481118
-0,     268560,     268560,     1024,     4096, 0x5dc0b58d
-0,     269584,     269584,     1024,     4096, 0x4a53a7f1
-0,     270608,     270608,     1024,     4096, 0xc38e9bec
-0,     271632,     271632,     1024,     4096, 0xc9443282
-0,     272656,     272656,     1024,     4096, 0x8018d290
-0,     273680,     273680,     1024,     4096, 0xf32d9a70
-0,     274704,     274704,     1024,     4096, 0xc63ae76a
-0,     275728,     275728,     1024,     4096, 0xcd5d1222
-0,     276752,     276752,     1024,     4096, 0x8226c5de
-0,     277776,     277776,     1024,     4096, 0xf2fb1f27
-0,     278800,     278800,     1024,     4096, 0x9fb0ba34
-0,     279824,     279824,     1024,     4096, 0xf178e325
-0,     280848,     280848,     1024,     4096, 0x9c2b2db4
-0,     281872,     281872,     1024,     4096, 0x1336d63c
-0,     282896,     282896,     1024,     4096, 0x0688ef16
-0,     283920,     283920,     1024,     4096, 0xd833f93f
-0,     284944,     284944,     1024,     4096, 0xab7fad69
-0,     285968,     285968,     1024,     4096, 0x5c3c09fb
-0,     286992,     286992,     1024,     4096, 0x41c9e4ed
-0,     288016,     288016,     1024,     4096, 0xb670a66c
-0,     289040,     289040,     1024,     4096, 0x86a0af26
-0,     290064,     290064,     1024,     4096, 0x55afec1f
-0,     291088,     291088,     1024,     4096, 0x36d51c13
-0,     292112,     292112,     1024,     4096, 0x54a15642
-0,     293136,     293136,     1024,     4096, 0x0e3edeaf
-0,     294160,     294160,     1024,     4096, 0x63d74a2d
-0,     295184,     295184,     1024,     4096, 0x2a60f9ee
-0,     296208,     296208,     1024,     4096, 0xa562fd0b
-0,     297232,     297232,     1024,     4096, 0xf382907c
-0,     298256,     298256,     1024,     4096, 0x32aafa99
-0,     299280,     299280,     1024,     4096, 0xb1da3640
-0,     300304,     300304,     1024,     4096, 0x3da8d51a
-0,     301328,     301328,     1024,     4096, 0x3afe27bc
-0,     302352,     302352,     1024,     4096, 0x05d30d0f
-0,     303376,     303376,     1024,     4096, 0x86214868
-0,     304400,     304400,     1024,     4096, 0x6283507f
-0,     305424,     305424,     1024,     4096, 0x3fb53fe7
-0,     306448,     306448,     1024,     4096, 0x5d907ea8
-0,     307472,     307472,     1024,     4096, 0xa7c389de
-0,     308496,     308496,     1024,     4096, 0xe28ba1f2
-0,     309520,     309520,     1024,     4096, 0x9932afac
-0,     310544,     310544,     1024,     4096, 0x82f1e0c2
-0,     311568,     311568,     1024,     4096, 0x5c80bb5f
-0,     312592,     312592,     1024,     4096, 0x6b73c24f
-0,     313616,     313616,     1024,     4096, 0x22b3ae86
-0,     314640,     314640,     1024,     4096, 0x9ea7b6ec
-0,     315664,     315664,     1024,     4096, 0x5c5813a2
-0,     316688,     316688,     1024,     4096, 0x0058fcee
-0,     317712,     317712,     1024,     4096, 0xc0717d58
-0,     318736,     318736,     1024,     4096, 0xc891c3df
-0,     319760,     319760,     1024,     4096, 0xe4e3ac85
-0,     320784,     320784,     1024,     4096, 0x3bdd40c6
-0,     321808,     321808,     1024,     4096, 0xd57e116c
-0,     322832,     322832,     1024,     4096, 0x494c72ab
-0,     323856,     323856,     1024,     4096, 0xcb661c13
-0,     324880,     324880,     1024,     4096, 0xb55811f9
-0,     325904,     325904,     1024,     4096, 0xbff22c30
-0,     326928,     326928,     1024,     4096, 0x9332e605
-0,     327952,     327952,     1024,     4096, 0x90bb6299
-0,     328976,     328976,     1024,     4096, 0xebdd4500
-0,     330000,     330000,     1024,     4096, 0x3d940413
-0,     331024,     331024,     1024,     4096, 0x3445f60f
-0,     332048,     332048,     1024,     4096, 0x613e016c
-0,     333072,     333072,     1024,     4096, 0xd565de1c
-0,     334096,     334096,     1024,     4096, 0xba771399
-0,     335120,     335120,     1024,     4096, 0x730b7c1e
-0,     336144,     336144,     1024,     4096, 0xc2f003a3
-0,     337168,     337168,     1024,     4096, 0x9186ff8e
-0,     338192,     338192,     1024,     4096, 0x7356b98c
-0,     339216,     339216,     1024,     4096, 0xbc02af51
-0,     340240,     340240,     1024,     4096, 0xac922f72
-0,     341264,     341264,     1024,     4096, 0x53d1060e
-0,     342288,     342288,     1024,     4096, 0xe598611b
-0,     343312,     343312,     1024,     4096, 0xd7ac93df
-0,     344336,     344336,     1024,     4096, 0x59b77247
-0,     345360,     345360,     1024,     4096, 0x206418c9
-0,     346384,     346384,     1024,     4096, 0xd360c906
-0,     347408,     347408,     1024,     4096, 0x7b92c2c0
-0,     348432,     348432,     1024,     4096, 0x021dcb06
-0,     349456,     349456,     1024,     4096, 0xc9b9a3ee
-0,     350480,     350480,     1024,     4096, 0xa6e01534
-0,     351504,     351504,     1024,     4096, 0xb0d74c80
-0,     352528,     352528,     1024,     4096, 0x63f1a8c4
-0,     353552,     353552,     1024,     4096, 0xe45a00df
-0,     354576,     354576,     1024,     4096, 0xd75032fc
-0,     355600,     355600,     1024,     4096, 0x553459cf
-0,     356624,     356624,     1024,     4096, 0x1b33a1bc
-0,     357648,     357648,     1024,     4096, 0x624d9fa5
-0,     358672,     358672,     1024,     4096, 0x69ef01c2
-0,     359696,     359696,     1024,     4096, 0x2abae91b
-0,     360720,     360720,     1024,     4096, 0x677619c8
-0,     361744,     361744,     1024,     4096, 0xdc47f672
-0,     362768,     362768,     1024,     4096, 0x3ca75283
-0,     363792,     363792,     1024,     4096, 0x8edec474
-0,     364816,     364816,     1024,     4096, 0x323d1977
-0,     365840,     365840,     1024,     4096, 0x70d8200e
-0,     366864,     366864,     1024,     4096, 0xf0fc692d
-0,     367888,     367888,     1024,     4096, 0x9d7e9451
-0,     368912,     368912,     1024,     4096, 0x56110ed6
-0,     369936,     369936,     1024,     4096, 0x8308d382
-0,     370960,     370960,     1024,     4096, 0xc12e8455
-0,     371984,     371984,     1024,     4096, 0xbab70fc3
-0,     373008,     373008,     1024,     4096, 0x3974c794
-0,     374032,     374032,     1024,     4096, 0x92268867
-0,     375056,     375056,     1024,     4096, 0x07bc5db6
-0,     376080,     376080,     1024,     4096, 0x3a69a60c
-0,     377104,     377104,     1024,     4096, 0x213b8da2
-0,     378128,     378128,     1024,     4096, 0x39ddbcb5
-0,     379152,     379152,     1024,     4096, 0x6b107851
-0,     380176,     380176,     1024,     4096, 0xaa735be6
-0,     381200,     381200,     1024,     4096, 0x3becca60
-0,     382224,     382224,     1024,     4096, 0x1383217b
-0,     383248,     383248,     1024,     4096, 0x2a93fb25
-0,     384272,     384272,     1024,     4096, 0x057e076d
-0,     385296,     385296,     1024,     4096, 0xf306219b
-0,     386320,     386320,     1024,     4096, 0x3d1f238b
-0,     387344,     387344,     1024,     4096, 0x4bdaeb13
-0,     388368,     388368,     1024,     4096, 0xbe12e587
-0,     389392,     389392,     1024,     4096, 0xf428fc99
-0,     390416,     390416,     1024,     4096, 0x25131fac
-0,     391440,     391440,     1024,     4096, 0xaaddd43a
-0,     392464,     392464,     1024,     4096, 0x082d1b1f
-0,     393488,     393488,     1024,     4096, 0xec8d6067
-0,     394512,     394512,     1024,     4096, 0x69880a4a
-0,     395536,     395536,     1024,     4096, 0x98892785
-0,     396560,     396560,     1024,     4096, 0x90d48fe5
-0,     397584,     397584,     1024,     4096, 0xf2c77de0
-0,     398608,     398608,     1024,     4096, 0xbf883f1e
-0,     399632,     399632,     1024,     4096, 0x2366eed3
-0,     400656,     400656,     1024,     4096, 0x99a61a4b
-0,     401680,     401680,     1024,     4096, 0x6496ff68
-0,     402704,     402704,     1024,     4096, 0x43d4ae23
-0,     403728,     403728,     1024,     4096, 0xfcbbdd39
-0,     404752,     404752,     1024,     4096, 0x8e8491d2
-0,     405776,     405776,     1024,     4096, 0x166bdaa7
-0,     406800,     406800,     1024,     4096, 0x5936e4de
-0,     407824,     407824,     1024,     4096, 0x5da0f74c
-0,     408848,     408848,     1024,     4096, 0x284c1816
-0,     409872,     409872,     1024,     4096, 0x9ae2fb10
-0,     410896,     410896,     1024,     4096, 0xef4f09f9
-0,     411920,     411920,     1024,     4096, 0x7d7146b2
-0,     412944,     412944,     1024,     4096, 0x3543f90c
-0,     413968,     413968,     1024,     4096, 0x9f350dea
-0,     414992,     414992,     1024,     4096, 0x89a761f8
-0,     416016,     416016,     1024,     4096, 0x7ed69125
-0,     417040,     417040,     1024,     4096, 0x75ddbd7b
-0,     418064,     418064,     1024,     4096, 0xb59ff6ba
-0,     419088,     419088,     1024,     4096, 0xbe8e35d8
-0,     420112,     420112,     1024,     4096, 0x9c3acb27
-0,     421136,     421136,     1024,     4096, 0x8bdefcc4
-0,     422160,     422160,     1024,     4096, 0xd9796b89
-0,     423184,     423184,     1024,     4096, 0x09ef18e5
-0,     424208,     424208,     1024,     4096, 0xa34eec05
-0,     425232,     425232,     1024,     4096, 0x59a4e5fe
-0,     426256,     426256,     1024,     4096, 0x7cf68f50
-0,     427280,     427280,     1024,     4096, 0x5635a169
-0,     428304,     428304,     1024,     4096, 0x9c8ba2ee
-0,     429328,     429328,     1024,     4096, 0x31bda22b
-0,     430352,     430352,     1024,     4096, 0xd33732d9
-0,     431376,     431376,     1024,     4096, 0x6041e3bf
-0,     432400,     432400,     1024,     4096, 0x7661d8e4
-0,     433424,     433424,     1024,     4096, 0x8744e56f
-0,     434448,     434448,     1024,     4096, 0x0d90222c
-0,     435472,     435472,     1024,     4096, 0xb749b6ee
-0,     436496,     436496,     1024,     4096, 0xc501e611
-0,     437520,     437520,     1024,     4096, 0x54bc9dae
-0,     438544,     438544,     1024,     4096, 0x7ebd8901
-0,     439568,     439568,     1024,     4096, 0xd48f55ab
-0,     440592,     440592,     1024,     4096, 0xf1f0979b
-0,     441616,     441616,     1024,     4096, 0x0532a2d2
-0,     442640,     442640,     1024,     4096, 0x1000e7a2
-0,     443664,     443664,     1024,     4096, 0x461d9b08
-0,     444688,     444688,     1024,     4096, 0xb119bcf8
-0,     445712,     445712,     1024,     4096, 0x03f2eb83
-0,     446736,     446736,     1024,     4096, 0xeba9f3b4
-0,     447760,     447760,     1024,     4096, 0x9a6ffc8e
-0,     448784,     448784,     1024,     4096, 0x52f54bc2
-0,     449808,     449808,     1024,     4096, 0xd17ec7d6
-0,     450832,     450832,     1024,     4096, 0x18b01fba
-0,     451856,     451856,     1024,     4096, 0x5d5af13e
-0,     452880,     452880,     1024,     4096, 0xe04a2919
-0,     453904,     453904,     1024,     4096, 0xc68c00b2
-0,     454928,     454928,     1024,     4096, 0x83a17a70
-0,     455952,     455952,     1024,     4096, 0x9de07f7f
-0,     456976,     456976,     1024,     4096, 0x2ef91463
-0,     458000,     458000,     1024,     4096, 0x9eaee29e
-0,     459024,     459024,     1024,     4096, 0xdfe3010b
-0,     460048,     460048,     1024,     4096, 0x0b0828b4
-0,     461072,     461072,     1024,     4096, 0x3ba8cee9
-0,     462096,     462096,     1024,     4096, 0x4b8bfe1f
-0,     463120,     463120,     1024,     4096, 0xc9da5ee4
-0,     464144,     464144,     1024,     4096, 0x951f70f3
-0,     465168,     465168,     1024,     4096, 0xba34e5a5
-0,     466192,     466192,     1024,     4096, 0x433716a1
-0,     467216,     467216,     1024,     4096, 0x39b24efb
-0,     468240,     468240,     1024,     4096, 0xe4a4b039
-0,     469264,     469264,     1024,     4096, 0x7906f2e6
-0,     470288,     470288,     1024,     4096, 0x40c8c726
-0,     471312,     471312,     1024,     4096, 0x6554cc46
-0,     472336,     472336,     1024,     4096, 0xf5b5d919
-0,     473360,     473360,     1024,     4096, 0x4437d4b0
-0,     474384,     474384,     1024,     4096, 0xa291f38f
-0,     475408,     475408,     1024,     4096, 0x0f81ad0b
-0,     476432,     476432,     1024,     4096, 0x4fb2c3e0
-0,     477456,     477456,     1024,     4096, 0xa2be4072
-0,     478480,     478480,     1024,     4096, 0x0674126f
-0,     479504,     479504,     1024,     4096, 0x3ab7e86c
-0,     480528,     480528,     1024,     4096, 0x736e87ae
-0,     481552,     481552,     1024,     4096, 0x1a050d8d
-0,     482576,     482576,     1024,     4096, 0xe92a59df
-0,     483600,     483600,     1024,     4096, 0xed8cb3bf
-0,     484624,     484624,     1024,     4096, 0xb5520d14
-0,     485648,     485648,     1024,     4096, 0x437d4e88
-0,     486672,     486672,     1024,     4096, 0xc67a4422
-0,     487696,     487696,     1024,     4096, 0x1f7f912d
-0,     488720,     488720,     1024,     4096, 0x67429495
-0,     489744,     489744,     1024,     4096, 0xd7ffb252
-0,     490768,     490768,     1024,     4096, 0x517ade18
-0,     491792,     491792,     1024,     4096, 0x527a31d7
-0,     492816,     492816,     1024,     4096, 0xdbc0a560
-0,     493840,     493840,     1024,     4096, 0x029048da
-0,     494864,     494864,     1024,     4096, 0x85df6c55
-0,     495888,     495888,     1024,     4096, 0xc68983a2
-0,     496912,     496912,     1024,     4096, 0x951a140b
-0,     497936,     497936,     1024,     4096, 0xc1560b9b
-0,     498960,     498960,     1024,     4096, 0xb27302c3
-0,     499984,     499984,     1024,     4096, 0x50ad5360
-0,     501008,     501008,     1024,     4096, 0x1ccbf240
-0,     502032,     502032,     1024,     4096, 0x85b2a928
-0,     503056,     503056,     1024,     4096, 0xd3f8d0b8
-0,     504080,     504080,     1024,     4096, 0xe7833196
-0,     505104,     505104,     1024,     4096, 0xd6ac1184
-0,     506128,     506128,     1024,     4096, 0x27466545
-0,     507152,     507152,     1024,     4096, 0x11119fb9
-0,     508176,     508176,     1024,     4096, 0x6b383b60
-0,     509200,     509200,     1024,     4096, 0x14f78f30
-0,     510224,     510224,     1024,     4096, 0xda4c3aca
-0,     511248,     511248,     1024,     4096, 0xdd24bf6e
-0,     512272,     512272,     1024,     4096, 0x165d0a06
-0,     513296,     513296,     1024,     4096, 0x42e5407b
-0,     514320,     514320,     1024,     4096, 0x8e5d3def
-0,     515344,     515344,     1024,     4096, 0x367c9896
-0,     516368,     516368,     1024,     4096, 0xe27455a0
-0,     517392,     517392,     1024,     4096, 0xb331cb8c
-0,     518416,     518416,     1024,     4096, 0x8cf7fa69
-0,     519440,     519440,     1024,     4096, 0x713f08f7
-0,     520464,     520464,     1024,     4096, 0x9308e552
-0,     521488,     521488,     1024,     4096, 0xb14cf9bd
-0,     522512,     522512,     1024,     4096, 0xf408d356
-0,     523536,     523536,     1024,     4096, 0xe4adda2e
-0,     524560,     524560,     1024,     4096, 0x62ca992c
-0,     525584,     525584,     1024,     4096, 0xedcb7048
-0,     526608,     526608,     1024,     4096, 0xfafd3ac3
-0,     527632,     527632,     1024,     4096, 0x4018aec3
-0,     528656,     528656,     1024,     4096, 0x7e0a0e23
-0,     529680,     529680,     1024,     4096, 0xb58992db
-0,     530704,     530704,     1024,     4096, 0xe39b3301
-0,     531728,     531728,     1024,     4096, 0x2c9a85bb
-0,     532752,     532752,     1024,     4096, 0x0aae1d68
-0,     533776,     533776,     1024,     4096, 0x36f8b423
-0,     534800,     534800,     1024,     4096, 0x44c10fec
-0,     535824,     535824,     1024,     4096, 0xc0b5e715
-0,     536848,     536848,     1024,     4096, 0xa09ff7ec
-0,     537872,     537872,     1024,     4096, 0x53d42436
-0,     538896,     538896,     1024,     4096, 0x1d630a0a
-0,     539920,     539920,     1024,     4096, 0x71a1f91c
-0,     540944,     540944,     1024,     4096, 0x65331b70
-0,     541968,     541968,     1024,     4096, 0x8cd33518
-0,     542992,     542992,     1024,     4096, 0x067de410
-0,     544016,     544016,     1024,     4096, 0x8d4a4618
-0,     545040,     545040,     1024,     4096, 0x3632d993
-0,     546064,     546064,     1024,     4096, 0x6259b193
-0,     547088,     547088,     1024,     4096, 0xbdb7bcbf
-0,     548112,     548112,     1024,     4096, 0x8625af9b
-0,     549136,     549136,     1024,     4096, 0x4d3e7b07
-0,     550160,     550160,     1024,     4096, 0x76d6cf52
-0,     551184,     551184,     1024,     4096, 0x54f07eb8
-0,     552208,     552208,     1024,     4096, 0x93cb65a1
-0,     553232,     553232,     1024,     4096, 0x5f9b3df7
-0,     554256,     554256,     1024,     4096, 0x5fa8e05e
-0,     555280,     555280,     1024,     4096, 0xeaebf0ab
-0,     556304,     556304,     1024,     4096, 0xd317ed69
-0,     557328,     557328,     1024,     4096, 0x66fd1a32
-0,     558352,     558352,     1024,     4096, 0x9608a614
-0,     559376,     559376,     1024,     4096, 0xa1c661c6
-0,     560400,     560400,     1024,     4096, 0xaa21d89e
-0,     561424,     561424,     1024,     4096, 0xca8820c0
-0,     562448,     562448,     1024,     4096, 0x25c4a979
-0,     563472,     563472,     1024,     4096, 0xfc1ae730
-0,     564496,     564496,     1024,     4096, 0xd681f6cb
-0,     565520,     565520,     1024,     4096, 0x4f8497ca
-0,     566544,     566544,     1024,     4096, 0xc1a033d6
-0,     567568,     567568,     1024,     4096, 0xada5f805
-0,     568592,     568592,     1024,     4096, 0x75ee4703
-0,     569616,     569616,     1024,     4096, 0x722521ff
-0,     570640,     570640,     1024,     4096, 0xd26c503f
-0,     571664,     571664,     1024,     4096, 0x9f62715e
-0,     572688,     572688,     1024,     4096, 0x32ff9d07
-0,     573712,     573712,     1024,     4096, 0x333646aa
-0,     574736,     574736,     1024,     4096, 0x9c590e90
-0,     575760,     575760,     1024,     4096, 0x5ed119e1
-0,     576784,     576784,     1024,     4096, 0xde2a8d38
-0,     577808,     577808,     1024,     4096, 0xdad9fca7
-0,     578832,     578832,     1024,     4096, 0x51f5e65d
-0,     579856,     579856,     1024,     4096, 0x61910e01
-0,     580880,     580880,     1024,     4096, 0xb4d10d4f
-0,     581904,     581904,     1024,     4096, 0x892a5875
-0,     582928,     582928,     1024,     4096, 0x64c828e5
-0,     583952,     583952,     1024,     4096, 0x6db0da46
-0,     584976,     584976,     1024,     4096, 0x9c10dc3f
-0,     586000,     586000,     1024,     4096, 0x96c02ce6
-0,     587024,     587024,     1024,     4096, 0x3bec5ed2
-0,     588048,     588048,     1024,     4096, 0x40f263f0
-0,     589072,     589072,     1024,     4096, 0x7750137d
-0,     590096,     590096,     1024,     4096, 0x044dc19b
-0,     591120,     591120,     1024,     4096, 0x58a8dda4
-0,     592144,     592144,     1024,     4096, 0xe02ec285
-0,     593168,     593168,     1024,     4096, 0x722a2f2a
-0,     594192,     594192,     1024,     4096, 0xca5e4d42
-0,     595216,     595216,      134,      536, 0x45fd3d3d
+0,     264600,     264600,     1912,     7648, 0xf0c93a5a
+0,     266512,     266512,     4096,    16384, 0x85454449
+0,     270608,     270608,     4096,    16384, 0x5b0c3b8c
+0,     274704,     274704,     4096,    16384, 0x6f6cdea0
+0,     278800,     278800,     4096,    16384, 0xc14aa167
+0,     282896,     282896,     4096,    16384, 0x8d2d9fd7
+0,     286992,     286992,     4096,    16384, 0x84f626cb
+0,     291088,     291088,     4096,    16384, 0x7f229b40
+0,     295184,     295184,     4096,    16384, 0xd722823b
+0,     299280,     299280,     4096,    16384, 0x7de54034
+0,     303376,     303376,     4096,    16384, 0xf4855785
+0,     307472,     307472,     4096,    16384, 0x9ed9bc5c
+0,     311568,     311568,     4096,    16384, 0xb884e33e
+0,     315664,     315664,     4096,    16384, 0x0cec51e5
+0,     319760,     319760,     4096,    16384, 0x1ecd7171
+0,     323856,     323856,     4096,    16384, 0x1e294050
+0,     327952,     327952,     4096,    16384, 0x6920a1ca
+0,     332048,     332048,     4096,    16384, 0x6b306f4e
+0,     336144,     336144,     4096,    16384, 0x2b706c2c
+0,     340240,     340240,     4096,    16384, 0x79ab2a89
+0,     344336,     344336,     4096,    16384, 0xc59316f4
+0,     348432,     348432,     4096,    16384, 0xc616d0b7
+0,     352528,     352528,     4096,    16384, 0xe11b367d
+0,     356624,     356624,     4096,    16384, 0x06412c5c
+0,     360720,     360720,     4096,    16384, 0x6372274f
+0,     364816,     364816,     4096,    16384, 0xf8023712
+0,     368912,     368912,     4096,    16384, 0x379c767f
+0,     373008,     373008,     4096,    16384, 0x96e753db
+0,     377104,     377104,     4096,    16384, 0xe1cd1eac
+0,     381200,     381200,     4096,    16384, 0x9319ee7c
+0,     385296,     385296,     4096,    16384, 0x57ce15de
+0,     389392,     389392,     4096,    16384, 0x655a0bbc
+0,     393488,     393488,     4096,    16384, 0xa71a222a
+0,     397584,     397584,     4096,    16384, 0x17ebc62b
+0,     401680,     401680,     4096,    16384, 0x88471cc3
+0,     405776,     405776,     4096,    16384, 0xc1c8cf05
+0,     409872,     409872,     4096,    16384, 0x944344e5
+0,     413968,     413968,     4096,    16384, 0xb49fbe91
+0,     418064,     418064,     4096,    16384, 0xc5eff49b
+0,     422160,     422160,     4096,    16384, 0xbaf0568f
+0,     426256,     426256,     4096,    16384, 0xfc2475f0
+0,     430352,     430352,     4096,    16384, 0x06c9d509
+0,     434448,     434448,     4096,    16384, 0x7d9b5cf7
+0,     438544,     438544,     4096,    16384, 0x3aca1937
+0,     442640,     442640,     4096,    16384, 0x4ac42b52
+0,     446736,     446736,     4096,    16384, 0x18f40407
+0,     450832,     450832,     4096,    16384, 0x91303ad2
+0,     454928,     454928,     4096,    16384, 0x59e9f0ff
+0,     459024,     459024,     4096,    16384, 0xa375f6d6
+0,     463120,     463120,     4096,    16384, 0x829ccc2c
+0,     467216,     467216,     4096,    16384, 0x74abb95e
+0,     471312,     471312,     4096,    16384, 0x1f2f6dcb
+0,     475408,     475408,     4096,    16384, 0xcafcc3db
+0,     479504,     479504,     4096,    16384, 0x1a6cd795
+0,     483600,     483600,     4096,    16384, 0xd8c2538c
+0,     487696,     487696,     4096,    16384, 0x3695b64a
+0,     491792,     491792,     4096,    16384, 0xad648c75
+0,     495888,     495888,     4096,    16384, 0xe24fa60b
+0,     499984,     499984,     4096,    16384, 0x96b1bf9e
+0,     504080,     504080,     4096,    16384, 0xf1e34827
+0,     508176,     508176,     4096,    16384, 0xc267c4d7
+0,     512272,     512272,     4096,    16384, 0x5d5a2115
+0,     516368,     516368,     4096,    16384, 0xfd6024aa
+0,     520464,     520464,     4096,    16384, 0x9cd58cc0
+0,     524560,     524560,     4096,    16384, 0xb458f309
+0,     528656,     528656,     4096,    16384, 0xaee359c9
+0,     532752,     532752,     4096,    16384, 0x9aa3c89b
+0,     536848,     536848,     4096,    16384, 0x2a4f1f66
+0,     540944,     540944,     4096,    16384, 0x0c817abf
+0,     545040,     545040,     4096,    16384, 0x1e97f79e
+0,     549136,     549136,     4096,    16384, 0x12a32ed0
+0,     553232,     553232,     4096,    16384, 0x722bfc87
+0,     557328,     557328,     4096,    16384, 0x65e0fab9
+0,     561424,     561424,     4096,    16384, 0x55cca852
+0,     565520,     565520,     4096,    16384, 0x19a10ac6
+0,     569616,     569616,     4096,    16384, 0x078180b2
+0,     573712,     573712,     4096,    16384, 0xf6f8fc53
+0,     577808,     577808,     4096,    16384, 0xc72ffe63
+0,     581904,     581904,     4096,    16384, 0xf9f837fd
+0,     586000,     586000,     4096,    16384, 0x78d70334
+0,     590096,     590096,     4096,    16384, 0x061d910c
+0,     594192,     594192,     1158,     4632, 0xdc098a7f
diff --git a/tests/ref/fate/filter-adelay b/tests/ref/fate/filter-adelay
index 6370f66f71..34c8c6f676 100644
--- a/tests/ref/fate/filter-adelay
+++ b/tests/ref/fate/filter-adelay
@@ -3,263 +3,69 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x9d7bf760
-0,       1024,       1024,     1024,     4096, 0xdf42c46b
-0,       2048,       2048,     1024,     4096, 0x2214fd20
-0,       3072,       3072,     1024,     4096, 0x811bfcf0
-0,       4096,       4096,     1024,     4096, 0x671ee9af
-0,       5120,       5120,     1024,     4096, 0x5e60fb90
-0,       6144,       6144,     1024,     4096, 0x857bfa49
-0,       7168,       7168,     1024,     4096, 0x100e028d
-0,       8192,       8192,     1024,     4096, 0xa351ed1e
-0,       9216,       9216,     1024,     4096, 0xa79cf58c
-0,      10240,      10240,     1024,     4096, 0x63c1f86a
-0,      11264,      11264,     1024,     4096, 0x325a055f
-0,      12288,      12288,     1024,     4096, 0x8457f621
-0,      13312,      13312,     1024,     4096, 0xa158f43e
-0,      14336,      14336,     1024,     4096, 0x69b6ef60
-0,      15360,      15360,     1024,     4096, 0x3bf1fb3c
-0,      16384,      16384,     1024,     4096, 0x942f00cc
-0,      17408,      17408,     1024,     4096, 0x16c2f0ab
-0,      18432,      18432,     1024,     4096, 0x6b9ff3b6
-0,      19456,      19456,     1024,     4096, 0x1616f3e7
-0,      20480,      20480,     1024,     4096, 0x1ec90735
-0,      21504,      21504,     1024,     4096, 0x3fd3f547
-0,      22528,      22528,     1024,     4096, 0x062af68d
-0,      23552,      23552,     1024,     4096, 0x9179ee59
-0,      24576,      24576,     1024,     4096, 0x172d01cb
-0,      25600,      25600,     1024,     4096, 0xd9bff94c
-0,      26624,      26624,     1024,     4096, 0x3db6f86e
-0,      27648,      27648,     1024,     4096, 0x617deb86
-0,      28672,      28672,     1024,     4096, 0x0e06fab5
-0,      29696,      29696,     1024,     4096, 0xf660fc98
-0,      30720,      30720,     1024,     4096, 0x31a30186
-0,      31744,      31744,     1024,     4096, 0x5312f599
-0,      32768,      32768,     1024,     4096, 0x0592f01a
-0,      33792,      33792,     1024,     4096, 0x6e770039
-0,      34816,      34816,     1024,     4096, 0x2214fd20
-0,      35840,      35840,     1024,     4096, 0x811bfcf0
-0,      36864,      36864,     1024,     4096, 0x671ee9af
-0,      37888,      37888,     1024,     4096, 0x5e60fb90
-0,      38912,      38912,     1024,     4096, 0x857bfa49
-0,      39936,      39936,     1024,     4096, 0x100e028d
-0,      40960,      40960,     1024,     4096, 0xa351ed1e
-0,      41984,      41984,     1024,     4096, 0xa79cf58c
-0,      43008,      43008,     1024,     4096, 0x63c1f86a
-0,      44032,      44032,     1024,     4096, 0x96ebeed8
-0,      45056,      45056,     1024,     4096, 0xdfa8cc5b
-0,      46080,      46080,     1024,     4096, 0x50660dab
-0,      47104,      47104,     1024,     4096, 0x58f1f11c
-0,      48128,      48128,     1024,     4096, 0x5a7ceb7d
-0,      49152,      49152,     1024,     4096, 0x27fe02db
-0,      50176,      50176,     1024,     4096, 0x6d83f8ed
-0,      51200,      51200,     1024,     4096, 0x3cc1f309
-0,      52224,      52224,     1024,     4096, 0x2bc5fea4
-0,      53248,      53248,     1024,     4096, 0x0a4ef2ca
-0,      54272,      54272,     1024,     4096, 0xd580ed7f
-0,      55296,      55296,     1024,     4096, 0x67c210b1
-0,      56320,      56320,     1024,     4096, 0x45d1e8a4
-0,      57344,      57344,     1024,     4096, 0xd9a820a6
-0,      58368,      58368,     1024,     4096, 0x27f405da
-0,      59392,      59392,     1024,     4096, 0x863a1b65
-0,      60416,      60416,     1024,     4096, 0xf7770535
-0,      61440,      61440,     1024,     4096, 0x069cee20
-0,      62464,      62464,     1024,     4096, 0x6564f3bb
-0,      63488,      63488,     1024,     4096, 0xd953e9dd
-0,      64512,      64512,     1024,     4096, 0x6a23f296
-0,      65536,      65536,     1024,     4096, 0x8051f8ed
-0,      66560,      66560,     1024,     4096, 0x226af522
-0,      67584,      67584,     1024,     4096, 0x526bf350
-0,      68608,      68608,     1024,     4096, 0x5b8cf6e5
-0,      69632,      69632,     1024,     4096, 0xd155fd1e
-0,      70656,      70656,     1024,     4096, 0x0fd2ed83
-0,      71680,      71680,     1024,     4096, 0x0df7f50c
-0,      72704,      72704,     1024,     4096, 0x96aa05fc
-0,      73728,      73728,     1024,     4096, 0x763ef755
-0,      74752,      74752,     1024,     4096, 0x2022fbb2
-0,      75776,      75776,     1024,     4096, 0x33f0fd78
-0,      76800,      76800,     1024,     4096, 0x91701636
-0,      77824,      77824,     1024,     4096, 0xb43106b7
-0,      78848,      78848,     1024,     4096, 0x3ec312cd
-0,      79872,      79872,     1024,     4096, 0x2f97ecb0
-0,      80896,      80896,     1024,     4096, 0x2872f93d
-0,      81920,      81920,     1024,     4096, 0xb9fc0bb6
-0,      82944,      82944,     1024,     4096, 0xdba41993
-0,      83968,      83968,     1024,     4096, 0x13f42827
-0,      84992,      84992,     1024,     4096, 0x19c0fc72
-0,      86016,      86016,     1024,     4096, 0x0c760320
-0,      87040,      87040,     1024,     4096, 0x739803c6
-0,      88064,      88064,     1024,     4096, 0x8101e8e8
-0,      89088,      89088,     1024,     4096, 0x521ef51e
-0,      90112,      90112,     1024,     4096, 0x5796c18e
-0,      91136,      91136,     1024,     4096, 0xae15b81c
-0,      92160,      92160,     1024,     4096, 0xa14da4f6
-0,      93184,      93184,     1024,     4096, 0x0df4a2c5
-0,      94208,      94208,     1024,     4096, 0xe6d6b7db
-0,      95232,      95232,     1024,     4096, 0x4d83aec1
-0,      96256,      96256,     1024,     4096, 0x1c8dbffb
-0,      97280,      97280,     1024,     4096, 0xff62da79
-0,      98304,      98304,     1024,     4096, 0xf41ca375
-0,      99328,      99328,     1024,     4096, 0x32a6dc8a
-0,     100352,     100352,     1024,     4096, 0x2d77bdfb
-0,     101376,     101376,     1024,     4096, 0x91fec716
-0,     102400,     102400,     1024,     4096, 0x599bdb67
-0,     103424,     103424,     1024,     4096, 0xeeb0c5e7
-0,     104448,     104448,     1024,     4096, 0x1c79cae2
-0,     105472,     105472,     1024,     4096, 0x3b5cbe5e
-0,     106496,     106496,     1024,     4096, 0x1168a813
-0,     107520,     107520,     1024,     4096, 0x13e8b7f7
-0,     108544,     108544,     1024,     4096, 0x9cebb015
-0,     109568,     109568,     1024,     4096, 0xcaf5da54
-0,     110592,     110592,     1024,     4096, 0xc555e4d2
-0,     111616,     111616,     1024,     4096, 0x67c2de67
-0,     112640,     112640,     1024,     4096, 0xd642f9ea
-0,     113664,     113664,     1024,     4096, 0xa4320e7f
-0,     114688,     114688,     1024,     4096, 0xf1b0f37b
-0,     115712,     115712,     1024,     4096, 0x4e33f2f2
-0,     116736,     116736,     1024,     4096, 0x17d5edfd
-0,     117760,     117760,     1024,     4096, 0x9849e28e
-0,     118784,     118784,     1024,     4096, 0x1af9f3a2
-0,     119808,     119808,     1024,     4096, 0x37730916
-0,     120832,     120832,     1024,     4096, 0xe737fd3c
-0,     121856,     121856,     1024,     4096, 0x8a590d88
-0,     122880,     122880,     1024,     4096, 0xe6d401e5
-0,     123904,     123904,     1024,     4096, 0xc8e2ec17
-0,     124928,     124928,     1024,     4096, 0x4019cf7d
-0,     125952,     125952,     1024,     4096, 0x1f93dd9c
-0,     126976,     126976,     1024,     4096, 0x2f9ff3f1
-0,     128000,     128000,     1024,     4096, 0x1530e129
-0,     129024,     129024,     1024,     4096, 0xcd79066a
-0,     130048,     130048,     1024,     4096, 0x6b9cfba7
-0,     131072,     131072,     1024,     4096, 0x43170f0b
-0,     132096,     132096,     1024,     4096, 0xf183fecf
-0,     133120,     133120,     1024,     4096, 0xf1e3f9ca
-0,     134144,     134144,     1024,     4096, 0x7d3fef31
-0,     135168,     135168,     1024,     4096, 0x4ea3f680
-0,     136192,     136192,     1024,     4096, 0x80e8ff67
-0,     137216,     137216,     1024,     4096, 0xba58f3b6
-0,     138240,     138240,     1024,     4096, 0xf18d0602
-0,     139264,     139264,     1024,     4096, 0xf7b2f8dc
-0,     140288,     140288,     1024,     4096, 0x7ab5fdab
-0,     141312,     141312,     1024,     4096, 0x0b04ef46
-0,     142336,     142336,     1024,     4096, 0xb23bf464
-0,     143360,     143360,     1024,     4096, 0xba08edbe
-0,     144384,     144384,     1024,     4096, 0x7e1af596
-0,     145408,     145408,     1024,     4096, 0xf23ff63c
-0,     146432,     146432,     1024,     4096, 0x7a55efca
-0,     147456,     147456,     1024,     4096, 0x427515b0
-0,     148480,     148480,     1024,     4096, 0x653de823
-0,     149504,     149504,     1024,     4096, 0x93a70335
-0,     150528,     150528,     1024,     4096, 0x60eaed4c
-0,     151552,     151552,     1024,     4096, 0xe9f30f02
-0,     152576,     152576,     1024,     4096, 0x1e9ff096
-0,     153600,     153600,     1024,     4096, 0xcc7d00a0
-0,     154624,     154624,     1024,     4096, 0xf994fa05
-0,     155648,     155648,     1024,     4096, 0x4577fc19
-0,     156672,     156672,     1024,     4096, 0xa312ed95
-0,     157696,     157696,     1024,     4096, 0xdbe0df34
-0,     158720,     158720,     1024,     4096, 0x4080f766
-0,     159744,     159744,     1024,     4096, 0x2751ec59
-0,     160768,     160768,     1024,     4096, 0xcd14f684
-0,     161792,     161792,     1024,     4096, 0xd42aeee0
-0,     162816,     162816,     1024,     4096, 0x21d3f3f6
-0,     163840,     163840,     1024,     4096, 0x32a6f850
-0,     164864,     164864,     1024,     4096, 0xc4c01074
-0,     165888,     165888,     1024,     4096, 0x27fef9bd
-0,     166912,     166912,     1024,     4096, 0x8f29fc33
-0,     167936,     167936,     1024,     4096, 0x0e360352
-0,     168960,     168960,     1024,     4096, 0xc992ecaf
-0,     169984,     169984,     1024,     4096, 0x05eff12c
-0,     171008,     171008,     1024,     4096, 0x700def8b
-0,     172032,     172032,     1024,     4096, 0xfbc3ef85
-0,     173056,     173056,     1024,     4096, 0x6908f67c
-0,     174080,     174080,     1024,     4096, 0xf6c305d6
-0,     175104,     175104,     1024,     4096, 0xbfdfe430
-0,     176128,     176128,     1024,     4096, 0xef7902ec
-0,     177152,     177152,     1024,     4096, 0x62adeb88
-0,     178176,     178176,     1024,     4096, 0x1fea0128
-0,     179200,     179200,     1024,     4096, 0xfeb0f860
-0,     180224,     180224,     1024,     4096, 0xa9e7e63b
-0,     181248,     181248,     1024,     4096, 0x62ffe62f
-0,     182272,     182272,     1024,     4096, 0xf743fbed
-0,     183296,     183296,     1024,     4096, 0x3953f3f3
-0,     184320,     184320,     1024,     4096, 0x17a6fc18
-0,     185344,     185344,     1024,     4096, 0x1531dc96
-0,     186368,     186368,     1024,     4096, 0x2560950a
-0,     187392,     187392,     1024,     4096, 0xa87704d0
-0,     188416,     188416,     1024,     4096, 0x89540f7f
-0,     189440,     189440,     1024,     4096, 0xa22ff108
-0,     190464,     190464,     1024,     4096, 0xd3e5fed6
-0,     191488,     191488,     1024,     4096, 0x10eafd99
-0,     192512,     192512,     1024,     4096, 0x7f6beeea
-0,     193536,     193536,     1024,     4096, 0x4fe101f7
-0,     194560,     194560,     1024,     4096, 0x5f94ef98
-0,     195584,     195584,     1024,     4096, 0x9cb4f877
-0,     196608,     196608,     1024,     4096, 0x03960aac
-0,     197632,     197632,     1024,     4096, 0x3fec0ab8
-0,     198656,     198656,     1024,     4096, 0x8225f4e7
-0,     199680,     199680,     1024,     4096, 0x5ffafce4
-0,     200704,     200704,     1024,     4096, 0x15caf2c1
-0,     201728,     201728,     1024,     4096, 0x7d54144f
-0,     202752,     202752,     1024,     4096, 0xa2139295
-0,     203776,     203776,     1024,     4096, 0xf2c1ec16
-0,     204800,     204800,     1024,     4096, 0x0c61e166
-0,     205824,     205824,     1024,     4096, 0xfdb7ffce
-0,     206848,     206848,     1024,     4096, 0xb783f1ff
-0,     207872,     207872,     1024,     4096, 0x8c07f340
-0,     208896,     208896,     1024,     4096, 0x8a03e20d
-0,     209920,     209920,     1024,     4096, 0x389eeeec
-0,     210944,     210944,     1024,     4096, 0x2f6b014c
-0,     211968,     211968,     1024,     4096, 0xfeb0f860
-0,     212992,     212992,     1024,     4096, 0xa9e7e63b
-0,     214016,     214016,     1024,     4096, 0x62ffe62f
-0,     215040,     215040,     1024,     4096, 0xf743fbed
-0,     216064,     216064,     1024,     4096, 0x3953f3f3
-0,     217088,     217088,     1024,     4096, 0x17a6fc18
-0,     218112,     218112,     1024,     4096, 0x1531dc96
-0,     219136,     219136,     1024,     4096, 0x2560950a
-0,     220160,     220160,     1024,     4096, 0xa87704d0
-0,     221184,     221184,     1024,     4096, 0x89540f7f
-0,     222208,     222208,     1024,     4096, 0xa22ff108
-0,     223232,     223232,     1024,     4096, 0xd3e5fed6
-0,     224256,     224256,     1024,     4096, 0x10eafd99
-0,     225280,     225280,     1024,     4096, 0x7f6beeea
-0,     226304,     226304,     1024,     4096, 0x4fe101f7
-0,     227328,     227328,     1024,     4096, 0x5f94ef98
-0,     228352,     228352,     1024,     4096, 0x9cb4f877
-0,     229376,     229376,     1024,     4096, 0x03960aac
-0,     230400,     230400,     1024,     4096, 0x3fec0ab8
-0,     231424,     231424,     1024,     4096, 0x8225f4e7
-0,     232448,     232448,     1024,     4096, 0x5ffafce4
-0,     233472,     233472,     1024,     4096, 0x15caf2c1
-0,     234496,     234496,     1024,     4096, 0x7d54144f
-0,     235520,     235520,     1024,     4096, 0xa2139295
-0,     236544,     236544,     1024,     4096, 0xf2c1ec16
-0,     237568,     237568,     1024,     4096, 0x0c61e166
-0,     238592,     238592,     1024,     4096, 0xfdb7ffce
-0,     239616,     239616,     1024,     4096, 0xb783f1ff
-0,     240640,     240640,     1024,     4096, 0x8c07f340
-0,     241664,     241664,     1024,     4096, 0x8a03e20d
-0,     242688,     242688,     1024,     4096, 0x389eeeec
-0,     243712,     243712,     1024,     4096, 0x2f6b014c
-0,     244736,     244736,     1024,     4096, 0xfeb0f860
-0,     245760,     245760,     1024,     4096, 0xa9e7e63b
-0,     246784,     246784,     1024,     4096, 0x62ffe62f
-0,     247808,     247808,     1024,     4096, 0xf743fbed
-0,     248832,     248832,     1024,     4096, 0x3953f3f3
-0,     249856,     249856,     1024,     4096, 0x17a6fc18
-0,     250880,     250880,     1024,     4096, 0x1531dc96
-0,     251904,     251904,     1024,     4096, 0x2560950a
-0,     252928,     252928,     1024,     4096, 0xa87704d0
-0,     253952,     253952,     1024,     4096, 0x89540f7f
-0,     254976,     254976,     1024,     4096, 0xa22ff108
-0,     256000,     256000,     1024,     4096, 0xd3e5fed6
-0,     257024,     257024,     1024,     4096, 0x10eafd99
-0,     258048,     258048,     1024,     4096, 0x7f6beeea
-0,     259072,     259072,     1024,     4096, 0x4fe101f7
-0,     260096,     260096,     1024,     4096, 0x5f94ef98
-0,     261120,     261120,     1024,     4096, 0x9cb4f877
-0,     262144,     262144,     1024,     4096, 0x03960aac
-0,     263168,     263168,     1024,     4096, 0x3fec0ab8
-0,     264192,     264192,      408,     1632, 0x23933452
+0,          0,          0,     4096,    16384, 0x95a4b608
+0,       4096,       4096,     4096,    16384, 0x0ef9e233
+0,       8192,       8192,     4096,    16384, 0xf194e091
+0,      12288,      12288,     4096,    16384, 0x1a5bd528
+0,      16384,      16384,     4096,    16384, 0xd6ccd932
+0,      20480,      20480,     4096,    16384, 0x5dc0e180
+0,      24576,      24576,     4096,    16384, 0xc1b5df29
+0,      28672,      28672,     4096,    16384, 0x7598ee8a
+0,      32768,      32768,     4096,    16384, 0xa876ea81
+0,      36864,      36864,     4096,    16384, 0x0ef9e233
+0,      40960,      40960,     4096,    16384, 0x5634ca19
+0,      45056,      45056,     4096,    16384, 0x4e2eb6bd
+0,      49152,      49152,     4096,    16384, 0xfccded93
+0,      53248,      53248,     4096,    16384, 0xd57bd9bc
+0,      57344,      57344,     4096,    16384, 0xafea471a
+0,      61440,      61440,     4096,    16384, 0x21d4be7b
+0,      65536,      65536,     4096,    16384, 0x6ce6d871
+0,      69632,      69632,     4096,    16384, 0xb11be5c7
+0,      73728,      73728,     4096,    16384, 0x894c06e2
+0,      77824,      77824,     4096,    16384, 0x4f24ff80
+0,      81920,      81920,     4096,    16384, 0x29fb49f1
+0,      86016,      86016,     4096,    16384, 0x7d7ee4fb
+0,      90112,      90112,     4096,    16384, 0x4979c183
+0,      94208,      94208,     4096,    16384, 0x3161013d
+0,      98304,      98304,     4096,    16384, 0xe1db053d
+0,     102400,     102400,     4096,    16384, 0x8acc2abb
+0,     106496,     106496,     4096,    16384, 0x2437ea91
+0,     110592,     110592,     4096,    16384, 0x96d1cbc0
+0,     114688,     114688,     4096,    16384, 0x63d5b725
+0,     118784,     118784,     4096,    16384, 0x4ff2079a
+0,     122880,     122880,     4096,    16384, 0x32289b33
+0,     126976,     126976,     4096,    16384, 0xc876d749
+0,     131072,     131072,     4096,    16384, 0x264ef6f3
+0,     135168,     135168,     4096,    16384, 0x3488efbd
+0,     139264,     139264,     4096,    16384, 0xa7ecda5e
+0,     143360,     143360,     4096,    16384, 0x1524c987
+0,     147456,     147456,     4096,    16384, 0x3fb7ee63
+0,     151552,     151552,     4096,    16384, 0xdcc2fa4c
+0,     155648,     155648,     4096,    16384, 0xe908c075
+0,     159744,     159744,     4096,    16384, 0x61acc5e0
+0,     163840,     163840,     4096,    16384, 0xc22ffed2
+0,     167936,     167936,     4096,    16384, 0xf529d0d6
+0,     172032,     172032,     4096,    16384, 0x6120d025
+0,     176128,     176128,     4096,    16384, 0xf3dde80b
+0,     180224,     180224,     4096,    16384, 0x2135bc77
+0,     184320,     184320,     4096,    16384, 0xc95172a6
+0,     188416,     188416,     4096,    16384, 0x1f07fd14
+0,     192512,     192512,     4096,    16384, 0x901bd90e
+0,     196608,     196608,     4096,    16384, 0xed6a074d
+0,     200704,     200704,     4096,    16384, 0xe27685d9
+0,     204800,     204800,     4096,    16384, 0x5a7ec6a0
+0,     208896,     208896,     4096,    16384, 0xde02cac3
+0,     212992,     212992,     4096,    16384, 0x2135bc77
+0,     217088,     217088,     4096,    16384, 0xc95172a6
+0,     221184,     221184,     4096,    16384, 0x1f07fd14
+0,     225280,     225280,     4096,    16384, 0x901bd90e
+0,     229376,     229376,     4096,    16384, 0xed6a074d
+0,     233472,     233472,     4096,    16384, 0xe27685d9
+0,     237568,     237568,     4096,    16384, 0x5a7ec6a0
+0,     241664,     241664,     4096,    16384, 0xde02cac3
+0,     245760,     245760,     4096,    16384, 0x2135bc77
+0,     249856,     249856,     4096,    16384, 0xc95172a6
+0,     253952,     253952,     4096,    16384, 0x1f07fd14
+0,     258048,     258048,     4096,    16384, 0x901bd90e
+0,     262144,     262144,     2456,     9824, 0x969249b6
 0,     264600,     264600,     1852,     7408, 0x77074171
diff --git a/tests/ref/fate/filter-aecho b/tests/ref/fate/filter-aecho
index 706e17e10c..7e743a513d 100644
--- a/tests/ref/fate/filter-aecho
+++ b/tests/ref/fate/filter-aecho
@@ -3,263 +3,69 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x3019edd5
-0,       1024,       1024,     1024,     4096, 0x2df2fe2f
-0,       2048,       2048,     1024,     4096, 0xde37ff37
-0,       3072,       3072,     1024,     4096, 0xe933f6a5
-0,       4096,       4096,     1024,     4096, 0xd5acf1f3
-0,       5120,       5120,     1024,     4096, 0x82a6f903
-0,       6144,       6144,     1024,     4096, 0x1792f923
-0,       7168,       7168,     1024,     4096, 0x01500504
-0,       8192,       8192,     1024,     4096, 0xe306efc3
-0,       9216,       9216,     1024,     4096, 0x3abcecaf
-0,      10240,      10240,     1024,     4096, 0x5059f861
-0,      11264,      11264,     1024,     4096, 0xc172ff61
-0,      12288,      12288,     1024,     4096, 0x857dfc1b
-0,      13312,      13312,     1024,     4096, 0x5899ed35
-0,      14336,      14336,     1024,     4096, 0x9ae9f709
-0,      15360,      15360,     1024,     4096, 0xd5620036
-0,      16384,      16384,     1024,     4096, 0xc5ba0940
-0,      17408,      17408,     1024,     4096, 0x0c3af2ff
-0,      18432,      18432,     1024,     4096, 0x5eddf1b1
-0,      19456,      19456,     1024,     4096, 0x9ec8f84d
-0,      20480,      20480,     1024,     4096, 0x8a4f00ee
-0,      21504,      21504,     1024,     4096, 0x0cd3fbe7
-0,      22528,      22528,     1024,     4096, 0x2ce0f199
-0,      23552,      23552,     1024,     4096, 0x9086e9bb
-0,      24576,      24576,     1024,     4096, 0x0d6efb0b
-0,      25600,      25600,     1024,     4096, 0x9dee020c
-0,      26624,      26624,     1024,     4096, 0x96aff453
-0,      27648,      27648,     1024,     4096, 0xe1e9f177
-0,      28672,      28672,     1024,     4096, 0x13b8f893
-0,      29696,      29696,     1024,     4096, 0x4f3a01c8
-0,      30720,      30720,     1024,     4096, 0xa498fa25
-0,      31744,      31744,     1024,     4096, 0x0cd3f293
-0,      32768,      32768,     1024,     4096, 0x6de2eb8f
-0,      33792,      33792,     1024,     4096, 0x0a0d01dc
-0,      34816,      34816,     1024,     4096, 0xde37ff37
-0,      35840,      35840,     1024,     4096, 0xe933f6a5
-0,      36864,      36864,     1024,     4096, 0xd5acf1f3
-0,      37888,      37888,     1024,     4096, 0x82a6f903
-0,      38912,      38912,     1024,     4096, 0x1792f923
-0,      39936,      39936,     1024,     4096, 0x01500504
-0,      40960,      40960,     1024,     4096, 0xe306efc3
-0,      41984,      41984,     1024,     4096, 0x3abcecaf
-0,      43008,      43008,     1024,     4096, 0x5059f861
-0,      44032,      44032,     1024,     4096, 0x9128d187
-0,      45056,      45056,     1024,     4096, 0x61471c76
-0,      46080,      46080,     1024,     4096, 0xd4057d4f
-0,      47104,      47104,     1024,     4096, 0xe5fed87f
-0,      48128,      48128,     1024,     4096, 0x5b0d059a
-0,      49152,      49152,     1024,     4096, 0xfba4c1ad
-0,      50176,      50176,     1024,     4096, 0x4c83f489
-0,      51200,      51200,     1024,     4096, 0xdbebe473
-0,      52224,      52224,     1024,     4096, 0x86efd467
-0,      53248,      53248,     1024,     4096, 0x1919f2f1
-0,      54272,      54272,     1024,     4096, 0x745b12d8
-0,      55296,      55296,     1024,     4096, 0xca86ff49
-0,      56320,      56320,     1024,     4096, 0x2914fdf3
-0,      57344,      57344,     1024,     4096, 0xf949f24f
-0,      58368,      58368,     1024,     4096, 0x6436f791
-0,      59392,      59392,     1024,     4096, 0x693eebaf
-0,      60416,      60416,     1024,     4096, 0xd0740bf0
-0,      61440,      61440,     1024,     4096, 0x08690478
-0,      62464,      62464,     1024,     4096, 0x23a8e259
-0,      63488,      63488,     1024,     4096, 0xba2d0152
-0,      64512,      64512,     1024,     4096, 0xbe65117e
-0,      65536,      65536,     1024,     4096, 0xc8710c58
-0,      66560,      66560,     1024,     4096, 0x25db1d60
-0,      67584,      67584,     1024,     4096, 0xf960016e
-0,      68608,      68608,     1024,     4096, 0x4db0f367
-0,      69632,      69632,     1024,     4096, 0x4154e591
-0,      70656,      70656,     1024,     4096, 0x8c95162c
-0,      71680,      71680,     1024,     4096, 0x2502ffa9
-0,      72704,      72704,     1024,     4096, 0xe66a0792
-0,      73728,      73728,     1024,     4096, 0x6837e7fd
-0,      74752,      74752,     1024,     4096, 0x9613e317
-0,      75776,      75776,     1024,     4096, 0xe087ea1f
-0,      76800,      76800,     1024,     4096, 0x625ae70f
-0,      77824,      77824,     1024,     4096, 0xd9b7fbbb
-0,      78848,      78848,     1024,     4096, 0xb2f800e0
-0,      79872,      79872,     1024,     4096, 0x4fb0134c
-0,      80896,      80896,     1024,     4096, 0xf90ed3ab
-0,      81920,      81920,     1024,     4096, 0x8c13fd53
-0,      82944,      82944,     1024,     4096, 0xdf26d95b
-0,      83968,      83968,     1024,     4096, 0x45e707fc
-0,      84992,      84992,     1024,     4096, 0xd576fe23
-0,      86016,      86016,     1024,     4096, 0x168405f4
-0,      87040,      87040,     1024,     4096, 0x4a78db97
-0,      88064,      88064,     1024,     4096, 0x6d87f713
-0,      89088,      89088,     1024,     4096, 0x30750408
-0,      90112,      90112,     1024,     4096, 0xb011e7b5
-0,      91136,      91136,     1024,     4096, 0x19090af4
-0,      92160,      92160,     1024,     4096, 0x3122f1a7
-0,      93184,      93184,     1024,     4096, 0x3dc4b113
-0,      94208,      94208,     1024,     4096, 0x23c4ec7b
-0,      95232,      95232,     1024,     4096, 0x3340159a
-0,      96256,      96256,     1024,     4096, 0xb06cda91
-0,      97280,      97280,     1024,     4096, 0xd17445ec
-0,      98304,      98304,     1024,     4096, 0xd222d3a1
-0,      99328,      99328,     1024,     4096, 0xd855e61d
-0,     100352,     100352,     1024,     4096, 0x444eebc5
-0,     101376,     101376,     1024,     4096, 0xad3607c0
-0,     102400,     102400,     1024,     4096, 0x549b1aca
-0,     103424,     103424,     1024,     4096, 0x7c6a0a1a
-0,     104448,     104448,     1024,     4096, 0x04d2b3e9
-0,     105472,     105472,     1024,     4096, 0xf15d0216
-0,     106496,     106496,     1024,     4096, 0x5d15f709
-0,     107520,     107520,     1024,     4096, 0x47a7178e
-0,     108544,     108544,     1024,     4096, 0x2aa5e665
-0,     109568,     109568,     1024,     4096, 0x2a9f1a08
-0,     110592,     110592,     1024,     4096, 0xeaa6e103
-0,     111616,     111616,     1024,     4096, 0x8ae100d6
-0,     112640,     112640,     1024,     4096, 0x9585251c
-0,     113664,     113664,     1024,     4096, 0x5eb2289a
-0,     114688,     114688,     1024,     4096, 0x0d0c0cfc
-0,     115712,     115712,     1024,     4096, 0x7e5cd58f
-0,     116736,     116736,     1024,     4096, 0xca3fc9c7
-0,     117760,     117760,     1024,     4096, 0xdda3ebe7
-0,     118784,     118784,     1024,     4096, 0x084dcb41
-0,     119808,     119808,     1024,     4096, 0x0adc2a9c
-0,     120832,     120832,     1024,     4096, 0x64b0fa0f
-0,     121856,     121856,     1024,     4096, 0x225ffadd
-0,     122880,     122880,     1024,     4096, 0x40b0a487
-0,     123904,     123904,     1024,     4096, 0xc2edf0f3
-0,     124928,     124928,     1024,     4096, 0x5078d595
-0,     125952,     125952,     1024,     4096, 0x4ac9bb29
-0,     126976,     126976,     1024,     4096, 0x8a50ad77
-0,     128000,     128000,     1024,     4096, 0xf6bbebc7
-0,     129024,     129024,     1024,     4096, 0x9d33ca29
-0,     130048,     130048,     1024,     4096, 0x863b9ba7
-0,     131072,     131072,     1024,     4096, 0x41cbf17f
-0,     132096,     132096,     1024,     4096, 0x519df567
-0,     133120,     133120,     1024,     4096, 0x59b50359
-0,     134144,     134144,     1024,     4096, 0x5640f0fc
-0,     135168,     135168,     1024,     4096, 0x547df2b8
-0,     136192,     136192,     1024,     4096, 0xae6af2a8
-0,     137216,     137216,     1024,     4096, 0xb370f9ee
-0,     138240,     138240,     1024,     4096, 0x0d691a7f
-0,     139264,     139264,     1024,     4096, 0x8b2cf30d
-0,     140288,     140288,     1024,     4096, 0x8868efce
-0,     141312,     141312,     1024,     4096, 0x6602eb88
-0,     142336,     142336,     1024,     4096, 0x5fbbefd4
-0,     143360,     143360,     1024,     4096, 0xdf81e435
-0,     144384,     144384,     1024,     4096, 0x06b4e637
-0,     145408,     145408,     1024,     4096, 0x741803fb
-0,     146432,     146432,     1024,     4096, 0xf2a7dff9
-0,     147456,     147456,     1024,     4096, 0xbd2ffe0b
-0,     148480,     148480,     1024,     4096, 0xed19f9eb
-0,     149504,     149504,     1024,     4096, 0xa3c4f4a4
-0,     150528,     150528,     1024,     4096, 0xfac20796
-0,     151552,     151552,     1024,     4096, 0x315cf81e
-0,     152576,     152576,     1024,     4096, 0xaf0df76e
-0,     153600,     153600,     1024,     4096, 0x6f92e4ca
-0,     154624,     154624,     1024,     4096, 0xad32079c
-0,     155648,     155648,     1024,     4096, 0xcd03e6e7
-0,     156672,     156672,     1024,     4096, 0xff01f923
-0,     157696,     157696,     1024,     4096, 0xee4d1713
-0,     158720,     158720,     1024,     4096, 0x8db9e3f4
-0,     159744,     159744,     1024,     4096, 0xeef9f20a
-0,     160768,     160768,     1024,     4096, 0xa329d900
-0,     161792,     161792,     1024,     4096, 0xf9d0003b
-0,     162816,     162816,     1024,     4096, 0x9e42f62c
-0,     163840,     163840,     1024,     4096, 0x31f2ee64
-0,     164864,     164864,     1024,     4096, 0x8d340bb6
-0,     165888,     165888,     1024,     4096, 0xd7cbf004
-0,     166912,     166912,     1024,     4096, 0x262105c9
-0,     167936,     167936,     1024,     4096, 0xf3d30dc7
-0,     168960,     168960,     1024,     4096, 0x09adf291
-0,     169984,     169984,     1024,     4096, 0xf2b207e3
-0,     171008,     171008,     1024,     4096, 0x58df0639
-0,     172032,     172032,     1024,     4096, 0x373ad9cd
-0,     173056,     173056,     1024,     4096, 0xb0b2fc8b
-0,     174080,     174080,     1024,     4096, 0xb72af6b8
-0,     175104,     175104,     1024,     4096, 0xcee1f544
-0,     176128,     176128,     1024,     4096, 0xe88dded4
-0,     177152,     177152,     1024,     4096, 0xc606e4d4
-0,     178176,     178176,     1024,     4096, 0x6220006d
-0,     179200,     179200,     1024,     4096, 0xde870592
-0,     180224,     180224,     1024,     4096, 0xb5a6eaaf
-0,     181248,     181248,     1024,     4096, 0xe4eaf266
-0,     182272,     182272,     1024,     4096, 0xdb55f225
-0,     183296,     183296,     1024,     4096, 0x40550828
-0,     184320,     184320,     1024,     4096, 0x3f80fabd
-0,     185344,     185344,     1024,     4096, 0xe9c8eb8d
-0,     186368,     186368,     1024,     4096, 0xd25fe663
-0,     187392,     187392,     1024,     4096, 0x41720adb
-0,     188416,     188416,     1024,     4096, 0x5fd1fc96
-0,     189440,     189440,     1024,     4096, 0x007cf9ec
-0,     190464,     190464,     1024,     4096, 0xeab3efe0
-0,     191488,     191488,     1024,     4096, 0xcb75ee4c
-0,     192512,     192512,     1024,     4096, 0xd866f6c1
-0,     193536,     193536,     1024,     4096, 0xe0c4f911
-0,     194560,     194560,     1024,     4096, 0x7268e790
-0,     195584,     195584,     1024,     4096, 0x6258ee4a
-0,     196608,     196608,     1024,     4096, 0x880b003a
-0,     197632,     197632,     1024,     4096, 0x117bfd71
-0,     198656,     198656,     1024,     4096, 0x1b7900c7
-0,     199680,     199680,     1024,     4096, 0xcf3fe8b5
-0,     200704,     200704,     1024,     4096, 0x9de2f010
-0,     201728,     201728,     1024,     4096, 0xe6b4ff4a
-0,     202752,     202752,     1024,     4096, 0x37420c72
-0,     203776,     203776,     1024,     4096, 0x0560e821
-0,     204800,     204800,     1024,     4096, 0xd676f037
-0,     205824,     205824,     1024,     4096, 0xe141f3e1
-0,     206848,     206848,     1024,     4096, 0x8af10210
-0,     207872,     207872,     1024,     4096, 0x30c5fb99
-0,     208896,     208896,     1024,     4096, 0x39cdf501
-0,     209920,     209920,     1024,     4096, 0x8e37f69d
-0,     210944,     210944,     1024,     4096, 0x6220006d
-0,     211968,     211968,     1024,     4096, 0xde870592
-0,     212992,     212992,     1024,     4096, 0xb5a6eaaf
-0,     214016,     214016,     1024,     4096, 0xe4eaf266
-0,     215040,     215040,     1024,     4096, 0xdb55f225
-0,     216064,     216064,     1024,     4096, 0x40550828
-0,     217088,     217088,     1024,     4096, 0x3f80fabd
-0,     218112,     218112,     1024,     4096, 0xe9c8eb8d
-0,     219136,     219136,     1024,     4096, 0xd25fe663
-0,     220160,     220160,     1024,     4096, 0x41720adb
-0,     221184,     221184,     1024,     4096, 0x5fd1fc96
-0,     222208,     222208,     1024,     4096, 0x007cf9ec
-0,     223232,     223232,     1024,     4096, 0xeab3efe0
-0,     224256,     224256,     1024,     4096, 0xcb75ee4c
-0,     225280,     225280,     1024,     4096, 0xd866f6c1
-0,     226304,     226304,     1024,     4096, 0xe0c4f911
-0,     227328,     227328,     1024,     4096, 0x7268e790
-0,     228352,     228352,     1024,     4096, 0x6258ee4a
-0,     229376,     229376,     1024,     4096, 0x880b003a
-0,     230400,     230400,     1024,     4096, 0x117bfd71
-0,     231424,     231424,     1024,     4096, 0x1b7900c7
-0,     232448,     232448,     1024,     4096, 0xcf3fe8b5
-0,     233472,     233472,     1024,     4096, 0x9de2f010
-0,     234496,     234496,     1024,     4096, 0xe6b4ff4a
-0,     235520,     235520,     1024,     4096, 0x37420c72
-0,     236544,     236544,     1024,     4096, 0x0560e821
-0,     237568,     237568,     1024,     4096, 0xd676f037
-0,     238592,     238592,     1024,     4096, 0xe141f3e1
-0,     239616,     239616,     1024,     4096, 0x8af10210
-0,     240640,     240640,     1024,     4096, 0x30c5fb99
-0,     241664,     241664,     1024,     4096, 0x39cdf501
-0,     242688,     242688,     1024,     4096, 0x8e37f69d
-0,     243712,     243712,     1024,     4096, 0x6220006d
-0,     244736,     244736,     1024,     4096, 0xde870592
-0,     245760,     245760,     1024,     4096, 0xb5a6eaaf
-0,     246784,     246784,     1024,     4096, 0xe4eaf266
-0,     247808,     247808,     1024,     4096, 0xdb55f225
-0,     248832,     248832,     1024,     4096, 0x40550828
-0,     249856,     249856,     1024,     4096, 0x3f80fabd
-0,     250880,     250880,     1024,     4096, 0xe9c8eb8d
-0,     251904,     251904,     1024,     4096, 0xd25fe663
-0,     252928,     252928,     1024,     4096, 0x41720adb
-0,     253952,     253952,     1024,     4096, 0x5fd1fc96
-0,     254976,     254976,     1024,     4096, 0x007cf9ec
-0,     256000,     256000,     1024,     4096, 0xeab3efe0
-0,     257024,     257024,     1024,     4096, 0xcb75ee4c
-0,     258048,     258048,     1024,     4096, 0xd866f6c1
-0,     259072,     259072,     1024,     4096, 0xe0c4f911
-0,     260096,     260096,     1024,     4096, 0x7268e790
-0,     261120,     261120,     1024,     4096, 0x6258ee4a
-0,     262144,     262144,     1024,     4096, 0x880b003a
-0,     263168,     263168,     1024,     4096, 0x117bfd71
-0,     264192,     264192,      408,     1632, 0x495d360a
+0,          0,          0,     4096,    16384, 0xce9de20d
+0,       4096,       4096,     4096,    16384, 0xf67ee93b
+0,       8192,       8192,     4096,    16384, 0xf6e6d461
+0,      12288,      12288,     4096,    16384, 0xf82ee0ad
+0,      16384,      16384,     4096,    16384, 0x840ee65b
+0,      20480,      20480,     4096,    16384, 0x2231d847
+0,      24576,      24576,     4096,    16384, 0x8f36e2ff
+0,      28672,      28672,     4096,    16384, 0x9d92e731
+0,      32768,      32768,     4096,    16384, 0x88eae365
+0,      36864,      36864,     4096,    16384, 0xf67ee93b
+0,      40960,      40960,     4096,    16384, 0xc69ca687
+0,      45056,      45056,     4096,    16384, 0x6c8b77ed
+0,      49152,      49152,     4096,    16384, 0x2cd16f3d
+0,      53248,      53248,     4096,    16384, 0xff3d0332
+0,      57344,      57344,     4096,    16384, 0xce3ee19d
+0,      61440,      61440,     4096,    16384, 0x1b09f9a1
+0,      65536,      65536,     4096,    16384, 0xf0971e9c
+0,      69632,      69632,     4096,    16384, 0xb8850316
+0,      73728,      73728,     4096,    16384, 0x93509c6f
+0,      77824,      77824,     4096,    16384, 0x7d74e3a1
+0,      81920,      81920,     4096,    16384, 0x9e75dceb
+0,      86016,      86016,     4096,    16384, 0x6343dcb5
+0,      90112,      90112,     4096,    16384, 0x9b019581
+0,      94208,      94208,     4096,    16384, 0xc7ac22b0
+0,      98304,      98304,     4096,    16384, 0x9c16ad61
+0,     102400,     102400,     4096,    16384, 0x7e4adae3
+0,     106496,     106496,     4096,    16384, 0x75320f22
+0,     110592,     110592,     4096,    16384, 0x173c2f9e
+0,     114688,     114688,     4096,    16384, 0x35a89857
+0,     118784,     118784,     4096,    16384, 0xb064eae7
+0,     122880,     122880,     4096,    16384, 0xf9e82665
+0,     126976,     126976,     4096,    16384, 0xc451ff2c
+0,     131072,     131072,     4096,    16384, 0xfa1edb59
+0,     135168,     135168,     4096,    16384, 0x8013f9eb
+0,     139264,     139264,     4096,    16384, 0xd3b6be64
+0,     143360,     143360,     4096,    16384, 0x028dae7e
+0,     147456,     147456,     4096,    16384, 0x7dbcf44e
+0,     151552,     151552,     4096,    16384, 0x5dd6dc10
+0,     155648,     155648,     4096,    16384, 0x9aa2db2f
+0,     159744,     159744,     4096,    16384, 0xfa68c18f
+0,     163840,     163840,     4096,    16384, 0x12d3eff6
+0,     167936,     167936,     4096,    16384, 0xde380e83
+0,     172032,     172032,     4096,    16384, 0xe3bdc281
+0,     176128,     176128,     4096,    16384, 0x1fcac9b6
+0,     180224,     180224,     4096,    16384, 0xd433d780
+0,     184320,     184320,     4096,    16384, 0xd057d7a6
+0,     188416,     188416,     4096,    16384, 0x32c6d4db
+0,     192512,     192512,     4096,    16384, 0x4073c5d9
+0,     196608,     196608,     4096,    16384, 0xd0f6e736
+0,     200704,     200704,     4096,    16384, 0xaf0fe40b
+0,     204800,     204800,     4096,    16384, 0x529fe1df
+0,     208896,     208896,     4096,    16384, 0x28eaf1ac
+0,     212992,     212992,     4096,    16384, 0xd433d780
+0,     217088,     217088,     4096,    16384, 0xd057d7a6
+0,     221184,     221184,     4096,    16384, 0x32c6d4db
+0,     225280,     225280,     4096,    16384, 0x4073c5d9
+0,     229376,     229376,     4096,    16384, 0xd0f6e736
+0,     233472,     233472,     4096,    16384, 0xaf0fe40b
+0,     237568,     237568,     4096,    16384, 0x529fe1df
+0,     241664,     241664,     4096,    16384, 0x28eaf1ac
+0,     245760,     245760,     4096,    16384, 0xd433d780
+0,     249856,     249856,     4096,    16384, 0xd057d7a6
+0,     253952,     253952,     4096,    16384, 0x32c6d4db
+0,     258048,     258048,     4096,    16384, 0x4073c5d9
+0,     262144,     262144,     2456,     9824, 0x040d33c4
 0,     264600,     264600,     1411,     5644, 0x34920173
diff --git a/tests/ref/fate/filter-aemphasis-50fm b/tests/ref/fate/filter-aemphasis-50fm
index d28a7538bf..0be4bdddc3 100644
--- a/tests/ref/fate/filter-aemphasis-50fm
+++ b/tests/ref/fate/filter-aemphasis-50fm
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0xb9c5fefd
-0,       1024,       1024,     1024,     4096, 0xb2ae0a90
-0,       2048,       2048,     1024,     4096, 0x97e6e9f3
-0,       3072,       3072,     1024,     4096, 0x5837f26f
-0,       4096,       4096,     1024,     4096, 0x71500376
-0,       5120,       5120,     1024,     4096, 0xb4650378
-0,       6144,       6144,     1024,     4096, 0xd261f5b1
-0,       7168,       7168,     1024,     4096, 0x3038f3fd
-0,       8192,       8192,     1024,     4096, 0x8e1908c6
-0,       9216,       9216,     1024,     4096, 0x1d6bfd33
-0,      10240,      10240,     1024,     4096, 0x7036f23f
-0,      11264,      11264,     1024,     4096, 0xaf73e9a1
-0,      12288,      12288,     1024,     4096, 0x0ba70404
-0,      13312,      13312,     1024,     4096, 0xd34bf249
-0,      14336,      14336,     1024,     4096, 0x0c88fc2b
-0,      15360,      15360,     1024,     4096, 0x55ebf9cf
-0,      16384,      16384,     1024,     4096, 0xc16df0bd
-0,      17408,      17408,     1024,     4096, 0xa635eac5
-0,      18432,      18432,     1024,     4096, 0xb41d059e
-0,      19456,      19456,     1024,     4096, 0xa905f4d3
-0,      20480,      20480,     1024,     4096, 0x2736f1fb
-0,      21504,      21504,     1024,     4096, 0x1a89f007
-0,      22528,      22528,     1024,     4096, 0x81d1fdab
-0,      23552,      23552,     1024,     4096, 0x6156f97d
-0,      24576,      24576,     1024,     4096, 0x1971ec89
-0,      25600,      25600,     1024,     4096, 0xdca1ec4f
-0,      26624,      26624,     1024,     4096, 0x116ffcf5
-0,      27648,      27648,     1024,     4096, 0xc391fdc9
-0,      28672,      28672,     1024,     4096, 0x85e0ef45
-0,      29696,      29696,     1024,     4096, 0x81d3012c
-0,      30720,      30720,     1024,     4096, 0x403ef11b
-0,      31744,      31744,     1024,     4096, 0x3ca6f16d
-0,      32768,      32768,     1024,     4096, 0x6775feb1
-0,      33792,      33792,     1024,     4096, 0xb2ae0a90
-0,      34816,      34816,     1024,     4096, 0x97e6e9f3
-0,      35840,      35840,     1024,     4096, 0x5837f26f
-0,      36864,      36864,     1024,     4096, 0x71500376
-0,      37888,      37888,     1024,     4096, 0xb4650378
-0,      38912,      38912,     1024,     4096, 0xd261f5b1
-0,      39936,      39936,     1024,     4096, 0x3038f3fd
-0,      40960,      40960,     1024,     4096, 0x8e1908c6
-0,      41984,      41984,     1024,     4096, 0x1d6bfd33
-0,      43008,      43008,     1024,     4096, 0x7036f23f
-0,      44032,      44032,     1024,     4096, 0xabb8fbdb
-0,      45056,      45056,     1024,     4096, 0x8980f03f
-0,      46080,      46080,     1024,     4096, 0xc5a0f4ed
-0,      47104,      47104,     1024,     4096, 0x04ac0314
-0,      48128,      48128,     1024,     4096, 0xfdd0dca7
-0,      49152,      49152,     1024,     4096, 0x799bf1fd
-0,      50176,      50176,     1024,     4096, 0xbaa9fdfd
-0,      51200,      51200,     1024,     4096, 0xeb7cf571
-0,      52224,      52224,     1024,     4096, 0xe33b0e5a
-0,      53248,      53248,     1024,     4096, 0x8017f117
-0,      54272,      54272,     1024,     4096, 0x5fccf35b
-0,      55296,      55296,     1024,     4096, 0xbd69f9cb
-0,      56320,      56320,     1024,     4096, 0x4d09f905
-0,      57344,      57344,     1024,     4096, 0xfa53f185
-0,      58368,      58368,     1024,     4096, 0x35b907e4
-0,      59392,      59392,     1024,     4096, 0xf639fedb
-0,      60416,      60416,     1024,     4096, 0x1e58f771
-0,      61440,      61440,     1024,     4096, 0xb13d18d4
-0,      62464,      62464,     1024,     4096, 0xc7930842
-0,      63488,      63488,     1024,     4096, 0x1b4702d4
-0,      64512,      64512,     1024,     4096, 0xad75dd27
-0,      65536,      65536,     1024,     4096, 0x9a1ceb7b
-0,      66560,      66560,     1024,     4096, 0xead809ac
-0,      67584,      67584,     1024,     4096, 0xbdaf1b5a
-0,      68608,      68608,     1024,     4096, 0xa90a00a6
-0,      69632,      69632,     1024,     4096, 0xb39f0d0a
-0,      70656,      70656,     1024,     4096, 0xbaf60950
-0,      71680,      71680,     1024,     4096, 0x57d3eb53
-0,      72704,      72704,     1024,     4096, 0x8a77f7ff
-0,      73728,      73728,     1024,     4096, 0xd2bfe3b9
-0,      74752,      74752,     1024,     4096, 0xd4c5e287
-0,      75776,      75776,     1024,     4096, 0x8b940480
-0,      76800,      76800,     1024,     4096, 0x63a9134e
-0,      77824,      77824,     1024,     4096, 0x2215ee4d
-0,      78848,      78848,     1024,     4096, 0x8777f743
-0,      79872,      79872,     1024,     4096, 0x633e05ac
-0,      80896,      80896,     1024,     4096, 0x3b1ee685
-0,      81920,      81920,     1024,     4096, 0x57d30238
-0,      82944,      82944,     1024,     4096, 0xfb241180
-0,      83968,      83968,     1024,     4096, 0x733aea25
-0,      84992,      84992,     1024,     4096, 0x1677ea57
-0,      86016,      86016,     1024,     4096, 0xdf5fd6d7
-0,      87040,      87040,     1024,     4096, 0x36520bca
-0,      88064,      88064,     1024,     4096, 0x1e860a06
-0,      89088,      89088,     1024,     4096, 0x3305428c
-0,      90112,      90112,     1024,     4096, 0xe1a8008c
-0,      91136,      91136,     1024,     4096, 0xd81ff15f
-0,      92160,      92160,     1024,     4096, 0x0ccad2e7
-0,      93184,      93184,     1024,     4096, 0xc613bf29
-0,      94208,      94208,     1024,     4096, 0x5411ef73
-0,      95232,      95232,     1024,     4096, 0x51f7e01b
-0,      96256,      96256,     1024,     4096, 0x23d1ee5b
-0,      97280,      97280,     1024,     4096, 0xbc9721e2
-0,      98304,      98304,     1024,     4096, 0x0d49c94b
-0,      99328,      99328,     1024,     4096, 0xa102d963
-0,     100352,     100352,     1024,     4096, 0x5fd8fe95
-0,     101376,     101376,     1024,     4096, 0xd8c738e0
-0,     102400,     102400,     1024,     4096, 0xa9882686
-0,     103424,     103424,     1024,     4096, 0xfa30c4b1
-0,     104448,     104448,     1024,     4096, 0x76ecdb31
-0,     105472,     105472,     1024,     4096, 0x540ccff9
-0,     106496,     106496,     1024,     4096, 0xb365cf5f
-0,     107520,     107520,     1024,     4096, 0x3ab51dcc
-0,     108544,     108544,     1024,     4096, 0x266fd553
-0,     109568,     109568,     1024,     4096, 0xdac42f58
-0,     110592,     110592,     1024,     4096, 0x3ab23628
-0,     111616,     111616,     1024,     4096, 0x94c9a8bf
-0,     112640,     112640,     1024,     4096, 0x7ba5ff41
-0,     113664,     113664,     1024,     4096, 0xc6bfd5db
-0,     114688,     114688,     1024,     4096, 0x6b9ef98f
-0,     115712,     115712,     1024,     4096, 0xe5621a02
-0,     116736,     116736,     1024,     4096, 0xeedd28ec
-0,     117760,     117760,     1024,     4096, 0xddf5e045
-0,     118784,     118784,     1024,     4096, 0x49f0e0a9
-0,     119808,     119808,     1024,     4096, 0xd18f0ca0
-0,     120832,     120832,     1024,     4096, 0xa0fa00c6
-0,     121856,     121856,     1024,     4096, 0x9e406e6c
-0,     122880,     122880,     1024,     4096, 0x1a3f23bc
-0,     123904,     123904,     1024,     4096, 0xcbf409d0
-0,     124928,     124928,     1024,     4096, 0x499b3ac8
-0,     125952,     125952,     1024,     4096, 0x2ef93980
-0,     126976,     126976,     1024,     4096, 0x83092bfa
-0,     128000,     128000,     1024,     4096, 0x4838093a
-0,     129024,     129024,     1024,     4096, 0xd1bff209
-0,     130048,     130048,     1024,     4096, 0xdef04f12
-0,     131072,     131072,     1024,     4096, 0x130dd787
-0,     132096,     132096,     1024,     4096, 0xc8621030
-0,     133120,     133120,     1024,     4096, 0x1b2bf867
-0,     134144,     134144,     1024,     4096, 0x01220341
-0,     135168,     135168,     1024,     4096, 0x7c8dfdb1
-0,     136192,     136192,     1024,     4096, 0xe81df813
-0,     137216,     137216,     1024,     4096, 0xf820fe8d
-0,     138240,     138240,     1024,     4096, 0x1f9dfe49
-0,     139264,     139264,     1024,     4096, 0x2f84f144
-0,     140288,     140288,     1024,     4096, 0xab9deec8
-0,     141312,     141312,     1024,     4096, 0x7d7bf5b9
-0,     142336,     142336,     1024,     4096, 0xbecff5ea
-0,     143360,     143360,     1024,     4096, 0x2872e5c0
-0,     144384,     144384,     1024,     4096, 0x6e2ff713
-0,     145408,     145408,     1024,     4096, 0x0b2df757
-0,     146432,     146432,     1024,     4096, 0x5030fa0a
-0,     147456,     147456,     1024,     4096, 0xb5b5f3da
-0,     148480,     148480,     1024,     4096, 0xce4cf9a6
-0,     149504,     149504,     1024,     4096, 0x9eacf61f
-0,     150528,     150528,     1024,     4096, 0x3bfff549
-0,     151552,     151552,     1024,     4096, 0x4eeae60a
-0,     152576,     152576,     1024,     4096, 0x188ef258
-0,     153600,     153600,     1024,     4096, 0xb546f30d
-0,     154624,     154624,     1024,     4096, 0x0a84e6f8
-0,     155648,     155648,     1024,     4096, 0xe7b0ee27
-0,     156672,     156672,     1024,     4096, 0x04d0f6ee
-0,     157696,     157696,     1024,     4096, 0x09fa042a
-0,     158720,     158720,     1024,     4096, 0x5a3cf418
-0,     159744,     159744,     1024,     4096, 0x89d8017f
-0,     160768,     160768,     1024,     4096, 0x64eb0320
-0,     161792,     161792,     1024,     4096, 0xe40df279
-0,     162816,     162816,     1024,     4096, 0x4dc4fd25
-0,     163840,     163840,     1024,     4096, 0x466af97c
-0,     164864,     164864,     1024,     4096, 0x7306f4e2
-0,     165888,     165888,     1024,     4096, 0x9782eda4
-0,     166912,     166912,     1024,     4096, 0x3635fad8
-0,     167936,     167936,     1024,     4096, 0x3344eabe
-0,     168960,     168960,     1024,     4096, 0x9143fda0
-0,     169984,     169984,     1024,     4096, 0x33e7eb7f
-0,     171008,     171008,     1024,     4096, 0x4ca0e947
-0,     172032,     172032,     1024,     4096, 0x5b1bf80d
-0,     173056,     173056,     1024,     4096, 0xbb15eab7
-0,     174080,     174080,     1024,     4096, 0xd800f7cb
-0,     175104,     175104,     1024,     4096, 0xd3d4e960
-0,     176128,     176128,     1024,     4096, 0x2fc30f2f
-0,     177152,     177152,     1024,     4096, 0xb410f092
-0,     178176,     178176,     1024,     4096, 0x4350fddf
-0,     179200,     179200,     1024,     4096, 0x477a07c6
-0,     180224,     180224,     1024,     4096, 0x9d48ed59
-0,     181248,     181248,     1024,     4096, 0xd6ae02a8
-0,     182272,     182272,     1024,     4096, 0x206be433
-0,     183296,     183296,     1024,     4096, 0xf465fc54
-0,     184320,     184320,     1024,     4096, 0x745dacb9
-0,     185344,     185344,     1024,     4096, 0x3783e765
-0,     186368,     186368,     1024,     4096, 0x479feb48
-0,     187392,     187392,     1024,     4096, 0x34f2050f
-0,     188416,     188416,     1024,     4096, 0x9df1f441
-0,     189440,     189440,     1024,     4096, 0x1864f225
-0,     190464,     190464,     1024,     4096, 0xebacf084
-0,     191488,     191488,     1024,     4096, 0xaa14f082
-0,     192512,     192512,     1024,     4096, 0xbac10f8b
-0,     193536,     193536,     1024,     4096, 0xa4520210
-0,     194560,     194560,     1024,     4096, 0xfee4f8c3
-0,     195584,     195584,     1024,     4096, 0xadf5e4c2
-0,     196608,     196608,     1024,     4096, 0x7bf20584
-0,     197632,     197632,     1024,     4096, 0x541debf5
-0,     198656,     198656,     1024,     4096, 0x9a350796
-0,     199680,     199680,     1024,     4096, 0x1388fa83
-0,     200704,     200704,     1024,     4096, 0x9839b0c2
-0,     201728,     201728,     1024,     4096, 0xfc9afff0
-0,     202752,     202752,     1024,     4096, 0x73100a7c
-0,     203776,     203776,     1024,     4096, 0xb56df070
-0,     204800,     204800,     1024,     4096, 0x71d8efa7
-0,     205824,     205824,     1024,     4096, 0xde800412
-0,     206848,     206848,     1024,     4096, 0x7bf7f840
-0,     207872,     207872,     1024,     4096, 0x1480044d
-0,     208896,     208896,     1024,     4096, 0x60201217
-0,     209920,     209920,     1024,     4096, 0xb410f092
-0,     210944,     210944,     1024,     4096, 0x4350fddf
-0,     211968,     211968,     1024,     4096, 0x477a07c6
-0,     212992,     212992,     1024,     4096, 0x9d48ed59
-0,     214016,     214016,     1024,     4096, 0xd6ae02a8
-0,     215040,     215040,     1024,     4096, 0x206be433
-0,     216064,     216064,     1024,     4096, 0xf465fc54
-0,     217088,     217088,     1024,     4096, 0x745dacb9
-0,     218112,     218112,     1024,     4096, 0x3783e765
-0,     219136,     219136,     1024,     4096, 0x479feb48
-0,     220160,     220160,     1024,     4096, 0x34f2050f
-0,     221184,     221184,     1024,     4096, 0x9df1f441
-0,     222208,     222208,     1024,     4096, 0x1864f225
-0,     223232,     223232,     1024,     4096, 0xebacf084
-0,     224256,     224256,     1024,     4096, 0xaa14f082
-0,     225280,     225280,     1024,     4096, 0xbac10f8b
-0,     226304,     226304,     1024,     4096, 0xa4520210
-0,     227328,     227328,     1024,     4096, 0xfee4f8c3
-0,     228352,     228352,     1024,     4096, 0xadf5e4c2
-0,     229376,     229376,     1024,     4096, 0x7bf20584
-0,     230400,     230400,     1024,     4096, 0x541debf5
-0,     231424,     231424,     1024,     4096, 0x9a350796
-0,     232448,     232448,     1024,     4096, 0x1388fa83
-0,     233472,     233472,     1024,     4096, 0x9839b0c2
-0,     234496,     234496,     1024,     4096, 0xfc9afff0
-0,     235520,     235520,     1024,     4096, 0x73100a7c
-0,     236544,     236544,     1024,     4096, 0xb56df070
-0,     237568,     237568,     1024,     4096, 0x71d8efa7
-0,     238592,     238592,     1024,     4096, 0xde800412
-0,     239616,     239616,     1024,     4096, 0x7bf7f840
-0,     240640,     240640,     1024,     4096, 0x1480044d
-0,     241664,     241664,     1024,     4096, 0x60201217
-0,     242688,     242688,     1024,     4096, 0xb410f092
-0,     243712,     243712,     1024,     4096, 0x4350fddf
-0,     244736,     244736,     1024,     4096, 0x477a07c6
-0,     245760,     245760,     1024,     4096, 0x9d48ed59
-0,     246784,     246784,     1024,     4096, 0xd6ae02a8
-0,     247808,     247808,     1024,     4096, 0x206be433
-0,     248832,     248832,     1024,     4096, 0xf465fc54
-0,     249856,     249856,     1024,     4096, 0x745dacb9
-0,     250880,     250880,     1024,     4096, 0x3783e765
-0,     251904,     251904,     1024,     4096, 0x479feb48
-0,     252928,     252928,     1024,     4096, 0x34f2050f
-0,     253952,     253952,     1024,     4096, 0x9df1f441
-0,     254976,     254976,     1024,     4096, 0x1864f225
-0,     256000,     256000,     1024,     4096, 0xebacf084
-0,     257024,     257024,     1024,     4096, 0xaa14f082
-0,     258048,     258048,     1024,     4096, 0xbac10f8b
-0,     259072,     259072,     1024,     4096, 0xa4520210
-0,     260096,     260096,     1024,     4096, 0xfee4f8c3
-0,     261120,     261120,     1024,     4096, 0xadf5e4c2
-0,     262144,     262144,     1024,     4096, 0x7bf20584
-0,     263168,     263168,     1024,     4096, 0x541debf5
-0,     264192,     264192,      408,     1632, 0xadd02d39
+0,          0,          0,     4096,    16384, 0xb92ae60d
+0,       4096,       4096,     4096,    16384, 0x4f0bf0ab
+0,       8192,       8192,     4096,    16384, 0x11f9e1f7
+0,      12288,      12288,     4096,    16384, 0x8f95ec65
+0,      16384,      16384,     4096,    16384, 0x17b7d611
+0,      20480,      20480,     4096,    16384, 0x1db5d957
+0,      24576,      24576,     4096,    16384, 0xece9d3c3
+0,      28672,      28672,     4096,    16384, 0x2a0ed317
+0,      32768,      32768,     4096,    16384, 0x2608e5c1
+0,      36864,      36864,     4096,    16384, 0x4f0bf0ab
+0,      40960,      40960,     4096,    16384, 0x0e3ef431
+0,      45056,      45056,     4096,    16384, 0x73cbc505
+0,      49152,      49152,     4096,    16384, 0x8e5df3e3
+0,      53248,      53248,     4096,    16384, 0xa342d76f
+0,      57344,      57344,     4096,    16384, 0x09f4efd3
+0,      61440,      61440,     4096,    16384, 0xd99d0120
+0,      65536,      65536,     4096,    16384, 0xde061136
+0,      69632,      69632,     4096,    16384, 0x73cbf9bb
+0,      73728,      73728,     4096,    16384, 0x548fde1d
+0,      77824,      77824,     4096,    16384, 0x4b61d1df
+0,      81920,      81920,     4096,    16384, 0xaf59e843
+0,      86016,      86016,     4096,    16384, 0xd3272f42
+0,      90112,      90112,     4096,    16384, 0xa8bb8419
+0,      94208,      94208,     4096,    16384, 0x4bebdfe9
+0,      98304,      98304,     4096,    16384, 0x63b0da41
+0,     102400,     102400,     4096,    16384, 0x6999967f
+0,     106496,     106496,     4096,    16384, 0xb6a8f1e5
+0,     110592,     110592,     4096,    16384, 0x4627b421
+0,     114688,     114688,     4096,    16384, 0x03321ce0
+0,     118784,     118784,     4096,    16384, 0xfb355c8a
+0,     122880,     122880,     4096,    16384, 0xccdca1d4
+0,     126976,     126976,     4096,    16384, 0x9c06765e
+0,     131072,     131072,     4096,    16384, 0x1d62e36e
+0,     135168,     135168,     4096,    16384, 0x6623f2c7
+0,     139264,     139264,     4096,    16384, 0xb473cbdc
+0,     143360,     143360,     4096,    16384, 0xff9dce61
+0,     147456,     147456,     4096,    16384, 0x57c5d915
+0,     151552,     151552,     4096,    16384, 0x08deb294
+0,     155648,     155648,     4096,    16384, 0x71b9dd75
+0,     159744,     159744,     4096,    16384, 0x6e1ef44c
+0,     163840,     163840,     4096,    16384, 0xaf23d707
+0,     167936,     167936,     4096,    16384, 0x21f8bd51
+0,     172032,     172032,     4096,    16384, 0x1c86c41c
+0,     176128,     176128,     4096,    16384, 0x4aa00584
+0,     180224,     180224,     4096,    16384, 0xdf88d0a6
+0,     184320,     184320,     4096,    16384, 0x6cf88493
+0,     188416,     188416,     4096,    16384, 0xb2f5c799
+0,     192512,     192512,     4096,    16384, 0x64f0ef2f
+0,     196608,     196608,     4096,    16384, 0x0f08f3a1
+0,     200704,     200704,     4096,    16384, 0xb880abbc
+0,     204800,     204800,     4096,    16384, 0x0384f055
+0,     208896,     208896,     4096,    16384, 0x0331086c
+0,     212992,     212992,     4096,    16384, 0xdf88d0a6
+0,     217088,     217088,     4096,    16384, 0x6cf88493
+0,     221184,     221184,     4096,    16384, 0xb2f5c799
+0,     225280,     225280,     4096,    16384, 0x64f0ef2f
+0,     229376,     229376,     4096,    16384, 0x0f08f3a1
+0,     233472,     233472,     4096,    16384, 0xb880abbc
+0,     237568,     237568,     4096,    16384, 0x0384f055
+0,     241664,     241664,     4096,    16384, 0x0331086c
+0,     245760,     245760,     4096,    16384, 0xdf88d0a6
+0,     249856,     249856,     4096,    16384, 0x6cf88493
+0,     253952,     253952,     4096,    16384, 0xb2f5c799
+0,     258048,     258048,     4096,    16384, 0x64f0ef2f
+0,     262144,     262144,     2456,     9824, 0x80b21ec1
diff --git a/tests/ref/fate/filter-aemphasis-75kf b/tests/ref/fate/filter-aemphasis-75kf
index 765f32ec4c..7317007997 100644
--- a/tests/ref/fate/filter-aemphasis-75kf
+++ b/tests/ref/fate/filter-aemphasis-75kf
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x7b2101ec
-0,       1024,       1024,     1024,     4096, 0x5c16fc93
-0,       2048,       2048,     1024,     4096, 0x62bdee5d
-0,       3072,       3072,     1024,     4096, 0x0299ee41
-0,       4096,       4096,     1024,     4096, 0xdd2efe95
-0,       5120,       5120,     1024,     4096, 0xe9380628
-0,       6144,       6144,     1024,     4096, 0x5d84f1f3
-0,       7168,       7168,     1024,     4096, 0x598beeb3
-0,       8192,       8192,     1024,     4096, 0x21fefb25
-0,       9216,       9216,     1024,     4096, 0x053afefb
-0,      10240,      10240,     1024,     4096, 0xb993fd2b
-0,      11264,      11264,     1024,     4096, 0xa05aeae1
-0,      12288,      12288,     1024,     4096, 0x3e1ff497
-0,      13312,      13312,     1024,     4096, 0x7f5a086c
-0,      14336,      14336,     1024,     4096, 0xad580300
-0,      15360,      15360,     1024,     4096, 0xbcaff05d
-0,      16384,      16384,     1024,     4096, 0xfd8def91
-0,      17408,      17408,     1024,     4096, 0x5cfdfa7b
-0,      18432,      18432,     1024,     4096, 0xd67dff11
-0,      19456,      19456,     1024,     4096, 0x01b2ff0f
-0,      20480,      20480,     1024,     4096, 0x7138ec9d
-0,      21504,      21504,     1024,     4096, 0xb09ef761
-0,      22528,      22528,     1024,     4096, 0x92f3f97b
-0,      23552,      23552,     1024,     4096, 0x2ee8fe7d
-0,      24576,      24576,     1024,     4096, 0x290ef437
-0,      25600,      25600,     1024,     4096, 0x37daee71
-0,      26624,      26624,     1024,     4096, 0x63e9f5e1
-0,      27648,      27648,     1024,     4096, 0x643008d0
-0,      28672,      28672,     1024,     4096, 0xa427fc59
-0,      29696,      29696,     1024,     4096, 0xf196ed25
-0,      30720,      30720,     1024,     4096, 0xc1edeab9
-0,      31744,      31744,     1024,     4096, 0xaf9a0280
-0,      32768,      32768,     1024,     4096, 0x86cf0026
-0,      33792,      33792,     1024,     4096, 0x5c16fc93
-0,      34816,      34816,     1024,     4096, 0x62bdee5d
-0,      35840,      35840,     1024,     4096, 0x0299ee41
-0,      36864,      36864,     1024,     4096, 0xdd2efe95
-0,      37888,      37888,     1024,     4096, 0xe9380628
-0,      38912,      38912,     1024,     4096, 0x5d84f1f3
-0,      39936,      39936,     1024,     4096, 0x598beeb3
-0,      40960,      40960,     1024,     4096, 0x21fefb25
-0,      41984,      41984,     1024,     4096, 0x053afefb
-0,      43008,      43008,     1024,     4096, 0xb993fd2b
-0,      44032,      44032,     1024,     4096, 0xeccc08c6
-0,      45056,      45056,     1024,     4096, 0xceb5f1af
-0,      46080,      46080,     1024,     4096, 0xfee9e279
-0,      47104,      47104,     1024,     4096, 0x4b2a02cc
-0,      48128,      48128,     1024,     4096, 0xdc22ff19
-0,      49152,      49152,     1024,     4096, 0x557cf4e9
-0,      50176,      50176,     1024,     4096, 0x7fe2042c
-0,      51200,      51200,     1024,     4096, 0x0793eb0b
-0,      52224,      52224,     1024,     4096, 0x8bba058e
-0,      53248,      53248,     1024,     4096, 0x3336f807
-0,      54272,      54272,     1024,     4096, 0x86cef823
-0,      55296,      55296,     1024,     4096, 0x07cbefb1
-0,      56320,      56320,     1024,     4096, 0x01c3fab1
-0,      57344,      57344,     1024,     4096, 0xb9a60534
-0,      58368,      58368,     1024,     4096, 0xf8cf0e82
-0,      59392,      59392,     1024,     4096, 0x5caef379
-0,      60416,      60416,     1024,     4096, 0xe2a9dbbd
-0,      61440,      61440,     1024,     4096, 0xe31c09a6
-0,      62464,      62464,     1024,     4096, 0x0524f37d
-0,      63488,      63488,     1024,     4096, 0x92101602
-0,      64512,      64512,     1024,     4096, 0xed00d97b
-0,      65536,      65536,     1024,     4096, 0x2058f609
-0,      66560,      66560,     1024,     4096, 0x30d20634
-0,      67584,      67584,     1024,     4096, 0xa0ddf055
-0,      68608,      68608,     1024,     4096, 0xe23e1946
-0,      69632,      69632,     1024,     4096, 0x2c1af97f
-0,      70656,      70656,     1024,     4096, 0x77f6f2a9
-0,      71680,      71680,     1024,     4096, 0x2b67ff03
-0,      72704,      72704,     1024,     4096, 0x3e26f14b
-0,      73728,      73728,     1024,     4096, 0x0439e425
-0,      74752,      74752,     1024,     4096, 0xb08ef9d1
-0,      75776,      75776,     1024,     4096, 0xac9fede5
-0,      76800,      76800,     1024,     4096, 0xa637f3e7
-0,      77824,      77824,     1024,     4096, 0xbf7307b0
-0,      78848,      78848,     1024,     4096, 0xce41f5b3
-0,      79872,      79872,     1024,     4096, 0xd6b8f619
-0,      80896,      80896,     1024,     4096, 0x5837097e
-0,      81920,      81920,     1024,     4096, 0xc6affc23
-0,      82944,      82944,     1024,     4096, 0x630e070c
-0,      83968,      83968,     1024,     4096, 0x570ffcd5
-0,      84992,      84992,     1024,     4096, 0x71ede781
-0,      86016,      86016,     1024,     4096, 0x703afda5
-0,      87040,      87040,     1024,     4096, 0x71390f4c
-0,      88064,      88064,     1024,     4096, 0x3961f293
-0,      89088,      89088,     1024,     4096, 0xd288b2b9
-0,      90112,      90112,     1024,     4096, 0xbf4c2946
-0,      91136,      91136,     1024,     4096, 0x71deea79
-0,      92160,      92160,     1024,     4096, 0xbb37625e
-0,      93184,      93184,     1024,     4096, 0xd84df25b
-0,      94208,      94208,     1024,     4096, 0xfde1fc9f
-0,      95232,      95232,     1024,     4096, 0x1a49de0f
-0,      96256,      96256,     1024,     4096, 0x1b11eb13
-0,      97280,      97280,     1024,     4096, 0x4ae88343
-0,      98304,      98304,     1024,     4096, 0x299c361a
-0,      99328,      99328,     1024,     4096, 0x14b7d5cd
-0,     100352,     100352,     1024,     4096, 0x40a318fc
-0,     101376,     101376,     1024,     4096, 0x7fb1d8c7
-0,     102400,     102400,     1024,     4096, 0xfe57c82d
-0,     103424,     103424,     1024,     4096, 0xf9a605fc
-0,     104448,     104448,     1024,     4096, 0x29c912f2
-0,     105472,     105472,     1024,     4096, 0x9886da01
-0,     106496,     106496,     1024,     4096, 0x0398f57f
-0,     107520,     107520,     1024,     4096, 0xed1901c8
-0,     108544,     108544,     1024,     4096, 0xa439ef27
-0,     109568,     109568,     1024,     4096, 0xf1a0ca51
-0,     110592,     110592,     1024,     4096, 0xea605b14
-0,     111616,     111616,     1024,     4096, 0xf014a837
-0,     112640,     112640,     1024,     4096, 0x363e3b90
-0,     113664,     113664,     1024,     4096, 0x24a10ca4
-0,     114688,     114688,     1024,     4096, 0x5b562146
-0,     115712,     115712,     1024,     4096, 0xb1291324
-0,     116736,     116736,     1024,     4096, 0xd4797cbe
-0,     117760,     117760,     1024,     4096, 0x526813b4
-0,     118784,     118784,     1024,     4096, 0x634bc887
-0,     119808,     119808,     1024,     4096, 0x6523e6c3
-0,     120832,     120832,     1024,     4096, 0xa244da0d
-0,     121856,     121856,     1024,     4096, 0xec5ba956
-0,     122880,     122880,     1024,     4096, 0xf31b57a6
-0,     123904,     123904,     1024,     4096, 0xf5262d84
-0,     124928,     124928,     1024,     4096, 0x50c37f34
-0,     125952,     125952,     1024,     4096, 0x81286432
-0,     126976,     126976,     1024,     4096, 0x4d2340a2
-0,     128000,     128000,     1024,     4096, 0x37be060a
-0,     129024,     129024,     1024,     4096, 0xdad60e30
-0,     130048,     130048,     1024,     4096, 0x376c38f6
-0,     131072,     131072,     1024,     4096, 0xe44fe77d
-0,     132096,     132096,     1024,     4096, 0xe7a4f806
-0,     133120,     133120,     1024,     4096, 0xc652fc4c
-0,     134144,     134144,     1024,     4096, 0xb8e8fbb6
-0,     135168,     135168,     1024,     4096, 0x95480279
-0,     136192,     136192,     1024,     4096, 0x095b0036
-0,     137216,     137216,     1024,     4096, 0x5397fc40
-0,     138240,     138240,     1024,     4096, 0xb836f79b
-0,     139264,     139264,     1024,     4096, 0x370ef64f
-0,     140288,     140288,     1024,     4096, 0xd6aefae9
-0,     141312,     141312,     1024,     4096, 0xbe08f80a
-0,     142336,     142336,     1024,     4096, 0x5b41ff1c
-0,     143360,     143360,     1024,     4096, 0x5b86faee
-0,     144384,     144384,     1024,     4096, 0x3a0ff0b5
-0,     145408,     145408,     1024,     4096, 0x6157fa3f
-0,     146432,     146432,     1024,     4096, 0x60a9f906
-0,     147456,     147456,     1024,     4096, 0x8ecdfc26
-0,     148480,     148480,     1024,     4096, 0x0146f112
-0,     149504,     149504,     1024,     4096, 0xc163fe87
-0,     150528,     150528,     1024,     4096, 0x2e78f5c4
-0,     151552,     151552,     1024,     4096, 0x3e9bed7d
-0,     152576,     152576,     1024,     4096, 0xb776009c
-0,     153600,     153600,     1024,     4096, 0xea1efaba
-0,     154624,     154624,     1024,     4096, 0x45f2ea57
-0,     155648,     155648,     1024,     4096, 0x5456f53f
-0,     156672,     156672,     1024,     4096, 0x7e3bf2b9
-0,     157696,     157696,     1024,     4096, 0x0952fd4b
-0,     158720,     158720,     1024,     4096, 0xb8e6f10c
-0,     159744,     159744,     1024,     4096, 0xa07ff79c
-0,     160768,     160768,     1024,     4096, 0x55bafbfd
-0,     161792,     161792,     1024,     4096, 0xab81ed83
-0,     162816,     162816,     1024,     4096, 0x5a610066
-0,     163840,     163840,     1024,     4096, 0x0ac90160
-0,     164864,     164864,     1024,     4096, 0x5745f93f
-0,     165888,     165888,     1024,     4096, 0x9cf2f284
-0,     166912,     166912,     1024,     4096, 0xd350ef0b
-0,     167936,     167936,     1024,     4096, 0x3f47f217
-0,     168960,     168960,     1024,     4096, 0xf178fbae
-0,     169984,     169984,     1024,     4096, 0xf74a056a
-0,     171008,     171008,     1024,     4096, 0xc345ede5
-0,     172032,     172032,     1024,     4096, 0xa672f2be
-0,     173056,     173056,     1024,     4096, 0xd5bcf917
-0,     174080,     174080,     1024,     4096, 0x8126f699
-0,     175104,     175104,     1024,     4096, 0xa0d3ebfd
-0,     176128,     176128,     1024,     4096, 0x577f1d75
-0,     177152,     177152,     1024,     4096, 0x6047ffe4
-0,     178176,     178176,     1024,     4096, 0xe89df7c9
-0,     179200,     179200,     1024,     4096, 0x2ea3f621
-0,     180224,     180224,     1024,     4096, 0xda4f05ef
-0,     181248,     181248,     1024,     4096, 0x5d7c07ba
-0,     182272,     182272,     1024,     4096, 0x461be644
-0,     183296,     183296,     1024,     4096, 0xce47f434
-0,     184320,     184320,     1024,     4096, 0xb30bacee
-0,     185344,     185344,     1024,     4096, 0x1c85f71d
-0,     186368,     186368,     1024,     4096, 0xc9a0f1cd
-0,     187392,     187392,     1024,     4096, 0xd939edde
-0,     188416,     188416,     1024,     4096, 0xa8e0e086
-0,     189440,     189440,     1024,     4096, 0xc0b6ff00
-0,     190464,     190464,     1024,     4096, 0xdd84005e
-0,     191488,     191488,     1024,     4096, 0x97d103bf
-0,     192512,     192512,     1024,     4096, 0xa0241ffc
-0,     193536,     193536,     1024,     4096, 0x91a4f35a
-0,     194560,     194560,     1024,     4096, 0x61abf0b0
-0,     195584,     195584,     1024,     4096, 0xa5d10111
-0,     196608,     196608,     1024,     4096, 0x0e71f5ce
-0,     197632,     197632,     1024,     4096, 0x4796f9fa
-0,     198656,     198656,     1024,     4096, 0x561bf893
-0,     199680,     199680,     1024,     4096, 0x70ddfb78
-0,     200704,     200704,     1024,     4096, 0xe4f4c2b6
-0,     201728,     201728,     1024,     4096, 0x5452f356
-0,     202752,     202752,     1024,     4096, 0x84e2fd14
-0,     203776,     203776,     1024,     4096, 0xd04b00a5
-0,     204800,     204800,     1024,     4096, 0x01ca0f7c
-0,     205824,     205824,     1024,     4096, 0x1685ef21
-0,     206848,     206848,     1024,     4096, 0x50effa4f
-0,     207872,     207872,     1024,     4096, 0xb5a9e82f
-0,     208896,     208896,     1024,     4096, 0xa7343704
-0,     209920,     209920,     1024,     4096, 0x6047ffe4
-0,     210944,     210944,     1024,     4096, 0xe89df7c9
-0,     211968,     211968,     1024,     4096, 0x2ea3f621
-0,     212992,     212992,     1024,     4096, 0xda4f05ef
-0,     214016,     214016,     1024,     4096, 0x5d7c07ba
-0,     215040,     215040,     1024,     4096, 0x461be644
-0,     216064,     216064,     1024,     4096, 0xce47f434
-0,     217088,     217088,     1024,     4096, 0xb30bacee
-0,     218112,     218112,     1024,     4096, 0x1c85f71d
-0,     219136,     219136,     1024,     4096, 0xc9a0f1cd
-0,     220160,     220160,     1024,     4096, 0xd939edde
-0,     221184,     221184,     1024,     4096, 0xa8e0e086
-0,     222208,     222208,     1024,     4096, 0xc0b6ff00
-0,     223232,     223232,     1024,     4096, 0xdd84005e
-0,     224256,     224256,     1024,     4096, 0x97d103bf
-0,     225280,     225280,     1024,     4096, 0xa0241ffc
-0,     226304,     226304,     1024,     4096, 0x91a4f35a
-0,     227328,     227328,     1024,     4096, 0x61abf0b0
-0,     228352,     228352,     1024,     4096, 0xa5d10111
-0,     229376,     229376,     1024,     4096, 0x0e71f5ce
-0,     230400,     230400,     1024,     4096, 0x4796f9fa
-0,     231424,     231424,     1024,     4096, 0x561bf893
-0,     232448,     232448,     1024,     4096, 0x70ddfb78
-0,     233472,     233472,     1024,     4096, 0xe4f4c2b6
-0,     234496,     234496,     1024,     4096, 0x5452f356
-0,     235520,     235520,     1024,     4096, 0x84e2fd14
-0,     236544,     236544,     1024,     4096, 0xd04b00a5
-0,     237568,     237568,     1024,     4096, 0x01ca0f7c
-0,     238592,     238592,     1024,     4096, 0x1685ef21
-0,     239616,     239616,     1024,     4096, 0x50effa4f
-0,     240640,     240640,     1024,     4096, 0xb5a9e82f
-0,     241664,     241664,     1024,     4096, 0xa7343704
-0,     242688,     242688,     1024,     4096, 0x6047ffe4
-0,     243712,     243712,     1024,     4096, 0xe89df7c9
-0,     244736,     244736,     1024,     4096, 0x2ea3f621
-0,     245760,     245760,     1024,     4096, 0xda4f05ef
-0,     246784,     246784,     1024,     4096, 0x5d7c07ba
-0,     247808,     247808,     1024,     4096, 0x461be644
-0,     248832,     248832,     1024,     4096, 0xce47f434
-0,     249856,     249856,     1024,     4096, 0xb30bacee
-0,     250880,     250880,     1024,     4096, 0x1c85f71d
-0,     251904,     251904,     1024,     4096, 0xc9a0f1cd
-0,     252928,     252928,     1024,     4096, 0xd939edde
-0,     253952,     253952,     1024,     4096, 0xa8e0e086
-0,     254976,     254976,     1024,     4096, 0xc0b6ff00
-0,     256000,     256000,     1024,     4096, 0xdd84005e
-0,     257024,     257024,     1024,     4096, 0x97d103bf
-0,     258048,     258048,     1024,     4096, 0xa0241ffc
-0,     259072,     259072,     1024,     4096, 0x91a4f35a
-0,     260096,     260096,     1024,     4096, 0x61abf0b0
-0,     261120,     261120,     1024,     4096, 0xa5d10111
-0,     262144,     262144,     1024,     4096, 0x0e71f5ce
-0,     263168,     263168,     1024,     4096, 0x4796f9fa
-0,     264192,     264192,      408,     1632, 0x31842eec
+0,          0,          0,     4096,    16384, 0x6b35db3b
+0,       4096,       4096,     4096,    16384, 0x582fe581
+0,       8192,       8192,     4096,    16384, 0x0f55e259
+0,      12288,      12288,     4096,    16384, 0xba42f06f
+0,      16384,      16384,     4096,    16384, 0x39b6e859
+0,      20480,      20480,     4096,    16384, 0x7749dc23
+0,      24576,      24576,     4096,    16384, 0xfdc5e177
+0,      28672,      28672,     4096,    16384, 0x462bd6d5
+0,      32768,      32768,     4096,    16384, 0x51e8d975
+0,      36864,      36864,     4096,    16384, 0x582fe581
+0,      40960,      40960,     4096,    16384, 0x5bc7003e
+0,      45056,      45056,     4096,    16384, 0xf847d62b
+0,      49152,      49152,     4096,    16384, 0xdde5e9bd
+0,      53248,      53248,     4096,    16384, 0xef6cdab9
+0,      57344,      57344,     4096,    16384, 0x9017e2fb
+0,      61440,      61440,     4096,    16384, 0x3fddecaf
+0,      65536,      65536,     4096,    16384, 0xf57305f6
+0,      69632,      69632,     4096,    16384, 0xa1badca3
+0,      73728,      73728,     4096,    16384, 0x9d17bfef
+0,      77824,      77824,     4096,    16384, 0x75f5fd09
+0,      81920,      81920,     4096,    16384, 0x126ee7a3
+0,      86016,      86016,     4096,    16384, 0x5725b25b
+0,      90112,      90112,     4096,    16384, 0x6ce76896
+0,      94208,      94208,     4096,    16384, 0xa1bc4931
+0,      98304,      98304,     4096,    16384, 0x7f46fdb9
+0,     102400,     102400,     4096,    16384, 0x1a90bb2b
+0,     106496,     106496,     4096,    16384, 0x5ce1b0dd
+0,     110592,     110592,     4096,    16384, 0x48fb4b8e
+0,     114688,     114688,     4096,    16384, 0xa9f0c4dc
+0,     118784,     118784,     4096,    16384, 0x888432da
+0,     122880,     122880,     4096,    16384, 0x5d85689f
+0,     126976,     126976,     4096,    16384, 0x05ae8dd2
+0,     131072,     131072,     4096,    16384, 0x8448d7b2
+0,     135168,     135168,     4096,    16384, 0x0e6cf699
+0,     139264,     139264,     4096,    16384, 0x2b31e88b
+0,     143360,     143360,     4096,    16384, 0xf798df15
+0,     147456,     147456,     4096,    16384, 0xc816e1b0
+0,     151552,     151552,     4096,    16384, 0x3e95d348
+0,     155648,     155648,     4096,    16384, 0x9b7bd67c
+0,     159744,     159744,     4096,    16384, 0x7c0fe1a0
+0,     163840,     163840,     4096,    16384, 0xad1adc4c
+0,     167936,     167936,     4096,    16384, 0x2196e132
+0,     172032,     172032,     4096,    16384, 0x138fce98
+0,     176128,     176128,     4096,    16384, 0xea330b70
+0,     180224,     180224,     4096,    16384, 0x9362e830
+0,     184320,     184320,     4096,    16384, 0x1b3583e3
+0,     188416,     188416,     4096,    16384, 0x3545e3b2
+0,     192512,     192512,     4096,    16384, 0xbd6a0535
+0,     196608,     196608,     4096,    16384, 0x9e6ae400
+0,     200704,     200704,     4096,    16384, 0x87feb3e3
+0,     204800,     204800,     4096,    16384, 0x45b3e139
+0,     208896,     208896,     4096,    16384, 0x51dc24ff
+0,     212992,     212992,     4096,    16384, 0x9362e830
+0,     217088,     217088,     4096,    16384, 0x1b3583e3
+0,     221184,     221184,     4096,    16384, 0x3545e3b2
+0,     225280,     225280,     4096,    16384, 0xbd6a0535
+0,     229376,     229376,     4096,    16384, 0x9e6ae400
+0,     233472,     233472,     4096,    16384, 0x87feb3e3
+0,     237568,     237568,     4096,    16384, 0x45b3e139
+0,     241664,     241664,     4096,    16384, 0x51dc24ff
+0,     245760,     245760,     4096,    16384, 0x9362e830
+0,     249856,     249856,     4096,    16384, 0x1b3583e3
+0,     253952,     253952,     4096,    16384, 0x3545e3b2
+0,     258048,     258048,     4096,    16384, 0xbd6a0535
+0,     262144,     262144,     2456,     9824, 0xa2441ed2
diff --git a/tests/ref/fate/filter-afade-esin b/tests/ref/fate/filter-afade-esin
index 41dfaeb565..db529b9a95 100644
--- a/tests/ref/fate/filter-afade-esin
+++ b/tests/ref/fate/filter-afade-esin
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x06e0d68a
-0,       1024,       1024,     1024,     4096, 0xb325d915
-0,       2048,       2048,     1024,     4096, 0xc0a5f1f1
-0,       3072,       3072,     1024,     4096, 0x47dbf54d
-0,       4096,       4096,     1024,     4096, 0x9f76e869
-0,       5120,       5120,     1024,     4096, 0xfbcaeb51
-0,       6144,       6144,     1024,     4096, 0xa16309a6
-0,       7168,       7168,     1024,     4096, 0x2890fe67
-0,       8192,       8192,     1024,     4096, 0x1cefee6b
-0,       9216,       9216,     1024,     4096, 0x0ad7ea27
-0,      10240,      10240,     1024,     4096, 0x8df7f895
-0,      11264,      11264,     1024,     4096, 0x19c0fa19
-0,      12288,      12288,     1024,     4096, 0x5cb4fdc5
-0,      13312,      13312,     1024,     4096, 0xcfc2f1ef
-0,      14336,      14336,     1024,     4096, 0x24b8f073
-0,      15360,      15360,     1024,     4096, 0x2ff6fa85
-0,      16384,      16384,     1024,     4096, 0x6fcffd03
-0,      17408,      17408,     1024,     4096, 0xe576e477
-0,      18432,      18432,     1024,     4096, 0xe0f6f54f
-0,      19456,      19456,     1024,     4096, 0xc225f5f7
-0,      20480,      20480,     1024,     4096, 0xe6d9fe57
-0,      21504,      21504,     1024,     4096, 0x8bc60f78
-0,      22528,      22528,     1024,     4096, 0xc907eeb1
-0,      23552,      23552,     1024,     4096, 0xd691f071
-0,      24576,      24576,     1024,     4096, 0x939402ee
-0,      25600,      25600,     1024,     4096, 0x19270cc4
-0,      26624,      26624,     1024,     4096, 0x25c5ed9b
-0,      27648,      27648,     1024,     4096, 0x0dbce7eb
-0,      28672,      28672,     1024,     4096, 0x035fff0f
-0,      29696,      29696,     1024,     4096, 0x514a0802
-0,      30720,      30720,     1024,     4096, 0x0de0043e
-0,      31744,      31744,     1024,     4096, 0xb576e1ab
-0,      32768,      32768,     1024,     4096, 0xcf30ee2f
-0,      33792,      33792,     1024,     4096, 0xae49f86d
-0,      34816,      34816,     1024,     4096, 0x42a202ac
-0,      35840,      35840,     1024,     4096, 0x762af249
-0,      36864,      36864,     1024,     4096, 0xb966eba5
-0,      37888,      37888,     1024,     4096, 0xeefeec79
-0,      38912,      38912,     1024,     4096, 0x62b00688
-0,      39936,      39936,     1024,     4096, 0x206efe91
-0,      40960,      40960,     1024,     4096, 0x2f69ef73
-0,      41984,      41984,     1024,     4096, 0x375cf043
-0,      43008,      43008,     1024,     4096, 0x096affd3
-0,      44032,      44032,     1024,     4096, 0x076ef11f
-0,      45056,      45056,     1024,     4096, 0x2e3201a0
-0,      46080,      46080,     1024,     4096, 0xb53f1ba4
-0,      47104,      47104,     1024,     4096, 0x5b13e019
-0,      48128,      48128,     1024,     4096, 0x22640338
-0,      49152,      49152,     1024,     4096, 0xb502f22d
-0,      50176,      50176,     1024,     4096, 0x53dfd61f
-0,      51200,      51200,     1024,     4096, 0x2044f1f1
-0,      52224,      52224,     1024,     4096, 0x94ccf2c7
-0,      53248,      53248,     1024,     4096, 0xbddee399
-0,      54272,      54272,     1024,     4096, 0xf305ec59
-0,      55296,      55296,     1024,     4096, 0x49acfc6f
-0,      56320,      56320,     1024,     4096, 0xc855d77d
-0,      57344,      57344,     1024,     4096, 0x1ca1faf5
-0,      58368,      58368,     1024,     4096, 0x9bd41038
-0,      59392,      59392,     1024,     4096, 0x4b83f6b7
-0,      60416,      60416,     1024,     4096, 0xe9b2ff4b
-0,      61440,      61440,     1024,     4096, 0xd7afe26b
-0,      62464,      62464,     1024,     4096, 0x4282057a
-0,      63488,      63488,     1024,     4096, 0xbea2ebd1
-0,      64512,      64512,     1024,     4096, 0x434ef413
-0,      65536,      65536,     1024,     4096, 0x8cd70e28
-0,      66560,      66560,     1024,     4096, 0xcef91d96
-0,      67584,      67584,     1024,     4096, 0xd9abfa75
-0,      68608,      68608,     1024,     4096, 0x9793f0c7
-0,      69632,      69632,     1024,     4096, 0x734b090c
-0,      70656,      70656,     1024,     4096, 0xdcf0f981
-0,      71680,      71680,     1024,     4096, 0x05af1302
-0,      72704,      72704,     1024,     4096, 0x9d80f677
-0,      73728,      73728,     1024,     4096, 0xc4e10628
-0,      74752,      74752,     1024,     4096, 0xfa8ef6a9
-0,      75776,      75776,     1024,     4096, 0xf8c1f72f
-0,      76800,      76800,     1024,     4096, 0xcf9b028a
-0,      77824,      77824,     1024,     4096, 0x80c7f3cb
-0,      78848,      78848,     1024,     4096, 0x97e2e6e5
-0,      79872,      79872,     1024,     4096, 0x9301dc81
-0,      80896,      80896,     1024,     4096, 0x1a8aeaed
-0,      81920,      81920,     1024,     4096, 0xfd751e70
-0,      82944,      82944,     1024,     4096, 0xe7643dc0
-0,      83968,      83968,     1024,     4096, 0xe08f0788
-0,      84992,      84992,     1024,     4096, 0x4f1105cc
-0,      86016,      86016,     1024,     4096, 0xb25806c6
-0,      87040,      87040,     1024,     4096, 0xd66d282a
-0,      88064,      88064,     1024,     4096, 0x457ddf0d
-0,      89088,      89088,     1024,     4096, 0xe68dda8f
-0,      90112,      90112,     1024,     4096, 0xe457b505
-0,      91136,      91136,     1024,     4096, 0xda25a409
-0,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-0,      93184,      93184,     1024,     4096, 0xa61eb13d
-0,      94208,      94208,     1024,     4096, 0xac93b66f
-0,      95232,      95232,     1024,     4096, 0xc7aeb33f
-0,      96256,      96256,     1024,     4096, 0x52cccfb5
-0,      97280,      97280,     1024,     4096, 0x4e4cf487
-0,      98304,      98304,     1024,     4096, 0x19c07f35
-0,      99328,      99328,     1024,     4096, 0x63ecd34f
-0,     100352,     100352,     1024,     4096, 0x122aec53
-0,     101376,     101376,     1024,     4096, 0x6581c0ad
-0,     102400,     102400,     1024,     4096, 0x640edb15
-0,     103424,     103424,     1024,     4096, 0x5d66c66f
-0,     104448,     104448,     1024,     4096, 0x069e9d35
-0,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-0,     106496,     106496,     1024,     4096, 0x72468667
-0,     107520,     107520,     1024,     4096, 0x6e6dd02b
-0,     108544,     108544,     1024,     4096, 0x93edce33
-0,     109568,     109568,     1024,     4096, 0xcdfbd519
-0,     110592,     110592,     1024,     4096, 0x8463f2bb
-0,     111616,     111616,     1024,     4096, 0x5ca6f869
-0,     112640,     112640,     1024,     4096, 0x099a0398
-0,     113664,     113664,     1024,     4096, 0xa7fa10f0
-0,     114688,     114688,     1024,     4096, 0x28caddd3
-0,     115712,     115712,     1024,     4096, 0x4852ef8b
-0,     116736,     116736,     1024,     4096, 0x0250ee7b
-0,     117760,     117760,     1024,     4096, 0x9583da21
-0,     118784,     118784,     1024,     4096, 0x7365fb33
-0,     119808,     119808,     1024,     4096, 0x28c82066
-0,     120832,     120832,     1024,     4096, 0x94650be4
-0,     121856,     121856,     1024,     4096, 0xeb21f8eb
-0,     122880,     122880,     1024,     4096, 0xcd88f455
-0,     123904,     123904,     1024,     4096, 0x66a9efaf
-0,     124928,     124928,     1024,     4096, 0x5500c6ed
-0,     125952,     125952,     1024,     4096, 0x0ee0c62d
-0,     126976,     126976,     1024,     4096, 0x34d30762
-0,     128000,     128000,     1024,     4096, 0x8c0dec9f
-0,     129024,     129024,     1024,     4096, 0x790011d8
-0,     130048,     130048,     1024,     4096, 0xb76a1136
-0,     131072,     131072,     1024,     4096, 0x7dddfea7
-0,     132096,     132096,     1024,     4096, 0xdfa3ed49
-0,     133120,     133120,     1024,     4096, 0xc129f54e
-0,     134144,     134144,     1024,     4096, 0x9a86f077
-0,     135168,     135168,     1024,     4096, 0xc9eef209
-0,     136192,     136192,     1024,     4096, 0x72d4029b
-0,     137216,     137216,     1024,     4096, 0x8ec20590
-0,     138240,     138240,     1024,     4096, 0xd48f18ed
-0,     139264,     139264,     1024,     4096, 0xd807eadc
-0,     140288,     140288,     1024,     4096, 0x1e2bea09
-0,     141312,     141312,     1024,     4096, 0x937af12e
-0,     142336,     142336,     1024,     4096, 0xdedbf303
-0,     143360,     143360,     1024,     4096, 0xdc75df88
-0,     144384,     144384,     1024,     4096, 0x1845ffd6
-0,     145408,     145408,     1024,     4096, 0x20e8150c
-0,     146432,     146432,     1024,     4096, 0x5ea7eeef
-0,     147456,     147456,     1024,     4096, 0x4c7efa21
-0,     148480,     148480,     1024,     4096, 0x8b97e30e
-0,     149504,     149504,     1024,     4096, 0xe5040228
-0,     150528,     150528,     1024,     4096, 0x6283f78c
-0,     151552,     151552,     1024,     4096, 0xe7100140
-0,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-0,     153600,     153600,     1024,     4096, 0x5f0e1563
-0,     154624,     154624,     1024,     4096, 0x510bf18e
-0,     155648,     155648,     1024,     4096, 0x5f4fe425
-0,     156672,     156672,     1024,     4096, 0x507af3c0
-0,     157696,     157696,     1024,     4096, 0xbf14ddc6
-0,     158720,     158720,     1024,     4096, 0x1871ed69
-0,     159744,     159744,     1024,     4096, 0xc349ef9f
-0,     160768,     160768,     1024,     4096, 0x4e2c1834
-0,     161792,     161792,     1024,     4096, 0x2383fe04
-0,     162816,     162816,     1024,     4096, 0x6626f415
-0,     163840,     163840,     1024,     4096, 0x283be379
-0,     164864,     164864,     1024,     4096, 0xc76c0ceb
-0,     165888,     165888,     1024,     4096, 0xa0b8040f
-0,     166912,     166912,     1024,     4096, 0x2535eb6d
-0,     167936,     167936,     1024,     4096, 0xeb180bb5
-0,     168960,     168960,     1024,     4096, 0xbc5cf059
-0,     169984,     169984,     1024,     4096, 0x1862f1ac
-0,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-0,     172032,     172032,     1024,     4096, 0xbb9ae754
-0,     173056,     173056,     1024,     4096, 0x716debb5
-0,     174080,     174080,     1024,     4096, 0xff3aff2a
-0,     175104,     175104,     1024,     4096, 0x755dfa5c
-0,     176128,     176128,     1024,     4096, 0x3b830605
-0,     177152,     177152,     1024,     4096, 0x0030dc9e
-0,     178176,     178176,     1024,     4096, 0xb017fd54
-0,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-0,     180224,     180224,     1024,     4096, 0x7887e599
-0,     181248,     181248,     1024,     4096, 0xb730e72f
-0,     182272,     182272,     1024,     4096, 0x6bb3fae4
-0,     183296,     183296,     1024,     4096, 0xcc08fc36
-0,     184320,     184320,     1024,     4096, 0x5afd9ec2
-0,     185344,     185344,     1024,     4096, 0xa1d3e83d
-0,     186368,     186368,     1024,     4096, 0x7f96013c
-0,     187392,     187392,     1024,     4096, 0x7a0afe31
-0,     188416,     188416,     1024,     4096, 0xa37d1701
-0,     189440,     189440,     1024,     4096, 0x4615ebc2
-0,     190464,     190464,     1024,     4096, 0x217005c1
-0,     191488,     191488,     1024,     4096, 0x1755f789
-0,     192512,     192512,     1024,     4096, 0x83e6db65
-0,     193536,     193536,     1024,     4096, 0x92ab1447
-0,     194560,     194560,     1024,     4096, 0xedbdf383
-0,     195584,     195584,     1024,     4096, 0x4316f6a9
-0,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-0,     197632,     197632,     1024,     4096, 0xdfd809b7
-0,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-0,     199680,     199680,     1024,     4096, 0xd366f4a1
-0,     200704,     200704,     1024,     4096, 0x6a2f86e0
-0,     201728,     201728,     1024,     4096, 0xf51f08a9
-0,     202752,     202752,     1024,     4096, 0x05edefa8
-0,     203776,     203776,     1024,     4096, 0x255df2a6
-0,     204800,     204800,     1024,     4096, 0xe881d9e4
-0,     205824,     205824,     1024,     4096, 0x50380523
-0,     206848,     206848,     1024,     4096, 0x8b93eb26
-0,     207872,     207872,     1024,     4096, 0x759cf94c
-0,     208896,     208896,     1024,     4096, 0x8474f591
-0,     209920,     209920,     1024,     4096, 0x0030dc9e
-0,     210944,     210944,     1024,     4096, 0xb017fd54
-0,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-0,     212992,     212992,     1024,     4096, 0x7887e599
-0,     214016,     214016,     1024,     4096, 0xb730e72f
-0,     215040,     215040,     1024,     4096, 0x6bb3fae4
-0,     216064,     216064,     1024,     4096, 0xcc08fc36
-0,     217088,     217088,     1024,     4096, 0x5afd9ec2
-0,     218112,     218112,     1024,     4096, 0xa1d3e83d
-0,     219136,     219136,     1024,     4096, 0x7f96013c
-0,     220160,     220160,     1024,     4096, 0x7a0afe31
-0,     221184,     221184,     1024,     4096, 0xa37d1701
-0,     222208,     222208,     1024,     4096, 0x4615ebc2
-0,     223232,     223232,     1024,     4096, 0x217005c1
-0,     224256,     224256,     1024,     4096, 0x1755f789
-0,     225280,     225280,     1024,     4096, 0x83e6db65
-0,     226304,     226304,     1024,     4096, 0x92ab1447
-0,     227328,     227328,     1024,     4096, 0xedbdf383
-0,     228352,     228352,     1024,     4096, 0x4316f6a9
-0,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-0,     230400,     230400,     1024,     4096, 0xdfd809b7
-0,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-0,     232448,     232448,     1024,     4096, 0xd366f4a1
-0,     233472,     233472,     1024,     4096, 0x6a2f86e0
-0,     234496,     234496,     1024,     4096, 0xf51f08a9
-0,     235520,     235520,     1024,     4096, 0x05edefa8
-0,     236544,     236544,     1024,     4096, 0x255df2a6
-0,     237568,     237568,     1024,     4096, 0xe881d9e4
-0,     238592,     238592,     1024,     4096, 0x50380523
-0,     239616,     239616,     1024,     4096, 0x8b93eb26
-0,     240640,     240640,     1024,     4096, 0x759cf94c
-0,     241664,     241664,     1024,     4096, 0x8474f591
-0,     242688,     242688,     1024,     4096, 0x0030dc9e
-0,     243712,     243712,     1024,     4096, 0xb017fd54
-0,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-0,     245760,     245760,     1024,     4096, 0x7887e599
-0,     246784,     246784,     1024,     4096, 0xb730e72f
-0,     247808,     247808,     1024,     4096, 0x6bb3fae4
-0,     248832,     248832,     1024,     4096, 0xcc08fc36
-0,     249856,     249856,     1024,     4096, 0x5afd9ec2
-0,     250880,     250880,     1024,     4096, 0xa1d3e83d
-0,     251904,     251904,     1024,     4096, 0x7f96013c
-0,     252928,     252928,     1024,     4096, 0x7a0afe31
-0,     253952,     253952,     1024,     4096, 0xa37d1701
-0,     254976,     254976,     1024,     4096, 0x4615ebc2
-0,     256000,     256000,     1024,     4096, 0x217005c1
-0,     257024,     257024,     1024,     4096, 0x1755f789
-0,     258048,     258048,     1024,     4096, 0x83e6db65
-0,     259072,     259072,     1024,     4096, 0x92ab1447
-0,     260096,     260096,     1024,     4096, 0xedbdf383
-0,     261120,     261120,     1024,     4096, 0x4316f6a9
-0,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-0,     263168,     263168,     1024,     4096, 0xdfd809b7
-0,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x2823970a
+0,       4096,       4096,     4096,    16384, 0xe575dbe5
+0,       8192,       8192,     4096,    16384, 0x4e75cb6d
+0,      12288,      12288,     4096,    16384, 0xf244dad9
+0,      16384,      16384,     4096,    16384, 0xb2c4cced
+0,      20480,      20480,     4096,    16384, 0x3ab6ed0f
+0,      24576,      24576,     4096,    16384, 0xaf3ce547
+0,      28672,      28672,     4096,    16384, 0xe885ed09
+0,      32768,      32768,     4096,    16384, 0xd8cedbaf
+0,      36864,      36864,     4096,    16384, 0x1425dd55
+0,      40960,      40960,     4096,    16384, 0xebadd0d5
+0,      45056,      45056,     4096,    16384, 0x7b8200a4
+0,      49152,      49152,     4096,    16384, 0x3bbfad31
+0,      53248,      53248,     4096,    16384, 0xab3ea40b
+0,      57344,      57344,     4096,    16384, 0x1584015c
+0,      61440,      61440,     4096,    16384, 0xe08cc7e7
+0,      65536,      65536,     4096,    16384, 0xa7591718
+0,      69632,      69632,     4096,    16384, 0x72b40c24
+0,      73728,      73728,     4096,    16384, 0xdfa6f699
+0,      77824,      77824,     4096,    16384, 0xb3e3a24b
+0,      81920,      81920,     4096,    16384, 0x65206984
+0,      86016,      86016,     4096,    16384, 0xf363fac7
+0,      90112,      90112,     4096,    16384, 0x446ba7a4
+0,      94208,      94208,     4096,    16384, 0x299b2e17
+0,      98304,      98304,     4096,    16384, 0xc51affa2
+0,     102400,     102400,     4096,    16384, 0xb4970fcf
+0,     106496,     106496,     4096,    16384, 0xe48af9fc
+0,     110592,     110592,     4096,    16384, 0xc2beffbb
+0,     114688,     114688,     4096,    16384, 0xb9d99627
+0,     118784,     118784,     4096,    16384, 0xb65a2086
+0,     122880,     122880,     4096,    16384, 0x6386714b
+0,     126976,     126976,     4096,    16384, 0x92a3171e
+0,     131072,     131072,     4096,    16384, 0x78bad1e2
+0,     135168,     135168,     4096,    16384, 0x63301330
+0,     139264,     139264,     4096,    16384, 0xd663b943
+0,     143360,     143360,     4096,    16384, 0xdcafe377
+0,     147456,     147456,     4096,    16384, 0xfb2cd701
+0,     151552,     151552,     4096,    16384, 0x91c30201
+0,     155648,     155648,     4096,    16384, 0xf23da341
+0,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+0,     163840,     163840,     4096,    16384, 0x519bdfef
+0,     167936,     167936,     4096,    16384, 0xf2fcd803
+0,     172032,     172032,     4096,    16384, 0xd5ceccbc
+0,     176128,     176128,     4096,    16384, 0xd48ada43
+0,     180224,     180224,     4096,    16384, 0x5a4ac40f
+0,     184320,     184320,     4096,    16384, 0x29db868a
+0,     188416,     188416,     4096,    16384, 0xa2a0002b
+0,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+0,     196608,     196608,     4096,    16384, 0x338dffa4
+0,     200704,     200704,     4096,    16384, 0x970b71f5
+0,     204800,     204800,     4096,    16384, 0x0521c397
+0,     208896,     208896,     4096,    16384, 0xff5ec9de
+0,     212992,     212992,     4096,    16384, 0x5a4ac40f
+0,     217088,     217088,     4096,    16384, 0x29db868a
+0,     221184,     221184,     4096,    16384, 0xa2a0002b
+0,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+0,     229376,     229376,     4096,    16384, 0x338dffa4
+0,     233472,     233472,     4096,    16384, 0x970b71f5
+0,     237568,     237568,     4096,    16384, 0x0521c397
+0,     241664,     241664,     4096,    16384, 0xff5ec9de
+0,     245760,     245760,     4096,    16384, 0x5a4ac40f
+0,     249856,     249856,     4096,    16384, 0x29db868a
+0,     253952,     253952,     4096,    16384, 0xa2a0002b
+0,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+0,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-afade-exp b/tests/ref/fate/filter-afade-exp
index 2a75db1986..28f3f62f74 100644
--- a/tests/ref/fate/filter-afade-exp
+++ b/tests/ref/fate/filter-afade-exp
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x00000000
-0,       1024,       1024,     1024,     4096, 0x00000000
-0,       2048,       2048,     1024,     4096, 0x00000000
-0,       3072,       3072,     1024,     4096, 0x00000000
-0,       4096,       4096,     1024,     4096, 0x00000000
-0,       5120,       5120,     1024,     4096, 0x00000000
-0,       6144,       6144,     1024,     4096, 0x00000000
-0,       7168,       7168,     1024,     4096, 0x00000000
-0,       8192,       8192,     1024,     4096, 0x00000000
-0,       9216,       9216,     1024,     4096, 0x00000000
-0,      10240,      10240,     1024,     4096, 0x00000000
-0,      11264,      11264,     1024,     4096, 0x00000000
-0,      12288,      12288,     1024,     4096, 0x00000000
-0,      13312,      13312,     1024,     4096, 0x00000000
-0,      14336,      14336,     1024,     4096, 0x00000000
-0,      15360,      15360,     1024,     4096, 0x00000000
-0,      16384,      16384,     1024,     4096, 0x00000000
-0,      17408,      17408,     1024,     4096, 0xfc60376d
-0,      18432,      18432,     1024,     4096, 0xfbe8d6c0
-0,      19456,      19456,     1024,     4096, 0x3b98ba4f
-0,      20480,      20480,     1024,     4096, 0x127b81e8
-0,      21504,      21504,     1024,     4096, 0xeeadf5b8
-0,      22528,      22528,     1024,     4096, 0xef824db7
-0,      23552,      23552,     1024,     4096, 0x48f6a58f
-0,      24576,      24576,     1024,     4096, 0x6c5c0d42
-0,      25600,      25600,     1024,     4096, 0x22e15d00
-0,      26624,      26624,     1024,     4096, 0x64ac7524
-0,      27648,      27648,     1024,     4096, 0x2726994c
-0,      28672,      28672,     1024,     4096, 0x755bd4fa
-0,      29696,      29696,     1024,     4096, 0x9acb1493
-0,      30720,      30720,     1024,     4096, 0xc4172c91
-0,      31744,      31744,     1024,     4096, 0xcd69291d
-0,      32768,      32768,     1024,     4096, 0xd3d64131
-0,      33792,      33792,     1024,     4096, 0xb3656c7f
-0,      34816,      34816,     1024,     4096, 0x763c93f3
-0,      35840,      35840,     1024,     4096, 0x994c84a5
-0,      36864,      36864,     1024,     4096, 0xcc9f8d75
-0,      37888,      37888,     1024,     4096, 0x2e259d03
-0,      38912,      38912,     1024,     4096, 0xcbdfcb9b
-0,      39936,      39936,     1024,     4096, 0xb01dcb79
-0,      40960,      40960,     1024,     4096, 0x4857b15f
-0,      41984,      41984,     1024,     4096, 0x04d9be25
-0,      43008,      43008,     1024,     4096, 0xc199cc25
-0,      44032,      44032,     1024,     4096, 0x068ec625
-0,      45056,      45056,     1024,     4096, 0xa659e141
-0,      46080,      46080,     1024,     4096, 0xebaaf33b
-0,      47104,      47104,     1024,     4096, 0x7142c21d
-0,      48128,      48128,     1024,     4096, 0x7859ec77
-0,      49152,      49152,     1024,     4096, 0x2944ec67
-0,      50176,      50176,     1024,     4096, 0x5b39e887
-0,      51200,      51200,     1024,     4096, 0x21c4e84d
-0,      52224,      52224,     1024,     4096, 0xd803fd77
-0,      53248,      53248,     1024,     4096, 0xae9ae32b
-0,      54272,      54272,     1024,     4096, 0x31b3e87f
-0,      55296,      55296,     1024,     4096, 0x287201ec
-0,      56320,      56320,     1024,     4096, 0xfa79e70d
-0,      57344,      57344,     1024,     4096, 0x7867fc9b
-0,      58368,      58368,     1024,     4096, 0xa5ec116c
-0,      59392,      59392,     1024,     4096, 0xe948f5d7
-0,      60416,      60416,     1024,     4096, 0xdcbbf6a3
-0,      61440,      61440,     1024,     4096, 0xc1fcdeeb
-0,      62464,      62464,     1024,     4096, 0x17b6f4a1
-0,      63488,      63488,     1024,     4096, 0x7f6e0294
-0,      64512,      64512,     1024,     4096, 0x3c8ce06b
-0,      65536,      65536,     1024,     4096, 0x0901140a
-0,      66560,      66560,     1024,     4096, 0x6162e9a7
-0,      67584,      67584,     1024,     4096, 0x22efe78f
-0,      68608,      68608,     1024,     4096, 0x329afcd7
-0,      69632,      69632,     1024,     4096, 0x747908ca
-0,      70656,      70656,     1024,     4096, 0x5cd9f1db
-0,      71680,      71680,     1024,     4096, 0x113a3a4a
-0,      72704,      72704,     1024,     4096, 0x89bedd25
-0,      73728,      73728,     1024,     4096, 0x3baac187
-0,      74752,      74752,     1024,     4096, 0xd569d461
-0,      75776,      75776,     1024,     4096, 0x7d9b1c42
-0,      76800,      76800,     1024,     4096, 0xfbf0e679
-0,      77824,      77824,     1024,     4096, 0x9ece0f62
-0,      78848,      78848,     1024,     4096, 0xeb72f071
-0,      79872,      79872,     1024,     4096, 0xad5bdf6d
-0,      80896,      80896,     1024,     4096, 0xa6af0554
-0,      81920,      81920,     1024,     4096, 0xe0902960
-0,      82944,      82944,     1024,     4096, 0x077cfdf3
-0,      83968,      83968,     1024,     4096, 0xa48b059a
-0,      84992,      84992,     1024,     4096, 0x4e7df3db
-0,      86016,      86016,     1024,     4096, 0x0550e899
-0,      87040,      87040,     1024,     4096, 0xa63ff5a9
-0,      88064,      88064,     1024,     4096, 0x9c15bfa7
-0,      89088,      89088,     1024,     4096, 0xe68dda8f
-0,      90112,      90112,     1024,     4096, 0xe457b505
-0,      91136,      91136,     1024,     4096, 0xda25a409
-0,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-0,      93184,      93184,     1024,     4096, 0xa61eb13d
-0,      94208,      94208,     1024,     4096, 0xac93b66f
-0,      95232,      95232,     1024,     4096, 0xc7aeb33f
-0,      96256,      96256,     1024,     4096, 0x52cccfb5
-0,      97280,      97280,     1024,     4096, 0x4e4cf487
-0,      98304,      98304,     1024,     4096, 0x19c07f35
-0,      99328,      99328,     1024,     4096, 0x63ecd34f
-0,     100352,     100352,     1024,     4096, 0x122aec53
-0,     101376,     101376,     1024,     4096, 0x6581c0ad
-0,     102400,     102400,     1024,     4096, 0x640edb15
-0,     103424,     103424,     1024,     4096, 0x5d66c66f
-0,     104448,     104448,     1024,     4096, 0x069e9d35
-0,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-0,     106496,     106496,     1024,     4096, 0x72468667
-0,     107520,     107520,     1024,     4096, 0x6e6dd02b
-0,     108544,     108544,     1024,     4096, 0x93edce33
-0,     109568,     109568,     1024,     4096, 0xcdfbd519
-0,     110592,     110592,     1024,     4096, 0x8463f2bb
-0,     111616,     111616,     1024,     4096, 0x5ca6f869
-0,     112640,     112640,     1024,     4096, 0x099a0398
-0,     113664,     113664,     1024,     4096, 0xa7fa10f0
-0,     114688,     114688,     1024,     4096, 0x28caddd3
-0,     115712,     115712,     1024,     4096, 0x4852ef8b
-0,     116736,     116736,     1024,     4096, 0x0250ee7b
-0,     117760,     117760,     1024,     4096, 0x9583da21
-0,     118784,     118784,     1024,     4096, 0x7365fb33
-0,     119808,     119808,     1024,     4096, 0x28c82066
-0,     120832,     120832,     1024,     4096, 0x94650be4
-0,     121856,     121856,     1024,     4096, 0xeb21f8eb
-0,     122880,     122880,     1024,     4096, 0xcd88f455
-0,     123904,     123904,     1024,     4096, 0x66a9efaf
-0,     124928,     124928,     1024,     4096, 0x5500c6ed
-0,     125952,     125952,     1024,     4096, 0x0ee0c62d
-0,     126976,     126976,     1024,     4096, 0x34d30762
-0,     128000,     128000,     1024,     4096, 0x8c0dec9f
-0,     129024,     129024,     1024,     4096, 0x790011d8
-0,     130048,     130048,     1024,     4096, 0xb76a1136
-0,     131072,     131072,     1024,     4096, 0x7dddfea7
-0,     132096,     132096,     1024,     4096, 0xdfa3ed49
-0,     133120,     133120,     1024,     4096, 0xc129f54e
-0,     134144,     134144,     1024,     4096, 0x9a86f077
-0,     135168,     135168,     1024,     4096, 0xc9eef209
-0,     136192,     136192,     1024,     4096, 0x72d4029b
-0,     137216,     137216,     1024,     4096, 0x8ec20590
-0,     138240,     138240,     1024,     4096, 0xd48f18ed
-0,     139264,     139264,     1024,     4096, 0xd807eadc
-0,     140288,     140288,     1024,     4096, 0x1e2bea09
-0,     141312,     141312,     1024,     4096, 0x937af12e
-0,     142336,     142336,     1024,     4096, 0xdedbf303
-0,     143360,     143360,     1024,     4096, 0xdc75df88
-0,     144384,     144384,     1024,     4096, 0x1845ffd6
-0,     145408,     145408,     1024,     4096, 0x20e8150c
-0,     146432,     146432,     1024,     4096, 0x5ea7eeef
-0,     147456,     147456,     1024,     4096, 0x4c7efa21
-0,     148480,     148480,     1024,     4096, 0x8b97e30e
-0,     149504,     149504,     1024,     4096, 0xe5040228
-0,     150528,     150528,     1024,     4096, 0x6283f78c
-0,     151552,     151552,     1024,     4096, 0xe7100140
-0,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-0,     153600,     153600,     1024,     4096, 0x5f0e1563
-0,     154624,     154624,     1024,     4096, 0x510bf18e
-0,     155648,     155648,     1024,     4096, 0x5f4fe425
-0,     156672,     156672,     1024,     4096, 0x507af3c0
-0,     157696,     157696,     1024,     4096, 0xbf14ddc6
-0,     158720,     158720,     1024,     4096, 0x1871ed69
-0,     159744,     159744,     1024,     4096, 0xc349ef9f
-0,     160768,     160768,     1024,     4096, 0x4e2c1834
-0,     161792,     161792,     1024,     4096, 0x2383fe04
-0,     162816,     162816,     1024,     4096, 0x6626f415
-0,     163840,     163840,     1024,     4096, 0x283be379
-0,     164864,     164864,     1024,     4096, 0xc76c0ceb
-0,     165888,     165888,     1024,     4096, 0xa0b8040f
-0,     166912,     166912,     1024,     4096, 0x2535eb6d
-0,     167936,     167936,     1024,     4096, 0xeb180bb5
-0,     168960,     168960,     1024,     4096, 0xbc5cf059
-0,     169984,     169984,     1024,     4096, 0x1862f1ac
-0,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-0,     172032,     172032,     1024,     4096, 0xbb9ae754
-0,     173056,     173056,     1024,     4096, 0x716debb5
-0,     174080,     174080,     1024,     4096, 0xff3aff2a
-0,     175104,     175104,     1024,     4096, 0x755dfa5c
-0,     176128,     176128,     1024,     4096, 0x3b830605
-0,     177152,     177152,     1024,     4096, 0x0030dc9e
-0,     178176,     178176,     1024,     4096, 0xb017fd54
-0,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-0,     180224,     180224,     1024,     4096, 0x7887e599
-0,     181248,     181248,     1024,     4096, 0xb730e72f
-0,     182272,     182272,     1024,     4096, 0x6bb3fae4
-0,     183296,     183296,     1024,     4096, 0xcc08fc36
-0,     184320,     184320,     1024,     4096, 0x5afd9ec2
-0,     185344,     185344,     1024,     4096, 0xa1d3e83d
-0,     186368,     186368,     1024,     4096, 0x7f96013c
-0,     187392,     187392,     1024,     4096, 0x7a0afe31
-0,     188416,     188416,     1024,     4096, 0xa37d1701
-0,     189440,     189440,     1024,     4096, 0x4615ebc2
-0,     190464,     190464,     1024,     4096, 0x217005c1
-0,     191488,     191488,     1024,     4096, 0x1755f789
-0,     192512,     192512,     1024,     4096, 0x83e6db65
-0,     193536,     193536,     1024,     4096, 0x92ab1447
-0,     194560,     194560,     1024,     4096, 0xedbdf383
-0,     195584,     195584,     1024,     4096, 0x4316f6a9
-0,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-0,     197632,     197632,     1024,     4096, 0xdfd809b7
-0,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-0,     199680,     199680,     1024,     4096, 0xd366f4a1
-0,     200704,     200704,     1024,     4096, 0x6a2f86e0
-0,     201728,     201728,     1024,     4096, 0xf51f08a9
-0,     202752,     202752,     1024,     4096, 0x05edefa8
-0,     203776,     203776,     1024,     4096, 0x255df2a6
-0,     204800,     204800,     1024,     4096, 0xe881d9e4
-0,     205824,     205824,     1024,     4096, 0x50380523
-0,     206848,     206848,     1024,     4096, 0x8b93eb26
-0,     207872,     207872,     1024,     4096, 0x759cf94c
-0,     208896,     208896,     1024,     4096, 0x8474f591
-0,     209920,     209920,     1024,     4096, 0x0030dc9e
-0,     210944,     210944,     1024,     4096, 0xb017fd54
-0,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-0,     212992,     212992,     1024,     4096, 0x7887e599
-0,     214016,     214016,     1024,     4096, 0xb730e72f
-0,     215040,     215040,     1024,     4096, 0x6bb3fae4
-0,     216064,     216064,     1024,     4096, 0xcc08fc36
-0,     217088,     217088,     1024,     4096, 0x5afd9ec2
-0,     218112,     218112,     1024,     4096, 0xa1d3e83d
-0,     219136,     219136,     1024,     4096, 0x7f96013c
-0,     220160,     220160,     1024,     4096, 0x7a0afe31
-0,     221184,     221184,     1024,     4096, 0xa37d1701
-0,     222208,     222208,     1024,     4096, 0x4615ebc2
-0,     223232,     223232,     1024,     4096, 0x217005c1
-0,     224256,     224256,     1024,     4096, 0x1755f789
-0,     225280,     225280,     1024,     4096, 0x83e6db65
-0,     226304,     226304,     1024,     4096, 0x92ab1447
-0,     227328,     227328,     1024,     4096, 0xedbdf383
-0,     228352,     228352,     1024,     4096, 0x4316f6a9
-0,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-0,     230400,     230400,     1024,     4096, 0xdfd809b7
-0,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-0,     232448,     232448,     1024,     4096, 0xd366f4a1
-0,     233472,     233472,     1024,     4096, 0x6a2f86e0
-0,     234496,     234496,     1024,     4096, 0xf51f08a9
-0,     235520,     235520,     1024,     4096, 0x05edefa8
-0,     236544,     236544,     1024,     4096, 0x255df2a6
-0,     237568,     237568,     1024,     4096, 0xe881d9e4
-0,     238592,     238592,     1024,     4096, 0x50380523
-0,     239616,     239616,     1024,     4096, 0x8b93eb26
-0,     240640,     240640,     1024,     4096, 0x759cf94c
-0,     241664,     241664,     1024,     4096, 0x8474f591
-0,     242688,     242688,     1024,     4096, 0x0030dc9e
-0,     243712,     243712,     1024,     4096, 0xb017fd54
-0,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-0,     245760,     245760,     1024,     4096, 0x7887e599
-0,     246784,     246784,     1024,     4096, 0xb730e72f
-0,     247808,     247808,     1024,     4096, 0x6bb3fae4
-0,     248832,     248832,     1024,     4096, 0xcc08fc36
-0,     249856,     249856,     1024,     4096, 0x5afd9ec2
-0,     250880,     250880,     1024,     4096, 0xa1d3e83d
-0,     251904,     251904,     1024,     4096, 0x7f96013c
-0,     252928,     252928,     1024,     4096, 0x7a0afe31
-0,     253952,     253952,     1024,     4096, 0xa37d1701
-0,     254976,     254976,     1024,     4096, 0x4615ebc2
-0,     256000,     256000,     1024,     4096, 0x217005c1
-0,     257024,     257024,     1024,     4096, 0x1755f789
-0,     258048,     258048,     1024,     4096, 0x83e6db65
-0,     259072,     259072,     1024,     4096, 0x92ab1447
-0,     260096,     260096,     1024,     4096, 0xedbdf383
-0,     261120,     261120,     1024,     4096, 0x4316f6a9
-0,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-0,     263168,     263168,     1024,     4096, 0xdfd809b7
-0,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x00000000
+0,       4096,       4096,     4096,    16384, 0x00000000
+0,       8192,       8192,     4096,    16384, 0x00000000
+0,      12288,      12288,     4096,    16384, 0x00000000
+0,      16384,      16384,     4096,    16384, 0x0553c88b
+0,      20480,      20480,     4096,    16384, 0xacdd6b04
+0,      24576,      24576,     4096,    16384, 0xfc9f78c1
+0,      28672,      28672,     4096,    16384, 0x99473f4a
+0,      32768,      32768,     4096,    16384, 0xe477c657
+0,      36864,      36864,     4096,    16384, 0xea2bc1aa
+0,      40960,      40960,     4096,    16384, 0xec5a01fb
+0,      45056,      45056,     4096,    16384, 0xd392833d
+0,      49152,      49152,     4096,    16384, 0xa545badf
+0,      53248,      53248,     4096,    16384, 0xe82cb4c1
+0,      57344,      57344,     4096,    16384, 0xb248fa9f
+0,      61440,      61440,     4096,    16384, 0x460db6a9
+0,      65536,      65536,     4096,    16384, 0x37a9e235
+0,      69632,      69632,     4096,    16384, 0x61511232
+0,      73728,      73728,     4096,    16384, 0xe3ef98c1
+0,      77824,      77824,     4096,    16384, 0xee1ee4a3
+0,      81920,      81920,     4096,    16384, 0x311620e6
+0,      86016,      86016,     4096,    16384, 0x7d0e78a5
+0,      90112,      90112,     4096,    16384, 0x446ba7a4
+0,      94208,      94208,     4096,    16384, 0x299b2e17
+0,      98304,      98304,     4096,    16384, 0xc51affa2
+0,     102400,     102400,     4096,    16384, 0xb4970fcf
+0,     106496,     106496,     4096,    16384, 0xe48af9fc
+0,     110592,     110592,     4096,    16384, 0xc2beffbb
+0,     114688,     114688,     4096,    16384, 0xb9d99627
+0,     118784,     118784,     4096,    16384, 0xb65a2086
+0,     122880,     122880,     4096,    16384, 0x6386714b
+0,     126976,     126976,     4096,    16384, 0x92a3171e
+0,     131072,     131072,     4096,    16384, 0x78bad1e2
+0,     135168,     135168,     4096,    16384, 0x63301330
+0,     139264,     139264,     4096,    16384, 0xd663b943
+0,     143360,     143360,     4096,    16384, 0xdcafe377
+0,     147456,     147456,     4096,    16384, 0xfb2cd701
+0,     151552,     151552,     4096,    16384, 0x91c30201
+0,     155648,     155648,     4096,    16384, 0xf23da341
+0,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+0,     163840,     163840,     4096,    16384, 0x519bdfef
+0,     167936,     167936,     4096,    16384, 0xf2fcd803
+0,     172032,     172032,     4096,    16384, 0xd5ceccbc
+0,     176128,     176128,     4096,    16384, 0xd48ada43
+0,     180224,     180224,     4096,    16384, 0x5a4ac40f
+0,     184320,     184320,     4096,    16384, 0x29db868a
+0,     188416,     188416,     4096,    16384, 0xa2a0002b
+0,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+0,     196608,     196608,     4096,    16384, 0x338dffa4
+0,     200704,     200704,     4096,    16384, 0x970b71f5
+0,     204800,     204800,     4096,    16384, 0x0521c397
+0,     208896,     208896,     4096,    16384, 0xff5ec9de
+0,     212992,     212992,     4096,    16384, 0x5a4ac40f
+0,     217088,     217088,     4096,    16384, 0x29db868a
+0,     221184,     221184,     4096,    16384, 0xa2a0002b
+0,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+0,     229376,     229376,     4096,    16384, 0x338dffa4
+0,     233472,     233472,     4096,    16384, 0x970b71f5
+0,     237568,     237568,     4096,    16384, 0x0521c397
+0,     241664,     241664,     4096,    16384, 0xff5ec9de
+0,     245760,     245760,     4096,    16384, 0x5a4ac40f
+0,     249856,     249856,     4096,    16384, 0x29db868a
+0,     253952,     253952,     4096,    16384, 0xa2a0002b
+0,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+0,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-afade-hsin b/tests/ref/fate/filter-afade-hsin
index b95bac047c..89f280930a 100644
--- a/tests/ref/fate/filter-afade-hsin
+++ b/tests/ref/fate/filter-afade-hsin
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x2042232e
-0,       1024,       1024,     1024,     4096, 0x2c073cf7
-0,       2048,       2048,     1024,     4096, 0x92fecae5
-0,       3072,       3072,     1024,     4096, 0xfd68df81
-0,       4096,       4096,     1024,     4096, 0xd7e0dcdd
-0,       5120,       5120,     1024,     4096, 0xfb12e849
-0,       6144,       6144,     1024,     4096, 0xdaa8fd25
-0,       7168,       7168,     1024,     4096, 0x28b101d6
-0,       8192,       8192,     1024,     4096, 0x4418e817
-0,       9216,       9216,     1024,     4096, 0x65d6e44d
-0,      10240,      10240,     1024,     4096, 0xc575f781
-0,      11264,      11264,     1024,     4096, 0xdf0bfdcd
-0,      12288,      12288,     1024,     4096, 0xd517faed
-0,      13312,      13312,     1024,     4096, 0x369de9b5
-0,      14336,      14336,     1024,     4096, 0x2245f4d9
-0,      15360,      15360,     1024,     4096, 0xf979fd8b
-0,      16384,      16384,     1024,     4096, 0xafcbfb8d
-0,      17408,      17408,     1024,     4096, 0xee6bf9e3
-0,      18432,      18432,     1024,     4096, 0x3bf1edfb
-0,      19456,      19456,     1024,     4096, 0x26b7faa1
-0,      20480,      20480,     1024,     4096, 0x559bf2db
-0,      21504,      21504,     1024,     4096, 0xe488fe45
-0,      22528,      22528,     1024,     4096, 0x8928e8fd
-0,      23552,      23552,     1024,     4096, 0xfc82f6cd
-0,      24576,      24576,     1024,     4096, 0xe8b6ed4b
-0,      25600,      25600,     1024,     4096, 0x73340aba
-0,      26624,      26624,     1024,     4096, 0xb934ecbf
-0,      27648,      27648,     1024,     4096, 0x0581f125
-0,      28672,      28672,     1024,     4096, 0x4e2cf113
-0,      29696,      29696,     1024,     4096, 0x716b0062
-0,      30720,      30720,     1024,     4096, 0x4de513aa
-0,      31744,      31744,     1024,     4096, 0x6a17ea33
-0,      32768,      32768,     1024,     4096, 0x6c28f127
-0,      33792,      33792,     1024,     4096, 0xdd81f81b
-0,      34816,      34816,     1024,     4096, 0x63f2fd47
-0,      35840,      35840,     1024,     4096, 0x9ab2ee63
-0,      36864,      36864,     1024,     4096, 0xf310f265
-0,      37888,      37888,     1024,     4096, 0xdb2eed95
-0,      38912,      38912,     1024,     4096, 0x3cf3fa13
-0,      39936,      39936,     1024,     4096, 0x632107da
-0,      40960,      40960,     1024,     4096, 0xb3030964
-0,      41984,      41984,     1024,     4096, 0x4001ec91
-0,      43008,      43008,     1024,     4096, 0xacd8ee23
-0,      44032,      44032,     1024,     4096, 0x49adf5b3
-0,      45056,      45056,     1024,     4096, 0x8a7a0b54
-0,      46080,      46080,     1024,     4096, 0xfe4e284c
-0,      47104,      47104,     1024,     4096, 0x9d7dfc1b
-0,      48128,      48128,     1024,     4096, 0x3fbafc3d
-0,      49152,      49152,     1024,     4096, 0x7846190e
-0,      50176,      50176,     1024,     4096, 0x81c706e8
-0,      51200,      51200,     1024,     4096, 0x0449edef
-0,      52224,      52224,     1024,     4096, 0xe4c9044c
-0,      53248,      53248,     1024,     4096, 0x11bcf517
-0,      54272,      54272,     1024,     4096, 0x7693fc23
-0,      55296,      55296,     1024,     4096, 0xfaa3ec59
-0,      56320,      56320,     1024,     4096, 0x1bbbffd1
-0,      57344,      57344,     1024,     4096, 0x750e0b66
-0,      58368,      58368,     1024,     4096, 0xff79fe49
-0,      59392,      59392,     1024,     4096, 0x9c2e2414
-0,      60416,      60416,     1024,     4096, 0xf5a8e3b1
-0,      61440,      61440,     1024,     4096, 0x4171eabd
-0,      62464,      62464,     1024,     4096, 0xe5dfd0b9
-0,      63488,      63488,     1024,     4096, 0x88d6e751
-0,      64512,      64512,     1024,     4096, 0x1aceeebb
-0,      65536,      65536,     1024,     4096, 0xfddde939
-0,      66560,      66560,     1024,     4096, 0x635d14d6
-0,      67584,      67584,     1024,     4096, 0x1216f111
-0,      68608,      68608,     1024,     4096, 0x76d1f751
-0,      69632,      69632,     1024,     4096, 0x2cfbe33d
-0,      70656,      70656,     1024,     4096, 0xaa5bf83d
-0,      71680,      71680,     1024,     4096, 0xc6dc2846
-0,      72704,      72704,     1024,     4096, 0x0f811cf6
-0,      73728,      73728,     1024,     4096, 0x699bf871
-0,      74752,      74752,     1024,     4096, 0x066be26f
-0,      75776,      75776,     1024,     4096, 0xfadff369
-0,      76800,      76800,     1024,     4096, 0x1581ff61
-0,      77824,      77824,     1024,     4096, 0xe3fc05fa
-0,      78848,      78848,     1024,     4096, 0x2333fcaf
-0,      79872,      79872,     1024,     4096, 0x5c0d2a24
-0,      80896,      80896,     1024,     4096, 0x0955ef21
-0,      81920,      81920,     1024,     4096, 0xe798fbc9
-0,      82944,      82944,     1024,     4096, 0x5cdf138c
-0,      83968,      83968,     1024,     4096, 0x3ffee37d
-0,      84992,      84992,     1024,     4096, 0x4bcff517
-0,      86016,      86016,     1024,     4096, 0x9b7f0722
-0,      87040,      87040,     1024,     4096, 0xb6fa1982
-0,      88064,      88064,     1024,     4096, 0x1b1ac8b7
-0,      89088,      89088,     1024,     4096, 0xe68dda8f
-0,      90112,      90112,     1024,     4096, 0xe457b505
-0,      91136,      91136,     1024,     4096, 0xda25a409
-0,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-0,      93184,      93184,     1024,     4096, 0xa61eb13d
-0,      94208,      94208,     1024,     4096, 0xac93b66f
-0,      95232,      95232,     1024,     4096, 0xc7aeb33f
-0,      96256,      96256,     1024,     4096, 0x52cccfb5
-0,      97280,      97280,     1024,     4096, 0x4e4cf487
-0,      98304,      98304,     1024,     4096, 0x19c07f35
-0,      99328,      99328,     1024,     4096, 0x63ecd34f
-0,     100352,     100352,     1024,     4096, 0x122aec53
-0,     101376,     101376,     1024,     4096, 0x6581c0ad
-0,     102400,     102400,     1024,     4096, 0x640edb15
-0,     103424,     103424,     1024,     4096, 0x5d66c66f
-0,     104448,     104448,     1024,     4096, 0x069e9d35
-0,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-0,     106496,     106496,     1024,     4096, 0x72468667
-0,     107520,     107520,     1024,     4096, 0x6e6dd02b
-0,     108544,     108544,     1024,     4096, 0x93edce33
-0,     109568,     109568,     1024,     4096, 0xcdfbd519
-0,     110592,     110592,     1024,     4096, 0x8463f2bb
-0,     111616,     111616,     1024,     4096, 0x5ca6f869
-0,     112640,     112640,     1024,     4096, 0x099a0398
-0,     113664,     113664,     1024,     4096, 0xa7fa10f0
-0,     114688,     114688,     1024,     4096, 0x28caddd3
-0,     115712,     115712,     1024,     4096, 0x4852ef8b
-0,     116736,     116736,     1024,     4096, 0x0250ee7b
-0,     117760,     117760,     1024,     4096, 0x9583da21
-0,     118784,     118784,     1024,     4096, 0x7365fb33
-0,     119808,     119808,     1024,     4096, 0x28c82066
-0,     120832,     120832,     1024,     4096, 0x94650be4
-0,     121856,     121856,     1024,     4096, 0xeb21f8eb
-0,     122880,     122880,     1024,     4096, 0xcd88f455
-0,     123904,     123904,     1024,     4096, 0x66a9efaf
-0,     124928,     124928,     1024,     4096, 0x5500c6ed
-0,     125952,     125952,     1024,     4096, 0x0ee0c62d
-0,     126976,     126976,     1024,     4096, 0x34d30762
-0,     128000,     128000,     1024,     4096, 0x8c0dec9f
-0,     129024,     129024,     1024,     4096, 0x790011d8
-0,     130048,     130048,     1024,     4096, 0xb76a1136
-0,     131072,     131072,     1024,     4096, 0x7dddfea7
-0,     132096,     132096,     1024,     4096, 0xdfa3ed49
-0,     133120,     133120,     1024,     4096, 0xc129f54e
-0,     134144,     134144,     1024,     4096, 0x9a86f077
-0,     135168,     135168,     1024,     4096, 0xc9eef209
-0,     136192,     136192,     1024,     4096, 0x72d4029b
-0,     137216,     137216,     1024,     4096, 0x8ec20590
-0,     138240,     138240,     1024,     4096, 0xd48f18ed
-0,     139264,     139264,     1024,     4096, 0xd807eadc
-0,     140288,     140288,     1024,     4096, 0x1e2bea09
-0,     141312,     141312,     1024,     4096, 0x937af12e
-0,     142336,     142336,     1024,     4096, 0xdedbf303
-0,     143360,     143360,     1024,     4096, 0xdc75df88
-0,     144384,     144384,     1024,     4096, 0x1845ffd6
-0,     145408,     145408,     1024,     4096, 0x20e8150c
-0,     146432,     146432,     1024,     4096, 0x5ea7eeef
-0,     147456,     147456,     1024,     4096, 0x4c7efa21
-0,     148480,     148480,     1024,     4096, 0x8b97e30e
-0,     149504,     149504,     1024,     4096, 0xe5040228
-0,     150528,     150528,     1024,     4096, 0x6283f78c
-0,     151552,     151552,     1024,     4096, 0xe7100140
-0,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-0,     153600,     153600,     1024,     4096, 0x5f0e1563
-0,     154624,     154624,     1024,     4096, 0x510bf18e
-0,     155648,     155648,     1024,     4096, 0x5f4fe425
-0,     156672,     156672,     1024,     4096, 0x507af3c0
-0,     157696,     157696,     1024,     4096, 0xbf14ddc6
-0,     158720,     158720,     1024,     4096, 0x1871ed69
-0,     159744,     159744,     1024,     4096, 0xc349ef9f
-0,     160768,     160768,     1024,     4096, 0x4e2c1834
-0,     161792,     161792,     1024,     4096, 0x2383fe04
-0,     162816,     162816,     1024,     4096, 0x6626f415
-0,     163840,     163840,     1024,     4096, 0x283be379
-0,     164864,     164864,     1024,     4096, 0xc76c0ceb
-0,     165888,     165888,     1024,     4096, 0xa0b8040f
-0,     166912,     166912,     1024,     4096, 0x2535eb6d
-0,     167936,     167936,     1024,     4096, 0xeb180bb5
-0,     168960,     168960,     1024,     4096, 0xbc5cf059
-0,     169984,     169984,     1024,     4096, 0x1862f1ac
-0,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-0,     172032,     172032,     1024,     4096, 0xbb9ae754
-0,     173056,     173056,     1024,     4096, 0x716debb5
-0,     174080,     174080,     1024,     4096, 0xff3aff2a
-0,     175104,     175104,     1024,     4096, 0x755dfa5c
-0,     176128,     176128,     1024,     4096, 0x3b830605
-0,     177152,     177152,     1024,     4096, 0x0030dc9e
-0,     178176,     178176,     1024,     4096, 0xb017fd54
-0,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-0,     180224,     180224,     1024,     4096, 0x7887e599
-0,     181248,     181248,     1024,     4096, 0xb730e72f
-0,     182272,     182272,     1024,     4096, 0x6bb3fae4
-0,     183296,     183296,     1024,     4096, 0xcc08fc36
-0,     184320,     184320,     1024,     4096, 0x5afd9ec2
-0,     185344,     185344,     1024,     4096, 0xa1d3e83d
-0,     186368,     186368,     1024,     4096, 0x7f96013c
-0,     187392,     187392,     1024,     4096, 0x7a0afe31
-0,     188416,     188416,     1024,     4096, 0xa37d1701
-0,     189440,     189440,     1024,     4096, 0x4615ebc2
-0,     190464,     190464,     1024,     4096, 0x217005c1
-0,     191488,     191488,     1024,     4096, 0x1755f789
-0,     192512,     192512,     1024,     4096, 0x83e6db65
-0,     193536,     193536,     1024,     4096, 0x92ab1447
-0,     194560,     194560,     1024,     4096, 0xedbdf383
-0,     195584,     195584,     1024,     4096, 0x4316f6a9
-0,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-0,     197632,     197632,     1024,     4096, 0xdfd809b7
-0,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-0,     199680,     199680,     1024,     4096, 0xd366f4a1
-0,     200704,     200704,     1024,     4096, 0x6a2f86e0
-0,     201728,     201728,     1024,     4096, 0xf51f08a9
-0,     202752,     202752,     1024,     4096, 0x05edefa8
-0,     203776,     203776,     1024,     4096, 0x255df2a6
-0,     204800,     204800,     1024,     4096, 0xe881d9e4
-0,     205824,     205824,     1024,     4096, 0x50380523
-0,     206848,     206848,     1024,     4096, 0x8b93eb26
-0,     207872,     207872,     1024,     4096, 0x759cf94c
-0,     208896,     208896,     1024,     4096, 0x8474f591
-0,     209920,     209920,     1024,     4096, 0x0030dc9e
-0,     210944,     210944,     1024,     4096, 0xb017fd54
-0,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-0,     212992,     212992,     1024,     4096, 0x7887e599
-0,     214016,     214016,     1024,     4096, 0xb730e72f
-0,     215040,     215040,     1024,     4096, 0x6bb3fae4
-0,     216064,     216064,     1024,     4096, 0xcc08fc36
-0,     217088,     217088,     1024,     4096, 0x5afd9ec2
-0,     218112,     218112,     1024,     4096, 0xa1d3e83d
-0,     219136,     219136,     1024,     4096, 0x7f96013c
-0,     220160,     220160,     1024,     4096, 0x7a0afe31
-0,     221184,     221184,     1024,     4096, 0xa37d1701
-0,     222208,     222208,     1024,     4096, 0x4615ebc2
-0,     223232,     223232,     1024,     4096, 0x217005c1
-0,     224256,     224256,     1024,     4096, 0x1755f789
-0,     225280,     225280,     1024,     4096, 0x83e6db65
-0,     226304,     226304,     1024,     4096, 0x92ab1447
-0,     227328,     227328,     1024,     4096, 0xedbdf383
-0,     228352,     228352,     1024,     4096, 0x4316f6a9
-0,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-0,     230400,     230400,     1024,     4096, 0xdfd809b7
-0,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-0,     232448,     232448,     1024,     4096, 0xd366f4a1
-0,     233472,     233472,     1024,     4096, 0x6a2f86e0
-0,     234496,     234496,     1024,     4096, 0xf51f08a9
-0,     235520,     235520,     1024,     4096, 0x05edefa8
-0,     236544,     236544,     1024,     4096, 0x255df2a6
-0,     237568,     237568,     1024,     4096, 0xe881d9e4
-0,     238592,     238592,     1024,     4096, 0x50380523
-0,     239616,     239616,     1024,     4096, 0x8b93eb26
-0,     240640,     240640,     1024,     4096, 0x759cf94c
-0,     241664,     241664,     1024,     4096, 0x8474f591
-0,     242688,     242688,     1024,     4096, 0x0030dc9e
-0,     243712,     243712,     1024,     4096, 0xb017fd54
-0,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-0,     245760,     245760,     1024,     4096, 0x7887e599
-0,     246784,     246784,     1024,     4096, 0xb730e72f
-0,     247808,     247808,     1024,     4096, 0x6bb3fae4
-0,     248832,     248832,     1024,     4096, 0xcc08fc36
-0,     249856,     249856,     1024,     4096, 0x5afd9ec2
-0,     250880,     250880,     1024,     4096, 0xa1d3e83d
-0,     251904,     251904,     1024,     4096, 0x7f96013c
-0,     252928,     252928,     1024,     4096, 0x7a0afe31
-0,     253952,     253952,     1024,     4096, 0xa37d1701
-0,     254976,     254976,     1024,     4096, 0x4615ebc2
-0,     256000,     256000,     1024,     4096, 0x217005c1
-0,     257024,     257024,     1024,     4096, 0x1755f789
-0,     258048,     258048,     1024,     4096, 0x83e6db65
-0,     259072,     259072,     1024,     4096, 0x92ab1447
-0,     260096,     260096,     1024,     4096, 0xedbdf383
-0,     261120,     261120,     1024,     4096, 0x4316f6a9
-0,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-0,     263168,     263168,     1024,     4096, 0xdfd809b7
-0,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x40560aa9
+0,       4096,       4096,     4096,    16384, 0xc4bfc43f
+0,       8192,       8192,     4096,    16384, 0x6fb1c1df
+0,      12288,      12288,     4096,    16384, 0x255ad733
+0,      16384,      16384,     4096,    16384, 0xf861de39
+0,      20480,      20480,     4096,    16384, 0xa274d117
+0,      24576,      24576,     4096,    16384, 0xe859d607
+0,      28672,      28672,     4096,    16384, 0xa0f5ef61
+0,      32768,      32768,     4096,    16384, 0xcd97d519
+0,      36864,      36864,     4096,    16384, 0x8064e205
+0,      40960,      40960,     4096,    16384, 0xaefed9e9
+0,      45056,      45056,     4096,    16384, 0xadf12c16
+0,      49152,      49152,     4096,    16384, 0xa5be1240
+0,      53248,      53248,     4096,    16384, 0x46b8dd91
+0,      57344,      57344,     4096,    16384, 0xa54b1192
+0,      61440,      61440,     4096,    16384, 0x5fbe91af
+0,      65536,      65536,     4096,    16384, 0x0375e68f
+0,      69632,      69632,     4096,    16384, 0x945620d4
+0,      73728,      73728,     4096,    16384, 0x6846cdd7
+0,      77824,      77824,     4096,    16384, 0x7ed71c0c
+0,      81920,      81920,     4096,    16384, 0x8ea0e807
+0,      86016,      86016,     4096,    16384, 0x645bc3f9
+0,      90112,      90112,     4096,    16384, 0x446ba7a4
+0,      94208,      94208,     4096,    16384, 0x299b2e17
+0,      98304,      98304,     4096,    16384, 0xc51affa2
+0,     102400,     102400,     4096,    16384, 0xb4970fcf
+0,     106496,     106496,     4096,    16384, 0xe48af9fc
+0,     110592,     110592,     4096,    16384, 0xc2beffbb
+0,     114688,     114688,     4096,    16384, 0xb9d99627
+0,     118784,     118784,     4096,    16384, 0xb65a2086
+0,     122880,     122880,     4096,    16384, 0x6386714b
+0,     126976,     126976,     4096,    16384, 0x92a3171e
+0,     131072,     131072,     4096,    16384, 0x78bad1e2
+0,     135168,     135168,     4096,    16384, 0x63301330
+0,     139264,     139264,     4096,    16384, 0xd663b943
+0,     143360,     143360,     4096,    16384, 0xdcafe377
+0,     147456,     147456,     4096,    16384, 0xfb2cd701
+0,     151552,     151552,     4096,    16384, 0x91c30201
+0,     155648,     155648,     4096,    16384, 0xf23da341
+0,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+0,     163840,     163840,     4096,    16384, 0x519bdfef
+0,     167936,     167936,     4096,    16384, 0xf2fcd803
+0,     172032,     172032,     4096,    16384, 0xd5ceccbc
+0,     176128,     176128,     4096,    16384, 0xd48ada43
+0,     180224,     180224,     4096,    16384, 0x5a4ac40f
+0,     184320,     184320,     4096,    16384, 0x29db868a
+0,     188416,     188416,     4096,    16384, 0xa2a0002b
+0,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+0,     196608,     196608,     4096,    16384, 0x338dffa4
+0,     200704,     200704,     4096,    16384, 0x970b71f5
+0,     204800,     204800,     4096,    16384, 0x0521c397
+0,     208896,     208896,     4096,    16384, 0xff5ec9de
+0,     212992,     212992,     4096,    16384, 0x5a4ac40f
+0,     217088,     217088,     4096,    16384, 0x29db868a
+0,     221184,     221184,     4096,    16384, 0xa2a0002b
+0,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+0,     229376,     229376,     4096,    16384, 0x338dffa4
+0,     233472,     233472,     4096,    16384, 0x970b71f5
+0,     237568,     237568,     4096,    16384, 0x0521c397
+0,     241664,     241664,     4096,    16384, 0xff5ec9de
+0,     245760,     245760,     4096,    16384, 0x5a4ac40f
+0,     249856,     249856,     4096,    16384, 0x29db868a
+0,     253952,     253952,     4096,    16384, 0xa2a0002b
+0,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+0,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-afade-iqsin b/tests/ref/fate/filter-afade-iqsin
index 9caa3203a9..6201ea4a4a 100644
--- a/tests/ref/fate/filter-afade-iqsin
+++ b/tests/ref/fate/filter-afade-iqsin
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x220e908d
-0,       1024,       1024,     1024,     4096, 0xdd65002e
-0,       2048,       2048,     1024,     4096, 0x8072fb25
-0,       3072,       3072,     1024,     4096, 0xe82efbb5
-0,       4096,       4096,     1024,     4096, 0xf0aceaad
-0,       5120,       5120,     1024,     4096, 0x0702f14d
-0,       6144,       6144,     1024,     4096, 0xde010588
-0,       7168,       7168,     1024,     4096, 0x65d0ff3d
-0,       8192,       8192,     1024,     4096, 0xfcd3eceb
-0,       9216,       9216,     1024,     4096, 0x0046ee27
-0,      10240,      10240,     1024,     4096, 0x9811fd1f
-0,      11264,      11264,     1024,     4096, 0x2486026e
-0,      12288,      12288,     1024,     4096, 0x5f15fa05
-0,      13312,      13312,     1024,     4096, 0xf481f255
-0,      14336,      14336,     1024,     4096, 0x473df0cf
-0,      15360,      15360,     1024,     4096, 0x65b3ffe5
-0,      16384,      16384,     1024,     4096, 0x46c10642
-0,      17408,      17408,     1024,     4096, 0x6647f01f
-0,      18432,      18432,     1024,     4096, 0x8682f66f
-0,      19456,      19456,     1024,     4096, 0x2fe1f87d
-0,      20480,      20480,     1024,     4096, 0x33ddfadb
-0,      21504,      21504,     1024,     4096, 0x8e1cfeaf
-0,      22528,      22528,     1024,     4096, 0x8f87eb79
-0,      23552,      23552,     1024,     4096, 0x79ddf2b7
-0,      24576,      24576,     1024,     4096, 0x74b6ee5d
-0,      25600,      25600,     1024,     4096, 0xd4240c2a
-0,      26624,      26624,     1024,     4096, 0x7e75e153
-0,      27648,      27648,     1024,     4096, 0xe46fee4f
-0,      28672,      28672,     1024,     4096, 0x7bddec1d
-0,      29696,      29696,     1024,     4096, 0xb1590b70
-0,      30720,      30720,     1024,     4096, 0x66fb00fa
-0,      31744,      31744,     1024,     4096, 0xf19dea17
-0,      32768,      32768,     1024,     4096, 0x831efdb7
-0,      33792,      33792,     1024,     4096, 0x1ef4f41d
-0,      34816,      34816,     1024,     4096, 0x0fa603ea
-0,      35840,      35840,     1024,     4096, 0x7fa6f915
-0,      36864,      36864,     1024,     4096, 0x3ed1f89f
-0,      37888,      37888,     1024,     4096, 0x4ac6e845
-0,      38912,      38912,     1024,     4096, 0xda9f108c
-0,      39936,      39936,     1024,     4096, 0xa88506fa
-0,      40960,      40960,     1024,     4096, 0xdcbee81d
-0,      41984,      41984,     1024,     4096, 0x2441ece7
-0,      43008,      43008,     1024,     4096, 0x7784fbbd
-0,      44032,      44032,     1024,     4096, 0xec83fbf3
-0,      45056,      45056,     1024,     4096, 0xe18704ca
-0,      46080,      46080,     1024,     4096, 0x4d7d2026
-0,      47104,      47104,     1024,     4096, 0x8d1fedeb
-0,      48128,      48128,     1024,     4096, 0xffb8f301
-0,      49152,      49152,     1024,     4096, 0x4c8dd537
-0,      50176,      50176,     1024,     4096, 0xaa9cf755
-0,      51200,      51200,     1024,     4096, 0x15aee753
-0,      52224,      52224,     1024,     4096, 0xe71e19c4
-0,      53248,      53248,     1024,     4096, 0x5e6cd725
-0,      54272,      54272,     1024,     4096, 0x02ebfde7
-0,      55296,      55296,     1024,     4096, 0xa565f353
-0,      56320,      56320,     1024,     4096, 0x24badf45
-0,      57344,      57344,     1024,     4096, 0x8d9af215
-0,      58368,      58368,     1024,     4096, 0xfb20045e
-0,      59392,      59392,     1024,     4096, 0x01adff9b
-0,      60416,      60416,     1024,     4096, 0xd686e6d3
-0,      61440,      61440,     1024,     4096, 0xe25bf975
-0,      62464,      62464,     1024,     4096, 0xd54c0ad6
-0,      63488,      63488,     1024,     4096, 0xb48eea55
-0,      64512,      64512,     1024,     4096, 0xe4d5fbeb
-0,      65536,      65536,     1024,     4096, 0x169dfe7b
-0,      66560,      66560,     1024,     4096, 0x5eebf921
-0,      67584,      67584,     1024,     4096, 0xc2a5de3f
-0,      68608,      68608,     1024,     4096, 0xa7b9db85
-0,      69632,      69632,     1024,     4096, 0xa52ee4b7
-0,      70656,      70656,     1024,     4096, 0x5ac1104a
-0,      71680,      71680,     1024,     4096, 0x3ed334b6
-0,      72704,      72704,     1024,     4096, 0x94d30f06
-0,      73728,      73728,     1024,     4096, 0x0721e755
-0,      74752,      74752,     1024,     4096, 0x4503043c
-0,      75776,      75776,     1024,     4096, 0xed11e7b9
-0,      76800,      76800,     1024,     4096, 0xf4f807d0
-0,      77824,      77824,     1024,     4096, 0x0f2bf579
-0,      78848,      78848,     1024,     4096, 0x9facf6b1
-0,      79872,      79872,     1024,     4096, 0x244206a2
-0,      80896,      80896,     1024,     4096, 0xfd4ff779
-0,      81920,      81920,     1024,     4096, 0x342010c0
-0,      82944,      82944,     1024,     4096, 0xa93a1c46
-0,      83968,      83968,     1024,     4096, 0x88f5263e
-0,      84992,      84992,     1024,     4096, 0x67b4fa25
-0,      86016,      86016,     1024,     4096, 0x1276e9b5
-0,      87040,      87040,     1024,     4096, 0x55d70f0c
-0,      88064,      88064,     1024,     4096, 0x281bc8af
-0,      89088,      89088,     1024,     4096, 0xe68dda8f
-0,      90112,      90112,     1024,     4096, 0xe457b505
-0,      91136,      91136,     1024,     4096, 0xda25a409
-0,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-0,      93184,      93184,     1024,     4096, 0xa61eb13d
-0,      94208,      94208,     1024,     4096, 0xac93b66f
-0,      95232,      95232,     1024,     4096, 0xc7aeb33f
-0,      96256,      96256,     1024,     4096, 0x52cccfb5
-0,      97280,      97280,     1024,     4096, 0x4e4cf487
-0,      98304,      98304,     1024,     4096, 0x19c07f35
-0,      99328,      99328,     1024,     4096, 0x63ecd34f
-0,     100352,     100352,     1024,     4096, 0x122aec53
-0,     101376,     101376,     1024,     4096, 0x6581c0ad
-0,     102400,     102400,     1024,     4096, 0x640edb15
-0,     103424,     103424,     1024,     4096, 0x5d66c66f
-0,     104448,     104448,     1024,     4096, 0x069e9d35
-0,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-0,     106496,     106496,     1024,     4096, 0x72468667
-0,     107520,     107520,     1024,     4096, 0x6e6dd02b
-0,     108544,     108544,     1024,     4096, 0x93edce33
-0,     109568,     109568,     1024,     4096, 0xcdfbd519
-0,     110592,     110592,     1024,     4096, 0x8463f2bb
-0,     111616,     111616,     1024,     4096, 0x5ca6f869
-0,     112640,     112640,     1024,     4096, 0x099a0398
-0,     113664,     113664,     1024,     4096, 0xa7fa10f0
-0,     114688,     114688,     1024,     4096, 0x28caddd3
-0,     115712,     115712,     1024,     4096, 0x4852ef8b
-0,     116736,     116736,     1024,     4096, 0x0250ee7b
-0,     117760,     117760,     1024,     4096, 0x9583da21
-0,     118784,     118784,     1024,     4096, 0x7365fb33
-0,     119808,     119808,     1024,     4096, 0x28c82066
-0,     120832,     120832,     1024,     4096, 0x94650be4
-0,     121856,     121856,     1024,     4096, 0xeb21f8eb
-0,     122880,     122880,     1024,     4096, 0xcd88f455
-0,     123904,     123904,     1024,     4096, 0x66a9efaf
-0,     124928,     124928,     1024,     4096, 0x5500c6ed
-0,     125952,     125952,     1024,     4096, 0x0ee0c62d
-0,     126976,     126976,     1024,     4096, 0x34d30762
-0,     128000,     128000,     1024,     4096, 0x8c0dec9f
-0,     129024,     129024,     1024,     4096, 0x790011d8
-0,     130048,     130048,     1024,     4096, 0xb76a1136
-0,     131072,     131072,     1024,     4096, 0x7dddfea7
-0,     132096,     132096,     1024,     4096, 0xdfa3ed49
-0,     133120,     133120,     1024,     4096, 0xc129f54e
-0,     134144,     134144,     1024,     4096, 0x9a86f077
-0,     135168,     135168,     1024,     4096, 0xc9eef209
-0,     136192,     136192,     1024,     4096, 0x72d4029b
-0,     137216,     137216,     1024,     4096, 0x8ec20590
-0,     138240,     138240,     1024,     4096, 0xd48f18ed
-0,     139264,     139264,     1024,     4096, 0xd807eadc
-0,     140288,     140288,     1024,     4096, 0x1e2bea09
-0,     141312,     141312,     1024,     4096, 0x937af12e
-0,     142336,     142336,     1024,     4096, 0xdedbf303
-0,     143360,     143360,     1024,     4096, 0xdc75df88
-0,     144384,     144384,     1024,     4096, 0x1845ffd6
-0,     145408,     145408,     1024,     4096, 0x20e8150c
-0,     146432,     146432,     1024,     4096, 0x5ea7eeef
-0,     147456,     147456,     1024,     4096, 0x4c7efa21
-0,     148480,     148480,     1024,     4096, 0x8b97e30e
-0,     149504,     149504,     1024,     4096, 0xe5040228
-0,     150528,     150528,     1024,     4096, 0x6283f78c
-0,     151552,     151552,     1024,     4096, 0xe7100140
-0,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-0,     153600,     153600,     1024,     4096, 0x5f0e1563
-0,     154624,     154624,     1024,     4096, 0x510bf18e
-0,     155648,     155648,     1024,     4096, 0x5f4fe425
-0,     156672,     156672,     1024,     4096, 0x507af3c0
-0,     157696,     157696,     1024,     4096, 0xbf14ddc6
-0,     158720,     158720,     1024,     4096, 0x1871ed69
-0,     159744,     159744,     1024,     4096, 0xc349ef9f
-0,     160768,     160768,     1024,     4096, 0x4e2c1834
-0,     161792,     161792,     1024,     4096, 0x2383fe04
-0,     162816,     162816,     1024,     4096, 0x6626f415
-0,     163840,     163840,     1024,     4096, 0x283be379
-0,     164864,     164864,     1024,     4096, 0xc76c0ceb
-0,     165888,     165888,     1024,     4096, 0xa0b8040f
-0,     166912,     166912,     1024,     4096, 0x2535eb6d
-0,     167936,     167936,     1024,     4096, 0xeb180bb5
-0,     168960,     168960,     1024,     4096, 0xbc5cf059
-0,     169984,     169984,     1024,     4096, 0x1862f1ac
-0,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-0,     172032,     172032,     1024,     4096, 0xbb9ae754
-0,     173056,     173056,     1024,     4096, 0x716debb5
-0,     174080,     174080,     1024,     4096, 0xff3aff2a
-0,     175104,     175104,     1024,     4096, 0x755dfa5c
-0,     176128,     176128,     1024,     4096, 0x3b830605
-0,     177152,     177152,     1024,     4096, 0x0030dc9e
-0,     178176,     178176,     1024,     4096, 0xb017fd54
-0,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-0,     180224,     180224,     1024,     4096, 0x7887e599
-0,     181248,     181248,     1024,     4096, 0xb730e72f
-0,     182272,     182272,     1024,     4096, 0x6bb3fae4
-0,     183296,     183296,     1024,     4096, 0xcc08fc36
-0,     184320,     184320,     1024,     4096, 0x5afd9ec2
-0,     185344,     185344,     1024,     4096, 0xa1d3e83d
-0,     186368,     186368,     1024,     4096, 0x7f96013c
-0,     187392,     187392,     1024,     4096, 0x7a0afe31
-0,     188416,     188416,     1024,     4096, 0xa37d1701
-0,     189440,     189440,     1024,     4096, 0x4615ebc2
-0,     190464,     190464,     1024,     4096, 0x217005c1
-0,     191488,     191488,     1024,     4096, 0x1755f789
-0,     192512,     192512,     1024,     4096, 0x83e6db65
-0,     193536,     193536,     1024,     4096, 0x92ab1447
-0,     194560,     194560,     1024,     4096, 0xedbdf383
-0,     195584,     195584,     1024,     4096, 0x4316f6a9
-0,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-0,     197632,     197632,     1024,     4096, 0xdfd809b7
-0,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-0,     199680,     199680,     1024,     4096, 0xd366f4a1
-0,     200704,     200704,     1024,     4096, 0x6a2f86e0
-0,     201728,     201728,     1024,     4096, 0xf51f08a9
-0,     202752,     202752,     1024,     4096, 0x05edefa8
-0,     203776,     203776,     1024,     4096, 0x255df2a6
-0,     204800,     204800,     1024,     4096, 0xe881d9e4
-0,     205824,     205824,     1024,     4096, 0x50380523
-0,     206848,     206848,     1024,     4096, 0x8b93eb26
-0,     207872,     207872,     1024,     4096, 0x759cf94c
-0,     208896,     208896,     1024,     4096, 0x8474f591
-0,     209920,     209920,     1024,     4096, 0x0030dc9e
-0,     210944,     210944,     1024,     4096, 0xb017fd54
-0,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-0,     212992,     212992,     1024,     4096, 0x7887e599
-0,     214016,     214016,     1024,     4096, 0xb730e72f
-0,     215040,     215040,     1024,     4096, 0x6bb3fae4
-0,     216064,     216064,     1024,     4096, 0xcc08fc36
-0,     217088,     217088,     1024,     4096, 0x5afd9ec2
-0,     218112,     218112,     1024,     4096, 0xa1d3e83d
-0,     219136,     219136,     1024,     4096, 0x7f96013c
-0,     220160,     220160,     1024,     4096, 0x7a0afe31
-0,     221184,     221184,     1024,     4096, 0xa37d1701
-0,     222208,     222208,     1024,     4096, 0x4615ebc2
-0,     223232,     223232,     1024,     4096, 0x217005c1
-0,     224256,     224256,     1024,     4096, 0x1755f789
-0,     225280,     225280,     1024,     4096, 0x83e6db65
-0,     226304,     226304,     1024,     4096, 0x92ab1447
-0,     227328,     227328,     1024,     4096, 0xedbdf383
-0,     228352,     228352,     1024,     4096, 0x4316f6a9
-0,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-0,     230400,     230400,     1024,     4096, 0xdfd809b7
-0,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-0,     232448,     232448,     1024,     4096, 0xd366f4a1
-0,     233472,     233472,     1024,     4096, 0x6a2f86e0
-0,     234496,     234496,     1024,     4096, 0xf51f08a9
-0,     235520,     235520,     1024,     4096, 0x05edefa8
-0,     236544,     236544,     1024,     4096, 0x255df2a6
-0,     237568,     237568,     1024,     4096, 0xe881d9e4
-0,     238592,     238592,     1024,     4096, 0x50380523
-0,     239616,     239616,     1024,     4096, 0x8b93eb26
-0,     240640,     240640,     1024,     4096, 0x759cf94c
-0,     241664,     241664,     1024,     4096, 0x8474f591
-0,     242688,     242688,     1024,     4096, 0x0030dc9e
-0,     243712,     243712,     1024,     4096, 0xb017fd54
-0,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-0,     245760,     245760,     1024,     4096, 0x7887e599
-0,     246784,     246784,     1024,     4096, 0xb730e72f
-0,     247808,     247808,     1024,     4096, 0x6bb3fae4
-0,     248832,     248832,     1024,     4096, 0xcc08fc36
-0,     249856,     249856,     1024,     4096, 0x5afd9ec2
-0,     250880,     250880,     1024,     4096, 0xa1d3e83d
-0,     251904,     251904,     1024,     4096, 0x7f96013c
-0,     252928,     252928,     1024,     4096, 0x7a0afe31
-0,     253952,     253952,     1024,     4096, 0xa37d1701
-0,     254976,     254976,     1024,     4096, 0x4615ebc2
-0,     256000,     256000,     1024,     4096, 0x217005c1
-0,     257024,     257024,     1024,     4096, 0x1755f789
-0,     258048,     258048,     1024,     4096, 0x83e6db65
-0,     259072,     259072,     1024,     4096, 0x92ab1447
-0,     260096,     260096,     1024,     4096, 0xedbdf383
-0,     261120,     261120,     1024,     4096, 0x4316f6a9
-0,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-0,     263168,     263168,     1024,     4096, 0xdfd809b7
-0,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x6aac87b3
+0,       4096,       4096,     4096,    16384, 0x2986e0dd
+0,       8192,       8192,     4096,    16384, 0xe037dabd
+0,      12288,      12288,     4096,    16384, 0xe837dd3b
+0,      16384,      16384,     4096,    16384, 0x4e80e56b
+0,      20480,      20480,     4096,    16384, 0xc790d7e7
+0,      24576,      24576,     4096,    16384, 0x148cca47
+0,      28672,      28672,     4096,    16384, 0x4486e2ad
+0,      32768,      32768,     4096,    16384, 0x58a4eef1
+0,      36864,      36864,     4096,    16384, 0xbb56f879
+0,      40960,      40960,     4096,    16384, 0xba71cce1
+0,      45056,      45056,     4096,    16384, 0x34de05fa
+0,      49152,      49152,     4096,    16384, 0x14a4cdc1
+0,      53248,      53248,     4096,    16384, 0x4917a7d1
+0,      57344,      57344,     4096,    16384, 0x61eedcff
+0,      61440,      61440,     4096,    16384, 0xfefeeaa9
+0,      65536,      65536,     4096,    16384, 0x6f80b18d
+0,      69632,      69632,     4096,    16384, 0x970a38cc
+0,      73728,      73728,     4096,    16384, 0x9a45db29
+0,      77824,      77824,     4096,    16384, 0x47ebea63
+0,      81920,      81920,     4096,    16384, 0xf6114d78
+0,      86016,      86016,     4096,    16384, 0x40e29c1d
+0,      90112,      90112,     4096,    16384, 0x446ba7a4
+0,      94208,      94208,     4096,    16384, 0x299b2e17
+0,      98304,      98304,     4096,    16384, 0xc51affa2
+0,     102400,     102400,     4096,    16384, 0xb4970fcf
+0,     106496,     106496,     4096,    16384, 0xe48af9fc
+0,     110592,     110592,     4096,    16384, 0xc2beffbb
+0,     114688,     114688,     4096,    16384, 0xb9d99627
+0,     118784,     118784,     4096,    16384, 0xb65a2086
+0,     122880,     122880,     4096,    16384, 0x6386714b
+0,     126976,     126976,     4096,    16384, 0x92a3171e
+0,     131072,     131072,     4096,    16384, 0x78bad1e2
+0,     135168,     135168,     4096,    16384, 0x63301330
+0,     139264,     139264,     4096,    16384, 0xd663b943
+0,     143360,     143360,     4096,    16384, 0xdcafe377
+0,     147456,     147456,     4096,    16384, 0xfb2cd701
+0,     151552,     151552,     4096,    16384, 0x91c30201
+0,     155648,     155648,     4096,    16384, 0xf23da341
+0,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+0,     163840,     163840,     4096,    16384, 0x519bdfef
+0,     167936,     167936,     4096,    16384, 0xf2fcd803
+0,     172032,     172032,     4096,    16384, 0xd5ceccbc
+0,     176128,     176128,     4096,    16384, 0xd48ada43
+0,     180224,     180224,     4096,    16384, 0x5a4ac40f
+0,     184320,     184320,     4096,    16384, 0x29db868a
+0,     188416,     188416,     4096,    16384, 0xa2a0002b
+0,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+0,     196608,     196608,     4096,    16384, 0x338dffa4
+0,     200704,     200704,     4096,    16384, 0x970b71f5
+0,     204800,     204800,     4096,    16384, 0x0521c397
+0,     208896,     208896,     4096,    16384, 0xff5ec9de
+0,     212992,     212992,     4096,    16384, 0x5a4ac40f
+0,     217088,     217088,     4096,    16384, 0x29db868a
+0,     221184,     221184,     4096,    16384, 0xa2a0002b
+0,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+0,     229376,     229376,     4096,    16384, 0x338dffa4
+0,     233472,     233472,     4096,    16384, 0x970b71f5
+0,     237568,     237568,     4096,    16384, 0x0521c397
+0,     241664,     241664,     4096,    16384, 0xff5ec9de
+0,     245760,     245760,     4096,    16384, 0x5a4ac40f
+0,     249856,     249856,     4096,    16384, 0x29db868a
+0,     253952,     253952,     4096,    16384, 0xa2a0002b
+0,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+0,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-afade-log b/tests/ref/fate/filter-afade-log
index f3ba265a68..db3caff2bb 100644
--- a/tests/ref/fate/filter-afade-log
+++ b/tests/ref/fate/filter-afade-log
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0xf01adbd3
-0,       1024,       1024,     1024,     4096, 0xbbe10f8e
-0,       2048,       2048,     1024,     4096, 0xbf04fccf
-0,       3072,       3072,     1024,     4096, 0x70e5fc39
-0,       4096,       4096,     1024,     4096, 0x93a2ecdf
-0,       5120,       5120,     1024,     4096, 0x1680e311
-0,       6144,       6144,     1024,     4096, 0xb73ef96d
-0,       7168,       7168,     1024,     4096, 0x3dbcfe5f
-0,       8192,       8192,     1024,     4096, 0xfdbd029c
-0,       9216,       9216,     1024,     4096, 0x4f8fea8f
-0,      10240,      10240,     1024,     4096, 0x54580154
-0,      11264,      11264,     1024,     4096, 0x471d1012
-0,      12288,      12288,     1024,     4096, 0xf6cefe57
-0,      13312,      13312,     1024,     4096, 0x6a550156
-0,      14336,      14336,     1024,     4096, 0xba5c06ca
-0,      15360,      15360,     1024,     4096, 0xa280fd09
-0,      16384,      16384,     1024,     4096, 0x06b30e68
-0,      17408,      17408,     1024,     4096, 0xd3f1f92d
-0,      18432,      18432,     1024,     4096, 0xf75de519
-0,      19456,      19456,     1024,     4096, 0x411cf0e5
-0,      20480,      20480,     1024,     4096, 0xeeb80566
-0,      21504,      21504,     1024,     4096, 0xa57c064c
-0,      22528,      22528,     1024,     4096, 0x6476f72f
-0,      23552,      23552,     1024,     4096, 0x6e1bef53
-0,      24576,      24576,     1024,     4096, 0x911ff843
-0,      25600,      25600,     1024,     4096, 0x4e3713c4
-0,      26624,      26624,     1024,     4096, 0x3434fb71
-0,      27648,      27648,     1024,     4096, 0xd3c1eaed
-0,      28672,      28672,     1024,     4096, 0x8804e87d
-0,      29696,      29696,     1024,     4096, 0xd1fa03e2
-0,      30720,      30720,     1024,     4096, 0x9d56fc21
-0,      31744,      31744,     1024,     4096, 0x63d6f2fb
-0,      32768,      32768,     1024,     4096, 0xa1ddfa6d
-0,      33792,      33792,     1024,     4096, 0x998309ee
-0,      34816,      34816,     1024,     4096, 0xcebc0632
-0,      35840,      35840,     1024,     4096, 0x9860e503
-0,      36864,      36864,     1024,     4096, 0xa3e910d8
-0,      37888,      37888,     1024,     4096, 0x2449caed
-0,      38912,      38912,     1024,     4096, 0x1faf0e9a
-0,      39936,      39936,     1024,     4096, 0xe18fdb59
-0,      40960,      40960,     1024,     4096, 0xaa0b057e
-0,      41984,      41984,     1024,     4096, 0x2b18cae1
-0,      43008,      43008,     1024,     4096, 0x6f0a1338
-0,      44032,      44032,     1024,     4096, 0x59af03b2
-0,      45056,      45056,     1024,     4096, 0xd204f533
-0,      46080,      46080,     1024,     4096, 0xae5b0ed2
-0,      47104,      47104,     1024,     4096, 0xfebfc253
-0,      48128,      48128,     1024,     4096, 0x268bd8d9
-0,      49152,      49152,     1024,     4096, 0x5c78024a
-0,      50176,      50176,     1024,     4096, 0x5a36f343
-0,      51200,      51200,     1024,     4096, 0x1899cc19
-0,      52224,      52224,     1024,     4096, 0x8b27dea9
-0,      53248,      53248,     1024,     4096, 0x1ed7cbbf
-0,      54272,      54272,     1024,     4096, 0x0c8e15c4
-0,      55296,      55296,     1024,     4096, 0xb864004c
-0,      56320,      56320,     1024,     4096, 0x327effbf
-0,      57344,      57344,     1024,     4096, 0x5c3e2056
-0,      58368,      58368,     1024,     4096, 0xb704086a
-0,      59392,      59392,     1024,     4096, 0x0efdff09
-0,      60416,      60416,     1024,     4096, 0x979406e0
-0,      61440,      61440,     1024,     4096, 0x1115e93d
-0,      62464,      62464,     1024,     4096, 0x3d62f097
-0,      63488,      63488,     1024,     4096, 0xe6f8e051
-0,      64512,      64512,     1024,     4096, 0x30d40464
-0,      65536,      65536,     1024,     4096, 0x5c2f1726
-0,      66560,      66560,     1024,     4096, 0x2ac3cdd5
-0,      67584,      67584,     1024,     4096, 0x92c20b12
-0,      68608,      68608,     1024,     4096, 0xae10cd6f
-0,      69632,      69632,     1024,     4096, 0x4c8fd6fb
-0,      70656,      70656,     1024,     4096, 0xfbffeb71
-0,      71680,      71680,     1024,     4096, 0xed641b28
-0,      72704,      72704,     1024,     4096, 0x35eef925
-0,      73728,      73728,     1024,     4096, 0xe098d85d
-0,      74752,      74752,     1024,     4096, 0x8d03f22b
-0,      75776,      75776,     1024,     4096, 0x00d7f5ed
-0,      76800,      76800,     1024,     4096, 0xb80917ce
-0,      77824,      77824,     1024,     4096, 0xc255fb89
-0,      78848,      78848,     1024,     4096, 0xfef9063c
-0,      79872,      79872,     1024,     4096, 0x7286f151
-0,      80896,      80896,     1024,     4096, 0x24c8ee71
-0,      81920,      81920,     1024,     4096, 0xcf5f169a
-0,      82944,      82944,     1024,     4096, 0xb2fa1b5c
-0,      83968,      83968,     1024,     4096, 0xddfaf895
-0,      84992,      84992,     1024,     4096, 0xfe170e94
-0,      86016,      86016,     1024,     4096, 0x27d21960
-0,      87040,      87040,     1024,     4096, 0x8edd09c6
-0,      88064,      88064,     1024,     4096, 0x7c2f0074
-0,      89088,      89088,     1024,     4096, 0xaa9dfa4b
-0,      90112,      90112,     1024,     4096, 0xd543db09
-0,      91136,      91136,     1024,     4096, 0x25c0c7a9
-0,      92160,      92160,     1024,     4096, 0xccf5ac8f
-0,      93184,      93184,     1024,     4096, 0x131fdf1b
-0,      94208,      94208,     1024,     4096, 0xeb3ff7eb
-0,      95232,      95232,     1024,     4096, 0xf6d50958
-0,      96256,      96256,     1024,     4096, 0xdd3bfea5
-0,      97280,      97280,     1024,     4096, 0x6ad02eba
-0,      98304,      98304,     1024,     4096, 0x30c3de97
-0,      99328,      99328,     1024,     4096, 0xc78b1b02
-0,     100352,     100352,     1024,     4096, 0x017014e8
-0,     101376,     101376,     1024,     4096, 0x2c90ff59
-0,     102400,     102400,     1024,     4096, 0x88f71eb2
-0,     103424,     103424,     1024,     4096, 0xeed806e0
-0,     104448,     104448,     1024,     4096, 0x478df91b
-0,     105472,     105472,     1024,     4096, 0xc278f18b
-0,     106496,     106496,     1024,     4096, 0xc457cb7f
-0,     107520,     107520,     1024,     4096, 0x87a6081a
-0,     108544,     108544,     1024,     4096, 0xef15075c
-0,     109568,     109568,     1024,     4096, 0x5f4f076e
-0,     110592,     110592,     1024,     4096, 0x8463f2bb
-0,     111616,     111616,     1024,     4096, 0x5ca6f869
-0,     112640,     112640,     1024,     4096, 0x099a0398
-0,     113664,     113664,     1024,     4096, 0xa7fa10f0
-0,     114688,     114688,     1024,     4096, 0x28caddd3
-0,     115712,     115712,     1024,     4096, 0x4852ef8b
-0,     116736,     116736,     1024,     4096, 0x0250ee7b
-0,     117760,     117760,     1024,     4096, 0x9583da21
-0,     118784,     118784,     1024,     4096, 0x7365fb33
-0,     119808,     119808,     1024,     4096, 0x28c82066
-0,     120832,     120832,     1024,     4096, 0x94650be4
-0,     121856,     121856,     1024,     4096, 0xeb21f8eb
-0,     122880,     122880,     1024,     4096, 0xcd88f455
-0,     123904,     123904,     1024,     4096, 0x66a9efaf
-0,     124928,     124928,     1024,     4096, 0x5500c6ed
-0,     125952,     125952,     1024,     4096, 0x0ee0c62d
-0,     126976,     126976,     1024,     4096, 0x34d30762
-0,     128000,     128000,     1024,     4096, 0x8c0dec9f
-0,     129024,     129024,     1024,     4096, 0x790011d8
-0,     130048,     130048,     1024,     4096, 0xb76a1136
-0,     131072,     131072,     1024,     4096, 0x7dddfea7
-0,     132096,     132096,     1024,     4096, 0xdfa3ed49
-0,     133120,     133120,     1024,     4096, 0xc129f54e
-0,     134144,     134144,     1024,     4096, 0x9a86f077
-0,     135168,     135168,     1024,     4096, 0xc9eef209
-0,     136192,     136192,     1024,     4096, 0x72d4029b
-0,     137216,     137216,     1024,     4096, 0x8ec20590
-0,     138240,     138240,     1024,     4096, 0xd48f18ed
-0,     139264,     139264,     1024,     4096, 0xd807eadc
-0,     140288,     140288,     1024,     4096, 0x1e2bea09
-0,     141312,     141312,     1024,     4096, 0x937af12e
-0,     142336,     142336,     1024,     4096, 0xdedbf303
-0,     143360,     143360,     1024,     4096, 0xdc75df88
-0,     144384,     144384,     1024,     4096, 0x1845ffd6
-0,     145408,     145408,     1024,     4096, 0x20e8150c
-0,     146432,     146432,     1024,     4096, 0x5ea7eeef
-0,     147456,     147456,     1024,     4096, 0x4c7efa21
-0,     148480,     148480,     1024,     4096, 0x8b97e30e
-0,     149504,     149504,     1024,     4096, 0xe5040228
-0,     150528,     150528,     1024,     4096, 0x6283f78c
-0,     151552,     151552,     1024,     4096, 0xe7100140
-0,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-0,     153600,     153600,     1024,     4096, 0x5f0e1563
-0,     154624,     154624,     1024,     4096, 0x510bf18e
-0,     155648,     155648,     1024,     4096, 0x5f4fe425
-0,     156672,     156672,     1024,     4096, 0x507af3c0
-0,     157696,     157696,     1024,     4096, 0xbf14ddc6
-0,     158720,     158720,     1024,     4096, 0x1871ed69
-0,     159744,     159744,     1024,     4096, 0xc349ef9f
-0,     160768,     160768,     1024,     4096, 0x4e2c1834
-0,     161792,     161792,     1024,     4096, 0x2383fe04
-0,     162816,     162816,     1024,     4096, 0x6626f415
-0,     163840,     163840,     1024,     4096, 0x283be379
-0,     164864,     164864,     1024,     4096, 0xc76c0ceb
-0,     165888,     165888,     1024,     4096, 0xa0b8040f
-0,     166912,     166912,     1024,     4096, 0x2535eb6d
-0,     167936,     167936,     1024,     4096, 0xeb180bb5
-0,     168960,     168960,     1024,     4096, 0xbc5cf059
-0,     169984,     169984,     1024,     4096, 0x1862f1ac
-0,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-0,     172032,     172032,     1024,     4096, 0xbb9ae754
-0,     173056,     173056,     1024,     4096, 0x716debb5
-0,     174080,     174080,     1024,     4096, 0xff3aff2a
-0,     175104,     175104,     1024,     4096, 0x755dfa5c
-0,     176128,     176128,     1024,     4096, 0x3b830605
-0,     177152,     177152,     1024,     4096, 0x0030dc9e
-0,     178176,     178176,     1024,     4096, 0xb017fd54
-0,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-0,     180224,     180224,     1024,     4096, 0x7887e599
-0,     181248,     181248,     1024,     4096, 0xb730e72f
-0,     182272,     182272,     1024,     4096, 0x6bb3fae4
-0,     183296,     183296,     1024,     4096, 0xcc08fc36
-0,     184320,     184320,     1024,     4096, 0x5afd9ec2
-0,     185344,     185344,     1024,     4096, 0xa1d3e83d
-0,     186368,     186368,     1024,     4096, 0x7f96013c
-0,     187392,     187392,     1024,     4096, 0x7a0afe31
-0,     188416,     188416,     1024,     4096, 0xa37d1701
-0,     189440,     189440,     1024,     4096, 0x4615ebc2
-0,     190464,     190464,     1024,     4096, 0x217005c1
-0,     191488,     191488,     1024,     4096, 0x1755f789
-0,     192512,     192512,     1024,     4096, 0x83e6db65
-0,     193536,     193536,     1024,     4096, 0x92ab1447
-0,     194560,     194560,     1024,     4096, 0xedbdf383
-0,     195584,     195584,     1024,     4096, 0x4316f6a9
-0,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-0,     197632,     197632,     1024,     4096, 0xdfd809b7
-0,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-0,     199680,     199680,     1024,     4096, 0xd366f4a1
-0,     200704,     200704,     1024,     4096, 0x6a2f86e0
-0,     201728,     201728,     1024,     4096, 0xf51f08a9
-0,     202752,     202752,     1024,     4096, 0x05edefa8
-0,     203776,     203776,     1024,     4096, 0x255df2a6
-0,     204800,     204800,     1024,     4096, 0xe881d9e4
-0,     205824,     205824,     1024,     4096, 0x50380523
-0,     206848,     206848,     1024,     4096, 0x8b93eb26
-0,     207872,     207872,     1024,     4096, 0x759cf94c
-0,     208896,     208896,     1024,     4096, 0x8474f591
-0,     209920,     209920,     1024,     4096, 0x0030dc9e
-0,     210944,     210944,     1024,     4096, 0xb017fd54
-0,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-0,     212992,     212992,     1024,     4096, 0x7887e599
-0,     214016,     214016,     1024,     4096, 0xb730e72f
-0,     215040,     215040,     1024,     4096, 0x6bb3fae4
-0,     216064,     216064,     1024,     4096, 0xcc08fc36
-0,     217088,     217088,     1024,     4096, 0x5afd9ec2
-0,     218112,     218112,     1024,     4096, 0xa1d3e83d
-0,     219136,     219136,     1024,     4096, 0x7f96013c
-0,     220160,     220160,     1024,     4096, 0x7a0afe31
-0,     221184,     221184,     1024,     4096, 0xa37d1701
-0,     222208,     222208,     1024,     4096, 0x4615ebc2
-0,     223232,     223232,     1024,     4096, 0x217005c1
-0,     224256,     224256,     1024,     4096, 0x1755f789
-0,     225280,     225280,     1024,     4096, 0x83e6db65
-0,     226304,     226304,     1024,     4096, 0x92ab1447
-0,     227328,     227328,     1024,     4096, 0xedbdf383
-0,     228352,     228352,     1024,     4096, 0x4316f6a9
-0,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-0,     230400,     230400,     1024,     4096, 0xdfd809b7
-0,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-0,     232448,     232448,     1024,     4096, 0xd366f4a1
-0,     233472,     233472,     1024,     4096, 0x6a2f86e0
-0,     234496,     234496,     1024,     4096, 0xf51f08a9
-0,     235520,     235520,     1024,     4096, 0x05edefa8
-0,     236544,     236544,     1024,     4096, 0x255df2a6
-0,     237568,     237568,     1024,     4096, 0xe881d9e4
-0,     238592,     238592,     1024,     4096, 0x50380523
-0,     239616,     239616,     1024,     4096, 0x8b93eb26
-0,     240640,     240640,     1024,     4096, 0x759cf94c
-0,     241664,     241664,     1024,     4096, 0x8474f591
-0,     242688,     242688,     1024,     4096, 0x0030dc9e
-0,     243712,     243712,     1024,     4096, 0xb017fd54
-0,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-0,     245760,     245760,     1024,     4096, 0x7887e599
-0,     246784,     246784,     1024,     4096, 0xb730e72f
-0,     247808,     247808,     1024,     4096, 0x6bb3fae4
-0,     248832,     248832,     1024,     4096, 0xcc08fc36
-0,     249856,     249856,     1024,     4096, 0x5afd9ec2
-0,     250880,     250880,     1024,     4096, 0xa1d3e83d
-0,     251904,     251904,     1024,     4096, 0x7f96013c
-0,     252928,     252928,     1024,     4096, 0x7a0afe31
-0,     253952,     253952,     1024,     4096, 0xa37d1701
-0,     254976,     254976,     1024,     4096, 0x4615ebc2
-0,     256000,     256000,     1024,     4096, 0x217005c1
-0,     257024,     257024,     1024,     4096, 0x1755f789
-0,     258048,     258048,     1024,     4096, 0x83e6db65
-0,     259072,     259072,     1024,     4096, 0x92ab1447
-0,     260096,     260096,     1024,     4096, 0xedbdf383
-0,     261120,     261120,     1024,     4096, 0x4316f6a9
-0,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-0,     263168,     263168,     1024,     4096, 0xdfd809b7
-0,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x90a8e487
+0,       4096,       4096,     4096,    16384, 0x8d43c7e9
+0,       8192,       8192,     4096,    16384, 0x0959fe91
+0,      12288,      12288,     4096,    16384, 0x4282039e
+0,      16384,      16384,     4096,    16384, 0x95deddb1
+0,      20480,      20480,     4096,    16384, 0xf9a3f243
+0,      24576,      24576,     4096,    16384, 0xd29af283
+0,      28672,      28672,     4096,    16384, 0x9cffdb99
+0,      32768,      32768,     4096,    16384, 0xcb82ef9f
+0,      36864,      36864,     4096,    16384, 0x432dc5c7
+0,      40960,      40960,     4096,    16384, 0x7be2e749
+0,      45056,      45056,     4096,    16384, 0x299a9f4f
+0,      49152,      49152,     4096,    16384, 0xb883a06d
+0,      53248,      53248,     4096,    16384, 0x8c93e19d
+0,      57344,      57344,     4096,    16384, 0x03d22eb8
+0,      61440,      61440,     4096,    16384, 0xebfabea7
+0,      65536,      65536,     4096,    16384, 0x755ebd8b
+0,      69632,      69632,     4096,    16384, 0x4bcad6d7
+0,      73728,      73728,     4096,    16384, 0xd3ffd861
+0,      77824,      77824,     4096,    16384, 0x4a50e1a5
+0,      81920,      81920,     4096,    16384, 0x6a94392e
+0,      86016,      86016,     4096,    16384, 0x37b71df4
+0,      90112,      90112,     4096,    16384, 0x1ba12e89
+0,      94208,      94208,     4096,    16384, 0x44072ec0
+0,      98304,      98304,     4096,    16384, 0xeec00df8
+0,     102400,     102400,     4096,    16384, 0xdec21056
+0,     106496,     106496,     4096,    16384, 0xbd0ce263
+0,     110592,     110592,     4096,    16384, 0xc2beffbb
+0,     114688,     114688,     4096,    16384, 0xb9d99627
+0,     118784,     118784,     4096,    16384, 0xb65a2086
+0,     122880,     122880,     4096,    16384, 0x6386714b
+0,     126976,     126976,     4096,    16384, 0x92a3171e
+0,     131072,     131072,     4096,    16384, 0x78bad1e2
+0,     135168,     135168,     4096,    16384, 0x63301330
+0,     139264,     139264,     4096,    16384, 0xd663b943
+0,     143360,     143360,     4096,    16384, 0xdcafe377
+0,     147456,     147456,     4096,    16384, 0xfb2cd701
+0,     151552,     151552,     4096,    16384, 0x91c30201
+0,     155648,     155648,     4096,    16384, 0xf23da341
+0,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+0,     163840,     163840,     4096,    16384, 0x519bdfef
+0,     167936,     167936,     4096,    16384, 0xf2fcd803
+0,     172032,     172032,     4096,    16384, 0xd5ceccbc
+0,     176128,     176128,     4096,    16384, 0xd48ada43
+0,     180224,     180224,     4096,    16384, 0x5a4ac40f
+0,     184320,     184320,     4096,    16384, 0x29db868a
+0,     188416,     188416,     4096,    16384, 0xa2a0002b
+0,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+0,     196608,     196608,     4096,    16384, 0x338dffa4
+0,     200704,     200704,     4096,    16384, 0x970b71f5
+0,     204800,     204800,     4096,    16384, 0x0521c397
+0,     208896,     208896,     4096,    16384, 0xff5ec9de
+0,     212992,     212992,     4096,    16384, 0x5a4ac40f
+0,     217088,     217088,     4096,    16384, 0x29db868a
+0,     221184,     221184,     4096,    16384, 0xa2a0002b
+0,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+0,     229376,     229376,     4096,    16384, 0x338dffa4
+0,     233472,     233472,     4096,    16384, 0x970b71f5
+0,     237568,     237568,     4096,    16384, 0x0521c397
+0,     241664,     241664,     4096,    16384, 0xff5ec9de
+0,     245760,     245760,     4096,    16384, 0x5a4ac40f
+0,     249856,     249856,     4096,    16384, 0x29db868a
+0,     253952,     253952,     4096,    16384, 0xa2a0002b
+0,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+0,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-afade-qsin b/tests/ref/fate/filter-afade-qsin
index df3005edbc..494def0876 100644
--- a/tests/ref/fate/filter-afade-qsin
+++ b/tests/ref/fate/filter-afade-qsin
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0xd977ce0f
-0,       1024,       1024,     1024,     4096, 0x9333f5b1
-0,       2048,       2048,     1024,     4096, 0xf1a30794
-0,       3072,       3072,     1024,     4096, 0xbfb1f7af
-0,       4096,       4096,     1024,     4096, 0x9c0be73f
-0,       5120,       5120,     1024,     4096, 0xe77af231
-0,       6144,       6144,     1024,     4096, 0x60ae0600
-0,       7168,       7168,     1024,     4096, 0x7ecff8d1
-0,       8192,       8192,     1024,     4096, 0xa1a1ec0f
-0,       9216,       9216,     1024,     4096, 0x26f2e4eb
-0,      10240,      10240,     1024,     4096, 0x875d01bc
-0,      11264,      11264,     1024,     4096, 0x56a5edef
-0,      12288,      12288,     1024,     4096, 0xdadeff81
-0,      13312,      13312,     1024,     4096, 0x2198efe7
-0,      14336,      14336,     1024,     4096, 0x6666f8e3
-0,      15360,      15360,     1024,     4096, 0xbc1702e4
-0,      16384,      16384,     1024,     4096, 0x3e32fa1f
-0,      17408,      17408,     1024,     4096, 0x36eff5c7
-0,      18432,      18432,     1024,     4096, 0xda75ec39
-0,      19456,      19456,     1024,     4096, 0x3aeef987
-0,      20480,      20480,     1024,     4096, 0x311f0090
-0,      21504,      21504,     1024,     4096, 0xf40002ae
-0,      22528,      22528,     1024,     4096, 0x390ef101
-0,      23552,      23552,     1024,     4096, 0x1599ff6b
-0,      24576,      24576,     1024,     4096, 0xcd54edef
-0,      25600,      25600,     1024,     4096, 0x0c991178
-0,      26624,      26624,     1024,     4096, 0x7e69f3db
-0,      27648,      27648,     1024,     4096, 0x1c72f871
-0,      28672,      28672,     1024,     4096, 0xb51af385
-0,      29696,      29696,     1024,     4096, 0xc8cb0038
-0,      30720,      30720,     1024,     4096, 0xc3760a10
-0,      31744,      31744,     1024,     4096, 0x77baef51
-0,      32768,      32768,     1024,     4096, 0x0f9cec85
-0,      33792,      33792,     1024,     4096, 0xf78ff8a3
-0,      34816,      34816,     1024,     4096, 0x5a550f7c
-0,      35840,      35840,     1024,     4096, 0x522eef61
-0,      36864,      36864,     1024,     4096, 0x8738e879
-0,      37888,      37888,     1024,     4096, 0x6accf54f
-0,      38912,      38912,     1024,     4096, 0x1ceef2d3
-0,      39936,      39936,     1024,     4096, 0xacd3e885
-0,      40960,      40960,     1024,     4096, 0xed18e503
-0,      41984,      41984,     1024,     4096, 0xa5c5f85d
-0,      43008,      43008,     1024,     4096, 0x4f75049e
-0,      44032,      44032,     1024,     4096, 0xe017e021
-0,      45056,      45056,     1024,     4096, 0xe52e0580
-0,      46080,      46080,     1024,     4096, 0x101613ba
-0,      47104,      47104,     1024,     4096, 0x131eebef
-0,      48128,      48128,     1024,     4096, 0x97f3e1ef
-0,      49152,      49152,     1024,     4096, 0xb6d0ed0b
-0,      50176,      50176,     1024,     4096, 0x524b0300
-0,      51200,      51200,     1024,     4096, 0xdd39c011
-0,      52224,      52224,     1024,     4096, 0xd7ff1126
-0,      53248,      53248,     1024,     4096, 0x6019ed21
-0,      54272,      54272,     1024,     4096, 0x771f1a84
-0,      55296,      55296,     1024,     4096, 0x1a5ef595
-0,      56320,      56320,     1024,     4096, 0x9c53eb6b
-0,      57344,      57344,     1024,     4096, 0x0a95f2e5
-0,      58368,      58368,     1024,     4096, 0x6c631296
-0,      59392,      59392,     1024,     4096, 0xb6a0fbeb
-0,      60416,      60416,     1024,     4096, 0x34bbf835
-0,      61440,      61440,     1024,     4096, 0x7536f37f
-0,      62464,      62464,     1024,     4096, 0xaeac02a0
-0,      63488,      63488,     1024,     4096, 0xfc5cd7c5
-0,      64512,      64512,     1024,     4096, 0x0427ea85
-0,      65536,      65536,     1024,     4096, 0x207003a6
-0,      66560,      66560,     1024,     4096, 0x339ef8c7
-0,      67584,      67584,     1024,     4096, 0x6839f2a9
-0,      68608,      68608,     1024,     4096, 0xc7630330
-0,      69632,      69632,     1024,     4096, 0xd2570b4e
-0,      70656,      70656,     1024,     4096, 0xa2a5e381
-0,      71680,      71680,     1024,     4096, 0xbe941104
-0,      72704,      72704,     1024,     4096, 0x5feef0eb
-0,      73728,      73728,     1024,     4096, 0x9513ead5
-0,      74752,      74752,     1024,     4096, 0x045aeb69
-0,      75776,      75776,     1024,     4096, 0xed6f1042
-0,      76800,      76800,     1024,     4096, 0xd79604a2
-0,      77824,      77824,     1024,     4096, 0xb37dedb3
-0,      78848,      78848,     1024,     4096, 0x666bfa95
-0,      79872,      79872,     1024,     4096, 0x53b10308
-0,      80896,      80896,     1024,     4096, 0xae09fbb7
-0,      81920,      81920,     1024,     4096, 0xba852b80
-0,      82944,      82944,     1024,     4096, 0x76fe2bb2
-0,      83968,      83968,     1024,     4096, 0x2d5fff49
-0,      84992,      84992,     1024,     4096, 0x40dc0136
-0,      86016,      86016,     1024,     4096, 0x483e0522
-0,      87040,      87040,     1024,     4096, 0x756e1596
-0,      88064,      88064,     1024,     4096, 0x1b1ac8b7
-0,      89088,      89088,     1024,     4096, 0xe68dda8f
-0,      90112,      90112,     1024,     4096, 0xe457b505
-0,      91136,      91136,     1024,     4096, 0xda25a409
-0,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-0,      93184,      93184,     1024,     4096, 0xa61eb13d
-0,      94208,      94208,     1024,     4096, 0xac93b66f
-0,      95232,      95232,     1024,     4096, 0xc7aeb33f
-0,      96256,      96256,     1024,     4096, 0x52cccfb5
-0,      97280,      97280,     1024,     4096, 0x4e4cf487
-0,      98304,      98304,     1024,     4096, 0x19c07f35
-0,      99328,      99328,     1024,     4096, 0x63ecd34f
-0,     100352,     100352,     1024,     4096, 0x122aec53
-0,     101376,     101376,     1024,     4096, 0x6581c0ad
-0,     102400,     102400,     1024,     4096, 0x640edb15
-0,     103424,     103424,     1024,     4096, 0x5d66c66f
-0,     104448,     104448,     1024,     4096, 0x069e9d35
-0,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-0,     106496,     106496,     1024,     4096, 0x72468667
-0,     107520,     107520,     1024,     4096, 0x6e6dd02b
-0,     108544,     108544,     1024,     4096, 0x93edce33
-0,     109568,     109568,     1024,     4096, 0xcdfbd519
-0,     110592,     110592,     1024,     4096, 0x8463f2bb
-0,     111616,     111616,     1024,     4096, 0x5ca6f869
-0,     112640,     112640,     1024,     4096, 0x099a0398
-0,     113664,     113664,     1024,     4096, 0xa7fa10f0
-0,     114688,     114688,     1024,     4096, 0x28caddd3
-0,     115712,     115712,     1024,     4096, 0x4852ef8b
-0,     116736,     116736,     1024,     4096, 0x0250ee7b
-0,     117760,     117760,     1024,     4096, 0x9583da21
-0,     118784,     118784,     1024,     4096, 0x7365fb33
-0,     119808,     119808,     1024,     4096, 0x28c82066
-0,     120832,     120832,     1024,     4096, 0x94650be4
-0,     121856,     121856,     1024,     4096, 0xeb21f8eb
-0,     122880,     122880,     1024,     4096, 0xcd88f455
-0,     123904,     123904,     1024,     4096, 0x66a9efaf
-0,     124928,     124928,     1024,     4096, 0x5500c6ed
-0,     125952,     125952,     1024,     4096, 0x0ee0c62d
-0,     126976,     126976,     1024,     4096, 0x34d30762
-0,     128000,     128000,     1024,     4096, 0x8c0dec9f
-0,     129024,     129024,     1024,     4096, 0x790011d8
-0,     130048,     130048,     1024,     4096, 0xb76a1136
-0,     131072,     131072,     1024,     4096, 0x7dddfea7
-0,     132096,     132096,     1024,     4096, 0xdfa3ed49
-0,     133120,     133120,     1024,     4096, 0xc129f54e
-0,     134144,     134144,     1024,     4096, 0x9a86f077
-0,     135168,     135168,     1024,     4096, 0xc9eef209
-0,     136192,     136192,     1024,     4096, 0x72d4029b
-0,     137216,     137216,     1024,     4096, 0x8ec20590
-0,     138240,     138240,     1024,     4096, 0xd48f18ed
-0,     139264,     139264,     1024,     4096, 0xd807eadc
-0,     140288,     140288,     1024,     4096, 0x1e2bea09
-0,     141312,     141312,     1024,     4096, 0x937af12e
-0,     142336,     142336,     1024,     4096, 0xdedbf303
-0,     143360,     143360,     1024,     4096, 0xdc75df88
-0,     144384,     144384,     1024,     4096, 0x1845ffd6
-0,     145408,     145408,     1024,     4096, 0x20e8150c
-0,     146432,     146432,     1024,     4096, 0x5ea7eeef
-0,     147456,     147456,     1024,     4096, 0x4c7efa21
-0,     148480,     148480,     1024,     4096, 0x8b97e30e
-0,     149504,     149504,     1024,     4096, 0xe5040228
-0,     150528,     150528,     1024,     4096, 0x6283f78c
-0,     151552,     151552,     1024,     4096, 0xe7100140
-0,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-0,     153600,     153600,     1024,     4096, 0x5f0e1563
-0,     154624,     154624,     1024,     4096, 0x510bf18e
-0,     155648,     155648,     1024,     4096, 0x5f4fe425
-0,     156672,     156672,     1024,     4096, 0x507af3c0
-0,     157696,     157696,     1024,     4096, 0xbf14ddc6
-0,     158720,     158720,     1024,     4096, 0x1871ed69
-0,     159744,     159744,     1024,     4096, 0xc349ef9f
-0,     160768,     160768,     1024,     4096, 0x4e2c1834
-0,     161792,     161792,     1024,     4096, 0x2383fe04
-0,     162816,     162816,     1024,     4096, 0x6626f415
-0,     163840,     163840,     1024,     4096, 0x283be379
-0,     164864,     164864,     1024,     4096, 0xc76c0ceb
-0,     165888,     165888,     1024,     4096, 0xa0b8040f
-0,     166912,     166912,     1024,     4096, 0x2535eb6d
-0,     167936,     167936,     1024,     4096, 0xeb180bb5
-0,     168960,     168960,     1024,     4096, 0xbc5cf059
-0,     169984,     169984,     1024,     4096, 0x1862f1ac
-0,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-0,     172032,     172032,     1024,     4096, 0xbb9ae754
-0,     173056,     173056,     1024,     4096, 0x716debb5
-0,     174080,     174080,     1024,     4096, 0xff3aff2a
-0,     175104,     175104,     1024,     4096, 0x755dfa5c
-0,     176128,     176128,     1024,     4096, 0x3b830605
-0,     177152,     177152,     1024,     4096, 0x0030dc9e
-0,     178176,     178176,     1024,     4096, 0xb017fd54
-0,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-0,     180224,     180224,     1024,     4096, 0x7887e599
-0,     181248,     181248,     1024,     4096, 0xb730e72f
-0,     182272,     182272,     1024,     4096, 0x6bb3fae4
-0,     183296,     183296,     1024,     4096, 0xcc08fc36
-0,     184320,     184320,     1024,     4096, 0x5afd9ec2
-0,     185344,     185344,     1024,     4096, 0xa1d3e83d
-0,     186368,     186368,     1024,     4096, 0x7f96013c
-0,     187392,     187392,     1024,     4096, 0x7a0afe31
-0,     188416,     188416,     1024,     4096, 0xa37d1701
-0,     189440,     189440,     1024,     4096, 0x4615ebc2
-0,     190464,     190464,     1024,     4096, 0x217005c1
-0,     191488,     191488,     1024,     4096, 0x1755f789
-0,     192512,     192512,     1024,     4096, 0x83e6db65
-0,     193536,     193536,     1024,     4096, 0x92ab1447
-0,     194560,     194560,     1024,     4096, 0xedbdf383
-0,     195584,     195584,     1024,     4096, 0x4316f6a9
-0,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-0,     197632,     197632,     1024,     4096, 0xdfd809b7
-0,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-0,     199680,     199680,     1024,     4096, 0xd366f4a1
-0,     200704,     200704,     1024,     4096, 0x6a2f86e0
-0,     201728,     201728,     1024,     4096, 0xf51f08a9
-0,     202752,     202752,     1024,     4096, 0x05edefa8
-0,     203776,     203776,     1024,     4096, 0x255df2a6
-0,     204800,     204800,     1024,     4096, 0xe881d9e4
-0,     205824,     205824,     1024,     4096, 0x50380523
-0,     206848,     206848,     1024,     4096, 0x8b93eb26
-0,     207872,     207872,     1024,     4096, 0x759cf94c
-0,     208896,     208896,     1024,     4096, 0x8474f591
-0,     209920,     209920,     1024,     4096, 0x0030dc9e
-0,     210944,     210944,     1024,     4096, 0xb017fd54
-0,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-0,     212992,     212992,     1024,     4096, 0x7887e599
-0,     214016,     214016,     1024,     4096, 0xb730e72f
-0,     215040,     215040,     1024,     4096, 0x6bb3fae4
-0,     216064,     216064,     1024,     4096, 0xcc08fc36
-0,     217088,     217088,     1024,     4096, 0x5afd9ec2
-0,     218112,     218112,     1024,     4096, 0xa1d3e83d
-0,     219136,     219136,     1024,     4096, 0x7f96013c
-0,     220160,     220160,     1024,     4096, 0x7a0afe31
-0,     221184,     221184,     1024,     4096, 0xa37d1701
-0,     222208,     222208,     1024,     4096, 0x4615ebc2
-0,     223232,     223232,     1024,     4096, 0x217005c1
-0,     224256,     224256,     1024,     4096, 0x1755f789
-0,     225280,     225280,     1024,     4096, 0x83e6db65
-0,     226304,     226304,     1024,     4096, 0x92ab1447
-0,     227328,     227328,     1024,     4096, 0xedbdf383
-0,     228352,     228352,     1024,     4096, 0x4316f6a9
-0,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-0,     230400,     230400,     1024,     4096, 0xdfd809b7
-0,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-0,     232448,     232448,     1024,     4096, 0xd366f4a1
-0,     233472,     233472,     1024,     4096, 0x6a2f86e0
-0,     234496,     234496,     1024,     4096, 0xf51f08a9
-0,     235520,     235520,     1024,     4096, 0x05edefa8
-0,     236544,     236544,     1024,     4096, 0x255df2a6
-0,     237568,     237568,     1024,     4096, 0xe881d9e4
-0,     238592,     238592,     1024,     4096, 0x50380523
-0,     239616,     239616,     1024,     4096, 0x8b93eb26
-0,     240640,     240640,     1024,     4096, 0x759cf94c
-0,     241664,     241664,     1024,     4096, 0x8474f591
-0,     242688,     242688,     1024,     4096, 0x0030dc9e
-0,     243712,     243712,     1024,     4096, 0xb017fd54
-0,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-0,     245760,     245760,     1024,     4096, 0x7887e599
-0,     246784,     246784,     1024,     4096, 0xb730e72f
-0,     247808,     247808,     1024,     4096, 0x6bb3fae4
-0,     248832,     248832,     1024,     4096, 0xcc08fc36
-0,     249856,     249856,     1024,     4096, 0x5afd9ec2
-0,     250880,     250880,     1024,     4096, 0xa1d3e83d
-0,     251904,     251904,     1024,     4096, 0x7f96013c
-0,     252928,     252928,     1024,     4096, 0x7a0afe31
-0,     253952,     253952,     1024,     4096, 0xa37d1701
-0,     254976,     254976,     1024,     4096, 0x4615ebc2
-0,     256000,     256000,     1024,     4096, 0x217005c1
-0,     257024,     257024,     1024,     4096, 0x1755f789
-0,     258048,     258048,     1024,     4096, 0x83e6db65
-0,     259072,     259072,     1024,     4096, 0x92ab1447
-0,     260096,     260096,     1024,     4096, 0xedbdf383
-0,     261120,     261120,     1024,     4096, 0x4316f6a9
-0,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-0,     263168,     263168,     1024,     4096, 0xdfd809b7
-0,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x65b5c321
+0,       4096,       4096,     4096,    16384, 0xa97ad85f
+0,       8192,       8192,     4096,    16384, 0xdda4c0c3
+0,      12288,      12288,     4096,    16384, 0xd919eb4d
+0,      16384,      16384,     4096,    16384, 0x34abd5d3
+0,      20480,      20480,     4096,    16384, 0x2c73f3b9
+0,      24576,      24576,     4096,    16384, 0x979aebd1
+0,      28672,      28672,     4096,    16384, 0x601fed2d
+0,      32768,      32768,     4096,    16384, 0x3df3e423
+0,      36864,      36864,     4096,    16384, 0xb991b94d
+0,      40960,      40960,     4096,    16384, 0x2cecc23d
+0,      45056,      45056,     4096,    16384, 0xe215e727
+0,      49152,      49152,     4096,    16384, 0x330ac151
+0,      53248,      53248,     4096,    16384, 0x4114e8c3
+0,      57344,      57344,     4096,    16384, 0x7cc2f9b9
+0,      61440,      61440,     4096,    16384, 0xc0b8b887
+0,      65536,      65536,     4096,    16384, 0xd414f255
+0,      69632,      69632,     4096,    16384, 0x6e0bf0cd
+0,      73728,      73728,     4096,    16384, 0xebe3eb31
+0,      77824,      77824,     4096,    16384, 0x4137e725
+0,      81920,      81920,     4096,    16384, 0x2b8857c0
+0,      86016,      86016,     4096,    16384, 0x428cbe0d
+0,      90112,      90112,     4096,    16384, 0x446ba7a4
+0,      94208,      94208,     4096,    16384, 0x299b2e17
+0,      98304,      98304,     4096,    16384, 0xc51affa2
+0,     102400,     102400,     4096,    16384, 0xb4970fcf
+0,     106496,     106496,     4096,    16384, 0xe48af9fc
+0,     110592,     110592,     4096,    16384, 0xc2beffbb
+0,     114688,     114688,     4096,    16384, 0xb9d99627
+0,     118784,     118784,     4096,    16384, 0xb65a2086
+0,     122880,     122880,     4096,    16384, 0x6386714b
+0,     126976,     126976,     4096,    16384, 0x92a3171e
+0,     131072,     131072,     4096,    16384, 0x78bad1e2
+0,     135168,     135168,     4096,    16384, 0x63301330
+0,     139264,     139264,     4096,    16384, 0xd663b943
+0,     143360,     143360,     4096,    16384, 0xdcafe377
+0,     147456,     147456,     4096,    16384, 0xfb2cd701
+0,     151552,     151552,     4096,    16384, 0x91c30201
+0,     155648,     155648,     4096,    16384, 0xf23da341
+0,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+0,     163840,     163840,     4096,    16384, 0x519bdfef
+0,     167936,     167936,     4096,    16384, 0xf2fcd803
+0,     172032,     172032,     4096,    16384, 0xd5ceccbc
+0,     176128,     176128,     4096,    16384, 0xd48ada43
+0,     180224,     180224,     4096,    16384, 0x5a4ac40f
+0,     184320,     184320,     4096,    16384, 0x29db868a
+0,     188416,     188416,     4096,    16384, 0xa2a0002b
+0,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+0,     196608,     196608,     4096,    16384, 0x338dffa4
+0,     200704,     200704,     4096,    16384, 0x970b71f5
+0,     204800,     204800,     4096,    16384, 0x0521c397
+0,     208896,     208896,     4096,    16384, 0xff5ec9de
+0,     212992,     212992,     4096,    16384, 0x5a4ac40f
+0,     217088,     217088,     4096,    16384, 0x29db868a
+0,     221184,     221184,     4096,    16384, 0xa2a0002b
+0,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+0,     229376,     229376,     4096,    16384, 0x338dffa4
+0,     233472,     233472,     4096,    16384, 0x970b71f5
+0,     237568,     237568,     4096,    16384, 0x0521c397
+0,     241664,     241664,     4096,    16384, 0xff5ec9de
+0,     245760,     245760,     4096,    16384, 0x5a4ac40f
+0,     249856,     249856,     4096,    16384, 0x29db868a
+0,     253952,     253952,     4096,    16384, 0xa2a0002b
+0,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+0,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-agate b/tests/ref/fate/filter-agate
index e2d9c2ac24..411a07f566 100644
--- a/tests/ref/fate/filter-agate
+++ b/tests/ref/fate/filter-agate
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x1af20090
-0,       1024,       1024,     1024,     4096, 0x0b05ef2d
-0,       2048,       2048,     1024,     4096, 0x574bf11d
-0,       3072,       3072,     1024,     4096, 0x774af5d3
-0,       4096,       4096,     1024,     4096, 0x7b51ff33
-0,       5120,       5120,     1024,     4096, 0xf610f9bf
-0,       6144,       6144,     1024,     4096, 0x3c20ef79
-0,       7168,       7168,     1024,     4096, 0x427bef59
-0,       8192,       8192,     1024,     4096, 0x8773fa99
-0,       9216,       9216,     1024,     4096, 0xbf1dfe89
-0,      10240,      10240,     1024,     4096, 0x462df4dd
-0,      11264,      11264,     1024,     4096, 0x1170f169
-0,      12288,      12288,     1024,     4096, 0xcb9cf633
-0,      13312,      13312,     1024,     4096, 0x7e8c01da
-0,      14336,      14336,     1024,     4096, 0x93c202d0
-0,      15360,      15360,     1024,     4096, 0xd882ec6d
-0,      16384,      16384,     1024,     4096, 0x03fbec6d
-0,      17408,      17408,     1024,     4096, 0x73f400d4
-0,      18432,      18432,     1024,     4096, 0xea8c01da
-0,      19456,      19456,     1024,     4096, 0x23cbf82f
-0,      20480,      20480,     1024,     4096, 0x85cdf169
-0,      21504,      21504,     1024,     4096, 0x8e27f2e1
-0,      22528,      22528,     1024,     4096, 0x91bffe89
-0,      23552,      23552,     1024,     4096, 0xc31afd95
-0,      24576,      24576,     1024,     4096, 0x5c23ee59
-0,      25600,      25600,     1024,     4096, 0x58d0ef79
-0,      26624,      26624,     1024,     4096, 0xfccff7c3
-0,      27648,      27648,     1024,     4096, 0x7084ff33
-0,      28672,      28672,     1024,     4096, 0x7f1bf7cf
-0,      29696,      29696,     1024,     4096, 0x8037f11d
-0,      30720,      30720,     1024,     4096, 0xd106ed31
-0,      31744,      31744,     1024,     4096, 0xaf820090
-0,      32768,      32768,     1024,     4096, 0x1af20090
-0,      33792,      33792,     1024,     4096, 0x0b05ef2d
-0,      34816,      34816,     1024,     4096, 0x574bf11d
-0,      35840,      35840,     1024,     4096, 0x774af5d3
-0,      36864,      36864,     1024,     4096, 0x7b51ff33
-0,      37888,      37888,     1024,     4096, 0xf610f9bf
-0,      38912,      38912,     1024,     4096, 0x3c20ef79
-0,      39936,      39936,     1024,     4096, 0x427bef59
-0,      40960,      40960,     1024,     4096, 0x8773fa99
-0,      41984,      41984,     1024,     4096, 0xbf1dfe89
-0,      43008,      43008,     1024,     4096, 0x462df4dd
-0,      44032,      44032,     1024,     4096, 0x41650472
-0,      45056,      45056,     1024,     4096, 0x1081f133
-0,      46080,      46080,     1024,     4096, 0x9da3e58b
-0,      47104,      47104,     1024,     4096, 0x752614ac
-0,      48128,      48128,     1024,     4096, 0x0f23034c
-0,      49152,      49152,     1024,     4096, 0x768fe8a1
-0,      50176,      50176,     1024,     4096, 0xf0f9079e
-0,      51200,      51200,     1024,     4096, 0x8543ed93
-0,      52224,      52224,     1024,     4096, 0x9f96fe9d
-0,      53248,      53248,     1024,     4096, 0x94f3facf
-0,      54272,      54272,     1024,     4096, 0xc0defe4d
-0,      55296,      55296,     1024,     4096, 0x4e22f5ff
-0,      56320,      56320,     1024,     4096, 0xb604ed7d
-0,      57344,      57344,     1024,     4096, 0xb6400124
-0,      58368,      58368,     1024,     4096, 0xadadf519
-0,      59392,      59392,     1024,     4096, 0x2520fb85
-0,      60416,      60416,     1024,     4096, 0x1ffbf4a9
-0,      61440,      61440,     1024,     4096, 0x380e05cc
-0,      62464,      62464,     1024,     4096, 0x366af6cf
-0,      63488,      63488,     1024,     4096, 0x4f64f355
-0,      64512,      64512,     1024,     4096, 0x7aa0e89f
-0,      65536,      65536,     1024,     4096, 0x1f160524
-0,      66560,      66560,     1024,     4096, 0x6bba0292
-0,      67584,      67584,     1024,     4096, 0x5243ed4d
-0,      68608,      68608,     1024,     4096, 0x304ffcb1
-0,      69632,      69632,     1024,     4096, 0xfb1bfc9b
-0,      70656,      70656,     1024,     4096, 0x0259e9d3
-0,      71680,      71680,     1024,     4096, 0x90fee749
-0,      72704,      72704,     1024,     4096, 0x8626eff9
-0,      73728,      73728,     1024,     4096, 0x29a4fe41
-0,      74752,      74752,     1024,     4096, 0x0dacf2bb
-0,      75776,      75776,     1024,     4096, 0x875b0046
-0,      76800,      76800,     1024,     4096, 0x009b0068
-0,      77824,      77824,     1024,     4096, 0x50f8eee1
-0,      78848,      78848,     1024,     4096, 0xa73ef503
-0,      79872,      79872,     1024,     4096, 0xaac8f7e5
-0,      80896,      80896,     1024,     4096, 0x0229f31b
-0,      81920,      81920,     1024,     4096, 0x7eb0edc9
-0,      82944,      82944,     1024,     4096, 0x88e0eddd
-0,      83968,      83968,     1024,     4096, 0x7982fe3f
-0,      84992,      84992,     1024,     4096, 0x91caf665
-0,      86016,      86016,     1024,     4096, 0x2fd1f3d7
-0,      87040,      87040,     1024,     4096, 0x9b3de465
-0,      88064,      88064,     1024,     4096, 0xd3f5e99d
-0,      89088,      89088,     1024,     4096, 0xeb00b4df
-0,      90112,      90112,     1024,     4096, 0xc0a5e92f
-0,      91136,      91136,     1024,     4096, 0xaed2ef59
-0,      92160,      92160,     1024,     4096, 0x80591586
-0,      93184,      93184,     1024,     4096, 0x32d4f0ef
-0,      94208,      94208,     1024,     4096, 0x8ba4f0f9
-0,      95232,      95232,     1024,     4096, 0x8d3bc631
-0,      96256,      96256,     1024,     4096, 0xddede7c5
-0,      97280,      97280,     1024,     4096, 0x6a459463
-0,      98304,      98304,     1024,     4096, 0xeca818b8
-0,      99328,      99328,     1024,     4096, 0x0c91c6c9
-0,     100352,     100352,     1024,     4096, 0x6241e69b
-0,     101376,     101376,     1024,     4096, 0xe220d9a7
-0,     102400,     102400,     1024,     4096, 0x9f4bcbd5
-0,     103424,     103424,     1024,     4096, 0x2c1ad90b
-0,     104448,     104448,     1024,     4096, 0x3974feb3
-0,     105472,     105472,     1024,     4096, 0x8d1ae2e1
-0,     106496,     106496,     1024,     4096, 0xa609f955
-0,     107520,     107520,     1024,     4096, 0xc5fcdd19
-0,     108544,     108544,     1024,     4096, 0xe233d8c5
-0,     109568,     109568,     1024,     4096, 0xd1d7d61d
-0,     110592,     110592,     1024,     4096, 0x52522f58
-0,     111616,     111616,     1024,     4096, 0x16d8cd63
-0,     112640,     112640,     1024,     4096, 0x3994e847
-0,     113664,     113664,     1024,     4096, 0x6fd8ea07
-0,     114688,     114688,     1024,     4096, 0x582723be
-0,     115712,     115712,     1024,     4096, 0x44d40ff6
-0,     116736,     116736,     1024,     4096, 0x98d22050
-0,     117760,     117760,     1024,     4096, 0x2cc8063c
-0,     118784,     118784,     1024,     4096, 0xf645ed8d
-0,     119808,     119808,     1024,     4096, 0xcb49dbe1
-0,     120832,     120832,     1024,     4096, 0x7efbf369
-0,     121856,     121856,     1024,     4096, 0x797333ac
-0,     122880,     122880,     1024,     4096, 0x157130fa
-0,     123904,     123904,     1024,     4096, 0x23530594
-0,     124928,     124928,     1024,     4096, 0x46783b6c
-0,     125952,     125952,     1024,     4096, 0x5fac436e
-0,     126976,     126976,     1024,     4096, 0x2a9e1c76
-0,     128000,     128000,     1024,     4096, 0x152202ac
-0,     129024,     129024,     1024,     4096, 0xe5cdf369
-0,     130048,     130048,     1024,     4096, 0x6fe2feeb
-0,     131072,     131072,     1024,     4096, 0xee24ec7f
-0,     132096,     132096,     1024,     4096, 0x6f33fd5d
-0,     133120,     133120,     1024,     4096, 0x3f52fd51
-0,     134144,     134144,     1024,     4096, 0x2292e8e6
-0,     135168,     135168,     1024,     4096, 0xbc13f7bb
-0,     136192,     136192,     1024,     4096, 0xc271f708
-0,     137216,     137216,     1024,     4096, 0x9f1ff6ec
-0,     138240,     138240,     1024,     4096, 0xdf88f599
-0,     139264,     139264,     1024,     4096, 0x6614f6ae
-0,     140288,     140288,     1024,     4096, 0x7cf9f3c4
-0,     141312,     141312,     1024,     4096, 0xcdc1f588
-0,     142336,     142336,     1024,     4096, 0xa4a1ffa9
-0,     143360,     143360,     1024,     4096, 0xcb15f5d4
-0,     144384,     144384,     1024,     4096, 0x2fd0f58f
-0,     145408,     145408,     1024,     4096, 0x08eff948
-0,     146432,     146432,     1024,     4096, 0x71f9f39f
-0,     147456,     147456,     1024,     4096, 0x70f5f4ed
-0,     148480,     148480,     1024,     4096, 0x3ccaf424
-0,     149504,     149504,     1024,     4096, 0xc170f215
-0,     150528,     150528,     1024,     4096, 0xdecfeb38
-0,     151552,     151552,     1024,     4096, 0xb7a6f0e5
-0,     152576,     152576,     1024,     4096, 0x14ecf42d
-0,     153600,     153600,     1024,     4096, 0x3af8eefc
-0,     154624,     154624,     1024,     4096, 0xec57fa8b
-0,     155648,     155648,     1024,     4096, 0x206bf602
-0,     156672,     156672,     1024,     4096, 0x15a7f45d
-0,     157696,     157696,     1024,     4096, 0xb23dea6e
-0,     158720,     158720,     1024,     4096, 0x6b6af81c
-0,     159744,     159744,     1024,     4096, 0xae73f6c7
-0,     160768,     160768,     1024,     4096, 0x19c8f293
-0,     161792,     161792,     1024,     4096, 0x752ef8aa
-0,     162816,     162816,     1024,     4096, 0xfac6f812
-0,     163840,     163840,     1024,     4096, 0xff9dfb00
-0,     164864,     164864,     1024,     4096, 0x8305f5b2
-0,     165888,     165888,     1024,     4096, 0xe2f3fea4
-0,     166912,     166912,     1024,     4096, 0xb377f0e6
-0,     167936,     167936,     1024,     4096, 0x0344f0a9
-0,     168960,     168960,     1024,     4096, 0x389afaf4
-0,     169984,     169984,     1024,     4096, 0x5f63fa0d
-0,     171008,     171008,     1024,     4096, 0xce88f5ae
-0,     172032,     172032,     1024,     4096, 0x7e55f852
-0,     173056,     173056,     1024,     4096, 0x5af0f555
-0,     174080,     174080,     1024,     4096, 0x5753fa5a
-0,     175104,     175104,     1024,     4096, 0x443ce89b
-0,     176128,     176128,     1024,     4096, 0x0068de8c
-0,     177152,     177152,     1024,     4096, 0x5209f51f
-0,     178176,     178176,     1024,     4096, 0x97e8eb3a
-0,     179200,     179200,     1024,     4096, 0xd97fe978
-0,     180224,     180224,     1024,     4096, 0x8cadff37
-0,     181248,     181248,     1024,     4096, 0x8dd40290
-0,     182272,     182272,     1024,     4096, 0x2369eb74
-0,     183296,     183296,     1024,     4096, 0x50e8e9ee
-0,     184320,     184320,     1024,     4096, 0x1e727c22
-0,     185344,     185344,     1024,     4096, 0xbe8be7ed
-0,     186368,     186368,     1024,     4096, 0xb6f0f37a
-0,     187392,     187392,     1024,     4096, 0x8a9af2a2
-0,     188416,     188416,     1024,     4096, 0x6917f395
-0,     189440,     189440,     1024,     4096, 0x649df5b4
-0,     190464,     190464,     1024,     4096, 0xebb7fc9a
-0,     191488,     191488,     1024,     4096, 0xba3eef09
-0,     192512,     192512,     1024,     4096, 0x0cf9ba5e
-0,     193536,     193536,     1024,     4096, 0x0f83eb2d
-0,     194560,     194560,     1024,     4096, 0xcd86f62c
-0,     195584,     195584,     1024,     4096, 0x1f6d05b6
-0,     196608,     196608,     1024,     4096, 0x988ff2ed
-0,     197632,     197632,     1024,     4096, 0xe066eb10
-0,     198656,     198656,     1024,     4096, 0x608be99e
-0,     199680,     199680,     1024,     4096, 0xba97e994
-0,     200704,     200704,     1024,     4096, 0xe92a8b76
-0,     201728,     201728,     1024,     4096, 0xe12ee0e2
-0,     202752,     202752,     1024,     4096, 0xc202ef7d
-0,     203776,     203776,     1024,     4096, 0xcd8afebb
-0,     204800,     204800,     1024,     4096, 0x0fc2fcbf
-0,     205824,     205824,     1024,     4096, 0x2d4df1bb
-0,     206848,     206848,     1024,     4096, 0x7282ee1f
-0,     207872,     207872,     1024,     4096, 0xaa4ee359
-0,     208896,     208896,     1024,     4096, 0x10c0deb1
-0,     209920,     209920,     1024,     4096, 0x5209f51f
-0,     210944,     210944,     1024,     4096, 0x97e8eb3a
-0,     211968,     211968,     1024,     4096, 0xd97fe978
-0,     212992,     212992,     1024,     4096, 0x8cadff37
-0,     214016,     214016,     1024,     4096, 0x8dd40290
-0,     215040,     215040,     1024,     4096, 0x2369eb74
-0,     216064,     216064,     1024,     4096, 0x50e8e9ee
-0,     217088,     217088,     1024,     4096, 0x1e727c22
-0,     218112,     218112,     1024,     4096, 0xbe8be7ed
-0,     219136,     219136,     1024,     4096, 0xb6f0f37a
-0,     220160,     220160,     1024,     4096, 0x8a9af2a2
-0,     221184,     221184,     1024,     4096, 0x6917f395
-0,     222208,     222208,     1024,     4096, 0x649df5b4
-0,     223232,     223232,     1024,     4096, 0xebb7fc9a
-0,     224256,     224256,     1024,     4096, 0xba3eef09
-0,     225280,     225280,     1024,     4096, 0x0cf9ba5e
-0,     226304,     226304,     1024,     4096, 0x0f83eb2d
-0,     227328,     227328,     1024,     4096, 0xcd86f62c
-0,     228352,     228352,     1024,     4096, 0x1f6d05b6
-0,     229376,     229376,     1024,     4096, 0x988ff2ed
-0,     230400,     230400,     1024,     4096, 0xe066eb10
-0,     231424,     231424,     1024,     4096, 0x608be99e
-0,     232448,     232448,     1024,     4096, 0xba97e994
-0,     233472,     233472,     1024,     4096, 0xe92a8b76
-0,     234496,     234496,     1024,     4096, 0xe12ee0e2
-0,     235520,     235520,     1024,     4096, 0xc202ef7d
-0,     236544,     236544,     1024,     4096, 0xcd8afebb
-0,     237568,     237568,     1024,     4096, 0x0fc2fcbf
-0,     238592,     238592,     1024,     4096, 0x2d4df1bb
-0,     239616,     239616,     1024,     4096, 0x7282ee1f
-0,     240640,     240640,     1024,     4096, 0xaa4ee359
-0,     241664,     241664,     1024,     4096, 0x10c0deb1
-0,     242688,     242688,     1024,     4096, 0x5209f51f
-0,     243712,     243712,     1024,     4096, 0x97e8eb3a
-0,     244736,     244736,     1024,     4096, 0xd97fe978
-0,     245760,     245760,     1024,     4096, 0x8cadff37
-0,     246784,     246784,     1024,     4096, 0x8dd40290
-0,     247808,     247808,     1024,     4096, 0x2369eb74
-0,     248832,     248832,     1024,     4096, 0x50e8e9ee
-0,     249856,     249856,     1024,     4096, 0x1e727c22
-0,     250880,     250880,     1024,     4096, 0xbe8be7ed
-0,     251904,     251904,     1024,     4096, 0xb6f0f37a
-0,     252928,     252928,     1024,     4096, 0x8a9af2a2
-0,     253952,     253952,     1024,     4096, 0x6917f395
-0,     254976,     254976,     1024,     4096, 0x649df5b4
-0,     256000,     256000,     1024,     4096, 0xebb7fc9a
-0,     257024,     257024,     1024,     4096, 0xba3eef09
-0,     258048,     258048,     1024,     4096, 0x0cf9ba5e
-0,     259072,     259072,     1024,     4096, 0x0f83eb2d
-0,     260096,     260096,     1024,     4096, 0xcd86f62c
-0,     261120,     261120,     1024,     4096, 0x1f6d05b6
-0,     262144,     262144,     1024,     4096, 0x988ff2ed
-0,     263168,     263168,     1024,     4096, 0xe066eb10
-0,     264192,     264192,      408,     1632, 0xe00c26bc
+0,          0,          0,     4096,    16384, 0x08d6d6cb
+0,       4096,       4096,     4096,    16384, 0x72ecd7f1
+0,       8192,       8192,     4096,    16384, 0xc22bdf95
+0,      12288,      12288,     4096,    16384, 0x4145e759
+0,      16384,      16384,     4096,    16384, 0xb2b6e759
+0,      20480,      20480,     4096,    16384, 0x263de095
+0,      24576,      24576,     4096,    16384, 0x6a53d4f5
+0,      28672,      28672,     4096,    16384, 0x5bb5d6cb
+0,      32768,      32768,     4096,    16384, 0x08d6d6cb
+0,      36864,      36864,     4096,    16384, 0x72ecd7f1
+0,      40960,      40960,     4096,    16384, 0xf220f28f
+0,      45056,      45056,     4096,    16384, 0x4ae2eec5
+0,      49152,      49152,     4096,    16384, 0x2800dc8d
+0,      53248,      53248,     4096,    16384, 0x3f3fdcc5
+0,      57344,      57344,     4096,    16384, 0x93d2e689
+0,      61440,      61440,     4096,    16384, 0x6be3d8ad
+0,      65536,      65536,     4096,    16384, 0xcf33f1c3
+0,      69632,      69632,     4096,    16384, 0x6ab5bddd
+0,      73728,      73728,     4096,    16384, 0x4209f1b9
+0,      77824,      77824,     4096,    16384, 0xd928cf11
+0,      81920,      81920,     4096,    16384, 0x9c60d077
+0,      86016,      86016,     4096,    16384, 0x7f7d76e5
+0,      90112,      90112,     4096,    16384, 0xd7c2df1b
+0,      94208,      94208,     4096,    16384, 0x7419337f
+0,      98304,      98304,     4096,    16384, 0x20509fe1
+0,     102400,     102400,     4096,    16384, 0xd54986a1
+0,     106496,     106496,     4096,    16384, 0xa788857d
+0,     110592,     110592,     4096,    16384, 0x42d1cf27
+0,     114688,     114688,     4096,    16384, 0x636c5a40
+0,     118784,     118784,     4096,    16384, 0xf6f8f0a1
+0,     122880,     122880,     4096,    16384, 0xcadfb568
+0,     126976,     126976,     4096,    16384, 0xfecb1194
+0,     131072,     131072,     4096,    16384, 0xa14cd040
+0,     135168,     135168,     4096,    16384, 0x3d10db75
+0,     139264,     139264,     4096,    16384, 0x5ae6dfd0
+0,     143360,     143360,     4096,    16384, 0xffa9d877
+0,     147456,     147456,     4096,    16384, 0xebf5c68b
+0,     151552,     151552,     4096,    16384, 0x93aacec6
+0,     155648,     155648,     4096,    16384, 0x8df0cd16
+0,     159744,     159744,     4096,    16384, 0xee96da43
+0,     163840,     163840,     4096,    16384, 0x16e3e069
+0,     167936,     167936,     4096,    16384, 0xcff4db85
+0,     172032,     172032,     4096,    16384, 0x864ed0c9
+0,     176128,     176128,     4096,    16384, 0x9e40a88a
+0,     180224,     180224,     4096,    16384, 0xce6ad747
+0,     184320,     184320,     4096,    16384, 0xb3164a58
+0,     188416,     188416,     4096,    16384, 0xeaa6d519
+0,     192512,     192512,     4096,    16384, 0xb5a0a18b
+0,     196608,     196608,     4096,    16384, 0x2387b15c
+0,     200704,     200704,     4096,    16384, 0x98b35abd
+0,     204800,     204800,     4096,    16384, 0xe58cc01f
+0,     208896,     208896,     4096,    16384, 0x9f01a8af
+0,     212992,     212992,     4096,    16384, 0xce6ad747
+0,     217088,     217088,     4096,    16384, 0xb3164a58
+0,     221184,     221184,     4096,    16384, 0xeaa6d519
+0,     225280,     225280,     4096,    16384, 0xb5a0a18b
+0,     229376,     229376,     4096,    16384, 0x2387b15c
+0,     233472,     233472,     4096,    16384, 0x98b35abd
+0,     237568,     237568,     4096,    16384, 0xe58cc01f
+0,     241664,     241664,     4096,    16384, 0x9f01a8af
+0,     245760,     245760,     4096,    16384, 0xce6ad747
+0,     249856,     249856,     4096,    16384, 0xb3164a58
+0,     253952,     253952,     4096,    16384, 0xeaa6d519
+0,     258048,     258048,     4096,    16384, 0xb5a0a18b
+0,     262144,     262144,     2456,     9824, 0xec5804d7
diff --git a/tests/ref/fate/filter-alimiter b/tests/ref/fate/filter-alimiter
index 56cfb614da..971c7b2ae7 100644
--- a/tests/ref/fate/filter-alimiter
+++ b/tests/ref/fate/filter-alimiter
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0xd4194af4
-0,       1024,       1024,     1024,     4096, 0x686af4ab
-0,       2048,       2048,     1024,     4096, 0xe80cee61
-0,       3072,       3072,     1024,     4096, 0xa686fbad
-0,       4096,       4096,     1024,     4096, 0x191e062c
-0,       5120,       5120,     1024,     4096, 0x1a13edb1
-0,       6144,       6144,     1024,     4096, 0xab21f8ef
-0,       7168,       7168,     1024,     4096, 0xaa30e757
-0,       8192,       8192,     1024,     4096, 0x5afdf69f
-0,       9216,       9216,     1024,     4096, 0x765e05ec
-0,      10240,      10240,     1024,     4096, 0x6484f551
-0,      11264,      11264,     1024,     4096, 0x61b9e9f7
-0,      12288,      12288,     1024,     4096, 0xa735feb3
-0,      13312,      13312,     1024,     4096, 0xb47203aa
-0,      14336,      14336,     1024,     4096, 0xb6b5fbf5
-0,      15360,      15360,     1024,     4096, 0xbc66f14f
-0,      16384,      16384,     1024,     4096, 0x2003ff5b
-0,      17408,      17408,     1024,     4096, 0x1160f17d
-0,      18432,      18432,     1024,     4096, 0x308001a4
-0,      19456,      19456,     1024,     4096, 0x9df9f429
-0,      20480,      20480,     1024,     4096, 0x3e6eec0f
-0,      21504,      21504,     1024,     4096, 0xca3301f2
-0,      22528,      22528,     1024,     4096, 0x9eb1f961
-0,      23552,      23552,     1024,     4096, 0xd0a50c8c
-0,      24576,      24576,     1024,     4096, 0x071ee96b
-0,      25600,      25600,     1024,     4096, 0x7a46f05b
-0,      26624,      26624,     1024,     4096, 0x2cb2f475
-0,      27648,      27648,     1024,     4096, 0x5bda0a52
-0,      28672,      28672,     1024,     4096, 0x33c0f727
-0,      29696,      29696,     1024,     4096, 0x53cfee59
-0,      30720,      30720,     1024,     4096, 0x1588f221
-0,      31744,      31744,     1024,     4096, 0x95d400d6
-0,      32768,      32768,     1024,     4096, 0x0078009a
-0,      33792,      33792,     1024,     4096, 0x686af4ab
-0,      34816,      34816,     1024,     4096, 0xe80cee61
-0,      35840,      35840,     1024,     4096, 0xa686fbad
-0,      36864,      36864,     1024,     4096, 0x191e062c
-0,      37888,      37888,     1024,     4096, 0x1a13edb1
-0,      38912,      38912,     1024,     4096, 0xab21f8ef
-0,      39936,      39936,     1024,     4096, 0xaa30e757
-0,      40960,      40960,     1024,     4096, 0x5afdf69f
-0,      41984,      41984,     1024,     4096, 0x765e05ec
-0,      43008,      43008,     1024,     4096, 0x6484f551
-0,      44032,      44032,     1024,     4096, 0x755e0600
-0,      45056,      45056,     1024,     4096, 0x5056ecb9
-0,      46080,      46080,     1024,     4096, 0xdcb609a8
-0,      47104,      47104,     1024,     4096, 0xc87bf4a1
-0,      48128,      48128,     1024,     4096, 0xecdfef95
-0,      49152,      49152,     1024,     4096, 0x905ff13f
-0,      50176,      50176,     1024,     4096, 0x4e69eeb3
-0,      51200,      51200,     1024,     4096, 0x16e1082c
-0,      52224,      52224,     1024,     4096, 0x606c0a22
-0,      53248,      53248,     1024,     4096, 0x9f94f351
-0,      54272,      54272,     1024,     4096, 0x2c47f63f
-0,      55296,      55296,     1024,     4096, 0x9e14ebf9
-0,      56320,      56320,     1024,     4096, 0x7804fbcb
-0,      57344,      57344,     1024,     4096, 0xc7c6ffb7
-0,      58368,      58368,     1024,     4096, 0xa547f68d
-0,      59392,      59392,     1024,     4096, 0x0c87fed7
-0,      60416,      60416,     1024,     4096, 0x88b5fef1
-0,      61440,      61440,     1024,     4096, 0x325af00d
-0,      62464,      62464,     1024,     4096, 0xd826edd9
-0,      63488,      63488,     1024,     4096, 0x1fbe1138
-0,      64512,      64512,     1024,     4096, 0xdf85da7b
-0,      65536,      65536,     1024,     4096, 0xf987f9b3
-0,      66560,      66560,     1024,     4096, 0x5df5e12f
-0,      67584,      67584,     1024,     4096, 0x259cf8ef
-0,      68608,      68608,     1024,     4096, 0xa191eb4f
-0,      69632,      69632,     1024,     4096, 0xfe5bf1fd
-0,      70656,      70656,     1024,     4096, 0x7675e2cb
-0,      71680,      71680,     1024,     4096, 0x796a2f90
-0,      72704,      72704,     1024,     4096, 0xaa52e7a5
-0,      73728,      73728,     1024,     4096, 0x2b56fd81
-0,      74752,      74752,     1024,     4096, 0xbf7c02ee
-0,      75776,      75776,     1024,     4096, 0xfe4cebb1
-0,      76800,      76800,     1024,     4096, 0xe5b7fdf7
-0,      77824,      77824,     1024,     4096, 0xd271ece7
-0,      78848,      78848,     1024,     4096, 0x96e0f69f
-0,      79872,      79872,     1024,     4096, 0x6e5eef33
-0,      80896,      80896,     1024,     4096, 0x78b70b6e
-0,      81920,      81920,     1024,     4096, 0x61f2f075
-0,      82944,      82944,     1024,     4096, 0xf1dc47dc
-0,      83968,      83968,     1024,     4096, 0xf4b406d2
-0,      84992,      84992,     1024,     4096, 0xe33806fe
-0,      86016,      86016,     1024,     4096, 0x5b5ef087
-0,      87040,      87040,     1024,     4096, 0x3fa207da
-0,      88064,      88064,     1024,     4096, 0x4719f201
-0,      89088,      89088,     1024,     4096, 0x641feaad
-0,      90112,      90112,     1024,     4096, 0x905402ec
-0,      91136,      91136,     1024,     4096, 0xf529e11f
-0,      92160,      92160,     1024,     4096, 0x65a41838
-0,      93184,      93184,     1024,     4096, 0x651efb6f
-0,      94208,      94208,     1024,     4096, 0x251b1390
-0,      95232,      95232,     1024,     4096, 0x45ea05a8
-0,      96256,      96256,     1024,     4096, 0xe65be141
-0,      97280,      97280,     1024,     4096, 0xd452d3dd
-0,      98304,      98304,     1024,     4096, 0x3bdff821
-0,      99328,      99328,     1024,     4096, 0x74da00e6
-0,     100352,     100352,     1024,     4096, 0x4474fa19
-0,     101376,     101376,     1024,     4096, 0x11ddedef
-0,     102400,     102400,     1024,     4096, 0xf027d72b
-0,     103424,     103424,     1024,     4096, 0xaa0a1ce6
-0,     104448,     104448,     1024,     4096, 0x7168145e
-0,     105472,     105472,     1024,     4096, 0x94a710a4
-0,     106496,     106496,     1024,     4096, 0x6f55ecf1
-0,     107520,     107520,     1024,     4096, 0xc12de6d7
-0,     108544,     108544,     1024,     4096, 0x8ff7db15
-0,     109568,     109568,     1024,     4096, 0x366d0cc6
-0,     110592,     110592,     1024,     4096, 0xb04afa4f
-0,     111616,     111616,     1024,     4096, 0xf6abbee7
-0,     112640,     112640,     1024,     4096, 0xbe9910dc
-0,     113664,     113664,     1024,     4096, 0x96c3047e
-0,     114688,     114688,     1024,     4096, 0x9dc1e8e1
-0,     115712,     115712,     1024,     4096, 0x4b2c1092
-0,     116736,     116736,     1024,     4096, 0x592d212c
-0,     117760,     117760,     1024,     4096, 0x5c3bda15
-0,     118784,     118784,     1024,     4096, 0x43c8e90f
-0,     119808,     119808,     1024,     4096, 0x3bfa074e
-0,     120832,     120832,     1024,     4096, 0xa2d7d443
-0,     121856,     121856,     1024,     4096, 0xd4b02844
-0,     122880,     122880,     1024,     4096, 0x9f5d2a92
-0,     123904,     123904,     1024,     4096, 0xc19bf69d
-0,     124928,     124928,     1024,     4096, 0x47b8fe75
-0,     125952,     125952,     1024,     4096, 0x337334b0
-0,     126976,     126976,     1024,     4096, 0x96ed14f0
-0,     128000,     128000,     1024,     4096, 0x9af0f67b
-0,     129024,     129024,     1024,     4096, 0xdf541a60
-0,     130048,     130048,     1024,     4096, 0x684f0c06
-0,     131072,     131072,     1024,     4096, 0xe3d0015e
-0,     132096,     132096,     1024,     4096, 0xf648d73c
-0,     133120,     133120,     1024,     4096, 0x4041f3ee
-0,     134144,     134144,     1024,     4096, 0x1421025f
-0,     135168,     135168,     1024,     4096, 0x4eb5fc97
-0,     136192,     136192,     1024,     4096, 0x510f02fe
-0,     137216,     137216,     1024,     4096, 0x85e9e95e
-0,     138240,     138240,     1024,     4096, 0xb1d0fe10
-0,     139264,     139264,     1024,     4096, 0xda66f5f8
-0,     140288,     140288,     1024,     4096, 0x3826eaa8
-0,     141312,     141312,     1024,     4096, 0xa7cc0176
-0,     142336,     142336,     1024,     4096, 0x71e8fe5a
-0,     143360,     143360,     1024,     4096, 0x0149fcfa
-0,     144384,     144384,     1024,     4096, 0xbd36fd8e
-0,     145408,     145408,     1024,     4096, 0xec1afcc6
-0,     146432,     146432,     1024,     4096, 0xea80ec5e
-0,     147456,     147456,     1024,     4096, 0x8da1f0ac
-0,     148480,     148480,     1024,     4096, 0x63c3e61c
-0,     149504,     149504,     1024,     4096, 0x188cf09b
-0,     150528,     150528,     1024,     4096, 0x7eebea85
-0,     151552,     151552,     1024,     4096, 0x7ef6f718
-0,     152576,     152576,     1024,     4096, 0xcd9fecfb
-0,     153600,     153600,     1024,     4096, 0x1aa7f624
-0,     154624,     154624,     1024,     4096, 0xcab5f1e3
-0,     155648,     155648,     1024,     4096, 0x36e9f795
-0,     156672,     156672,     1024,     4096, 0x952cf54d
-0,     157696,     157696,     1024,     4096, 0x54a4ed3b
-0,     158720,     158720,     1024,     4096, 0x1e24f992
-0,     159744,     159744,     1024,     4096, 0xab6bfa09
-0,     160768,     160768,     1024,     4096, 0xa021020b
-0,     161792,     161792,     1024,     4096, 0xaa0600f5
-0,     162816,     162816,     1024,     4096, 0xadf7ec92
-0,     163840,     163840,     1024,     4096, 0x5dd5f63f
-0,     164864,     164864,     1024,     4096, 0xc01bff89
-0,     165888,     165888,     1024,     4096, 0x05dbf1e7
-0,     166912,     166912,     1024,     4096, 0x44f00038
-0,     167936,     167936,     1024,     4096, 0x6dc5f886
-0,     168960,     168960,     1024,     4096, 0xeb88e729
-0,     169984,     169984,     1024,     4096, 0xfe5cf53e
-0,     171008,     171008,     1024,     4096, 0x2692f7a0
-0,     172032,     172032,     1024,     4096, 0xe984f24b
-0,     173056,     173056,     1024,     4096, 0x1a4ef732
-0,     174080,     174080,     1024,     4096, 0x3b60010b
-0,     175104,     175104,     1024,     4096, 0x6dd0eaf2
-0,     176128,     176128,     1024,     4096, 0x313de851
-0,     177152,     177152,     1024,     4096, 0x239ef043
-0,     178176,     178176,     1024,     4096, 0x2366fe43
-0,     179200,     179200,     1024,     4096, 0xbfd6f3b9
-0,     180224,     180224,     1024,     4096, 0xb34bf67b
-0,     181248,     181248,     1024,     4096, 0x00def7c1
-0,     182272,     182272,     1024,     4096, 0xa6d0f466
-0,     183296,     183296,     1024,     4096, 0xd1a1f1c2
-0,     184320,     184320,     1024,     4096, 0x32f8923c
-0,     185344,     185344,     1024,     4096, 0x137001d2
-0,     186368,     186368,     1024,     4096, 0xb881f6cd
-0,     187392,     187392,     1024,     4096, 0xf44e034a
-0,     188416,     188416,     1024,     4096, 0xb43fecf7
-0,     189440,     189440,     1024,     4096, 0xe62ced50
-0,     190464,     190464,     1024,     4096, 0x221dfd0d
-0,     191488,     191488,     1024,     4096, 0x85400147
-0,     192512,     192512,     1024,     4096, 0x8bf8d054
-0,     193536,     193536,     1024,     4096, 0x08370170
-0,     194560,     194560,     1024,     4096, 0xec62effa
-0,     195584,     195584,     1024,     4096, 0xd58cf67c
-0,     196608,     196608,     1024,     4096, 0xf597f9a1
-0,     197632,     197632,     1024,     4096, 0x63fcf0b0
-0,     198656,     198656,     1024,     4096, 0x8cc8fd32
-0,     199680,     199680,     1024,     4096, 0xf8c2072c
-0,     200704,     200704,     1024,     4096, 0x0c7e93a5
-0,     201728,     201728,     1024,     4096, 0x1cc3f612
-0,     202752,     202752,     1024,     4096, 0x83adf8ee
-0,     203776,     203776,     1024,     4096, 0x680e0195
-0,     204800,     204800,     1024,     4096, 0x9d34fd2e
-0,     205824,     205824,     1024,     4096, 0x44cdfb34
-0,     206848,     206848,     1024,     4096, 0x193df790
-0,     207872,     207872,     1024,     4096, 0xb337ef64
-0,     208896,     208896,     1024,     4096, 0x0074ee38
-0,     209920,     209920,     1024,     4096, 0x239ef043
-0,     210944,     210944,     1024,     4096, 0x2366fe43
-0,     211968,     211968,     1024,     4096, 0xbfd6f3b9
-0,     212992,     212992,     1024,     4096, 0xb34bf67b
-0,     214016,     214016,     1024,     4096, 0x00def7c1
-0,     215040,     215040,     1024,     4096, 0xa6d0f466
-0,     216064,     216064,     1024,     4096, 0xd1a1f1c2
-0,     217088,     217088,     1024,     4096, 0x32f8923c
-0,     218112,     218112,     1024,     4096, 0x137001d2
-0,     219136,     219136,     1024,     4096, 0xb881f6cd
-0,     220160,     220160,     1024,     4096, 0xf44e034a
-0,     221184,     221184,     1024,     4096, 0xb43fecf7
-0,     222208,     222208,     1024,     4096, 0xe62ced50
-0,     223232,     223232,     1024,     4096, 0x221dfd0d
-0,     224256,     224256,     1024,     4096, 0x85400147
-0,     225280,     225280,     1024,     4096, 0x8bf8d054
-0,     226304,     226304,     1024,     4096, 0x08370170
-0,     227328,     227328,     1024,     4096, 0xec62effa
-0,     228352,     228352,     1024,     4096, 0xd58cf67c
-0,     229376,     229376,     1024,     4096, 0xf597f9a1
-0,     230400,     230400,     1024,     4096, 0x63fcf0b0
-0,     231424,     231424,     1024,     4096, 0x8cc8fd32
-0,     232448,     232448,     1024,     4096, 0xf8c2072c
-0,     233472,     233472,     1024,     4096, 0x0c7e93a5
-0,     234496,     234496,     1024,     4096, 0x1cc3f612
-0,     235520,     235520,     1024,     4096, 0x83adf8ee
-0,     236544,     236544,     1024,     4096, 0x680e0195
-0,     237568,     237568,     1024,     4096, 0x9d34fd2e
-0,     238592,     238592,     1024,     4096, 0x44cdfb34
-0,     239616,     239616,     1024,     4096, 0x193df790
-0,     240640,     240640,     1024,     4096, 0xb337ef64
-0,     241664,     241664,     1024,     4096, 0x0074ee38
-0,     242688,     242688,     1024,     4096, 0x239ef043
-0,     243712,     243712,     1024,     4096, 0x2366fe43
-0,     244736,     244736,     1024,     4096, 0xbfd6f3b9
-0,     245760,     245760,     1024,     4096, 0xb34bf67b
-0,     246784,     246784,     1024,     4096, 0x00def7c1
-0,     247808,     247808,     1024,     4096, 0xa6d0f466
-0,     248832,     248832,     1024,     4096, 0xd1a1f1c2
-0,     249856,     249856,     1024,     4096, 0x32f8923c
-0,     250880,     250880,     1024,     4096, 0x137001d2
-0,     251904,     251904,     1024,     4096, 0xb881f6cd
-0,     252928,     252928,     1024,     4096, 0xf44e034a
-0,     253952,     253952,     1024,     4096, 0xb43fecf7
-0,     254976,     254976,     1024,     4096, 0xe62ced50
-0,     256000,     256000,     1024,     4096, 0x221dfd0d
-0,     257024,     257024,     1024,     4096, 0x85400147
-0,     258048,     258048,     1024,     4096, 0x8bf8d054
-0,     259072,     259072,     1024,     4096, 0x08370170
-0,     260096,     260096,     1024,     4096, 0xec62effa
-0,     261120,     261120,     1024,     4096, 0xd58cf67c
-0,     262144,     262144,     1024,     4096, 0xf597f9a1
-0,     263168,     263168,     1024,     4096, 0x63fcf0b0
-0,     264192,     264192,      408,     1632, 0xedfa314a
+0,          0,          0,     4096,    16384, 0x787629da
+0,       4096,       4096,     4096,    16384, 0x9121d441
+0,       8192,       8192,     4096,    16384, 0x9e93dbf1
+0,      12288,      12288,     4096,    16384, 0xae86efbf
+0,      16384,      16384,     4096,    16384, 0x84ace6c3
+0,      20480,      20480,     4096,    16384, 0x1daaf3fd
+0,      24576,      24576,     4096,    16384, 0x02a3d8ab
+0,      28672,      28672,     4096,    16384, 0x0c50d895
+0,      32768,      32768,     4096,    16384, 0xf398df71
+0,      36864,      36864,     4096,    16384, 0x9121d441
+0,      40960,      40960,     4096,    16384, 0xb238f7eb
+0,      45056,      45056,     4096,    16384, 0x33fedab5
+0,      49152,      49152,     4096,    16384, 0xb41bf24f
+0,      53248,      53248,     4096,    16384, 0xd996d181
+0,      57344,      57344,     4096,    16384, 0xef11f439
+0,      61440,      61440,     4096,    16384, 0x8b5cc9b7
+0,      65536,      65536,     4096,    16384, 0xccecbf4d
+0,      69632,      69632,     4096,    16384, 0xe754ec1b
+0,      73728,      73728,     4096,    16384, 0x7a9eea35
+0,      77824,      77824,     4096,    16384, 0xf9bdde45
+0,      81920,      81920,     4096,    16384, 0xed764630
+0,      86016,      86016,     4096,    16384, 0x7c8fd52d
+0,      90112,      90112,     4096,    16384, 0xb578f7c1
+0,      94208,      94208,     4096,    16384, 0x4aabce65
+0,      98304,      98304,     4096,    16384, 0x2d51e12d
+0,     102400,     102400,     4096,    16384, 0xf6f11922
+0,     106496,     106496,     4096,    16384, 0x6fe6bbc1
+0,     110592,     110592,     4096,    16384, 0xa271ce9f
+0,     114688,     114688,     4096,    16384, 0x9bb2f4c3
+0,     118784,     118784,     4096,    16384, 0x1bc3ecf3
+0,     122880,     122880,     4096,    16384, 0x61185472
+0,     126976,     126976,     4096,    16384, 0xfb7a31e0
+0,     131072,     131072,     4096,    16384, 0xaacecef6
+0,     135168,     135168,     4096,    16384, 0x6e96e721
+0,     139264,     139264,     4096,    16384, 0x79bfe08e
+0,     143360,     143360,     4096,    16384, 0x2574e3d9
+0,     147456,     147456,     4096,    16384, 0x2f27b215
+0,     151552,     151552,     4096,    16384, 0xac64cc47
+0,     155648,     155648,     4096,    16384, 0xe1ded3dc
+0,     159744,     159744,     4096,    16384, 0xc7c2e9aa
+0,     163840,     163840,     4096,    16384, 0x3f99e805
+0,     167936,     167936,     4096,    16384, 0xf0f2ccba
+0,     172032,     172032,     4096,    16384, 0x2747d598
+0,     176128,     176128,     4096,    16384, 0x36b5cabd
+0,     180224,     180224,     4096,    16384, 0x27edd491
+0,     184320,     184320,     4096,    16384, 0xc9818e34
+0,     188416,     188416,     4096,    16384, 0xa6d8d8b9
+0,     192512,     192512,     4096,    16384, 0xe3fbb858
+0,     196608,     196608,     4096,    16384, 0x9e4eeecd
+0,     200704,     200704,     4096,    16384, 0x7b478458
+0,     204800,     204800,     4096,    16384, 0x5606df83
+0,     208896,     208896,     4096,    16384, 0x6681d0a4
+0,     212992,     212992,     4096,    16384, 0x27edd491
+0,     217088,     217088,     4096,    16384, 0xc9818e34
+0,     221184,     221184,     4096,    16384, 0xa6d8d8b9
+0,     225280,     225280,     4096,    16384, 0xe3fbb858
+0,     229376,     229376,     4096,    16384, 0x9e4eeecd
+0,     233472,     233472,     4096,    16384, 0x7b478458
+0,     237568,     237568,     4096,    16384, 0x5606df83
+0,     241664,     241664,     4096,    16384, 0x6681d0a4
+0,     245760,     245760,     4096,    16384, 0x27edd491
+0,     249856,     249856,     4096,    16384, 0xc9818e34
+0,     253952,     253952,     4096,    16384, 0xa6d8d8b9
+0,     258048,     258048,     4096,    16384, 0xe3fbb858
+0,     262144,     262144,     2456,     9824, 0xbd4a1bb9
diff --git a/tests/ref/fate/filter-amerge b/tests/ref/fate/filter-amerge
index 83befc20b6..74d888c6a7 100644
--- a/tests/ref/fate/filter-amerge
+++ b/tests/ref/fate/filter-amerge
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x29e3eecf
-0,       1024,       1024,     1024,     4096, 0x18390b96
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
-0,       4096,       4096,     1024,     4096, 0x2379ed91
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
-0,       8192,       8192,     1024,     4096, 0x1840f25b
-0,       9216,       9216,     1024,     4096, 0x9c1ffaf1
-0,      10240,      10240,     1024,     4096, 0xcbedefaf
-0,      11264,      11264,     1024,     4096, 0x3e050390
-0,      12288,      12288,     1024,     4096, 0xb30e0090
-0,      13312,      13312,     1024,     4096, 0x26b8f75b
-0,      14336,      14336,     1024,     4096, 0xd706e311
-0,      15360,      15360,     1024,     4096, 0x0c480138
-0,      16384,      16384,     1024,     4096, 0x6c9a0216
-0,      17408,      17408,     1024,     4096, 0x7abce54f
-0,      18432,      18432,     1024,     4096, 0xda45f63f
-0,      19456,      19456,     1024,     4096, 0x50d5ff87
-0,      20480,      20480,     1024,     4096, 0x59be0352
-0,      21504,      21504,     1024,     4096, 0xa61af077
-0,      22528,      22528,     1024,     4096, 0x84c4fc07
-0,      23552,      23552,     1024,     4096, 0x4a35f345
-0,      24576,      24576,     1024,     4096, 0xbb65fa81
-0,      25600,      25600,     1024,     4096, 0xf6c7f5e5
-0,      26624,      26624,     1024,     4096, 0xd3270138
-0,      27648,      27648,     1024,     4096, 0x4782ed53
-0,      28672,      28672,     1024,     4096, 0xe308f055
-0,      29696,      29696,     1024,     4096, 0x7d33f97d
-0,      30720,      30720,     1024,     4096, 0xb8b00dd4
-0,      31744,      31744,     1024,     4096, 0x7ff7efab
-0,      32768,      32768,     1024,     4096, 0x29e3eecf
-0,      33792,      33792,     1024,     4096, 0x18390b96
-0,      34816,      34816,     1024,     4096, 0xc477fa99
-0,      35840,      35840,     1024,     4096, 0x3bc0f14f
-0,      36864,      36864,     1024,     4096, 0x2379ed91
-0,      37888,      37888,     1024,     4096, 0xfd6a0070
-0,      38912,      38912,     1024,     4096, 0x0b01f4cf
-0,      39936,      39936,     1024,     4096, 0x6716fd93
-0,      40960,      40960,     1024,     4096, 0x1840f25b
-0,      41984,      41984,     1024,     4096, 0x9c1ffaf1
-0,      43008,      43008,     1024,     4096, 0xcbedefaf
-0,      44032,      44032,     1024,     4096, 0xda37d691
-0,      45056,      45056,     1024,     4096, 0x7193ecbf
-0,      46080,      46080,     1024,     4096, 0x6e4a0a36
-0,      47104,      47104,     1024,     4096, 0x61cfe70d
-0,      48128,      48128,     1024,     4096, 0xc19ffa15
-0,      49152,      49152,     1024,     4096, 0x7b32fb3d
-0,      50176,      50176,     1024,     4096, 0xdacefd3f
-0,      51200,      51200,     1024,     4096, 0x3964f64d
-0,      52224,      52224,     1024,     4096, 0xdcf2edad
-0,      53248,      53248,     1024,     4096, 0x1367f69b
-0,      54272,      54272,     1024,     4096, 0xd4c6f7b9
-0,      55296,      55296,     1024,     4096, 0x9e041186
-0,      56320,      56320,     1024,     4096, 0xe939edd7
-0,      57344,      57344,     1024,     4096, 0xa932336a
-0,      58368,      58368,     1024,     4096, 0x5f510e28
-0,      59392,      59392,     1024,     4096, 0x4b8501c8
-0,      60416,      60416,     1024,     4096, 0xfbc30250
-0,      61440,      61440,     1024,     4096, 0x5e7fd855
-0,      62464,      62464,     1024,     4096, 0x8ef1f265
-0,      63488,      63488,     1024,     4096, 0x9f7601c2
-0,      64512,      64512,     1024,     4096, 0xb400f0b7
-0,      65536,      65536,     1024,     4096, 0x4c91e10b
-0,      66560,      66560,     1024,     4096, 0x3f41fe61
-0,      67584,      67584,     1024,     4096, 0x74fff9b9
-0,      68608,      68608,     1024,     4096, 0x18bbf5a5
-0,      69632,      69632,     1024,     4096, 0x51a70180
-0,      70656,      70656,     1024,     4096, 0x29f3e8c5
-0,      71680,      71680,     1024,     4096, 0x562efdb9
-0,      72704,      72704,     1024,     4096, 0xa2e006e0
-0,      73728,      73728,     1024,     4096, 0xa1bff541
-0,      74752,      74752,     1024,     4096, 0xd95b0012
-0,      75776,      75776,     1024,     4096, 0xd93e0912
-0,      76800,      76800,     1024,     4096, 0x6c2a1d88
-0,      77824,      77824,     1024,     4096, 0xb4d8fb8b
-0,      78848,      78848,     1024,     4096, 0xf14b0492
-0,      79872,      79872,     1024,     4096, 0x1c7be7b7
-0,      80896,      80896,     1024,     4096, 0xc181f877
-0,      81920,      81920,     1024,     4096, 0xba132d14
-0,      82944,      82944,     1024,     4096, 0xabae2d9a
-0,      83968,      83968,     1024,     4096, 0xb07fff15
-0,      84992,      84992,     1024,     4096, 0xa0c1ff2d
-0,      86016,      86016,     1024,     4096, 0x19f7fd1f
-0,      87040,      87040,     1024,     4096, 0xcb6d11a4
-0,      88064,      88064,     1024,     4096, 0x166ac8b7
-0,      89088,      89088,     1024,     4096, 0xe68dda8f
-0,      90112,      90112,     1024,     4096, 0xe457b505
-0,      91136,      91136,     1024,     4096, 0xda25a409
-0,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-0,      93184,      93184,     1024,     4096, 0xa61eb13d
-0,      94208,      94208,     1024,     4096, 0xac93b66f
-0,      95232,      95232,     1024,     4096, 0xc7aeb33f
-0,      96256,      96256,     1024,     4096, 0x52cccfb5
-0,      97280,      97280,     1024,     4096, 0x4e4cf487
-0,      98304,      98304,     1024,     4096, 0x19c07f35
-0,      99328,      99328,     1024,     4096, 0x63ecd34f
-0,     100352,     100352,     1024,     4096, 0x122aec53
-0,     101376,     101376,     1024,     4096, 0x6581c0ad
-0,     102400,     102400,     1024,     4096, 0x640edb15
-0,     103424,     103424,     1024,     4096, 0x5d66c66f
-0,     104448,     104448,     1024,     4096, 0x069e9d35
-0,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-0,     106496,     106496,     1024,     4096, 0x72468667
-0,     107520,     107520,     1024,     4096, 0x6e6dd02b
-0,     108544,     108544,     1024,     4096, 0x93edce33
-0,     109568,     109568,     1024,     4096, 0xcdfbd519
-0,     110592,     110592,     1024,     4096, 0x8463f2bb
-0,     111616,     111616,     1024,     4096, 0x5ca6f869
-0,     112640,     112640,     1024,     4096, 0x099a0398
-0,     113664,     113664,     1024,     4096, 0xa7fa10f0
-0,     114688,     114688,     1024,     4096, 0x28caddd3
-0,     115712,     115712,     1024,     4096, 0x4852ef8b
-0,     116736,     116736,     1024,     4096, 0x0250ee7b
-0,     117760,     117760,     1024,     4096, 0x9583da21
-0,     118784,     118784,     1024,     4096, 0x7365fb33
-0,     119808,     119808,     1024,     4096, 0x28c82066
-0,     120832,     120832,     1024,     4096, 0x94650be4
-0,     121856,     121856,     1024,     4096, 0xeb21f8eb
-0,     122880,     122880,     1024,     4096, 0xcd88f455
-0,     123904,     123904,     1024,     4096, 0x66a9efaf
-0,     124928,     124928,     1024,     4096, 0x5500c6ed
-0,     125952,     125952,     1024,     4096, 0x0ee0c62d
-0,     126976,     126976,     1024,     4096, 0x34d30762
-0,     128000,     128000,     1024,     4096, 0x8c0dec9f
-0,     129024,     129024,     1024,     4096, 0x790011d8
-0,     130048,     130048,     1024,     4096, 0xb76a1136
-0,     131072,     131072,     1024,     4096, 0x7dddfea7
-0,     132096,     132096,     1024,     4096, 0xb473edbb
-0,     133120,     133120,     1024,     4096, 0x40f6e94d
-0,     134144,     134144,     1024,     4096, 0xe6fae99b
-0,     135168,     135168,     1024,     4096, 0xbf5fe741
-0,     136192,     136192,     1024,     4096, 0x877df2e3
-0,     137216,     137216,     1024,     4096, 0x981d03f8
-0,     138240,     138240,     1024,     4096, 0x4afc2830
-0,     139264,     139264,     1024,     4096, 0x1213ee89
-0,     140288,     140288,     1024,     4096, 0xb1aaef65
-0,     141312,     141312,     1024,     4096, 0x2406ef09
-0,     142336,     142336,     1024,     4096, 0xad66f40d
-0,     143360,     143360,     1024,     4096, 0x7a65d88d
-0,     144384,     144384,     1024,     4096, 0x55dff997
-0,     145408,     145408,     1024,     4096, 0x948b21f4
-0,     146432,     146432,     1024,     4096, 0xc1c4ef9d
-0,     147456,     147456,     1024,     4096, 0x81a6f5f3
-0,     148480,     148480,     1024,     4096, 0xd82fcfed
-0,     149504,     149504,     1024,     4096, 0x4ba50b0c
-0,     150528,     150528,     1024,     4096, 0x2cc4edb1
-0,     151552,     151552,     1024,     4096, 0x5085e701
-0,     152576,     152576,     1024,     4096, 0x97beee93
-0,     153600,     153600,     1024,     4096, 0x3ea10e94
-0,     154624,     154624,     1024,     4096, 0x4347f983
-0,     155648,     155648,     1024,     4096, 0x17f4d38f
-0,     156672,     156672,     1024,     4096, 0x47f2f5c5
-0,     157696,     157696,     1024,     4096, 0x5484db7b
-0,     158720,     158720,     1024,     4096, 0xdef2d915
-0,     159744,     159744,     1024,     4096, 0xccfaf223
-0,     160768,     160768,     1024,     4096, 0x2fcf1bc2
-0,     161792,     161792,     1024,     4096, 0xc2cc10e4
-0,     162816,     162816,     1024,     4096, 0x63bc0f96
-0,     163840,     163840,     1024,     4096, 0x23d6eb63
-0,     164864,     164864,     1024,     4096, 0xf97806d8
-0,     165888,     165888,     1024,     4096, 0xe9ec0836
-0,     166912,     166912,     1024,     4096, 0x7481ee4f
-0,     167936,     167936,     1024,     4096, 0x3aae0f32
-0,     168960,     168960,     1024,     4096, 0x1103f357
-0,     169984,     169984,     1024,     4096, 0x1bbf02c6
-0,     171008,     171008,     1024,     4096, 0x7b6aeeb3
-0,     172032,     172032,     1024,     4096, 0x377eeec9
-0,     173056,     173056,     1024,     4096, 0xaab0e16f
-0,     174080,     174080,     1024,     4096, 0x2ffff0a3
-0,     175104,     175104,     1024,     4096, 0x4fb6f805
-0,     176128,     176128,     1024,     4096, 0xf5c8fdf3
-0,     177152,     177152,     1024,     4096, 0x782fe5ad
-0,     178176,     178176,     1024,     4096, 0xce0f0d0a
-0,     179200,     179200,     1024,     4096, 0xf888b957
-0,     180224,     180224,     1024,     4096, 0x075ced7f
-0,     181248,     181248,     1024,     4096, 0x269eea07
-0,     182272,     182272,     1024,     4096, 0x838ded59
-0,     183296,     183296,     1024,     4096, 0x71410850
-0,     184320,     184320,     1024,     4096, 0xb6a0d1d5
-0,     185344,     185344,     1024,     4096, 0x6787feed
-0,     186368,     186368,     1024,     4096, 0xbdcefa91
-0,     187392,     187392,     1024,     4096, 0xc135c927
-0,     188416,     188416,     1024,     4096, 0xe7cd11d6
-0,     189440,     189440,     1024,     4096, 0x8a61e97f
-0,     190464,     190464,     1024,     4096, 0x86adf3e3
-0,     191488,     191488,     1024,     4096, 0xa46a12f6
-0,     192512,     192512,     1024,     4096, 0x1c8f2c18
-0,     193536,     193536,     1024,     4096, 0x2fa62b6e
-0,     194560,     194560,     1024,     4096, 0xb644e65d
-0,     195584,     195584,     1024,     4096, 0xcc33f651
-0,     196608,     196608,     1024,     4096, 0x6de62030
-0,     197632,     197632,     1024,     4096, 0x1b0ce3bd
-0,     198656,     198656,     1024,     4096, 0x92d80e40
-0,     199680,     199680,     1024,     4096, 0x20edff7f
-0,     200704,     200704,     1024,     4096, 0xeeddf9eb
-0,     201728,     201728,     1024,     4096, 0x83861e06
-0,     202752,     202752,     1024,     4096, 0x9d90e441
-0,     203776,     203776,     1024,     4096, 0xaae21706
-0,     204800,     204800,     1024,     4096, 0x3da411d0
-0,     205824,     205824,     1024,     4096, 0xdc52051c
-0,     206848,     206848,     1024,     4096, 0x17e7233a
-0,     207872,     207872,     1024,     4096, 0xe9c1df0d
-0,     208896,     208896,     1024,     4096, 0xf725f4d1
-0,     209920,     209920,     1024,     4096, 0x0a760b38
-0,     210944,     210944,     1024,     4096, 0xbd67e3db
-0,     211968,     211968,     1024,     4096, 0x84c8378c
-0,     212992,     212992,     1024,     4096, 0xb045036a
-0,     214016,     214016,     1024,     4096, 0x697706de
-0,     215040,     215040,     1024,     4096, 0x15e6038e
-0,     216064,     216064,     1024,     4096, 0x17c4e895
-0,     217088,     217088,     1024,     4096, 0xd1d81f0e
-0,     218112,     218112,     1024,     4096, 0x3764f1eb
-0,     219136,     219136,     1024,     4096, 0xce58f645
-0,     220160,     220160,     1024,     4096, 0xd53127be
-0,     221184,     221184,     1024,     4096, 0xacc7df11
-0,     222208,     222208,     1024,     4096, 0x05040766
-0,     223232,     223232,     1024,     4096, 0x131efcf5
-0,     224256,     224256,     1024,     4096, 0xe3dcddef
-0,     225280,     225280,     1024,     4096, 0xd042a3c2
-0,     226304,     226304,     1024,     4096, 0x6e3dc579
-0,     227328,     227328,     1024,     4096, 0xd6920a88
-0,     228352,     228352,     1024,     4096, 0xd6c9fa87
-0,     229376,     229376,     1024,     4096, 0x17efd0b5
-0,     230400,     230400,     1024,     4096, 0x73a90d28
-0,     231424,     231424,     1024,     4096, 0x077de2a5
-0,     232448,     232448,     1024,     4096, 0x8248f157
-0,     233472,     233472,     1024,     4096, 0xa459f6eb
-0,     234496,     234496,     1024,     4096, 0x1ab5d2e1
-0,     235520,     235520,     1024,     4096, 0xee960ca4
-0,     236544,     236544,     1024,     4096, 0xe5ccd9df
-0,     237568,     237568,     1024,     4096, 0x85cddf19
-0,     238592,     238592,     1024,     4096, 0x9dceebc7
-0,     239616,     239616,     1024,     4096, 0x81becdab
-0,     240640,     240640,     1024,     4096, 0xac4d11d8
-0,     241664,     241664,     1024,     4096, 0x9b61fc05
-0,     242688,     242688,     1024,     4096, 0x782fe5ad
-0,     243712,     243712,     1024,     4096, 0xce0f0d0a
-0,     244736,     244736,     1024,     4096, 0xf888b957
-0,     245760,     245760,     1024,     4096, 0x075ced7f
-0,     246784,     246784,     1024,     4096, 0x269eea07
-0,     247808,     247808,     1024,     4096, 0x838ded59
-0,     248832,     248832,     1024,     4096, 0x71410850
-0,     249856,     249856,     1024,     4096, 0xb6a0d1d5
-0,     250880,     250880,     1024,     4096, 0x6787feed
-0,     251904,     251904,     1024,     4096, 0xbdcefa91
-0,     252928,     252928,     1024,     4096, 0xc135c927
-0,     253952,     253952,     1024,     4096, 0xe7cd11d6
-0,     254976,     254976,     1024,     4096, 0x8a61e97f
-0,     256000,     256000,     1024,     4096, 0x86adf3e3
-0,     257024,     257024,     1024,     4096, 0xa46a12f6
-0,     258048,     258048,     1024,     4096, 0x1c8f2c18
-0,     259072,     259072,     1024,     4096, 0x2fa62b6e
-0,     260096,     260096,     1024,     4096, 0xb644e65d
-0,     261120,     261120,     1024,     4096, 0xcc33f651
-0,     262144,     262144,     1024,     4096, 0x6de62030
-0,     263168,     263168,     1024,     4096, 0x1b0ce3bd
-0,     264192,     264192,      408,     1632, 0x53c44589
+0,          0,          0,     4096,    16384, 0x02ebe66b
+0,       4096,       4096,     4096,    16384, 0x35bfe081
+0,       8192,       8192,     4096,    16384, 0x3f90e0a9
+0,      12288,      12288,     4096,    16384, 0xd389dc43
+0,      16384,      16384,     4096,    16384, 0x9d5add49
+0,      20480,      20480,     4096,    16384, 0x378ee333
+0,      24576,      24576,     4096,    16384, 0xabf6df0f
+0,      28672,      28672,     4096,    16384, 0xedefe76f
+0,      32768,      32768,     4096,    16384, 0x02ebe66b
+0,      36864,      36864,     4096,    16384, 0x35bfe081
+0,      40960,      40960,     4096,    16384, 0xdbc2b3b9
+0,      45056,      45056,     4096,    16384, 0xe92bd835
+0,      49152,      49152,     4096,    16384, 0x1126dca3
+0,      53248,      53248,     4096,    16384, 0x9647edcf
+0,      57344,      57344,     4096,    16384, 0x5cc345aa
+0,      61440,      61440,     4096,    16384, 0x19d7bd51
+0,      65536,      65536,     4096,    16384, 0x19eccef7
+0,      69632,      69632,     4096,    16384, 0x4b68eeed
+0,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+0,      77824,      77824,     4096,    16384, 0xe9b2e069
+0,      81920,      81920,     4096,    16384, 0xcaa5590e
+0,      86016,      86016,     4096,    16384, 0x47d0b227
+0,      90112,      90112,     4096,    16384, 0x446ba7a4
+0,      94208,      94208,     4096,    16384, 0x299b2e17
+0,      98304,      98304,     4096,    16384, 0xc51affa2
+0,     102400,     102400,     4096,    16384, 0xb4970fcf
+0,     106496,     106496,     4096,    16384, 0xe48af9fc
+0,     110592,     110592,     4096,    16384, 0xc2beffbb
+0,     114688,     114688,     4096,    16384, 0xb9d99627
+0,     118784,     118784,     4096,    16384, 0xb65a2086
+0,     122880,     122880,     4096,    16384, 0x6386714b
+0,     126976,     126976,     4096,    16384, 0x92a3171e
+0,     131072,     131072,     4096,    16384, 0x3f5dbf77
+0,     135168,     135168,     4096,    16384, 0x8fd7066a
+0,     139264,     139264,     4096,    16384, 0xb55cc131
+0,     143360,     143360,     4096,    16384, 0x0bd0e3d3
+0,     147456,     147456,     4096,    16384, 0x068cbebb
+0,     151552,     151552,     4096,    16384, 0x912addc9
+0,     155648,     155648,     4096,    16384, 0xa14b7e11
+0,     159744,     159744,     4096,    16384, 0x207f2e6e
+0,     163840,     163840,     4096,    16384, 0x1695e8cf
+0,     167936,     167936,     4096,    16384, 0x7897f411
+0,     172032,     172032,     4096,    16384, 0x4a1fb90d
+0,     176128,     176128,     4096,    16384, 0x8a13aa1f
+0,     180224,     180224,     4096,    16384, 0x9464cd4d
+0,     184320,     184320,     4096,    16384, 0x54a494a7
+0,     188416,     188416,     4096,    16384, 0x9a2a024c
+0,     192512,     192512,     4096,    16384, 0x84413452
+0,     196608,     196608,     4096,    16384, 0xefc011ca
+0,     200704,     200704,     4096,    16384, 0x685e1356
+0,     204800,     204800,     4096,    16384, 0x986e1942
+0,     208896,     208896,     4096,    16384, 0xbf491b8e
+0,     212992,     212992,     4096,    16384, 0xe13df66b
+0,     217088,     217088,     4096,    16384, 0x00eb2f1a
+0,     221184,     221184,     4096,    16384, 0x5771c179
+0,     225280,     225280,     4096,    16384, 0x34e86e68
+0,     229376,     229376,     4096,    16384, 0x8db8b1f7
+0,     233472,     233472,     4096,    16384, 0x5187b06d
+0,     237568,     237568,     4096,    16384, 0x8067aa81
+0,     241664,     241664,     4096,    16384, 0x8a39a831
+0,     245760,     245760,     4096,    16384, 0x9464cd4d
+0,     249856,     249856,     4096,    16384, 0x54a494a7
+0,     253952,     253952,     4096,    16384, 0x9a2a024c
+0,     258048,     258048,     4096,    16384, 0x84413452
+0,     262144,     262144,     2456,     9824, 0x62e94985
diff --git a/tests/ref/fate/filter-anequalizer b/tests/ref/fate/filter-anequalizer
index 250c9ede91..a5195b51e3 100644
--- a/tests/ref/fate/filter-anequalizer
+++ b/tests/ref/fate/filter-anequalizer
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x8e1bf8e0
-0,       1024,       1024,     1024,     4096, 0xe315f564
-0,       2048,       2048,     1024,     4096, 0x3d0efa98
-0,       3072,       3072,     1024,     4096, 0x5c1bf6b2
-0,       4096,       4096,     1024,     4096, 0xb5b4ff02
-0,       5120,       5120,     1024,     4096, 0xb9b1f4b6
-0,       6144,       6144,     1024,     4096, 0x86e9f411
-0,       7168,       7168,     1024,     4096, 0x36aafbd3
-0,       8192,       8192,     1024,     4096, 0x05d2f63f
-0,       9216,       9216,     1024,     4096, 0x1d95fd16
-0,      10240,      10240,     1024,     4096, 0x4fb0f009
-0,      11264,      11264,     1024,     4096, 0x6a6301c6
-0,      12288,      12288,     1024,     4096, 0x299cfbd8
-0,      13312,      13312,     1024,     4096, 0x2a7ffe8c
-0,      14336,      14336,     1024,     4096, 0xceace509
-0,      15360,      15360,     1024,     4096, 0xd084feec
-0,      16384,      16384,     1024,     4096, 0xd956f613
-0,      17408,      17408,     1024,     4096, 0xf61dfa8c
-0,      18432,      18432,     1024,     4096, 0x6ebcf53e
-0,      19456,      19456,     1024,     4096, 0x8601f9f2
-0,      20480,      20480,     1024,     4096, 0x6a4bf2d9
-0,      21504,      21504,     1024,     4096, 0xb917fc1d
-0,      22528,      22528,     1024,     4096, 0x85cffbca
-0,      23552,      23552,     1024,     4096, 0x80d9f509
-0,      24576,      24576,     1024,     4096, 0xa4acf898
-0,      25600,      25600,     1024,     4096, 0x7614f3c0
-0,      26624,      26624,     1024,     4096, 0x5f3700dc
-0,      27648,      27648,     1024,     4096, 0x4308ef21
-0,      28672,      28672,     1024,     4096, 0x670df4fe
-0,      29696,      29696,     1024,     4096, 0x98d0f24f
-0,      30720,      30720,     1024,     4096, 0xed360be0
-0,      31744,      31744,     1024,     4096, 0xbe10f1eb
-0,      32768,      32768,     1024,     4096, 0xb5d0fac0
-0,      33792,      33792,     1024,     4096, 0x94c1f649
-0,      34816,      34816,     1024,     4096, 0x3617fb9b
-0,      35840,      35840,     1024,     4096, 0x1840f6e6
-0,      36864,      36864,     1024,     4096, 0x0ce8fdfa
-0,      37888,      37888,     1024,     4096, 0xd7c1f4b8
-0,      38912,      38912,     1024,     4096, 0x86e9f411
-0,      39936,      39936,     1024,     4096, 0x36aafbd3
-0,      40960,      40960,     1024,     4096, 0x05d2f63f
-0,      41984,      41984,     1024,     4096, 0x1d95fd16
-0,      43008,      43008,     1024,     4096, 0x4fb0f009
-0,      44032,      44032,     1024,     4096, 0xc6de743e
-0,      45056,      45056,     1024,     4096, 0xe878f6e3
-0,      46080,      46080,     1024,     4096, 0x40c3fdf9
-0,      47104,      47104,     1024,     4096, 0x19def744
-0,      48128,      48128,     1024,     4096, 0x9e3d0016
-0,      49152,      49152,     1024,     4096, 0x2d3bfaee
-0,      50176,      50176,     1024,     4096, 0x0ae800c8
-0,      51200,      51200,     1024,     4096, 0xd6530007
-0,      52224,      52224,     1024,     4096, 0x3ec6fa96
-0,      53248,      53248,     1024,     4096, 0x4f3df4c4
-0,      54272,      54272,     1024,     4096, 0x8584f574
-0,      55296,      55296,     1024,     4096, 0xaa2311e8
-0,      56320,      56320,     1024,     4096, 0xfc04ed39
-0,      57344,      57344,     1024,     4096, 0xdefc1dcf
-0,      58368,      58368,     1024,     4096, 0x26120297
-0,      59392,      59392,     1024,     4096, 0x12db0600
-0,      60416,      60416,     1024,     4096, 0x590cfb36
-0,      61440,      61440,     1024,     4096, 0x03d2e732
-0,      62464,      62464,     1024,     4096, 0xa0b1eecb
-0,      63488,      63488,     1024,     4096, 0x89e6f0f8
-0,      64512,      64512,     1024,     4096, 0x96c3fde6
-0,      65536,      65536,     1024,     4096, 0x5d3ef320
-0,      66560,      66560,     1024,     4096, 0x780beba1
-0,      67584,      67584,     1024,     4096, 0x8a6ef641
-0,      68608,      68608,     1024,     4096, 0x716df2d2
-0,      69632,      69632,     1024,     4096, 0xe02bf742
-0,      70656,      70656,     1024,     4096, 0x636f0676
-0,      71680,      71680,     1024,     4096, 0x211fef81
-0,      72704,      72704,     1024,     4096, 0x230d03c2
-0,      73728,      73728,     1024,     4096, 0x78c7ec7e
-0,      74752,      74752,     1024,     4096, 0x57aaf08e
-0,      75776,      75776,     1024,     4096, 0xf35c034e
-0,      76800,      76800,     1024,     4096, 0xa52120e1
-0,      77824,      77824,     1024,     4096, 0xcd0ffe7c
-0,      78848,      78848,     1024,     4096, 0x76a40264
-0,      79872,      79872,     1024,     4096, 0x3daae73c
-0,      80896,      80896,     1024,     4096, 0x02bfebb8
-0,      81920,      81920,     1024,     4096, 0x2fad0aef
-0,      82944,      82944,     1024,     4096, 0xaf3d1e35
-0,      83968,      83968,     1024,     4096, 0x1577f70b
-0,      84992,      84992,     1024,     4096, 0x7330ff44
-0,      86016,      86016,     1024,     4096, 0xfc10f794
-0,      87040,      87040,     1024,     4096, 0xf883ff53
-0,      88064,      88064,     1024,     4096, 0x4d91f664
-0,      89088,      89088,     1024,     4096, 0x7bbcf94a
-0,      90112,      90112,     1024,     4096, 0x5243da5a
-0,      91136,      91136,     1024,     4096, 0xc9f2b510
-0,      92160,      92160,     1024,     4096, 0xd45daee9
-0,      93184,      93184,     1024,     4096, 0xf040cbe7
-0,      94208,      94208,     1024,     4096, 0xc755db61
-0,      95232,      95232,     1024,     4096, 0x2a2bdb39
-0,      96256,      96256,     1024,     4096, 0xd180faf7
-0,      97280,      97280,     1024,     4096, 0xe05bf3b3
-0,      98304,      98304,     1024,     4096, 0xee84c6a1
-0,      99328,      99328,     1024,     4096, 0xb05ec71b
-0,     100352,     100352,     1024,     4096, 0xf788e856
-0,     101376,     101376,     1024,     4096, 0x884fe6b4
-0,     102400,     102400,     1024,     4096, 0xc474ef2f
-0,     103424,     103424,     1024,     4096, 0x8ea2e3e3
-0,     104448,     104448,     1024,     4096, 0x32e2ba03
-0,     105472,     105472,     1024,     4096, 0xde62e2be
-0,     106496,     106496,     1024,     4096, 0xd9c1a387
-0,     107520,     107520,     1024,     4096, 0xb923e9c8
-0,     108544,     108544,     1024,     4096, 0xe0e2ef73
-0,     109568,     109568,     1024,     4096, 0xdc66f037
-0,     110592,     110592,     1024,     4096, 0x4c5ddb65
-0,     111616,     111616,     1024,     4096, 0xddc5e6dc
-0,     112640,     112640,     1024,     4096, 0x2c2afa48
-0,     113664,     113664,     1024,     4096, 0xfe1cefab
-0,     114688,     114688,     1024,     4096, 0xa761d9b1
-0,     115712,     115712,     1024,     4096, 0xac1af519
-0,     116736,     116736,     1024,     4096, 0x1d3e0455
-0,     117760,     117760,     1024,     4096, 0xca8bdaec
-0,     118784,     118784,     1024,     4096, 0x1c890dd7
-0,     119808,     119808,     1024,     4096, 0xd01023ec
-0,     120832,     120832,     1024,     4096, 0xd608fa07
-0,     121856,     121856,     1024,     4096, 0xa01bdceb
-0,     122880,     122880,     1024,     4096, 0x5b6e0428
-0,     123904,     123904,     1024,     4096, 0x699bffc9
-0,     124928,     124928,     1024,     4096, 0x7200d6ea
-0,     125952,     125952,     1024,     4096, 0x60ece933
-0,     126976,     126976,     1024,     4096, 0x6d1305ad
-0,     128000,     128000,     1024,     4096, 0xf932e234
-0,     129024,     129024,     1024,     4096, 0xc88dfc53
-0,     130048,     130048,     1024,     4096, 0xecaafd32
-0,     131072,     131072,     1024,     4096, 0x4683eec4
-0,     132096,     132096,     1024,     4096, 0x01a40877
-0,     133120,     133120,     1024,     4096, 0x68affdb9
-0,     134144,     134144,     1024,     4096, 0x3d50049a
-0,     135168,     135168,     1024,     4096, 0x28c3e64a
-0,     136192,     136192,     1024,     4096, 0xe77eff83
-0,     137216,     137216,     1024,     4096, 0x778ef1d7
-0,     138240,     138240,     1024,     4096, 0x8632016c
-0,     139264,     139264,     1024,     4096, 0x113ff74d
-0,     140288,     140288,     1024,     4096, 0x8a410144
-0,     141312,     141312,     1024,     4096, 0xf1f8032c
-0,     142336,     142336,     1024,     4096, 0x4ea9f305
-0,     143360,     143360,     1024,     4096, 0x08beed52
-0,     144384,     144384,     1024,     4096, 0xe62e0599
-0,     145408,     145408,     1024,     4096, 0xabc1f9cb
-0,     146432,     146432,     1024,     4096, 0x0a3cf37c
-0,     147456,     147456,     1024,     4096, 0x9d84eaec
-0,     148480,     148480,     1024,     4096, 0x0ecafb82
-0,     149504,     149504,     1024,     4096, 0x3898f9f9
-0,     150528,     150528,     1024,     4096, 0xbe95f626
-0,     151552,     151552,     1024,     4096, 0x2bd01290
-0,     152576,     152576,     1024,     4096, 0xb3ccf9cc
-0,     153600,     153600,     1024,     4096, 0x1d6510a7
-0,     154624,     154624,     1024,     4096, 0xb758f5ec
-0,     155648,     155648,     1024,     4096, 0xe163f2f7
-0,     156672,     156672,     1024,     4096, 0x208cf625
-0,     157696,     157696,     1024,     4096, 0x0e7ee529
-0,     158720,     158720,     1024,     4096, 0x82fef772
-0,     159744,     159744,     1024,     4096, 0xbcadfd1a
-0,     160768,     160768,     1024,     4096, 0xb84914e1
-0,     161792,     161792,     1024,     4096, 0xae9de78e
-0,     162816,     162816,     1024,     4096, 0x17afdd4d
-0,     163840,     163840,     1024,     4096, 0x6f41e1ac
-0,     164864,     164864,     1024,     4096, 0x07b2019e
-0,     165888,     165888,     1024,     4096, 0x92a9f923
-0,     166912,     166912,     1024,     4096, 0xb284f10b
-0,     167936,     167936,     1024,     4096, 0x6a3ffa40
-0,     168960,     168960,     1024,     4096, 0xaee7e8bd
-0,     169984,     169984,     1024,     4096, 0xa409e2f3
-0,     171008,     171008,     1024,     4096, 0x26f3f5ff
-0,     172032,     172032,     1024,     4096, 0x1a89eca5
-0,     173056,     173056,     1024,     4096, 0x8a49f293
-0,     174080,     174080,     1024,     4096, 0x9d4506f7
-0,     175104,     175104,     1024,     4096, 0x0ca2f075
-0,     176128,     176128,     1024,     4096, 0x7beb063f
-0,     177152,     177152,     1024,     4096, 0xe2b1e8a0
-0,     178176,     178176,     1024,     4096, 0xcc77fbd0
-0,     179200,     179200,     1024,     4096, 0x7c93f956
-0,     180224,     180224,     1024,     4096, 0xdb28fb69
-0,     181248,     181248,     1024,     4096, 0xe49afc39
-0,     182272,     182272,     1024,     4096, 0x60e904b5
-0,     183296,     183296,     1024,     4096, 0xbb67ebbc
-0,     184320,     184320,     1024,     4096, 0xc1e4ca2b
-0,     185344,     185344,     1024,     4096, 0xdcb8e550
-0,     186368,     186368,     1024,     4096, 0xe70bfe5d
-0,     187392,     187392,     1024,     4096, 0x5da3f4d4
-0,     188416,     188416,     1024,     4096, 0xfe9f04f6
-0,     189440,     189440,     1024,     4096, 0xf960f3cd
-0,     190464,     190464,     1024,     4096, 0xe6b7fc42
-0,     191488,     191488,     1024,     4096, 0xb8b9f1e2
-0,     192512,     192512,     1024,     4096, 0x520dd814
-0,     193536,     193536,     1024,     4096, 0x00f30212
-0,     194560,     194560,     1024,     4096, 0x8298f610
-0,     195584,     195584,     1024,     4096, 0xf0d9f47f
-0,     196608,     196608,     1024,     4096, 0x5063f4c4
-0,     197632,     197632,     1024,     4096, 0x6910f4bf
-0,     198656,     198656,     1024,     4096, 0x8c27ec24
-0,     199680,     199680,     1024,     4096, 0xf803052a
-0,     200704,     200704,     1024,     4096, 0xe31b1507
-0,     201728,     201728,     1024,     4096, 0x0ca30bbf
-0,     202752,     202752,     1024,     4096, 0x2659f272
-0,     203776,     203776,     1024,     4096, 0x54c0fc05
-0,     204800,     204800,     1024,     4096, 0x7427ebec
-0,     205824,     205824,     1024,     4096, 0xb652fd0c
-0,     206848,     206848,     1024,     4096, 0xa6c9f494
-0,     207872,     207872,     1024,     4096, 0xd429fef3
-0,     208896,     208896,     1024,     4096, 0xbbd5f8e3
-0,     209920,     209920,     1024,     4096, 0x8b74eed4
-0,     210944,     210944,     1024,     4096, 0xf21cfac1
-0,     211968,     211968,     1024,     4096, 0x055efc5f
-0,     212992,     212992,     1024,     4096, 0x334efc0f
-0,     214016,     214016,     1024,     4096, 0x29e7fc16
-0,     215040,     215040,     1024,     4096, 0xf0f904c0
-0,     216064,     216064,     1024,     4096, 0xaec3ebbb
-0,     217088,     217088,     1024,     4096, 0xc1e4ca2b
-0,     218112,     218112,     1024,     4096, 0xdcb8e550
-0,     219136,     219136,     1024,     4096, 0xe70bfe5d
-0,     220160,     220160,     1024,     4096, 0x5da3f4d4
-0,     221184,     221184,     1024,     4096, 0xfe9f04f6
-0,     222208,     222208,     1024,     4096, 0xf960f3cd
-0,     223232,     223232,     1024,     4096, 0xe6b7fc42
-0,     224256,     224256,     1024,     4096, 0xb8b9f1e2
-0,     225280,     225280,     1024,     4096, 0x520dd814
-0,     226304,     226304,     1024,     4096, 0x00f30212
-0,     227328,     227328,     1024,     4096, 0x8298f610
-0,     228352,     228352,     1024,     4096, 0xf0d9f47f
-0,     229376,     229376,     1024,     4096, 0x5063f4c4
-0,     230400,     230400,     1024,     4096, 0x6910f4bf
-0,     231424,     231424,     1024,     4096, 0x8c27ec24
-0,     232448,     232448,     1024,     4096, 0xf803052a
-0,     233472,     233472,     1024,     4096, 0xe31b1507
-0,     234496,     234496,     1024,     4096, 0x0ca30bbf
-0,     235520,     235520,     1024,     4096, 0x2659f272
-0,     236544,     236544,     1024,     4096, 0x54c0fc05
-0,     237568,     237568,     1024,     4096, 0x7427ebec
-0,     238592,     238592,     1024,     4096, 0xb652fd0c
-0,     239616,     239616,     1024,     4096, 0xa6c9f494
-0,     240640,     240640,     1024,     4096, 0xd429fef3
-0,     241664,     241664,     1024,     4096, 0xbbd5f8e3
-0,     242688,     242688,     1024,     4096, 0x8b74eed4
-0,     243712,     243712,     1024,     4096, 0xf21cfac1
-0,     244736,     244736,     1024,     4096, 0x055efc5f
-0,     245760,     245760,     1024,     4096, 0x334efc0f
-0,     246784,     246784,     1024,     4096, 0x29e7fc16
-0,     247808,     247808,     1024,     4096, 0xf0f904c0
-0,     248832,     248832,     1024,     4096, 0xaec3ebbb
-0,     249856,     249856,     1024,     4096, 0xc1e4ca2b
-0,     250880,     250880,     1024,     4096, 0xdcb8e550
-0,     251904,     251904,     1024,     4096, 0xe70bfe5d
-0,     252928,     252928,     1024,     4096, 0x5da3f4d4
-0,     253952,     253952,     1024,     4096, 0xfe9f04f6
-0,     254976,     254976,     1024,     4096, 0xf960f3cd
-0,     256000,     256000,     1024,     4096, 0xe6b7fc42
-0,     257024,     257024,     1024,     4096, 0xb8b9f1e2
-0,     258048,     258048,     1024,     4096, 0x520dd814
-0,     259072,     259072,     1024,     4096, 0x00f30212
-0,     260096,     260096,     1024,     4096, 0x8298f610
-0,     261120,     261120,     1024,     4096, 0xf0d9f47f
-0,     262144,     262144,     1024,     4096, 0x5063f4c4
-0,     263168,     263168,     1024,     4096, 0x6910f4bf
-0,     264192,     264192,      408,     1632, 0xe6d032c8
+0,          0,          0,     4096,    16384, 0x7dc2dfbb
+0,       4096,       4096,     4096,    16384, 0xda39e3c9
+0,       8192,       8192,     4096,    16384, 0x6df5e542
+0,      12288,      12288,     4096,    16384, 0xfbfade86
+0,      16384,      16384,     4096,    16384, 0x246fdffc
+0,      20480,      20480,     4096,    16384, 0x8a3adff6
+0,      24576,      24576,     4096,    16384, 0x8257dc73
+0,      28672,      28672,     4096,    16384, 0xae05e536
+0,      32768,      32768,     4096,    16384, 0xe42be3b7
+0,      36864,      36864,     4096,    16384, 0x0c9ee2c3
+0,      40960,      40960,     4096,    16384, 0xca7057c9
+0,      45056,      45056,     4096,    16384, 0x4c21ec54
+0,      49152,      49152,     4096,    16384, 0x20b2f662
+0,      53248,      53248,     4096,    16384, 0xc8b0e977
+0,      57344,      57344,     4096,    16384, 0x7f5a21ab
+0,      61440,      61440,     4096,    16384, 0x3173c508
+0,      65536,      65536,     4096,    16384, 0x4dffc801
+0,      69632,      69632,     4096,    16384, 0x5c1ef10a
+0,      73728,      73728,     4096,    16384, 0x08990159
+0,      77824,      77824,     4096,    16384, 0xad60d3f2
+0,      81920,      81920,     4096,    16384, 0xc6ab1f91
+0,      86016,      86016,     4096,    16384, 0x9c5ce6c2
+0,      90112,      90112,     4096,    16384, 0xaeca0a67
+0,      94208,      94208,     4096,    16384, 0x531ba571
+0,      98304,      98304,     4096,    16384, 0x8ceb5cf3
+0,     102400,     102400,     4096,    16384, 0xbf1e7000
+0,     106496,     106496,     4096,    16384, 0x335b6d26
+0,     110592,     110592,     4096,    16384, 0x495eac61
+0,     114688,     114688,     4096,    16384, 0x0f84ae29
+0,     118784,     118784,     4096,    16384, 0xf79308d3
+0,     122880,     122880,     4096,    16384, 0x8cf2c42c
+0,     126976,     126976,     4096,    16384, 0xe06be184
+0,     131072,     131072,     4096,    16384, 0xbba3f99d
+0,     135168,     135168,     4096,    16384, 0x07eed92e
+0,     139264,     139264,     4096,    16384, 0x4943eed1
+0,     143360,     143360,     4096,    16384, 0x6555e050
+0,     147456,     147456,     4096,    16384, 0x0a88d6ba
+0,     151552,     151552,     4096,    16384, 0xbcb7130d
+0,     155648,     155648,     4096,    16384, 0x637fc5e4
+0,     159744,     159744,     4096,    16384, 0xe3a3d6f4
+0,     163840,     163840,     4096,    16384, 0x53b5cd96
+0,     167936,     167936,     4096,    16384, 0xfd79bc1c
+0,     172032,     172032,     4096,    16384, 0x75f3d6c2
+0,     176128,     176128,     4096,    16384, 0x29c4e423
+0,     180224,     180224,     4096,    16384, 0x9ce5e831
+0,     184320,     184320,     4096,    16384, 0x98bba2d9
+0,     188416,     188416,     4096,    16384, 0x3b5de705
+0,     192512,     192512,     4096,    16384, 0x1105c4d3
+0,     196608,     196608,     4096,    16384, 0x76b7daef
+0,     200704,     200704,     4096,    16384, 0xef650f5b
+0,     204800,     204800,     4096,    16384, 0xfd1ddcac
+0,     208896,     208896,     4096,    16384, 0xc60bdf04
+0,     212992,     212992,     4096,    16384, 0x2f59e8be
+0,     217088,     217088,     4096,    16384, 0x98bba2d9
+0,     221184,     221184,     4096,    16384, 0x3b5de705
+0,     225280,     225280,     4096,    16384, 0x1105c4d3
+0,     229376,     229376,     4096,    16384, 0x76b7daef
+0,     233472,     233472,     4096,    16384, 0xef650f5b
+0,     237568,     237568,     4096,    16384, 0xfd1ddcac
+0,     241664,     241664,     4096,    16384, 0xc60bdf04
+0,     245760,     245760,     4096,    16384, 0x2f59e8be
+0,     249856,     249856,     4096,    16384, 0x98bba2d9
+0,     253952,     253952,     4096,    16384, 0x3b5de705
+0,     258048,     258048,     4096,    16384, 0x1105c4d3
+0,     262144,     262144,     2456,     9824, 0x1fe31c69
diff --git a/tests/ref/fate/filter-apad b/tests/ref/fate/filter-apad
index 79ed050a4b..b5c96e067a 100644
--- a/tests/ref/fate/filter-apad
+++ b/tests/ref/fate/filter-apad
@@ -3,263 +3,69 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x29e3eecf
-0,       1024,       1024,     1024,     4096, 0x18390b96
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
-0,       4096,       4096,     1024,     4096, 0x2379ed91
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
-0,       8192,       8192,     1024,     4096, 0x1840f25b
-0,       9216,       9216,     1024,     4096, 0x9c1ffaf1
-0,      10240,      10240,     1024,     4096, 0xcbedefaf
-0,      11264,      11264,     1024,     4096, 0x3e050390
-0,      12288,      12288,     1024,     4096, 0xb30e0090
-0,      13312,      13312,     1024,     4096, 0x26b8f75b
-0,      14336,      14336,     1024,     4096, 0xd706e311
-0,      15360,      15360,     1024,     4096, 0x0c480138
-0,      16384,      16384,     1024,     4096, 0x6c9a0216
-0,      17408,      17408,     1024,     4096, 0x7abce54f
-0,      18432,      18432,     1024,     4096, 0xda45f63f
-0,      19456,      19456,     1024,     4096, 0x50d5ff87
-0,      20480,      20480,     1024,     4096, 0x59be0352
-0,      21504,      21504,     1024,     4096, 0xa61af077
-0,      22528,      22528,     1024,     4096, 0x84c4fc07
-0,      23552,      23552,     1024,     4096, 0x4a35f345
-0,      24576,      24576,     1024,     4096, 0xbb65fa81
-0,      25600,      25600,     1024,     4096, 0xf6c7f5e5
-0,      26624,      26624,     1024,     4096, 0xd3270138
-0,      27648,      27648,     1024,     4096, 0x4782ed53
-0,      28672,      28672,     1024,     4096, 0xe308f055
-0,      29696,      29696,     1024,     4096, 0x7d33f97d
-0,      30720,      30720,     1024,     4096, 0xb8b00dd4
-0,      31744,      31744,     1024,     4096, 0x7ff7efab
-0,      32768,      32768,     1024,     4096, 0x29e3eecf
-0,      33792,      33792,     1024,     4096, 0x18390b96
-0,      34816,      34816,     1024,     4096, 0xc477fa99
-0,      35840,      35840,     1024,     4096, 0x3bc0f14f
-0,      36864,      36864,     1024,     4096, 0x2379ed91
-0,      37888,      37888,     1024,     4096, 0xfd6a0070
-0,      38912,      38912,     1024,     4096, 0x0b01f4cf
-0,      39936,      39936,     1024,     4096, 0x6716fd93
-0,      40960,      40960,     1024,     4096, 0x1840f25b
-0,      41984,      41984,     1024,     4096, 0x9c1ffaf1
-0,      43008,      43008,     1024,     4096, 0xcbedefaf
-0,      44032,      44032,     1024,     4096, 0xda37d691
-0,      45056,      45056,     1024,     4096, 0x7193ecbf
-0,      46080,      46080,     1024,     4096, 0x6e4a0a36
-0,      47104,      47104,     1024,     4096, 0x61cfe70d
-0,      48128,      48128,     1024,     4096, 0xc19ffa15
-0,      49152,      49152,     1024,     4096, 0x7b32fb3d
-0,      50176,      50176,     1024,     4096, 0xdacefd3f
-0,      51200,      51200,     1024,     4096, 0x3964f64d
-0,      52224,      52224,     1024,     4096, 0xdcf2edad
-0,      53248,      53248,     1024,     4096, 0x1367f69b
-0,      54272,      54272,     1024,     4096, 0xd4c6f7b9
-0,      55296,      55296,     1024,     4096, 0x9e041186
-0,      56320,      56320,     1024,     4096, 0xe939edd7
-0,      57344,      57344,     1024,     4096, 0xa932336a
-0,      58368,      58368,     1024,     4096, 0x5f510e28
-0,      59392,      59392,     1024,     4096, 0x4b8501c8
-0,      60416,      60416,     1024,     4096, 0xfbc30250
-0,      61440,      61440,     1024,     4096, 0x5e7fd855
-0,      62464,      62464,     1024,     4096, 0x8ef1f265
-0,      63488,      63488,     1024,     4096, 0x9f7601c2
-0,      64512,      64512,     1024,     4096, 0xb400f0b7
-0,      65536,      65536,     1024,     4096, 0x4c91e10b
-0,      66560,      66560,     1024,     4096, 0x3f41fe61
-0,      67584,      67584,     1024,     4096, 0x74fff9b9
-0,      68608,      68608,     1024,     4096, 0x18bbf5a5
-0,      69632,      69632,     1024,     4096, 0x51a70180
-0,      70656,      70656,     1024,     4096, 0x29f3e8c5
-0,      71680,      71680,     1024,     4096, 0x562efdb9
-0,      72704,      72704,     1024,     4096, 0xa2e006e0
-0,      73728,      73728,     1024,     4096, 0xa1bff541
-0,      74752,      74752,     1024,     4096, 0xd95b0012
-0,      75776,      75776,     1024,     4096, 0xd93e0912
-0,      76800,      76800,     1024,     4096, 0x6c2a1d88
-0,      77824,      77824,     1024,     4096, 0xb4d8fb8b
-0,      78848,      78848,     1024,     4096, 0xf14b0492
-0,      79872,      79872,     1024,     4096, 0x1c7be7b7
-0,      80896,      80896,     1024,     4096, 0xc181f877
-0,      81920,      81920,     1024,     4096, 0xba132d14
-0,      82944,      82944,     1024,     4096, 0xabae2d9a
-0,      83968,      83968,     1024,     4096, 0xb07fff15
-0,      84992,      84992,     1024,     4096, 0xa0c1ff2d
-0,      86016,      86016,     1024,     4096, 0x19f7fd1f
-0,      87040,      87040,     1024,     4096, 0xcb6d11a4
-0,      88064,      88064,     1024,     4096, 0x166ac8b7
-0,      89088,      89088,     1024,     4096, 0xe68dda8f
-0,      90112,      90112,     1024,     4096, 0xe457b505
-0,      91136,      91136,     1024,     4096, 0xda25a409
-0,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-0,      93184,      93184,     1024,     4096, 0xa61eb13d
-0,      94208,      94208,     1024,     4096, 0xac93b66f
-0,      95232,      95232,     1024,     4096, 0xc7aeb33f
-0,      96256,      96256,     1024,     4096, 0x52cccfb5
-0,      97280,      97280,     1024,     4096, 0x4e4cf487
-0,      98304,      98304,     1024,     4096, 0x19c07f35
-0,      99328,      99328,     1024,     4096, 0x63ecd34f
-0,     100352,     100352,     1024,     4096, 0x122aec53
-0,     101376,     101376,     1024,     4096, 0x6581c0ad
-0,     102400,     102400,     1024,     4096, 0x640edb15
-0,     103424,     103424,     1024,     4096, 0x5d66c66f
-0,     104448,     104448,     1024,     4096, 0x069e9d35
-0,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-0,     106496,     106496,     1024,     4096, 0x72468667
-0,     107520,     107520,     1024,     4096, 0x6e6dd02b
-0,     108544,     108544,     1024,     4096, 0x93edce33
-0,     109568,     109568,     1024,     4096, 0xcdfbd519
-0,     110592,     110592,     1024,     4096, 0x8463f2bb
-0,     111616,     111616,     1024,     4096, 0x5ca6f869
-0,     112640,     112640,     1024,     4096, 0x099a0398
-0,     113664,     113664,     1024,     4096, 0xa7fa10f0
-0,     114688,     114688,     1024,     4096, 0x28caddd3
-0,     115712,     115712,     1024,     4096, 0x4852ef8b
-0,     116736,     116736,     1024,     4096, 0x0250ee7b
-0,     117760,     117760,     1024,     4096, 0x9583da21
-0,     118784,     118784,     1024,     4096, 0x7365fb33
-0,     119808,     119808,     1024,     4096, 0x28c82066
-0,     120832,     120832,     1024,     4096, 0x94650be4
-0,     121856,     121856,     1024,     4096, 0xeb21f8eb
-0,     122880,     122880,     1024,     4096, 0xcd88f455
-0,     123904,     123904,     1024,     4096, 0x66a9efaf
-0,     124928,     124928,     1024,     4096, 0x5500c6ed
-0,     125952,     125952,     1024,     4096, 0x0ee0c62d
-0,     126976,     126976,     1024,     4096, 0x34d30762
-0,     128000,     128000,     1024,     4096, 0x8c0dec9f
-0,     129024,     129024,     1024,     4096, 0x790011d8
-0,     130048,     130048,     1024,     4096, 0xb76a1136
-0,     131072,     131072,     1024,     4096, 0x7dddfea7
-0,     132096,     132096,     1024,     4096, 0xdfa3ed49
-0,     133120,     133120,     1024,     4096, 0xc129f54e
-0,     134144,     134144,     1024,     4096, 0x9a86f077
-0,     135168,     135168,     1024,     4096, 0xc9eef209
-0,     136192,     136192,     1024,     4096, 0x72d4029b
-0,     137216,     137216,     1024,     4096, 0x8ec20590
-0,     138240,     138240,     1024,     4096, 0xd48f18ed
-0,     139264,     139264,     1024,     4096, 0xd807eadc
-0,     140288,     140288,     1024,     4096, 0x1e2bea09
-0,     141312,     141312,     1024,     4096, 0x937af12e
-0,     142336,     142336,     1024,     4096, 0xdedbf303
-0,     143360,     143360,     1024,     4096, 0xdc75df88
-0,     144384,     144384,     1024,     4096, 0x1845ffd6
-0,     145408,     145408,     1024,     4096, 0x20e8150c
-0,     146432,     146432,     1024,     4096, 0x5ea7eeef
-0,     147456,     147456,     1024,     4096, 0x4c7efa21
-0,     148480,     148480,     1024,     4096, 0x8b97e30e
-0,     149504,     149504,     1024,     4096, 0xe5040228
-0,     150528,     150528,     1024,     4096, 0x6283f78c
-0,     151552,     151552,     1024,     4096, 0xe7100140
-0,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-0,     153600,     153600,     1024,     4096, 0x5f0e1563
-0,     154624,     154624,     1024,     4096, 0x510bf18e
-0,     155648,     155648,     1024,     4096, 0x5f4fe425
-0,     156672,     156672,     1024,     4096, 0x507af3c0
-0,     157696,     157696,     1024,     4096, 0xbf14ddc6
-0,     158720,     158720,     1024,     4096, 0x1871ed69
-0,     159744,     159744,     1024,     4096, 0xc349ef9f
-0,     160768,     160768,     1024,     4096, 0x4e2c1834
-0,     161792,     161792,     1024,     4096, 0x2383fe04
-0,     162816,     162816,     1024,     4096, 0x6626f415
-0,     163840,     163840,     1024,     4096, 0x283be379
-0,     164864,     164864,     1024,     4096, 0xc76c0ceb
-0,     165888,     165888,     1024,     4096, 0xa0b8040f
-0,     166912,     166912,     1024,     4096, 0x2535eb6d
-0,     167936,     167936,     1024,     4096, 0xeb180bb5
-0,     168960,     168960,     1024,     4096, 0xbc5cf059
-0,     169984,     169984,     1024,     4096, 0x1862f1ac
-0,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-0,     172032,     172032,     1024,     4096, 0xbb9ae754
-0,     173056,     173056,     1024,     4096, 0x716debb5
-0,     174080,     174080,     1024,     4096, 0xff3aff2a
-0,     175104,     175104,     1024,     4096, 0x755dfa5c
-0,     176128,     176128,     1024,     4096, 0x3b830605
-0,     177152,     177152,     1024,     4096, 0x0030dc9e
-0,     178176,     178176,     1024,     4096, 0xb017fd54
-0,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-0,     180224,     180224,     1024,     4096, 0x7887e599
-0,     181248,     181248,     1024,     4096, 0xb730e72f
-0,     182272,     182272,     1024,     4096, 0x6bb3fae4
-0,     183296,     183296,     1024,     4096, 0xcc08fc36
-0,     184320,     184320,     1024,     4096, 0x5afd9ec2
-0,     185344,     185344,     1024,     4096, 0xa1d3e83d
-0,     186368,     186368,     1024,     4096, 0x7f96013c
-0,     187392,     187392,     1024,     4096, 0x7a0afe31
-0,     188416,     188416,     1024,     4096, 0xa37d1701
-0,     189440,     189440,     1024,     4096, 0x4615ebc2
-0,     190464,     190464,     1024,     4096, 0x217005c1
-0,     191488,     191488,     1024,     4096, 0x1755f789
-0,     192512,     192512,     1024,     4096, 0x83e6db65
-0,     193536,     193536,     1024,     4096, 0x92ab1447
-0,     194560,     194560,     1024,     4096, 0xedbdf383
-0,     195584,     195584,     1024,     4096, 0x4316f6a9
-0,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-0,     197632,     197632,     1024,     4096, 0xdfd809b7
-0,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-0,     199680,     199680,     1024,     4096, 0xd366f4a1
-0,     200704,     200704,     1024,     4096, 0x6a2f86e0
-0,     201728,     201728,     1024,     4096, 0xf51f08a9
-0,     202752,     202752,     1024,     4096, 0x05edefa8
-0,     203776,     203776,     1024,     4096, 0x255df2a6
-0,     204800,     204800,     1024,     4096, 0xe881d9e4
-0,     205824,     205824,     1024,     4096, 0x50380523
-0,     206848,     206848,     1024,     4096, 0x8b93eb26
-0,     207872,     207872,     1024,     4096, 0x759cf94c
-0,     208896,     208896,     1024,     4096, 0x8474f591
-0,     209920,     209920,     1024,     4096, 0x0030dc9e
-0,     210944,     210944,     1024,     4096, 0xb017fd54
-0,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-0,     212992,     212992,     1024,     4096, 0x7887e599
-0,     214016,     214016,     1024,     4096, 0xb730e72f
-0,     215040,     215040,     1024,     4096, 0x6bb3fae4
-0,     216064,     216064,     1024,     4096, 0xcc08fc36
-0,     217088,     217088,     1024,     4096, 0x5afd9ec2
-0,     218112,     218112,     1024,     4096, 0xa1d3e83d
-0,     219136,     219136,     1024,     4096, 0x7f96013c
-0,     220160,     220160,     1024,     4096, 0x7a0afe31
-0,     221184,     221184,     1024,     4096, 0xa37d1701
-0,     222208,     222208,     1024,     4096, 0x4615ebc2
-0,     223232,     223232,     1024,     4096, 0x217005c1
-0,     224256,     224256,     1024,     4096, 0x1755f789
-0,     225280,     225280,     1024,     4096, 0x83e6db65
-0,     226304,     226304,     1024,     4096, 0x92ab1447
-0,     227328,     227328,     1024,     4096, 0xedbdf383
-0,     228352,     228352,     1024,     4096, 0x4316f6a9
-0,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-0,     230400,     230400,     1024,     4096, 0xdfd809b7
-0,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-0,     232448,     232448,     1024,     4096, 0xd366f4a1
-0,     233472,     233472,     1024,     4096, 0x6a2f86e0
-0,     234496,     234496,     1024,     4096, 0xf51f08a9
-0,     235520,     235520,     1024,     4096, 0x05edefa8
-0,     236544,     236544,     1024,     4096, 0x255df2a6
-0,     237568,     237568,     1024,     4096, 0xe881d9e4
-0,     238592,     238592,     1024,     4096, 0x50380523
-0,     239616,     239616,     1024,     4096, 0x8b93eb26
-0,     240640,     240640,     1024,     4096, 0x759cf94c
-0,     241664,     241664,     1024,     4096, 0x8474f591
-0,     242688,     242688,     1024,     4096, 0x0030dc9e
-0,     243712,     243712,     1024,     4096, 0xb017fd54
-0,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-0,     245760,     245760,     1024,     4096, 0x7887e599
-0,     246784,     246784,     1024,     4096, 0xb730e72f
-0,     247808,     247808,     1024,     4096, 0x6bb3fae4
-0,     248832,     248832,     1024,     4096, 0xcc08fc36
-0,     249856,     249856,     1024,     4096, 0x5afd9ec2
-0,     250880,     250880,     1024,     4096, 0xa1d3e83d
-0,     251904,     251904,     1024,     4096, 0x7f96013c
-0,     252928,     252928,     1024,     4096, 0x7a0afe31
-0,     253952,     253952,     1024,     4096, 0xa37d1701
-0,     254976,     254976,     1024,     4096, 0x4615ebc2
-0,     256000,     256000,     1024,     4096, 0x217005c1
-0,     257024,     257024,     1024,     4096, 0x1755f789
-0,     258048,     258048,     1024,     4096, 0x83e6db65
-0,     259072,     259072,     1024,     4096, 0x92ab1447
-0,     260096,     260096,     1024,     4096, 0xedbdf383
-0,     261120,     261120,     1024,     4096, 0x4316f6a9
-0,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-0,     263168,     263168,     1024,     4096, 0xdfd809b7
-0,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x02ebe66b
+0,       4096,       4096,     4096,    16384, 0x35bfe081
+0,       8192,       8192,     4096,    16384, 0x3f90e0a9
+0,      12288,      12288,     4096,    16384, 0xd389dc43
+0,      16384,      16384,     4096,    16384, 0x9d5add49
+0,      20480,      20480,     4096,    16384, 0x378ee333
+0,      24576,      24576,     4096,    16384, 0xabf6df0f
+0,      28672,      28672,     4096,    16384, 0xedefe76f
+0,      32768,      32768,     4096,    16384, 0x02ebe66b
+0,      36864,      36864,     4096,    16384, 0x35bfe081
+0,      40960,      40960,     4096,    16384, 0xdbc2b3b9
+0,      45056,      45056,     4096,    16384, 0xe92bd835
+0,      49152,      49152,     4096,    16384, 0x1126dca3
+0,      53248,      53248,     4096,    16384, 0x9647edcf
+0,      57344,      57344,     4096,    16384, 0x5cc345aa
+0,      61440,      61440,     4096,    16384, 0x19d7bd51
+0,      65536,      65536,     4096,    16384, 0x19eccef7
+0,      69632,      69632,     4096,    16384, 0x4b68eeed
+0,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+0,      77824,      77824,     4096,    16384, 0xe9b2e069
+0,      81920,      81920,     4096,    16384, 0xcaa5590e
+0,      86016,      86016,     4096,    16384, 0x47d0b227
+0,      90112,      90112,     4096,    16384, 0x446ba7a4
+0,      94208,      94208,     4096,    16384, 0x299b2e17
+0,      98304,      98304,     4096,    16384, 0xc51affa2
+0,     102400,     102400,     4096,    16384, 0xb4970fcf
+0,     106496,     106496,     4096,    16384, 0xe48af9fc
+0,     110592,     110592,     4096,    16384, 0xc2beffbb
+0,     114688,     114688,     4096,    16384, 0xb9d99627
+0,     118784,     118784,     4096,    16384, 0xb65a2086
+0,     122880,     122880,     4096,    16384, 0x6386714b
+0,     126976,     126976,     4096,    16384, 0x92a3171e
+0,     131072,     131072,     4096,    16384, 0x78bad1e2
+0,     135168,     135168,     4096,    16384, 0x63301330
+0,     139264,     139264,     4096,    16384, 0xd663b943
+0,     143360,     143360,     4096,    16384, 0xdcafe377
+0,     147456,     147456,     4096,    16384, 0xfb2cd701
+0,     151552,     151552,     4096,    16384, 0x91c30201
+0,     155648,     155648,     4096,    16384, 0xf23da341
+0,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+0,     163840,     163840,     4096,    16384, 0x519bdfef
+0,     167936,     167936,     4096,    16384, 0xf2fcd803
+0,     172032,     172032,     4096,    16384, 0xd5ceccbc
+0,     176128,     176128,     4096,    16384, 0xd48ada43
+0,     180224,     180224,     4096,    16384, 0x5a4ac40f
+0,     184320,     184320,     4096,    16384, 0x29db868a
+0,     188416,     188416,     4096,    16384, 0xa2a0002b
+0,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+0,     196608,     196608,     4096,    16384, 0x338dffa4
+0,     200704,     200704,     4096,    16384, 0x970b71f5
+0,     204800,     204800,     4096,    16384, 0x0521c397
+0,     208896,     208896,     4096,    16384, 0xff5ec9de
+0,     212992,     212992,     4096,    16384, 0x5a4ac40f
+0,     217088,     217088,     4096,    16384, 0x29db868a
+0,     221184,     221184,     4096,    16384, 0xa2a0002b
+0,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+0,     229376,     229376,     4096,    16384, 0x338dffa4
+0,     233472,     233472,     4096,    16384, 0x970b71f5
+0,     237568,     237568,     4096,    16384, 0x0521c397
+0,     241664,     241664,     4096,    16384, 0xff5ec9de
+0,     245760,     245760,     4096,    16384, 0x5a4ac40f
+0,     249856,     249856,     4096,    16384, 0x29db868a
+0,     253952,     253952,     4096,    16384, 0xa2a0002b
+0,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+0,     262144,     262144,     2456,     9824, 0xb3f84641
 0,     264600,     264600,       10,       40, 0x00000000
diff --git a/tests/ref/fate/filter-asegment-samples-absolute b/tests/ref/fate/filter-asegment-samples-absolute
index 69d4013f5f..4090459aa7 100644
--- a/tests/ref/fate/filter-asegment-samples-absolute
+++ b/tests/ref/fate/filter-asegment-samples-absolute
@@ -13,262 +13,68 @@ 
 #codec_id 2: pcm_s16le
 #sample_rate 2: 44100
 #channel_layout_name 2: stereo
-0,          0,          0,     1024,     4096, 0x29e3eecf
-0,       1024,       1024,     1024,     4096, 0x18390b96
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
-0,       4096,       4096,     1024,     4096, 0x2379ed91
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
-0,       8192,       8192,     1024,     4096, 0x1840f25b
-0,       9216,       9216,      784,     3136, 0x048e2dc2
-1,      10000,      10000,     1264,     5056, 0x7265bced
-1,      11264,      11264,     1024,     4096, 0x3e050390
-1,      12288,      12288,     1024,     4096, 0xb30e0090
-1,      13312,      13312,     1024,     4096, 0x26b8f75b
-1,      14336,      14336,     1024,     4096, 0xd706e311
-1,      15360,      15360,     1024,     4096, 0x0c480138
-1,      16384,      16384,     1024,     4096, 0x6c9a0216
-1,      17408,      17408,     1024,     4096, 0x7abce54f
-1,      18432,      18432,     1024,     4096, 0xda45f63f
-1,      19456,      19456,      544,     2176, 0x3b54483e
-2,      20000,      20000,     1504,     6016, 0xba58ba9b
-2,      21504,      21504,     1024,     4096, 0xa61af077
-2,      22528,      22528,     1024,     4096, 0x84c4fc07
-2,      23552,      23552,     1024,     4096, 0x4a35f345
-2,      24576,      24576,     1024,     4096, 0xbb65fa81
-2,      25600,      25600,     1024,     4096, 0xf6c7f5e5
-2,      26624,      26624,     1024,     4096, 0xd3270138
-2,      27648,      27648,     1024,     4096, 0x4782ed53
-2,      28672,      28672,     1024,     4096, 0xe308f055
-2,      29696,      29696,     1024,     4096, 0x7d33f97d
-2,      30720,      30720,     1024,     4096, 0xb8b00dd4
-2,      31744,      31744,     1024,     4096, 0x7ff7efab
-2,      32768,      32768,     1024,     4096, 0x29e3eecf
-2,      33792,      33792,     1024,     4096, 0x18390b96
-2,      34816,      34816,     1024,     4096, 0xc477fa99
-2,      35840,      35840,     1024,     4096, 0x3bc0f14f
-2,      36864,      36864,     1024,     4096, 0x2379ed91
-2,      37888,      37888,     1024,     4096, 0xfd6a0070
-2,      38912,      38912,     1024,     4096, 0x0b01f4cf
-2,      39936,      39936,     1024,     4096, 0x6716fd93
-2,      40960,      40960,     1024,     4096, 0x1840f25b
-2,      41984,      41984,     1024,     4096, 0x9c1ffaf1
-2,      43008,      43008,     1024,     4096, 0xcbedefaf
-2,      44032,      44032,     1024,     4096, 0xda37d691
-2,      45056,      45056,     1024,     4096, 0x7193ecbf
-2,      46080,      46080,     1024,     4096, 0x6e4a0a36
-2,      47104,      47104,     1024,     4096, 0x61cfe70d
-2,      48128,      48128,     1024,     4096, 0xc19ffa15
-2,      49152,      49152,     1024,     4096, 0x7b32fb3d
-2,      50176,      50176,     1024,     4096, 0xdacefd3f
-2,      51200,      51200,     1024,     4096, 0x3964f64d
-2,      52224,      52224,     1024,     4096, 0xdcf2edad
-2,      53248,      53248,     1024,     4096, 0x1367f69b
-2,      54272,      54272,     1024,     4096, 0xd4c6f7b9
-2,      55296,      55296,     1024,     4096, 0x9e041186
-2,      56320,      56320,     1024,     4096, 0xe939edd7
-2,      57344,      57344,     1024,     4096, 0xa932336a
-2,      58368,      58368,     1024,     4096, 0x5f510e28
-2,      59392,      59392,     1024,     4096, 0x4b8501c8
-2,      60416,      60416,     1024,     4096, 0xfbc30250
-2,      61440,      61440,     1024,     4096, 0x5e7fd855
-2,      62464,      62464,     1024,     4096, 0x8ef1f265
-2,      63488,      63488,     1024,     4096, 0x9f7601c2
-2,      64512,      64512,     1024,     4096, 0xb400f0b7
-2,      65536,      65536,     1024,     4096, 0x4c91e10b
-2,      66560,      66560,     1024,     4096, 0x3f41fe61
-2,      67584,      67584,     1024,     4096, 0x74fff9b9
-2,      68608,      68608,     1024,     4096, 0x18bbf5a5
-2,      69632,      69632,     1024,     4096, 0x51a70180
-2,      70656,      70656,     1024,     4096, 0x29f3e8c5
-2,      71680,      71680,     1024,     4096, 0x562efdb9
-2,      72704,      72704,     1024,     4096, 0xa2e006e0
-2,      73728,      73728,     1024,     4096, 0xa1bff541
-2,      74752,      74752,     1024,     4096, 0xd95b0012
-2,      75776,      75776,     1024,     4096, 0xd93e0912
-2,      76800,      76800,     1024,     4096, 0x6c2a1d88
-2,      77824,      77824,     1024,     4096, 0xb4d8fb8b
-2,      78848,      78848,     1024,     4096, 0xf14b0492
-2,      79872,      79872,     1024,     4096, 0x1c7be7b7
-2,      80896,      80896,     1024,     4096, 0xc181f877
-2,      81920,      81920,     1024,     4096, 0xba132d14
-2,      82944,      82944,     1024,     4096, 0xabae2d9a
-2,      83968,      83968,     1024,     4096, 0xb07fff15
-2,      84992,      84992,     1024,     4096, 0xa0c1ff2d
-2,      86016,      86016,     1024,     4096, 0x19f7fd1f
-2,      87040,      87040,     1024,     4096, 0xcb6d11a4
-2,      88064,      88064,     1024,     4096, 0x166ac8b7
-2,      89088,      89088,     1024,     4096, 0xe68dda8f
-2,      90112,      90112,     1024,     4096, 0xe457b505
-2,      91136,      91136,     1024,     4096, 0xda25a409
-2,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-2,      93184,      93184,     1024,     4096, 0xa61eb13d
-2,      94208,      94208,     1024,     4096, 0xac93b66f
-2,      95232,      95232,     1024,     4096, 0xc7aeb33f
-2,      96256,      96256,     1024,     4096, 0x52cccfb5
-2,      97280,      97280,     1024,     4096, 0x4e4cf487
-2,      98304,      98304,     1024,     4096, 0x19c07f35
-2,      99328,      99328,     1024,     4096, 0x63ecd34f
-2,     100352,     100352,     1024,     4096, 0x122aec53
-2,     101376,     101376,     1024,     4096, 0x6581c0ad
-2,     102400,     102400,     1024,     4096, 0x640edb15
-2,     103424,     103424,     1024,     4096, 0x5d66c66f
-2,     104448,     104448,     1024,     4096, 0x069e9d35
-2,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-2,     106496,     106496,     1024,     4096, 0x72468667
-2,     107520,     107520,     1024,     4096, 0x6e6dd02b
-2,     108544,     108544,     1024,     4096, 0x93edce33
-2,     109568,     109568,     1024,     4096, 0xcdfbd519
-2,     110592,     110592,     1024,     4096, 0x8463f2bb
-2,     111616,     111616,     1024,     4096, 0x5ca6f869
-2,     112640,     112640,     1024,     4096, 0x099a0398
-2,     113664,     113664,     1024,     4096, 0xa7fa10f0
-2,     114688,     114688,     1024,     4096, 0x28caddd3
-2,     115712,     115712,     1024,     4096, 0x4852ef8b
-2,     116736,     116736,     1024,     4096, 0x0250ee7b
-2,     117760,     117760,     1024,     4096, 0x9583da21
-2,     118784,     118784,     1024,     4096, 0x7365fb33
-2,     119808,     119808,     1024,     4096, 0x28c82066
-2,     120832,     120832,     1024,     4096, 0x94650be4
-2,     121856,     121856,     1024,     4096, 0xeb21f8eb
-2,     122880,     122880,     1024,     4096, 0xcd88f455
-2,     123904,     123904,     1024,     4096, 0x66a9efaf
-2,     124928,     124928,     1024,     4096, 0x5500c6ed
-2,     125952,     125952,     1024,     4096, 0x0ee0c62d
-2,     126976,     126976,     1024,     4096, 0x34d30762
-2,     128000,     128000,     1024,     4096, 0x8c0dec9f
-2,     129024,     129024,     1024,     4096, 0x790011d8
-2,     130048,     130048,     1024,     4096, 0xb76a1136
-2,     131072,     131072,     1024,     4096, 0x7dddfea7
-2,     132096,     132096,     1024,     4096, 0xdfa3ed49
-2,     133120,     133120,     1024,     4096, 0xc129f54e
-2,     134144,     134144,     1024,     4096, 0x9a86f077
-2,     135168,     135168,     1024,     4096, 0xc9eef209
-2,     136192,     136192,     1024,     4096, 0x72d4029b
-2,     137216,     137216,     1024,     4096, 0x8ec20590
-2,     138240,     138240,     1024,     4096, 0xd48f18ed
-2,     139264,     139264,     1024,     4096, 0xd807eadc
-2,     140288,     140288,     1024,     4096, 0x1e2bea09
-2,     141312,     141312,     1024,     4096, 0x937af12e
-2,     142336,     142336,     1024,     4096, 0xdedbf303
-2,     143360,     143360,     1024,     4096, 0xdc75df88
-2,     144384,     144384,     1024,     4096, 0x1845ffd6
-2,     145408,     145408,     1024,     4096, 0x20e8150c
-2,     146432,     146432,     1024,     4096, 0x5ea7eeef
-2,     147456,     147456,     1024,     4096, 0x4c7efa21
-2,     148480,     148480,     1024,     4096, 0x8b97e30e
-2,     149504,     149504,     1024,     4096, 0xe5040228
-2,     150528,     150528,     1024,     4096, 0x6283f78c
-2,     151552,     151552,     1024,     4096, 0xe7100140
-2,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-2,     153600,     153600,     1024,     4096, 0x5f0e1563
-2,     154624,     154624,     1024,     4096, 0x510bf18e
-2,     155648,     155648,     1024,     4096, 0x5f4fe425
-2,     156672,     156672,     1024,     4096, 0x507af3c0
-2,     157696,     157696,     1024,     4096, 0xbf14ddc6
-2,     158720,     158720,     1024,     4096, 0x1871ed69
-2,     159744,     159744,     1024,     4096, 0xc349ef9f
-2,     160768,     160768,     1024,     4096, 0x4e2c1834
-2,     161792,     161792,     1024,     4096, 0x2383fe04
-2,     162816,     162816,     1024,     4096, 0x6626f415
-2,     163840,     163840,     1024,     4096, 0x283be379
-2,     164864,     164864,     1024,     4096, 0xc76c0ceb
-2,     165888,     165888,     1024,     4096, 0xa0b8040f
-2,     166912,     166912,     1024,     4096, 0x2535eb6d
-2,     167936,     167936,     1024,     4096, 0xeb180bb5
-2,     168960,     168960,     1024,     4096, 0xbc5cf059
-2,     169984,     169984,     1024,     4096, 0x1862f1ac
-2,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-2,     172032,     172032,     1024,     4096, 0xbb9ae754
-2,     173056,     173056,     1024,     4096, 0x716debb5
-2,     174080,     174080,     1024,     4096, 0xff3aff2a
-2,     175104,     175104,     1024,     4096, 0x755dfa5c
-2,     176128,     176128,     1024,     4096, 0x3b830605
-2,     177152,     177152,     1024,     4096, 0x0030dc9e
-2,     178176,     178176,     1024,     4096, 0xb017fd54
-2,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-2,     180224,     180224,     1024,     4096, 0x7887e599
-2,     181248,     181248,     1024,     4096, 0xb730e72f
-2,     182272,     182272,     1024,     4096, 0x6bb3fae4
-2,     183296,     183296,     1024,     4096, 0xcc08fc36
-2,     184320,     184320,     1024,     4096, 0x5afd9ec2
-2,     185344,     185344,     1024,     4096, 0xa1d3e83d
-2,     186368,     186368,     1024,     4096, 0x7f96013c
-2,     187392,     187392,     1024,     4096, 0x7a0afe31
-2,     188416,     188416,     1024,     4096, 0xa37d1701
-2,     189440,     189440,     1024,     4096, 0x4615ebc2
-2,     190464,     190464,     1024,     4096, 0x217005c1
-2,     191488,     191488,     1024,     4096, 0x1755f789
-2,     192512,     192512,     1024,     4096, 0x83e6db65
-2,     193536,     193536,     1024,     4096, 0x92ab1447
-2,     194560,     194560,     1024,     4096, 0xedbdf383
-2,     195584,     195584,     1024,     4096, 0x4316f6a9
-2,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-2,     197632,     197632,     1024,     4096, 0xdfd809b7
-2,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-2,     199680,     199680,     1024,     4096, 0xd366f4a1
-2,     200704,     200704,     1024,     4096, 0x6a2f86e0
-2,     201728,     201728,     1024,     4096, 0xf51f08a9
-2,     202752,     202752,     1024,     4096, 0x05edefa8
-2,     203776,     203776,     1024,     4096, 0x255df2a6
-2,     204800,     204800,     1024,     4096, 0xe881d9e4
-2,     205824,     205824,     1024,     4096, 0x50380523
-2,     206848,     206848,     1024,     4096, 0x8b93eb26
-2,     207872,     207872,     1024,     4096, 0x759cf94c
-2,     208896,     208896,     1024,     4096, 0x8474f591
-2,     209920,     209920,     1024,     4096, 0x0030dc9e
-2,     210944,     210944,     1024,     4096, 0xb017fd54
-2,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-2,     212992,     212992,     1024,     4096, 0x7887e599
-2,     214016,     214016,     1024,     4096, 0xb730e72f
-2,     215040,     215040,     1024,     4096, 0x6bb3fae4
-2,     216064,     216064,     1024,     4096, 0xcc08fc36
-2,     217088,     217088,     1024,     4096, 0x5afd9ec2
-2,     218112,     218112,     1024,     4096, 0xa1d3e83d
-2,     219136,     219136,     1024,     4096, 0x7f96013c
-2,     220160,     220160,     1024,     4096, 0x7a0afe31
-2,     221184,     221184,     1024,     4096, 0xa37d1701
-2,     222208,     222208,     1024,     4096, 0x4615ebc2
-2,     223232,     223232,     1024,     4096, 0x217005c1
-2,     224256,     224256,     1024,     4096, 0x1755f789
-2,     225280,     225280,     1024,     4096, 0x83e6db65
-2,     226304,     226304,     1024,     4096, 0x92ab1447
-2,     227328,     227328,     1024,     4096, 0xedbdf383
-2,     228352,     228352,     1024,     4096, 0x4316f6a9
-2,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-2,     230400,     230400,     1024,     4096, 0xdfd809b7
-2,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-2,     232448,     232448,     1024,     4096, 0xd366f4a1
-2,     233472,     233472,     1024,     4096, 0x6a2f86e0
-2,     234496,     234496,     1024,     4096, 0xf51f08a9
-2,     235520,     235520,     1024,     4096, 0x05edefa8
-2,     236544,     236544,     1024,     4096, 0x255df2a6
-2,     237568,     237568,     1024,     4096, 0xe881d9e4
-2,     238592,     238592,     1024,     4096, 0x50380523
-2,     239616,     239616,     1024,     4096, 0x8b93eb26
-2,     240640,     240640,     1024,     4096, 0x759cf94c
-2,     241664,     241664,     1024,     4096, 0x8474f591
-2,     242688,     242688,     1024,     4096, 0x0030dc9e
-2,     243712,     243712,     1024,     4096, 0xb017fd54
-2,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-2,     245760,     245760,     1024,     4096, 0x7887e599
-2,     246784,     246784,     1024,     4096, 0xb730e72f
-2,     247808,     247808,     1024,     4096, 0x6bb3fae4
-2,     248832,     248832,     1024,     4096, 0xcc08fc36
-2,     249856,     249856,     1024,     4096, 0x5afd9ec2
-2,     250880,     250880,     1024,     4096, 0xa1d3e83d
-2,     251904,     251904,     1024,     4096, 0x7f96013c
-2,     252928,     252928,     1024,     4096, 0x7a0afe31
-2,     253952,     253952,     1024,     4096, 0xa37d1701
-2,     254976,     254976,     1024,     4096, 0x4615ebc2
-2,     256000,     256000,     1024,     4096, 0x217005c1
-2,     257024,     257024,     1024,     4096, 0x1755f789
-2,     258048,     258048,     1024,     4096, 0x83e6db65
-2,     259072,     259072,     1024,     4096, 0x92ab1447
-2,     260096,     260096,     1024,     4096, 0xedbdf383
-2,     261120,     261120,     1024,     4096, 0x4316f6a9
-2,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-2,     263168,     263168,     1024,     4096, 0xdfd809b7
-2,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x02ebe66b
+0,       4096,       4096,     4096,    16384, 0x35bfe081
+0,       8192,       8192,     1808,     7232, 0xa585202c
+1,      10000,      10000,     6384,    25536, 0x17309ccf
+1,      16384,      16384,     3616,    14464, 0x67e82600
+2,      20000,      20000,     4576,    18304, 0x4bc89a8b
+2,      24576,      24576,     4096,    16384, 0xabf6df0f
+2,      28672,      28672,     4096,    16384, 0xedefe76f
+2,      32768,      32768,     4096,    16384, 0x02ebe66b
+2,      36864,      36864,     4096,    16384, 0x35bfe081
+2,      40960,      40960,     4096,    16384, 0xdbc2b3b9
+2,      45056,      45056,     4096,    16384, 0xe92bd835
+2,      49152,      49152,     4096,    16384, 0x1126dca3
+2,      53248,      53248,     4096,    16384, 0x9647edcf
+2,      57344,      57344,     4096,    16384, 0x5cc345aa
+2,      61440,      61440,     4096,    16384, 0x19d7bd51
+2,      65536,      65536,     4096,    16384, 0x19eccef7
+2,      69632,      69632,     4096,    16384, 0x4b68eeed
+2,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+2,      77824,      77824,     4096,    16384, 0xe9b2e069
+2,      81920,      81920,     4096,    16384, 0xcaa5590e
+2,      86016,      86016,     4096,    16384, 0x47d0b227
+2,      90112,      90112,     4096,    16384, 0x446ba7a4
+2,      94208,      94208,     4096,    16384, 0x299b2e17
+2,      98304,      98304,     4096,    16384, 0xc51affa2
+2,     102400,     102400,     4096,    16384, 0xb4970fcf
+2,     106496,     106496,     4096,    16384, 0xe48af9fc
+2,     110592,     110592,     4096,    16384, 0xc2beffbb
+2,     114688,     114688,     4096,    16384, 0xb9d99627
+2,     118784,     118784,     4096,    16384, 0xb65a2086
+2,     122880,     122880,     4096,    16384, 0x6386714b
+2,     126976,     126976,     4096,    16384, 0x92a3171e
+2,     131072,     131072,     4096,    16384, 0x78bad1e2
+2,     135168,     135168,     4096,    16384, 0x63301330
+2,     139264,     139264,     4096,    16384, 0xd663b943
+2,     143360,     143360,     4096,    16384, 0xdcafe377
+2,     147456,     147456,     4096,    16384, 0xfb2cd701
+2,     151552,     151552,     4096,    16384, 0x91c30201
+2,     155648,     155648,     4096,    16384, 0xf23da341
+2,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+2,     163840,     163840,     4096,    16384, 0x519bdfef
+2,     167936,     167936,     4096,    16384, 0xf2fcd803
+2,     172032,     172032,     4096,    16384, 0xd5ceccbc
+2,     176128,     176128,     4096,    16384, 0xd48ada43
+2,     180224,     180224,     4096,    16384, 0x5a4ac40f
+2,     184320,     184320,     4096,    16384, 0x29db868a
+2,     188416,     188416,     4096,    16384, 0xa2a0002b
+2,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+2,     196608,     196608,     4096,    16384, 0x338dffa4
+2,     200704,     200704,     4096,    16384, 0x970b71f5
+2,     204800,     204800,     4096,    16384, 0x0521c397
+2,     208896,     208896,     4096,    16384, 0xff5ec9de
+2,     212992,     212992,     4096,    16384, 0x5a4ac40f
+2,     217088,     217088,     4096,    16384, 0x29db868a
+2,     221184,     221184,     4096,    16384, 0xa2a0002b
+2,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+2,     229376,     229376,     4096,    16384, 0x338dffa4
+2,     233472,     233472,     4096,    16384, 0x970b71f5
+2,     237568,     237568,     4096,    16384, 0x0521c397
+2,     241664,     241664,     4096,    16384, 0xff5ec9de
+2,     245760,     245760,     4096,    16384, 0x5a4ac40f
+2,     249856,     249856,     4096,    16384, 0x29db868a
+2,     253952,     253952,     4096,    16384, 0xa2a0002b
+2,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+2,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-asegment-samples-relative b/tests/ref/fate/filter-asegment-samples-relative
index 69d4013f5f..4090459aa7 100644
--- a/tests/ref/fate/filter-asegment-samples-relative
+++ b/tests/ref/fate/filter-asegment-samples-relative
@@ -13,262 +13,68 @@ 
 #codec_id 2: pcm_s16le
 #sample_rate 2: 44100
 #channel_layout_name 2: stereo
-0,          0,          0,     1024,     4096, 0x29e3eecf
-0,       1024,       1024,     1024,     4096, 0x18390b96
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
-0,       4096,       4096,     1024,     4096, 0x2379ed91
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
-0,       8192,       8192,     1024,     4096, 0x1840f25b
-0,       9216,       9216,      784,     3136, 0x048e2dc2
-1,      10000,      10000,     1264,     5056, 0x7265bced
-1,      11264,      11264,     1024,     4096, 0x3e050390
-1,      12288,      12288,     1024,     4096, 0xb30e0090
-1,      13312,      13312,     1024,     4096, 0x26b8f75b
-1,      14336,      14336,     1024,     4096, 0xd706e311
-1,      15360,      15360,     1024,     4096, 0x0c480138
-1,      16384,      16384,     1024,     4096, 0x6c9a0216
-1,      17408,      17408,     1024,     4096, 0x7abce54f
-1,      18432,      18432,     1024,     4096, 0xda45f63f
-1,      19456,      19456,      544,     2176, 0x3b54483e
-2,      20000,      20000,     1504,     6016, 0xba58ba9b
-2,      21504,      21504,     1024,     4096, 0xa61af077
-2,      22528,      22528,     1024,     4096, 0x84c4fc07
-2,      23552,      23552,     1024,     4096, 0x4a35f345
-2,      24576,      24576,     1024,     4096, 0xbb65fa81
-2,      25600,      25600,     1024,     4096, 0xf6c7f5e5
-2,      26624,      26624,     1024,     4096, 0xd3270138
-2,      27648,      27648,     1024,     4096, 0x4782ed53
-2,      28672,      28672,     1024,     4096, 0xe308f055
-2,      29696,      29696,     1024,     4096, 0x7d33f97d
-2,      30720,      30720,     1024,     4096, 0xb8b00dd4
-2,      31744,      31744,     1024,     4096, 0x7ff7efab
-2,      32768,      32768,     1024,     4096, 0x29e3eecf
-2,      33792,      33792,     1024,     4096, 0x18390b96
-2,      34816,      34816,     1024,     4096, 0xc477fa99
-2,      35840,      35840,     1024,     4096, 0x3bc0f14f
-2,      36864,      36864,     1024,     4096, 0x2379ed91
-2,      37888,      37888,     1024,     4096, 0xfd6a0070
-2,      38912,      38912,     1024,     4096, 0x0b01f4cf
-2,      39936,      39936,     1024,     4096, 0x6716fd93
-2,      40960,      40960,     1024,     4096, 0x1840f25b
-2,      41984,      41984,     1024,     4096, 0x9c1ffaf1
-2,      43008,      43008,     1024,     4096, 0xcbedefaf
-2,      44032,      44032,     1024,     4096, 0xda37d691
-2,      45056,      45056,     1024,     4096, 0x7193ecbf
-2,      46080,      46080,     1024,     4096, 0x6e4a0a36
-2,      47104,      47104,     1024,     4096, 0x61cfe70d
-2,      48128,      48128,     1024,     4096, 0xc19ffa15
-2,      49152,      49152,     1024,     4096, 0x7b32fb3d
-2,      50176,      50176,     1024,     4096, 0xdacefd3f
-2,      51200,      51200,     1024,     4096, 0x3964f64d
-2,      52224,      52224,     1024,     4096, 0xdcf2edad
-2,      53248,      53248,     1024,     4096, 0x1367f69b
-2,      54272,      54272,     1024,     4096, 0xd4c6f7b9
-2,      55296,      55296,     1024,     4096, 0x9e041186
-2,      56320,      56320,     1024,     4096, 0xe939edd7
-2,      57344,      57344,     1024,     4096, 0xa932336a
-2,      58368,      58368,     1024,     4096, 0x5f510e28
-2,      59392,      59392,     1024,     4096, 0x4b8501c8
-2,      60416,      60416,     1024,     4096, 0xfbc30250
-2,      61440,      61440,     1024,     4096, 0x5e7fd855
-2,      62464,      62464,     1024,     4096, 0x8ef1f265
-2,      63488,      63488,     1024,     4096, 0x9f7601c2
-2,      64512,      64512,     1024,     4096, 0xb400f0b7
-2,      65536,      65536,     1024,     4096, 0x4c91e10b
-2,      66560,      66560,     1024,     4096, 0x3f41fe61
-2,      67584,      67584,     1024,     4096, 0x74fff9b9
-2,      68608,      68608,     1024,     4096, 0x18bbf5a5
-2,      69632,      69632,     1024,     4096, 0x51a70180
-2,      70656,      70656,     1024,     4096, 0x29f3e8c5
-2,      71680,      71680,     1024,     4096, 0x562efdb9
-2,      72704,      72704,     1024,     4096, 0xa2e006e0
-2,      73728,      73728,     1024,     4096, 0xa1bff541
-2,      74752,      74752,     1024,     4096, 0xd95b0012
-2,      75776,      75776,     1024,     4096, 0xd93e0912
-2,      76800,      76800,     1024,     4096, 0x6c2a1d88
-2,      77824,      77824,     1024,     4096, 0xb4d8fb8b
-2,      78848,      78848,     1024,     4096, 0xf14b0492
-2,      79872,      79872,     1024,     4096, 0x1c7be7b7
-2,      80896,      80896,     1024,     4096, 0xc181f877
-2,      81920,      81920,     1024,     4096, 0xba132d14
-2,      82944,      82944,     1024,     4096, 0xabae2d9a
-2,      83968,      83968,     1024,     4096, 0xb07fff15
-2,      84992,      84992,     1024,     4096, 0xa0c1ff2d
-2,      86016,      86016,     1024,     4096, 0x19f7fd1f
-2,      87040,      87040,     1024,     4096, 0xcb6d11a4
-2,      88064,      88064,     1024,     4096, 0x166ac8b7
-2,      89088,      89088,     1024,     4096, 0xe68dda8f
-2,      90112,      90112,     1024,     4096, 0xe457b505
-2,      91136,      91136,     1024,     4096, 0xda25a409
-2,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-2,      93184,      93184,     1024,     4096, 0xa61eb13d
-2,      94208,      94208,     1024,     4096, 0xac93b66f
-2,      95232,      95232,     1024,     4096, 0xc7aeb33f
-2,      96256,      96256,     1024,     4096, 0x52cccfb5
-2,      97280,      97280,     1024,     4096, 0x4e4cf487
-2,      98304,      98304,     1024,     4096, 0x19c07f35
-2,      99328,      99328,     1024,     4096, 0x63ecd34f
-2,     100352,     100352,     1024,     4096, 0x122aec53
-2,     101376,     101376,     1024,     4096, 0x6581c0ad
-2,     102400,     102400,     1024,     4096, 0x640edb15
-2,     103424,     103424,     1024,     4096, 0x5d66c66f
-2,     104448,     104448,     1024,     4096, 0x069e9d35
-2,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-2,     106496,     106496,     1024,     4096, 0x72468667
-2,     107520,     107520,     1024,     4096, 0x6e6dd02b
-2,     108544,     108544,     1024,     4096, 0x93edce33
-2,     109568,     109568,     1024,     4096, 0xcdfbd519
-2,     110592,     110592,     1024,     4096, 0x8463f2bb
-2,     111616,     111616,     1024,     4096, 0x5ca6f869
-2,     112640,     112640,     1024,     4096, 0x099a0398
-2,     113664,     113664,     1024,     4096, 0xa7fa10f0
-2,     114688,     114688,     1024,     4096, 0x28caddd3
-2,     115712,     115712,     1024,     4096, 0x4852ef8b
-2,     116736,     116736,     1024,     4096, 0x0250ee7b
-2,     117760,     117760,     1024,     4096, 0x9583da21
-2,     118784,     118784,     1024,     4096, 0x7365fb33
-2,     119808,     119808,     1024,     4096, 0x28c82066
-2,     120832,     120832,     1024,     4096, 0x94650be4
-2,     121856,     121856,     1024,     4096, 0xeb21f8eb
-2,     122880,     122880,     1024,     4096, 0xcd88f455
-2,     123904,     123904,     1024,     4096, 0x66a9efaf
-2,     124928,     124928,     1024,     4096, 0x5500c6ed
-2,     125952,     125952,     1024,     4096, 0x0ee0c62d
-2,     126976,     126976,     1024,     4096, 0x34d30762
-2,     128000,     128000,     1024,     4096, 0x8c0dec9f
-2,     129024,     129024,     1024,     4096, 0x790011d8
-2,     130048,     130048,     1024,     4096, 0xb76a1136
-2,     131072,     131072,     1024,     4096, 0x7dddfea7
-2,     132096,     132096,     1024,     4096, 0xdfa3ed49
-2,     133120,     133120,     1024,     4096, 0xc129f54e
-2,     134144,     134144,     1024,     4096, 0x9a86f077
-2,     135168,     135168,     1024,     4096, 0xc9eef209
-2,     136192,     136192,     1024,     4096, 0x72d4029b
-2,     137216,     137216,     1024,     4096, 0x8ec20590
-2,     138240,     138240,     1024,     4096, 0xd48f18ed
-2,     139264,     139264,     1024,     4096, 0xd807eadc
-2,     140288,     140288,     1024,     4096, 0x1e2bea09
-2,     141312,     141312,     1024,     4096, 0x937af12e
-2,     142336,     142336,     1024,     4096, 0xdedbf303
-2,     143360,     143360,     1024,     4096, 0xdc75df88
-2,     144384,     144384,     1024,     4096, 0x1845ffd6
-2,     145408,     145408,     1024,     4096, 0x20e8150c
-2,     146432,     146432,     1024,     4096, 0x5ea7eeef
-2,     147456,     147456,     1024,     4096, 0x4c7efa21
-2,     148480,     148480,     1024,     4096, 0x8b97e30e
-2,     149504,     149504,     1024,     4096, 0xe5040228
-2,     150528,     150528,     1024,     4096, 0x6283f78c
-2,     151552,     151552,     1024,     4096, 0xe7100140
-2,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-2,     153600,     153600,     1024,     4096, 0x5f0e1563
-2,     154624,     154624,     1024,     4096, 0x510bf18e
-2,     155648,     155648,     1024,     4096, 0x5f4fe425
-2,     156672,     156672,     1024,     4096, 0x507af3c0
-2,     157696,     157696,     1024,     4096, 0xbf14ddc6
-2,     158720,     158720,     1024,     4096, 0x1871ed69
-2,     159744,     159744,     1024,     4096, 0xc349ef9f
-2,     160768,     160768,     1024,     4096, 0x4e2c1834
-2,     161792,     161792,     1024,     4096, 0x2383fe04
-2,     162816,     162816,     1024,     4096, 0x6626f415
-2,     163840,     163840,     1024,     4096, 0x283be379
-2,     164864,     164864,     1024,     4096, 0xc76c0ceb
-2,     165888,     165888,     1024,     4096, 0xa0b8040f
-2,     166912,     166912,     1024,     4096, 0x2535eb6d
-2,     167936,     167936,     1024,     4096, 0xeb180bb5
-2,     168960,     168960,     1024,     4096, 0xbc5cf059
-2,     169984,     169984,     1024,     4096, 0x1862f1ac
-2,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-2,     172032,     172032,     1024,     4096, 0xbb9ae754
-2,     173056,     173056,     1024,     4096, 0x716debb5
-2,     174080,     174080,     1024,     4096, 0xff3aff2a
-2,     175104,     175104,     1024,     4096, 0x755dfa5c
-2,     176128,     176128,     1024,     4096, 0x3b830605
-2,     177152,     177152,     1024,     4096, 0x0030dc9e
-2,     178176,     178176,     1024,     4096, 0xb017fd54
-2,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-2,     180224,     180224,     1024,     4096, 0x7887e599
-2,     181248,     181248,     1024,     4096, 0xb730e72f
-2,     182272,     182272,     1024,     4096, 0x6bb3fae4
-2,     183296,     183296,     1024,     4096, 0xcc08fc36
-2,     184320,     184320,     1024,     4096, 0x5afd9ec2
-2,     185344,     185344,     1024,     4096, 0xa1d3e83d
-2,     186368,     186368,     1024,     4096, 0x7f96013c
-2,     187392,     187392,     1024,     4096, 0x7a0afe31
-2,     188416,     188416,     1024,     4096, 0xa37d1701
-2,     189440,     189440,     1024,     4096, 0x4615ebc2
-2,     190464,     190464,     1024,     4096, 0x217005c1
-2,     191488,     191488,     1024,     4096, 0x1755f789
-2,     192512,     192512,     1024,     4096, 0x83e6db65
-2,     193536,     193536,     1024,     4096, 0x92ab1447
-2,     194560,     194560,     1024,     4096, 0xedbdf383
-2,     195584,     195584,     1024,     4096, 0x4316f6a9
-2,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-2,     197632,     197632,     1024,     4096, 0xdfd809b7
-2,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-2,     199680,     199680,     1024,     4096, 0xd366f4a1
-2,     200704,     200704,     1024,     4096, 0x6a2f86e0
-2,     201728,     201728,     1024,     4096, 0xf51f08a9
-2,     202752,     202752,     1024,     4096, 0x05edefa8
-2,     203776,     203776,     1024,     4096, 0x255df2a6
-2,     204800,     204800,     1024,     4096, 0xe881d9e4
-2,     205824,     205824,     1024,     4096, 0x50380523
-2,     206848,     206848,     1024,     4096, 0x8b93eb26
-2,     207872,     207872,     1024,     4096, 0x759cf94c
-2,     208896,     208896,     1024,     4096, 0x8474f591
-2,     209920,     209920,     1024,     4096, 0x0030dc9e
-2,     210944,     210944,     1024,     4096, 0xb017fd54
-2,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-2,     212992,     212992,     1024,     4096, 0x7887e599
-2,     214016,     214016,     1024,     4096, 0xb730e72f
-2,     215040,     215040,     1024,     4096, 0x6bb3fae4
-2,     216064,     216064,     1024,     4096, 0xcc08fc36
-2,     217088,     217088,     1024,     4096, 0x5afd9ec2
-2,     218112,     218112,     1024,     4096, 0xa1d3e83d
-2,     219136,     219136,     1024,     4096, 0x7f96013c
-2,     220160,     220160,     1024,     4096, 0x7a0afe31
-2,     221184,     221184,     1024,     4096, 0xa37d1701
-2,     222208,     222208,     1024,     4096, 0x4615ebc2
-2,     223232,     223232,     1024,     4096, 0x217005c1
-2,     224256,     224256,     1024,     4096, 0x1755f789
-2,     225280,     225280,     1024,     4096, 0x83e6db65
-2,     226304,     226304,     1024,     4096, 0x92ab1447
-2,     227328,     227328,     1024,     4096, 0xedbdf383
-2,     228352,     228352,     1024,     4096, 0x4316f6a9
-2,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-2,     230400,     230400,     1024,     4096, 0xdfd809b7
-2,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-2,     232448,     232448,     1024,     4096, 0xd366f4a1
-2,     233472,     233472,     1024,     4096, 0x6a2f86e0
-2,     234496,     234496,     1024,     4096, 0xf51f08a9
-2,     235520,     235520,     1024,     4096, 0x05edefa8
-2,     236544,     236544,     1024,     4096, 0x255df2a6
-2,     237568,     237568,     1024,     4096, 0xe881d9e4
-2,     238592,     238592,     1024,     4096, 0x50380523
-2,     239616,     239616,     1024,     4096, 0x8b93eb26
-2,     240640,     240640,     1024,     4096, 0x759cf94c
-2,     241664,     241664,     1024,     4096, 0x8474f591
-2,     242688,     242688,     1024,     4096, 0x0030dc9e
-2,     243712,     243712,     1024,     4096, 0xb017fd54
-2,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-2,     245760,     245760,     1024,     4096, 0x7887e599
-2,     246784,     246784,     1024,     4096, 0xb730e72f
-2,     247808,     247808,     1024,     4096, 0x6bb3fae4
-2,     248832,     248832,     1024,     4096, 0xcc08fc36
-2,     249856,     249856,     1024,     4096, 0x5afd9ec2
-2,     250880,     250880,     1024,     4096, 0xa1d3e83d
-2,     251904,     251904,     1024,     4096, 0x7f96013c
-2,     252928,     252928,     1024,     4096, 0x7a0afe31
-2,     253952,     253952,     1024,     4096, 0xa37d1701
-2,     254976,     254976,     1024,     4096, 0x4615ebc2
-2,     256000,     256000,     1024,     4096, 0x217005c1
-2,     257024,     257024,     1024,     4096, 0x1755f789
-2,     258048,     258048,     1024,     4096, 0x83e6db65
-2,     259072,     259072,     1024,     4096, 0x92ab1447
-2,     260096,     260096,     1024,     4096, 0xedbdf383
-2,     261120,     261120,     1024,     4096, 0x4316f6a9
-2,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-2,     263168,     263168,     1024,     4096, 0xdfd809b7
-2,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x02ebe66b
+0,       4096,       4096,     4096,    16384, 0x35bfe081
+0,       8192,       8192,     1808,     7232, 0xa585202c
+1,      10000,      10000,     6384,    25536, 0x17309ccf
+1,      16384,      16384,     3616,    14464, 0x67e82600
+2,      20000,      20000,     4576,    18304, 0x4bc89a8b
+2,      24576,      24576,     4096,    16384, 0xabf6df0f
+2,      28672,      28672,     4096,    16384, 0xedefe76f
+2,      32768,      32768,     4096,    16384, 0x02ebe66b
+2,      36864,      36864,     4096,    16384, 0x35bfe081
+2,      40960,      40960,     4096,    16384, 0xdbc2b3b9
+2,      45056,      45056,     4096,    16384, 0xe92bd835
+2,      49152,      49152,     4096,    16384, 0x1126dca3
+2,      53248,      53248,     4096,    16384, 0x9647edcf
+2,      57344,      57344,     4096,    16384, 0x5cc345aa
+2,      61440,      61440,     4096,    16384, 0x19d7bd51
+2,      65536,      65536,     4096,    16384, 0x19eccef7
+2,      69632,      69632,     4096,    16384, 0x4b68eeed
+2,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+2,      77824,      77824,     4096,    16384, 0xe9b2e069
+2,      81920,      81920,     4096,    16384, 0xcaa5590e
+2,      86016,      86016,     4096,    16384, 0x47d0b227
+2,      90112,      90112,     4096,    16384, 0x446ba7a4
+2,      94208,      94208,     4096,    16384, 0x299b2e17
+2,      98304,      98304,     4096,    16384, 0xc51affa2
+2,     102400,     102400,     4096,    16384, 0xb4970fcf
+2,     106496,     106496,     4096,    16384, 0xe48af9fc
+2,     110592,     110592,     4096,    16384, 0xc2beffbb
+2,     114688,     114688,     4096,    16384, 0xb9d99627
+2,     118784,     118784,     4096,    16384, 0xb65a2086
+2,     122880,     122880,     4096,    16384, 0x6386714b
+2,     126976,     126976,     4096,    16384, 0x92a3171e
+2,     131072,     131072,     4096,    16384, 0x78bad1e2
+2,     135168,     135168,     4096,    16384, 0x63301330
+2,     139264,     139264,     4096,    16384, 0xd663b943
+2,     143360,     143360,     4096,    16384, 0xdcafe377
+2,     147456,     147456,     4096,    16384, 0xfb2cd701
+2,     151552,     151552,     4096,    16384, 0x91c30201
+2,     155648,     155648,     4096,    16384, 0xf23da341
+2,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+2,     163840,     163840,     4096,    16384, 0x519bdfef
+2,     167936,     167936,     4096,    16384, 0xf2fcd803
+2,     172032,     172032,     4096,    16384, 0xd5ceccbc
+2,     176128,     176128,     4096,    16384, 0xd48ada43
+2,     180224,     180224,     4096,    16384, 0x5a4ac40f
+2,     184320,     184320,     4096,    16384, 0x29db868a
+2,     188416,     188416,     4096,    16384, 0xa2a0002b
+2,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+2,     196608,     196608,     4096,    16384, 0x338dffa4
+2,     200704,     200704,     4096,    16384, 0x970b71f5
+2,     204800,     204800,     4096,    16384, 0x0521c397
+2,     208896,     208896,     4096,    16384, 0xff5ec9de
+2,     212992,     212992,     4096,    16384, 0x5a4ac40f
+2,     217088,     217088,     4096,    16384, 0x29db868a
+2,     221184,     221184,     4096,    16384, 0xa2a0002b
+2,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+2,     229376,     229376,     4096,    16384, 0x338dffa4
+2,     233472,     233472,     4096,    16384, 0x970b71f5
+2,     237568,     237568,     4096,    16384, 0x0521c397
+2,     241664,     241664,     4096,    16384, 0xff5ec9de
+2,     245760,     245760,     4096,    16384, 0x5a4ac40f
+2,     249856,     249856,     4096,    16384, 0x29db868a
+2,     253952,     253952,     4096,    16384, 0xa2a0002b
+2,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+2,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-asegment-timestamps-absolute b/tests/ref/fate/filter-asegment-timestamps-absolute
index b7f4fa251d..b3f72c958a 100644
--- a/tests/ref/fate/filter-asegment-timestamps-absolute
+++ b/tests/ref/fate/filter-asegment-timestamps-absolute
@@ -13,263 +13,69 @@ 
 #codec_id 2: pcm_s16le
 #sample_rate 2: 44100
 #channel_layout_name 2: stereo
-0,          0,          0,     1024,     4096, 0x29e3eecf
-0,       1024,       1024,     1024,     4096, 0x18390b96
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
-0,       4096,       4096,     1024,     4096, 0x2379ed91
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
-0,       8192,       8192,     1024,     4096, 0x1840f25b
-0,       9216,       9216,     1024,     4096, 0x9c1ffaf1
-0,      10240,      10240,     1024,     4096, 0xcbedefaf
-0,      11264,      11264,     1024,     4096, 0x3e050390
-0,      12288,      12288,     1024,     4096, 0xb30e0090
-0,      13312,      13312,     1024,     4096, 0x26b8f75b
-0,      14336,      14336,     1024,     4096, 0xd706e311
-0,      15360,      15360,     1024,     4096, 0x0c480138
-0,      16384,      16384,     1024,     4096, 0x6c9a0216
-0,      17408,      17408,     1024,     4096, 0x7abce54f
-0,      18432,      18432,     1024,     4096, 0xda45f63f
-0,      19456,      19456,     1024,     4096, 0x50d5ff87
-0,      20480,      20480,     1024,     4096, 0x59be0352
-0,      21504,      21504,     1024,     4096, 0xa61af077
-0,      22528,      22528,     1024,     4096, 0x84c4fc07
-0,      23552,      23552,     1024,     4096, 0x4a35f345
-0,      24576,      24576,     1024,     4096, 0xbb65fa81
-0,      25600,      25600,     1024,     4096, 0xf6c7f5e5
-0,      26624,      26624,     1024,     4096, 0xd3270138
-0,      27648,      27648,     1024,     4096, 0x4782ed53
-0,      28672,      28672,     1024,     4096, 0xe308f055
-0,      29696,      29696,     1024,     4096, 0x7d33f97d
-0,      30720,      30720,     1024,     4096, 0xb8b00dd4
-0,      31744,      31744,     1024,     4096, 0x7ff7efab
-0,      32768,      32768,     1024,     4096, 0x29e3eecf
-0,      33792,      33792,     1024,     4096, 0x18390b96
-0,      34816,      34816,     1024,     4096, 0xc477fa99
-0,      35840,      35840,     1024,     4096, 0x3bc0f14f
-0,      36864,      36864,     1024,     4096, 0x2379ed91
-0,      37888,      37888,     1024,     4096, 0xfd6a0070
-0,      38912,      38912,     1024,     4096, 0x0b01f4cf
-0,      39936,      39936,     1024,     4096, 0x6716fd93
-0,      40960,      40960,     1024,     4096, 0x1840f25b
-0,      41984,      41984,     1024,     4096, 0x9c1ffaf1
-0,      43008,      43008,     1024,     4096, 0xcbedefaf
-0,      44032,      44032,       68,      272, 0x79238c62
-1,      44100,      44100,     1980,     7920, 0x957536fd
-1,      46080,      46080,     1024,     4096, 0x6e4a0a36
-1,      47104,      47104,     1024,     4096, 0x61cfe70d
-1,      48128,      48128,     1024,     4096, 0xc19ffa15
-1,      49152,      49152,     1024,     4096, 0x7b32fb3d
-1,      50176,      50176,     1024,     4096, 0xdacefd3f
-1,      51200,      51200,     1024,     4096, 0x3964f64d
-1,      52224,      52224,     1024,     4096, 0xdcf2edad
-1,      53248,      53248,     1024,     4096, 0x1367f69b
-1,      54272,      54272,     1024,     4096, 0xd4c6f7b9
-1,      55296,      55296,     1024,     4096, 0x9e041186
-1,      56320,      56320,     1024,     4096, 0xe939edd7
-1,      57344,      57344,     1024,     4096, 0xa932336a
-1,      58368,      58368,     1024,     4096, 0x5f510e28
-1,      59392,      59392,     1024,     4096, 0x4b8501c8
-1,      60416,      60416,     1024,     4096, 0xfbc30250
-1,      61440,      61440,     1024,     4096, 0x5e7fd855
-1,      62464,      62464,     1024,     4096, 0x8ef1f265
-1,      63488,      63488,     1024,     4096, 0x9f7601c2
-1,      64512,      64512,     1024,     4096, 0xb400f0b7
-1,      65536,      65536,     1024,     4096, 0x4c91e10b
-1,      66560,      66560,     1024,     4096, 0x3f41fe61
-1,      67584,      67584,     1024,     4096, 0x74fff9b9
-1,      68608,      68608,     1024,     4096, 0x18bbf5a5
-1,      69632,      69632,     1024,     4096, 0x51a70180
-1,      70656,      70656,     1024,     4096, 0x29f3e8c5
-1,      71680,      71680,     1024,     4096, 0x562efdb9
-1,      72704,      72704,     1024,     4096, 0xa2e006e0
-1,      73728,      73728,     1024,     4096, 0xa1bff541
-1,      74752,      74752,     1024,     4096, 0xd95b0012
-1,      75776,      75776,     1024,     4096, 0xd93e0912
-1,      76800,      76800,     1024,     4096, 0x6c2a1d88
-1,      77824,      77824,     1024,     4096, 0xb4d8fb8b
-1,      78848,      78848,     1024,     4096, 0xf14b0492
-1,      79872,      79872,     1024,     4096, 0x1c7be7b7
-1,      80896,      80896,     1024,     4096, 0xc181f877
-1,      81920,      81920,     1024,     4096, 0xba132d14
-1,      82944,      82944,     1024,     4096, 0xabae2d9a
-1,      83968,      83968,     1024,     4096, 0xb07fff15
-1,      84992,      84992,     1024,     4096, 0xa0c1ff2d
-1,      86016,      86016,     1024,     4096, 0x19f7fd1f
-1,      87040,      87040,     1024,     4096, 0xcb6d11a4
-1,      88064,      88064,     1024,     4096, 0x166ac8b7
-1,      89088,      89088,     1024,     4096, 0xe68dda8f
-1,      90112,      90112,     1024,     4096, 0xe457b505
-1,      91136,      91136,     1024,     4096, 0xda25a409
-1,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-1,      93184,      93184,     1024,     4096, 0xa61eb13d
-1,      94208,      94208,     1024,     4096, 0xac93b66f
-1,      95232,      95232,     1024,     4096, 0xc7aeb33f
-1,      96256,      96256,     1024,     4096, 0x52cccfb5
-1,      97280,      97280,     1024,     4096, 0x4e4cf487
-1,      98304,      98304,     1024,     4096, 0x19c07f35
-1,      99328,      99328,     1024,     4096, 0x63ecd34f
-1,     100352,     100352,     1024,     4096, 0x122aec53
-1,     101376,     101376,     1024,     4096, 0x6581c0ad
-1,     102400,     102400,     1024,     4096, 0x640edb15
-1,     103424,     103424,     1024,     4096, 0x5d66c66f
-1,     104448,     104448,     1024,     4096, 0x069e9d35
-1,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-1,     106496,     106496,     1024,     4096, 0x72468667
-1,     107520,     107520,     1024,     4096, 0x6e6dd02b
-1,     108544,     108544,     1024,     4096, 0x93edce33
-1,     109568,     109568,     1024,     4096, 0xcdfbd519
-1,     110592,     110592,     1024,     4096, 0x8463f2bb
-1,     111616,     111616,     1024,     4096, 0x5ca6f869
-1,     112640,     112640,     1024,     4096, 0x099a0398
-1,     113664,     113664,     1024,     4096, 0xa7fa10f0
-1,     114688,     114688,     1024,     4096, 0x28caddd3
-1,     115712,     115712,     1024,     4096, 0x4852ef8b
-1,     116736,     116736,     1024,     4096, 0x0250ee7b
-1,     117760,     117760,     1024,     4096, 0x9583da21
-1,     118784,     118784,     1024,     4096, 0x7365fb33
-1,     119808,     119808,     1024,     4096, 0x28c82066
-1,     120832,     120832,     1024,     4096, 0x94650be4
-1,     121856,     121856,     1024,     4096, 0xeb21f8eb
-1,     122880,     122880,     1024,     4096, 0xcd88f455
-1,     123904,     123904,     1024,     4096, 0x66a9efaf
-1,     124928,     124928,     1024,     4096, 0x5500c6ed
-1,     125952,     125952,     1024,     4096, 0x0ee0c62d
-1,     126976,     126976,     1024,     4096, 0x34d30762
-1,     128000,     128000,     1024,     4096, 0x8c0dec9f
-1,     129024,     129024,     1024,     4096, 0x790011d8
-1,     130048,     130048,     1024,     4096, 0xb76a1136
-1,     131072,     131072,     1024,     4096, 0x7dddfea7
-1,     132096,     132096,      204,      816, 0x398f938f
-2,     132300,     132300,      820,     3280, 0x9f1759ba
-2,     133120,     133120,     1024,     4096, 0xc129f54e
-2,     134144,     134144,     1024,     4096, 0x9a86f077
-2,     135168,     135168,     1024,     4096, 0xc9eef209
-2,     136192,     136192,     1024,     4096, 0x72d4029b
-2,     137216,     137216,     1024,     4096, 0x8ec20590
-2,     138240,     138240,     1024,     4096, 0xd48f18ed
-2,     139264,     139264,     1024,     4096, 0xd807eadc
-2,     140288,     140288,     1024,     4096, 0x1e2bea09
-2,     141312,     141312,     1024,     4096, 0x937af12e
-2,     142336,     142336,     1024,     4096, 0xdedbf303
-2,     143360,     143360,     1024,     4096, 0xdc75df88
-2,     144384,     144384,     1024,     4096, 0x1845ffd6
-2,     145408,     145408,     1024,     4096, 0x20e8150c
-2,     146432,     146432,     1024,     4096, 0x5ea7eeef
-2,     147456,     147456,     1024,     4096, 0x4c7efa21
-2,     148480,     148480,     1024,     4096, 0x8b97e30e
-2,     149504,     149504,     1024,     4096, 0xe5040228
-2,     150528,     150528,     1024,     4096, 0x6283f78c
-2,     151552,     151552,     1024,     4096, 0xe7100140
-2,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-2,     153600,     153600,     1024,     4096, 0x5f0e1563
-2,     154624,     154624,     1024,     4096, 0x510bf18e
-2,     155648,     155648,     1024,     4096, 0x5f4fe425
-2,     156672,     156672,     1024,     4096, 0x507af3c0
-2,     157696,     157696,     1024,     4096, 0xbf14ddc6
-2,     158720,     158720,     1024,     4096, 0x1871ed69
-2,     159744,     159744,     1024,     4096, 0xc349ef9f
-2,     160768,     160768,     1024,     4096, 0x4e2c1834
-2,     161792,     161792,     1024,     4096, 0x2383fe04
-2,     162816,     162816,     1024,     4096, 0x6626f415
-2,     163840,     163840,     1024,     4096, 0x283be379
-2,     164864,     164864,     1024,     4096, 0xc76c0ceb
-2,     165888,     165888,     1024,     4096, 0xa0b8040f
-2,     166912,     166912,     1024,     4096, 0x2535eb6d
-2,     167936,     167936,     1024,     4096, 0xeb180bb5
-2,     168960,     168960,     1024,     4096, 0xbc5cf059
-2,     169984,     169984,     1024,     4096, 0x1862f1ac
-2,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-2,     172032,     172032,     1024,     4096, 0xbb9ae754
-2,     173056,     173056,     1024,     4096, 0x716debb5
-2,     174080,     174080,     1024,     4096, 0xff3aff2a
-2,     175104,     175104,     1024,     4096, 0x755dfa5c
-2,     176128,     176128,     1024,     4096, 0x3b830605
-2,     177152,     177152,     1024,     4096, 0x0030dc9e
-2,     178176,     178176,     1024,     4096, 0xb017fd54
-2,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-2,     180224,     180224,     1024,     4096, 0x7887e599
-2,     181248,     181248,     1024,     4096, 0xb730e72f
-2,     182272,     182272,     1024,     4096, 0x6bb3fae4
-2,     183296,     183296,     1024,     4096, 0xcc08fc36
-2,     184320,     184320,     1024,     4096, 0x5afd9ec2
-2,     185344,     185344,     1024,     4096, 0xa1d3e83d
-2,     186368,     186368,     1024,     4096, 0x7f96013c
-2,     187392,     187392,     1024,     4096, 0x7a0afe31
-2,     188416,     188416,     1024,     4096, 0xa37d1701
-2,     189440,     189440,     1024,     4096, 0x4615ebc2
-2,     190464,     190464,     1024,     4096, 0x217005c1
-2,     191488,     191488,     1024,     4096, 0x1755f789
-2,     192512,     192512,     1024,     4096, 0x83e6db65
-2,     193536,     193536,     1024,     4096, 0x92ab1447
-2,     194560,     194560,     1024,     4096, 0xedbdf383
-2,     195584,     195584,     1024,     4096, 0x4316f6a9
-2,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-2,     197632,     197632,     1024,     4096, 0xdfd809b7
-2,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-2,     199680,     199680,     1024,     4096, 0xd366f4a1
-2,     200704,     200704,     1024,     4096, 0x6a2f86e0
-2,     201728,     201728,     1024,     4096, 0xf51f08a9
-2,     202752,     202752,     1024,     4096, 0x05edefa8
-2,     203776,     203776,     1024,     4096, 0x255df2a6
-2,     204800,     204800,     1024,     4096, 0xe881d9e4
-2,     205824,     205824,     1024,     4096, 0x50380523
-2,     206848,     206848,     1024,     4096, 0x8b93eb26
-2,     207872,     207872,     1024,     4096, 0x759cf94c
-2,     208896,     208896,     1024,     4096, 0x8474f591
-2,     209920,     209920,     1024,     4096, 0x0030dc9e
-2,     210944,     210944,     1024,     4096, 0xb017fd54
-2,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-2,     212992,     212992,     1024,     4096, 0x7887e599
-2,     214016,     214016,     1024,     4096, 0xb730e72f
-2,     215040,     215040,     1024,     4096, 0x6bb3fae4
-2,     216064,     216064,     1024,     4096, 0xcc08fc36
-2,     217088,     217088,     1024,     4096, 0x5afd9ec2
-2,     218112,     218112,     1024,     4096, 0xa1d3e83d
-2,     219136,     219136,     1024,     4096, 0x7f96013c
-2,     220160,     220160,     1024,     4096, 0x7a0afe31
-2,     221184,     221184,     1024,     4096, 0xa37d1701
-2,     222208,     222208,     1024,     4096, 0x4615ebc2
-2,     223232,     223232,     1024,     4096, 0x217005c1
-2,     224256,     224256,     1024,     4096, 0x1755f789
-2,     225280,     225280,     1024,     4096, 0x83e6db65
-2,     226304,     226304,     1024,     4096, 0x92ab1447
-2,     227328,     227328,     1024,     4096, 0xedbdf383
-2,     228352,     228352,     1024,     4096, 0x4316f6a9
-2,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-2,     230400,     230400,     1024,     4096, 0xdfd809b7
-2,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-2,     232448,     232448,     1024,     4096, 0xd366f4a1
-2,     233472,     233472,     1024,     4096, 0x6a2f86e0
-2,     234496,     234496,     1024,     4096, 0xf51f08a9
-2,     235520,     235520,     1024,     4096, 0x05edefa8
-2,     236544,     236544,     1024,     4096, 0x255df2a6
-2,     237568,     237568,     1024,     4096, 0xe881d9e4
-2,     238592,     238592,     1024,     4096, 0x50380523
-2,     239616,     239616,     1024,     4096, 0x8b93eb26
-2,     240640,     240640,     1024,     4096, 0x759cf94c
-2,     241664,     241664,     1024,     4096, 0x8474f591
-2,     242688,     242688,     1024,     4096, 0x0030dc9e
-2,     243712,     243712,     1024,     4096, 0xb017fd54
-2,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-2,     245760,     245760,     1024,     4096, 0x7887e599
-2,     246784,     246784,     1024,     4096, 0xb730e72f
-2,     247808,     247808,     1024,     4096, 0x6bb3fae4
-2,     248832,     248832,     1024,     4096, 0xcc08fc36
-2,     249856,     249856,     1024,     4096, 0x5afd9ec2
-2,     250880,     250880,     1024,     4096, 0xa1d3e83d
-2,     251904,     251904,     1024,     4096, 0x7f96013c
-2,     252928,     252928,     1024,     4096, 0x7a0afe31
-2,     253952,     253952,     1024,     4096, 0xa37d1701
-2,     254976,     254976,     1024,     4096, 0x4615ebc2
-2,     256000,     256000,     1024,     4096, 0x217005c1
-2,     257024,     257024,     1024,     4096, 0x1755f789
-2,     258048,     258048,     1024,     4096, 0x83e6db65
-2,     259072,     259072,     1024,     4096, 0x92ab1447
-2,     260096,     260096,     1024,     4096, 0xedbdf383
-2,     261120,     261120,     1024,     4096, 0x4316f6a9
-2,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-2,     263168,     263168,     1024,     4096, 0xdfd809b7
-2,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x02ebe66b
+0,       4096,       4096,     4096,    16384, 0x35bfe081
+0,       8192,       8192,     4096,    16384, 0x3f90e0a9
+0,      12288,      12288,     4096,    16384, 0xd389dc43
+0,      16384,      16384,     4096,    16384, 0x9d5add49
+0,      20480,      20480,     4096,    16384, 0x378ee333
+0,      24576,      24576,     4096,    16384, 0xabf6df0f
+0,      28672,      28672,     4096,    16384, 0xedefe76f
+0,      32768,      32768,     4096,    16384, 0x02ebe66b
+0,      36864,      36864,     4096,    16384, 0x35bfe081
+0,      40960,      40960,     3140,    12560, 0x13b5698a
+1,      44100,      44100,     5052,    20208, 0xadc32273
+1,      49152,      49152,     4096,    16384, 0x1126dca3
+1,      53248,      53248,     4096,    16384, 0x9647edcf
+1,      57344,      57344,     4096,    16384, 0x5cc345aa
+1,      61440,      61440,     4096,    16384, 0x19d7bd51
+1,      65536,      65536,     4096,    16384, 0x19eccef7
+1,      69632,      69632,     4096,    16384, 0x4b68eeed
+1,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+1,      77824,      77824,     4096,    16384, 0xe9b2e069
+1,      81920,      81920,     4096,    16384, 0xcaa5590e
+1,      86016,      86016,     4096,    16384, 0x47d0b227
+1,      90112,      90112,     4096,    16384, 0x446ba7a4
+1,      94208,      94208,     4096,    16384, 0x299b2e17
+1,      98304,      98304,     4096,    16384, 0xc51affa2
+1,     102400,     102400,     4096,    16384, 0xb4970fcf
+1,     106496,     106496,     4096,    16384, 0xe48af9fc
+1,     110592,     110592,     4096,    16384, 0xc2beffbb
+1,     114688,     114688,     4096,    16384, 0xb9d99627
+1,     118784,     118784,     4096,    16384, 0xb65a2086
+1,     122880,     122880,     4096,    16384, 0x6386714b
+1,     126976,     126976,     4096,    16384, 0x92a3171e
+1,     131072,     131072,     1228,     4912, 0x9b509245
+2,     132300,     132300,     2868,    11472, 0xa9273f9d
+2,     135168,     135168,     4096,    16384, 0x63301330
+2,     139264,     139264,     4096,    16384, 0xd663b943
+2,     143360,     143360,     4096,    16384, 0xdcafe377
+2,     147456,     147456,     4096,    16384, 0xfb2cd701
+2,     151552,     151552,     4096,    16384, 0x91c30201
+2,     155648,     155648,     4096,    16384, 0xf23da341
+2,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+2,     163840,     163840,     4096,    16384, 0x519bdfef
+2,     167936,     167936,     4096,    16384, 0xf2fcd803
+2,     172032,     172032,     4096,    16384, 0xd5ceccbc
+2,     176128,     176128,     4096,    16384, 0xd48ada43
+2,     180224,     180224,     4096,    16384, 0x5a4ac40f
+2,     184320,     184320,     4096,    16384, 0x29db868a
+2,     188416,     188416,     4096,    16384, 0xa2a0002b
+2,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+2,     196608,     196608,     4096,    16384, 0x338dffa4
+2,     200704,     200704,     4096,    16384, 0x970b71f5
+2,     204800,     204800,     4096,    16384, 0x0521c397
+2,     208896,     208896,     4096,    16384, 0xff5ec9de
+2,     212992,     212992,     4096,    16384, 0x5a4ac40f
+2,     217088,     217088,     4096,    16384, 0x29db868a
+2,     221184,     221184,     4096,    16384, 0xa2a0002b
+2,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+2,     229376,     229376,     4096,    16384, 0x338dffa4
+2,     233472,     233472,     4096,    16384, 0x970b71f5
+2,     237568,     237568,     4096,    16384, 0x0521c397
+2,     241664,     241664,     4096,    16384, 0xff5ec9de
+2,     245760,     245760,     4096,    16384, 0x5a4ac40f
+2,     249856,     249856,     4096,    16384, 0x29db868a
+2,     253952,     253952,     4096,    16384, 0xa2a0002b
+2,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+2,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-asegment-timestamps-relative b/tests/ref/fate/filter-asegment-timestamps-relative
index b7f4fa251d..b3f72c958a 100644
--- a/tests/ref/fate/filter-asegment-timestamps-relative
+++ b/tests/ref/fate/filter-asegment-timestamps-relative
@@ -13,263 +13,69 @@ 
 #codec_id 2: pcm_s16le
 #sample_rate 2: 44100
 #channel_layout_name 2: stereo
-0,          0,          0,     1024,     4096, 0x29e3eecf
-0,       1024,       1024,     1024,     4096, 0x18390b96
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
-0,       4096,       4096,     1024,     4096, 0x2379ed91
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
-0,       8192,       8192,     1024,     4096, 0x1840f25b
-0,       9216,       9216,     1024,     4096, 0x9c1ffaf1
-0,      10240,      10240,     1024,     4096, 0xcbedefaf
-0,      11264,      11264,     1024,     4096, 0x3e050390
-0,      12288,      12288,     1024,     4096, 0xb30e0090
-0,      13312,      13312,     1024,     4096, 0x26b8f75b
-0,      14336,      14336,     1024,     4096, 0xd706e311
-0,      15360,      15360,     1024,     4096, 0x0c480138
-0,      16384,      16384,     1024,     4096, 0x6c9a0216
-0,      17408,      17408,     1024,     4096, 0x7abce54f
-0,      18432,      18432,     1024,     4096, 0xda45f63f
-0,      19456,      19456,     1024,     4096, 0x50d5ff87
-0,      20480,      20480,     1024,     4096, 0x59be0352
-0,      21504,      21504,     1024,     4096, 0xa61af077
-0,      22528,      22528,     1024,     4096, 0x84c4fc07
-0,      23552,      23552,     1024,     4096, 0x4a35f345
-0,      24576,      24576,     1024,     4096, 0xbb65fa81
-0,      25600,      25600,     1024,     4096, 0xf6c7f5e5
-0,      26624,      26624,     1024,     4096, 0xd3270138
-0,      27648,      27648,     1024,     4096, 0x4782ed53
-0,      28672,      28672,     1024,     4096, 0xe308f055
-0,      29696,      29696,     1024,     4096, 0x7d33f97d
-0,      30720,      30720,     1024,     4096, 0xb8b00dd4
-0,      31744,      31744,     1024,     4096, 0x7ff7efab
-0,      32768,      32768,     1024,     4096, 0x29e3eecf
-0,      33792,      33792,     1024,     4096, 0x18390b96
-0,      34816,      34816,     1024,     4096, 0xc477fa99
-0,      35840,      35840,     1024,     4096, 0x3bc0f14f
-0,      36864,      36864,     1024,     4096, 0x2379ed91
-0,      37888,      37888,     1024,     4096, 0xfd6a0070
-0,      38912,      38912,     1024,     4096, 0x0b01f4cf
-0,      39936,      39936,     1024,     4096, 0x6716fd93
-0,      40960,      40960,     1024,     4096, 0x1840f25b
-0,      41984,      41984,     1024,     4096, 0x9c1ffaf1
-0,      43008,      43008,     1024,     4096, 0xcbedefaf
-0,      44032,      44032,       68,      272, 0x79238c62
-1,      44100,      44100,     1980,     7920, 0x957536fd
-1,      46080,      46080,     1024,     4096, 0x6e4a0a36
-1,      47104,      47104,     1024,     4096, 0x61cfe70d
-1,      48128,      48128,     1024,     4096, 0xc19ffa15
-1,      49152,      49152,     1024,     4096, 0x7b32fb3d
-1,      50176,      50176,     1024,     4096, 0xdacefd3f
-1,      51200,      51200,     1024,     4096, 0x3964f64d
-1,      52224,      52224,     1024,     4096, 0xdcf2edad
-1,      53248,      53248,     1024,     4096, 0x1367f69b
-1,      54272,      54272,     1024,     4096, 0xd4c6f7b9
-1,      55296,      55296,     1024,     4096, 0x9e041186
-1,      56320,      56320,     1024,     4096, 0xe939edd7
-1,      57344,      57344,     1024,     4096, 0xa932336a
-1,      58368,      58368,     1024,     4096, 0x5f510e28
-1,      59392,      59392,     1024,     4096, 0x4b8501c8
-1,      60416,      60416,     1024,     4096, 0xfbc30250
-1,      61440,      61440,     1024,     4096, 0x5e7fd855
-1,      62464,      62464,     1024,     4096, 0x8ef1f265
-1,      63488,      63488,     1024,     4096, 0x9f7601c2
-1,      64512,      64512,     1024,     4096, 0xb400f0b7
-1,      65536,      65536,     1024,     4096, 0x4c91e10b
-1,      66560,      66560,     1024,     4096, 0x3f41fe61
-1,      67584,      67584,     1024,     4096, 0x74fff9b9
-1,      68608,      68608,     1024,     4096, 0x18bbf5a5
-1,      69632,      69632,     1024,     4096, 0x51a70180
-1,      70656,      70656,     1024,     4096, 0x29f3e8c5
-1,      71680,      71680,     1024,     4096, 0x562efdb9
-1,      72704,      72704,     1024,     4096, 0xa2e006e0
-1,      73728,      73728,     1024,     4096, 0xa1bff541
-1,      74752,      74752,     1024,     4096, 0xd95b0012
-1,      75776,      75776,     1024,     4096, 0xd93e0912
-1,      76800,      76800,     1024,     4096, 0x6c2a1d88
-1,      77824,      77824,     1024,     4096, 0xb4d8fb8b
-1,      78848,      78848,     1024,     4096, 0xf14b0492
-1,      79872,      79872,     1024,     4096, 0x1c7be7b7
-1,      80896,      80896,     1024,     4096, 0xc181f877
-1,      81920,      81920,     1024,     4096, 0xba132d14
-1,      82944,      82944,     1024,     4096, 0xabae2d9a
-1,      83968,      83968,     1024,     4096, 0xb07fff15
-1,      84992,      84992,     1024,     4096, 0xa0c1ff2d
-1,      86016,      86016,     1024,     4096, 0x19f7fd1f
-1,      87040,      87040,     1024,     4096, 0xcb6d11a4
-1,      88064,      88064,     1024,     4096, 0x166ac8b7
-1,      89088,      89088,     1024,     4096, 0xe68dda8f
-1,      90112,      90112,     1024,     4096, 0xe457b505
-1,      91136,      91136,     1024,     4096, 0xda25a409
-1,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-1,      93184,      93184,     1024,     4096, 0xa61eb13d
-1,      94208,      94208,     1024,     4096, 0xac93b66f
-1,      95232,      95232,     1024,     4096, 0xc7aeb33f
-1,      96256,      96256,     1024,     4096, 0x52cccfb5
-1,      97280,      97280,     1024,     4096, 0x4e4cf487
-1,      98304,      98304,     1024,     4096, 0x19c07f35
-1,      99328,      99328,     1024,     4096, 0x63ecd34f
-1,     100352,     100352,     1024,     4096, 0x122aec53
-1,     101376,     101376,     1024,     4096, 0x6581c0ad
-1,     102400,     102400,     1024,     4096, 0x640edb15
-1,     103424,     103424,     1024,     4096, 0x5d66c66f
-1,     104448,     104448,     1024,     4096, 0x069e9d35
-1,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-1,     106496,     106496,     1024,     4096, 0x72468667
-1,     107520,     107520,     1024,     4096, 0x6e6dd02b
-1,     108544,     108544,     1024,     4096, 0x93edce33
-1,     109568,     109568,     1024,     4096, 0xcdfbd519
-1,     110592,     110592,     1024,     4096, 0x8463f2bb
-1,     111616,     111616,     1024,     4096, 0x5ca6f869
-1,     112640,     112640,     1024,     4096, 0x099a0398
-1,     113664,     113664,     1024,     4096, 0xa7fa10f0
-1,     114688,     114688,     1024,     4096, 0x28caddd3
-1,     115712,     115712,     1024,     4096, 0x4852ef8b
-1,     116736,     116736,     1024,     4096, 0x0250ee7b
-1,     117760,     117760,     1024,     4096, 0x9583da21
-1,     118784,     118784,     1024,     4096, 0x7365fb33
-1,     119808,     119808,     1024,     4096, 0x28c82066
-1,     120832,     120832,     1024,     4096, 0x94650be4
-1,     121856,     121856,     1024,     4096, 0xeb21f8eb
-1,     122880,     122880,     1024,     4096, 0xcd88f455
-1,     123904,     123904,     1024,     4096, 0x66a9efaf
-1,     124928,     124928,     1024,     4096, 0x5500c6ed
-1,     125952,     125952,     1024,     4096, 0x0ee0c62d
-1,     126976,     126976,     1024,     4096, 0x34d30762
-1,     128000,     128000,     1024,     4096, 0x8c0dec9f
-1,     129024,     129024,     1024,     4096, 0x790011d8
-1,     130048,     130048,     1024,     4096, 0xb76a1136
-1,     131072,     131072,     1024,     4096, 0x7dddfea7
-1,     132096,     132096,      204,      816, 0x398f938f
-2,     132300,     132300,      820,     3280, 0x9f1759ba
-2,     133120,     133120,     1024,     4096, 0xc129f54e
-2,     134144,     134144,     1024,     4096, 0x9a86f077
-2,     135168,     135168,     1024,     4096, 0xc9eef209
-2,     136192,     136192,     1024,     4096, 0x72d4029b
-2,     137216,     137216,     1024,     4096, 0x8ec20590
-2,     138240,     138240,     1024,     4096, 0xd48f18ed
-2,     139264,     139264,     1024,     4096, 0xd807eadc
-2,     140288,     140288,     1024,     4096, 0x1e2bea09
-2,     141312,     141312,     1024,     4096, 0x937af12e
-2,     142336,     142336,     1024,     4096, 0xdedbf303
-2,     143360,     143360,     1024,     4096, 0xdc75df88
-2,     144384,     144384,     1024,     4096, 0x1845ffd6
-2,     145408,     145408,     1024,     4096, 0x20e8150c
-2,     146432,     146432,     1024,     4096, 0x5ea7eeef
-2,     147456,     147456,     1024,     4096, 0x4c7efa21
-2,     148480,     148480,     1024,     4096, 0x8b97e30e
-2,     149504,     149504,     1024,     4096, 0xe5040228
-2,     150528,     150528,     1024,     4096, 0x6283f78c
-2,     151552,     151552,     1024,     4096, 0xe7100140
-2,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-2,     153600,     153600,     1024,     4096, 0x5f0e1563
-2,     154624,     154624,     1024,     4096, 0x510bf18e
-2,     155648,     155648,     1024,     4096, 0x5f4fe425
-2,     156672,     156672,     1024,     4096, 0x507af3c0
-2,     157696,     157696,     1024,     4096, 0xbf14ddc6
-2,     158720,     158720,     1024,     4096, 0x1871ed69
-2,     159744,     159744,     1024,     4096, 0xc349ef9f
-2,     160768,     160768,     1024,     4096, 0x4e2c1834
-2,     161792,     161792,     1024,     4096, 0x2383fe04
-2,     162816,     162816,     1024,     4096, 0x6626f415
-2,     163840,     163840,     1024,     4096, 0x283be379
-2,     164864,     164864,     1024,     4096, 0xc76c0ceb
-2,     165888,     165888,     1024,     4096, 0xa0b8040f
-2,     166912,     166912,     1024,     4096, 0x2535eb6d
-2,     167936,     167936,     1024,     4096, 0xeb180bb5
-2,     168960,     168960,     1024,     4096, 0xbc5cf059
-2,     169984,     169984,     1024,     4096, 0x1862f1ac
-2,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-2,     172032,     172032,     1024,     4096, 0xbb9ae754
-2,     173056,     173056,     1024,     4096, 0x716debb5
-2,     174080,     174080,     1024,     4096, 0xff3aff2a
-2,     175104,     175104,     1024,     4096, 0x755dfa5c
-2,     176128,     176128,     1024,     4096, 0x3b830605
-2,     177152,     177152,     1024,     4096, 0x0030dc9e
-2,     178176,     178176,     1024,     4096, 0xb017fd54
-2,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-2,     180224,     180224,     1024,     4096, 0x7887e599
-2,     181248,     181248,     1024,     4096, 0xb730e72f
-2,     182272,     182272,     1024,     4096, 0x6bb3fae4
-2,     183296,     183296,     1024,     4096, 0xcc08fc36
-2,     184320,     184320,     1024,     4096, 0x5afd9ec2
-2,     185344,     185344,     1024,     4096, 0xa1d3e83d
-2,     186368,     186368,     1024,     4096, 0x7f96013c
-2,     187392,     187392,     1024,     4096, 0x7a0afe31
-2,     188416,     188416,     1024,     4096, 0xa37d1701
-2,     189440,     189440,     1024,     4096, 0x4615ebc2
-2,     190464,     190464,     1024,     4096, 0x217005c1
-2,     191488,     191488,     1024,     4096, 0x1755f789
-2,     192512,     192512,     1024,     4096, 0x83e6db65
-2,     193536,     193536,     1024,     4096, 0x92ab1447
-2,     194560,     194560,     1024,     4096, 0xedbdf383
-2,     195584,     195584,     1024,     4096, 0x4316f6a9
-2,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-2,     197632,     197632,     1024,     4096, 0xdfd809b7
-2,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-2,     199680,     199680,     1024,     4096, 0xd366f4a1
-2,     200704,     200704,     1024,     4096, 0x6a2f86e0
-2,     201728,     201728,     1024,     4096, 0xf51f08a9
-2,     202752,     202752,     1024,     4096, 0x05edefa8
-2,     203776,     203776,     1024,     4096, 0x255df2a6
-2,     204800,     204800,     1024,     4096, 0xe881d9e4
-2,     205824,     205824,     1024,     4096, 0x50380523
-2,     206848,     206848,     1024,     4096, 0x8b93eb26
-2,     207872,     207872,     1024,     4096, 0x759cf94c
-2,     208896,     208896,     1024,     4096, 0x8474f591
-2,     209920,     209920,     1024,     4096, 0x0030dc9e
-2,     210944,     210944,     1024,     4096, 0xb017fd54
-2,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-2,     212992,     212992,     1024,     4096, 0x7887e599
-2,     214016,     214016,     1024,     4096, 0xb730e72f
-2,     215040,     215040,     1024,     4096, 0x6bb3fae4
-2,     216064,     216064,     1024,     4096, 0xcc08fc36
-2,     217088,     217088,     1024,     4096, 0x5afd9ec2
-2,     218112,     218112,     1024,     4096, 0xa1d3e83d
-2,     219136,     219136,     1024,     4096, 0x7f96013c
-2,     220160,     220160,     1024,     4096, 0x7a0afe31
-2,     221184,     221184,     1024,     4096, 0xa37d1701
-2,     222208,     222208,     1024,     4096, 0x4615ebc2
-2,     223232,     223232,     1024,     4096, 0x217005c1
-2,     224256,     224256,     1024,     4096, 0x1755f789
-2,     225280,     225280,     1024,     4096, 0x83e6db65
-2,     226304,     226304,     1024,     4096, 0x92ab1447
-2,     227328,     227328,     1024,     4096, 0xedbdf383
-2,     228352,     228352,     1024,     4096, 0x4316f6a9
-2,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-2,     230400,     230400,     1024,     4096, 0xdfd809b7
-2,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-2,     232448,     232448,     1024,     4096, 0xd366f4a1
-2,     233472,     233472,     1024,     4096, 0x6a2f86e0
-2,     234496,     234496,     1024,     4096, 0xf51f08a9
-2,     235520,     235520,     1024,     4096, 0x05edefa8
-2,     236544,     236544,     1024,     4096, 0x255df2a6
-2,     237568,     237568,     1024,     4096, 0xe881d9e4
-2,     238592,     238592,     1024,     4096, 0x50380523
-2,     239616,     239616,     1024,     4096, 0x8b93eb26
-2,     240640,     240640,     1024,     4096, 0x759cf94c
-2,     241664,     241664,     1024,     4096, 0x8474f591
-2,     242688,     242688,     1024,     4096, 0x0030dc9e
-2,     243712,     243712,     1024,     4096, 0xb017fd54
-2,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-2,     245760,     245760,     1024,     4096, 0x7887e599
-2,     246784,     246784,     1024,     4096, 0xb730e72f
-2,     247808,     247808,     1024,     4096, 0x6bb3fae4
-2,     248832,     248832,     1024,     4096, 0xcc08fc36
-2,     249856,     249856,     1024,     4096, 0x5afd9ec2
-2,     250880,     250880,     1024,     4096, 0xa1d3e83d
-2,     251904,     251904,     1024,     4096, 0x7f96013c
-2,     252928,     252928,     1024,     4096, 0x7a0afe31
-2,     253952,     253952,     1024,     4096, 0xa37d1701
-2,     254976,     254976,     1024,     4096, 0x4615ebc2
-2,     256000,     256000,     1024,     4096, 0x217005c1
-2,     257024,     257024,     1024,     4096, 0x1755f789
-2,     258048,     258048,     1024,     4096, 0x83e6db65
-2,     259072,     259072,     1024,     4096, 0x92ab1447
-2,     260096,     260096,     1024,     4096, 0xedbdf383
-2,     261120,     261120,     1024,     4096, 0x4316f6a9
-2,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-2,     263168,     263168,     1024,     4096, 0xdfd809b7
-2,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x02ebe66b
+0,       4096,       4096,     4096,    16384, 0x35bfe081
+0,       8192,       8192,     4096,    16384, 0x3f90e0a9
+0,      12288,      12288,     4096,    16384, 0xd389dc43
+0,      16384,      16384,     4096,    16384, 0x9d5add49
+0,      20480,      20480,     4096,    16384, 0x378ee333
+0,      24576,      24576,     4096,    16384, 0xabf6df0f
+0,      28672,      28672,     4096,    16384, 0xedefe76f
+0,      32768,      32768,     4096,    16384, 0x02ebe66b
+0,      36864,      36864,     4096,    16384, 0x35bfe081
+0,      40960,      40960,     3140,    12560, 0x13b5698a
+1,      44100,      44100,     5052,    20208, 0xadc32273
+1,      49152,      49152,     4096,    16384, 0x1126dca3
+1,      53248,      53248,     4096,    16384, 0x9647edcf
+1,      57344,      57344,     4096,    16384, 0x5cc345aa
+1,      61440,      61440,     4096,    16384, 0x19d7bd51
+1,      65536,      65536,     4096,    16384, 0x19eccef7
+1,      69632,      69632,     4096,    16384, 0x4b68eeed
+1,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+1,      77824,      77824,     4096,    16384, 0xe9b2e069
+1,      81920,      81920,     4096,    16384, 0xcaa5590e
+1,      86016,      86016,     4096,    16384, 0x47d0b227
+1,      90112,      90112,     4096,    16384, 0x446ba7a4
+1,      94208,      94208,     4096,    16384, 0x299b2e17
+1,      98304,      98304,     4096,    16384, 0xc51affa2
+1,     102400,     102400,     4096,    16384, 0xb4970fcf
+1,     106496,     106496,     4096,    16384, 0xe48af9fc
+1,     110592,     110592,     4096,    16384, 0xc2beffbb
+1,     114688,     114688,     4096,    16384, 0xb9d99627
+1,     118784,     118784,     4096,    16384, 0xb65a2086
+1,     122880,     122880,     4096,    16384, 0x6386714b
+1,     126976,     126976,     4096,    16384, 0x92a3171e
+1,     131072,     131072,     1228,     4912, 0x9b509245
+2,     132300,     132300,     2868,    11472, 0xa9273f9d
+2,     135168,     135168,     4096,    16384, 0x63301330
+2,     139264,     139264,     4096,    16384, 0xd663b943
+2,     143360,     143360,     4096,    16384, 0xdcafe377
+2,     147456,     147456,     4096,    16384, 0xfb2cd701
+2,     151552,     151552,     4096,    16384, 0x91c30201
+2,     155648,     155648,     4096,    16384, 0xf23da341
+2,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+2,     163840,     163840,     4096,    16384, 0x519bdfef
+2,     167936,     167936,     4096,    16384, 0xf2fcd803
+2,     172032,     172032,     4096,    16384, 0xd5ceccbc
+2,     176128,     176128,     4096,    16384, 0xd48ada43
+2,     180224,     180224,     4096,    16384, 0x5a4ac40f
+2,     184320,     184320,     4096,    16384, 0x29db868a
+2,     188416,     188416,     4096,    16384, 0xa2a0002b
+2,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+2,     196608,     196608,     4096,    16384, 0x338dffa4
+2,     200704,     200704,     4096,    16384, 0x970b71f5
+2,     204800,     204800,     4096,    16384, 0x0521c397
+2,     208896,     208896,     4096,    16384, 0xff5ec9de
+2,     212992,     212992,     4096,    16384, 0x5a4ac40f
+2,     217088,     217088,     4096,    16384, 0x29db868a
+2,     221184,     221184,     4096,    16384, 0xa2a0002b
+2,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+2,     229376,     229376,     4096,    16384, 0x338dffa4
+2,     233472,     233472,     4096,    16384, 0x970b71f5
+2,     237568,     237568,     4096,    16384, 0x0521c397
+2,     241664,     241664,     4096,    16384, 0xff5ec9de
+2,     245760,     245760,     4096,    16384, 0x5a4ac40f
+2,     249856,     249856,     4096,    16384, 0x29db868a
+2,     253952,     253952,     4096,    16384, 0xa2a0002b
+2,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+2,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-asetrate b/tests/ref/fate/filter-asetrate
index 4b5e87d69e..7fbd1561be 100644
--- a/tests/ref/fate/filter-asetrate
+++ b/tests/ref/fate/filter-asetrate
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 20000
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x29e3eecf
-0,       1024,       1024,     1024,     4096, 0x18390b96
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
-0,       4096,       4096,     1024,     4096, 0x2379ed91
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
-0,       8192,       8192,     1024,     4096, 0x1840f25b
-0,       9216,       9216,     1024,     4096, 0x9c1ffaf1
-0,      10240,      10240,     1024,     4096, 0xcbedefaf
-0,      11264,      11264,     1024,     4096, 0x3e050390
-0,      12288,      12288,     1024,     4096, 0xb30e0090
-0,      13312,      13312,     1024,     4096, 0x26b8f75b
-0,      14336,      14336,     1024,     4096, 0xd706e311
-0,      15360,      15360,     1024,     4096, 0x0c480138
-0,      16384,      16384,     1024,     4096, 0x6c9a0216
-0,      17408,      17408,     1024,     4096, 0x7abce54f
-0,      18432,      18432,     1024,     4096, 0xda45f63f
-0,      19456,      19456,     1024,     4096, 0x50d5ff87
+0,          0,          0,     4096,    16384, 0x02ebe66b
+0,       4096,       4096,     4096,    16384, 0x35bfe081
+0,       8192,       8192,     4096,    16384, 0x3f90e0a9
+0,      12288,      12288,     4096,    16384, 0xd389dc43
+0,      16384,      16384,     4096,    16384, 0x9d5add49
+0,      20480,      20480,     4096,    16384, 0x378ee333
+0,      24576,      24576,     4096,    16384, 0xabf6df0f
+0,      28672,      28672,     4096,    16384, 0xedefe76f
+0,      32768,      32768,     4096,    16384, 0x02ebe66b
+0,      36864,      36864,     4096,    16384, 0x35bfe081
+0,      40960,      40960,     4096,    16384, 0xdbc2b3b9
+0,      45056,      45056,     4096,    16384, 0xe92bd835
+0,      49152,      49152,     4096,    16384, 0x1126dca3
+0,      53248,      53248,     4096,    16384, 0x9647edcf
+0,      57344,      57344,     4096,    16384, 0x5cc345aa
+0,      61440,      61440,     4096,    16384, 0x19d7bd51
+0,      65536,      65536,     4096,    16384, 0x19eccef7
+0,      69632,      69632,     4096,    16384, 0x4b68eeed
+0,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+0,      77824,      77824,     4096,    16384, 0xe9b2e069
diff --git a/tests/ref/fate/filter-atrim-mixed b/tests/ref/fate/filter-atrim-mixed
index 7f16639406..35fdfdf82f 100644
--- a/tests/ref/fate/filter-atrim-mixed
+++ b/tests/ref/fate/filter-atrim-mixed
@@ -3,7 +3,5 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,       1025,       1025,     1023,     4092, 0x78560a4c
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
+0,       1025,       1025,     3071,    12284, 0x86e8f643
 0,       4096,       4096,      315,     1260, 0xe4b26b50
diff --git a/tests/ref/fate/filter-atrim-time b/tests/ref/fate/filter-atrim-time
index 2f8d87ecbe..462c7cf0a1 100644
--- a/tests/ref/fate/filter-atrim-time
+++ b/tests/ref/fate/filter-atrim-time
@@ -3,8 +3,5 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,       4410,       4410,      710,     2840, 0x658982a3
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
+0,       4410,       4410,     3782,    15128, 0xaafd7593
 0,       8192,       8192,      628,     2512, 0xda5ddff8
diff --git a/tests/ref/fate/filter-chorus b/tests/ref/fate/filter-chorus
index 68513d49eb..97c7919655 100644
--- a/tests/ref/fate/filter-chorus
+++ b/tests/ref/fate/filter-chorus
@@ -3,13 +3,13 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 22050
 #channel_layout_name 0: mono
-0,          0,          0,      512,     1024, 0xf7e0f7d3
-0,        512,        512,      512,     1024, 0xb2abfeba
-0,       1024,       1024,      512,     1024, 0x672bfe34
-0,       1536,       1536,      512,     1024, 0x28a0fd03
-0,       2048,       2048,      512,     1024, 0x1175f9eb
-0,       2560,       2560,      512,     1024, 0xced2f971
-0,       3072,       3072,      512,     1024, 0x48c7006f
-0,       3584,       3584,      512,     1024, 0x500f0068
-0,       4096,       4096,      512,     1024, 0xbab9fb65
-0,       4608,       4608,      512,     1024, 0xd60ff7e5
+0,          0,          0,     2048,     4096, 0x1fc6f1f1
+0,       2048,       2048,     2048,     4096, 0xe5f7f442
+0,       4096,       4096,     2048,     4096, 0x4f14ecb9
+0,       6144,       6144,     2048,     4096, 0xd431eeee
+0,       8192,       8192,     2048,     4096, 0x4c38ead6
+0,      10240,      10240,     2048,     4096, 0x786cf071
+0,      12288,      12288,     2048,     4096, 0xe291f200
+0,      14336,      14336,     2048,     4096, 0x47d2f1dd
+0,      16384,      16384,     2048,     4096, 0xd6a1f028
+0,      18432,      18432,     2048,     4096, 0x2bf4ec79
diff --git a/tests/ref/fate/filter-compand b/tests/ref/fate/filter-compand
index 285416172e..fa7ec62db8 100644
--- a/tests/ref/fate/filter-compand
+++ b/tests/ref/fate/filter-compand
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0xfc10e61b
-0,       1024,       1024,     1024,     4096, 0x8801ef13
-0,       2048,       2048,     1024,     4096, 0xba55fc17
-0,       3072,       3072,     1024,     4096, 0x70f203a0
-0,       4096,       4096,     1024,     4096, 0x9f2ff593
-0,       5120,       5120,     1024,     4096, 0x52f0fb77
-0,       6144,       6144,     1024,     4096, 0x435502ec
-0,       7168,       7168,     1024,     4096, 0xaacfe4bb
-0,       8192,       8192,     1024,     4096, 0x38010f44
-0,       9216,       9216,     1024,     4096, 0x8a79e351
-0,      10240,      10240,     1024,     4096, 0x3d66ec91
-0,      11264,      11264,     1024,     4096, 0x03031b7e
-0,      12288,      12288,     1024,     4096, 0xd9c310ec
-0,      13312,      13312,     1024,     4096, 0x076af28b
-0,      14336,      14336,     1024,     4096, 0xb80fdfe3
-0,      15360,      15360,     1024,     4096, 0xff0fe68d
-0,      16384,      16384,     1024,     4096, 0x679efb4d
-0,      17408,      17408,     1024,     4096, 0xf84fe6e3
-0,      18432,      18432,     1024,     4096, 0x01ebf175
-0,      19456,      19456,     1024,     4096, 0xe7cdea1b
+0,          0,          0,     4096,    16384, 0xc388d503
+0,       4096,       4096,     4096,    16384, 0x9d84d8cf
+0,       8192,       8192,     4096,    16384, 0xa600fab3
+0,      12288,      12288,     4096,    16384, 0x30daca05
+0,      16384,      16384,     4096,    16384, 0xc01cbded
+0,      20480,      20480,     4096,    16384, 0xb73cd0c3
+0,      24576,      24576,     4096,    16384, 0xc93cc8df
+0,      28672,      28672,     4096,    16384, 0x56bde947
+0,      32768,      32768,     4096,    16384, 0xf746ba8f
+0,      36864,      36864,     4096,    16384, 0xaa57ef43
+0,      40960,      40960,     4096,    16384, 0x9478ea1b
+0,      45056,      45056,     4096,    16384, 0xd563c715
+0,      49152,      49152,     4096,    16384, 0x9d1cce65
+0,      53248,      53248,     4096,    16384, 0xe03bb919
+0,      57344,      57344,     4096,    16384, 0x5cc345aa
+0,      61440,      61440,     4096,    16384, 0x19d7bd51
+0,      65536,      65536,     4096,    16384, 0x19eccef7
+0,      69632,      69632,     4096,    16384, 0x4b68eeed
+0,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+0,      77824,      77824,     4096,    16384, 0xe9b2e069
diff --git a/tests/ref/fate/filter-crystalizer b/tests/ref/fate/filter-crystalizer
index ed50fb9788..9820053032 100644
--- a/tests/ref/fate/filter-crystalizer
+++ b/tests/ref/fate/filter-crystalizer
@@ -3,262 +3,68 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x29e3eecf
-0,       1024,       1024,     1024,     4096, 0x18390b96
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
-0,       4096,       4096,     1024,     4096, 0x2379ed91
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
-0,       8192,       8192,     1024,     4096, 0x1840f25b
-0,       9216,       9216,     1024,     4096, 0x9c1ffaf1
-0,      10240,      10240,     1024,     4096, 0xcbedefaf
-0,      11264,      11264,     1024,     4096, 0x3e050390
-0,      12288,      12288,     1024,     4096, 0xb30e0090
-0,      13312,      13312,     1024,     4096, 0x26b8f75b
-0,      14336,      14336,     1024,     4096, 0xd706e311
-0,      15360,      15360,     1024,     4096, 0x0c480138
-0,      16384,      16384,     1024,     4096, 0x6c9a0216
-0,      17408,      17408,     1024,     4096, 0x7abce54f
-0,      18432,      18432,     1024,     4096, 0xda45f63f
-0,      19456,      19456,     1024,     4096, 0x50d5ff87
-0,      20480,      20480,     1024,     4096, 0x59be0352
-0,      21504,      21504,     1024,     4096, 0xa61af077
-0,      22528,      22528,     1024,     4096, 0x84c4fc07
-0,      23552,      23552,     1024,     4096, 0x4a35f345
-0,      24576,      24576,     1024,     4096, 0xbb65fa81
-0,      25600,      25600,     1024,     4096, 0xf6c7f5e5
-0,      26624,      26624,     1024,     4096, 0xd3270138
-0,      27648,      27648,     1024,     4096, 0x4782ed53
-0,      28672,      28672,     1024,     4096, 0xe308f055
-0,      29696,      29696,     1024,     4096, 0x7d33f97d
-0,      30720,      30720,     1024,     4096, 0xb8b00dd4
-0,      31744,      31744,     1024,     4096, 0x7ff7efab
-0,      32768,      32768,     1024,     4096, 0x29e3eecf
-0,      33792,      33792,     1024,     4096, 0x18390b96
-0,      34816,      34816,     1024,     4096, 0xc477fa99
-0,      35840,      35840,     1024,     4096, 0x3bc0f14f
-0,      36864,      36864,     1024,     4096, 0x2379ed91
-0,      37888,      37888,     1024,     4096, 0xfd6a0070
-0,      38912,      38912,     1024,     4096, 0x0b01f4cf
-0,      39936,      39936,     1024,     4096, 0x6716fd93
-0,      40960,      40960,     1024,     4096, 0x1840f25b
-0,      41984,      41984,     1024,     4096, 0x9c1ffaf1
-0,      43008,      43008,     1024,     4096, 0xcbedefaf
-0,      44032,      44032,     1024,     4096, 0xda37d691
-0,      45056,      45056,     1024,     4096, 0x7193ecbf
-0,      46080,      46080,     1024,     4096, 0x6e4a0a36
-0,      47104,      47104,     1024,     4096, 0x61cfe70d
-0,      48128,      48128,     1024,     4096, 0xc19ffa15
-0,      49152,      49152,     1024,     4096, 0x7b32fb3d
-0,      50176,      50176,     1024,     4096, 0xdacefd3f
-0,      51200,      51200,     1024,     4096, 0x3964f64d
-0,      52224,      52224,     1024,     4096, 0xdcf2edad
-0,      53248,      53248,     1024,     4096, 0x1367f69b
-0,      54272,      54272,     1024,     4096, 0xd4c6f7b9
-0,      55296,      55296,     1024,     4096, 0x9e041186
-0,      56320,      56320,     1024,     4096, 0xe939edd7
-0,      57344,      57344,     1024,     4096, 0xa932336a
-0,      58368,      58368,     1024,     4096, 0x5f510e28
-0,      59392,      59392,     1024,     4096, 0x4b8501c8
-0,      60416,      60416,     1024,     4096, 0xfbc30250
-0,      61440,      61440,     1024,     4096, 0x5e7fd855
-0,      62464,      62464,     1024,     4096, 0x8ef1f265
-0,      63488,      63488,     1024,     4096, 0x9f7601c2
-0,      64512,      64512,     1024,     4096, 0xb400f0b7
-0,      65536,      65536,     1024,     4096, 0x4c91e10b
-0,      66560,      66560,     1024,     4096, 0x3f41fe61
-0,      67584,      67584,     1024,     4096, 0x74fff9b9
-0,      68608,      68608,     1024,     4096, 0x18bbf5a5
-0,      69632,      69632,     1024,     4096, 0x51a70180
-0,      70656,      70656,     1024,     4096, 0x29f3e8c5
-0,      71680,      71680,     1024,     4096, 0x562efdb9
-0,      72704,      72704,     1024,     4096, 0xa2e006e0
-0,      73728,      73728,     1024,     4096, 0xa1bff541
-0,      74752,      74752,     1024,     4096, 0xd95b0012
-0,      75776,      75776,     1024,     4096, 0xd93e0912
-0,      76800,      76800,     1024,     4096, 0x6c2a1d88
-0,      77824,      77824,     1024,     4096, 0xb4d8fb8b
-0,      78848,      78848,     1024,     4096, 0xf14b0492
-0,      79872,      79872,     1024,     4096, 0x1c7be7b7
-0,      80896,      80896,     1024,     4096, 0xc181f877
-0,      81920,      81920,     1024,     4096, 0xba132d14
-0,      82944,      82944,     1024,     4096, 0xabae2d9a
-0,      83968,      83968,     1024,     4096, 0xb07fff15
-0,      84992,      84992,     1024,     4096, 0xa0c1ff2d
-0,      86016,      86016,     1024,     4096, 0x19f7fd1f
-0,      87040,      87040,     1024,     4096, 0xcb6d11a4
-0,      88064,      88064,     1024,     4096, 0x166ac8b7
-0,      89088,      89088,     1024,     4096, 0xe68dda8f
-0,      90112,      90112,     1024,     4096, 0xe457b505
-0,      91136,      91136,     1024,     4096, 0xda25a409
-0,      92160,      92160,     1024,     4096, 0x5b5d9d3b
-0,      93184,      93184,     1024,     4096, 0xa61eb13d
-0,      94208,      94208,     1024,     4096, 0xac93b66f
-0,      95232,      95232,     1024,     4096, 0xc7aeb33f
-0,      96256,      96256,     1024,     4096, 0x52cccfb5
-0,      97280,      97280,     1024,     4096, 0x4e4cf487
-0,      98304,      98304,     1024,     4096, 0x19c07f35
-0,      99328,      99328,     1024,     4096, 0x63ecd34f
-0,     100352,     100352,     1024,     4096, 0x122aec53
-0,     101376,     101376,     1024,     4096, 0x6581c0ad
-0,     102400,     102400,     1024,     4096, 0x640edb15
-0,     103424,     103424,     1024,     4096, 0x5d66c66f
-0,     104448,     104448,     1024,     4096, 0x069e9d35
-0,     105472,     105472,     1024,     4096, 0x5c9fd0e9
-0,     106496,     106496,     1024,     4096, 0x72468667
-0,     107520,     107520,     1024,     4096, 0x6e6dd02b
-0,     108544,     108544,     1024,     4096, 0x93edce33
-0,     109568,     109568,     1024,     4096, 0xcdfbd519
-0,     110592,     110592,     1024,     4096, 0x8463f2bb
-0,     111616,     111616,     1024,     4096, 0x5ca6f869
-0,     112640,     112640,     1024,     4096, 0x099a0398
-0,     113664,     113664,     1024,     4096, 0xa7fa10f0
-0,     114688,     114688,     1024,     4096, 0x28caddd3
-0,     115712,     115712,     1024,     4096, 0x4852ef8b
-0,     116736,     116736,     1024,     4096, 0x0250ee7b
-0,     117760,     117760,     1024,     4096, 0x9583da21
-0,     118784,     118784,     1024,     4096, 0x7365fb33
-0,     119808,     119808,     1024,     4096, 0x28c82066
-0,     120832,     120832,     1024,     4096, 0x94650be4
-0,     121856,     121856,     1024,     4096, 0xeb21f8eb
-0,     122880,     122880,     1024,     4096, 0xcd88f455
-0,     123904,     123904,     1024,     4096, 0x66a9efaf
-0,     124928,     124928,     1024,     4096, 0x5500c6ed
-0,     125952,     125952,     1024,     4096, 0x0ee0c62d
-0,     126976,     126976,     1024,     4096, 0x34d30762
-0,     128000,     128000,     1024,     4096, 0x8c0dec9f
-0,     129024,     129024,     1024,     4096, 0x790011d8
-0,     130048,     130048,     1024,     4096, 0xb76a1136
-0,     131072,     131072,     1024,     4096, 0x7dddfea7
-0,     132096,     132096,     1024,     4096, 0xdfa3ed49
-0,     133120,     133120,     1024,     4096, 0xc129f54e
-0,     134144,     134144,     1024,     4096, 0x9a86f077
-0,     135168,     135168,     1024,     4096, 0xc9eef209
-0,     136192,     136192,     1024,     4096, 0x72d4029b
-0,     137216,     137216,     1024,     4096, 0x8ec20590
-0,     138240,     138240,     1024,     4096, 0xd48f18ed
-0,     139264,     139264,     1024,     4096, 0xd807eadc
-0,     140288,     140288,     1024,     4096, 0x1e2bea09
-0,     141312,     141312,     1024,     4096, 0x937af12e
-0,     142336,     142336,     1024,     4096, 0xdedbf303
-0,     143360,     143360,     1024,     4096, 0xdc75df88
-0,     144384,     144384,     1024,     4096, 0x1845ffd6
-0,     145408,     145408,     1024,     4096, 0x20e8150c
-0,     146432,     146432,     1024,     4096, 0x5ea7eeef
-0,     147456,     147456,     1024,     4096, 0x4c7efa21
-0,     148480,     148480,     1024,     4096, 0x8b97e30e
-0,     149504,     149504,     1024,     4096, 0xe5040228
-0,     150528,     150528,     1024,     4096, 0x6283f78c
-0,     151552,     151552,     1024,     4096, 0xe7100140
-0,     152576,     152576,     1024,     4096, 0x9ea6f9b2
-0,     153600,     153600,     1024,     4096, 0x5f0e1563
-0,     154624,     154624,     1024,     4096, 0x510bf18e
-0,     155648,     155648,     1024,     4096, 0x5f4fe425
-0,     156672,     156672,     1024,     4096, 0x507af3c0
-0,     157696,     157696,     1024,     4096, 0xbf14ddc6
-0,     158720,     158720,     1024,     4096, 0x1871ed69
-0,     159744,     159744,     1024,     4096, 0xc349ef9f
-0,     160768,     160768,     1024,     4096, 0x4e2c1834
-0,     161792,     161792,     1024,     4096, 0x2383fe04
-0,     162816,     162816,     1024,     4096, 0x6626f415
-0,     163840,     163840,     1024,     4096, 0x283be379
-0,     164864,     164864,     1024,     4096, 0xc76c0ceb
-0,     165888,     165888,     1024,     4096, 0xa0b8040f
-0,     166912,     166912,     1024,     4096, 0x2535eb6d
-0,     167936,     167936,     1024,     4096, 0xeb180bb5
-0,     168960,     168960,     1024,     4096, 0xbc5cf059
-0,     169984,     169984,     1024,     4096, 0x1862f1ac
-0,     171008,     171008,     1024,     4096, 0x9cc2ea2b
-0,     172032,     172032,     1024,     4096, 0xbb9ae754
-0,     173056,     173056,     1024,     4096, 0x716debb5
-0,     174080,     174080,     1024,     4096, 0xff3aff2a
-0,     175104,     175104,     1024,     4096, 0x755dfa5c
-0,     176128,     176128,     1024,     4096, 0x3b830605
-0,     177152,     177152,     1024,     4096, 0x0030dc9e
-0,     178176,     178176,     1024,     4096, 0xb017fd54
-0,     179200,     179200,     1024,     4096, 0x5c7dfa2e
-0,     180224,     180224,     1024,     4096, 0x7887e599
-0,     181248,     181248,     1024,     4096, 0xb730e72f
-0,     182272,     182272,     1024,     4096, 0x6bb3fae4
-0,     183296,     183296,     1024,     4096, 0xcc08fc36
-0,     184320,     184320,     1024,     4096, 0x5afd9ec2
-0,     185344,     185344,     1024,     4096, 0xa1d3e83d
-0,     186368,     186368,     1024,     4096, 0x7f96013c
-0,     187392,     187392,     1024,     4096, 0x7a0afe31
-0,     188416,     188416,     1024,     4096, 0xa37d1701
-0,     189440,     189440,     1024,     4096, 0x4615ebc2
-0,     190464,     190464,     1024,     4096, 0x217005c1
-0,     191488,     191488,     1024,     4096, 0x1755f789
-0,     192512,     192512,     1024,     4096, 0x83e6db65
-0,     193536,     193536,     1024,     4096, 0x92ab1447
-0,     194560,     194560,     1024,     4096, 0xedbdf383
-0,     195584,     195584,     1024,     4096, 0x4316f6a9
-0,     196608,     196608,     1024,     4096, 0x1a6a0b4c
-0,     197632,     197632,     1024,     4096, 0xdfd809b7
-0,     198656,     198656,     1024,     4096, 0x1d2cf5f1
-0,     199680,     199680,     1024,     4096, 0xd366f4a1
-0,     200704,     200704,     1024,     4096, 0x6a2f86e0
-0,     201728,     201728,     1024,     4096, 0xf51f08a9
-0,     202752,     202752,     1024,     4096, 0x05edefa8
-0,     203776,     203776,     1024,     4096, 0x255df2a6
-0,     204800,     204800,     1024,     4096, 0xe881d9e4
-0,     205824,     205824,     1024,     4096, 0x50380523
-0,     206848,     206848,     1024,     4096, 0x8b93eb26
-0,     207872,     207872,     1024,     4096, 0x759cf94c
-0,     208896,     208896,     1024,     4096, 0x8474f591
-0,     209920,     209920,     1024,     4096, 0x0030dc9e
-0,     210944,     210944,     1024,     4096, 0xb017fd54
-0,     211968,     211968,     1024,     4096, 0x5c7dfa2e
-0,     212992,     212992,     1024,     4096, 0x7887e599
-0,     214016,     214016,     1024,     4096, 0xb730e72f
-0,     215040,     215040,     1024,     4096, 0x6bb3fae4
-0,     216064,     216064,     1024,     4096, 0xcc08fc36
-0,     217088,     217088,     1024,     4096, 0x5afd9ec2
-0,     218112,     218112,     1024,     4096, 0xa1d3e83d
-0,     219136,     219136,     1024,     4096, 0x7f96013c
-0,     220160,     220160,     1024,     4096, 0x7a0afe31
-0,     221184,     221184,     1024,     4096, 0xa37d1701
-0,     222208,     222208,     1024,     4096, 0x4615ebc2
-0,     223232,     223232,     1024,     4096, 0x217005c1
-0,     224256,     224256,     1024,     4096, 0x1755f789
-0,     225280,     225280,     1024,     4096, 0x83e6db65
-0,     226304,     226304,     1024,     4096, 0x92ab1447
-0,     227328,     227328,     1024,     4096, 0xedbdf383
-0,     228352,     228352,     1024,     4096, 0x4316f6a9
-0,     229376,     229376,     1024,     4096, 0x1a6a0b4c
-0,     230400,     230400,     1024,     4096, 0xdfd809b7
-0,     231424,     231424,     1024,     4096, 0x1d2cf5f1
-0,     232448,     232448,     1024,     4096, 0xd366f4a1
-0,     233472,     233472,     1024,     4096, 0x6a2f86e0
-0,     234496,     234496,     1024,     4096, 0xf51f08a9
-0,     235520,     235520,     1024,     4096, 0x05edefa8
-0,     236544,     236544,     1024,     4096, 0x255df2a6
-0,     237568,     237568,     1024,     4096, 0xe881d9e4
-0,     238592,     238592,     1024,     4096, 0x50380523
-0,     239616,     239616,     1024,     4096, 0x8b93eb26
-0,     240640,     240640,     1024,     4096, 0x759cf94c
-0,     241664,     241664,     1024,     4096, 0x8474f591
-0,     242688,     242688,     1024,     4096, 0x0030dc9e
-0,     243712,     243712,     1024,     4096, 0xb017fd54
-0,     244736,     244736,     1024,     4096, 0x5c7dfa2e
-0,     245760,     245760,     1024,     4096, 0x7887e599
-0,     246784,     246784,     1024,     4096, 0xb730e72f
-0,     247808,     247808,     1024,     4096, 0x6bb3fae4
-0,     248832,     248832,     1024,     4096, 0xcc08fc36
-0,     249856,     249856,     1024,     4096, 0x5afd9ec2
-0,     250880,     250880,     1024,     4096, 0xa1d3e83d
-0,     251904,     251904,     1024,     4096, 0x7f96013c
-0,     252928,     252928,     1024,     4096, 0x7a0afe31
-0,     253952,     253952,     1024,     4096, 0xa37d1701
-0,     254976,     254976,     1024,     4096, 0x4615ebc2
-0,     256000,     256000,     1024,     4096, 0x217005c1
-0,     257024,     257024,     1024,     4096, 0x1755f789
-0,     258048,     258048,     1024,     4096, 0x83e6db65
-0,     259072,     259072,     1024,     4096, 0x92ab1447
-0,     260096,     260096,     1024,     4096, 0xedbdf383
-0,     261120,     261120,     1024,     4096, 0x4316f6a9
-0,     262144,     262144,     1024,     4096, 0x1a6a0b4c
-0,     263168,     263168,     1024,     4096, 0xdfd809b7
-0,     264192,     264192,      408,     1632, 0xf412313e
+0,          0,          0,     4096,    16384, 0x02ebe66b
+0,       4096,       4096,     4096,    16384, 0x35bfe081
+0,       8192,       8192,     4096,    16384, 0x3f90e0a9
+0,      12288,      12288,     4096,    16384, 0xd389dc43
+0,      16384,      16384,     4096,    16384, 0x9d5add49
+0,      20480,      20480,     4096,    16384, 0x378ee333
+0,      24576,      24576,     4096,    16384, 0xabf6df0f
+0,      28672,      28672,     4096,    16384, 0xedefe76f
+0,      32768,      32768,     4096,    16384, 0x02ebe66b
+0,      36864,      36864,     4096,    16384, 0x35bfe081
+0,      40960,      40960,     4096,    16384, 0xdbc2b3b9
+0,      45056,      45056,     4096,    16384, 0xe92bd835
+0,      49152,      49152,     4096,    16384, 0x1126dca3
+0,      53248,      53248,     4096,    16384, 0x9647edcf
+0,      57344,      57344,     4096,    16384, 0x5cc345aa
+0,      61440,      61440,     4096,    16384, 0x19d7bd51
+0,      65536,      65536,     4096,    16384, 0x19eccef7
+0,      69632,      69632,     4096,    16384, 0x4b68eeed
+0,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+0,      77824,      77824,     4096,    16384, 0xe9b2e069
+0,      81920,      81920,     4096,    16384, 0xcaa5590e
+0,      86016,      86016,     4096,    16384, 0x47d0b227
+0,      90112,      90112,     4096,    16384, 0x446ba7a4
+0,      94208,      94208,     4096,    16384, 0x299b2e17
+0,      98304,      98304,     4096,    16384, 0xc51affa2
+0,     102400,     102400,     4096,    16384, 0xb4970fcf
+0,     106496,     106496,     4096,    16384, 0xe48af9fc
+0,     110592,     110592,     4096,    16384, 0xc2beffbb
+0,     114688,     114688,     4096,    16384, 0xb9d99627
+0,     118784,     118784,     4096,    16384, 0xb65a2086
+0,     122880,     122880,     4096,    16384, 0x6386714b
+0,     126976,     126976,     4096,    16384, 0x92a3171e
+0,     131072,     131072,     4096,    16384, 0x78bad1e2
+0,     135168,     135168,     4096,    16384, 0x63301330
+0,     139264,     139264,     4096,    16384, 0xd663b943
+0,     143360,     143360,     4096,    16384, 0xdcafe377
+0,     147456,     147456,     4096,    16384, 0xfb2cd701
+0,     151552,     151552,     4096,    16384, 0x91c30201
+0,     155648,     155648,     4096,    16384, 0xf23da341
+0,     159744,     159744,     4096,    16384, 0xe8d5fa0a
+0,     163840,     163840,     4096,    16384, 0x519bdfef
+0,     167936,     167936,     4096,    16384, 0xf2fcd803
+0,     172032,     172032,     4096,    16384, 0xd5ceccbc
+0,     176128,     176128,     4096,    16384, 0xd48ada43
+0,     180224,     180224,     4096,    16384, 0x5a4ac40f
+0,     184320,     184320,     4096,    16384, 0x29db868a
+0,     188416,     188416,     4096,    16384, 0xa2a0002b
+0,     192512,     192512,     4096,    16384, 0xbb0bd9f6
+0,     196608,     196608,     4096,    16384, 0x338dffa4
+0,     200704,     200704,     4096,    16384, 0x970b71f5
+0,     204800,     204800,     4096,    16384, 0x0521c397
+0,     208896,     208896,     4096,    16384, 0xff5ec9de
+0,     212992,     212992,     4096,    16384, 0x5a4ac40f
+0,     217088,     217088,     4096,    16384, 0x29db868a
+0,     221184,     221184,     4096,    16384, 0xa2a0002b
+0,     225280,     225280,     4096,    16384, 0xbb0bd9f6
+0,     229376,     229376,     4096,    16384, 0x338dffa4
+0,     233472,     233472,     4096,    16384, 0x970b71f5
+0,     237568,     237568,     4096,    16384, 0x0521c397
+0,     241664,     241664,     4096,    16384, 0xff5ec9de
+0,     245760,     245760,     4096,    16384, 0x5a4ac40f
+0,     249856,     249856,     4096,    16384, 0x29db868a
+0,     253952,     253952,     4096,    16384, 0xa2a0002b
+0,     258048,     258048,     4096,    16384, 0xbb0bd9f6
+0,     262144,     262144,     2456,     9824, 0xb3f84641
diff --git a/tests/ref/fate/filter-dcshift b/tests/ref/fate/filter-dcshift
index 4ad1401a9e..aaff1d0f04 100644
--- a/tests/ref/fate/filter-dcshift
+++ b/tests/ref/fate/filter-dcshift
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x96868842
-0,       1024,       1024,     1024,     4096, 0xeff98700
-0,       2048,       2048,     1024,     4096, 0x6ea28e1e
-0,       3072,       3072,     1024,     4096, 0x67b982be
-0,       4096,       4096,     1024,     4096, 0xd08a8302
-0,       5120,       5120,     1024,     4096, 0xfdf891dc
-0,       6144,       6144,     1024,     4096, 0xbec4784a
-0,       7168,       7168,     1024,     4096, 0x04ca910a
-0,       8192,       8192,     1024,     4096, 0xe4af87d0
-0,       9216,       9216,     1024,     4096, 0xc7f18c66
-0,      10240,      10240,     1024,     4096, 0x6448732a
-0,      11264,      11264,     1024,     4096, 0x98b89706
-0,      12288,      12288,     1024,     4096, 0xf47887f4
-0,      13312,      13312,     1024,     4096, 0x387290d2
-0,      14336,      14336,     1024,     4096, 0xc5716e84
-0,      15360,      15360,     1024,     4096, 0x94de8aa8
-0,      16384,      16384,     1024,     4096, 0x3a618d88
-0,      17408,      17408,     1024,     4096, 0xfeb56ec2
-0,      18432,      18432,     1024,     4096, 0x55fe8fb6
-0,      19456,      19456,     1024,     4096, 0x8ff788fa
+0,          0,          0,     4096,    16384, 0x9eb7203c
+0,       4096,       4096,     4096,    16384, 0x051a1e50
+0,       8192,       8192,     4096,    16384, 0xfb151e84
+0,      12288,      12288,     4096,    16384, 0xbd041210
+0,      16384,      16384,     4096,    16384, 0x23c91518
+0,      20480,      20480,     4096,    16384, 0xe45c1d10
+0,      24576,      24576,     4096,    16384, 0xe4081edc
+0,      28672,      28672,     4096,    16384, 0x4d0f2140
+0,      32768,      32768,     4096,    16384, 0x9eb7203c
+0,      36864,      36864,     4096,    16384, 0x051a1e50
+0,      40960,      40960,     4096,    16384, 0x16d3f171
+0,      45056,      45056,     4096,    16384, 0x7b1e05fe
+0,      49152,      49152,     4096,    16384, 0x17292896
+0,      53248,      53248,     4096,    16384, 0xdfe137ae
+0,      57344,      57344,     4096,    16384, 0x26c16d5e
+0,      61440,      61440,     4096,    16384, 0xb8691740
+0,      65536,      65536,     4096,    16384, 0x685d32e8
+0,      69632,      69632,     4096,    16384, 0x603140de
+0,      73728,      73728,     4096,    16384, 0x4f8451ae
+0,      77824,      77824,     4096,    16384, 0xcc541022
diff --git a/tests/ref/fate/filter-earwax b/tests/ref/fate/filter-earwax
index 7626482899..ebd57fb500 100644
--- a/tests/ref/fate/filter-earwax
+++ b/tests/ref/fate/filter-earwax
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0xb7e1f437
-0,       1024,       1024,     1024,     4096, 0xa031042a
-0,       2048,       2048,     1024,     4096, 0x9b72ed0f
-0,       3072,       3072,     1024,     4096, 0xff14ed33
-0,       4096,       4096,     1024,     4096, 0x96eef519
-0,       5120,       5120,     1024,     4096, 0x290d0ca0
-0,       6144,       6144,     1024,     4096, 0x0393fbf5
-0,       7168,       7168,     1024,     4096, 0xed89ef59
-0,       8192,       8192,     1024,     4096, 0xf664e969
-0,       9216,       9216,     1024,     4096, 0x261a05e4
-0,      10240,      10240,     1024,     4096, 0xc334ff5b
-0,      11264,      11264,     1024,     4096, 0x030ffa65
-0,      12288,      12288,     1024,     4096, 0xcfb4e835
-0,      13312,      13312,     1024,     4096, 0xd9adf7ff
-0,      14336,      14336,     1024,     4096, 0x5e9001ae
-0,      15360,      15360,     1024,     4096, 0xbfaf0174
-0,      16384,      16384,     1024,     4096, 0x8cf3f061
-0,      17408,      17408,     1024,     4096, 0x35ffece5
-0,      18432,      18432,     1024,     4096, 0x1de801e2
-0,      19456,      19456,     1024,     4096, 0xa1a40372
+0,          0,          0,     4096,    16384, 0x07e1d2c1
+0,       4096,       4096,     4096,    16384, 0x669aed25
+0,       8192,       8192,     4096,    16384, 0x4df6e92b
+0,      12288,      12288,     4096,    16384, 0xd7a5e365
+0,      16384,      16384,     4096,    16384, 0xd4cce2a9
+0,      20480,      20480,     4096,    16384, 0x3d82e07d
+0,      24576,      24576,     4096,    16384, 0xd5f5d64f
+0,      28672,      28672,     4096,    16384, 0x29f1dbf1
+0,      32768,      32768,     4096,    16384, 0xf287e2a9
+0,      36864,      36864,     4096,    16384, 0x669aed25
+0,      40960,      40960,     4096,    16384, 0x549b0a60
+0,      45056,      45056,     4096,    16384, 0x1234d369
+0,      49152,      49152,     4096,    16384, 0x93309cc3
+0,      53248,      53248,     4096,    16384, 0xebeee5b3
+0,      57344,      57344,     4096,    16384, 0x981ee56d
+0,      61440,      61440,     4096,    16384, 0x7e7706c2
+0,      65536,      65536,     4096,    16384, 0x164f2ffc
+0,      69632,      69632,     4096,    16384, 0x7147de0b
+0,      73728,      73728,     4096,    16384, 0xca378eb9
+0,      77824,      77824,     4096,    16384, 0x643b9baf
diff --git a/tests/ref/fate/filter-extrastereo b/tests/ref/fate/filter-extrastereo
index a94d5f2e95..fdf630897e 100644
--- a/tests/ref/fate/filter-extrastereo
+++ b/tests/ref/fate/filter-extrastereo
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x29e3eecf
-0,       1024,       1024,     1024,     4096, 0x18390b96
-0,       2048,       2048,     1024,     4096, 0xc477fa99
-0,       3072,       3072,     1024,     4096, 0x3bc0f14f
-0,       4096,       4096,     1024,     4096, 0x2379ed91
-0,       5120,       5120,     1024,     4096, 0xfd6a0070
-0,       6144,       6144,     1024,     4096, 0x0b01f4cf
-0,       7168,       7168,     1024,     4096, 0x6716fd93
-0,       8192,       8192,     1024,     4096, 0x1840f25b
-0,       9216,       9216,     1024,     4096, 0x9c1ffaf1
-0,      10240,      10240,     1024,     4096, 0xcbedefaf
-0,      11264,      11264,     1024,     4096, 0x3e050390
-0,      12288,      12288,     1024,     4096, 0xb30e0090
-0,      13312,      13312,     1024,     4096, 0x26b8f75b
-0,      14336,      14336,     1024,     4096, 0xd706e311
-0,      15360,      15360,     1024,     4096, 0x0c480138
-0,      16384,      16384,     1024,     4096, 0x6c9a0216
-0,      17408,      17408,     1024,     4096, 0x7abce54f
-0,      18432,      18432,     1024,     4096, 0xda45f63f
-0,      19456,      19456,     1024,     4096, 0x50d5ff87
+0,          0,          0,     4096,    16384, 0x02ebe66b
+0,       4096,       4096,     4096,    16384, 0x35bfe081
+0,       8192,       8192,     4096,    16384, 0x3f90e0a9
+0,      12288,      12288,     4096,    16384, 0xd389dc43
+0,      16384,      16384,     4096,    16384, 0x9d5add49
+0,      20480,      20480,     4096,    16384, 0x378ee333
+0,      24576,      24576,     4096,    16384, 0xabf6df0f
+0,      28672,      28672,     4096,    16384, 0xedefe76f
+0,      32768,      32768,     4096,    16384, 0x02ebe66b
+0,      36864,      36864,     4096,    16384, 0x35bfe081
+0,      40960,      40960,     4096,    16384, 0xdbc2b3b9
+0,      45056,      45056,     4096,    16384, 0xe92bd835
+0,      49152,      49152,     4096,    16384, 0x1126dca3
+0,      53248,      53248,     4096,    16384, 0x9647edcf
+0,      57344,      57344,     4096,    16384, 0x5cc345aa
+0,      61440,      61440,     4096,    16384, 0x19d7bd51
+0,      65536,      65536,     4096,    16384, 0x19eccef7
+0,      69632,      69632,     4096,    16384, 0x4b68eeed
+0,      73728,      73728,     4096,    16384, 0x0b3d1bfc
+0,      77824,      77824,     4096,    16384, 0xe9b2e069
diff --git a/tests/ref/fate/filter-pan-downmix1 b/tests/ref/fate/filter-pan-downmix1
index 54a4189618..f42753af54 100644
--- a/tests/ref/fate/filter-pan-downmix1
+++ b/tests/ref/fate/filter-pan-downmix1
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x1290fa57
-0,       1024,       1024,     1024,     4096, 0xc363f67e
-0,       2048,       2048,     1024,     4096, 0x9a38065f
-0,       3072,       3072,     1024,     4096, 0xef2ae6e6
-0,       4096,       4096,     1024,     4096, 0x585fe3b5
-0,       5120,       5120,     1024,     4096, 0x2d38f104
-0,       6144,       6144,     1024,     4096, 0xaacfdcf8
-0,       7168,       7168,     1024,     4096, 0xed2d02b7
-0,       8192,       8192,     1024,     4096, 0xe1650058
-0,       9216,       9216,     1024,     4096, 0x0fe208a3
-0,      10240,      10240,     1024,     4096, 0xf1ece81f
-0,      11264,      11264,     1024,     4096, 0x836ef60b
-0,      12288,      12288,     1024,     4096, 0x6683e4cd
-0,      13312,      13312,     1024,     4096, 0x0b42025c
-0,      14336,      14336,     1024,     4096, 0x07fbda9c
-0,      15360,      15360,     1024,     4096, 0x8f3f07c0
-0,      16384,      16384,     1024,     4096, 0x145dfc54
-0,      17408,      17408,     1024,     4096, 0x4f74eeba
-0,      18432,      18432,     1024,     4096, 0xc75eea1e
-0,      19456,      19456,     1024,     4096, 0x08c7ed8e
+0,          0,          0,     4096,    16384, 0xf3e9de38
+0,       4096,       4096,     4096,    16384, 0x217ab486
+0,       8192,       8192,     4096,    16384, 0x2197e734
+0,      12288,      12288,     4096,    16384, 0x0e1fc994
+0,      16384,      16384,     4096,    16384, 0x7517c2e7
+0,      20480,      20480,     4096,    16384, 0x287ea3f3
+0,      24576,      24576,     4096,    16384, 0x0a5feaf5
+0,      28672,      28672,     4096,    16384, 0xe9a0dd42
+0,      32768,      32768,     4096,    16384, 0x4de9da44
+0,      36864,      36864,     4096,    16384, 0xab77eb08
+0,      40960,      40960,     4096,    16384, 0xa422b661
+0,      45056,      45056,     4096,    16384, 0x4ac2fd47
+0,      49152,      49152,     4096,    16384, 0x57b5a7cb
+0,      53248,      53248,     4096,    16384, 0x3825c66b
+0,      57344,      57344,     4096,    16384, 0xa422b661
+0,      61440,      61440,     4096,    16384, 0x4ac2fd47
+0,      65536,      65536,     4096,    16384, 0x57b5a7cb
+0,      69632,      69632,     4096,    16384, 0x3825c66b
+0,      73728,      73728,     4096,    16384, 0xa422b661
+0,      77824,      77824,     4096,    16384, 0x4ac2fd47
diff --git a/tests/ref/fate/filter-pan-downmix2 b/tests/ref/fate/filter-pan-downmix2
index b8cf98054c..7987a8a51f 100644
--- a/tests/ref/fate/filter-pan-downmix2
+++ b/tests/ref/fate/filter-pan-downmix2
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: 5 channels
-0,          0,          0,     1024,    10240, 0xfc3c0f05
-0,       1024,       1024,     1024,    10240, 0xc6c9d04b
-0,       2048,       2048,     1024,    10240, 0x1628c409
-0,       3072,       3072,     1024,    10240, 0x5ef50e5b
-0,       4096,       4096,     1024,    10240, 0xc4a0ff1a
-0,       5120,       5120,     1024,    10240, 0xb116da08
-0,       6144,       6144,     1024,    10240, 0x9b2cdf3d
-0,       7168,       7168,     1024,    10240, 0xf3cfe299
-0,       8192,       8192,     1024,    10240, 0x85dcbfc2
-0,       9216,       9216,     1024,    10240, 0xc748f5cf
-0,      10240,      10240,     1024,    10240, 0x7063ef46
-0,      11264,      11264,     1024,    10240, 0xa219da16
-0,      12288,      12288,     1024,    10240, 0xbf77e2ae
-0,      13312,      13312,     1024,    10240, 0xa71bd705
-0,      14336,      14336,     1024,    10240, 0x6878e3d6
-0,      15360,      15360,     1024,    10240, 0xb8f419a3
-0,      16384,      16384,     1024,    10240, 0xd7ccd236
-0,      17408,      17408,     1024,    10240, 0x48ee24ec
-0,      18432,      18432,     1024,    10240, 0xe9e8e37e
-0,      19456,      19456,     1024,    10240, 0x949f00ae
+0,          0,          0,     4096,    40960, 0x6e07b1c3
+0,       4096,       4096,     4096,    40960, 0x48899b25
+0,       8192,       8192,     4096,    40960, 0xe5bc7f1a
+0,      12288,      12288,     4096,    40960, 0x5893b74a
+0,      16384,      16384,     4096,    40960, 0xe828db5d
+0,      20480,      20480,     4096,    40960, 0x0d34ace8
+0,      24576,      24576,     4096,    40960, 0x008fa873
+0,      28672,      28672,     4096,    40960, 0x2064eaf4
+0,      32768,      32768,     4096,    40960, 0xb61fa202
+0,      36864,      36864,     4096,    40960, 0xbc167598
+0,      40960,      40960,     4096,    40960, 0xadc59a11
+0,      45056,      45056,     4096,    40960, 0xd2c27fb2
+0,      49152,      49152,     4096,    40960, 0x42c57686
+0,      53248,      53248,     4096,    40960, 0xb02059ae
+0,      57344,      57344,     4096,    40960, 0x0f8e5ba6
+0,      61440,      61440,     4096,    40960, 0x9bee70ad
+0,      65536,      65536,     4096,    40960, 0x12ca5387
+0,      69632,      69632,     4096,    40960, 0xac009dd7
+0,      73728,      73728,     4096,    40960, 0x83b4664f
+0,      77824,      77824,     4096,    40960, 0xd7f41340
diff --git a/tests/ref/fate/filter-pan-mono1 b/tests/ref/fate/filter-pan-mono1
index 80afee20a3..488eb5f737 100644
--- a/tests/ref/fate/filter-pan-mono1
+++ b/tests/ref/fate/filter-pan-mono1
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: mono
-0,          0,          0,     1024,     2048, 0x750f0a66
-0,       1024,       1024,     1024,     2048, 0x155cf063
-0,       2048,       2048,     1024,     2048, 0x1e43fc32
-0,       3072,       3072,     1024,     2048, 0x282ffc28
-0,       4096,       4096,     1024,     2048, 0x6d7bf000
-0,       5120,       5120,     1024,     2048, 0xc0b2f411
-0,       6144,       6144,     1024,     2048, 0xd711fb03
-0,       7168,       7168,     1024,     2048, 0x3164189c
-0,       8192,       8192,     1024,     2048, 0x8c69e827
-0,       9216,       9216,     1024,     2048, 0x562d0518
-0,      10240,      10240,     1024,     2048, 0x380aee27
-0,      11264,      11264,     1024,     2048, 0x990a03e4
-0,      12288,      12288,     1024,     2048, 0x68d7ef60
-0,      13312,      13312,     1024,     2048, 0xd13fef9e
-0,      14336,      14336,     1024,     2048, 0x009306e4
-0,      15360,      15360,     1024,     2048, 0x51850390
-0,      16384,      16384,     1024,     2048, 0xcd3ceeae
-0,      17408,      17408,     1024,     2048, 0x189ff277
-0,      18432,      18432,     1024,     2048, 0x4b98f68c
-0,      19456,      19456,     1024,     2048, 0x34eaf544
+0,          0,          0,     4096,     8192, 0x872af341
+0,       4096,       4096,     4096,     8192, 0x0ae4f7ce
+0,       8192,       8192,     4096,     8192, 0xceb1df59
+0,      12288,      12288,     4096,     8192, 0xc0d9e981
+0,      16384,      16384,     4096,     8192, 0x2d1dcd22
+0,      20480,      20480,     4096,     8192, 0xe06dfc64
+0,      24576,      24576,     4096,     8192, 0x824efe11
+0,      28672,      28672,     4096,     8192, 0xb4c0f85d
+0,      32768,      32768,     4096,     8192, 0xcd65deed
+0,      36864,      36864,     4096,     8192, 0x0e6edb9d
+0,      40960,      40960,     4096,     8192, 0xe254cff0
+0,      45056,      45056,     4096,     8192, 0x2f7b9900
+0,      49152,      49152,     4096,     8192, 0x3f4c142e
+0,      53248,      53248,     4096,     8192, 0x7a4a0826
+0,      57344,      57344,     4096,     8192, 0x65db11e9
+0,      61440,      61440,     4096,     8192, 0x1f887f95
+0,      65536,      65536,     4096,     8192, 0x17d4cdad
+0,      69632,      69632,     4096,     8192, 0xd037d9b5
+0,      73728,      73728,     4096,     8192, 0xe254cff0
+0,      77824,      77824,     4096,     8192, 0x2f7b9900
diff --git a/tests/ref/fate/filter-pan-mono2 b/tests/ref/fate/filter-pan-mono2
index 02046aebe2..4795e1479f 100644
--- a/tests/ref/fate/filter-pan-mono2
+++ b/tests/ref/fate/filter-pan-mono2
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: 1 channels
-0,          0,          0,     1024,     2048, 0x6130fb80
-0,       1024,       1024,     1024,     2048, 0xd5ef0930
-0,       2048,       2048,     1024,     2048, 0x40bce3f6
-0,       3072,       3072,     1024,     2048, 0x72e5d193
-0,       4096,       4096,     1024,     2048, 0xb005073f
-0,       5120,       5120,     1024,     2048, 0xa323fdbe
-0,       6144,       6144,     1024,     2048, 0xe5cbfe1e
-0,       7168,       7168,     1024,     2048, 0x4b42fe79
-0,       8192,       8192,     1024,     2048, 0x384eedea
-0,       9216,       9216,     1024,     2048, 0xe5cdf825
-0,      10240,      10240,     1024,     2048, 0xc2970ec0
-0,      11264,      11264,     1024,     2048, 0xa85fe5e0
-0,      12288,      12288,     1024,     2048, 0xfd51f2de
-0,      13312,      13312,     1024,     2048, 0xa1aafe30
-0,      14336,      14336,     1024,     2048, 0x8770fea2
-0,      15360,      15360,     1024,     2048, 0x67c50d76
-0,      16384,      16384,     1024,     2048, 0x7772fbc8
-0,      17408,      17408,     1024,     2048, 0xc48eff54
-0,      18432,      18432,     1024,     2048, 0x2e14f359
-0,      19456,      19456,     1024,     2048, 0x2df70a60
+0,          0,          0,     4096,     8192, 0x7016ba57
+0,       4096,       4096,     4096,     8192, 0xab9701c1
+0,       8192,       8192,     4096,     8192, 0x0776dacd
+0,      12288,      12288,     4096,     8192, 0x29aefd44
+0,      16384,      16384,     4096,     8192, 0x23ccf8f3
+0,      20480,      20480,     4096,     8192, 0x5debfa42
+0,      24576,      24576,     4096,     8192, 0xd365e9c4
+0,      28672,      28672,     4096,     8192, 0x7ef5f7b4
+0,      32768,      32768,     4096,     8192, 0xf229dc95
+0,      36864,      36864,     4096,     8192, 0xeee3e2c4
+0,      40960,      40960,     4096,     8192, 0x3110fb40
+0,      45056,      45056,     4096,     8192, 0x72a4f036
+0,      49152,      49152,     4096,     8192, 0x025dfac4
+0,      53248,      53248,     4096,     8192, 0xa13ff290
+0,      57344,      57344,     4096,     8192, 0x6ce6f277
+0,      61440,      61440,     4096,     8192, 0x8f3df6ed
+0,      65536,      65536,     4096,     8192, 0xbdcaeafc
+0,      69632,      69632,     4096,     8192, 0xda5df33f
+0,      73728,      73728,     4096,     8192, 0x3110fb40
+0,      77824,      77824,     4096,     8192, 0x72a4f036
diff --git a/tests/ref/fate/filter-pan-stereo1 b/tests/ref/fate/filter-pan-stereo1
index d1cfddb720..d339e7a5d6 100644
--- a/tests/ref/fate/filter-pan-stereo1
+++ b/tests/ref/fate/filter-pan-stereo1
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x337efeb6
-0,       1024,       1024,     1024,     4096, 0x5c4aea76
-0,       2048,       2048,     1024,     4096, 0xec82ee33
-0,       3072,       3072,     1024,     4096, 0xfe66f9df
-0,       4096,       4096,     1024,     4096, 0x7291e981
-0,       5120,       5120,     1024,     4096, 0x390be918
-0,       6144,       6144,     1024,     4096, 0x3c6fff4f
-0,       7168,       7168,     1024,     4096, 0xa46b12b7
-0,       8192,       8192,     1024,     4096, 0xcbb4e329
-0,       9216,       9216,     1024,     4096, 0xe66f0265
-0,      10240,      10240,     1024,     4096, 0x1cffe900
-0,      11264,      11264,     1024,     4096, 0xd86efd12
-0,      12288,      12288,     1024,     4096, 0xa122f221
-0,      13312,      13312,     1024,     4096, 0x13500181
-0,      14336,      14336,     1024,     4096, 0x4d9a0bd7
-0,      15360,      15360,     1024,     4096, 0xa3620ba4
-0,      16384,      16384,     1024,     4096, 0x60e8e816
-0,      17408,      17408,     1024,     4096, 0xea75e8a5
-0,      18432,      18432,     1024,     4096, 0xc6c2f1a5
-0,      19456,      19456,     1024,     4096, 0xa83aebaa
+0,          0,          0,     4096,    16384, 0xee65d16b
+0,       4096,       4096,     4096,    16384, 0xe1f0e4bd
+0,       8192,       8192,     4096,    16384, 0x55b6cbbe
+0,      12288,      12288,     4096,    16384, 0x1c960b2c
+0,      16384,      16384,     4096,    16384, 0xee3fae37
+0,      20480,      20480,     4096,    16384, 0x18bee034
+0,      24576,      24576,     4096,    16384, 0xb126eeb6
+0,      28672,      28672,     4096,    16384, 0xe3cad8a3
+0,      32768,      32768,     4096,    16384, 0xc118c2b2
+0,      36864,      36864,     4096,    16384, 0xf511cdb5
+0,      40960,      40960,     4096,    16384, 0x5115b057
+0,      45056,      45056,     4096,    16384, 0x3e7de091
+0,      49152,      49152,     4096,    16384, 0x7237f4b7
+0,      53248,      53248,     4096,    16384, 0xb9d39b8c
+0,      57344,      57344,     4096,    16384, 0xf992cf31
+0,      61440,      61440,     4096,    16384, 0x79a69b64
+0,      65536,      65536,     4096,    16384, 0xc1a4d301
+0,      69632,      69632,     4096,    16384, 0x7b56f3e5
+0,      73728,      73728,     4096,    16384, 0xcc2f8be3
+0,      77824,      77824,     4096,    16384, 0x4fd3cd37
diff --git a/tests/ref/fate/filter-pan-stereo2 b/tests/ref/fate/filter-pan-stereo2
index c206058bbd..6079c31998 100644
--- a/tests/ref/fate/filter-pan-stereo2
+++ b/tests/ref/fate/filter-pan-stereo2
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x8801f679
-0,       1024,       1024,     1024,     4096, 0xbf6906ca
-0,       2048,       2048,     1024,     4096, 0xec8eeac9
-0,       3072,       3072,     1024,     4096, 0x938d0541
-0,       4096,       4096,     1024,     4096, 0xf0820121
-0,       5120,       5120,     1024,     4096, 0xd1da0083
-0,       6144,       6144,     1024,     4096, 0x13e502bf
-0,       7168,       7168,     1024,     4096, 0xcc68046f
-0,       8192,       8192,     1024,     4096, 0xb3e704db
-0,       9216,       9216,     1024,     4096, 0x8a9f07c0
-0,      10240,      10240,     1024,     4096, 0x50e0f62f
-0,      11264,      11264,     1024,     4096, 0xea48f6b6
-0,      12288,      12288,     1024,     4096, 0x76c31e7c
-0,      13312,      13312,     1024,     4096, 0x3629effc
-0,      14336,      14336,     1024,     4096, 0x3c450759
-0,      15360,      15360,     1024,     4096, 0x9569f61c
-0,      16384,      16384,     1024,     4096, 0x0685f076
-0,      17408,      17408,     1024,     4096, 0x3fc3fb15
-0,      18432,      18432,     1024,     4096, 0x7dc5fb44
-0,      19456,      19456,     1024,     4096, 0xcc3e03ab
+0,          0,          0,     4096,    16384, 0xe5e3ed5c
+0,       4096,       4096,     4096,    16384, 0x298408d2
+0,       8192,       8192,     4096,    16384, 0x7cd7f98f
+0,      12288,      12288,     4096,    16384, 0xed5b0c0b
+0,      16384,      16384,     4096,    16384, 0xf748ea98
+0,      20480,      20480,     4096,    16384, 0x2bef026f
+0,      24576,      24576,     4096,    16384, 0x9e84e12e
+0,      28672,      28672,     4096,    16384, 0x9c881add
+0,      32768,      32768,     4096,    16384, 0x081aec11
+0,      36864,      36864,     4096,    16384, 0x2b5ac497
+0,      40960,      40960,     4096,    16384, 0xbdaee67d
+0,      45056,      45056,     4096,    16384, 0x20d2c2da
+0,      49152,      49152,     4096,    16384, 0xb956e349
+0,      53248,      53248,     4096,    16384, 0x95a1f811
+0,      57344,      57344,     4096,    16384, 0xc262f67e
+0,      61440,      61440,     4096,    16384, 0x56e5ec70
+0,      65536,      65536,     4096,    16384, 0x559fd188
+0,      69632,      69632,     4096,    16384, 0x318ee4e9
+0,      73728,      73728,     4096,    16384, 0xa87c0dd5
+0,      77824,      77824,     4096,    16384, 0xcb76fdf3
diff --git a/tests/ref/fate/filter-pan-stereo3 b/tests/ref/fate/filter-pan-stereo3
index 726608b2bc..e728b17188 100644
--- a/tests/ref/fate/filter-pan-stereo3
+++ b/tests/ref/fate/filter-pan-stereo3
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0xa0d1fbb3
-0,       1024,       1024,     1024,     4096, 0x598a056c
-0,       2048,       2048,     1024,     4096, 0x741ded28
-0,       3072,       3072,     1024,     4096, 0xc651b0ec
-0,       4096,       4096,     1024,     4096, 0x1082057c
-0,       5120,       5120,     1024,     4096, 0x70f7f00d
-0,       6144,       6144,     1024,     4096, 0xaed7fc53
-0,       7168,       7168,     1024,     4096, 0x4250faae
-0,       8192,       8192,     1024,     4096, 0xf7fcf61a
-0,       9216,       9216,     1024,     4096, 0xb1350562
-0,      10240,      10240,     1024,     4096, 0x16adea0b
-0,      11264,      11264,     1024,     4096, 0x706fd834
-0,      12288,      12288,     1024,     4096, 0x5431dd24
-0,      13312,      13312,     1024,     4096, 0xfaedfb73
-0,      14336,      14336,     1024,     4096, 0xee3d07e2
-0,      15360,      15360,     1024,     4096, 0x2561eeb8
-0,      16384,      16384,     1024,     4096, 0x8f76fc05
-0,      17408,      17408,     1024,     4096, 0xef05f0a1
-0,      18432,      18432,     1024,     4096, 0x4e92f19a
-0,      19456,      19456,     1024,     4096, 0x81b6e0bc
+0,          0,          0,     4096,    16384, 0x71829f51
+0,       4096,       4096,     4096,    16384, 0x40eeeca8
+0,       8192,       8192,     4096,    16384, 0x9a46bdd9
+0,      12288,      12288,     4096,    16384, 0xefe3cf4f
+0,      16384,      16384,     4096,    16384, 0x69adbf29
+0,      20480,      20480,     4096,    16384, 0xa249df3d
+0,      24576,      24576,     4096,    16384, 0x865fb8e4
+0,      28672,      28672,     4096,    16384, 0xdc78ceab
+0,      32768,      32768,     4096,    16384, 0x2721c39d
+0,      36864,      36864,     4096,    16384, 0x5f11d8be
+0,      40960,      40960,     4096,    16384, 0x1b0de341
+0,      45056,      45056,     4096,    16384, 0x9157d43a
+0,      49152,      49152,     4096,    16384, 0x75bbe2c2
+0,      53248,      53248,     4096,    16384, 0x8a5cee7d
+0,      57344,      57344,     4096,    16384, 0x60dee072
+0,      61440,      61440,     4096,    16384, 0x1dfaede0
+0,      65536,      65536,     4096,    16384, 0x165ee0f2
+0,      69632,      69632,     4096,    16384, 0xb9edd546
+0,      73728,      73728,     4096,    16384, 0x1b0de341
+0,      77824,      77824,     4096,    16384, 0x9157d43a
diff --git a/tests/ref/fate/filter-pan-stereo4 b/tests/ref/fate/filter-pan-stereo4
index 92ed0685fe..81dc30b3bc 100644
--- a/tests/ref/fate/filter-pan-stereo4
+++ b/tests/ref/fate/filter-pan-stereo4
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: 2 channels
-0,          0,          0,     1024,     4096, 0x7bd6fc44
-0,       1024,       1024,     1024,     4096, 0xed38ec37
-0,       2048,       2048,     1024,     4096, 0x4696ea64
-0,       3072,       3072,     1024,     4096, 0xf2c8e38c
-0,       4096,       4096,     1024,     4096, 0x9aa8f5c9
-0,       5120,       5120,     1024,     4096, 0xfb46fe06
-0,       6144,       6144,     1024,     4096, 0x6700fa3e
-0,       7168,       7168,     1024,     4096, 0x235e0687
-0,       8192,       8192,     1024,     4096, 0x8b9aecab
-0,       9216,       9216,     1024,     4096, 0x62f3e0db
-0,      10240,      10240,     1024,     4096, 0xe59ef89c
-0,      11264,      11264,     1024,     4096, 0x1a48f2fe
-0,      12288,      12288,     1024,     4096, 0x9026e182
-0,      13312,      13312,     1024,     4096, 0xec4d05d1
-0,      14336,      14336,     1024,     4096, 0x7ee70559
-0,      15360,      15360,     1024,     4096, 0x807ae3e6
-0,      16384,      16384,     1024,     4096, 0xf0d2fc29
-0,      17408,      17408,     1024,     4096, 0xd9e7f52b
-0,      18432,      18432,     1024,     4096, 0x0f1ce5f7
-0,      19456,      19456,     1024,     4096, 0x6b3cf294
+0,          0,          0,     4096,    16384, 0xdefbb698
+0,       4096,       4096,     4096,    16384, 0xeadbf4b2
+0,       8192,       8192,     4096,    16384, 0x4727b94d
+0,      12288,      12288,     4096,    16384, 0x1647d0a1
+0,      16384,      16384,     4096,    16384, 0x2dfdca0c
+0,      20480,      20480,     4096,    16384, 0x71a7070f
+0,      24576,      24576,     4096,    16384, 0x7a4ed841
+0,      28672,      28672,     4096,    16384, 0xa5a0dce9
+0,      32768,      32768,     4096,    16384, 0xfa72bbc8
+0,      36864,      36864,     4096,    16384, 0xf3d5f0e1
+0,      40960,      40960,     4096,    16384, 0x7ef8f45c
+0,      45056,      45056,     4096,    16384, 0x0138c310
+0,      49152,      49152,     4096,    16384, 0x07b5f81c
+0,      53248,      53248,     4096,    16384, 0x3d8be889
+0,      57344,      57344,     4096,    16384, 0xa13cd269
+0,      61440,      61440,     4096,    16384, 0xa40f002a
+0,      65536,      65536,     4096,    16384, 0xddc1caad
+0,      69632,      69632,     4096,    16384, 0x925de035
+0,      73728,      73728,     4096,    16384, 0x7ef8f45c
+0,      77824,      77824,     4096,    16384, 0x0138c310
diff --git a/tests/ref/fate/filter-pan-upmix1 b/tests/ref/fate/filter-pan-upmix1
index c36192c22a..b4366fc8e2 100644
--- a/tests/ref/fate/filter-pan-upmix1
+++ b/tests/ref/fate/filter-pan-upmix1
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: 4 channels
-0,          0,          0,     1024,     8192, 0xdaadfc44
-0,       1024,       1024,     1024,     8192, 0xe6d9ec37
-0,       2048,       2048,     1024,     8192, 0x5edfea64
-0,       3072,       3072,     1024,     8192, 0x7f7be38c
-0,       4096,       4096,     1024,     8192, 0x3f60f5c9
-0,       5120,       5120,     1024,     8192, 0xcee4fe06
-0,       6144,       6144,     1024,     8192, 0xdb98fa3e
-0,       7168,       7168,     1024,     8192, 0x4cb30687
-0,       8192,       8192,     1024,     8192, 0x00f6ecab
-0,       9216,       9216,     1024,     8192, 0xa7b0e0db
-0,      10240,      10240,     1024,     8192, 0xc2dcf89c
-0,      11264,      11264,     1024,     8192, 0x30d6f2fe
-0,      12288,      12288,     1024,     8192, 0xf83ae182
-0,      13312,      13312,     1024,     8192, 0xeecd05d1
-0,      14336,      14336,     1024,     8192, 0xfd3b0559
-0,      15360,      15360,     1024,     8192, 0xcd69e3e6
-0,      16384,      16384,     1024,     8192, 0xdf80fc29
-0,      17408,      17408,     1024,     8192, 0x7e8bf52b
-0,      18432,      18432,     1024,     8192, 0xee07e5f7
-0,      19456,      19456,     1024,     8192, 0xc874f294
+0,          0,          0,     4096,    32768, 0x18efb698
+0,       4096,       4096,     4096,    32768, 0xcb9ef4b2
+0,       8192,       8192,     4096,    32768, 0x4da2b94d
+0,      12288,      12288,     4096,    32768, 0xe673d0a1
+0,      16384,      16384,     4096,    32768, 0xe640ca0c
+0,      20480,      20480,     4096,    32768, 0xd6ae070f
+0,      24576,      24576,     4096,    32768, 0xe1ddd841
+0,      28672,      28672,     4096,    32768, 0x4174dce9
+0,      32768,      32768,     4096,    32768, 0x91ebbbc8
+0,      36864,      36864,     4096,    32768, 0xd2bff0e1
+0,      40960,      40960,     4096,    32768, 0xf027f45c
+0,      45056,      45056,     4096,    32768, 0xaa61c310
+0,      49152,      49152,     4096,    32768, 0x01a7f81c
+0,      53248,      53248,     4096,    32768, 0x4c74e889
+0,      57344,      57344,     4096,    32768, 0xf60ed269
+0,      61440,      61440,     4096,    32768, 0x45fc002a
+0,      65536,      65536,     4096,    32768, 0x6e24caad
+0,      69632,      69632,     4096,    32768, 0xf941e035
+0,      73728,      73728,     4096,    32768, 0xf027f45c
+0,      77824,      77824,     4096,    32768, 0xaa61c310
diff --git a/tests/ref/fate/filter-pan-upmix2 b/tests/ref/fate/filter-pan-upmix2
index dca5cee168..a73bb53109 100644
--- a/tests/ref/fate/filter-pan-upmix2
+++ b/tests/ref/fate/filter-pan-upmix2
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: 9 channels
-0,          0,          0,     1024,    18432, 0xc565c124
-0,       1024,       1024,     1024,    18432, 0xfe3e0450
-0,       2048,       2048,     1024,    18432, 0xff8db816
-0,       3072,       3072,     1024,    18432, 0xa74dcce0
-0,       4096,       4096,     1024,    18432, 0x8980dc34
-0,       5120,       5120,     1024,    18432, 0xaef4f4cc
-0,       6144,       6144,     1024,    18432, 0x947abfa0
-0,       7168,       7168,     1024,    18432, 0xe5cde624
-0,       8192,       8192,     1024,    18432, 0x7ba1b812
-0,       9216,       9216,     1024,    18432, 0x1166ca13
-0,      10240,      10240,     1024,    18432, 0x0fd40143
-0,      11264,      11264,     1024,    18432, 0x8aecc408
-0,      12288,      12288,     1024,    18432, 0x3da6de0b
-0,      13312,      13312,     1024,    18432, 0x95bd097d
-0,      14336,      14336,     1024,    18432, 0x8eacb965
-0,      15360,      15360,     1024,    18432, 0x3daf2b0a
-0,      16384,      16384,     1024,    18432, 0xe69218d2
-0,      17408,      17408,     1024,    18432, 0x0b14c778
-0,      18432,      18432,     1024,    18432, 0xa28cba24
-0,      19456,      19456,     1024,    18432, 0x77edf299
+0,          0,          0,     4096,    73728, 0xb4d44a88
+0,       4096,       4096,     4096,    73728, 0x70ff76f1
+0,       8192,       8192,     4096,    73728, 0xa8b2478e
+0,      12288,      12288,     4096,    73728, 0xf90bcc06
+0,      16384,      16384,     4096,    73728, 0xbb448d25
+0,      20480,      20480,     4096,    73728, 0x76eb3638
+0,      24576,      24576,     4096,    73728, 0x46559bdd
+0,      28672,      28672,     4096,    73728, 0x8f1d34d3
+0,      32768,      32768,     4096,    73728, 0xa426b851
+0,      36864,      36864,     4096,    73728, 0x764b4d68
+0,      40960,      40960,     4096,    73728, 0x7d1a8d7b
+0,      45056,      45056,     4096,    73728, 0x2f8a772d
+0,      49152,      49152,     4096,    73728, 0x107f837d
+0,      53248,      53248,     4096,    73728, 0xa58d6617
+0,      57344,      57344,     4096,    73728, 0x7d1a8d7b
+0,      61440,      61440,     4096,    73728, 0x2f8a772d
+0,      65536,      65536,     4096,    73728, 0x107f837d
+0,      69632,      69632,     4096,    73728, 0xa58d6617
+0,      73728,      73728,     4096,    73728, 0x7d1a8d7b
+0,      77824,      77824,     4096,    73728, 0x2f8a772d
diff --git a/tests/ref/fate/filter-stereotools b/tests/ref/fate/filter-stereotools
index 60a74893bd..377b33267f 100644
--- a/tests/ref/fate/filter-stereotools
+++ b/tests/ref/fate/filter-stereotools
@@ -3,23 +3,23 @@ 
 #codec_id 0: pcm_s16le
 #sample_rate 0: 44100
 #channel_layout_name 0: stereo
-0,          0,          0,     1024,     4096, 0x48b6d241
-0,       1024,       1024,     1024,     4096, 0xe0c4ca9a
-0,       2048,       2048,     1024,     4096, 0x6dd8e26c
-0,       3072,       3072,     1024,     4096, 0x047cce1c
-0,       4096,       4096,     1024,     4096, 0x0b7bc8e4
-0,       5120,       5120,     1024,     4096, 0xf0c9d037
-0,       6144,       6144,     1024,     4096, 0x6f23c83d
-0,       7168,       7168,     1024,     4096, 0xe6d8c099
-0,       8192,       8192,     1024,     4096, 0xcca3cb25
-0,       9216,       9216,     1024,     4096, 0xefced25b
-0,      10240,      10240,     1024,     4096, 0x8614cdcb
-0,      11264,      11264,     1024,     4096, 0x06d1eb3f
-0,      12288,      12288,     1024,     4096, 0x7afbcffd
-0,      13312,      13312,     1024,     4096, 0x6371dcd8
-0,      14336,      14336,     1024,     4096, 0xdd8f90d9
-0,      15360,      15360,     1024,     4096, 0x448c08f4
-0,      16384,      16384,     1024,     4096, 0x4d9b2d26
-0,      17408,      17408,     1024,     4096, 0x735a05da
-0,      18432,      18432,     1024,     4096, 0x8651bf40
-0,      19456,      19456,     1024,     4096, 0xbf98c4e7
+0,          0,          0,     4096,    16384, 0x6ba24d90
+0,       4096,       4096,     4096,    16384, 0x39c3221e
+0,       8192,       8192,     4096,    16384, 0xd06156b7
+0,      12288,      12288,     4096,    16384, 0x6fb946c0
+0,      16384,      16384,     4096,    16384, 0xa445b736
+0,      20480,      20480,     4096,    16384, 0xf5d2eb9e
+0,      24576,      24576,     4096,    16384, 0x4ef78700
+0,      28672,      28672,     4096,    16384, 0xe252a355
+0,      32768,      32768,     4096,    16384, 0xe3dcfb2f
+0,      36864,      36864,     4096,    16384, 0x885a6277
+0,      40960,      40960,     4096,    16384, 0x630f2f59
+0,      45056,      45056,     4096,    16384, 0x2d048e52
+0,      49152,      49152,     4096,    16384, 0xa43fc10f
+0,      53248,      53248,     4096,    16384, 0x80a22d49
+0,      57344,      57344,     4096,    16384, 0x1b6e7dbc
+0,      61440,      61440,     4096,    16384, 0x973da258
+0,      65536,      65536,     4096,    16384, 0x45470212
+0,      69632,      69632,     4096,    16384, 0xb6531766
+0,      73728,      73728,     4096,    16384, 0x22ee6793
+0,      77824,      77824,     4096,    16384, 0xb666eb70
diff --git a/tests/ref/fate/g722-encode b/tests/ref/fate/g722-encode
index 2483a8a6e3..e6f059aa69 100644
--- a/tests/ref/fate/g722-encode
+++ b/tests/ref/fate/g722-encode
@@ -7,97 +7,50 @@ 
 #sample_rate 0: 16000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,     1024,     2048, 1c1386b0e7b879e8167eb977550bdf35
-0,       1024,       1024,     1024,     2048, 55e3e29bbe65c0f7407d8834a83a0ade
-0,       2048,       2048,     1024,     2048, 571e6fb80021e542142fe01a103ecc69
-0,       3072,       3072,     1024,     2048, 83011382b6f414692d92abb686788cb9
-0,       4096,       4096,     1024,     2048, 9a06df102b7d1186e762135c8bc6d582
-0,       5120,       5120,     1024,     2048, 63e154820e22f2e7d16750ac93ca1eaf
-0,       6144,       6144,     1024,     2048, 38f2cdaf82d17ca0eb2846269a9b1a34
-0,       7168,       7168,     1024,     2048, fe2ef66ebe4d2c64da3e7c8eb627eae0
-0,       8192,       8192,     1024,     2048, cedc08a3942ba23e5c6a3d6f1f74ae6a
-0,       9216,       9216,     1024,     2048, 67a8222a02707f4d65c69b939fe84d0b
-0,      10240,      10240,     1024,     2048, ed919fe83eaf67228bcde77317a34366
-0,      11264,      11264,     1024,     2048, d346b7040d2311b4eaec9385858b7d61
-0,      12288,      12288,     1024,     2048, 4f473fb7521a64b5585d0220cb8ca93d
-0,      13312,      13312,     1024,     2048, 583cf00b5befd0dc23e9b064135bc1b1
-0,      14336,      14336,     1024,     2048, e1cef7e9e31286bfb54a153f1fa295de
-0,      15360,      15360,     1024,     2048, f69aaef8f423015293bd0a198f40be49
-0,      16384,      16384,     1024,     2048, d98b2fc1ec2405085ccad3eca04c4070
-0,      17408,      17408,     1024,     2048, 2429e9f2977c3e49dd723a48113daada
-0,      18432,      18432,     1024,     2048, fca575165fea576bf816d8f501ec324c
-0,      19456,      19456,     1024,     2048, cbfd2cb1fddda21ff3ed26ea476b10c8
-0,      20480,      20480,     1024,     2048, 2b88a5acf3e78d957cab2e5e78f32438
-0,      21504,      21504,     1024,     2048, 05d4adc8108f8e29fb852d530c72f410
-0,      22528,      22528,     1024,     2048, 08ce6fc3b40d6437867579bc63670982
-0,      23552,      23552,     1024,     2048, abf7e3d67c4ea17c73d7a81b647a4918
-0,      24576,      24576,     1024,     2048, 801fafd5321f2de57482fee7b5a99313
-0,      25600,      25600,     1024,     2048, 5561e036d2d6bb38bad487b0fcda77f1
-0,      26624,      26624,     1024,     2048, 0baf5203ef990742cc5bf2bb7fbecc0f
-0,      27648,      27648,     1024,     2048, 46b18f50915e4a3d7ff724eb57426ef6
-0,      28672,      28672,     1024,     2048, fac33ebf6a43826bf9e87ea8be5e5be7
-0,      29696,      29696,     1024,     2048, 45b62acf264b64d0efcc31e0dc0df300
-0,      30720,      30720,     1024,     2048, 77d649a81d884cf761fbdd29d18fc8be
-0,      31744,      31744,     1024,     2048, 4020b38f123169426fd728d6701d6f75
-0,      32768,      32768,     1024,     2048, 7eb47921f532d3ab6c0817ef2b7ddc59
-0,      33792,      33792,     1024,     2048, 20065b1dba0a4e908ee84298f2210caf
-0,      34816,      34816,     1024,     2048, e778663551390bd2ca9ec147b3a77f3b
-0,      35840,      35840,     1024,     2048, 89d00677404385cfbad82377192571c2
-0,      36864,      36864,     1024,     2048, f1303f2c04c5cf4262173dc60c9e1cfa
-0,      37888,      37888,     1024,     2048, 12a2db77e79f51f9e24e98fff42b2bf4
-0,      38912,      38912,     1024,     2048, 1fee254456559dbf69e28b5d967362d0
-0,      39936,      39936,     1024,     2048, 52b3a04e0b7445535bc1b8bf07753daf
-0,      40960,      40960,     1024,     2048, c38ab46c990628591d0f6013b55bb5db
-0,      41984,      41984,     1024,     2048, e0a865817b0e9cac793e5f09e18b14b4
-0,      43008,      43008,     1024,     2048, 88a95b613acbfd1f596c2e4d225ba167
-0,      44032,      44032,     1024,     2048, 4039e5a57644ba2723f0030a2aa15a9b
-0,      45056,      45056,     1024,     2048, 70c01c12732a09aa1e7c70ca936f6ffa
-0,      46080,      46080,     1024,     2048, a1628c25a4826846e29fb8885e88fa22
-0,      47104,      47104,     1024,     2048, 1dc90bcd1a1895dba9e25d809897a87a
-0,      48128,      48128,     1024,     2048, 6c4292138b1424ee6aec7d4641a7f270
-0,      49152,      49152,     1024,     2048, 4497951c7ec8f3f5ed1164c632eaf3db
-0,      50176,      50176,     1024,     2048, 994f54d0192b3bb2981ce014e0e564ca
-0,      51200,      51200,     1024,     2048, 8a01132c029298395e706a8debce84e4
-0,      52224,      52224,     1024,     2048, 8e5bb6f201d4808dce5570777e8d3ddc
-0,      53248,      53248,     1024,     2048, fff8285921663a23fc77e1abdcde3ae6
-0,      54272,      54272,     1024,     2048, 8b9e40400ea39a078243c7f1bc946799
-0,      55296,      55296,     1024,     2048, 019ce606c8aa39e1e1322005f50ef9d3
-0,      56320,      56320,     1024,     2048, e7a2a8f286292d9055665db2afb10c2f
-0,      57344,      57344,     1024,     2048, 405b23de4ef7130bed53f9701d1930a4
-0,      58368,      58368,     1024,     2048, 4d298756428abeb55d61bd2a2e2c901c
-0,      59392,      59392,     1024,     2048, 689e75a700ad741f3ca2e28db0b543cc
-0,      60416,      60416,     1024,     2048, ec3f020ce36d1a948d95da2a6da68b01
-0,      61440,      61440,     1024,     2048, b73700c5569ae85b21458992176a3185
-0,      62464,      62464,     1024,     2048, d2d4469d9862f444881ff9ea0a742e07
-0,      63488,      63488,     1024,     2048, cdd274392300cb0aa20a31455d304481
-0,      64512,      64512,     1024,     2048, 1918ba512082dc686401238a9a44b0c4
-0,      65536,      65536,     1024,     2048, 70d069d52bb213542b82a8e38cfc9e0f
-0,      66560,      66560,     1024,     2048, d4522dfd28f19faffc44fc9c1d59d84b
-0,      67584,      67584,     1024,     2048, e61aa07624a499854f5656ae701f50c5
-0,      68608,      68608,     1024,     2048, d78e4afffa9241feca9de7aa455a01c1
-0,      69632,      69632,     1024,     2048, 149e47c7af5b18d02c304eefa90b142a
-0,      70656,      70656,     1024,     2048, 586789edc86cdd48533556188cc495ea
-0,      71680,      71680,     1024,     2048, b8d3ebe2af3bda2c0bb641b75e0219a0
-0,      72704,      72704,     1024,     2048, e0137eeed9fd48cb6732954ef22c0d10
-0,      73728,      73728,     1024,     2048, 231018234f1baa0e6baad582d5d3b0e8
-0,      74752,      74752,     1024,     2048, b63c4a19aa58681fa90c8845e5efd399
-0,      75776,      75776,     1024,     2048, 184437812369e9eac31b0bdff151993a
-0,      76800,      76800,     1024,     2048, bdd31cf8559d30df3fb1cab9147881ed
-0,      77824,      77824,     1024,     2048, b3ba69fec17a16aa7bf91bdaba7a3f4c
-0,      78848,      78848,     1024,     2048, 2a9e924965f97f0566189842e5506faf
-0,      79872,      79872,     1024,     2048, e079c85fec85d3da1e19e7ebb147732e
-0,      80896,      80896,     1024,     2048, 40af8f27b9edf3dbbaa54a65e5b53482
-0,      81920,      81920,     1024,     2048, ce10bdbfbd9871cfcbe4ef2de8bc161d
-0,      82944,      82944,     1024,     2048, 8220ab4d3991849b9bc7576be75529be
-0,      83968,      83968,     1024,     2048, 7f8aa0f1b25ba6ed1ea62533d82e0370
-0,      84992,      84992,     1024,     2048, a16bfcfa43b6344844a2cfa4ba19fcca
-0,      86016,      86016,     1024,     2048, a221853e3cd11df95f28fbc6bfe1c854
-0,      87040,      87040,     1024,     2048, d0fe03f1afc203892930183e1001b7dc
-0,      88064,      88064,     1024,     2048, fc664bd7be1b1bcd3aca87bc01dd9d50
-0,      89088,      89088,     1024,     2048, 556a2e7f518d7719c5811804ca50bf73
-0,      90112,      90112,     1024,     2048, a87d843fefd7012779fef452afb2c1ee
-0,      91136,      91136,     1024,     2048, 102cc35fbbad0640cd2154af38456398
-0,      92160,      92160,     1024,     2048, f8ab28ec788832f134a30631980a4333
-0,      93184,      93184,     1024,     2048, 9bff7f32bc2539aae139e947e3c18017
-0,      94208,      94208,     1024,     2048, 358ad5cb29882d0f842821b59a379e0d
-0,      95232,      95232,      768,     1536, f2e73352561bcfb76805725667ddf970
+0,          0,          0,     2048,     4096, 7f8737b756fcd38d1c631b3f595d913d
+0,       2048,       2048,     2048,     4096, c2318ef56a206dc72180814a521e5ccf
+0,       4096,       4096,     2048,     4096, e9ac8ccc1f717cccd43c5d8a84474015
+0,       6144,       6144,     2048,     4096, a5f8947d32b19688b3ec79f0ee8e8b10
+0,       8192,       8192,     2048,     4096, 5ea73e3eba49ed89716de9fb4e3e12b6
+0,      10240,      10240,     2048,     4096, 0a10b2296bb234a63c239023756e1f7a
+0,      12288,      12288,     2048,     4096, d16d6a10f803346ead262e5416045921
+0,      14336,      14336,     2048,     4096, 9bdf13e50053dac58ffca885c5c70142
+0,      16384,      16384,     2048,     4096, 79c8e1215d46e6d6253e41945266f545
+0,      18432,      18432,     2048,     4096, 51020ad4b251025167613900a48a7835
+0,      20480,      20480,     2048,     4096, 470f1f3f80b053ff51ebb13648ebe016
+0,      22528,      22528,     2048,     4096, c22576dc4b4a9cbcc48e10445fc4aad5
+0,      24576,      24576,     2048,     4096, 2d9013cb8b20f0437cb2dea0f6ce0996
+0,      26624,      26624,     2048,     4096, 82aaced1baf9c29d70710476bf278a74
+0,      28672,      28672,     2048,     4096, 6b45bb019b032bbfc5d32fa44741f2db
+0,      30720,      30720,     2048,     4096, b80e2149847b623c414ce6638ac9fecc
+0,      32768,      32768,     2048,     4096, 8941cb885b77925701f2708f8b49160f
+0,      34816,      34816,     2048,     4096, f621508958d18b3590e7bcf83cce483c
+0,      36864,      36864,     2048,     4096, 3b77535d048c50ddf15224ac10658510
+0,      38912,      38912,     2048,     4096, 6fd77dd1eb090b826a9d2c9529e90a9c
+0,      40960,      40960,     2048,     4096, 2706a61dde74d38f33fd510216d8e04c
+0,      43008,      43008,     2048,     4096, 39e74d3b5be3f1eefbf5408d9ccaa776
+0,      45056,      45056,     2048,     4096, c5f49b65f252f32283a8e2bf6665c69a
+0,      47104,      47104,     2048,     4096, 72142c21893f469b1f33daa06f8e5681
+0,      49152,      49152,     2048,     4096, d2e7777335c489f182787b7a664eae10
+0,      51200,      51200,     2048,     4096, 2e4c1e399411eada32d3c153eba87432
+0,      53248,      53248,     2048,     4096, 40ced9b5952c851b15c3a077c67f88a4
+0,      55296,      55296,     2048,     4096, db2e5f6edbe106e4100ef0d7dd69526a
+0,      57344,      57344,     2048,     4096, 00818952000cfa0aa9dfb7d08f664cda
+0,      59392,      59392,     2048,     4096, 1bd756412f7358484172a71fb747c83d
+0,      61440,      61440,     2048,     4096, be2010bf339e9a11979262323f7b90e2
+0,      63488,      63488,     2048,     4096, 4fc155efd7e383d4f6782456907ab5ac
+0,      65536,      65536,     2048,     4096, 81c8055c3551ad7d4dfed844f2060263
+0,      67584,      67584,     2048,     4096, 3d4584971baa36bde45165c6665ac3ab
+0,      69632,      69632,     2048,     4096, e790649394c5a19b403352d2d8d4d3cf
+0,      71680,      71680,     2048,     4096, daabaa92218ca3436db42cfb422a5e62
+0,      73728,      73728,     2048,     4096, 174f062b267fd3449b4fbc64c37095a5
+0,      75776,      75776,     2048,     4096, 68cf8809ecfa8fef45139a3772efb551
+0,      77824,      77824,     2048,     4096, 64e46288ba748030512d3477f3b95c37
+0,      79872,      79872,     2048,     4096, 94038e81a35b7b9c8cbfab69e1545dee
+0,      81920,      81920,     2048,     4096, 31a7dfc3c7472223cea4b70b37412224
+0,      83968,      83968,     2048,     4096, e663174d28b21bf436db4fb21db0d4f9
+0,      86016,      86016,     2048,     4096, 8ceefcc84c32f5fe924627da360acc95
+0,      88064,      88064,     2048,     4096, c0fa5837aa0dbed75c7f7b45f0b9ac4d
+0,      90112,      90112,     2048,     4096, 31ebe014e9e0da50e352759e7edc1e3d
+0,      92160,      92160,     2048,     4096, 510e8acd3d79c5a4456c9fb01e01d047
+0,      94208,      94208,     1792,     3584, a6b2f3068128d421dba7d64d29bc9b5d
diff --git a/tests/ref/fate/g726-encode-2bit b/tests/ref/fate/g726-encode-2bit
index 483e107e73..904e625c06 100644
--- a/tests/ref/fate/g726-encode-2bit
+++ b/tests/ref/fate/g726-encode-2bit
@@ -7,50 +7,27 @@ 
 #sample_rate 0: 8000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,     1024,     2048, ff2564c16a9296fb944cefe184348a8f
-0,       1024,       1024,     1024,     2048, b021ebaee57a24dd452c150e4f7d4b3b
-0,       2048,       2048,     1024,     2048, 4c2ed3a14bdd88eb25166eed086bb407
-0,       3072,       3072,     1024,     2048, 38ec2281b14aaab7254cb64a1178d08b
-0,       4096,       4096,     1024,     2048, e2a31b38126de0c2a4cdc40daf5d022c
-0,       5120,       5120,     1024,     2048, 4c99381f08e4503d4916242510457ef0
-0,       6144,       6144,     1024,     2048, 6d347e0a6f7e81b13489c5e601df7dc5
-0,       7168,       7168,     1024,     2048, 0367910cd2da32be4ba43db7d00e1dd9
-0,       8192,       8192,     1024,     2048, d5db66c65bdfd11c4f55de3804d20798
-0,       9216,       9216,     1024,     2048, cca0b4633369a54586fbe4e802419756
-0,      10240,      10240,     1024,     2048, 2d7846bb0bc04774022c0530e9930a3f
-0,      11264,      11264,     1024,     2048, 5a824a1affdd3320d4a618f087bdc2cd
-0,      12288,      12288,     1024,     2048, 651e84c32d587ad731c4b6e725f06f46
-0,      13312,      13312,     1024,     2048, d2590a449cc92e644bd0f5de6f88aa9b
-0,      14336,      14336,     1024,     2048, 1ecee3e51d3bf694843c2f36a2473157
-0,      15360,      15360,     1024,     2048, 72238031ebfabc47099962b5c5c88914
-0,      16384,      16384,     1024,     2048, 8b1b06b5abe5839e212aacd5cb523759
-0,      17408,      17408,     1024,     2048, 8aa8752946d0c4d91c52c589761f5d34
-0,      18432,      18432,     1024,     2048, 2132325854a7903278d9e267b4e68038
-0,      19456,      19456,     1024,     2048, 1c66b3ef373bcc2e1bcc041db784033d
-0,      20480,      20480,     1024,     2048, 50cb7a96f82956827a01809b2e7c24af
-0,      21504,      21504,     1024,     2048, 26e701075003f5f1068b5c14fdd167b6
-0,      22528,      22528,     1024,     2048, 55a1bb50da39aed267b8877d590bbdc2
-0,      23552,      23552,     1024,     2048, 3eb80f07bac40b6236ad024743b8fd64
-0,      24576,      24576,     1024,     2048, d612c9ddcfdcb51973b86920fabcb4b4
-0,      25600,      25600,     1024,     2048, 48d232f3f3ad4a176bce5de5d8230f62
-0,      26624,      26624,     1024,     2048, e2dc134f2fec459419c0995322a8b216
-0,      27648,      27648,     1024,     2048, 7a9abf5e1084f6293f1c23d35e214200
-0,      28672,      28672,     1024,     2048, 96453c24f46a2dd5a18234d0b7ae8f55
-0,      29696,      29696,     1024,     2048, 605faf19833e320e870a5672a6a9a62c
-0,      30720,      30720,     1024,     2048, 2d5b0977f32c666973dca3114f7de9e5
-0,      31744,      31744,     1024,     2048, 0987e8a85fd839125d1ce7d597766a0a
-0,      32768,      32768,     1024,     2048, 5278495bc2efb8ff74c785fedc13176b
-0,      33792,      33792,     1024,     2048, d0b233a1f3af41f9e53cf890dc651d3a
-0,      34816,      34816,     1024,     2048, 677a757f47e4e55d0a63b2cc486ea666
-0,      35840,      35840,     1024,     2048, 858d203f7f2471e0ff536b10b2736bbc
-0,      36864,      36864,     1024,     2048, 9dc0a3d9448a2c89733febab8e653fda
-0,      37888,      37888,     1024,     2048, 4efcb6e305f0088067fb9666334b29eb
-0,      38912,      38912,     1024,     2048, 2ea0bc8d32e3b7bb92970d2dfcf6262f
-0,      39936,      39936,     1024,     2048, 5320aaf3114a552b7b09ec4297d46bfc
-0,      40960,      40960,     1024,     2048, 44934c500583cdb5a495816620dc585a
-0,      41984,      41984,     1024,     2048, 92e10ca698950366a80e40314788cddf
-0,      43008,      43008,     1024,     2048, d5e131e9c4eb5543fd95761e870a59f8
-0,      44032,      44032,     1024,     2048, ad22b690285d0daf08ecb48cde7375a2
-0,      45056,      45056,     1024,     2048, f5e754bd2b0e755e595295dc9c1e06a3
-0,      46080,      46080,     1024,     2048, 66cb904325f2af349203655df0f3b42d
+0,          0,          0,     2048,     4096, c1a4b7b1b6bc8e0f5368c3d97902c7c4
+0,       2048,       2048,     2048,     4096, 1842088dfc41c0fc8a7527cc38aa4aa5
+0,       4096,       4096,     2048,     4096, bd0443bed62d3a7e05cd6b13b8bb4f85
+0,       6144,       6144,     2048,     4096, aac2912fe84ba639dfa7bd2186418fa9
+0,       8192,       8192,     2048,     4096, 63c151d0f67811888ee09623e5cef5c7
+0,      10240,      10240,     2048,     4096, 59e8d21b306f238555fb712046de2e1f
+0,      12288,      12288,     2048,     4096, 342db0d882d7e15a8f00eb9ad7ca3d05
+0,      14336,      14336,     2048,     4096, bcdd7e586e81c0b41bfc6d12e64de695
+0,      16384,      16384,     2048,     4096, 64e3c414ee05ab812052a1f0adc83f6d
+0,      18432,      18432,     2048,     4096, 58f9d8007e155f164e3ef7fecb44f8e7
+0,      20480,      20480,     2048,     4096, 0d6cae404756eff03c3afb1ca2b7529e
+0,      22528,      22528,     2048,     4096, a01431274218145ad8314d6265d93487
+0,      24576,      24576,     2048,     4096, 70c017321086eb074588de200deaa3d3
+0,      26624,      26624,     2048,     4096, 641a05ca7cbc03be7b6b44e5c0821494
+0,      28672,      28672,     2048,     4096, ec7e20f05eb222441d1a42d473146514
+0,      30720,      30720,     2048,     4096, 60257bdcbcf3ac6bd856152eda6e5db0
+0,      32768,      32768,     2048,     4096, 0cdb711f9f6ea44e63e52da218affa87
+0,      34816,      34816,     2048,     4096, 40dc37c2ee93c0d97a32eafd5a710694
+0,      36864,      36864,     2048,     4096, aa2e70d8ade9ca4d78209c52ab6a59e0
+0,      38912,      38912,     2048,     4096, fe371f55df006c24748131ff607ef90c
+0,      40960,      40960,     2048,     4096, 4ce660faa9d89c4c4e34005908f7d29a
+0,      43008,      43008,     2048,     4096, b44d6c809ba6b90e4ae1fc34068cfa33
+0,      45056,      45056,     2048,     4096, 37f1200189363a9f50b6672542ca64e4
 0,      47104,      47104,      896,     1792, 6523d8c6c4eda9bd244393fe85957a09
diff --git a/tests/ref/fate/g726-encode-3bit b/tests/ref/fate/g726-encode-3bit
index 3e6ba8fb63..00e0151d46 100644
--- a/tests/ref/fate/g726-encode-3bit
+++ b/tests/ref/fate/g726-encode-3bit
@@ -7,27 +7,15 @@ 
 #sample_rate 0: 8000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,     2048,     4096, 0d1b4788e55846e5154b9072cfa48f50
-0,       2048,       2048,     2048,     4096, 14b27a3119b521cf5a508867bc287788
-0,       4096,       4096,     2048,     4096, 4dad122c13995a416335f9f52ca48977
-0,       6144,       6144,     2048,     4096, c81582d00a1ed6b13e8c55a65ad9bd1b
-0,       8192,       8192,     2048,     4096, 75426b6d8087eaa4d6a9a2c8c5ea7d3c
-0,      10240,      10240,     2048,     4096, 139944c7a951ffa8bfa40e66b0baffce
-0,      12288,      12288,     2048,     4096, f530571c56358b142df7e2697d1eb341
-0,      14336,      14336,     2048,     4096, 0ebc8de0384e7903a4650d35354df538
-0,      16384,      16384,     2048,     4096, 74139e546791a12874b82c17b31e0ce7
-0,      18432,      18432,     2048,     4096, 7c3ff0fb55e5ac9a7d068e5d79e6f59c
-0,      20480,      20480,     2048,     4096, ca817a3aaff694e8249aff63a8d21ca5
-0,      22528,      22528,     2048,     4096, ea1d71c5a875d87fdb502b46db91bb51
-0,      24576,      24576,     2048,     4096, f121812a51c9e419bc35923be6662f00
-0,      26624,      26624,     2048,     4096, e96a60832c77cc7fa624f1c02c204261
-0,      28672,      28672,     2048,     4096, 0a78148ac779328133e80d4794ecb99a
-0,      30720,      30720,     2048,     4096, cbd2548928eab86f0a58a621cdfe45ec
-0,      32768,      32768,     2048,     4096, 3dfb27ee8637de797c7bf95ae28e27a1
-0,      34816,      34816,     2048,     4096, fb074c926c97032d12f42171c931854c
-0,      36864,      36864,     2048,     4096, 69cfd5b689221577f154239c4e3e63a5
-0,      38912,      38912,     2048,     4096, 442436ffd4adf6592900b31dd972c21c
-0,      40960,      40960,     2048,     4096, 318bb688efe75e1167c2a52db89d5628
-0,      43008,      43008,     2048,     4096, a2e895cfdbd7163fa13b7ea1b57e4a70
-0,      45056,      45056,     2048,     4096, ee331f3ff98b60dc90f19c69f0a945b5
-0,      47104,      47104,      896,     1792, ec9570964b043ee2d9691e87758c205f
+0,          0,          0,     4096,     8192, 629a292c15bdc67a8f2dae0f044e048e
+0,       4096,       4096,     4096,     8192, 37061e8b33229cde16529d28e08d1bdd
+0,       8192,       8192,     4096,     8192, b81ed8d349266231e047cba01a9279d7
+0,      12288,      12288,     4096,     8192, bef5d1a1c476b27a6f27fe0b5b5ea42f
+0,      16384,      16384,     4096,     8192, e774e9b7337b15fd700ba94e6566bc41
+0,      20480,      20480,     4096,     8192, b1f2fef01a54158e7759d0f507af3886
+0,      24576,      24576,     4096,     8192, 077f27a431a0c650f5fb198c3437a23d
+0,      28672,      28672,     4096,     8192, 30b09fbe2a37cf4289f3377679405a7a
+0,      32768,      32768,     4096,     8192, 8d6f97b6e81f67a4615425892a4f604b
+0,      36864,      36864,     4096,     8192, 37def5c3480c6066676c5b1153f00255
+0,      40960,      40960,     4096,     8192, e45b020d9890cd865c46df638d9c7ca4
+0,      45056,      45056,     2944,     5888, 31d248a72bfd7046cb1e502c8a3a7708
diff --git a/tests/ref/fate/g726-encode-4bit b/tests/ref/fate/g726-encode-4bit
index 373f35cf77..ee459f2400 100644
--- a/tests/ref/fate/g726-encode-4bit
+++ b/tests/ref/fate/g726-encode-4bit
@@ -7,97 +7,50 @@ 
 #sample_rate 0: 8000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,      512,     1024, e462a78273c42c955f4a8d0764504527
-0,        512,        512,      512,     1024, ba393ab5be48c94532afdc8ed87b3283
-0,       1024,       1024,      512,     1024, 171b2d9d2d65199d454d93b990c25569
-0,       1536,       1536,      512,     1024, 87a31ad0a9fdd539924b89727887076b
-0,       2048,       2048,      512,     1024, 395ac07a8bdfce0c34a82037a791fdb6
-0,       2560,       2560,      512,     1024, cb9ffa454b026c8af6752915469addf1
-0,       3072,       3072,      512,     1024, 88155f5c52947fa0a6b41a5d90e7fcce
-0,       3584,       3584,      512,     1024, ff2635e9dc7a20b05670999f127bc07a
-0,       4096,       4096,      512,     1024, 03a8996fe239611a45a8b64fd1f5d882
-0,       4608,       4608,      512,     1024, d6b10d56939d34e62f1971bc0c17c3c4
-0,       5120,       5120,      512,     1024, 04dc70271ae47a9df5ef11259a2ec314
-0,       5632,       5632,      512,     1024, 61f932baa9284cd07e72d63bb5a844a7
-0,       6144,       6144,      512,     1024, 55c33714127a668e4fa5e275ff3023b5
-0,       6656,       6656,      512,     1024, 02298949b93e5eb30ba9eaa76bd2299e
-0,       7168,       7168,      512,     1024, dd528441ed14ca22bbed83db99fd5a23
-0,       7680,       7680,      512,     1024, 83663bf9a55778b4eb74cc30d0963aa0
-0,       8192,       8192,      512,     1024, be7e4fc320362f7aad761ce3f7fe0051
-0,       8704,       8704,      512,     1024, 0e0b6617db79c1abcb8736370c3f35cb
-0,       9216,       9216,      512,     1024, 7a60a2f7d5fa039f32b8f9cfd37174a4
-0,       9728,       9728,      512,     1024, 8d969ae43be3324dfd7e532526a2e532
-0,      10240,      10240,      512,     1024, faec94304ef2b068c3646fb4050df32d
-0,      10752,      10752,      512,     1024, dd5cb976f0cb4d0586300eb278afe7df
-0,      11264,      11264,      512,     1024, 9ef158e354b255bfbe9ae699deeb6cd2
-0,      11776,      11776,      512,     1024, 78f83960bca8ef1d2dff318337a43acd
-0,      12288,      12288,      512,     1024, d300c855cc71548fb3504632c953e5a8
-0,      12800,      12800,      512,     1024, 362a91b8c7c84520fa5a032fb5d655da
-0,      13312,      13312,      512,     1024, ecdda6aa40d4e74b95f651b353fbe0c9
-0,      13824,      13824,      512,     1024, 97480f331929b7499bb2034e102db5e8
-0,      14336,      14336,      512,     1024, db1f24dbf0b4e6f37e7454248a6cb458
-0,      14848,      14848,      512,     1024, dd134658d79dcbc0e3c90d35217a478c
-0,      15360,      15360,      512,     1024, eeebe168cb9284e616e94465a42b4b70
-0,      15872,      15872,      512,     1024, d3bc5f37e4406aa35fca099ce469357e
-0,      16384,      16384,      512,     1024, ac586b76406bdaeb2de1da67f9b43b96
-0,      16896,      16896,      512,     1024, 4e38638c1c18bce1d5bd50d5a899ad47
-0,      17408,      17408,      512,     1024, 4ccb0e5466069d31e69d0eca1bfd7770
-0,      17920,      17920,      512,     1024, 5460ce0371a18bfe04d07e97b1505165
-0,      18432,      18432,      512,     1024, afcc80a0a55751444989772cf03c00f6
-0,      18944,      18944,      512,     1024, 82d91887dad6dd833af2e43cbea50fca
-0,      19456,      19456,      512,     1024, eec16553e6390cde2e8887eba380c5dc
-0,      19968,      19968,      512,     1024, da4d253b64d3af1d023609be94c6a1fb
-0,      20480,      20480,      512,     1024, b4bdbccf49d28f3a0941d51c70ec928f
-0,      20992,      20992,      512,     1024, f996421690602ad42ed2606bc7e19186
-0,      21504,      21504,      512,     1024, 77c9d3e35234baf68dea6f22234779eb
-0,      22016,      22016,      512,     1024, fc7a022367f119ccd647430f3693243f
-0,      22528,      22528,      512,     1024, fbb4f54f9a797d98070b47e3efc80d2a
-0,      23040,      23040,      512,     1024, b2ab75d5dc9c21eb68c7fc0262643ac2
-0,      23552,      23552,      512,     1024, 3bcb8448769d665ef9038a39ee4a1ed8
-0,      24064,      24064,      512,     1024, 055ad0df8165f2e6195ea65f6e8a286a
-0,      24576,      24576,      512,     1024, ac6748536e6e72ddac23ae33d7c75ea0
-0,      25088,      25088,      512,     1024, c354c93bf03cd6b51c7c1d1cac38aa0b
-0,      25600,      25600,      512,     1024, 8a5240d53b27f1f25e693396825e7a62
-0,      26112,      26112,      512,     1024, fcaa5da746908c44d7bdc11cc207e7b1
-0,      26624,      26624,      512,     1024, 5c763e916d082e322a218a46fed8d97a
-0,      27136,      27136,      512,     1024, 929e311cde16d8dca809f7f2c8291624
-0,      27648,      27648,      512,     1024, b227c362d210386e507609edd2aece76
-0,      28160,      28160,      512,     1024, cc245fb14472eca204be5424b19f877b
-0,      28672,      28672,      512,     1024, 8dc27fb25d2966b0afa9927f43304bdc
-0,      29184,      29184,      512,     1024, 779a8e9d3e0016a62e47be0d43b9b919
-0,      29696,      29696,      512,     1024, 69cf5779c7c4d3a5fb752f9d362e923a
-0,      30208,      30208,      512,     1024, 1e25170a7059435b2e99292e3327062a
-0,      30720,      30720,      512,     1024, 726ca49e2452f29e7fd3c10e7e5b74ea
-0,      31232,      31232,      512,     1024, 28b54a82590645db94f2283c6e82bfc9
-0,      31744,      31744,      512,     1024, 41eff313ad24559ef08f7738adac60b3
-0,      32256,      32256,      512,     1024, 374706cf8beab83c2ec7d562bc2a4087
-0,      32768,      32768,      512,     1024, 76c3bd97ff43f123962724bf60fd9e94
-0,      33280,      33280,      512,     1024, 9951f8ddc0c3deae2d87d2d3e9d25082
-0,      33792,      33792,      512,     1024, e2402cfc3b6d9dbe922bbc28b5add776
-0,      34304,      34304,      512,     1024, 68e1b60ab9f22c51b3983c77917f811a
-0,      34816,      34816,      512,     1024, 7bbad0851f35458718255a91fb069fd0
-0,      35328,      35328,      512,     1024, a7f31c52e1937df0f20ca6ee2c743c31
-0,      35840,      35840,      512,     1024, 1cd1c915fb0f587433631d55d8e0fdc6
-0,      36352,      36352,      512,     1024, 93a932f376ee5637e0fd71faf0a7eb73
-0,      36864,      36864,      512,     1024, 560411042955f0bcefe7f0ec8d2a2da9
-0,      37376,      37376,      512,     1024, bdab5b8cecc1ff7f61e6fd9c9312006e
-0,      37888,      37888,      512,     1024, fefbe79648fae7aa569ef25c424bf08a
-0,      38400,      38400,      512,     1024, 18d6ff61ea03c8657e990e92d85a90c7
-0,      38912,      38912,      512,     1024, e2b0c109583da836d0dafcf1a1dcceb2
-0,      39424,      39424,      512,     1024, c14386f47a4059ae2af6e119229575af
-0,      39936,      39936,      512,     1024, 769694900bd69b3a33ec5f51ae08762a
-0,      40448,      40448,      512,     1024, a822a51963cdb5d8ddedeb865db6ceb9
-0,      40960,      40960,      512,     1024, 35a85df3d6cf7ae305b7653d46ce044b
-0,      41472,      41472,      512,     1024, 61176c6dfe177bab444ed94a88767158
-0,      41984,      41984,      512,     1024, 5585e560a3440bb0d265fe0d7db8e02d
-0,      42496,      42496,      512,     1024, 4d4bc0401e9ed6c988b81c94ddcc8e5f
-0,      43008,      43008,      512,     1024, 3f2c7de6a995cf66232178ac68e9512c
-0,      43520,      43520,      512,     1024, 72d5cbd6702b152f125296300f207e55
-0,      44032,      44032,      512,     1024, 016bc6d70e84c1c5d8349a799ee75007
-0,      44544,      44544,      512,     1024, 0133d1cee2f626e9506e96d9d6e17681
-0,      45056,      45056,      512,     1024, dd8a9f7e42479d057241ded25a1bbb65
-0,      45568,      45568,      512,     1024, 797999a8a13cd82969f182afea0abd12
-0,      46080,      46080,      512,     1024, e9bc67da89b93fca6b9ed9be6016c1d5
-0,      46592,      46592,      512,     1024, 2431cea96bc5410d59b7ff8ccb93c211
-0,      47104,      47104,      512,     1024, b2de5f02c365584f4757c557993b7fcb
-0,      47616,      47616,      384,      768, 82f8baf07ca30dd6d5cc84dd29030ab4
+0,          0,          0,     1024,     2048, 45826f7d6438b881e6f77a180eb790c4
+0,       1024,       1024,     1024,     2048, b21fd7a9566b11b5d54910ae7d99e77b
+0,       2048,       2048,     1024,     2048, a790e617a573131c23f43d9f4a9cdf1c
+0,       3072,       3072,     1024,     2048, 185938c079f87343e3b21fe2c3faabf9
+0,       4096,       4096,     1024,     2048, d185297c54b56889401c3d49b74f6d61
+0,       5120,       5120,     1024,     2048, ba79ee1620953364ad66fa9047be7c02
+0,       6144,       6144,     1024,     2048, 5c636ed11033eb85fef5ac27dcd71c8d
+0,       7168,       7168,     1024,     2048, f9451a119603e699b9cd188f3f5b5fb8
+0,       8192,       8192,     1024,     2048, 5b62f5158dbf9fd926322a53040e1f0a
+0,       9216,       9216,     1024,     2048, 1edbf8674adf4a29f8154d2225ebf8ae
+0,      10240,      10240,     1024,     2048, a5d90c7c9689b0858d077af6be6627f4
+0,      11264,      11264,     1024,     2048, 86781f06aa494ee2d4edf9383adca33c
+0,      12288,      12288,     1024,     2048, aed40ef05958bb9cd8a5a3398054f5de
+0,      13312,      13312,     1024,     2048, b05fea2fab96a974a3b94024075108aa
+0,      14336,      14336,     1024,     2048, 8bdd8615035611e3ce82653713c1fcaf
+0,      15360,      15360,     1024,     2048, 24263bea16f73796f5a358620d74c8c4
+0,      16384,      16384,     1024,     2048, a9dc104ccb1da0fd874a0889c9e7a44b
+0,      17408,      17408,     1024,     2048, 4a2744849335b9665bf2f51b504203c6
+0,      18432,      18432,     1024,     2048, a74b6773d7d73985bcec52037ef1ab72
+0,      19456,      19456,     1024,     2048, ab4fa833b0ff874161e62714232bea6e
+0,      20480,      20480,     1024,     2048, 3746bf62ab5faa6f15dd5ea5d0d42611
+0,      21504,      21504,     1024,     2048, 0e83e9645044e6d6a4d9e09fbee6cb08
+0,      22528,      22528,     1024,     2048, 9f52291cffc691303fb9a213548ec807
+0,      23552,      23552,     1024,     2048, f77819c0b1b4946c05bf496b072cf7f9
+0,      24576,      24576,     1024,     2048, 5e60a3ffa7ae29da04e5785753a83cab
+0,      25600,      25600,     1024,     2048, 99a910c5559ce2c2c33ebc259de7b2ed
+0,      26624,      26624,     1024,     2048, fe03e2b37987e3e8a781552dfeafff6d
+0,      27648,      27648,     1024,     2048, 80ba7b94455f219e11f681ec8360f2be
+0,      28672,      28672,     1024,     2048, efc3c90fc9d82ad45a6cec8bcc44a30e
+0,      29696,      29696,     1024,     2048, 00a4785cac0af983d38330bf3ef8b6a2
+0,      30720,      30720,     1024,     2048, f54504d66b25ca94dab48a8fc2b7d12d
+0,      31744,      31744,     1024,     2048, 0a4707c4786e1e4434dd0bd03c212e78
+0,      32768,      32768,     1024,     2048, 52741fbf267cefa1aa8ea726fc144998
+0,      33792,      33792,     1024,     2048, 37e1216a04f1ade19b50bede1e58ef9a
+0,      34816,      34816,     1024,     2048, da9ad85dd13e775b27ef3f66b16e0a6c
+0,      35840,      35840,     1024,     2048, 8ab4b76dfa5730d97096f4071b680ab5
+0,      36864,      36864,     1024,     2048, 17cab67ff8b5d070eaa617107976f260
+0,      37888,      37888,     1024,     2048, cf5f9d7dd4cd1f508d038f570edf0fc2
+0,      38912,      38912,     1024,     2048, 83d6afffe09c0e919989614a45f5dbf0
+0,      39936,      39936,     1024,     2048, 836756860f928caf91ffc63f358f5fb7
+0,      40960,      40960,     1024,     2048, 7ab3d952ab183d70ef12fe3c307d1746
+0,      41984,      41984,     1024,     2048, 573a7bfd8f8bd1b95b4212b67d9028de
+0,      43008,      43008,     1024,     2048, cb8c95f00a0acaf6b49c164c0a20fd62
+0,      44032,      44032,     1024,     2048, 8e2a3f3f889ce57eb3d2c2c544d559bc
+0,      45056,      45056,     1024,     2048, 80c58c7c79e60fa5f6ed65f4859feb7b
+0,      46080,      46080,     1024,     2048, 856cbd69f0e7ea6c319d596e5069efdb
+0,      47104,      47104,      896,     1792, 66a08fa15a4ae5e4f5a81dd5cb13fe53
diff --git a/tests/ref/fate/g726-encode-5bit b/tests/ref/fate/g726-encode-5bit
index ff36f0ed24..7bbfcfe70a 100644
--- a/tests/ref/fate/g726-encode-5bit
+++ b/tests/ref/fate/g726-encode-5bit
@@ -7,27 +7,15 @@ 
 #sample_rate 0: 8000
 #channel_layout_name 0: mono
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,     2048,     4096, a877060df28157bc4d18e8196ea2476b
-0,       2048,       2048,     2048,     4096, 047071c0ecbd8bccc4105484eae9f749
-0,       4096,       4096,     2048,     4096, bb8fd6609f227756a40e41bf559396af
-0,       6144,       6144,     2048,     4096, 42bfecf2656c8eb47e4552e9714fe705
-0,       8192,       8192,     2048,     4096, dc3cbf8f177791abbbdc2d048786037f
-0,      10240,      10240,     2048,     4096, 2966441f56fab3c93988c025c8177923
-0,      12288,      12288,     2048,     4096, b06c5b24c463d71dbfc8d6f13e836946
-0,      14336,      14336,     2048,     4096, 6e68821eca1ceaf49c9f09610d18cf38
-0,      16384,      16384,     2048,     4096, f1bd5559f34ae23c870b2571df69481d
-0,      18432,      18432,     2048,     4096, d05b6408f34c415310b2e37ee839edd4
-0,      20480,      20480,     2048,     4096, 28d1f0d789776754b385341c28d71818
-0,      22528,      22528,     2048,     4096, 45d2eef35230f003209936e2a665c75d
-0,      24576,      24576,     2048,     4096, ca749268804e6bd0fd7b6c091646cf13
-0,      26624,      26624,     2048,     4096, 7e1cc0b6c611b063ec0b4355a81db9da
-0,      28672,      28672,     2048,     4096, 77456fe98fad9445746d7eb3a6387114
-0,      30720,      30720,     2048,     4096, bad8723855b4834069e25f81f65fe908
-0,      32768,      32768,     2048,     4096, 77629983376f8f954fd11567aeaacade
-0,      34816,      34816,     2048,     4096, ff957d400a3a16cb64e9363ae647e1fb
-0,      36864,      36864,     2048,     4096, 0e8b11dbf88ad282b7fc63f71e95f89b
-0,      38912,      38912,     2048,     4096, 6a4dca3d249f3cb08eb56fa9fd22754f
-0,      40960,      40960,     2048,     4096, d2cb55bd5c60b92754e9d2811eeedb6c
-0,      43008,      43008,     2048,     4096, 9e56bc958b26f1a3aeffe84bdb35863e
-0,      45056,      45056,     2048,     4096, 862809c8d654f59f405b05c77e756008
-0,      47104,      47104,      896,     1792, 8b78dacc9c3682dc46cd4258ff9568c0
+0,          0,          0,     4096,     8192, ba1775217e612a6543384c58b51e9f89
+0,       4096,       4096,     4096,     8192, 0ce063f98bf5ad3cd1e953a4df7a0c94
+0,       8192,       8192,     4096,     8192, b8265db541a268471594b9c3b672be40
+0,      12288,      12288,     4096,     8192, e93a6590687f90c60930dea5b5609466
+0,      16384,      16384,     4096,     8192, 80223f46a0261a739b3dda1f64a72607
+0,      20480,      20480,     4096,     8192, 496cba7ef4fd3d8663a2f91f31bb233c
+0,      24576,      24576,     4096,     8192, 0f20842c25ddd7da9b4104e0518205ff
+0,      28672,      28672,     4096,     8192, 43a4190a057be48fbf274f04aac0e9bd
+0,      32768,      32768,     4096,     8192, 28a7f4cef81fa9760ea480638c336372
+0,      36864,      36864,     4096,     8192, a0eff70c5fdfecbf859f5eb7f2e52c88
+0,      40960,      40960,     4096,     8192, 11e09c4269eefee7668986630670280b
+0,      45056,      45056,     2944,     5888, 1dfbede84258c92c62896c4b813f8b3b
diff --git a/tests/ref/fate/matroska-move-cues-to-front b/tests/ref/fate/matroska-move-cues-to-front
index 30d034b8c5..1af5b1fab4 100644
--- a/tests/ref/fate/matroska-move-cues-to-front
+++ b/tests/ref/fate/matroska-move-cues-to-front
@@ -1,5 +1,5 @@ 
-c0cb74130c1a776cd076c50012572ca0 *tests/data/fate/matroska-move-cues-to-front.matroska
-23081433 tests/data/fate/matroska-move-cues-to-front.matroska
+deeb9e63e52e015e5f7f592f3417f385 *tests/data/fate/matroska-move-cues-to-front.matroska
+23056700 tests/data/fate/matroska-move-cues-to-front.matroska
 #tb 0: 1/1000
 #media_type 0: audio
 #codec_id 0: pcm_s24be
@@ -10,13 +10,7 @@  c0cb74130c1a776cd076c50012572ca0 *tests/data/fate/matroska-move-cues-to-front.ma
 #codec_id 1: pcm_s24le
 #sample_rate 1: 192000
 #channel_layout_name 1: stereo
-0,          0,          0,       21,    24576, 0xb53676cf
-1,          0,          0,       21,    24576, 0x96eb76cf
-0,         21,         21,       21,    24576, 0xf4ee36fe
-1,         21,         21,       21,    24576, 0xb35336fe
-0,         43,         43,       21,    24576, 0x58eb025c
-1,         43,         43,       21,    24576, 0x1ae9025c
-0,         64,         64,       21,    24576, 0x1a322ce1
-1,         64,         64,       21,    24576, 0xf11c2ce1
-0,         85,         85,       21,    24576, 0xfba5a91d
-1,         85,         85,       21,    24576, 0xef55a91d
+0,          0,          0,       85,    98304, 0x4acbdd0a
+1,          0,          0,       85,    98304, 0x83cddd0a
+0,         85,         85,       85,    98304, 0x8f975bc7
+1,         85,         85,       85,    98304, 0xdd315bc7
diff --git a/tests/ref/fate/mov-channel-description b/tests/ref/fate/mov-channel-description
index fc1c1509ea..d0e349ebf2 100644
--- a/tests/ref/fate/mov-channel-description
+++ b/tests/ref/fate/mov-channel-description
@@ -1,5 +1,5 @@ 
-cef306a5fa3bf45bcf174558d8ee6669 *tests/data/fate/mov-channel-description.mov
-4246172 tests/data/fate/mov-channel-description.mov
+38349ec7e5b2b440de54cfa383124359 *tests/data/fate/mov-channel-description.mov
+4239964 tests/data/fate/mov-channel-description.mov
 #tb 0: 1/44100
 #media_type 0: audio
 #codec_id 0: pcm_s16le
diff --git a/tests/ref/fate/mov-mp4-pcm b/tests/ref/fate/mov-mp4-pcm
index a40d16d3ac..6bae8f800b 100644
--- a/tests/ref/fate/mov-mp4-pcm
+++ b/tests/ref/fate/mov-mp4-pcm
@@ -1,5 +1,5 @@ 
-46624ccfca227727705222687cd90000 *tests/data/fate/mov-mp4-pcm.mp4
-10591857 tests/data/fate/mov-mp4-pcm.mp4
+99ad26b4054794e84bd962a1124cdccf *tests/data/fate/mov-mp4-pcm.mp4
+10587977 tests/data/fate/mov-mp4-pcm.mp4
 #tb 0: 1/44100
 #media_type 0: audio
 #codec_id 0: pcm_s16le
diff --git a/tests/ref/fate/mov-mp4-pcm-float b/tests/ref/fate/mov-mp4-pcm-float
index 16c51e4324..7da8fd2aba 100644
--- a/tests/ref/fate/mov-mp4-pcm-float
+++ b/tests/ref/fate/mov-mp4-pcm-float
@@ -1,4 +1,4 @@ 
-d9e7439757350ddb75d309918caf2de5 *tests/data/fate/mov-mp4-pcm-float.mp4
+7b998e652d5b7154e646a98bd2bf28a1 *tests/data/fate/mov-mp4-pcm-float.mp4
 3175929 tests/data/fate/mov-mp4-pcm-float.mp4
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/lavf/ast b/tests/ref/lavf/ast
index 2f2e8de46f..cf0de6d4dc 100644
--- a/tests/ref/lavf/ast
+++ b/tests/ref/lavf/ast
@@ -1,3 +1,3 @@ 
-07f5d23aa8bade984034f7005bd72947 *tests/data/lavf/lavf.ast
-177872 tests/data/lavf/lavf.ast
+2b5c8870fbf4e469e30161921d357064 *tests/data/lavf/lavf.ast
+176816 tests/data/lavf/lavf.ast
 tests/data/lavf/lavf.ast CRC=0xe61e3bd0
diff --git a/tests/ref/lavf/mov b/tests/ref/lavf/mov
index cfc64141aa..7e6a91f171 100644
--- a/tests/ref/lavf/mov
+++ b/tests/ref/lavf/mov
@@ -1,9 +1,9 @@ 
-11bd76730274924e02623172b82b5236 *tests/data/lavf/lavf.mov
-357539 tests/data/lavf/lavf.mov
+0714e32691dcf6b80c33fdfb81919c12 *tests/data/lavf/lavf.mov
+357371 tests/data/lavf/lavf.mov
 tests/data/lavf/lavf.mov CRC=0xbb2b949b
-9ed9ce9b636f85b62d3c3583ff84691e *tests/data/lavf/lavf.mov
-366793 tests/data/lavf/lavf.mov
+115919b9f9c15f6631d30a827ef10c9e *tests/data/lavf/lavf.mov
+366405 tests/data/lavf/lavf.mov
 tests/data/lavf/lavf.mov CRC=0xc75fc595
-c80c625ded376602e71d5aa6ac6fdb1c *tests/data/lavf/lavf.mov
-356921 tests/data/lavf/lavf.mov
+76729644f95883101d2134d117c1126a *tests/data/lavf/lavf.mov
+356753 tests/data/lavf/lavf.mov
 tests/data/lavf/lavf.mov CRC=0xbb2b949b
diff --git a/tests/ref/lavf/mov_rtphint b/tests/ref/lavf/mov_rtphint
index 79a760694f..1d5e720351 100644
--- a/tests/ref/lavf/mov_rtphint
+++ b/tests/ref/lavf/mov_rtphint
@@ -1,3 +1,3 @@ 
-7014419d8267c2751314303a8fb303c1 *tests/data/lavf/lavf.mov_rtphint
-366449 tests/data/lavf/lavf.mov_rtphint
+d3d0b0a15e2207e1d69b7de5c0ff845c *tests/data/lavf/lavf.mov_rtphint
+365745 tests/data/lavf/lavf.mov_rtphint
 tests/data/lavf/lavf.mov_rtphint CRC=0xbb2b949b
diff --git a/tests/ref/lavf/s16.voc b/tests/ref/lavf/s16.voc
index 9b17a4c9b9..f55bc9a23f 100644
--- a/tests/ref/lavf/s16.voc
+++ b/tests/ref/lavf/s16.voc
@@ -1,3 +1,3 @@ 
-db9fa22ff71992bd8b6cc80047223c92 *tests/data/lavf/lavf.s16.voc
-176615 tests/data/lavf/lavf.s16.voc
+1193331ea592eeae53aca59f7c95c747 *tests/data/lavf/lavf.s16.voc
+176483 tests/data/lavf/lavf.s16.voc
 tests/data/lavf/lavf.s16.voc CRC=0xe61e3bd0
diff --git a/tests/ref/lavf/smjpeg b/tests/ref/lavf/smjpeg
index 537c0847cb..7547fe34c5 100644
--- a/tests/ref/lavf/smjpeg
+++ b/tests/ref/lavf/smjpeg
@@ -1,3 +1,3 @@ 
-3fe90213ac4f5275eb85ad0a4e4bdb44 *tests/data/lavf/lavf.smjpeg
-728642 tests/data/lavf/lavf.smjpeg
-tests/data/lavf/lavf.smjpeg CRC=0x54bf6147
+f574f78207dee180a04cf7fb8c14d8ee *tests/data/lavf/lavf.smjpeg
+728246 tests/data/lavf/lavf.smjpeg
+tests/data/lavf/lavf.smjpeg CRC=0x54dd6147
diff --git a/tests/ref/lavf/voc b/tests/ref/lavf/voc
index 0ac933e2f1..ec81f76d63 100644
--- a/tests/ref/lavf/voc
+++ b/tests/ref/lavf/voc
@@ -1,3 +1,3 @@ 
-bb5ad96a5e1b35683d50bf18115db821 *tests/data/lavf/lavf.voc
-44305 tests/data/lavf/lavf.voc
+330aeb346d67d5db284d061b9d43961e *tests/data/lavf/lavf.voc
+44173 tests/data/lavf/lavf.voc
 tests/data/lavf/lavf.voc CRC=0x298fd284
diff --git a/tests/ref/seek/acodec-pcm-alaw b/tests/ref/seek/acodec-pcm-alaw
index 3f9e91de1e..dacf75d365 100644
--- a/tests/ref/seek/acodec-pcm-alaw
+++ b/tests/ref/seek/acodec-pcm-alaw
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 167124 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 167124 size:  8192
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  69590 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  69590 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st:-1 flags:0  ts: 2.576668
-ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 227320 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 227320 size:  8192
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 129786 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 129786 size:  8192
 ret: 0         st: 0 flags:0  ts: 0.365011
-ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  32252 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  32252 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st:-1 flags:0  ts: 2.153336
-ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 189982 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 189982 size:  8192
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos:  92448 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos:  92448 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 250178 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 250178 size:  8192
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 152644 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 152644 size:  8192
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  55110 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  55110 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st: 0 flags:1  ts: 2.412494
-ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 212840 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 212840 size:  8192
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 115306 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 115306 size:  8192
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  17772 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  17772 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st: 0 flags:1  ts: 1.989184
-ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 175504 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 175504 size:  8192
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos:  77968 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos:  77968 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st: 0 flags:0  ts: 2.671678
-ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 235700 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 235700 size:  8192
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 138166 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 138166 size:  8192
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  40630 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  40630 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
diff --git a/tests/ref/seek/acodec-pcm-f32be b/tests/ref/seek/acodec-pcm-f32be
index b838262b58..0da3c89633 100644
--- a/tests/ref/seek/acodec-pcm-f32be
+++ b/tests/ref/seek/acodec-pcm-f32be
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 32768
 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: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 32768
 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:1 dts: 1.894172 pts: 1.894172 pos: 668296 size: 32768
 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 dts: 0.788345 pts: 0.788345 pos: 278160 size: 32768
 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: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 32768
 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: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 909080 size: 32768
 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:1 dts: 1.470839 pts: 1.470839 pos: 518944 size: 32768
 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 dts: 0.365011 pts: 0.365011 pos: 128808 size: 32768
 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: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 32768
 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: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 759728 size: 32768
 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:1 dts: 1.047506 pts: 1.047506 pos: 369592 size: 32768
 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 dts: 0.000000 pts: 0.000000 pos:     32 size: 32768
 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: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:1000512 size: 32768
 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: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 610376 size: 32768
 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:1 dts: 0.624172 pts: 0.624172 pos: 220240 size: 32768
 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 dts: 0.000000 pts: 0.000000 pos:     32 size: 32768
 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: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 851160 size: 32768
 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: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 461024 size: 32768
 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:1 dts: 0.200839 pts: 0.200839 pos:  70888 size: 32768
 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 dts: 0.000000 pts: 0.000000 pos:     32 size: 32768
 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: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 701816 size: 32768
 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: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 311672 size: 32768
 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:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 32768
 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 dts: 2.671678 pts: 2.671678 pos: 942600 size: 32768
 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: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 552464 size: 32768
 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: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 162320 size: 32768
 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
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 32768
diff --git a/tests/ref/seek/acodec-pcm-f32le b/tests/ref/seek/acodec-pcm-f32le
index 0a16dd2fa8..145d9fc9ad 100644
--- a/tests/ref/seek/acodec-pcm-f32le
+++ b/tests/ref/seek/acodec-pcm-f32le
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 32768
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 32768
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 668322 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 668322 size: 32768
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 278186 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 278186 size: 32768
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 32768
 ret: 0         st:-1 flags:0  ts: 2.576668
-ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 909106 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 909106 size: 32768
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 518970 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 518970 size: 32768
 ret: 0         st: 0 flags:0  ts: 0.365011
-ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 128834 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 128834 size: 32768
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 32768
 ret: 0         st:-1 flags:0  ts: 2.153336
-ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 759754 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 759754 size: 32768
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 369618 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 369618 size: 32768
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 32768
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:1000538 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:1000538 size: 32768
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 610402 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 610402 size: 32768
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 220266 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 220266 size: 32768
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 32768
 ret: 0         st: 0 flags:1  ts: 2.412494
-ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 851186 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 851186 size: 32768
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 461050 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 461050 size: 32768
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  70914 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  70914 size: 32768
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 32768
 ret: 0         st: 0 flags:1  ts: 1.989184
-ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 701842 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 701842 size: 32768
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 311698 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 311698 size: 32768
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 32768
 ret: 0         st: 0 flags:0  ts: 2.671678
-ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 942626 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 942626 size: 32768
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 552490 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 552490 size: 32768
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 162346 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 162346 size: 32768
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 32768
diff --git a/tests/ref/seek/acodec-pcm-f64be b/tests/ref/seek/acodec-pcm-f64be
index 82223517d5..7698b9b35e 100644
--- a/tests/ref/seek/acodec-pcm-f64be
+++ b/tests/ref/seek/acodec-pcm-f64be
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 65536
 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: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 65536
 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:1 dts: 1.894172 pts: 1.894172 pos:1336560 size: 65536
 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 dts: 0.788345 pts: 0.788345 pos: 556288 size: 65536
 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: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 65536
 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: 0 flags:1 dts: 2.576667 pts: 2.576667 pos:1818128 size: 65536
 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:1 dts: 1.470839 pts: 1.470839 pos:1037856 size: 65536
 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 dts: 0.365011 pts: 0.365011 pos: 257584 size: 65536
 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: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 65536
 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: 0 flags:1 dts: 2.153333 pts: 2.153333 pos:1519424 size: 65536
 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:1 dts: 1.047506 pts: 1.047506 pos: 739152 size: 65536
 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 dts: 0.000000 pts: 0.000000 pos:     32 size: 65536
 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: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:2000992 size: 65536
 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: 0 flags:1 dts: 1.730000 pts: 1.730000 pos:1220720 size: 65536
 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:1 dts: 0.624172 pts: 0.624172 pos: 440448 size: 65536
 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 dts: 0.000000 pts: 0.000000 pos:     32 size: 65536
 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: 0 flags:1 dts: 2.412494 pts: 2.412494 pos:1702288 size: 65536
 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: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 922016 size: 65536
 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:1 dts: 0.200839 pts: 0.200839 pos: 141744 size: 65536
 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 dts: 0.000000 pts: 0.000000 pos:     32 size: 65536
 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: 0 flags:1 dts: 1.989184 pts: 1.989184 pos:1403600 size: 65536
 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: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 623312 size: 65536
 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:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 65536
 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 dts: 2.671678 pts: 2.671678 pos:1885168 size: 65536
 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: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:1104896 size: 65536
 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: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 324608 size: 65536
 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
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size: 65536
diff --git a/tests/ref/seek/acodec-pcm-f64le b/tests/ref/seek/acodec-pcm-f64le
index 8ec1a71c08..7d7d73dd81 100644
--- a/tests/ref/seek/acodec-pcm-f64le
+++ b/tests/ref/seek/acodec-pcm-f64le
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 65536
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 65536
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos:1336586 size: 16384
+ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos:1336586 size: 65536
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 556314 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 556314 size: 65536
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 65536
 ret: 0         st:-1 flags:0  ts: 2.576668
-ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos:1818154 size: 16384
+ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos:1818154 size: 65536
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:1037882 size: 16384
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:1037882 size: 65536
 ret: 0         st: 0 flags:0  ts: 0.365011
-ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 257610 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 257610 size: 65536
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 65536
 ret: 0         st:-1 flags:0  ts: 2.153336
-ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos:1519450 size: 16384
+ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos:1519450 size: 65536
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 739178 size: 16384
+ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 739178 size: 65536
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 65536
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:2001018 size: 16384
+ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:2001018 size: 65536
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos:1220746 size: 16384
+ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos:1220746 size: 65536
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 440474 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 440474 size: 65536
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 65536
 ret: 0         st: 0 flags:1  ts: 2.412494
-ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos:1702314 size: 16384
+ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos:1702314 size: 65536
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 922042 size: 16384
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 922042 size: 65536
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 141770 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos: 141770 size: 65536
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 65536
 ret: 0         st: 0 flags:1  ts: 1.989184
-ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos:1403626 size: 16384
+ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos:1403626 size: 65536
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 623338 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 623338 size: 65536
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 65536
 ret: 0         st: 0 flags:0  ts: 2.671678
-ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos:1885194 size: 16384
+ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos:1885194 size: 65536
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:1104922 size: 16384
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:1104922 size: 65536
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 324634 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 324634 size: 65536
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 16384
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size: 65536
diff --git a/tests/ref/seek/acodec-pcm-mulaw b/tests/ref/seek/acodec-pcm-mulaw
index 3f9e91de1e..dacf75d365 100644
--- a/tests/ref/seek/acodec-pcm-mulaw
+++ b/tests/ref/seek/acodec-pcm-mulaw
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 167124 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 167124 size:  8192
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  69590 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  69590 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st:-1 flags:0  ts: 2.576668
-ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 227320 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 227320 size:  8192
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 129786 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 129786 size:  8192
 ret: 0         st: 0 flags:0  ts: 0.365011
-ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  32252 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  32252 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st:-1 flags:0  ts: 2.153336
-ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 189982 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 189982 size:  8192
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos:  92448 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos:  92448 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 250178 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 250178 size:  8192
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 152644 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 152644 size:  8192
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  55110 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  55110 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st: 0 flags:1  ts: 2.412494
-ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 212840 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 212840 size:  8192
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 115306 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 115306 size:  8192
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  17772 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  17772 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st: 0 flags:1  ts: 1.989184
-ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 175504 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 175504 size:  8192
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos:  77968 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos:  77968 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
 ret: 0         st: 0 flags:0  ts: 2.671678
-ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 235700 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 235700 size:  8192
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 138166 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 138166 size:  8192
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  40630 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  40630 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     58 size:  8192
diff --git a/tests/ref/seek/acodec-pcm-s16le b/tests/ref/seek/acodec-pcm-s16le
index 41acc98d8d..c2ec8dd933 100644
--- a/tests/ref/seek/acodec-pcm-s16le
+++ b/tests/ref/seek/acodec-pcm-s16le
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size: 16384
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size: 16384
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 334176 size:  4096
+ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 334176 size: 16384
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 139108 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 139108 size: 16384
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size: 16384
 ret: 0         st:-1 flags:0  ts: 2.576668
-ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 454568 size:  4096
+ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 454568 size: 16384
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 259500 size:  4096
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 259500 size: 16384
 ret: 0         st: 0 flags:0  ts: 0.365011
-ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  64432 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  64432 size: 16384
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size: 16384
 ret: 0         st:-1 flags:0  ts: 2.153336
-ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 379892 size:  4096
+ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 379892 size: 16384
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 184824 size:  4096
+ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 184824 size: 16384
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size: 16384
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 500284 size:  4096
+ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 500284 size: 16384
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 305216 size:  4096
+ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 305216 size: 16384
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 110148 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 110148 size: 16384
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size: 16384
 ret: 0         st: 0 flags:1  ts: 2.412494
-ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 425608 size:  4096
+ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 425608 size: 16384
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 230540 size:  4096
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 230540 size: 16384
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  35472 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  35472 size: 16384
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size: 16384
 ret: 0         st: 0 flags:1  ts: 1.989184
-ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 350936 size:  4096
+ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 350936 size: 16384
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 155864 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 155864 size: 16384
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size: 16384
 ret: 0         st: 0 flags:0  ts: 2.671678
-ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 471328 size:  4096
+ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 471328 size: 16384
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 276260 size:  4096
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 276260 size: 16384
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  81188 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  81188 size: 16384
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  4096
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size: 16384
diff --git a/tests/ref/seek/acodec-pcm-s24le b/tests/ref/seek/acodec-pcm-s24le
index ab57765a69..05beb56e95 100644
--- a/tests/ref/seek/acodec-pcm-s24le
+++ b/tests/ref/seek/acodec-pcm-s24le
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 24576
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 24576
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 501266 size:  6144
+ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 501266 size: 24576
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 208664 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 208664 size: 24576
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 24576
 ret: 0         st:-1 flags:0  ts: 2.576668
-ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 681854 size:  6144
+ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 681854 size: 24576
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 389252 size:  6144
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 389252 size: 24576
 ret: 0         st: 0 flags:0  ts: 0.365011
-ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  96650 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  96650 size: 24576
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 24576
 ret: 0         st:-1 flags:0  ts: 2.153336
-ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 569840 size:  6144
+ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 569840 size: 24576
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 277238 size:  6144
+ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 277238 size: 24576
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 24576
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 750428 size:  6144
+ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 750428 size: 24576
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 457826 size:  6144
+ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 457826 size: 24576
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 165224 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 165224 size: 24576
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 24576
 ret: 0         st: 0 flags:1  ts: 2.412494
-ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 638414 size:  6144
+ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 638414 size: 24576
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 345812 size:  6144
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 345812 size: 24576
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  53210 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  53210 size: 24576
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 24576
 ret: 0         st: 0 flags:1  ts: 1.989184
-ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 526406 size:  6144
+ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 526406 size: 24576
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 233798 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 233798 size: 24576
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 24576
 ret: 0         st: 0 flags:0  ts: 2.671678
-ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 706994 size:  6144
+ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 706994 size: 24576
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 414392 size:  6144
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 414392 size: 24576
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 121784 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 121784 size: 24576
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  6144
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 24576
diff --git a/tests/ref/seek/acodec-pcm-s32le b/tests/ref/seek/acodec-pcm-s32le
index 66d79ca7d2..f2b15c2a68 100644
--- a/tests/ref/seek/acodec-pcm-s32le
+++ b/tests/ref/seek/acodec-pcm-s32le
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 32768
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 32768
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 668332 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 668332 size: 32768
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 278196 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos: 278196 size: 32768
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 32768
 ret: 0         st:-1 flags:0  ts: 2.576668
-ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 909116 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 909116 size: 32768
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 518980 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 518980 size: 32768
 ret: 0         st: 0 flags:0  ts: 0.365011
-ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 128844 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos: 128844 size: 32768
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 32768
 ret: 0         st:-1 flags:0  ts: 2.153336
-ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 759764 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 759764 size: 32768
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 369628 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos: 369628 size: 32768
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 32768
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:1000548 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos:1000548 size: 32768
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 610412 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 610412 size: 32768
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 220276 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos: 220276 size: 32768
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 32768
 ret: 0         st: 0 flags:1  ts: 2.412494
-ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 851196 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 851196 size: 32768
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 461060 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 461060 size: 32768
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  70924 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  70924 size: 32768
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 32768
 ret: 0         st: 0 flags:1  ts: 1.989184
-ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 701852 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 701852 size: 32768
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 311708 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos: 311708 size: 32768
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 32768
 ret: 0         st: 0 flags:0  ts: 2.671678
-ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 942636 size:  8192
+ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 942636 size: 32768
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 552500 size:  8192
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 552500 size: 32768
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 162356 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos: 162356 size: 32768
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size:  8192
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     68 size: 32768
diff --git a/tests/ref/seek/acodec-pcm-u8 b/tests/ref/seek/acodec-pcm-u8
index 7782e4a9d7..5a02f6b845 100644
--- a/tests/ref/seek/acodec-pcm-u8
+++ b/tests/ref/seek/acodec-pcm-u8
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  8192
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  8192
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 167110 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.894172 pts: 1.894172 pos: 167110 size:  8192
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  69576 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  69576 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  8192
 ret: 0         st:-1 flags:0  ts: 2.576668
-ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 227306 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.576667 pts: 2.576667 pos: 227306 size:  8192
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 129772 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos: 129772 size:  8192
 ret: 0         st: 0 flags:0  ts: 0.365011
-ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  32238 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  32238 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  8192
 ret: 0         st:-1 flags:0  ts: 2.153336
-ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 189968 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.153333 pts: 2.153333 pos: 189968 size:  8192
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos:  92434 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.047506 pts: 1.047506 pos:  92434 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  8192
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 250164 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.835828 pts: 2.835828 pos: 250164 size:  8192
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 152630 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.730000 pts: 1.730000 pos: 152630 size:  8192
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  55096 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  55096 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  8192
 ret: 0         st: 0 flags:1  ts: 2.412494
-ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 212826 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.412494 pts: 2.412494 pos: 212826 size:  8192
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 115292 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos: 115292 size:  8192
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  17758 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  17758 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  8192
 ret: 0         st: 0 flags:1  ts: 1.989184
-ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 175490 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.989184 pts: 1.989184 pos: 175490 size:  8192
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos:  77954 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos:  77954 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  8192
 ret: 0         st: 0 flags:0  ts: 2.671678
-ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 235686 size:  2048
+ret: 0         st: 0 flags:1 dts: 2.671678 pts: 2.671678 pos: 235686 size:  8192
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 138152 size:  2048
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos: 138152 size:  8192
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  40616 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  40616 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     44 size:  8192
diff --git a/tests/ref/seek/lavf-al b/tests/ref/seek/lavf-al
index ebf7993425..4cf458835a 100644
--- a/tests/ref/seek/lavf-al
+++ b/tests/ref/seek/lavf-al
@@ -1,50 +1,50 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos:  41766 size:   512
+ret: 0         st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos:  41766 size:  2048
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  17383 size:   512
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  17383 size:  2048
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 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.470839 pts: 1.470839 pos:  32432 size:   512
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:  32432 size:  2048
 ret: 0         st: 0 flags:0  ts: 0.364989
-ret: 0         st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos:   8048 size:   512
+ret: 0         st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos:   8048 size:  2048
 ret: 0         st: 0 flags:1  ts:-0.740816
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 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.047483 pts: 1.047483 pos:  23097 size:   512
+ret: 0         st: 0 flags:1 dts: 1.047483 pts: 1.047483 pos:  23097 size:  2048
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 1.987029 pts: 1.987029 pos:  43814 size:   286
+ret: 0         st: 0 flags:1 dts: 1.950476 pts: 1.950476 pos:  43008 size:  1092
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos:  38147 size:   512
+ret: 0         st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos:  38147 size:  2048
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  13763 size:   512
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  13763 size:  2048
 ret: 0         st: 0 flags:0  ts:-0.481678
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st: 0 flags:1  ts: 2.412517
-ret: 0         st: 0 flags:1 dts: 1.987029 pts: 1.987029 pos:  43814 size:   286
+ret: 0         st: 0 flags:1 dts: 1.950476 pts: 1.950476 pos:  43008 size:  1092
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos:  28812 size:   512
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos:  28812 size:  2048
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos:   4428 size:   512
+ret: 0         st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos:   4428 size:  2048
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st: 0 flags:1  ts: 1.989161
 ret: 0         st: 0 flags:1 dts: 1.989161 pts: 1.989161 pos:  43861 size:   239
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos:  19478 size:   512
+ret: 0         st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos:  19478 size:  2048
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret:-1         st: 0 flags:0  ts: 2.671655
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:  34527 size:   512
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:  34527 size:  2048
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  10143 size:   512
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  10143 size:  2048
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
diff --git a/tests/ref/seek/lavf-au b/tests/ref/seek/lavf-au
index 8edce58f65..72c8593217 100644
--- a/tests/ref/seek/lavf-au
+++ b/tests/ref/seek/lavf-au
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  8192
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  8192
 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:  69572 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  69572 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  8192
 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:  32234 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  32234 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  8192
 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:     40 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  8192
 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:  55092 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  55092 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  8192
 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:  17754 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  17754 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  8192
 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:  77950 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos:  77950 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  8192
 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:  40612 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  40612 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     40 size:  8192
diff --git a/tests/ref/seek/lavf-mov b/tests/ref/seek/lavf-mov
index 27ea7c7730..2eda1c08e0 100644
--- a/tests/ref/seek/lavf-mov
+++ b/tests/ref/seek/lavf-mov
@@ -1,48 +1,48 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 size: 27837
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 size: 27837
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326971 size:  1024
+ret: 0         st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326803 size:  1024
 ret: 0         st: 0 flags:0  ts: 0.788359
-ret: 0         st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 327995 size: 27834
+ret: 0         st: 1 flags:1 dts: 0.975238 pts: 0.975238 pos: 327827 size:  1024
 ret: 0         st: 0 flags:1  ts:-0.317500
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 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: 327995 size: 27834
+ret: 0         st: 1 flags:1 dts: 0.998458 pts: 0.998458 pos: 328851 size:    68
 ret: 0         st:-1 flags:0  ts: 0.365002
-ret: 0         st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 165249 size: 27925
+ret: 0         st: 1 flags:1 dts: 0.487619 pts: 0.487619 pos: 165081 size:  1024
 ret: 0         st:-1 flags:1  ts:-0.740831
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 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: 326971 size:  1024
+ret: 0         st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326803 size:  1024
 ret: 0         st: 1 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 size: 27837
 ret: 0         st: 1 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 327995 size: 27834
+ret: 0         st: 1 flags:1 dts: 0.998458 pts: 0.998458 pos: 328851 size:    68
 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: 164225 size:  1024
+ret: 0         st: 1 flags:1 dts: 0.464399 pts: 0.464399 pos: 164057 size:  1024
 ret: 0         st: 0 flags:0  ts:-0.481641
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 size: 27837
 ret: 0         st: 0 flags:1  ts: 2.412500
-ret: 0         st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326971 size:  1024
+ret: 0         st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326803 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:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 size: 27837
 ret: 0         st:-1 flags:0  ts:-0.904994
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 size: 27837
 ret: 0         st:-1 flags:1  ts: 1.989173
-ret: 0         st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326971 size:  1024
+ret: 0         st: 1 flags:1 dts: 0.952018 pts: 0.952018 pos: 326803 size:  1024
 ret: 0         st: 0 flags:0  ts: 0.883359
-ret: 0         st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 327995 size: 27834
+ret: 0         st: 1 flags:1 dts: 0.975238 pts: 0.975238 pos: 327827 size:  1024
 ret: 0         st: 0 flags:1  ts:-0.222500
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 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: 327995 size: 27834
+ret: 0         st: 1 flags:1 dts: 0.998458 pts: 0.998458 pos: 328851 size:    68
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 165249 size: 27925
+ret: 0         st: 1 flags:1 dts: 0.487619 pts: 0.487619 pos: 165081 size:  1024
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1767 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:   1599 size: 27837
diff --git a/tests/ref/seek/lavf-ul b/tests/ref/seek/lavf-ul
index ebf7993425..4cf458835a 100644
--- a/tests/ref/seek/lavf-ul
+++ b/tests/ref/seek/lavf-ul
@@ -1,50 +1,50 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos:  41766 size:   512
+ret: 0         st: 0 flags:1 dts: 1.894150 pts: 1.894150 pos:  41766 size:  2048
 ret: 0         st: 0 flags:0  ts: 0.788345
-ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  17383 size:   512
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  17383 size:  2048
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 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.470839 pts: 1.470839 pos:  32432 size:   512
+ret: 0         st: 0 flags:1 dts: 1.470839 pts: 1.470839 pos:  32432 size:  2048
 ret: 0         st: 0 flags:0  ts: 0.364989
-ret: 0         st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos:   8048 size:   512
+ret: 0         st: 0 flags:1 dts: 0.364989 pts: 0.364989 pos:   8048 size:  2048
 ret: 0         st: 0 flags:1  ts:-0.740816
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 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.047483 pts: 1.047483 pos:  23097 size:   512
+ret: 0         st: 0 flags:1 dts: 1.047483 pts: 1.047483 pos:  23097 size:  2048
 ret: 0         st: 0 flags:0  ts:-0.058322
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st: 0 flags:1  ts: 2.835828
-ret: 0         st: 0 flags:1 dts: 1.987029 pts: 1.987029 pos:  43814 size:   286
+ret: 0         st: 0 flags:1 dts: 1.950476 pts: 1.950476 pos:  43008 size:  1092
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos:  38147 size:   512
+ret: 0         st: 0 flags:1 dts: 1.730023 pts: 1.730023 pos:  38147 size:  2048
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  13763 size:   512
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  13763 size:  2048
 ret: 0         st: 0 flags:0  ts:-0.481678
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st: 0 flags:1  ts: 2.412517
-ret: 0         st: 0 flags:1 dts: 1.987029 pts: 1.987029 pos:  43814 size:   286
+ret: 0         st: 0 flags:1 dts: 1.950476 pts: 1.950476 pos:  43008 size:  1092
 ret: 0         st:-1 flags:0  ts: 1.306672
-ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos:  28812 size:   512
+ret: 0         st: 0 flags:1 dts: 1.306667 pts: 1.306667 pos:  28812 size:  2048
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos:   4428 size:   512
+ret: 0         st: 0 flags:1 dts: 0.200816 pts: 0.200816 pos:   4428 size:  2048
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret: 0         st: 0 flags:1  ts: 1.989161
 ret: 0         st: 0 flags:1 dts: 1.989161 pts: 1.989161 pos:  43861 size:   239
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos:  19478 size:   512
+ret: 0         st: 0 flags:1 dts: 0.883356 pts: 0.883356 pos:  19478 size:  2048
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
 ret:-1         st: 0 flags:0  ts: 2.671655
 ret: 0         st: 0 flags:1  ts: 1.565850
-ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:  34527 size:   512
+ret: 0         st: 0 flags:1 dts: 1.565850 pts: 1.565850 pos:  34527 size:  2048
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  10143 size:   512
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  10143 size:  2048
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:   512
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size:  2048
diff --git a/tests/ref/seek/lavf-voc b/tests/ref/seek/lavf-voc
index 014c251129..55bde57c20 100644
--- a/tests/ref/seek/lavf-voc
+++ b/tests/ref/seek/lavf-voc
@@ -1,44 +1,44 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size:  1024
+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:  1024
+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.788330
-ret: 0         st: 0 flags:1 dts: 0.800773 pts: 0.800773 pos:  34984 size:  1024
+ret: 0         st: 0 flags:1 dts: 0.800773 pts: 0.800773 pos:  34880 size:  2048
 ret:-1         st: 0 flags:1  ts:-0.317494
 ret:-1         st:-1 flags:0  ts: 2.576668
 ret: 0         st:-1 flags:1  ts: 1.470835
 ret:-EOF
 ret: 0         st: 0 flags:0  ts: 0.365012
-ret: 0         st: 0 flags:1 dts: 0.376834 pts: 0.376834 pos:  16480 size:  1024
+ret: 0         st: 0 flags:1 dts: 0.376834 pts: 0.376834 pos:  16432 size:  2048
 ret:-1         st: 0 flags:1  ts:-0.740834
 ret:-1         st:-1 flags:0  ts: 2.153336
 ret: 0         st:-1 flags:1  ts: 1.047503
 ret:-EOF
 ret: 0         st: 0 flags:0  ts:-0.058328
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size:  1024
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size:  2048
 ret: 0         st: 0 flags:1  ts: 2.835848
 ret:-EOF
 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.612356 pts: 0.612356 pos:  26760 size:  1024
+ret: 0         st: 0 flags:1 dts: 0.612356 pts: 0.612356 pos:  26680 size:  2048
 ret: 0         st: 0 flags:0  ts:-0.481669
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size:  1024
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size:  2048
 ret: 0         st: 0 flags:1  ts: 2.412507
 ret:-EOF
 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.188417 pts: 0.188417 pos:   8256 size:  1024
+ret: 0         st: 0 flags:1 dts: 0.188417 pts: 0.188417 pos:   8232 size:  2048
 ret: 0         st: 0 flags:0  ts:-0.904986
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size:  1024
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     32 size:  2048
 ret: 0         st: 0 flags:1  ts: 1.989167
 ret:-EOF
 ret: 0         st:-1 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.894981 pts: 0.894981 pos:  39096 size:  1024
+ret: 0         st: 0 flags:1 dts: 0.894981 pts: 0.894981 pos:  38980 size:  2048
 ret:-1         st:-1 flags:1  ts:-0.222493
 ret:-1         st: 0 flags:0  ts: 2.671673
 ret: 0         st: 0 flags:1  ts: 1.565849
 ret:-EOF
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.471043 pts: 0.471043 pos:  20592 size:  1024
+ret: 0         st: 0 flags:1 dts: 0.471043 pts: 0.471043 pos:  20532 size:  2048
 ret:-1         st:-1 flags:1  ts:-0.645825
diff --git a/tests/ref/seek/lavf-wav b/tests/ref/seek/lavf-wav
index 0328ffc84b..c3e90b6a22 100644
--- a/tests/ref/seek/lavf-wav
+++ b/tests/ref/seek/lavf-wav
@@ -1,53 +1,53 @@ 
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  8192
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  8192
 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:  69606 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.788345 pts: 0.788345 pos:  69606 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.317506
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  8192
 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:  32268 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.365011 pts: 0.365011 pos:  32268 size:  8192
 ret: 0         st: 0 flags:1  ts:-0.740839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  8192
 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:     74 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  8192
 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:  55126 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.624172 pts: 0.624172 pos:  55126 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.481655
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  8192
 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:  17788 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.200839 pts: 0.200839 pos:  17788 size:  8192
 ret: 0         st: 0 flags:0  ts:-0.904989
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  8192
 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:  77984 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.883333 pts: 0.883333 pos:  77984 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.222493
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  8192
 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:  40646 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.460000 pts: 0.460000 pos:  40646 size:  8192
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  2048
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     74 size:  8192