[FFmpeg-devel] [PATCH] nutenc: add missing main_flags

Michael Niedermayer michaelni at gmx.at
Wed May 15 12:54:03 CEST 2013


Found-by: Luca Barbato
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/nutenc.c                           |    1 +
 tests/ref/acodec/pcm-s16be_planar              |    4 +-
 tests/ref/acodec/pcm-s16le_planar              |    4 +-
 tests/ref/acodec/pcm-s24le_planar              |    4 +-
 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/fate/ffprobe_compact                 |   58 +++---
 tests/ref/fate/ffprobe_csv                     |   58 +++---
 tests/ref/fate/ffprobe_default                 |   60 +++----
 tests/ref/fate/ffprobe_flat                    |   60 +++----
 tests/ref/fate/ffprobe_ini                     |   60 +++----
 tests/ref/fate/ffprobe_json                    |   60 +++----
 tests/ref/fate/ffprobe_xml                     |   58 +++---
 tests/ref/fate/filter-colormatrix1             |    2 +-
 tests/ref/fate/filter-colormatrix2             |    2 +-
 tests/ref/fate/filter-crop                     |    2 +-
 tests/ref/fate/filter-crop_scale               |    2 +-
 tests/ref/fate/filter-crop_scale_vflip         |    2 +-
 tests/ref/fate/filter-crop_vflip               |    2 +-
 tests/ref/fate/filter-edgedetect               |    2 +-
 tests/ref/fate/filter-hue                      |    2 +-
 tests/ref/fate/filter-idet                     |    2 +-
 tests/ref/fate/filter-null                     |    2 +-
 tests/ref/fate/filter-pad                      |    2 +-
 tests/ref/fate/filter-pixdesc                  |  224 +++++++++++------------
 tests/ref/fate/filter-pixfmts-copy             |  230 ++++++++++++------------
 tests/ref/fate/filter-pixfmts-crop             |   86 ++++-----
 tests/ref/fate/filter-pixfmts-field            |  230 ++++++++++++------------
 tests/ref/fate/filter-pixfmts-hflip            |  222 +++++++++++------------
 tests/ref/fate/filter-pixfmts-il               |  228 +++++++++++------------
 tests/ref/fate/filter-pixfmts-kerndeint        |   20 +--
 tests/ref/fate/filter-pixfmts-lut              |   38 ++--
 tests/ref/fate/filter-pixfmts-null             |  230 ++++++++++++------------
 tests/ref/fate/filter-pixfmts-pad              |   52 +++---
 tests/ref/fate/filter-pixfmts-scale            |  230 ++++++++++++------------
 tests/ref/fate/filter-pixfmts-super2xsai       |   28 +--
 tests/ref/fate/filter-pixfmts-swapuv           |  122 ++++++-------
 tests/ref/fate/filter-pixfmts-tinterlace_merge |   20 +--
 tests/ref/fate/filter-pixfmts-tinterlace_pad   |   20 +--
 tests/ref/fate/filter-pixfmts-vflip            |  230 ++++++++++++------------
 tests/ref/fate/filter-pp                       |    2 +-
 tests/ref/fate/filter-pp2                      |    2 +-
 tests/ref/fate/filter-pp3                      |    2 +-
 tests/ref/fate/filter-pp4                      |    2 +-
 tests/ref/fate/filter-pp5                      |    2 +-
 tests/ref/fate/filter-pp6                      |    2 +-
 tests/ref/fate/filter-scale200                 |    2 +-
 tests/ref/fate/filter-scale500                 |    2 +-
 tests/ref/fate/filter-select                   |    2 +-
 tests/ref/fate/filter-setdar                   |    2 +-
 tests/ref/fate/filter-setsar                   |    2 +-
 tests/ref/fate/filter-thumbnail                |    2 +-
 tests/ref/fate/filter-tile                     |    2 +-
 tests/ref/fate/filter-vflip                    |    2 +-
 tests/ref/fate/filter-vflip_crop               |    2 +-
 tests/ref/fate/filter-vflip_vflip              |    2 +-
 tests/ref/lavf/nut                             |    4 +-
 tests/ref/seek/lavf-nut                        |   54 +++---
 64 files changed, 1391 insertions(+), 1390 deletions(-)

diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 1947e32..d767b35 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -402,6 +402,7 @@ static void write_mainheader(NUTContext *nut, AVIOContext *bc)
         ff_put_v(bc, nut->header_len[i]);
         avio_write(bc, nut->header[i], nut->header_len[i]);
     }
+    ff_put_v(bc, 0); // main_flags
 }
 
 static int write_streamheader(AVFormatContext *avctx, AVIOContext *bc,
diff --git a/tests/ref/acodec/pcm-s16be_planar b/tests/ref/acodec/pcm-s16be_planar
index 8116480..4dd70ce 100644
--- a/tests/ref/acodec/pcm-s16be_planar
+++ b/tests/ref/acodec/pcm-s16be_planar
@@ -1,4 +1,4 @@
-cd87e6fc3bddb85c945c050d8c3fba11 *tests/data/fate/acodec-pcm-s16be_planar.nut
-1060673 tests/data/fate/acodec-pcm-s16be_planar.nut
+904396b7e112348c64906c05f5c760ec *tests/data/fate/acodec-pcm-s16be_planar.nut
+1060674 tests/data/fate/acodec-pcm-s16be_planar.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s16be_planar.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s16le_planar b/tests/ref/acodec/pcm-s16le_planar
index c933001..033fbef 100644
--- a/tests/ref/acodec/pcm-s16le_planar
+++ b/tests/ref/acodec/pcm-s16le_planar
@@ -1,4 +1,4 @@
-74af9a0ae4f68451102a2f7524b2d55f *tests/data/fate/acodec-pcm-s16le_planar.nut
-1060673 tests/data/fate/acodec-pcm-s16le_planar.nut
+c174dd5d747666aa24e636128a68eb68 *tests/data/fate/acodec-pcm-s16le_planar.nut
+1060674 tests/data/fate/acodec-pcm-s16le_planar.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s16le_planar.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s24le_planar b/tests/ref/acodec/pcm-s24le_planar
index 14d4cec..791b9c4 100644
--- a/tests/ref/acodec/pcm-s24le_planar
+++ b/tests/ref/acodec/pcm-s24le_planar
@@ -1,4 +1,4 @@
-83e315ce8083a6d035f801bb862942bf *tests/data/fate/acodec-pcm-s24le_planar.nut
-1590202 tests/data/fate/acodec-pcm-s24le_planar.nut
+0fd7e8b47fa28711a871f312fb9fe7dc *tests/data/fate/acodec-pcm-s24le_planar.nut
+1590203 tests/data/fate/acodec-pcm-s24le_planar.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s24le_planar.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s32le_planar b/tests/ref/acodec/pcm-s32le_planar
index 7648766..cd8ec99 100644
--- a/tests/ref/acodec/pcm-s32le_planar
+++ b/tests/ref/acodec/pcm-s32le_planar
@@ -1,4 +1,4 @@
-f6199b2c698bd5dd1438b53431357bec *tests/data/fate/acodec-pcm-s32le_planar.nut
-2120148 tests/data/fate/acodec-pcm-s32le_planar.nut
+b92f4849c06d2695172125a781b2aacb *tests/data/fate/acodec-pcm-s32le_planar.nut
+2120149 tests/data/fate/acodec-pcm-s32le_planar.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s32le_planar.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s8_planar b/tests/ref/acodec/pcm-s8_planar
index 6ab6ee0..f40a921 100644
--- a/tests/ref/acodec/pcm-s8_planar
+++ b/tests/ref/acodec/pcm-s8_planar
@@ -1,4 +1,4 @@
-ce99d95295ade9945849ef7c1de8c4ca *tests/data/fate/acodec-pcm-s8_planar.nut
-531054 tests/data/fate/acodec-pcm-s8_planar.nut
+d0b1bc45e494db64dbcdf9d8bead90f3 *tests/data/fate/acodec-pcm-s8_planar.nut
+531055 tests/data/fate/acodec-pcm-s8_planar.nut
 651d4eb8d98dfcdda96ae6c43d8f156b *tests/data/fate/acodec-pcm-s8_planar.out.wav
 stddev:  147.89 PSNR: 52.93 MAXDIFF:  255 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u16be b/tests/ref/acodec/pcm-u16be
index 0214975..6d6b45c 100644
--- a/tests/ref/acodec/pcm-u16be
+++ b/tests/ref/acodec/pcm-u16be
@@ -1,4 +1,4 @@
-eab6206a2cec3c5a3be47fdaa826faff *tests/data/fate/acodec-pcm-u16be.nut
-1060673 tests/data/fate/acodec-pcm-u16be.nut
+831cd86677ae34e9ef688c6e295b9e57 *tests/data/fate/acodec-pcm-u16be.nut
+1060674 tests/data/fate/acodec-pcm-u16be.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u16be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u16le b/tests/ref/acodec/pcm-u16le
index e45fe08..67073fa 100644
--- a/tests/ref/acodec/pcm-u16le
+++ b/tests/ref/acodec/pcm-u16le
@@ -1,4 +1,4 @@
-8fceb284cc6a5a114b6ce7a10fd08020 *tests/data/fate/acodec-pcm-u16le.nut
-1060673 tests/data/fate/acodec-pcm-u16le.nut
+d352ee4e0e344799b2f71c4887cd0f1f *tests/data/fate/acodec-pcm-u16le.nut
+1060674 tests/data/fate/acodec-pcm-u16le.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u16le.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u24be b/tests/ref/acodec/pcm-u24be
index ddab6e8..8fcbd88 100644
--- a/tests/ref/acodec/pcm-u24be
+++ b/tests/ref/acodec/pcm-u24be
@@ -1,4 +1,4 @@
-d1a55f46c88ed1efa77d05b60259675d *tests/data/fate/acodec-pcm-u24be.nut
-1590202 tests/data/fate/acodec-pcm-u24be.nut
+8202da4ff32d46afb56432531b88dd8c *tests/data/fate/acodec-pcm-u24be.nut
+1590203 tests/data/fate/acodec-pcm-u24be.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u24be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u24le b/tests/ref/acodec/pcm-u24le
index df06ca4..88125e9 100644
--- a/tests/ref/acodec/pcm-u24le
+++ b/tests/ref/acodec/pcm-u24le
@@ -1,4 +1,4 @@
-6d7df9b7e074548cf18dd16365862f1b *tests/data/fate/acodec-pcm-u24le.nut
-1590202 tests/data/fate/acodec-pcm-u24le.nut
+7703cf3544b047a248400aafe467e932 *tests/data/fate/acodec-pcm-u24le.nut
+1590203 tests/data/fate/acodec-pcm-u24le.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u24le.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u32be b/tests/ref/acodec/pcm-u32be
index 6a53919..a3d3dea 100644
--- a/tests/ref/acodec/pcm-u32be
+++ b/tests/ref/acodec/pcm-u32be
@@ -1,4 +1,4 @@
-7078e6d7e80247b8531d5cc16d09f385 *tests/data/fate/acodec-pcm-u32be.nut
-2120148 tests/data/fate/acodec-pcm-u32be.nut
+e7a6d14c9ba0192805545b5064275641 *tests/data/fate/acodec-pcm-u32be.nut
+2120149 tests/data/fate/acodec-pcm-u32be.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u32be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-u32le b/tests/ref/acodec/pcm-u32le
index 18a5d15..10ba69b 100644
--- a/tests/ref/acodec/pcm-u32le
+++ b/tests/ref/acodec/pcm-u32le
@@ -1,4 +1,4 @@
-34df9a7e1fe60da0bc6ec0485b68726e *tests/data/fate/acodec-pcm-u32le.nut
-2120148 tests/data/fate/acodec-pcm-u32le.nut
+045ca4182c0dc6acb23511406e3cea20 *tests/data/fate/acodec-pcm-u32le.nut
+2120149 tests/data/fate/acodec-pcm-u32le.nut
 64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-u32le.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/fate/ffprobe_compact b/tests/ref/fate/ffprobe_compact
index 409ac9c..7236f08 100644
--- a/tests/ref/fate/ffprobe_compact
+++ b/tests/ref/fate/ffprobe_compact
@@ -1,32 +1,32 @@
-packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=572|flags=K
-frame|media_type=audio|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=572|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
-packet|codec_type=video|stream_index=1|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=2647|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=2647|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
-packet|codec_type=video|stream_index=2|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=233068|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=233068|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
-packet|codec_type=audio|stream_index=0|pts=1024|pts_time=0.023220|dts=1024|dts_time=0.023220|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=263073|flags=K
-frame|media_type=audio|key_frame=1|pkt_pts=1024|pkt_pts_time=0.023220|pkt_dts=1024|pkt_dts_time=0.023220|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=263073|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
-packet|codec_type=video|stream_index=1|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=265151|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=265151|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
-packet|codec_type=video|stream_index=2|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=495575|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=495575|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
-packet|codec_type=audio|stream_index=0|pts=2048|pts_time=0.046440|dts=2048|dts_time=0.046440|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=525580|flags=K
-frame|media_type=audio|key_frame=1|pkt_pts=2048|pkt_pts_time=0.046440|pkt_dts=2048|pkt_dts_time=0.046440|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=525580|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
-packet|codec_type=audio|stream_index=0|pts=3072|pts_time=0.069660|dts=3072|dts_time=0.069660|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=527651|flags=K
-frame|media_type=audio|key_frame=1|pkt_pts=3072|pkt_pts_time=0.069660|pkt_dts=3072|pkt_dts_time=0.069660|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=527651|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
-packet|codec_type=video|stream_index=1|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=529729|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=529729|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
-packet|codec_type=video|stream_index=2|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=760153|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=760153|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
-packet|codec_type=audio|stream_index=0|pts=4096|pts_time=0.092880|dts=4096|dts_time=0.092880|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=790158|flags=K
-frame|media_type=audio|key_frame=1|pkt_pts=4096|pkt_pts_time=0.092880|pkt_dts=4096|pkt_dts_time=0.092880|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=790158|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
-packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.116100|dts=5120|dts_time=0.116100|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=792229|flags=K
-frame|media_type=audio|key_frame=1|pkt_pts=5120|pkt_pts_time=0.116100|pkt_dts=5120|pkt_dts_time=0.116100|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=792229|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
-packet|codec_type=video|stream_index=1|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=794307|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=794307|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
-packet|codec_type=video|stream_index=2|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=1024731|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=1024731|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=573|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=573|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
+packet|codec_type=video|stream_index=1|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=2648|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=2648|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=video|stream_index=2|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=233069|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=233069|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=audio|stream_index=0|pts=1024|pts_time=0.023220|dts=1024|dts_time=0.023220|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=263074|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=1024|pkt_pts_time=0.023220|pkt_dts=1024|pkt_dts_time=0.023220|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=263074|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
+packet|codec_type=video|stream_index=1|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=265152|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=265152|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=video|stream_index=2|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=495576|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=495576|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=audio|stream_index=0|pts=2048|pts_time=0.046440|dts=2048|dts_time=0.046440|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=525581|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=2048|pkt_pts_time=0.046440|pkt_dts=2048|pkt_dts_time=0.046440|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=525581|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
+packet|codec_type=audio|stream_index=0|pts=3072|pts_time=0.069660|dts=3072|dts_time=0.069660|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=527652|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=3072|pkt_pts_time=0.069660|pkt_dts=3072|pkt_dts_time=0.069660|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=527652|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
+packet|codec_type=video|stream_index=1|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=529730|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=529730|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=video|stream_index=2|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=760154|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=760154|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=audio|stream_index=0|pts=4096|pts_time=0.092880|dts=4096|dts_time=0.092880|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=790159|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=4096|pkt_pts_time=0.092880|pkt_dts=4096|pkt_dts_time=0.092880|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=790159|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
+packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.116100|dts=5120|dts_time=0.116100|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=792230|flags=K
+frame|media_type=audio|key_frame=1|pkt_pts=5120|pkt_pts_time=0.116100|pkt_dts=5120|pkt_dts_time=0.116100|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=792230|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
+packet|codec_type=video|stream_index=1|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=794308|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=794308|pkt_size=N/A|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
+packet|codec_type=video|stream_index=2|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=1024732|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=1024732|pkt_size=N/A|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
 stream|index=0|codec_name=pcm_s16le|profile=unknown|codec_type=audio|codec_time_base=1/44100|codec_tag_string=PSD[16]|codec_tag=0x10445350|sample_fmt=s16|sample_rate=44100|channels=1|bits_per_sample=16|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/44100|start_pts=0|start_time=0.000000|duration_ts=N/A|duration=N/A|bit_rate=705600|nb_frames=N/A|nb_read_frames=6|nb_read_packets=6|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:E=mc²
 stream|index=1|codec_name=rawvideo|profile=unknown|codec_type=video|codec_time_base=1/51200|codec_tag_string=RGB[24]|codec_tag=0x18424752|width=320|height=240|has_b_frames=0|sample_aspect_ratio=1:1|display_aspect_ratio=4:3|pix_fmt=rgb24|level=-99|timecode=N/A|id=N/A|r_frame_rate=25/1|avg_frame_rate=25/1|time_base=1/51200|start_pts=0|start_time=0.000000|duration_ts=N/A|duration=N/A|bit_rate=N/A|nb_frames=N/A|nb_read_frames=4|nb_read_packets=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:title=foobar|tag:duration_ts=field-and-tags-conflict-attempt
 stream|index=2|codec_name=rawvideo|profile=unknown|codec_type=video|codec_time_base=1/51200|codec_tag_string=RGB[24]|codec_tag=0x18424752|width=100|height=100|has_b_frames=0|sample_aspect_ratio=1:1|display_aspect_ratio=1:1|pix_fmt=rgb24|level=-99|timecode=N/A|id=N/A|r_frame_rate=25/1|avg_frame_rate=25/1|time_base=1/51200|start_pts=0|start_time=0.000000|duration_ts=N/A|duration=N/A|bit_rate=N/A|nb_frames=N/A|nb_read_frames=4|nb_read_packets=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0
-format|filename=tests/data/ffprobe-test.nut|nb_streams=3|format_name=nut|start_time=0.000000|duration=0.120000|size=1054812|bit_rate=70320800|tag:title=ffprobe test file|tag:comment='A comment with CSV, XML & JSON special chars': <tag value="x">|tag:comment2=I ♥ Üñîçød€
+format|filename=tests/data/ffprobe-test.nut|nb_streams=3|format_name=nut|start_time=0.000000|duration=0.120000|size=1054813|bit_rate=70320866|tag:title=ffprobe test file|tag:comment='A comment with CSV, XML & JSON special chars': <tag value="x">|tag:comment2=I ♥ Üñîçød€
diff --git a/tests/ref/fate/ffprobe_csv b/tests/ref/fate/ffprobe_csv
index 0094c39..58c3ff7 100644
--- a/tests/ref/fate/ffprobe_csv
+++ b/tests/ref/fate/ffprobe_csv
@@ -1,32 +1,32 @@
-packet,audio,0,0,0.000000,0,0.000000,1024,0.023220,N/A,N/A,2048,572,K
-frame,audio,1,0,0.000000,0,0.000000,1024,0.023220,572,2048,s16,1024,1,unknown
-packet,video,1,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,230400,2647,K
-frame,video,1,0,0.000000,0,0.000000,2048,0.040000,2647,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
-packet,video,2,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,30000,233068,K
-frame,video,1,0,0.000000,0,0.000000,2048,0.040000,233068,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
-packet,audio,0,1024,0.023220,1024,0.023220,1024,0.023220,N/A,N/A,2048,263073,K
-frame,audio,1,1024,0.023220,1024,0.023220,1024,0.023220,263073,2048,s16,1024,1,unknown
-packet,video,1,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,230400,265151,K
-frame,video,1,2048,0.040000,2048,0.040000,2048,0.040000,265151,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
-packet,video,2,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,30000,495575,K
-frame,video,1,2048,0.040000,2048,0.040000,2048,0.040000,495575,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
-packet,audio,0,2048,0.046440,2048,0.046440,1024,0.023220,N/A,N/A,2048,525580,K
-frame,audio,1,2048,0.046440,2048,0.046440,1024,0.023220,525580,2048,s16,1024,1,unknown
-packet,audio,0,3072,0.069660,3072,0.069660,1024,0.023220,N/A,N/A,2048,527651,K
-frame,audio,1,3072,0.069660,3072,0.069660,1024,0.023220,527651,2048,s16,1024,1,unknown
-packet,video,1,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,230400,529729,K
-frame,video,1,4096,0.080000,4096,0.080000,2048,0.040000,529729,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
-packet,video,2,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,30000,760153,K
-frame,video,1,4096,0.080000,4096,0.080000,2048,0.040000,760153,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
-packet,audio,0,4096,0.092880,4096,0.092880,1024,0.023220,N/A,N/A,2048,790158,K
-frame,audio,1,4096,0.092880,4096,0.092880,1024,0.023220,790158,2048,s16,1024,1,unknown
-packet,audio,0,5120,0.116100,5120,0.116100,1024,0.023220,N/A,N/A,2048,792229,K
-frame,audio,1,5120,0.116100,5120,0.116100,1024,0.023220,792229,2048,s16,1024,1,unknown
-packet,video,1,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,230400,794307,K
-frame,video,1,6144,0.120000,6144,0.120000,2048,0.040000,794307,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
-packet,video,2,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,30000,1024731,K
-frame,video,1,6144,0.120000,6144,0.120000,2048,0.040000,1024731,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
+packet,audio,0,0,0.000000,0,0.000000,1024,0.023220,N/A,N/A,2048,573,K
+frame,audio,1,0,0.000000,0,0.000000,1024,0.023220,573,2048,s16,1024,1,unknown
+packet,video,1,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,230400,2648,K
+frame,video,1,0,0.000000,0,0.000000,2048,0.040000,2648,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
+packet,video,2,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,30000,233069,K
+frame,video,1,0,0.000000,0,0.000000,2048,0.040000,233069,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
+packet,audio,0,1024,0.023220,1024,0.023220,1024,0.023220,N/A,N/A,2048,263074,K
+frame,audio,1,1024,0.023220,1024,0.023220,1024,0.023220,263074,2048,s16,1024,1,unknown
+packet,video,1,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,230400,265152,K
+frame,video,1,2048,0.040000,2048,0.040000,2048,0.040000,265152,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
+packet,video,2,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,30000,495576,K
+frame,video,1,2048,0.040000,2048,0.040000,2048,0.040000,495576,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
+packet,audio,0,2048,0.046440,2048,0.046440,1024,0.023220,N/A,N/A,2048,525581,K
+frame,audio,1,2048,0.046440,2048,0.046440,1024,0.023220,525581,2048,s16,1024,1,unknown
+packet,audio,0,3072,0.069660,3072,0.069660,1024,0.023220,N/A,N/A,2048,527652,K
+frame,audio,1,3072,0.069660,3072,0.069660,1024,0.023220,527652,2048,s16,1024,1,unknown
+packet,video,1,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,230400,529730,K
+frame,video,1,4096,0.080000,4096,0.080000,2048,0.040000,529730,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
+packet,video,2,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,30000,760154,K
+frame,video,1,4096,0.080000,4096,0.080000,2048,0.040000,760154,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
+packet,audio,0,4096,0.092880,4096,0.092880,1024,0.023220,N/A,N/A,2048,790159,K
+frame,audio,1,4096,0.092880,4096,0.092880,1024,0.023220,790159,2048,s16,1024,1,unknown
+packet,audio,0,5120,0.116100,5120,0.116100,1024,0.023220,N/A,N/A,2048,792230,K
+frame,audio,1,5120,0.116100,5120,0.116100,1024,0.023220,792230,2048,s16,1024,1,unknown
+packet,video,1,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,230400,794308,K
+frame,video,1,6144,0.120000,6144,0.120000,2048,0.040000,794308,N/A,320,240,rgb24,1:1,I,0,0,0,0,0
+packet,video,2,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,30000,1024732,K
+frame,video,1,6144,0.120000,6144,0.120000,2048,0.040000,1024732,N/A,100,100,rgb24,1:1,I,0,0,0,0,0
 stream,0,pcm_s16le,unknown,audio,1/44100,PSD[16],0x10445350,s16,44100,1,16,N/A,0/0,0/0,1/44100,0,0.000000,N/A,N/A,705600,N/A,6,6,0,0,0,0,0,0,0,0,0,0,0,mc²
 stream,1,rawvideo,unknown,video,1/51200,RGB[24],0x18424752,320,240,0,1:1,4:3,rgb24,-99,N/A,N/A,25/1,25/1,1/51200,0,0.000000,N/A,N/A,N/A,N/A,4,4,0,0,0,0,0,0,0,0,0,0,0,foobar,field-and-tags-conflict-attempt
 stream,2,rawvideo,unknown,video,1/51200,RGB[24],0x18424752,100,100,0,1:1,1:1,rgb24,-99,N/A,N/A,25/1,25/1,1/51200,0,0.000000,N/A,N/A,N/A,N/A,4,4,0,0,0,0,0,0,0,0,0,0,0
-format,tests/data/ffprobe-test.nut,3,nut,0.000000,0.120000,1054812,70320800,ffprobe test file,"'A comment with CSV, XML & JSON special chars': <tag value=""x"">",I ♥ Üñîçød€
+format,tests/data/ffprobe-test.nut,3,nut,0.000000,0.120000,1054813,70320866,ffprobe test file,"'A comment with CSV, XML & JSON special chars': <tag value=""x"">",I ♥ Üñîçød€
diff --git a/tests/ref/fate/ffprobe_default b/tests/ref/fate/ffprobe_default
index 9f523fd..6d29c3e 100644
--- a/tests/ref/fate/ffprobe_default
+++ b/tests/ref/fate/ffprobe_default
@@ -10,7 +10,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=572
+pos=573
 flags=K
 [/PACKET]
 [FRAME]
@@ -22,7 +22,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=572
+pkt_pos=573
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -41,7 +41,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=2647
+pos=2648
 flags=K
 [/PACKET]
 [FRAME]
@@ -53,7 +53,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=2647
+pkt_pos=2648
 pkt_size=N/A
 width=320
 height=240
@@ -78,7 +78,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=233068
+pos=233069
 flags=K
 [/PACKET]
 [FRAME]
@@ -90,7 +90,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=233068
+pkt_pos=233069
 pkt_size=N/A
 width=100
 height=100
@@ -115,7 +115,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=263073
+pos=263074
 flags=K
 [/PACKET]
 [FRAME]
@@ -127,7 +127,7 @@ pkt_dts=1024
 pkt_dts_time=0.023220
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=263073
+pkt_pos=263074
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -146,7 +146,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=265151
+pos=265152
 flags=K
 [/PACKET]
 [FRAME]
@@ -158,7 +158,7 @@ pkt_dts=2048
 pkt_dts_time=0.040000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=265151
+pkt_pos=265152
 pkt_size=N/A
 width=320
 height=240
@@ -183,7 +183,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=495575
+pos=495576
 flags=K
 [/PACKET]
 [FRAME]
@@ -195,7 +195,7 @@ pkt_dts=2048
 pkt_dts_time=0.040000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=495575
+pkt_pos=495576
 pkt_size=N/A
 width=100
 height=100
@@ -220,7 +220,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=525580
+pos=525581
 flags=K
 [/PACKET]
 [FRAME]
@@ -232,7 +232,7 @@ pkt_dts=2048
 pkt_dts_time=0.046440
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=525580
+pkt_pos=525581
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -251,7 +251,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=527651
+pos=527652
 flags=K
 [/PACKET]
 [FRAME]
@@ -263,7 +263,7 @@ pkt_dts=3072
 pkt_dts_time=0.069660
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=527651
+pkt_pos=527652
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -282,7 +282,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=529729
+pos=529730
 flags=K
 [/PACKET]
 [FRAME]
@@ -294,7 +294,7 @@ pkt_dts=4096
 pkt_dts_time=0.080000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=529729
+pkt_pos=529730
 pkt_size=N/A
 width=320
 height=240
@@ -319,7 +319,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=760153
+pos=760154
 flags=K
 [/PACKET]
 [FRAME]
@@ -331,7 +331,7 @@ pkt_dts=4096
 pkt_dts_time=0.080000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=760153
+pkt_pos=760154
 pkt_size=N/A
 width=100
 height=100
@@ -356,7 +356,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=790158
+pos=790159
 flags=K
 [/PACKET]
 [FRAME]
@@ -368,7 +368,7 @@ pkt_dts=4096
 pkt_dts_time=0.092880
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=790158
+pkt_pos=790159
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -387,7 +387,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=792229
+pos=792230
 flags=K
 [/PACKET]
 [FRAME]
@@ -399,7 +399,7 @@ pkt_dts=5120
 pkt_dts_time=0.116100
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=792229
+pkt_pos=792230
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -418,7 +418,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=794307
+pos=794308
 flags=K
 [/PACKET]
 [FRAME]
@@ -430,7 +430,7 @@ pkt_dts=6144
 pkt_dts_time=0.120000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=794307
+pkt_pos=794308
 pkt_size=N/A
 width=320
 height=240
@@ -455,7 +455,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=1024731
+pos=1024732
 flags=K
 [/PACKET]
 [FRAME]
@@ -467,7 +467,7 @@ pkt_dts=6144
 pkt_dts_time=0.120000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=1024731
+pkt_pos=1024732
 pkt_size=N/A
 width=100
 height=100
@@ -605,8 +605,8 @@ nb_streams=3
 format_name=nut
 start_time=0.000000
 duration=0.120000
-size=1054812
-bit_rate=70320800
+size=1054813
+bit_rate=70320866
 TAG:title=ffprobe test file
 TAG:comment='A comment with CSV, XML & JSON special chars': <tag value="x">
 TAG:comment2=I ♥ Üñîçød€
diff --git a/tests/ref/fate/ffprobe_flat b/tests/ref/fate/ffprobe_flat
index c08ca0f..e2798c3 100644
--- a/tests/ref/fate/ffprobe_flat
+++ b/tests/ref/fate/ffprobe_flat
@@ -9,7 +9,7 @@ packets_and_frames.packet.0.duration_time="0.023220"
 packets_and_frames.packet.0.convergence_duration="N/A"
 packets_and_frames.packet.0.convergence_duration_time="N/A"
 packets_and_frames.packet.0.size="2048"
-packets_and_frames.packet.0.pos="572"
+packets_and_frames.packet.0.pos="573"
 packets_and_frames.packet.0.flags="K"
 packets_and_frames.frame.0.media_type="audio"
 packets_and_frames.frame.0.key_frame=1
@@ -19,7 +19,7 @@ packets_and_frames.frame.0.pkt_dts=0
 packets_and_frames.frame.0.pkt_dts_time="0.000000"
 packets_and_frames.frame.0.pkt_duration=1024
 packets_and_frames.frame.0.pkt_duration_time="0.023220"
-packets_and_frames.frame.0.pkt_pos="572"
+packets_and_frames.frame.0.pkt_pos="573"
 packets_and_frames.frame.0.pkt_size="2048"
 packets_and_frames.frame.0.sample_fmt="s16"
 packets_and_frames.frame.0.nb_samples=1024
@@ -36,7 +36,7 @@ packets_and_frames.packet.1.duration_time="0.040000"
 packets_and_frames.packet.1.convergence_duration="N/A"
 packets_and_frames.packet.1.convergence_duration_time="N/A"
 packets_and_frames.packet.1.size="230400"
-packets_and_frames.packet.1.pos="2647"
+packets_and_frames.packet.1.pos="2648"
 packets_and_frames.packet.1.flags="K"
 packets_and_frames.frame.1.media_type="video"
 packets_and_frames.frame.1.key_frame=1
@@ -46,7 +46,7 @@ packets_and_frames.frame.1.pkt_dts=0
 packets_and_frames.frame.1.pkt_dts_time="0.000000"
 packets_and_frames.frame.1.pkt_duration=2048
 packets_and_frames.frame.1.pkt_duration_time="0.040000"
-packets_and_frames.frame.1.pkt_pos="2647"
+packets_and_frames.frame.1.pkt_pos="2648"
 packets_and_frames.frame.1.pkt_size="N/A"
 packets_and_frames.frame.1.width=320
 packets_and_frames.frame.1.height=240
@@ -69,7 +69,7 @@ packets_and_frames.packet.2.duration_time="0.040000"
 packets_and_frames.packet.2.convergence_duration="N/A"
 packets_and_frames.packet.2.convergence_duration_time="N/A"
 packets_and_frames.packet.2.size="30000"
-packets_and_frames.packet.2.pos="233068"
+packets_and_frames.packet.2.pos="233069"
 packets_and_frames.packet.2.flags="K"
 packets_and_frames.frame.2.media_type="video"
 packets_and_frames.frame.2.key_frame=1
@@ -79,7 +79,7 @@ packets_and_frames.frame.2.pkt_dts=0
 packets_and_frames.frame.2.pkt_dts_time="0.000000"
 packets_and_frames.frame.2.pkt_duration=2048
 packets_and_frames.frame.2.pkt_duration_time="0.040000"
-packets_and_frames.frame.2.pkt_pos="233068"
+packets_and_frames.frame.2.pkt_pos="233069"
 packets_and_frames.frame.2.pkt_size="N/A"
 packets_and_frames.frame.2.width=100
 packets_and_frames.frame.2.height=100
@@ -102,7 +102,7 @@ packets_and_frames.packet.3.duration_time="0.023220"
 packets_and_frames.packet.3.convergence_duration="N/A"
 packets_and_frames.packet.3.convergence_duration_time="N/A"
 packets_and_frames.packet.3.size="2048"
-packets_and_frames.packet.3.pos="263073"
+packets_and_frames.packet.3.pos="263074"
 packets_and_frames.packet.3.flags="K"
 packets_and_frames.frame.3.media_type="audio"
 packets_and_frames.frame.3.key_frame=1
@@ -112,7 +112,7 @@ packets_and_frames.frame.3.pkt_dts=1024
 packets_and_frames.frame.3.pkt_dts_time="0.023220"
 packets_and_frames.frame.3.pkt_duration=1024
 packets_and_frames.frame.3.pkt_duration_time="0.023220"
-packets_and_frames.frame.3.pkt_pos="263073"
+packets_and_frames.frame.3.pkt_pos="263074"
 packets_and_frames.frame.3.pkt_size="2048"
 packets_and_frames.frame.3.sample_fmt="s16"
 packets_and_frames.frame.3.nb_samples=1024
@@ -129,7 +129,7 @@ packets_and_frames.packet.4.duration_time="0.040000"
 packets_and_frames.packet.4.convergence_duration="N/A"
 packets_and_frames.packet.4.convergence_duration_time="N/A"
 packets_and_frames.packet.4.size="230400"
-packets_and_frames.packet.4.pos="265151"
+packets_and_frames.packet.4.pos="265152"
 packets_and_frames.packet.4.flags="K"
 packets_and_frames.frame.4.media_type="video"
 packets_and_frames.frame.4.key_frame=1
@@ -139,7 +139,7 @@ packets_and_frames.frame.4.pkt_dts=2048
 packets_and_frames.frame.4.pkt_dts_time="0.040000"
 packets_and_frames.frame.4.pkt_duration=2048
 packets_and_frames.frame.4.pkt_duration_time="0.040000"
-packets_and_frames.frame.4.pkt_pos="265151"
+packets_and_frames.frame.4.pkt_pos="265152"
 packets_and_frames.frame.4.pkt_size="N/A"
 packets_and_frames.frame.4.width=320
 packets_and_frames.frame.4.height=240
@@ -162,7 +162,7 @@ packets_and_frames.packet.5.duration_time="0.040000"
 packets_and_frames.packet.5.convergence_duration="N/A"
 packets_and_frames.packet.5.convergence_duration_time="N/A"
 packets_and_frames.packet.5.size="30000"
-packets_and_frames.packet.5.pos="495575"
+packets_and_frames.packet.5.pos="495576"
 packets_and_frames.packet.5.flags="K"
 packets_and_frames.frame.5.media_type="video"
 packets_and_frames.frame.5.key_frame=1
@@ -172,7 +172,7 @@ packets_and_frames.frame.5.pkt_dts=2048
 packets_and_frames.frame.5.pkt_dts_time="0.040000"
 packets_and_frames.frame.5.pkt_duration=2048
 packets_and_frames.frame.5.pkt_duration_time="0.040000"
-packets_and_frames.frame.5.pkt_pos="495575"
+packets_and_frames.frame.5.pkt_pos="495576"
 packets_and_frames.frame.5.pkt_size="N/A"
 packets_and_frames.frame.5.width=100
 packets_and_frames.frame.5.height=100
@@ -195,7 +195,7 @@ packets_and_frames.packet.6.duration_time="0.023220"
 packets_and_frames.packet.6.convergence_duration="N/A"
 packets_and_frames.packet.6.convergence_duration_time="N/A"
 packets_and_frames.packet.6.size="2048"
-packets_and_frames.packet.6.pos="525580"
+packets_and_frames.packet.6.pos="525581"
 packets_and_frames.packet.6.flags="K"
 packets_and_frames.frame.6.media_type="audio"
 packets_and_frames.frame.6.key_frame=1
@@ -205,7 +205,7 @@ packets_and_frames.frame.6.pkt_dts=2048
 packets_and_frames.frame.6.pkt_dts_time="0.046440"
 packets_and_frames.frame.6.pkt_duration=1024
 packets_and_frames.frame.6.pkt_duration_time="0.023220"
-packets_and_frames.frame.6.pkt_pos="525580"
+packets_and_frames.frame.6.pkt_pos="525581"
 packets_and_frames.frame.6.pkt_size="2048"
 packets_and_frames.frame.6.sample_fmt="s16"
 packets_and_frames.frame.6.nb_samples=1024
@@ -222,7 +222,7 @@ packets_and_frames.packet.7.duration_time="0.023220"
 packets_and_frames.packet.7.convergence_duration="N/A"
 packets_and_frames.packet.7.convergence_duration_time="N/A"
 packets_and_frames.packet.7.size="2048"
-packets_and_frames.packet.7.pos="527651"
+packets_and_frames.packet.7.pos="527652"
 packets_and_frames.packet.7.flags="K"
 packets_and_frames.frame.7.media_type="audio"
 packets_and_frames.frame.7.key_frame=1
@@ -232,7 +232,7 @@ packets_and_frames.frame.7.pkt_dts=3072
 packets_and_frames.frame.7.pkt_dts_time="0.069660"
 packets_and_frames.frame.7.pkt_duration=1024
 packets_and_frames.frame.7.pkt_duration_time="0.023220"
-packets_and_frames.frame.7.pkt_pos="527651"
+packets_and_frames.frame.7.pkt_pos="527652"
 packets_and_frames.frame.7.pkt_size="2048"
 packets_and_frames.frame.7.sample_fmt="s16"
 packets_and_frames.frame.7.nb_samples=1024
@@ -249,7 +249,7 @@ packets_and_frames.packet.8.duration_time="0.040000"
 packets_and_frames.packet.8.convergence_duration="N/A"
 packets_and_frames.packet.8.convergence_duration_time="N/A"
 packets_and_frames.packet.8.size="230400"
-packets_and_frames.packet.8.pos="529729"
+packets_and_frames.packet.8.pos="529730"
 packets_and_frames.packet.8.flags="K"
 packets_and_frames.frame.8.media_type="video"
 packets_and_frames.frame.8.key_frame=1
@@ -259,7 +259,7 @@ packets_and_frames.frame.8.pkt_dts=4096
 packets_and_frames.frame.8.pkt_dts_time="0.080000"
 packets_and_frames.frame.8.pkt_duration=2048
 packets_and_frames.frame.8.pkt_duration_time="0.040000"
-packets_and_frames.frame.8.pkt_pos="529729"
+packets_and_frames.frame.8.pkt_pos="529730"
 packets_and_frames.frame.8.pkt_size="N/A"
 packets_and_frames.frame.8.width=320
 packets_and_frames.frame.8.height=240
@@ -282,7 +282,7 @@ packets_and_frames.packet.9.duration_time="0.040000"
 packets_and_frames.packet.9.convergence_duration="N/A"
 packets_and_frames.packet.9.convergence_duration_time="N/A"
 packets_and_frames.packet.9.size="30000"
-packets_and_frames.packet.9.pos="760153"
+packets_and_frames.packet.9.pos="760154"
 packets_and_frames.packet.9.flags="K"
 packets_and_frames.frame.9.media_type="video"
 packets_and_frames.frame.9.key_frame=1
@@ -292,7 +292,7 @@ packets_and_frames.frame.9.pkt_dts=4096
 packets_and_frames.frame.9.pkt_dts_time="0.080000"
 packets_and_frames.frame.9.pkt_duration=2048
 packets_and_frames.frame.9.pkt_duration_time="0.040000"
-packets_and_frames.frame.9.pkt_pos="760153"
+packets_and_frames.frame.9.pkt_pos="760154"
 packets_and_frames.frame.9.pkt_size="N/A"
 packets_and_frames.frame.9.width=100
 packets_and_frames.frame.9.height=100
@@ -315,7 +315,7 @@ packets_and_frames.packet.10.duration_time="0.023220"
 packets_and_frames.packet.10.convergence_duration="N/A"
 packets_and_frames.packet.10.convergence_duration_time="N/A"
 packets_and_frames.packet.10.size="2048"
-packets_and_frames.packet.10.pos="790158"
+packets_and_frames.packet.10.pos="790159"
 packets_and_frames.packet.10.flags="K"
 packets_and_frames.frame.10.media_type="audio"
 packets_and_frames.frame.10.key_frame=1
@@ -325,7 +325,7 @@ packets_and_frames.frame.10.pkt_dts=4096
 packets_and_frames.frame.10.pkt_dts_time="0.092880"
 packets_and_frames.frame.10.pkt_duration=1024
 packets_and_frames.frame.10.pkt_duration_time="0.023220"
-packets_and_frames.frame.10.pkt_pos="790158"
+packets_and_frames.frame.10.pkt_pos="790159"
 packets_and_frames.frame.10.pkt_size="2048"
 packets_and_frames.frame.10.sample_fmt="s16"
 packets_and_frames.frame.10.nb_samples=1024
@@ -342,7 +342,7 @@ packets_and_frames.packet.11.duration_time="0.023220"
 packets_and_frames.packet.11.convergence_duration="N/A"
 packets_and_frames.packet.11.convergence_duration_time="N/A"
 packets_and_frames.packet.11.size="2048"
-packets_and_frames.packet.11.pos="792229"
+packets_and_frames.packet.11.pos="792230"
 packets_and_frames.packet.11.flags="K"
 packets_and_frames.frame.11.media_type="audio"
 packets_and_frames.frame.11.key_frame=1
@@ -352,7 +352,7 @@ packets_and_frames.frame.11.pkt_dts=5120
 packets_and_frames.frame.11.pkt_dts_time="0.116100"
 packets_and_frames.frame.11.pkt_duration=1024
 packets_and_frames.frame.11.pkt_duration_time="0.023220"
-packets_and_frames.frame.11.pkt_pos="792229"
+packets_and_frames.frame.11.pkt_pos="792230"
 packets_and_frames.frame.11.pkt_size="2048"
 packets_and_frames.frame.11.sample_fmt="s16"
 packets_and_frames.frame.11.nb_samples=1024
@@ -369,7 +369,7 @@ packets_and_frames.packet.12.duration_time="0.040000"
 packets_and_frames.packet.12.convergence_duration="N/A"
 packets_and_frames.packet.12.convergence_duration_time="N/A"
 packets_and_frames.packet.12.size="230400"
-packets_and_frames.packet.12.pos="794307"
+packets_and_frames.packet.12.pos="794308"
 packets_and_frames.packet.12.flags="K"
 packets_and_frames.frame.12.media_type="video"
 packets_and_frames.frame.12.key_frame=1
@@ -379,7 +379,7 @@ packets_and_frames.frame.12.pkt_dts=6144
 packets_and_frames.frame.12.pkt_dts_time="0.120000"
 packets_and_frames.frame.12.pkt_duration=2048
 packets_and_frames.frame.12.pkt_duration_time="0.040000"
-packets_and_frames.frame.12.pkt_pos="794307"
+packets_and_frames.frame.12.pkt_pos="794308"
 packets_and_frames.frame.12.pkt_size="N/A"
 packets_and_frames.frame.12.width=320
 packets_and_frames.frame.12.height=240
@@ -402,7 +402,7 @@ packets_and_frames.packet.13.duration_time="0.040000"
 packets_and_frames.packet.13.convergence_duration="N/A"
 packets_and_frames.packet.13.convergence_duration_time="N/A"
 packets_and_frames.packet.13.size="30000"
-packets_and_frames.packet.13.pos="1024731"
+packets_and_frames.packet.13.pos="1024732"
 packets_and_frames.packet.13.flags="K"
 packets_and_frames.frame.13.media_type="video"
 packets_and_frames.frame.13.key_frame=1
@@ -412,7 +412,7 @@ packets_and_frames.frame.13.pkt_dts=6144
 packets_and_frames.frame.13.pkt_dts_time="0.120000"
 packets_and_frames.frame.13.pkt_duration=2048
 packets_and_frames.frame.13.pkt_duration_time="0.040000"
-packets_and_frames.frame.13.pkt_pos="1024731"
+packets_and_frames.frame.13.pkt_pos="1024732"
 packets_and_frames.frame.13.pkt_size="N/A"
 packets_and_frames.frame.13.width=100
 packets_and_frames.frame.13.height=100
@@ -542,8 +542,8 @@ format.nb_streams=3
 format.format_name="nut"
 format.start_time="0.000000"
 format.duration="0.120000"
-format.size="1054812"
-format.bit_rate="70320800"
+format.size="1054813"
+format.bit_rate="70320866"
 format.tags.title="ffprobe test file"
 format.tags.comment="'A comment with CSV, XML & JSON special chars': <tag value=\"x\">"
 format.tags.comment2="I ♥ Üñîçød€"
diff --git a/tests/ref/fate/ffprobe_ini b/tests/ref/fate/ffprobe_ini
index 1bc46d0..bbcf104 100644
--- a/tests/ref/fate/ffprobe_ini
+++ b/tests/ref/fate/ffprobe_ini
@@ -12,7 +12,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=572
+pos=573
 flags=K
 
 [packets_and_frames.frame.0]
@@ -24,7 +24,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=572
+pkt_pos=573
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -43,7 +43,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=2647
+pos=2648
 flags=K
 
 [packets_and_frames.frame.1]
@@ -55,7 +55,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=2647
+pkt_pos=2648
 pkt_size=N/A
 width=320
 height=240
@@ -80,7 +80,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=233068
+pos=233069
 flags=K
 
 [packets_and_frames.frame.2]
@@ -92,7 +92,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=233068
+pkt_pos=233069
 pkt_size=N/A
 width=100
 height=100
@@ -117,7 +117,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=263073
+pos=263074
 flags=K
 
 [packets_and_frames.frame.3]
@@ -129,7 +129,7 @@ pkt_dts=1024
 pkt_dts_time=0.023220
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=263073
+pkt_pos=263074
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -148,7 +148,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=265151
+pos=265152
 flags=K
 
 [packets_and_frames.frame.4]
@@ -160,7 +160,7 @@ pkt_dts=2048
 pkt_dts_time=0.040000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=265151
+pkt_pos=265152
 pkt_size=N/A
 width=320
 height=240
@@ -185,7 +185,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=495575
+pos=495576
 flags=K
 
 [packets_and_frames.frame.5]
@@ -197,7 +197,7 @@ pkt_dts=2048
 pkt_dts_time=0.040000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=495575
+pkt_pos=495576
 pkt_size=N/A
 width=100
 height=100
@@ -222,7 +222,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=525580
+pos=525581
 flags=K
 
 [packets_and_frames.frame.6]
@@ -234,7 +234,7 @@ pkt_dts=2048
 pkt_dts_time=0.046440
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=525580
+pkt_pos=525581
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -253,7 +253,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=527651
+pos=527652
 flags=K
 
 [packets_and_frames.frame.7]
@@ -265,7 +265,7 @@ pkt_dts=3072
 pkt_dts_time=0.069660
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=527651
+pkt_pos=527652
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -284,7 +284,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=529729
+pos=529730
 flags=K
 
 [packets_and_frames.frame.8]
@@ -296,7 +296,7 @@ pkt_dts=4096
 pkt_dts_time=0.080000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=529729
+pkt_pos=529730
 pkt_size=N/A
 width=320
 height=240
@@ -321,7 +321,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=760153
+pos=760154
 flags=K
 
 [packets_and_frames.frame.9]
@@ -333,7 +333,7 @@ pkt_dts=4096
 pkt_dts_time=0.080000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=760153
+pkt_pos=760154
 pkt_size=N/A
 width=100
 height=100
@@ -358,7 +358,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=790158
+pos=790159
 flags=K
 
 [packets_and_frames.frame.10]
@@ -370,7 +370,7 @@ pkt_dts=4096
 pkt_dts_time=0.092880
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=790158
+pkt_pos=790159
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -389,7 +389,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=792229
+pos=792230
 flags=K
 
 [packets_and_frames.frame.11]
@@ -401,7 +401,7 @@ pkt_dts=5120
 pkt_dts_time=0.116100
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=792229
+pkt_pos=792230
 pkt_size=2048
 sample_fmt=s16
 nb_samples=1024
@@ -420,7 +420,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=794307
+pos=794308
 flags=K
 
 [packets_and_frames.frame.12]
@@ -432,7 +432,7 @@ pkt_dts=6144
 pkt_dts_time=0.120000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=794307
+pkt_pos=794308
 pkt_size=N/A
 width=320
 height=240
@@ -457,7 +457,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=1024731
+pos=1024732
 flags=K
 
 [packets_and_frames.frame.13]
@@ -469,7 +469,7 @@ pkt_dts=6144
 pkt_dts_time=0.120000
 pkt_duration=2048
 pkt_duration_time=0.040000
-pkt_pos=1024731
+pkt_pos=1024732
 pkt_size=N/A
 width=100
 height=100
@@ -617,8 +617,8 @@ nb_streams=3
 format_name=nut
 start_time=0.000000
 duration=0.120000
-size=1054812
-bit_rate=70320800
+size=1054813
+bit_rate=70320866
 
 [format.tags]
 title=ffprobe test file
diff --git a/tests/ref/fate/ffprobe_json b/tests/ref/fate/ffprobe_json
index fc3d22e..c35f71b 100644
--- a/tests/ref/fate/ffprobe_json
+++ b/tests/ref/fate/ffprobe_json
@@ -11,7 +11,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "572",
+            "pos": "573",
             "flags": "K"
         },
         {
@@ -24,7 +24,7 @@
             "pkt_dts_time": "0.000000",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "572",
+            "pkt_pos": "573",
             "pkt_size": "2048",
             "sample_fmt": "s16",
             "nb_samples": 1024,
@@ -41,7 +41,7 @@
             "duration": 2048,
             "duration_time": "0.040000",
             "size": "230400",
-            "pos": "2647",
+            "pos": "2648",
             "flags": "K"
         },
         {
@@ -54,7 +54,7 @@
             "pkt_dts_time": "0.000000",
             "pkt_duration": 2048,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "2647",
+            "pkt_pos": "2648",
             "width": 320,
             "height": 240,
             "pix_fmt": "rgb24",
@@ -77,7 +77,7 @@
             "duration": 2048,
             "duration_time": "0.040000",
             "size": "30000",
-            "pos": "233068",
+            "pos": "233069",
             "flags": "K"
         },
         {
@@ -90,7 +90,7 @@
             "pkt_dts_time": "0.000000",
             "pkt_duration": 2048,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "233068",
+            "pkt_pos": "233069",
             "width": 100,
             "height": 100,
             "pix_fmt": "rgb24",
@@ -113,7 +113,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "263073",
+            "pos": "263074",
             "flags": "K"
         },
         {
@@ -126,7 +126,7 @@
             "pkt_dts_time": "0.023220",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "263073",
+            "pkt_pos": "263074",
             "pkt_size": "2048",
             "sample_fmt": "s16",
             "nb_samples": 1024,
@@ -143,7 +143,7 @@
             "duration": 2048,
             "duration_time": "0.040000",
             "size": "230400",
-            "pos": "265151",
+            "pos": "265152",
             "flags": "K"
         },
         {
@@ -156,7 +156,7 @@
             "pkt_dts_time": "0.040000",
             "pkt_duration": 2048,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "265151",
+            "pkt_pos": "265152",
             "width": 320,
             "height": 240,
             "pix_fmt": "rgb24",
@@ -179,7 +179,7 @@
             "duration": 2048,
             "duration_time": "0.040000",
             "size": "30000",
-            "pos": "495575",
+            "pos": "495576",
             "flags": "K"
         },
         {
@@ -192,7 +192,7 @@
             "pkt_dts_time": "0.040000",
             "pkt_duration": 2048,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "495575",
+            "pkt_pos": "495576",
             "width": 100,
             "height": 100,
             "pix_fmt": "rgb24",
@@ -215,7 +215,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "525580",
+            "pos": "525581",
             "flags": "K"
         },
         {
@@ -228,7 +228,7 @@
             "pkt_dts_time": "0.046440",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "525580",
+            "pkt_pos": "525581",
             "pkt_size": "2048",
             "sample_fmt": "s16",
             "nb_samples": 1024,
@@ -245,7 +245,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "527651",
+            "pos": "527652",
             "flags": "K"
         },
         {
@@ -258,7 +258,7 @@
             "pkt_dts_time": "0.069660",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "527651",
+            "pkt_pos": "527652",
             "pkt_size": "2048",
             "sample_fmt": "s16",
             "nb_samples": 1024,
@@ -275,7 +275,7 @@
             "duration": 2048,
             "duration_time": "0.040000",
             "size": "230400",
-            "pos": "529729",
+            "pos": "529730",
             "flags": "K"
         },
         {
@@ -288,7 +288,7 @@
             "pkt_dts_time": "0.080000",
             "pkt_duration": 2048,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "529729",
+            "pkt_pos": "529730",
             "width": 320,
             "height": 240,
             "pix_fmt": "rgb24",
@@ -311,7 +311,7 @@
             "duration": 2048,
             "duration_time": "0.040000",
             "size": "30000",
-            "pos": "760153",
+            "pos": "760154",
             "flags": "K"
         },
         {
@@ -324,7 +324,7 @@
             "pkt_dts_time": "0.080000",
             "pkt_duration": 2048,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "760153",
+            "pkt_pos": "760154",
             "width": 100,
             "height": 100,
             "pix_fmt": "rgb24",
@@ -347,7 +347,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "790158",
+            "pos": "790159",
             "flags": "K"
         },
         {
@@ -360,7 +360,7 @@
             "pkt_dts_time": "0.092880",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "790158",
+            "pkt_pos": "790159",
             "pkt_size": "2048",
             "sample_fmt": "s16",
             "nb_samples": 1024,
@@ -377,7 +377,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "792229",
+            "pos": "792230",
             "flags": "K"
         },
         {
@@ -390,7 +390,7 @@
             "pkt_dts_time": "0.116100",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "792229",
+            "pkt_pos": "792230",
             "pkt_size": "2048",
             "sample_fmt": "s16",
             "nb_samples": 1024,
@@ -407,7 +407,7 @@
             "duration": 2048,
             "duration_time": "0.040000",
             "size": "230400",
-            "pos": "794307",
+            "pos": "794308",
             "flags": "K"
         },
         {
@@ -420,7 +420,7 @@
             "pkt_dts_time": "0.120000",
             "pkt_duration": 2048,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "794307",
+            "pkt_pos": "794308",
             "width": 320,
             "height": 240,
             "pix_fmt": "rgb24",
@@ -443,7 +443,7 @@
             "duration": 2048,
             "duration_time": "0.040000",
             "size": "30000",
-            "pos": "1024731",
+            "pos": "1024732",
             "flags": "K"
         },
         {
@@ -456,7 +456,7 @@
             "pkt_dts_time": "0.120000",
             "pkt_duration": 2048,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "1024731",
+            "pkt_pos": "1024732",
             "width": 100,
             "height": 100,
             "pix_fmt": "rgb24",
@@ -587,8 +587,8 @@
         "format_name": "nut",
         "start_time": "0.000000",
         "duration": "0.120000",
-        "size": "1054812",
-        "bit_rate": "70320800",
+        "size": "1054813",
+        "bit_rate": "70320866",
         "tags": {
             "title": "ffprobe test file",
             "comment": "'A comment with CSV, XML & JSON special chars': <tag value=\"x\">",
diff --git a/tests/ref/fate/ffprobe_xml b/tests/ref/fate/ffprobe_xml
index 1f2715a..c01bcde 100644
--- a/tests/ref/fate/ffprobe_xml
+++ b/tests/ref/fate/ffprobe_xml
@@ -1,34 +1,34 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ffprobe>
     <packets_and_frames>
-        <packet codec_type="audio" stream_index="0" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="1024" duration_time="0.023220" size="2048" pos="572" flags="K"/>
-        <frame media_type="audio" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="572" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-        <packet codec_type="video" stream_index="1" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="230400" pos="2647" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="2647" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-        <packet codec_type="video" stream_index="2" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="30000" pos="233068" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="233068" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-        <packet codec_type="audio" stream_index="0" pts="1024" pts_time="0.023220" dts="1024" dts_time="0.023220" duration="1024" duration_time="0.023220" size="2048" pos="263073" flags="K"/>
-        <frame media_type="audio" key_frame="1" pkt_pts="1024" pkt_pts_time="0.023220" pkt_dts="1024" pkt_dts_time="0.023220" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="263073" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-        <packet codec_type="video" stream_index="1" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="230400" pos="265151" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="265151" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-        <packet codec_type="video" stream_index="2" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="30000" pos="495575" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="495575" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-        <packet codec_type="audio" stream_index="0" pts="2048" pts_time="0.046440" dts="2048" dts_time="0.046440" duration="1024" duration_time="0.023220" size="2048" pos="525580" flags="K"/>
-        <frame media_type="audio" key_frame="1" pkt_pts="2048" pkt_pts_time="0.046440" pkt_dts="2048" pkt_dts_time="0.046440" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="525580" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-        <packet codec_type="audio" stream_index="0" pts="3072" pts_time="0.069660" dts="3072" dts_time="0.069660" duration="1024" duration_time="0.023220" size="2048" pos="527651" flags="K"/>
-        <frame media_type="audio" key_frame="1" pkt_pts="3072" pkt_pts_time="0.069660" pkt_dts="3072" pkt_dts_time="0.069660" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="527651" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-        <packet codec_type="video" stream_index="1" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="230400" pos="529729" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="529729" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-        <packet codec_type="video" stream_index="2" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="30000" pos="760153" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="760153" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-        <packet codec_type="audio" stream_index="0" pts="4096" pts_time="0.092880" dts="4096" dts_time="0.092880" duration="1024" duration_time="0.023220" size="2048" pos="790158" flags="K"/>
-        <frame media_type="audio" key_frame="1" pkt_pts="4096" pkt_pts_time="0.092880" pkt_dts="4096" pkt_dts_time="0.092880" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="790158" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-        <packet codec_type="audio" stream_index="0" pts="5120" pts_time="0.116100" dts="5120" dts_time="0.116100" duration="1024" duration_time="0.023220" size="2048" pos="792229" flags="K"/>
-        <frame media_type="audio" key_frame="1" pkt_pts="5120" pkt_pts_time="0.116100" pkt_dts="5120" pkt_dts_time="0.116100" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="792229" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-        <packet codec_type="video" stream_index="1" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="230400" pos="794307" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="794307" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-        <packet codec_type="video" stream_index="2" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="30000" pos="1024731" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="1024731" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+        <packet codec_type="audio" stream_index="0" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="1024" duration_time="0.023220" size="2048" pos="573" flags="K"/>
+        <frame media_type="audio" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="573" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
+        <packet codec_type="video" stream_index="1" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="230400" pos="2648" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="2648" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+        <packet codec_type="video" stream_index="2" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="30000" pos="233069" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="233069" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+        <packet codec_type="audio" stream_index="0" pts="1024" pts_time="0.023220" dts="1024" dts_time="0.023220" duration="1024" duration_time="0.023220" size="2048" pos="263074" flags="K"/>
+        <frame media_type="audio" key_frame="1" pkt_pts="1024" pkt_pts_time="0.023220" pkt_dts="1024" pkt_dts_time="0.023220" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="263074" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
+        <packet codec_type="video" stream_index="1" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="230400" pos="265152" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="265152" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+        <packet codec_type="video" stream_index="2" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="30000" pos="495576" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="495576" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+        <packet codec_type="audio" stream_index="0" pts="2048" pts_time="0.046440" dts="2048" dts_time="0.046440" duration="1024" duration_time="0.023220" size="2048" pos="525581" flags="K"/>
+        <frame media_type="audio" key_frame="1" pkt_pts="2048" pkt_pts_time="0.046440" pkt_dts="2048" pkt_dts_time="0.046440" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="525581" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
+        <packet codec_type="audio" stream_index="0" pts="3072" pts_time="0.069660" dts="3072" dts_time="0.069660" duration="1024" duration_time="0.023220" size="2048" pos="527652" flags="K"/>
+        <frame media_type="audio" key_frame="1" pkt_pts="3072" pkt_pts_time="0.069660" pkt_dts="3072" pkt_dts_time="0.069660" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="527652" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
+        <packet codec_type="video" stream_index="1" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="230400" pos="529730" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="529730" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+        <packet codec_type="video" stream_index="2" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="30000" pos="760154" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="760154" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+        <packet codec_type="audio" stream_index="0" pts="4096" pts_time="0.092880" dts="4096" dts_time="0.092880" duration="1024" duration_time="0.023220" size="2048" pos="790159" flags="K"/>
+        <frame media_type="audio" key_frame="1" pkt_pts="4096" pkt_pts_time="0.092880" pkt_dts="4096" pkt_dts_time="0.092880" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="790159" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
+        <packet codec_type="audio" stream_index="0" pts="5120" pts_time="0.116100" dts="5120" dts_time="0.116100" duration="1024" duration_time="0.023220" size="2048" pos="792230" flags="K"/>
+        <frame media_type="audio" key_frame="1" pkt_pts="5120" pkt_pts_time="0.116100" pkt_dts="5120" pkt_dts_time="0.116100" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="792230" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
+        <packet codec_type="video" stream_index="1" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="230400" pos="794308" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="794308" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
+        <packet codec_type="video" stream_index="2" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="30000" pos="1024732" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="1024732" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
     </packets_and_frames>
 
     <streams>
@@ -46,7 +46,7 @@
         </stream>
     </streams>
 
-    <format filename="tests/data/ffprobe-test.nut" nb_streams="3" format_name="nut" start_time="0.000000" duration="0.120000" size="1054812" bit_rate="70320800">
+    <format filename="tests/data/ffprobe-test.nut" nb_streams="3" format_name="nut" start_time="0.000000" duration="0.120000" size="1054813" bit_rate="70320866">
         <tag key="title" value="ffprobe test file"/>
         <tag key="comment" value="'A comment with CSV, XML & JSON special chars': <tag value="x">"/>
         <tag key="comment2" value="I ♥ Üñîçød€"/>
diff --git a/tests/ref/fate/filter-colormatrix1 b/tests/ref/fate/filter-colormatrix1
index 9ec093d..7eb2ccc 100644
--- a/tests/ref/fate/filter-colormatrix1
+++ b/tests/ref/fate/filter-colormatrix1
@@ -1 +1 @@
-colormatrix1        600fef16b66cff4ee76540ff2a8f4480
+colormatrix1        1afde2989a1613eef811d05f9fcae068
diff --git a/tests/ref/fate/filter-colormatrix2 b/tests/ref/fate/filter-colormatrix2
index 9961bae..b7ecc21 100644
--- a/tests/ref/fate/filter-colormatrix2
+++ b/tests/ref/fate/filter-colormatrix2
@@ -1 +1 @@
-colormatrix2        e4ba95b7dd5e0862aa5f5e3ddc54bda4
+colormatrix2        861ca11b86a3aabf4499a86fafe7b2d0
diff --git a/tests/ref/fate/filter-crop b/tests/ref/fate/filter-crop
index dec7f29..a13c4de 100644
--- a/tests/ref/fate/filter-crop
+++ b/tests/ref/fate/filter-crop
@@ -1 +1 @@
-crop                f7b5236ddf88224188051c7c43503a14
+crop                25258b4fc9b20a6ea75194c0539d5a1a
diff --git a/tests/ref/fate/filter-crop_scale b/tests/ref/fate/filter-crop_scale
index e692a8a..11461de 100644
--- a/tests/ref/fate/filter-crop_scale
+++ b/tests/ref/fate/filter-crop_scale
@@ -1 +1 @@
-crop_scale          c298d61e731a97d0a9600e7fde80b6b4
+crop_scale          b4e78ef583d540dc601dca4e93e894d4
diff --git a/tests/ref/fate/filter-crop_scale_vflip b/tests/ref/fate/filter-crop_scale_vflip
index 9a7d326..26fba55 100644
--- a/tests/ref/fate/filter-crop_scale_vflip
+++ b/tests/ref/fate/filter-crop_scale_vflip
@@ -1 +1 @@
-crop_scale_vflip    56b8204e72d0680b139a8d9dd756e332
+crop_scale_vflip    3d364d5e9adc478d8cfc51a79cb174ab
diff --git a/tests/ref/fate/filter-crop_vflip b/tests/ref/fate/filter-crop_vflip
index d6d6bad..c9ac1d0 100644
--- a/tests/ref/fate/filter-crop_vflip
+++ b/tests/ref/fate/filter-crop_vflip
@@ -1 +1 @@
-crop_vflip          8368eb12fa29acc5826bade961257375
+crop_vflip          45724509ca6df7e6cad14cee4baf09e2
diff --git a/tests/ref/fate/filter-edgedetect b/tests/ref/fate/filter-edgedetect
index 6db0e72..eb9c9ed 100644
--- a/tests/ref/fate/filter-edgedetect
+++ b/tests/ref/fate/filter-edgedetect
@@ -1 +1 @@
-edgedetect          9d396de52d56b63a77ea6933a323f61f
+edgedetect          226f8cb0bfa0401c2f87752dabd32d4c
diff --git a/tests/ref/fate/filter-hue b/tests/ref/fate/filter-hue
index ab412a7..1322686 100644
--- a/tests/ref/fate/filter-hue
+++ b/tests/ref/fate/filter-hue
@@ -1 +1 @@
-hue                 faddb090f2eefa663b9539fd67451352
+hue                 043462b4e1da48c5075902db92e6b9fd
diff --git a/tests/ref/fate/filter-idet b/tests/ref/fate/filter-idet
index 2c6c2ae..0215781 100644
--- a/tests/ref/fate/filter-idet
+++ b/tests/ref/fate/filter-idet
@@ -1 +1 @@
-idet                1077e3cb6fc4916b5441dd08cea4c9a8
+idet                dacbacbaac305e9c8fbd948a2c69d171
diff --git a/tests/ref/fate/filter-null b/tests/ref/fate/filter-null
index 0b9b9b8..7869485 100644
--- a/tests/ref/fate/filter-null
+++ b/tests/ref/fate/filter-null
@@ -1 +1 @@
-null                61fffd2d8425759a33ae07e718d0242d
+null                36b5ec33915bb1f348d7adf79157e52c
diff --git a/tests/ref/fate/filter-pad b/tests/ref/fate/filter-pad
index 7a6f61e..17440b1 100644
--- a/tests/ref/fate/filter-pad
+++ b/tests/ref/fate/filter-pad
@@ -1 +1 @@
-pad                 8122d716097523d0875e2d55b0926105
+pad                 78b95c87b68d614d7c6478da1cd83110
diff --git a/tests/ref/fate/filter-pixdesc b/tests/ref/fate/filter-pixdesc
index 1ab928b..913d75a 100644
--- a/tests/ref/fate/filter-pixdesc
+++ b/tests/ref/fate/filter-pixdesc
@@ -1,112 +1,112 @@
-0bgr                2b46a6ce47a19ffc240e4e93f498f491
-0rgb                e90e5d377a3e5af69fdf7b60cbf88f51
-abgr                1a147fa04ed70b9a7e67a4c89052f630
-argb                997df0b5c268a0d8f9c611cae4e01e05
-bgr0                b61591a68252e66c576b9bb074a9eaed
-bgr24               d6370f6dc34df2ea66e1718baf74137b
-bgr444be            aba6dfea008ae12c2120a95f54293904
-bgr444le            cfb5401e8f076cc8675e17ed1114a3df
-bgr48be             ab65229b64606f6408cd732b967c0b01
-bgr48le             f1b4e718cadee9bd2978289153ce43de
-bgr4_byte           de96505ef9ad7078f87b4dfdf6fe4b61
-bgr555be            8d5de9e9200d622f27dc73958a85045c
-bgr555le            74eb9837706143a40e26305a16a79369
-bgr565be            13a36d6502be88fc0c2aec05b8d2d501
-bgr565le            ed027571692aecd522aa65a90cc7e09b
-bgr8                71ef789609c746c2e7e4be9dec29062c
-bgra                0364b074268682ea46168742a8239f7d
-gbrap               412a2449fdfaeb5ebdf5e4196cc7391a
-gbrp                89d6e4b116e3bd542fa09a19a977ad16
-gbrp10be            5dc62e2d01fa7c19a57abe48246f2232
-gbrp10le            0cac205a304b59811ce30fcad49b3527
-gbrp12be            de1d2a6b1d189bce9b9a2cf322c31c24
-gbrp12le            e3267ef00bb48778df21a386416d2e14
-gbrp14be            7979d158b30c0b45db97aba2228d15fc
-gbrp14le            d32b6c73a820f9d03a779a996924893d
-gbrp9be             2478d1c27ae4ec94ec4b5e439128af0c
-gbrp9le             640240ca2663e48f0bacd8edb5242c7d
-gray                1e5e2b8548843a6898eedd9c974c422c
-gray16be            389f4e5a8ab413b3af32767b59ed7f9e
-gray16le            a1f912941247e45b394b9cf4f0e81130
-monob               309b5785a36bd988d17e15d88f4ffad1
-monow               8809a02bc69b58d1114b09ca79ebffad
-nv12                75e90c54d858b993e99f4ee6d2a2a38f
-nv21                8831a3f411015d45fbc5dd191245ba9c
-rgb0                5774780b3c532896300fa326fcde01a8
-rgb24               c71ba90f69f15c8275232bb3f62d0ced
-rgb444be            26eaec65d7efd2b0c9c13b47dfd9b241
-rgb444le            5f29863553107110ea817f52151d77b7
-rgb48be             a3bc81c46c21818a989f23104a599ab0
-rgb48le             e87c661ac49aea1f1e93939802883d92
-rgb4_byte           293b1b84f01efd90bde40cb3faffc127
-rgb555be            5229183fa64d4e5c7e3703d8263ee6ae
-rgb555le            c3e9978cb2a4129a5575935e8cbc433a
-rgb565be            bc123b962629ead1a06af0c18cbb6e5f
-rgb565le            20757fafe4756e62d845b2ab4c0b8f93
-rgb8                e01614f5416dcc8ad365ad7a57afc9fb
-rgba                53796fa4c392a1b2659595b6a284f8c4
-rgba64be            d5729f8c76250a9b18cb149b396f1bfb
-rgba64le            fae0a6afdaee94cb98e3ab9a702c8ecc
-uyvy422             3f411f947e3ac8f842c88e717d68bd9a
-yuv410p             7dcf3f4770c8b494290ceacd2c2ce6db
-yuv411p             9461b188dab6f8b90d9a27e353a89f58
-yuv420p             61fffd2d8425759a33ae07e718d0242d
-yuv420p10be         2abf90242cb021cb6fcf9f2c3c92f6a7
-yuv420p10le         180b7e4de684c7225d2fb37614f842cb
-yuv420p12be         256c9e6cfc878a8abf681b30777c0620
-yuv420p12le         8dc8b86c4790da3769d4a62e87608623
-yuv420p14be         8d22756c5d2b9e501924c082bfb22a6c
-yuv420p14le         c9da19d4818bcb119ad6481b75778f7e
-yuv420p16be         4ccdcca6dd6a960f9a3333f0aee095bd
-yuv420p16le         9c5847d9b0de258a10ee906dc47e24ea
-yuv420p9be          fa7ad4f73232aac0e35def62af1e2c39
-yuv420p9le          3720ba1786b56c8f4913e67dddebbb07
-yuv422p             eee223e92f1f2e5ad4186b411ebf5816
-yuv422p10be         80fa87750491dcc3e93d175b64835654
-yuv422p10le         e1640cd315bd96c6b59f7753825a7306
-yuv422p12be         5c6d86e919515d1af71f8004a6252f9e
-yuv422p12le         7f331cadb0ab75d07656d29f47bd8bd9
-yuv422p14be         4f4e186ba683b90fe990cccc4db7e521
-yuv422p14le         d78016c9119b1f1d1c922bd5aaf47732
-yuv422p16be         1f3c216927d17966a009a42def124bba
-yuv422p16le         90adbdffaeea9b09398339c8a1322b02
-yuv422p9be          e46446534dd0821029d3b831c9c1d1b0
-yuv422p9le          520e418a2429f7efee511b7fcbf45ab6
-yuv440p             456d83524b299f2fa1bb988e421554d9
-yuv444p             068bc09d282d18c9fa35c2787943fc2a
-yuv444p10be         9f6e1490080a454243daee9229425e1e
-yuv444p10le         cc183e51041351d9ac06c4df6e8ad5f7
-yuv444p12be         34f63ac6a47ac681016105d3bfb3e118
-yuv444p12le         7964701bfe8d718edf97f6e0002935bd
-yuv444p14be         4ad3a9d52fe9c050150c0f7d2f3cf63d
-yuv444p14le         69575e5a94b978f159c4fdb1a61587b0
-yuv444p16be         4000b12fa88ed0feef182da31c7e6b96
-yuv444p16le         96a857dba8dc6792c58daec872825b32
-yuv444p9be          07727e5c9040b7f0a17d591288ac330d
-yuv444p9le          4d12d20a68dc28618594c96c2ade4ff4
-yuva420p            3a8c5c142e051367c196f95696e0e2c3
-yuva420p10be        1b7c5ec6691498e24676ce6ed97f62f8
-yuva420p10le        4c13322bca914df2727da91cca85ca1a
-yuva420p16be        6afcf758f4b66c0b4173c942d42212d7
-yuva420p16le        13e195aa96329eb49921b6f9f07b875c
-yuva420p9be         05a78390de312dfd21ac666a9da05fbd
-yuva420p9le         78f5593bf51a31841ef83df41d0316eb
-yuva422p            45ae66d6f69fd5b77e6831e98d228bf4
-yuva422p10be        18284c58b926fe2389605c692a703145
-yuva422p10le        b934d28b615729a24bebf0381c465e37
-yuva422p16be        c3f7354b6013b43439e02aa02be5fe69
-yuva422p16le        a7ccc43820683ab15061d14cf8efce6c
-yuva422p9be         14c55a16d19499b54b4341f135d3e558
-yuva422p9le         a8bf168e5d2709222192d0aff46b1373
-yuva444p            86b05da54db8c7e8cf5b6638e19c6fc5
-yuva444p10be        8c417158165c00fbd42def60cbc27d69
-yuva444p10le        5f303ef3fb56faed69b4cc1c760ac6ae
-yuva444p16be        52a9591ec0d5059e49b1b2803f8582aa
-yuva444p16le        a9272ac197e4a4195662ce90f533976c
-yuva444p9be         f72f646ef07cdab613420585aba041ac
-yuva444p9le         6d431b0a27bf4f86ea44ef5f14247a01
-yuvj420p            73661456012f20cda81207b14bb0c0a5
-yuvj422p            aa97862b57f47c5a6506156e9aaf129a
-yuvj440p            ff8b9884a49d546b035f5d2ac1e673df
-yuvj444p            b8142888d80b8065c54045839e79b331
-yuyv422             f06a4fbbdb32807d05de825daa2c3a1b
+0bgr                838abe43ae657eac02c8e5848fa6f3eb
+0rgb                7bf97cba7ec9cb1e8b609e7af2a42020
+abgr                285d7e042811968e370ef1f43a9ff8a2
+argb                9ea1af84310748479936fb969ca2d203
+bgr0                f2cdc1bbf6f4a198a06be5aaad6f5a95
+bgr24               20b55b1831f7b00f3b64dccf0cc6adb4
+bgr444be            87295addd2c9280477cadad0dc0245f9
+bgr444le            c6abf7045f8f35f26c7cf7e633845808
+bgr48be             e06ee22635c7d400f1b1d8cfb5f179ef
+bgr48le             d752616d1063099ebb2eabc64ff49015
+bgr4_byte           87c48bd876d5aa20f4203a40999e0884
+bgr555be            afbc97afd9ff1a596a2c9f1175566ff8
+bgr555le            72f6ac055799b3fefe0b18f7f23b8a78
+bgr565be            bead96240f6d34de4b8fdc560f8dec13
+bgr565le            19cc88ec4369ba0449849af732c2591d
+bgr8                f4ab3661f2968190637ff4144955756a
+bgra                97051336156a3c30e8804614a1853afc
+gbrap               2ad14f2965c2887c1f2c74ce487bdca0
+gbrp                74915195f7655e5e9861546c85d72e52
+gbrp10be            db21bb8d2a89265e8960ce11ca2c8dc5
+gbrp10le            9ca620c2642de1dcb26d57ef0bb6936c
+gbrp12be            a4c2a0acd978f677d4c887f7bccde377
+gbrp12le            87084821f002f7137791a9fe7126d13d
+gbrp14be            5a2bea055d2d8b31147c82432ef392bc
+gbrp14le            553c7b67c7dea48b58ad8a691ee3850a
+gbrp9be             46e9f05602592bf001345ef7932e1565
+gbrp9le             389b62e58fb9434652f80e569f563596
+gray                0685e7f2763136ae7f6812ecfe3a0648
+gray16be            8202935701f988967e51cdffe74dc825
+gray16le            db5c40e458d4d2cdb54a962b21b87b24
+monob               eadd1f0b425c24d01992ff471e02493a
+monow               3d44555a8b861f06729c4ddeb04cd145
+nv12                328ffc75a1b1e0e7dd23ce786e096f55
+nv21                65a0b95295a5bc8f315fc1c91708c46a
+rgb0                286acecf60ed63ed5e3bd76caf48dade
+rgb24               882637bb0ef70e27cd82a36ca8ed8cd1
+rgb444be            637b4a135202e51cd8fcc0eaaeadb2af
+rgb444le            11579bc24f1e8f70185bcf3763b8d100
+rgb48be             a244e99d4344a662ac257ecb65ee51c5
+rgb48le             ac32498e5178b3c85d7bb5bbf5596959
+rgb4_byte           cbc2e62e4c1855b513b09c0fe85cda98
+rgb555be            54f5d0b61d40a53860b970ad4a217354
+rgb555le            38b9c898af62cb4657539ff20e8b06ce
+rgb565be            cc6d7032ce52a4b31ac53d698c96f7dd
+rgb565le            90dffd0d77cb1171878b5c3000757121
+rgb8                b948ca4ecfff222f078b384316a25311
+rgba                02f5ddad6cb4ccc70de9544231a02c7a
+rgba64be            e717e8d8d4eba7faebb24d5abaf5b266
+rgba64le            472547f12e14ad4dda2eb99b905d9510
+uyvy422             8a5035edefdf5326f08e48acb9019c83
+yuv410p             65db25b4e932e3d9c9eb28243ea294d6
+yuv411p             28f934857f6a539840e25beb9d969ee3
+yuv420p             36b5ec33915bb1f348d7adf79157e52c
+yuv420p10be         5a30d60a2285f9a0d0ab741ede7afeb7
+yuv420p10le         172f09975ae2acc8af46c2255474fdfe
+yuv420p12be         669f9c27ae29e4fe8442fd0bf9e8fa7d
+yuv420p12le         6156dbced36297ce40f5277055fad99b
+yuv420p14be         ae4c0aa3d27a96b177d728b27621ced9
+yuv420p14le         b131af5958017921e6cfcc3b364938f6
+yuv420p16be         4869b4d981ef8fc30075e3b5ac7ae7f0
+yuv420p16le         b683d10581af61ee2d4120abce876fe6
+yuv420p9be          f945598c865341d9eb4301e82e23c816
+yuv420p9le          9fb9d4eb45115b78fbafcf0b29ca1d67
+yuv422p             b9702da4f1273800751e1020127907a5
+yuv422p10be         a9bffc300ca3bd16fcd034c6c459758a
+yuv422p10le         dd32428a1a6a64bc52a2d5821d393fd0
+yuv422p12be         56718bc08dbfed68bf1a42a76c81b8a1
+yuv422p12le         8e82d3e0eb9446de9500df3babd33e8c
+yuv422p14be         4a86e56c48482b4e293cf35c88680eed
+yuv422p14le         694439db70baca82073b1e5769619fc8
+yuv422p16be         bd6c81301835bc4703b9158c304f6a36
+yuv422p16le         4fb7684f250dae644970b7223d1131d0
+yuv422p9be          417f234704c70943c4ba115da98f1fc0
+yuv422p9le          8fcb0902c945d72b4193a081a8f38dd9
+yuv440p             c7ceec08858b5250378023f24b5b0789
+yuv444p             f6d219dbf815d05fef469a02f8906aef
+yuv444p10be         cd2d3f9c73418a0109f6aa14dcc5b88a
+yuv444p10le         1d10be90db1ee75ea0a0c9581b454a94
+yuv444p12be         0bfe5405afc870a1c13182c7b572328c
+yuv444p12le         0dd8619a85e2eb49efd6e5fee0f48268
+yuv444p14be         268505a8cdfba0e7558da8ce879db56e
+yuv444p14le         c354a1e8863dbf250d27256def466d31
+yuv444p16be         118d8243b4b97f08a8823b37b787b95d
+yuv444p16le         f00ebcfa6d6bf8b2965bdda6b35cfc2f
+yuv444p9be          8749d00528f5a0abd62ddf31c7e07f70
+yuv444p9le          a2b10de1375efb6d44822b4719eef6a7
+yuva420p            78e7dae5d859d0cc5b8a0f2799a6e436
+yuva420p10be        ab9a3e54e50c2417e6356970853afd1c
+yuva420p10le        723475037de6ea5099135f5074cf73c4
+yuva420p16be        c1717b1f924de42f4f1c19690660244d
+yuva420p16le        a36480ffa50a71dcf9c9a1568f1f2240
+yuva420p9be         91ff5e945cb1f9e76ca2b5dd94ce53ef
+yuva420p9le         d5855fd334987ca2a083e3b7d3415559
+yuva422p            50a4e5db3f667219462adad411e7139a
+yuva422p10be        5d7e9fc558a83e2d210e02e6b7ab0dc5
+yuva422p10le        691eb7575d9ab3caeacaa8ad77090702
+yuva422p16be        985ac23975e40e2d17e3e28fbdaf8d1d
+yuva422p16le        e88a4bcabae7971f68f3c2c773a41ef3
+yuva422p9be         dde36453b84bf9e954a5a62e54695631
+yuva422p9le         67f80161c93e8e5dba7c1e59151113a8
+yuva444p            fadc28a276530fa17e88057226d04382
+yuva444p10be        173a4eea9bae114f44834ed193ef0dac
+yuva444p10le        66f8ce0eb99baba095b3f4f6e1bf3e1a
+yuva444p16be        26c5409b48c2aa8a7e4b020204d2f15c
+yuva444p16le        c892bf67aad39925e211459bae9d28f8
+yuva444p9be         7a697ca8289f6376aa4b71a0c92477e5
+yuva444p9le         2c8133fcf59c9706608c5ae72485ae8b
+yuvj420p            19b3cda5f114db609953792729ee5e68
+yuvj422p            6be4ab6c9634237d8c9c6bbb78799a38
+yuvj440p            26368d44d48344d935a48bf0aa4484c1
+yuvj444p            abde33f1772eef0981021b8f83c64b17
+yuyv422             58d0441e68e3868312657c49ee450b2d
diff --git a/tests/ref/fate/filter-pixfmts-copy b/tests/ref/fate/filter-pixfmts-copy
index dba8fec..7121821 100644
--- a/tests/ref/fate/filter-pixfmts-copy
+++ b/tests/ref/fate/filter-pixfmts-copy
@@ -1,115 +1,115 @@
-0bgr                a06d3a7652e4885c65895e0e168aab28
-0rgb                b6b5653d2228cdf2ba3c55a72f2e713f
-abgr                1a147fa04ed70b9a7e67a4c89052f630
-argb                997df0b5c268a0d8f9c611cae4e01e05
-bgr0                218df6dc3eb5094a0c16a8bd18bc3999
-bgr24               d6370f6dc34df2ea66e1718baf74137b
-bgr444be            aba6dfea008ae12c2120a95f54293904
-bgr444le            cfb5401e8f076cc8675e17ed1114a3df
-bgr48be             ab65229b64606f6408cd732b967c0b01
-bgr48le             f1b4e718cadee9bd2978289153ce43de
-bgr4_byte           de96505ef9ad7078f87b4dfdf6fe4b61
-bgr555be            8d5de9e9200d622f27dc73958a85045c
-bgr555le            74eb9837706143a40e26305a16a79369
-bgr565be            13a36d6502be88fc0c2aec05b8d2d501
-bgr565le            ed027571692aecd522aa65a90cc7e09b
-bgr8                71ef789609c746c2e7e4be9dec29062c
-bgra                0364b074268682ea46168742a8239f7d
-gbrap               412a2449fdfaeb5ebdf5e4196cc7391a
-gbrp                89d6e4b116e3bd542fa09a19a977ad16
-gbrp10be            5dc62e2d01fa7c19a57abe48246f2232
-gbrp10le            0cac205a304b59811ce30fcad49b3527
-gbrp12be            de1d2a6b1d189bce9b9a2cf322c31c24
-gbrp12le            e3267ef00bb48778df21a386416d2e14
-gbrp14be            7979d158b30c0b45db97aba2228d15fc
-gbrp14le            d32b6c73a820f9d03a779a996924893d
-gbrp9be             2478d1c27ae4ec94ec4b5e439128af0c
-gbrp9le             640240ca2663e48f0bacd8edb5242c7d
-gray                1e5e2b8548843a6898eedd9c974c422c
-gray16be            389f4e5a8ab413b3af32767b59ed7f9e
-gray16le            a1f912941247e45b394b9cf4f0e81130
-monob               309b5785a36bd988d17e15d88f4ffad1
-monow               8809a02bc69b58d1114b09ca79ebffad
-nv12                75e90c54d858b993e99f4ee6d2a2a38f
-nv21                8831a3f411015d45fbc5dd191245ba9c
-pal8                13de2a1c3c80cb64d14e2bc4f6f461d0
-rgb0                992f5ad24802cc255edab45c3084db4a
-rgb24               c71ba90f69f15c8275232bb3f62d0ced
-rgb444be            26eaec65d7efd2b0c9c13b47dfd9b241
-rgb444le            5f29863553107110ea817f52151d77b7
-rgb48be             a3bc81c46c21818a989f23104a599ab0
-rgb48le             e87c661ac49aea1f1e93939802883d92
-rgb4_byte           293b1b84f01efd90bde40cb3faffc127
-rgb555be            5229183fa64d4e5c7e3703d8263ee6ae
-rgb555le            c3e9978cb2a4129a5575935e8cbc433a
-rgb565be            bc123b962629ead1a06af0c18cbb6e5f
-rgb565le            20757fafe4756e62d845b2ab4c0b8f93
-rgb8                e01614f5416dcc8ad365ad7a57afc9fb
-rgba                53796fa4c392a1b2659595b6a284f8c4
-rgba64be            d5729f8c76250a9b18cb149b396f1bfb
-rgba64le            fae0a6afdaee94cb98e3ab9a702c8ecc
-uyvy422             3f411f947e3ac8f842c88e717d68bd9a
-xyz12be             e1e6718ae1c83e904fbdf903d62e5808
-xyz12le             24e8a22c1bd7d637edb731d10b7c54d0
-yuv410p             7dcf3f4770c8b494290ceacd2c2ce6db
-yuv411p             9461b188dab6f8b90d9a27e353a89f58
-yuv420p             61fffd2d8425759a33ae07e718d0242d
-yuv420p10be         2abf90242cb021cb6fcf9f2c3c92f6a7
-yuv420p10le         180b7e4de684c7225d2fb37614f842cb
-yuv420p12be         256c9e6cfc878a8abf681b30777c0620
-yuv420p12le         8dc8b86c4790da3769d4a62e87608623
-yuv420p14be         8d22756c5d2b9e501924c082bfb22a6c
-yuv420p14le         c9da19d4818bcb119ad6481b75778f7e
-yuv420p16be         4ccdcca6dd6a960f9a3333f0aee095bd
-yuv420p16le         9c5847d9b0de258a10ee906dc47e24ea
-yuv420p9be          fa7ad4f73232aac0e35def62af1e2c39
-yuv420p9le          3720ba1786b56c8f4913e67dddebbb07
-yuv422p             eee223e92f1f2e5ad4186b411ebf5816
-yuv422p10be         80fa87750491dcc3e93d175b64835654
-yuv422p10le         e1640cd315bd96c6b59f7753825a7306
-yuv422p12be         5c6d86e919515d1af71f8004a6252f9e
-yuv422p12le         7f331cadb0ab75d07656d29f47bd8bd9
-yuv422p14be         4f4e186ba683b90fe990cccc4db7e521
-yuv422p14le         d78016c9119b1f1d1c922bd5aaf47732
-yuv422p16be         1f3c216927d17966a009a42def124bba
-yuv422p16le         90adbdffaeea9b09398339c8a1322b02
-yuv422p9be          e46446534dd0821029d3b831c9c1d1b0
-yuv422p9le          520e418a2429f7efee511b7fcbf45ab6
-yuv440p             456d83524b299f2fa1bb988e421554d9
-yuv444p             068bc09d282d18c9fa35c2787943fc2a
-yuv444p10be         9f6e1490080a454243daee9229425e1e
-yuv444p10le         cc183e51041351d9ac06c4df6e8ad5f7
-yuv444p12be         34f63ac6a47ac681016105d3bfb3e118
-yuv444p12le         7964701bfe8d718edf97f6e0002935bd
-yuv444p14be         4ad3a9d52fe9c050150c0f7d2f3cf63d
-yuv444p14le         69575e5a94b978f159c4fdb1a61587b0
-yuv444p16be         4000b12fa88ed0feef182da31c7e6b96
-yuv444p16le         96a857dba8dc6792c58daec872825b32
-yuv444p9be          07727e5c9040b7f0a17d591288ac330d
-yuv444p9le          4d12d20a68dc28618594c96c2ade4ff4
-yuva420p            3a8c5c142e051367c196f95696e0e2c3
-yuva420p10be        1b7c5ec6691498e24676ce6ed97f62f8
-yuva420p10le        4c13322bca914df2727da91cca85ca1a
-yuva420p16be        6afcf758f4b66c0b4173c942d42212d7
-yuva420p16le        13e195aa96329eb49921b6f9f07b875c
-yuva420p9be         05a78390de312dfd21ac666a9da05fbd
-yuva420p9le         78f5593bf51a31841ef83df41d0316eb
-yuva422p            45ae66d6f69fd5b77e6831e98d228bf4
-yuva422p10be        18284c58b926fe2389605c692a703145
-yuva422p10le        b934d28b615729a24bebf0381c465e37
-yuva422p16be        c3f7354b6013b43439e02aa02be5fe69
-yuva422p16le        a7ccc43820683ab15061d14cf8efce6c
-yuva422p9be         14c55a16d19499b54b4341f135d3e558
-yuva422p9le         a8bf168e5d2709222192d0aff46b1373
-yuva444p            86b05da54db8c7e8cf5b6638e19c6fc5
-yuva444p10be        8c417158165c00fbd42def60cbc27d69
-yuva444p10le        5f303ef3fb56faed69b4cc1c760ac6ae
-yuva444p16be        52a9591ec0d5059e49b1b2803f8582aa
-yuva444p16le        a9272ac197e4a4195662ce90f533976c
-yuva444p9be         f72f646ef07cdab613420585aba041ac
-yuva444p9le         6d431b0a27bf4f86ea44ef5f14247a01
-yuvj420p            73661456012f20cda81207b14bb0c0a5
-yuvj422p            aa97862b57f47c5a6506156e9aaf129a
-yuvj440p            ff8b9884a49d546b035f5d2ac1e673df
-yuvj444p            b8142888d80b8065c54045839e79b331
-yuyv422             f06a4fbbdb32807d05de825daa2c3a1b
+0bgr                dbe53dcdb3e71a00336f7fddf513b7f8
+0rgb                6bad9121fa949b37f999d1e633c89097
+abgr                285d7e042811968e370ef1f43a9ff8a2
+argb                9ea1af84310748479936fb969ca2d203
+bgr0                279dd31657c7ea3ab3741895dc4ee489
+bgr24               20b55b1831f7b00f3b64dccf0cc6adb4
+bgr444be            87295addd2c9280477cadad0dc0245f9
+bgr444le            c6abf7045f8f35f26c7cf7e633845808
+bgr48be             e06ee22635c7d400f1b1d8cfb5f179ef
+bgr48le             d752616d1063099ebb2eabc64ff49015
+bgr4_byte           87c48bd876d5aa20f4203a40999e0884
+bgr555be            afbc97afd9ff1a596a2c9f1175566ff8
+bgr555le            72f6ac055799b3fefe0b18f7f23b8a78
+bgr565be            bead96240f6d34de4b8fdc560f8dec13
+bgr565le            19cc88ec4369ba0449849af732c2591d
+bgr8                f4ab3661f2968190637ff4144955756a
+bgra                97051336156a3c30e8804614a1853afc
+gbrap               2ad14f2965c2887c1f2c74ce487bdca0
+gbrp                74915195f7655e5e9861546c85d72e52
+gbrp10be            db21bb8d2a89265e8960ce11ca2c8dc5
+gbrp10le            9ca620c2642de1dcb26d57ef0bb6936c
+gbrp12be            a4c2a0acd978f677d4c887f7bccde377
+gbrp12le            87084821f002f7137791a9fe7126d13d
+gbrp14be            5a2bea055d2d8b31147c82432ef392bc
+gbrp14le            553c7b67c7dea48b58ad8a691ee3850a
+gbrp9be             46e9f05602592bf001345ef7932e1565
+gbrp9le             389b62e58fb9434652f80e569f563596
+gray                0685e7f2763136ae7f6812ecfe3a0648
+gray16be            8202935701f988967e51cdffe74dc825
+gray16le            db5c40e458d4d2cdb54a962b21b87b24
+monob               eadd1f0b425c24d01992ff471e02493a
+monow               3d44555a8b861f06729c4ddeb04cd145
+nv12                328ffc75a1b1e0e7dd23ce786e096f55
+nv21                65a0b95295a5bc8f315fc1c91708c46a
+pal8                35cd8494648766f0d0605a9650a95b4f
+rgb0                f815a49523591860e711a13bcd6e1ee5
+rgb24               882637bb0ef70e27cd82a36ca8ed8cd1
+rgb444be            637b4a135202e51cd8fcc0eaaeadb2af
+rgb444le            11579bc24f1e8f70185bcf3763b8d100
+rgb48be             a244e99d4344a662ac257ecb65ee51c5
+rgb48le             ac32498e5178b3c85d7bb5bbf5596959
+rgb4_byte           cbc2e62e4c1855b513b09c0fe85cda98
+rgb555be            54f5d0b61d40a53860b970ad4a217354
+rgb555le            38b9c898af62cb4657539ff20e8b06ce
+rgb565be            cc6d7032ce52a4b31ac53d698c96f7dd
+rgb565le            90dffd0d77cb1171878b5c3000757121
+rgb8                b948ca4ecfff222f078b384316a25311
+rgba                02f5ddad6cb4ccc70de9544231a02c7a
+rgba64be            e717e8d8d4eba7faebb24d5abaf5b266
+rgba64le            472547f12e14ad4dda2eb99b905d9510
+uyvy422             8a5035edefdf5326f08e48acb9019c83
+xyz12be             33bdfef27b01660f840c4d1665590498
+xyz12le             b39badb25e33c23fa2ea0720d3ff6f46
+yuv410p             65db25b4e932e3d9c9eb28243ea294d6
+yuv411p             28f934857f6a539840e25beb9d969ee3
+yuv420p             36b5ec33915bb1f348d7adf79157e52c
+yuv420p10be         5a30d60a2285f9a0d0ab741ede7afeb7
+yuv420p10le         172f09975ae2acc8af46c2255474fdfe
+yuv420p12be         669f9c27ae29e4fe8442fd0bf9e8fa7d
+yuv420p12le         6156dbced36297ce40f5277055fad99b
+yuv420p14be         ae4c0aa3d27a96b177d728b27621ced9
+yuv420p14le         b131af5958017921e6cfcc3b364938f6
+yuv420p16be         4869b4d981ef8fc30075e3b5ac7ae7f0
+yuv420p16le         b683d10581af61ee2d4120abce876fe6
+yuv420p9be          f945598c865341d9eb4301e82e23c816
+yuv420p9le          9fb9d4eb45115b78fbafcf0b29ca1d67
+yuv422p             b9702da4f1273800751e1020127907a5
+yuv422p10be         a9bffc300ca3bd16fcd034c6c459758a
+yuv422p10le         dd32428a1a6a64bc52a2d5821d393fd0
+yuv422p12be         56718bc08dbfed68bf1a42a76c81b8a1
+yuv422p12le         8e82d3e0eb9446de9500df3babd33e8c
+yuv422p14be         4a86e56c48482b4e293cf35c88680eed
+yuv422p14le         694439db70baca82073b1e5769619fc8
+yuv422p16be         bd6c81301835bc4703b9158c304f6a36
+yuv422p16le         4fb7684f250dae644970b7223d1131d0
+yuv422p9be          417f234704c70943c4ba115da98f1fc0
+yuv422p9le          8fcb0902c945d72b4193a081a8f38dd9
+yuv440p             c7ceec08858b5250378023f24b5b0789
+yuv444p             f6d219dbf815d05fef469a02f8906aef
+yuv444p10be         cd2d3f9c73418a0109f6aa14dcc5b88a
+yuv444p10le         1d10be90db1ee75ea0a0c9581b454a94
+yuv444p12be         0bfe5405afc870a1c13182c7b572328c
+yuv444p12le         0dd8619a85e2eb49efd6e5fee0f48268
+yuv444p14be         268505a8cdfba0e7558da8ce879db56e
+yuv444p14le         c354a1e8863dbf250d27256def466d31
+yuv444p16be         118d8243b4b97f08a8823b37b787b95d
+yuv444p16le         f00ebcfa6d6bf8b2965bdda6b35cfc2f
+yuv444p9be          8749d00528f5a0abd62ddf31c7e07f70
+yuv444p9le          a2b10de1375efb6d44822b4719eef6a7
+yuva420p            78e7dae5d859d0cc5b8a0f2799a6e436
+yuva420p10be        ab9a3e54e50c2417e6356970853afd1c
+yuva420p10le        723475037de6ea5099135f5074cf73c4
+yuva420p16be        c1717b1f924de42f4f1c19690660244d
+yuva420p16le        a36480ffa50a71dcf9c9a1568f1f2240
+yuva420p9be         91ff5e945cb1f9e76ca2b5dd94ce53ef
+yuva420p9le         d5855fd334987ca2a083e3b7d3415559
+yuva422p            50a4e5db3f667219462adad411e7139a
+yuva422p10be        5d7e9fc558a83e2d210e02e6b7ab0dc5
+yuva422p10le        691eb7575d9ab3caeacaa8ad77090702
+yuva422p16be        985ac23975e40e2d17e3e28fbdaf8d1d
+yuva422p16le        e88a4bcabae7971f68f3c2c773a41ef3
+yuva422p9be         dde36453b84bf9e954a5a62e54695631
+yuva422p9le         67f80161c93e8e5dba7c1e59151113a8
+yuva444p            fadc28a276530fa17e88057226d04382
+yuva444p10be        173a4eea9bae114f44834ed193ef0dac
+yuva444p10le        66f8ce0eb99baba095b3f4f6e1bf3e1a
+yuva444p16be        26c5409b48c2aa8a7e4b020204d2f15c
+yuva444p16le        c892bf67aad39925e211459bae9d28f8
+yuva444p9be         7a697ca8289f6376aa4b71a0c92477e5
+yuva444p9le         2c8133fcf59c9706608c5ae72485ae8b
+yuvj420p            19b3cda5f114db609953792729ee5e68
+yuvj422p            6be4ab6c9634237d8c9c6bbb78799a38
+yuvj440p            26368d44d48344d935a48bf0aa4484c1
+yuvj444p            abde33f1772eef0981021b8f83c64b17
+yuyv422             58d0441e68e3868312657c49ee450b2d
diff --git a/tests/ref/fate/filter-pixfmts-crop b/tests/ref/fate/filter-pixfmts-crop
index 797aedc..5835015 100644
--- a/tests/ref/fate/filter-pixfmts-crop
+++ b/tests/ref/fate/filter-pixfmts-crop
@@ -1,43 +1,43 @@
-abgr                ef31d9057f6e65a7c3308a1b1daa98fa
-argb                5e5e261c4870e0de05d56ff640b9550a
-bgr24               44bec15f35513de7e957b3d59b53cb7b
-bgr48be             0b5ebce3c48eb8614d79e204b5268603
-bgr48le             c4ab61a8b9d502132730c6abb6ffd84c
-bgr4_byte           cab930dbe1fe77d58b41837ecdcb8460
-bgr555be            67162782fdb86813f446d8e1c21c73e9
-bgr555le            85913cfa8dab465f7dcfcfe7f9001a01
-bgr565be            ee9a1debb896d41c53a026f9e6ce006b
-bgr565le            ab7b6055bc3b6b7edc9a5e4de43ec90d
-bgr8                f85ff16e21d922ad6d32648ef3acfbfb
-bgra                9f2e37d73ad3b759fc9d6b12ee668c38
-gray                3266b99065a17cbd647f2339addc5303
-gray16be            02ac848ad4e28c06938599563ba81ff7
-gray16le            672aebfeb8a0f4067b3c6064340056e4
-pal8                e1fd50b8a8a67fb5abd8b44abc778bbb
-rgb24               d044123f1fe50f656f2101dd3f091ead
-rgb48be             ef5507f88948b54218911d12e1dbef36
-rgb48le             6d045d5990d6ada64a112e3b581a7b38
-rgb4_byte           0f0f9ee31c65dc60da49bf98a1b06dcf
-rgb555be            48fa619bfd04f6dee05416b02605c031
-rgb555le            292cff1f824e49076bad50a07ab1c749
-rgb565be            0dd6f6a5a8713bd1c3d9826bb7a88eab
-rgb565le            6afd85faa8c6f0f330969539178eb9a2
-rgb8                87cf541b110e35a6f9a983e9cde85e15
-rgba                7abe1af7b97f5b9a7aa5ad3e4bf32f76
-yuv410p             126e0da1da4fd89be28087b8367bbb36
-yuv411p             b94f0af107fc4796aca70c0a36d374c5
-yuv420p             74c6b331bd30f005e6c75a192423ad90
-yuv420p16be         2d3c84ebff77479e8c5b6e3e59ec4e45
-yuv420p16le         e2c906f2751609bf8cbcbeb2f629319a
-yuv422p             124bc8d668072de1bb3b894cc4bae859
-yuv422p16be         3ec47e2709107fcc388b5e0abebf7eaf
-yuv422p16le         a4183a62917bf8568fe11ff446dd18f9
-yuv440p             15c81c685fa5b9db95150caff14ff83f
-yuv444p             12b752f78af72666627cea2d0c274cdb
-yuv444p16be         f2bf0e22a1d184e37eaa199a76cf22ba
-yuv444p16le         c11b151dced5c8854d385373fa4dcc8f
-yuva420p            920c5d1b965eeb72e3a0e343696face3
-yuvj420p            f9183e49f42bae31d7d85b92161fa82f
-yuvj422p            aabeed60a6e1b2cf88665ac627bf531f
-yuvj440p            5ae4f404b42f3167f978473d9a3737fc
-yuvj444p            6728997f65b879fd5a3175cb449a8f0c
+abgr                8af7b7c9337dfe6e0d0cee095393be8e
+argb                eae1ec07e838c45af45f278d5073e502
+bgr24               eda3115e00036b99d50c0701a7e168f3
+bgr48be             e214c035ed1804dca7ea6887828d0d67
+bgr48le             9ff3a1a26f71978f19cf5ee0ddde2647
+bgr4_byte           416d7c6422fb005f9f2b36daefd3d891
+bgr555be            231d8384327b0e017c1a156ea7a5cdd7
+bgr555le            8a05bf88d49aa54dd4f23308b219fdac
+bgr565be            d6c821a2acdac253d0b6070f7fcfef0d
+bgr565le            cc1ba5602bd78bf2f9b80565708e2329
+bgr8                51face48adb905139673b2b71bdc1815
+bgra                a5e2e348b8a8135351d82f7c7c0ee722
+gray                14bad4164cceb885ed6e942043014687
+gray16be            e9abe070de23b4d2fa71c83ad9899c65
+gray16le            166e6015dccce64fd9d3864877ababae
+pal8                a59a7a6031c62eeaeaa2a3b467ae3daf
+rgb24               44a0a3e46016626cbdaefe689c61ede2
+rgb48be             116d60d82b6a6b13d2bb4dbc77a2a2bf
+rgb48le             ce27ef78eaba1f72153be4b73993f323
+rgb4_byte           cc2cee81d02cf59518b8904b66eb162e
+rgb555be            d746f498e099eed0389676232c7a828b
+rgb555le            9cf13274b9efda3390a77a63f118d8cc
+rgb565be            010b112f1f2a3597f145c5ceefa2e456
+rgb565le            808a33c5ad4b8718177cc32f646e97c0
+rgb8                d2d8e8a8cd035ceca3ce48252810ca43
+rgba                3af6019ef5539110ba710aa09abf92e3
+yuv410p             da0f5f95d46baeb67772130dabe40b36
+yuv411p             97a8d55bff5ffbdcc072058bdc06c465
+yuv420p             655c24ddeb3d0c47c1182c51de77cf79
+yuv420p16be         9c4b06d3fec56fd781bbd9b9208c456d
+yuv420p16le         76948f9121c5f3b49f87cb8c183995d5
+yuv422p             294802e61b992908c7c011e5b22ecd5c
+yuv422p16be         ae95329eddd206d4fa532a89b438a800
+yuv422p16le         7716a34e1dc1480e3752df111c7b9e71
+yuv440p             d2b30b7a78a1208f8310c679a6bc684b
+yuv444p             d8ec954f34679f364a4e07cf64ce6130
+yuv444p16be         90a96d414ebdc1ce2403e521bf7c69b3
+yuv444p16le         994cc8ff6d8071f0dd94d31afbb4fa85
+yuva420p            d369fd141526eb46ed6322e3441dfb95
+yuvj420p            a05dfbe2a02e1a995ff3ac9a58434d12
+yuvj422p            6ee7cff9c733eb24954ef726b8f957d5
+yuvj440p            f088b947753659e874643e3dd41c2c92
+yuvj444p            a7c3e669733d37e8eeff38782eb8f81b
diff --git a/tests/ref/fate/filter-pixfmts-field b/tests/ref/fate/filter-pixfmts-field
index c1c7ea7..e4e13ac 100644
--- a/tests/ref/fate/filter-pixfmts-field
+++ b/tests/ref/fate/filter-pixfmts-field
@@ -1,115 +1,115 @@
-0bgr                57434af4bddb691877f2400c704604eb
-0rgb                fc2ba950163aeee98590181e31fcd202
-abgr                3c78d0a72484a1ecd3cae245b9fa988c
-argb                d5057a2be412864719ffb8ba129c1f2c
-bgr0                b33c6b58b0d7bf6ce07d5a2d7c267040
-bgr24               bd6620738df19410d5df5f31e7451709
-bgr444be            219e318b7e0e05050181e71df6b9539d
-bgr444le            8354f2cf5b30de0233d302a74816649d
-bgr48be             22be50bd0aa39f07ad1b1aa57cb741ce
-bgr48le             c4b0f8057b3eac237e9228e83bdc4c66
-bgr4_byte           d4c3304b4b823a130c335379e4d3444d
-bgr555be            c3072da465233dbfc8f61dc7a9766d2c
-bgr555le            be83adcf0b802b061442f0c564fd5987
-bgr565be            bf955b9a035af0e613cf1de249f55f9d
-bgr565le            6dd85cd5e19266c53a54cbcf06d396a7
-bgr8                9669f6974f0fc1c0afa1c7d4df093c0b
-bgra                f7cabae31dd7465dab2203f45db646f8
-gbrap               fdb15f25cd6db3d19a7df727e0f4de3a
-gbrp                55eab469e3e02ccc5a358565d9b1eaa7
-gbrp10be            38753e9ac21e13d76d1a83bd7272c026
-gbrp10le            a65ff11ee79ae698550218549288e6cc
-gbrp12be            5f49bf3190b98221dab95056ab46bd96
-gbrp12le            3d1cd386205bc690407c81a007a79170
-gbrp14be            60e2efec11a36e7cb0db95e01603d9eb
-gbrp14le            fdcdecdd2c8dc13561a3788ce0487c85
-gbrp9be             86380bf8eaeee32ec40d776f699394e5
-gbrp9le             1286d4558d9bc7c3d68261f4b43e3ba9
-gray                66a09b53f7d3f79dcb6096f3ec3740c5
-gray16be            a447af6482b922c9997ac02e5d3535f1
-gray16le            c1dd0db327295898ff282d07f48c105d
-monob               1b7fb7e69a913a0a1c0dffc54e5899ea
-monow               b5d3778a054fc73d515d36f8a6bc693b
-nv12                b3829e9ae2a15349432b7efac4236068
-nv21                963cf5780e07301ff2906bf345b6d0ff
-pal8                bfedafc3bf19c2c12eeb87125833142a
-rgb0                d7481143742ff68abfbac4195edbede0
-rgb24               908d5494062c617bc87149c9daaf2167
-rgb444be            281a8f186a2726c2b31aa7e09e21c865
-rgb444le            93f9ee6265d8ad5e744ab652563f9b78
-rgb48be             0d1d60e1639edb2758ad776cb5583970
-rgb48le             c958b5e98324263e97de2bb528f5bda4
-rgb4_byte           2ec97bf65649e3d47eb6812701544593
-rgb555be            21b9138b229d4065b02d38b5b62f18d1
-rgb555le            0307ee34e562b2fb2b1c6988ae18b2b2
-rgb565be            e8f3ebcbb9a5fff000eca8a312f89782
-rgb565le            53bbd558fb0dcd82f1fad83ea855c3ad
-rgb8                67bfdd4fa88b1ab9be876f42dfc75683
-rgba                d0ebdf1495bc6b7e9d3bfbe2813a9d16
-rgba64be            963f5e716b6de4cacf06c3ca9d02bee0
-rgba64le            b333503ba90d51d0cd21ff7e60acd492
-uyvy422             a6a52504a16f09b8f2ec2405bc8190b5
-xyz12be             9d904fb640dd024e668acb9dc7b3f11f
-xyz12le             7f93c7d2981f1976108e941afa1363f8
-yuv410p             3feb55b1e2a385b488c82e808a12587b
-yuv411p             ab3dd8e6cf1452afe2d2e976e4726370
-yuv420p             52e26ad198368e2326bef97cdfa6a2bb
-yuv420p10be         04353bfc21e9b88cd7776e83be756742
-yuv420p10le         3f8e7167dbd12976c6ee516b8c952363
-yuv420p12be         b058ac076c8a5fe522b9fd9b8422054e
-yuv420p12le         ad0bf28e69eeb14eac5d8f9ea8b801f1
-yuv420p14be         c7a435d42f07928332ecb21a7d96ad7a
-yuv420p14le         5507e8db4e58c9517012686a7408996b
-yuv420p16be         5241d64e9fa2fd6590fd23ea0e8a6f90
-yuv420p16le         78da606f761a4fb62fdac05aa5092742
-yuv420p9be          e4bcaf5d6a7030f950b08501327f6175
-yuv420p9le          bbf80e57389578be66d4a7a12335a613
-yuv422p             e461a21995da361b88202339a2ebb879
-yuv422p10be         a3e13070215f5a016ac9bae7e7115417
-yuv422p10le         8e9e3d9adc8fdb8a0a03d79bdc31eefe
-yuv422p12be         6a2aca2ea007534e729203641a82c3a3
-yuv422p12le         aef072b55c6e9df8fd9f398d79f864df
-yuv422p14be         34e5f31372c0fdb4d77ccb7fd7bddb2f
-yuv422p14le         c2c50fbea0cff7edad5c5e907380cbad
-yuv422p16be         55cfed8fa610f82b6625e16871dab235
-yuv422p16le         e2488df0f22987fe7ed12a5ef2adf835
-yuv422p9be          80fcdd7fd9cdd79632104dcc32f78b4b
-yuv422p9le          e0ec9f94c875297ee5d0546274df40e9
-yuv440p             f8e80596babcdb94378ec8bebf2dd46d
-yuv444p             572bad9e12ed53e242658fa613412279
-yuv444p10be         c5304f086afc4624d4fffb66a3cf3cb8
-yuv444p10le         d1754974b936f74028752d49413d30aa
-yuv444p12be         7ec8fd2d7986d6e923dfed572589e643
-yuv444p12le         79d0e287e2171a53cf4f285c0d1e83ef
-yuv444p14be         be021957cd819ca3146f3247138ccae9
-yuv444p14le         bac0b0c70bcf72272d724f0cd1ac411e
-yuv444p16be         3a67c28325978db734ba03b1828c15da
-yuv444p16le         c6dc275a4277fd3c65535253bb298263
-yuv444p9be          f47357cdd775fc399aeab3ae58712fb9
-yuv444p9le          e29799ecb6fac9f5b6d85bc34d248d4b
-yuva420p            82ab09bb7a3a24bf95aeb3fa9d939847
-yuva420p10be        f4559039e99ecf74a58e7063b1e7c5d3
-yuva420p10le        32b3858b01be5bfe2579dadd1be3ab12
-yuva420p16be        c580495d34c6ac6e3e3b81772a0f3070
-yuva420p16le        1c49deeafb8f81e9186f3906c9b1a670
-yuva420p9be         a788d7cc6ad67ad52619a08da126569a
-yuva420p9le         c1579a5c015908f26b76480d82f6a648
-yuva422p            c162b37ce05360c47b2a2224ea0748ad
-yuva422p10be        b7c0adc12a8602ab8b40b611785cc18c
-yuva422p10le        97f91d820f8ba642a3f9ae0901d03826
-yuva422p16be        1c61492076be33404894c1d3ec578d87
-yuva422p16le        1c085c9479a57eea35e74c264c947d73
-yuva422p9be         271c6cc091052731373ef5313bc76435
-yuva422p9le         b8c2e963ac35371e8aa6a05d5c252b37
-yuva444p            4a85f1f17e95829cd53c9a28928fd8eb
-yuva444p10be        04c1026f4328ebf24bd7906291b33464
-yuva444p10le        3e8ea3b211bd7ac99cb96ebf71d0e75a
-yuva444p16be        ac5c17adeb0ef6730a0de1dbd1d14a1a
-yuva444p16le        41f1a82eb686d7191bdb00206f723247
-yuva444p9be         413d01385a8b008031b2ab3ef0b9eff4
-yuva444p9le         33ede0bd20bfd85489d266ac81d035d6
-yuvj420p            762dc6a157d0bee72da3e3d852668aef
-yuvj422p            8cec955c1c62b00b6798361ef82962b7
-yuvj440p            7b469444994d8b52766ee461bcb795ea
-yuvj444p            b395162325af489c465a3e6a31fbb0e7
-yuyv422             1efb17cd0a48d2e956fd574ea6f412e7
+0bgr                8f02dd29f5122cf16116c1754bd82620
+0rgb                5fdc57cbedb281fd28b3dd4fbc6afe5c
+abgr                598c407cf292bd2c2c8e1d257e924f02
+argb                316ab0a2120109505bd5ecdd7adab27b
+bgr0                e9e9918e1b6d746aff9bf33ebfa65fcc
+bgr24               f8eece1660181e5fc2be02cda4645eb5
+bgr444be            a6819368ee0b766fa4d1a0800b54e3eb
+bgr444le            27a3d38761abe81f6c5858cbc8ced64f
+bgr48be             3f9548a21312376694865c8b3142663d
+bgr48le             4910f8f2d4229e757feb7799ae6e393f
+bgr4_byte           a2df110beb2b2c258145d918beea6017
+bgr555be            53373625136cf70d726766451c37456d
+bgr555le            4288a0fb72ad93e9650b7f6354b71e2e
+bgr565be            9cc907611f581daa25a58887664d49e9
+bgr565le            4b900357ee4b18bae5d57ba4610f3330
+bgr8                b907a1e4f0e702663f512d1b6c76b512
+bgra                7b48e5e3deb291f1ae43572b867ce9bf
+gbrap               86f059f6b29c8e67ef7ed912e156c681
+gbrp                9a1434227796b81b651fe29f13e931f8
+gbrp10be            f4897e33c29b45883b219c693c534263
+gbrp10le            857c1ed6e7c9a6f8d47f40348abfba13
+gbrp12be            31da7c09d84047eaa6c28a2ed27430d3
+gbrp12le            1b9ebb9faaf1a05cfac42a7cfd4ca02a
+gbrp14be            01bef4c57efad08594cc411796cb5ee5
+gbrp14le            b2c491b2de1e305c6d526aa3c40d6b92
+gbrp9be             e108293b2ab008daeebb2ffec2676b1f
+gbrp9le             2a8b3fd457d0556955c4e5b9b6165fe3
+gray                8f7b95a2aaa98284206da5e44037195f
+gray16be            73b1c09eb280a76dcf17cda357179e74
+gray16le            35c45ea9708396650bd8b6b0df2540a1
+monob               cfd434e9abb390fedad90ff7c9716fae
+monow               5125ce57f2473eb3e80fd53c3efb6270
+nv12                723ddfdab0d6b473df5e7a958ae77f7c
+nv21                22045c946cc638e02951e8d59e773857
+pal8                bb90756c701ec75d139cc35481c189fb
+rgb0                ca1587e81acb72b8a3cc5a0235e3a6d0
+rgb24               fe63655e0bbcee3e07dc7c5b1b038711
+rgb444be            46f3a94171d85180dcf5a85d6db93bc0
+rgb444le            4b2e7d6618217956fcf8fada04082892
+rgb48be             f1377d19bf372a18cbe955300ce4d7bc
+rgb48le             460f1dfc2c3e58f666a2a0309a9aa7d0
+rgb4_byte           d5be9d749549a75e7953dabee245ef4d
+rgb555be            4a55f04b1b59c8965b382b06c2e1d952
+rgb555le            1de3fbaca98f8589c60bc7eb90f5dce0
+rgb565be            b6ccf9e4e53cf12dcf0104ca658fd455
+rgb565le            2bae32fdd905522a82ab25c32c4f6cc6
+rgb8                1282985c3302a303474f828a89c3a6c3
+rgba                6dd2f7b1853c40c340469c6b5e0d9b0b
+rgba64be            844338745eeb6f551afeae1ef03ff93f
+rgba64le            d261b937410351c6aa01c21f4621134b
+uyvy422             453c61fee26e364981929332c7bc0016
+xyz12be             4f83bb03997fe9708bfc51f11f0ff915
+xyz12le             58ce043ecbdd7790496e5a89efd0c4e4
+yuv410p             2581435cb24fc1e542c6d1485775ca96
+yuv411p             211594717ac76db3f7a7774f793b68ca
+yuv420p             72430bd2d44f5b2bcfb2dd8cbde376b3
+yuv420p10be         36b81e4512c1ace1f1b3763591cd352a
+yuv420p10le         a22d09f0b812b375e0b4fb6493b595ce
+yuv420p12be         8e0328cec1a9d084274ce2efb238ed4e
+yuv420p12le         8f0d09939f6c19b02a2a4bd13585e2f2
+yuv420p14be         b4993ae5f136087a886adb0e058b0957
+yuv420p14le         3e07d678e9928a68174aba0273692365
+yuv420p16be         581e78ba7bfc6ed3cc47b690996db8d1
+yuv420p16le         9530fde18ae86d08ab754684d8f5927a
+yuv420p9be          bb384a9d56c1a84989b4e1c16309d6e4
+yuv420p9le          2f7267ccee855b195ca61c781447decd
+yuv422p             5e6d82c62310b1a46426a9c7c9ca1658
+yuv422p10be         8355192dd1836d15860053c99b5389c5
+yuv422p10le         cdda5c21c9720cf93e63f53ecfea9bc1
+yuv422p12be         bafa32e99e1fbc63db25b95f49769ddd
+yuv422p12le         4087ffb96d40aaea51b68c1028d1c08d
+yuv422p14be         843e5ba1a8c68a49fdad67643364012a
+yuv422p14le         94bc990b189104ae262fe025cfad5fe3
+yuv422p16be         df7887a1aeecadd45d222128e3450aa5
+yuv422p16le         b826ce6abdbd51dd6587bb7fb9ad9068
+yuv422p9be          6c1350a75ec262df917411e8e05bb842
+yuv422p9le          cbcf2015d7200f54a65822aab978062e
+yuv440p             93d88e2fc6df75863b08189a604a842f
+yuv444p             f80ab676275d73db79f536088e05dcac
+yuv444p10be         ed7b1712fd7d3a7170f8af7a6297bc9e
+yuv444p10le         c438f38d60de6d8b6b2866f02f562cb1
+yuv444p12be         06e5b946f2af2629048fe38ce564a2ad
+yuv444p12le         56b5a6d4d04381e340abcfcf611af764
+yuv444p14be         2a8d3d6dd767f83732fd02b798490f30
+yuv444p14le         67a20875150eebbe8316e13b7ae46b75
+yuv444p16be         4d706952f50302d5196442f7c0c6d094
+yuv444p16le         a448dee3ec306888117f1d318b670553
+yuv444p9be          eb746bfa3ad4d7e6c9bf8ecd9ff1e276
+yuv444p9le          f802d43f94564bfdc3f9c03b2716b005
+yuva420p            091aeed45a8e519834d93cb1444e8bf0
+yuva420p10be        1e803b8c6bcb07530c21c44108b7e588
+yuva420p10le        6276bc3fb2243cfae3230ee4d9d02ab4
+yuva420p16be        6c23c713d9fc6fbd381c8db3d9d7498f
+yuva420p16le        08d373b6e170649c2948d2c0c4b3b4d1
+yuva420p9be         80ff4135869dd6eccb7fc6b679976c5d
+yuva420p9le         c06e21e65d30e8d2a34358eb3a9dc78a
+yuva422p            30d4aaed4634d6973b46f481319cbb65
+yuva422p10be        76931950566bb882d5726cba0c1c4e8c
+yuva422p10le        56b3edc64b1c4d2e90a34f3830f7b4b7
+yuva422p16be        e816a83dfae0825334d887882745fb04
+yuva422p16le        3053eabb5971ee3be6662b971827571d
+yuva422p9be         8a46fc0b5e32740b71cc67906312532c
+yuva422p9le         6e6574c14e9f6cacc658bea2f3a09f21
+yuva444p            525f606ed198f20e1342aad6acfc1dd0
+yuva444p10be        d92b70183c2187980ce8865785c87d5d
+yuva444p10le        ab91eafeef848c3f93dd3cc2e47d5aaf
+yuva444p16be        d6ae86c0ec058aef39caf6df8e5f271b
+yuva444p16le        0537073bc630cfdad338a8326369dd4e
+yuva444p9be         340508fd0d805d193ce4fc34b035bf89
+yuva444p9le         73ed8f07c7616d66d115b80cbc686442
+yuvj420p            c03e4613b1b16ffd5a5c89ea5a3a2cf5
+yuvj422p            68b552c386e82461788698e50260e94e
+yuvj440p            a6fcd007259b0b1097fb4c444787df1f
+yuvj444p            28405142b6fd43bfbbbae36ea21132bc
+yuyv422             94afe5225ed9c1226dfd01692a7160fe
diff --git a/tests/ref/fate/filter-pixfmts-hflip b/tests/ref/fate/filter-pixfmts-hflip
index 84a3519..8705aae 100644
--- a/tests/ref/fate/filter-pixfmts-hflip
+++ b/tests/ref/fate/filter-pixfmts-hflip
@@ -1,111 +1,111 @@
-0bgr                03d8a8920dbb408218376baee8665649
-0rgb                6ee5f3b85ec38953df0762ddd0bdf561
-abgr                8ab842e280c8b31f66450e8951dfedfa
-argb                cdb6aa47939d49c0ff72537bfc8c82e0
-bgr0                1b0b59382ddbbf045be6b160b7df5881
-bgr24               5b64fd60e2050946b50da1f4945127fb
-bgr444be            b52c1b9d9dc02cb46c04e80d97139e60
-bgr444le            48172797fa65a25c0ad30ddc7e8f5bcb
-bgr48be             58e292c33eb60708171c3393a5700615
-bgr48le             e1be8e6bfe26acdee258e76329d2f03d
-bgr4_byte           af34e1158edfbc8c6929365d651a9549
-bgr555be            c82d7877f7ef25ee1154d05b240cf54c
-bgr555le            b7a4e2c66807a82bd132dfcf8540bfb5
-bgr565be            3b464a00c619410eac7bdea9c96faf60
-bgr565le            4b4c708d4ad222f41734dce68e9d48b6
-bgr8                ad1db7a17cdfab2ede6f22c2415a3fbf
-bgra                85fa06ad9fd156c3179a647a2e741b60
-gbrap               5fbf0a36ee9486161a862a4b2d6f8242
-gbrp                95fde5b6a767cf8d2679a4a6d18fdbe7
-gbrp10be            5ddc834dbf2198f6b1af36c66b185e2c
-gbrp10le            04814cbb805b66e8e085c7db4a548deb
-gbrp12be            8184b00342421c366764c091e9174260
-gbrp12le            1519cba0b6ddd7ee3df7c97670f1cbd5
-gbrp14be            10872df155aab67a13b98ad162908896
-gbrp14le            5fd363517fca5ef0ac725d1c047f2e75
-gbrp9be             187c83736d4fe1d7c8491609debc8f86
-gbrp9le             5476b0787da2d928d98d4cda60537fb5
-gray                35b50e78d5d27255f43e642a404dd708
-gray16be            d206a080739d89cb7dc0009ad4082ed4
-gray16le            7ebcfd9401ba85e584230de8fc02986d
-nv12                719adbc47fa74e92f83150921917483f
-nv21                9c833b3ce53539d270e1f21e4319797b
-pal8                19c8735b23feeed18ec2d37913a5f3f8
-rgb0                ce26538ebe1ec09dec3dde5e4d8a1405
-rgb24               c2752464ac2b549268e9638745dba857
-rgb444be            85586541cc7eb12e05ff7162b12304c2
-rgb444le            670da20b82403e00609bf2c1f5611223
-rgb48be             a9ee2c9946d8d54dba60cebbdbe43886
-rgb48le             28e2cf59b789249dbd0859f58f4ae55d
-rgb4_byte           31dca70b4f3537afa9840cea1b062acf
-rgb555be            c010cc746ce9483b47387ba846670179
-rgb555le            a768de014e0908dfa886108da376b2e5
-rgb565be            6727e71974c8e5dad157925c10ee1532
-rgb565le            b0a2b4817775289cfc415bb951f9ae0c
-rgb8                22fdbd14ce296c1afa9bb4a6ea09b3fe
-rgba                a37789c4df73c3bd8648ad1fe9d3f991
-rgba64be            d5562166a3fef8a65c15898b8e792300
-rgba64le            babf9eb683b2886289562cf465da6738
-xyz12be             4738d2cb5321376d5eed70930f47a953
-xyz12le             51288f3440c8584406b332545d69c5a9
-yuv410p             a1280c2b9b562dba3c2d35a1e5fc4b23
-yuv411p             6bf10756ac5c7841db63a97106ff911b
-yuv420p             45f4a06481f2cd8e28fb29c7c151e110
-yuv420p10be         ddfef981d53de0f808173bb267203ca6
-yuv420p10le         966b8c55de4d8a12bdc8db3d9ad3ae6d
-yuv420p12be         735da68f3ac8380a993f46a460c02432
-yuv420p12le         3a71ae4e6a7b106b3e1532c6d148fa61
-yuv420p14be         d921d7b364d0a7bde183ba717a77f1d4
-yuv420p14le         ab410b636acd41234cc396967f66c859
-yuv420p16be         cde798cad650bcb087943442a399c8ea
-yuv420p16le         b7124c56605eeb12f3d13287ddc77f3a
-yuv420p9be          b0f6044fb40cf0ef41cc536311566cc6
-yuv420p9le          086f9320167a755faed18c0a3a36c0e6
-yuv422p             c3982fbb57e796881efedae11b8346de
-yuv422p10be         a3db158525c7794fd06b4d20e558e64d
-yuv422p10le         31cf611e502584fcf846d3ba2583028a
-yuv422p12be         8cafc31b579b168a71f7093a161b8023
-yuv422p12le         be83ffe86cb99ecfef76affb2b73d5b2
-yuv422p14be         96870c66856e2669095ccdea034558ab
-yuv422p14le         46dcb0160aa8ada4025b365873a78d6c
-yuv422p16be         4b96fb571e686185d96b4a97e3413d5f
-yuv422p16le         503bc49bace58dae1767173746a16056
-yuv422p9be          0ffc1bfde0b679e6e7b7e0c8c84e686a
-yuv422p9le          3c061cdb9f302c8f8806b409bd2b0aca
-yuv440p             44f78792c5766ab896fbe0d718976946
-yuv444p             a36b8ce12de27971b52e93267fe6583f
-yuv444p10be         90e94770d3eb4693b09925f549d7311e
-yuv444p10le         8a26fba7c2223d72cd5ad00c1941948f
-yuv444p12be         24bdad5d7ddca614da7d105e931c49e8
-yuv444p12le         a996cb8a1c062d2238b58a5db9b990dd
-yuv444p14be         a9f7dd66b6f54bbdbf176894b01d7422
-yuv444p14le         6204f763af4a0d26f41ddca1d1ae9741
-yuv444p16be         9370058632b2582ab7a21725ec4f4e1d
-yuv444p16le         0674c63a0e8debbfc010a2730da66a13
-yuv444p9be          b1327e7ca47a950ee99bd2a7e05f56d0
-yuv444p9le          2f89171f0470eefa9f89fdc43874dc1d
-yuva420p            a62cf0a72905b54a7ef10fcaeff723bc
-yuva420p10be        602b6a8c0b16ce2b55ddcae443e75dac
-yuva420p10le        1c086d4ee0619ac65cb5a69481b981ca
-yuva420p16be        51c45f4227ba86159f46c65783d64cef
-yuva420p16le        e87030429a965f2ddc8f07ca49014573
-yuva420p9be         a48309403dc66dc5242cac19cc7598e5
-yuva420p9le         ae2dcb326eb3a2ff170f498077ae5624
-yuva422p            6e7c30ea252a41b70d26250f624ab284
-yuva422p10be        e0ee8576f9328ca4ec174a8c084f2235
-yuva422p10le        b489c203b9b0ebc42adb794bb10a3c4f
-yuva422p16be        550b1d2ecbc3d5f50041816090d62a02
-yuva422p16le        73a426eb63685247ea037389595cb43a
-yuva422p9be         c65251c422cd3c81ff5d97d207312292
-yuva422p9le         3405924773c6bdc42325a8a1ff658595
-yuva444p            e32ba5dcb01ba848e7dead04112b1aa5
-yuva444p10be        97549388c7f9fbc1425b1663b46c43d1
-yuva444p10le        0b88bed194caea2fa06f458034b1b90e
-yuva444p16be        2dd545e4ddb0f134322eee1c1de4c2ff
-yuva444p16le        1e144cc9ea16429c1655c67e2f12f5c9
-yuva444p9be         e37fa0743bf720fbe31605714d7f7ad6
-yuva444p9le         9bd4083c1384a55e91f02630161dc4c3
-yuvj420p            86370b945c5d19d809ee92386d476a53
-yuvj422p            d3bda08bd4b92a256a8ec8432c4767d1
-yuvj440p            dbae7083c82f20a38fc55e6f8bc374bc
-yuvj444p            55ce75c7bd172b28703e82f64186e6b6
+0bgr                344f9f59a780600971886e786f07cee2
+0rgb                4d3fb1cddecc0edf1efb3c906ae85fab
+abgr                7e8958dbcb3d9510c2ad69acf5e73081
+argb                79dd7d7e2836bc390252974633755325
+bgr0                1765da106eda9122134fc455f7f7cc81
+bgr24               a24661839af2b3eb815d9c4acc74ea9b
+bgr444be            ac6db250c9d2fb68195259e011026f98
+bgr444le            273fe38daa95f850128bbc5cea316dfc
+bgr48be             b9a3b1623bdd3680167e51e0c8cf3266
+bgr48le             e618e39f4ec5ef9f61238fbf2f089a4e
+bgr4_byte           81285a6e649d0562de091a0390c5f798
+bgr555be            3dfb4e8d8a1529c65e5b624e261a1adb
+bgr555le            70ff6f4a552cd8d3bb1c5d2a3c094497
+bgr565be            83e6cb97b22a6117d1677fc1f778441c
+bgr565le            e2f07a27288a41952f49523dc35dcf29
+bgr8                98859bd92f400abc2b7d346dd69c9841
+bgra                3c5d69b43c31c2a1fdbb25eb648baf63
+gbrap               fe689cd076ed3e524c8b4a0fa59876a1
+gbrp                1a3136c5bd4e2d5339565f20884c6968
+gbrp10be            d817e4daef1f14f87469d796008e12e7
+gbrp10le            8781281a2699f082f92bca3a5a18de94
+gbrp12be            903e0894e72466f82e8ab7eb1e973a3d
+gbrp12le            cb6dd82a7b4096cff51a49152cd41384
+gbrp14be            4f6855d4df02c1889fd84f8b610ecf76
+gbrp14le            32504e4228bb89e677f2fc01097f7ea1
+gbrp9be             fb6d7e6f3390b94460814e485ad78e4b
+gbrp9le             13fe3b7192256017e304283d725f1895
+gray                67c6ef80f22c2c3b78c8893ac39b0e85
+gray16be            ff7a3984dd0ac77fda2548b7996574c8
+gray16le            01bcd11c9b0a56c64cc4864d47864ae3
+nv12                67023159b2edd240a292cff78b4a7de4
+nv21                5d53fef393bcf830aaf798507b4c07e1
+pal8                f15b4db17c29b20f93c9cf63702b379f
+rgb0                5201aa092e09f7f88b54d93eb800f2ce
+rgb24               60bb6368327d039486dee456a09cd139
+rgb444be            8a644f26d98ef88d6082eebb43ed57e3
+rgb444le            c014022e4682968176bed877de000d66
+rgb48be             ec2f9b0701ed70b00c44185b9f426166
+rgb48le             7b0112b4137cacfb04862171ff94112f
+rgb4_byte           a827ac55c950f439f05672ec286922c2
+rgb555be            a71d753e7ec0c6ebddf7682a8d456818
+rgb555le            7963e05d7efcb752752592200058cd45
+rgb565be            528e353d0222c5b94763dbf11d52ddf3
+rgb565le            cb1d78ed00a34b8e4455e26e1faaaa6a
+rgb8                926ae782b09c30d042e7f67522654b53
+rgba                ca8e973bfe800d3de5d3fd3ecf240d5d
+rgba64be            0fdd76b06477b5cb96980c24ff19df53
+rgba64le            1f12497c9c4d011cc9218942df83a1ce
+xyz12be             ac034f0ee376eefd11264fe9511fb0df
+xyz12le             aba649a311bcb1810754598d65e97a7d
+yuv410p             18419f24a77132e1aa3f1015c8cdb533
+yuv411p             77118f97903e408d636104f936b3983f
+yuv420p             c998d583036c16197377a8584c8e07f2
+yuv420p10be         e48227c1f641a75e3ce360bd47c1c9c7
+yuv420p10le         28a74944d735cbb022a6936654a8433d
+yuv420p12be         080d0905efabfdd9fdf613d3df31fb74
+yuv420p12le         435cf876ec74c2111dadaa7805f13a61
+yuv420p14be         fa227a96cd65ba6693adf0d56ff5eb40
+yuv420p14le         20279c1064b8c551fe80b10947cd71f7
+yuv420p16be         80f02e8417ff15f7c4dc53c881abd494
+yuv420p16le         08a89c0f3d11d5d137220f95151a6dae
+yuv420p9be          81aed456d68d836e8cb011002a3af0cc
+yuv420p9le          5fc99f6ea4610364ada7d6c550bdd0ac
+yuv422p             aed3faad37449c8d7a630106c8375858
+yuv422p10be         72d4a415903559c6874159c7e81bcea7
+yuv422p10le         947e0a3ce9cca75e329ac332fc5678fc
+yuv422p12be         2bfa6723bd9d02cfdf3a74b9c5d9a363
+yuv422p12le         0490af1dcdb5198465118f39301a1f3e
+yuv422p14be         ff626efaa6a4a7156fd8be474845a5b6
+yuv422p14le         ea4606644ff1845d9144200d8c017747
+yuv422p16be         94edcb7132be3856db4390af4d343974
+yuv422p16le         2fef950cf3231891c3a26e35b86b9134
+yuv422p9be          f56736c46d4d5ee18381eb051889444e
+yuv422p9le          63b206f6f09034875104b0f70d6914cb
+yuv440p             84c27f5bfde4abae95c2304b4348b942
+yuv444p             347b7caeac50ed3fe23e50be2b3880d1
+yuv444p10be         395ea684d3e71c7b86c3cac8ffbd0f01
+yuv444p10le         845afa9f8322e13537e24c31694467b5
+yuv444p12be         54c1fea266f503c7555449ea9843a369
+yuv444p12le         1c1e3a1000592823ed7055dd91066dd8
+yuv444p14be         8f9af210c9bea8f13afd8992177c0b1f
+yuv444p14le         bb6e18d2b51789a940bd603c5681ffb9
+yuv444p16be         27d439713dd36fdc3d67a0c90d672ea3
+yuv444p16le         3a9d284fbeb0b3283e379341e3b680a6
+yuv444p9be          0ed72ea1baf770c1b4c165a334c1c393
+yuv444p9le          cdb8453bb75b0cf73712a23c4290e85a
+yuva420p            edd4220ae7314bd2e04df2905b305dc5
+yuva420p10be        5c14068e39e5c7e404a7522f29b73835
+yuva420p10le        f0f36c23cf5f3faf5d705bbb6bc3c1c4
+yuva420p16be        3a5302c89df1b8703c2e2ea65eef4403
+yuva420p16le        800dce6c2518a44485fa813f6de5d7d3
+yuva420p9be         f5053f8fa05f7bc75c6ecb8b2762c7d3
+yuva420p9le         ff1adfae49b94601abf99c8c1e44c642
+yuva422p            c8081e9c8b06b2521af0310ff84e2f67
+yuva422p10be        a95869c14e1a3756b2a169613c531208
+yuva422p10le        345cb7a43a270acc4d17fbba69a662fd
+yuva422p16be        05937f58f0cf7c0e26765948e8845f48
+yuva422p16le        5806c2591e2c7ed1e017e78537a2e57d
+yuva422p9be         9d3054e3b46e8db70218165bac8af954
+yuva422p9le         923eb74271de61061f82421a38d4e6a9
+yuva444p            e04d328e494b2f6e9296972fbbe1bf8a
+yuva444p10be        e75d8d0d2b5bb029c5be4ab535adec42
+yuva444p10le        76d2769976b2c4a4c1037017301c2c8d
+yuva444p16be        f28aa9b197f7e759887a445d57df114d
+yuva444p16le        b9b4d70f2be3d2631d16042d53091899
+yuva444p9be         cdd2c5110d5a666a8d01e576d8881bd6
+yuva444p9le         b4cc2daf93fdcbb6caf43ba144333bc9
+yuvj420p            a6c49c572f08e49b40d81113fcdeea18
+yuvj422p            eb6f62e60ca24521754223f85150074e
+yuvj440p            818b83a48d0b2c33455a1c91c6eaa331
+yuvj444p            150c41392e3047864b05a1048b6a5ec4
diff --git a/tests/ref/fate/filter-pixfmts-il b/tests/ref/fate/filter-pixfmts-il
index 5e7dc5f..36afae4 100644
--- a/tests/ref/fate/filter-pixfmts-il
+++ b/tests/ref/fate/filter-pixfmts-il
@@ -1,114 +1,114 @@
-0bgr                b85afb77d7c3198ad7ff9ca5cceb970b
-0rgb                7ca2257e526092027c67311e273767bf
-abgr                4df961441de91db58f5a8a80603de585
-argb                db1e1e487a489674fbf260f56ac2705d
-bgr0                4335fb9738bb6ca5d6d39d738b934bbd
-bgr24               7446301030e6a26853aca2036309fa8a
-bgr444be            f80a44936b1295d14b0bac1db624d02e
-bgr444le            cfc1511a390f7ca18516540c31c097c3
-bgr48be             0b1084ac65d328552bd62b4e819ab91d
-bgr48le             04e4f510b6d586dc9082af43a59c0ede
-bgr4_byte           2dfd29e0705fbb2b590458028cb2939d
-bgr555be            5622aa808b389095658a203970bd6028
-bgr555le            6a5ad1e35cbacc45aeb9fd593c6f61ba
-bgr565be            5ff7a76d9f58800e38f21a84d88c7129
-bgr565le            485b2b6f589a936d6fb12d0033809dca
-bgr8                d7fae34b87a67556c273585d9140ff96
-bgra                7b4abc57f0ee99a0226e9bfd5d25cf9e
-gbrap               583131faa19f062f6523321da52066de
-gbrp                b85cfeb0e34559ffb4b2e4f1209a3712
-gbrp10be            5487219fee31607d6b19aa0d302fb42f
-gbrp10le            7975e53a9e03a8acfa877334ae5e9d1d
-gbrp12be            34bd529e3b085e813e7471e5a5951423
-gbrp12le            14716b36ee4043158f24b49b6a723213
-gbrp14be            426ac36ea666041afd39f842dbdd683c
-gbrp14le            e0823115de7b2e44c25e1c59dd204ac1
-gbrp9be             0db6ce2fe6a7fc2d5c7d6d4f0decd112
-gbrp9le             00a1a9fe310753a28c0512568a317c67
-gray                4dd4ea934fdbf689fdcf665856c402ff
-gray16be            cd9c1367dabd2f1858ae4f31693e622f
-gray16le            4ef774c282280d7ed4780690df6e5cb4
-monob               07cffe7f5f25f39c3aa38866303791c6
-monow               f2d1bdb939813a49abd6348ecfbb2703
-nv12                6847b3f7141ca1e3c40d3a494f0e13cb
-nv21                e7a8e94001151e2bdd68a0ee7e4ac544
-rgb0                0d1dfb1edc9b4a7ad28dde9a1b0bee23
-rgb24               15781da8615974ed12b18f7439a25d6f
-rgb444be            19bc79cdbafee996eb48feea597d761e
-rgb444le            de61209ae25f005d357b68e0836c4739
-rgb48be             fa24415175a0759ac49949a948820f27
-rgb48le             82d5d55b03dfd9a74f0cc087793cdfc6
-rgb4_byte           7ec4d55df1bfb02ffa9956d85ade89f7
-rgb555be            34ef691ed2b6d22136c086d37bb0fefd
-rgb555le            04b20c057eed7dcaee1858d45500ba54
-rgb565be            077604cc5dc91008b018264db73c8f0c
-rgb565le            a97549f25e63dd0dd404db41bbe05c07
-rgb8                a35d3c3b9b87261c7417076a8b18fdb8
-rgba                8ca9c8db589615ebbaa964be4ce62d08
-rgba64be            ca82ddd3f4182c21f8708cbe5368b57a
-rgba64le            53236255cdc370f549484008f61c04e8
-uyvy422             8be40aded4b407ff66305911ba5ce2ce
-xyz12be             1cbb1f72c6875934e66f50f499a62cc3
-xyz12le             ba8c6eab49e58eace392ef0aeedbf677
-yuv410p             92112d85ba4f74cbd3044945c0f33402
-yuv411p             b6b22000e5275c92baf5afc417c32a70
-yuv420p             fca7fbbff753612a718ee13e1dfe2af2
-yuv420p10be         15c655b60ff5d212657e0620ed69fadf
-yuv420p10le         c9c71c78e00034af1b0fdcfe68615c6f
-yuv420p12be         a5377d262bd05698b2bbcfc8dd2b15ea
-yuv420p12le         7d076ea30985ecf2eb590041a45f2cc6
-yuv420p14be         7a33da52fed0ffdc7f90ebcb677dc155
-yuv420p14le         f431bf16d8204fb919ba0abf4ea54288
-yuv420p16be         254b78ba00a928d22cba98380546fe9d
-yuv420p16le         e6c182b47c3b57814d28248dbbaaea35
-yuv420p9be          b1eafb2e864fa86c08684d8dd4628535
-yuv420p9le          f07b2282c50f8eb6f138029d748eadfe
-yuv422p             ffc2693b9e1d39b59aabb9a7e1dffe05
-yuv422p10be         e83db7f2f485bea0ea808f22ffcdb7bc
-yuv422p10le         bfd8fbeb5d89ba3904514d835aa6947d
-yuv422p12be         5f31197795eda7998a0ec813496e57f1
-yuv422p12le         903939621d457a034c0181032164b3c1
-yuv422p14be         8d08189d27d3a97fbecec7edd690c691
-yuv422p14le         01b717875b85707185acd48ac75dd6f9
-yuv422p16be         0feb24228cc5ec3963dc0bde913d14be
-yuv422p16le         0d6fe6924f14e77b2fef02e7ad1c47c8
-yuv422p9be          003b2032a30281845dfb6f9a7ebccc71
-yuv422p9le          427c505eb27af0059aeafffd1a858189
-yuv440p             23b55dcf6c876f0c53cf46960b13e6a3
-yuv444p             7730197c0570d46493d50bc163244754
-yuv444p10be         74b13f67114ac0f92af7bb427d6335ae
-yuv444p10le         9ab09ae4acc46a2fa04fdbde1373a9f9
-yuv444p12be         76320bae89f10947e692b6ce1fa22b93
-yuv444p12le         a79e40c464df640ba97c13456616b25c
-yuv444p14be         de7f737796d1de38a8227511b91d3378
-yuv444p14le         7c27d1b7846beb3565ce086c7df1131f
-yuv444p16be         1d51af32b9e077bf1ad750c6a1787b2c
-yuv444p16le         94a936f571861f25f2539ba099cafd56
-yuv444p9be          384dd0aa411d00b2deb2363a9f345db9
-yuv444p9le          77758bad5ca383b3a698fdcb38a85f20
-yuva420p            24337fc952d7f9c633756549a7b94146
-yuva420p10be        f586830e7605b5bbc307f6f5c532958c
-yuva420p10le        7bc9e81d18021dbb7c96ceeef4a18090
-yuva420p16be        54362c9d57d26ead878b9eb05a523785
-yuva420p16le        af55baa12d11c0ac6c9065df730d81ef
-yuva420p9be         a290f1b1e1fe18ac22fed3535562ff98
-yuva420p9le         89d0fa6679548757044c0e1971c1cbfd
-yuva422p            e3fe9f137a37e1b3817fe8579d2d2acc
-yuva422p10be        4aa77b690225054f9b5c7ce7c66950e8
-yuva422p10le        e7c6538112fc1d9539f4635dedf52eae
-yuva422p16be        0e5a1b0b52d42f4f07d7e63dbe4ab83b
-yuva422p16le        5b3a1219d7224650929e6272693f1cd3
-yuva422p9be         9d6f936fa9666e2bcbada5188e2a4942
-yuva422p9le         0f97c4d357e103e7263705b918a37824
-yuva444p            fe4dbba35f355d68b6c254c06db1cbad
-yuva444p10be        3926a29639556a11acc95888e29517d6
-yuva444p10le        1b68842a69b3b9d5a23854217b410c69
-yuva444p16be        45ec67a0828aedf18f1ed54fcfb0ff83
-yuva444p16le        7b8e5963f19e6fe7fd409b34af014489
-yuva444p9be         6d2905a9e61ce4ff5b3d7b972a7333eb
-yuva444p9le         e2ffdb1d867a1b78f3bd38d600b17193
-yuvj420p            d1a8d9cf6b4035ac5d6439ab2754b09d
-yuvj422p            d20df6138cdf62d7f3b93eb1277827d6
-yuvj440p            17a24a86f279febaebb66d65509088e8
-yuvj444p            326bb83d1aec23d941894a1324984c56
-yuyv422             f9121733169ca5437e95e7600a7c5aea
+0bgr                db6cab805d36c6f91040c047bf47af8f
+0rgb                6a6267d16f3bd330a31e46965e182e2c
+abgr                b941cbec46a202e4703275fd1f149aa8
+argb                ad72eb61e3d828e1cf9724e2f71e63c2
+bgr0                0de7d486543fd53e4ca305643dd12588
+bgr24               b662205930a03f0744358a3ca43c9d88
+bgr444be            97bdd3f1e53d1fc8dae2b2779bf941b4
+bgr444le            a5c878ac43cbe6617507bd22fc7e4dbf
+bgr48be             0de439af19e1a36fa600cef2dd02c8b0
+bgr48le             6d8e767cff7e611b9ce8e4677e3dc4fb
+bgr4_byte           1aff4c007f19c31021ad4e71455aead9
+bgr555be            baf4c283229cd543e16c30052b5bc826
+bgr555le            4e4fcca205c2b4006e4f67e8a7a00f23
+bgr565be            c6fa7006bde060d23fdced2bfe224512
+bgr565le            344cf421323c0b2e53eb461ef9317f56
+bgr8                00385d33841c499e1b5e2a91bcaae5b0
+bgra                b4d24a326c9e4b91b82d676c97de5c4e
+gbrap               6d3e5f1d74524bfd8aae4dfd0d3ab95b
+gbrp                51f649ebbcad56abc57ea9ea0f1a78a4
+gbrp10be            c9a657199c646d1d3f7c6371696feaf0
+gbrp10le            eee288c22a0ccc29222fab7f688ca46e
+gbrp12be            9aaf367fb3bc281db8e4b93062fd58f4
+gbrp12le            99d32e860c6651845cfff2f144492524
+gbrp14be            b424d3ceda94ce1f52d6db82222a9e83
+gbrp14le            017d7117ad957e632ce4cb7e03e32e99
+gbrp9be             2aa94fa7bb909df61f167d7198fc987d
+gbrp9le             3fb816f07a52e715017d10ba2c00c206
+gray                5dd8292e58ba7d147aad1d32fba780bb
+gray16be            9658666ec163c6324a9728d8c68be16a
+gray16le            1206c5e28f9cce079ccc24e2902a17ee
+monob               771731859fa6062d85a4bfc28e8a299e
+monow               ee86c039060902c4a172c969b86cfcad
+nv12                5ffe30cb07254303b5284d74828b7920
+nv21                97d8ae20963be00f97f13055f5ae8f3a
+rgb0                1ae069c5ef8734fee58c91b721c44a3b
+rgb24               8808309ea4ee5eff202525fd80bcf30f
+rgb444be            f8d589f2c9d0d7fbf66e38ee8f898a07
+rgb444le            295337b81e64a4bf568dadb1b8260067
+rgb48be             32c834170a6dd4588bb140365766d218
+rgb48le             8244b0fea8c451f73333c18bf89bf216
+rgb4_byte           30f222b33ebbdbc77bc7b10024030e7a
+rgb555be            f64e19af1a9aebf56f509ea2f84a2749
+rgb555le            48551e3ace05502fdb87c9d5a12e8c40
+rgb565be            38771234674f3c930d7fca21f17a1353
+rgb565le            096d4924bebc0ddbaa7baae0882f15ef
+rgb8                19f607bebf3c27b3b276d058e40cbdff
+rgba                1e5393da3db7d016a397a8d727ed3b00
+rgba64be            b535d945fd0ef91582be34facbab32d6
+rgba64le            b9126a07105508346bd0e4b33b89eb95
+uyvy422             c4559afd56e3c4f1912e9b1b8e525028
+xyz12be             3c32afbefd395eab5d2983e06feeb535
+xyz12le             e52fe56d425df4678d13f76167991313
+yuv410p             bb4c0d32277d08b60fc9bb1930c8edd1
+yuv411p             6f03b033b71cbd877504ec5ba09cc64a
+yuv420p             830f46de924cb6366b815f65db58bc60
+yuv420p10be         b25c1bccb2cf24c97b3c149ba4c91192
+yuv420p10le         fb6a2bf86efcf0ced17498f1c1b07db9
+yuv420p12be         60e7a51712e4d482e9f20793a522b05c
+yuv420p12le         ab819ed918c3b939bbc1052889aa20ae
+yuv420p14be         109a4acc1ea2afe5f4f09dc7b86297bf
+yuv420p14le         223229adb58797bd4541ece9cd94e04b
+yuv420p16be         aec8d11473863a3ef616781d505487e8
+yuv420p16le         d7bbdda1dd3ab2b8d7bce4517aaaac4b
+yuv420p9be          345b652a8b354950497e5c72e1e489cb
+yuv420p9le          1dd57ddde3fbdbc3f5ad22538e444036
+yuv422p             c6e4596b92b52067f8a56f1f680fa543
+yuv422p10be         03a7fa0a32d36aab138b589b60e993fe
+yuv422p10le         5e15ad7f69064a7f901f4f87aceaa45f
+yuv422p12be         334bfe145e6f7ec083d5a4b95371ce08
+yuv422p12le         b0ca5c333249a70e808b5797115ff8d1
+yuv422p14be         4be0537c3600c9d68e1213254ae968f5
+yuv422p14le         447c1964553e29022780835592caa5fd
+yuv422p16be         9064649c2280f69c9fb702baddd5aa8e
+yuv422p16le         3a08681c4f93a39ccbf86cd1b19701b1
+yuv422p9be          7a61a57273f92f02472ad084acfd305b
+yuv422p9le          64eac4895c987e81028c751cabdc1654
+yuv440p             9da5d0514898c9e41db39e158c686f84
+yuv444p             cd248d484c9aa26364c3afcccd8fe61d
+yuv444p10be         880443aea072ff9e75707b9b79400698
+yuv444p10le         1e07ed9675dd3761ec271928bdd92128
+yuv444p12be         2427c302c57929d45b02eeff431039f9
+yuv444p12le         0e62f9db595a80b211d0b9e694331b9b
+yuv444p14be         d5bb8182c3b0c621875f8cf3f9c2c24b
+yuv444p14le         2a096a0170547709134b338a2b1e9fb8
+yuv444p16be         95f0869e28e69ef0a948698ace864ad5
+yuv444p16le         b0d672a4854b625fc8ac58cdf39b4e8e
+yuv444p9be          6030348fca6b0d1d83d41f436293a4f5
+yuv444p9le          c3650519a9acd54006bf9de9efc60e5a
+yuva420p            19f0c20ebd68fb2d913b5659b7f37508
+yuva420p10be        e6570c7dbd19ed265cb3d23664761033
+yuva420p10le        0cb9d449665531ef77cb6728d7789d99
+yuva420p16be        9d7839bb1909c877184767eeb77a5247
+yuva420p16le        53437f4c7e6504258f9562076ad086bb
+yuva420p9be         6b3e387f33fed36bb9afb5d64577b640
+yuva420p9le         9380e1083743d92dd01e514b0e22d679
+yuva422p            ee138d35c49c65693aa0da7091cb0304
+yuva422p10be        3b8426577c4c09e9f0368f455d7826d9
+yuva422p10le        ef4955c0f17fb5da9cec6f7c34dacf5e
+yuva422p16be        a0f3232ae480aee2ae6f4bffb707e1e3
+yuva422p16le        a6d98b7c8462618485bc0a44d5985803
+yuva422p9be         d712e3177ff08f1f4d43ec3cc060d438
+yuva422p9le         5d2cd45b048c70a1a5a22952527df5fe
+yuva444p            731eb084c538023bc88358204e7b2b88
+yuva444p10be        dcf08852b5b5e5144083ef051de5c3bd
+yuva444p10le        6e06bbd892bb892847c40d1cca0c4b60
+yuva444p16be        dc62670357d130b59569581f80f6464f
+yuva444p16le        904d24a830bd1d84427d8ab451c603f0
+yuva444p9be         59aa377d4e374c93e31a29329254253c
+yuva444p9le         accdcceba9373f020c228c79590c98f4
+yuvj420p            37df4d61e8c3a89bc14cd1e390718eb2
+yuvj422p            6aeb80e715f6f8184ce4ee1487eb1451
+yuvj440p            9434d1822f68d1af88aa62df066bbb0a
+yuvj444p            e00f814ad35802490648ada50320a418
+yuyv422             8d03f4b28b841da93463fc634b50981e
diff --git a/tests/ref/fate/filter-pixfmts-kerndeint b/tests/ref/fate/filter-pixfmts-kerndeint
index 2769319..03b147f 100644
--- a/tests/ref/fate/filter-pixfmts-kerndeint
+++ b/tests/ref/fate/filter-pixfmts-kerndeint
@@ -1,10 +1,10 @@
-0bgr                58fb0bda60562ce17e75f1c3459d0504
-0rgb                d29f6a7b63ade359ec81f5856633ec06
-abgr                71071045b8ec66a6d0a38bb3fed1ca51
-argb                93ba0daa1e945ad1a6f8c0c1cd2e1858
-bgr0                364b8bcd1c7a384902077bc7190c5ea3
-bgra                81ac8315a4c66e363bc6fa3e99d9cd2b
-rgb0                ae0c2afbc266345c1372276755595105
-rgba                42a6cc9b815ca0ee69c29db3616ce25e
-yuv420p             40ca042814882b0b791cbec38e289702
-yuyv422             f549c98059ba9ce50e28204256d13b5d
+0bgr                4f41eb2536246cfdee0537fc63fc62b1
+0rgb                6fcf657cf8074f628398b8c1bdaafd61
+abgr                5364b95116938587df406336da13b1f8
+argb                73a198d6f577ac9d2eb1e5322f156aa4
+bgr0                84683ea432aed61e7d68d519a1306ad7
+bgra                f46fe5b6e40592cc22d3c645474ed253
+rgb0                3b702beaad0f79aff7ae2621d8e013cf
+rgba                fdcaa0f6bbd09b2a50804297543ccb0f
+yuv420p             e478adc826265e91679242511caf2aae
+yuyv422             bdaae32fe56c3cf88f1816fea7947d51
diff --git a/tests/ref/fate/filter-pixfmts-lut b/tests/ref/fate/filter-pixfmts-lut
index 387464b..8f720bb 100644
--- a/tests/ref/fate/filter-pixfmts-lut
+++ b/tests/ref/fate/filter-pixfmts-lut
@@ -1,19 +1,19 @@
-abgr                c1e31c876e806cbfa8ef58441d1dee6f
-argb                1239bf03999d8767c2e03863e22955a8
-bgr24               0ed1377b8c34489e716650edb593494d
-bgra                87a4b656459a5f8ee2a0e5a994c61439
-rgb24               a1466d9fc7d1726dda3bfe80dfcc1b44
-rgba                980b5fb376926ca9c5a0a5b82a0ab162
-yuv410p             ec9e2e31c1c702676362f5445efd4354
-yuv411p             9caecd7961e1011db685cc4d60220fd1
-yuv420p             8796295e7d132dd0f616fed149633ad9
-yuv422p             2a3f79670546a0e582ab00cb83bb3b79
-yuv440p             d7e3ffabdb376f49a02cd641907df726
-yuv444p             13ef53a3dd3f77516e2c5237bf43b0c5
-yuva420p            34c07d6c05233f333a933a50a3dbfa61
-yuva422p            352406873ef88f865af0f27760f37663
-yuva444p            8efb7b3d809946fdf01f3c426a6cdf83
-yuvj420p            5a8771944ba995a831ca272526f440e5
-yuvj422p            ab379523c4e79ca1e3c72adc46b918ff
-yuvj440p            8e82847ed2f7a3a22ebdb2372e941fc4
-yuvj444p            4a98641643a7a51292c61c71e221ddc4
+abgr                70b0074ec7e3493a9f444c0294cd8c4f
+argb                516aa5c9f4b8d5a8955b8651d4d50993
+bgr24               4f35d33e1c5680e4b02d5cced82dd1d1
+bgra                6afafe880b0f786b7e35973ad9a6177c
+rgb24               5129ca757b7a673c4cbaca01b4ef7b8e
+rgba                76785e70bc669bf6412a9975c3e40149
+yuv410p             51f3957eea28641c544d8245c5bde48f
+yuv411p             b49e72a9a4a92c53bbbc9e7b14a7d364
+yuv420p             0728e84b213385f9768d295bedf27526
+yuv422p             6a132291917acc86750104b0aafedfb1
+yuv440p             3045c1c955fe33818006be197b1bcefd
+yuv444p             4362d6dd6a02707650356cfb26107a44
+yuva420p            a6b70b2befd268173c25d0f8ad8f0ea7
+yuva422p            f8e0e292e34d42fcbf635c59a8797922
+yuva444p            a6b5ffe0838069938c4f9fcfa04f602a
+yuvj420p            f3f52cf449e988d1c866344dcc31aa40
+yuvj422p            a6772f02eab0d0f19d2bb91c2ae28bfc
+yuvj440p            9284544a764066fbf03bc1b3e612031e
+yuvj444p            9f0b82f24cf17e3f18dfdd51d724494f
diff --git a/tests/ref/fate/filter-pixfmts-null b/tests/ref/fate/filter-pixfmts-null
index dba8fec..7121821 100644
--- a/tests/ref/fate/filter-pixfmts-null
+++ b/tests/ref/fate/filter-pixfmts-null
@@ -1,115 +1,115 @@
-0bgr                a06d3a7652e4885c65895e0e168aab28
-0rgb                b6b5653d2228cdf2ba3c55a72f2e713f
-abgr                1a147fa04ed70b9a7e67a4c89052f630
-argb                997df0b5c268a0d8f9c611cae4e01e05
-bgr0                218df6dc3eb5094a0c16a8bd18bc3999
-bgr24               d6370f6dc34df2ea66e1718baf74137b
-bgr444be            aba6dfea008ae12c2120a95f54293904
-bgr444le            cfb5401e8f076cc8675e17ed1114a3df
-bgr48be             ab65229b64606f6408cd732b967c0b01
-bgr48le             f1b4e718cadee9bd2978289153ce43de
-bgr4_byte           de96505ef9ad7078f87b4dfdf6fe4b61
-bgr555be            8d5de9e9200d622f27dc73958a85045c
-bgr555le            74eb9837706143a40e26305a16a79369
-bgr565be            13a36d6502be88fc0c2aec05b8d2d501
-bgr565le            ed027571692aecd522aa65a90cc7e09b
-bgr8                71ef789609c746c2e7e4be9dec29062c
-bgra                0364b074268682ea46168742a8239f7d
-gbrap               412a2449fdfaeb5ebdf5e4196cc7391a
-gbrp                89d6e4b116e3bd542fa09a19a977ad16
-gbrp10be            5dc62e2d01fa7c19a57abe48246f2232
-gbrp10le            0cac205a304b59811ce30fcad49b3527
-gbrp12be            de1d2a6b1d189bce9b9a2cf322c31c24
-gbrp12le            e3267ef00bb48778df21a386416d2e14
-gbrp14be            7979d158b30c0b45db97aba2228d15fc
-gbrp14le            d32b6c73a820f9d03a779a996924893d
-gbrp9be             2478d1c27ae4ec94ec4b5e439128af0c
-gbrp9le             640240ca2663e48f0bacd8edb5242c7d
-gray                1e5e2b8548843a6898eedd9c974c422c
-gray16be            389f4e5a8ab413b3af32767b59ed7f9e
-gray16le            a1f912941247e45b394b9cf4f0e81130
-monob               309b5785a36bd988d17e15d88f4ffad1
-monow               8809a02bc69b58d1114b09ca79ebffad
-nv12                75e90c54d858b993e99f4ee6d2a2a38f
-nv21                8831a3f411015d45fbc5dd191245ba9c
-pal8                13de2a1c3c80cb64d14e2bc4f6f461d0
-rgb0                992f5ad24802cc255edab45c3084db4a
-rgb24               c71ba90f69f15c8275232bb3f62d0ced
-rgb444be            26eaec65d7efd2b0c9c13b47dfd9b241
-rgb444le            5f29863553107110ea817f52151d77b7
-rgb48be             a3bc81c46c21818a989f23104a599ab0
-rgb48le             e87c661ac49aea1f1e93939802883d92
-rgb4_byte           293b1b84f01efd90bde40cb3faffc127
-rgb555be            5229183fa64d4e5c7e3703d8263ee6ae
-rgb555le            c3e9978cb2a4129a5575935e8cbc433a
-rgb565be            bc123b962629ead1a06af0c18cbb6e5f
-rgb565le            20757fafe4756e62d845b2ab4c0b8f93
-rgb8                e01614f5416dcc8ad365ad7a57afc9fb
-rgba                53796fa4c392a1b2659595b6a284f8c4
-rgba64be            d5729f8c76250a9b18cb149b396f1bfb
-rgba64le            fae0a6afdaee94cb98e3ab9a702c8ecc
-uyvy422             3f411f947e3ac8f842c88e717d68bd9a
-xyz12be             e1e6718ae1c83e904fbdf903d62e5808
-xyz12le             24e8a22c1bd7d637edb731d10b7c54d0
-yuv410p             7dcf3f4770c8b494290ceacd2c2ce6db
-yuv411p             9461b188dab6f8b90d9a27e353a89f58
-yuv420p             61fffd2d8425759a33ae07e718d0242d
-yuv420p10be         2abf90242cb021cb6fcf9f2c3c92f6a7
-yuv420p10le         180b7e4de684c7225d2fb37614f842cb
-yuv420p12be         256c9e6cfc878a8abf681b30777c0620
-yuv420p12le         8dc8b86c4790da3769d4a62e87608623
-yuv420p14be         8d22756c5d2b9e501924c082bfb22a6c
-yuv420p14le         c9da19d4818bcb119ad6481b75778f7e
-yuv420p16be         4ccdcca6dd6a960f9a3333f0aee095bd
-yuv420p16le         9c5847d9b0de258a10ee906dc47e24ea
-yuv420p9be          fa7ad4f73232aac0e35def62af1e2c39
-yuv420p9le          3720ba1786b56c8f4913e67dddebbb07
-yuv422p             eee223e92f1f2e5ad4186b411ebf5816
-yuv422p10be         80fa87750491dcc3e93d175b64835654
-yuv422p10le         e1640cd315bd96c6b59f7753825a7306
-yuv422p12be         5c6d86e919515d1af71f8004a6252f9e
-yuv422p12le         7f331cadb0ab75d07656d29f47bd8bd9
-yuv422p14be         4f4e186ba683b90fe990cccc4db7e521
-yuv422p14le         d78016c9119b1f1d1c922bd5aaf47732
-yuv422p16be         1f3c216927d17966a009a42def124bba
-yuv422p16le         90adbdffaeea9b09398339c8a1322b02
-yuv422p9be          e46446534dd0821029d3b831c9c1d1b0
-yuv422p9le          520e418a2429f7efee511b7fcbf45ab6
-yuv440p             456d83524b299f2fa1bb988e421554d9
-yuv444p             068bc09d282d18c9fa35c2787943fc2a
-yuv444p10be         9f6e1490080a454243daee9229425e1e
-yuv444p10le         cc183e51041351d9ac06c4df6e8ad5f7
-yuv444p12be         34f63ac6a47ac681016105d3bfb3e118
-yuv444p12le         7964701bfe8d718edf97f6e0002935bd
-yuv444p14be         4ad3a9d52fe9c050150c0f7d2f3cf63d
-yuv444p14le         69575e5a94b978f159c4fdb1a61587b0
-yuv444p16be         4000b12fa88ed0feef182da31c7e6b96
-yuv444p16le         96a857dba8dc6792c58daec872825b32
-yuv444p9be          07727e5c9040b7f0a17d591288ac330d
-yuv444p9le          4d12d20a68dc28618594c96c2ade4ff4
-yuva420p            3a8c5c142e051367c196f95696e0e2c3
-yuva420p10be        1b7c5ec6691498e24676ce6ed97f62f8
-yuva420p10le        4c13322bca914df2727da91cca85ca1a
-yuva420p16be        6afcf758f4b66c0b4173c942d42212d7
-yuva420p16le        13e195aa96329eb49921b6f9f07b875c
-yuva420p9be         05a78390de312dfd21ac666a9da05fbd
-yuva420p9le         78f5593bf51a31841ef83df41d0316eb
-yuva422p            45ae66d6f69fd5b77e6831e98d228bf4
-yuva422p10be        18284c58b926fe2389605c692a703145
-yuva422p10le        b934d28b615729a24bebf0381c465e37
-yuva422p16be        c3f7354b6013b43439e02aa02be5fe69
-yuva422p16le        a7ccc43820683ab15061d14cf8efce6c
-yuva422p9be         14c55a16d19499b54b4341f135d3e558
-yuva422p9le         a8bf168e5d2709222192d0aff46b1373
-yuva444p            86b05da54db8c7e8cf5b6638e19c6fc5
-yuva444p10be        8c417158165c00fbd42def60cbc27d69
-yuva444p10le        5f303ef3fb56faed69b4cc1c760ac6ae
-yuva444p16be        52a9591ec0d5059e49b1b2803f8582aa
-yuva444p16le        a9272ac197e4a4195662ce90f533976c
-yuva444p9be         f72f646ef07cdab613420585aba041ac
-yuva444p9le         6d431b0a27bf4f86ea44ef5f14247a01
-yuvj420p            73661456012f20cda81207b14bb0c0a5
-yuvj422p            aa97862b57f47c5a6506156e9aaf129a
-yuvj440p            ff8b9884a49d546b035f5d2ac1e673df
-yuvj444p            b8142888d80b8065c54045839e79b331
-yuyv422             f06a4fbbdb32807d05de825daa2c3a1b
+0bgr                dbe53dcdb3e71a00336f7fddf513b7f8
+0rgb                6bad9121fa949b37f999d1e633c89097
+abgr                285d7e042811968e370ef1f43a9ff8a2
+argb                9ea1af84310748479936fb969ca2d203
+bgr0                279dd31657c7ea3ab3741895dc4ee489
+bgr24               20b55b1831f7b00f3b64dccf0cc6adb4
+bgr444be            87295addd2c9280477cadad0dc0245f9
+bgr444le            c6abf7045f8f35f26c7cf7e633845808
+bgr48be             e06ee22635c7d400f1b1d8cfb5f179ef
+bgr48le             d752616d1063099ebb2eabc64ff49015
+bgr4_byte           87c48bd876d5aa20f4203a40999e0884
+bgr555be            afbc97afd9ff1a596a2c9f1175566ff8
+bgr555le            72f6ac055799b3fefe0b18f7f23b8a78
+bgr565be            bead96240f6d34de4b8fdc560f8dec13
+bgr565le            19cc88ec4369ba0449849af732c2591d
+bgr8                f4ab3661f2968190637ff4144955756a
+bgra                97051336156a3c30e8804614a1853afc
+gbrap               2ad14f2965c2887c1f2c74ce487bdca0
+gbrp                74915195f7655e5e9861546c85d72e52
+gbrp10be            db21bb8d2a89265e8960ce11ca2c8dc5
+gbrp10le            9ca620c2642de1dcb26d57ef0bb6936c
+gbrp12be            a4c2a0acd978f677d4c887f7bccde377
+gbrp12le            87084821f002f7137791a9fe7126d13d
+gbrp14be            5a2bea055d2d8b31147c82432ef392bc
+gbrp14le            553c7b67c7dea48b58ad8a691ee3850a
+gbrp9be             46e9f05602592bf001345ef7932e1565
+gbrp9le             389b62e58fb9434652f80e569f563596
+gray                0685e7f2763136ae7f6812ecfe3a0648
+gray16be            8202935701f988967e51cdffe74dc825
+gray16le            db5c40e458d4d2cdb54a962b21b87b24
+monob               eadd1f0b425c24d01992ff471e02493a
+monow               3d44555a8b861f06729c4ddeb04cd145
+nv12                328ffc75a1b1e0e7dd23ce786e096f55
+nv21                65a0b95295a5bc8f315fc1c91708c46a
+pal8                35cd8494648766f0d0605a9650a95b4f
+rgb0                f815a49523591860e711a13bcd6e1ee5
+rgb24               882637bb0ef70e27cd82a36ca8ed8cd1
+rgb444be            637b4a135202e51cd8fcc0eaaeadb2af
+rgb444le            11579bc24f1e8f70185bcf3763b8d100
+rgb48be             a244e99d4344a662ac257ecb65ee51c5
+rgb48le             ac32498e5178b3c85d7bb5bbf5596959
+rgb4_byte           cbc2e62e4c1855b513b09c0fe85cda98
+rgb555be            54f5d0b61d40a53860b970ad4a217354
+rgb555le            38b9c898af62cb4657539ff20e8b06ce
+rgb565be            cc6d7032ce52a4b31ac53d698c96f7dd
+rgb565le            90dffd0d77cb1171878b5c3000757121
+rgb8                b948ca4ecfff222f078b384316a25311
+rgba                02f5ddad6cb4ccc70de9544231a02c7a
+rgba64be            e717e8d8d4eba7faebb24d5abaf5b266
+rgba64le            472547f12e14ad4dda2eb99b905d9510
+uyvy422             8a5035edefdf5326f08e48acb9019c83
+xyz12be             33bdfef27b01660f840c4d1665590498
+xyz12le             b39badb25e33c23fa2ea0720d3ff6f46
+yuv410p             65db25b4e932e3d9c9eb28243ea294d6
+yuv411p             28f934857f6a539840e25beb9d969ee3
+yuv420p             36b5ec33915bb1f348d7adf79157e52c
+yuv420p10be         5a30d60a2285f9a0d0ab741ede7afeb7
+yuv420p10le         172f09975ae2acc8af46c2255474fdfe
+yuv420p12be         669f9c27ae29e4fe8442fd0bf9e8fa7d
+yuv420p12le         6156dbced36297ce40f5277055fad99b
+yuv420p14be         ae4c0aa3d27a96b177d728b27621ced9
+yuv420p14le         b131af5958017921e6cfcc3b364938f6
+yuv420p16be         4869b4d981ef8fc30075e3b5ac7ae7f0
+yuv420p16le         b683d10581af61ee2d4120abce876fe6
+yuv420p9be          f945598c865341d9eb4301e82e23c816
+yuv420p9le          9fb9d4eb45115b78fbafcf0b29ca1d67
+yuv422p             b9702da4f1273800751e1020127907a5
+yuv422p10be         a9bffc300ca3bd16fcd034c6c459758a
+yuv422p10le         dd32428a1a6a64bc52a2d5821d393fd0
+yuv422p12be         56718bc08dbfed68bf1a42a76c81b8a1
+yuv422p12le         8e82d3e0eb9446de9500df3babd33e8c
+yuv422p14be         4a86e56c48482b4e293cf35c88680eed
+yuv422p14le         694439db70baca82073b1e5769619fc8
+yuv422p16be         bd6c81301835bc4703b9158c304f6a36
+yuv422p16le         4fb7684f250dae644970b7223d1131d0
+yuv422p9be          417f234704c70943c4ba115da98f1fc0
+yuv422p9le          8fcb0902c945d72b4193a081a8f38dd9
+yuv440p             c7ceec08858b5250378023f24b5b0789
+yuv444p             f6d219dbf815d05fef469a02f8906aef
+yuv444p10be         cd2d3f9c73418a0109f6aa14dcc5b88a
+yuv444p10le         1d10be90db1ee75ea0a0c9581b454a94
+yuv444p12be         0bfe5405afc870a1c13182c7b572328c
+yuv444p12le         0dd8619a85e2eb49efd6e5fee0f48268
+yuv444p14be         268505a8cdfba0e7558da8ce879db56e
+yuv444p14le         c354a1e8863dbf250d27256def466d31
+yuv444p16be         118d8243b4b97f08a8823b37b787b95d
+yuv444p16le         f00ebcfa6d6bf8b2965bdda6b35cfc2f
+yuv444p9be          8749d00528f5a0abd62ddf31c7e07f70
+yuv444p9le          a2b10de1375efb6d44822b4719eef6a7
+yuva420p            78e7dae5d859d0cc5b8a0f2799a6e436
+yuva420p10be        ab9a3e54e50c2417e6356970853afd1c
+yuva420p10le        723475037de6ea5099135f5074cf73c4
+yuva420p16be        c1717b1f924de42f4f1c19690660244d
+yuva420p16le        a36480ffa50a71dcf9c9a1568f1f2240
+yuva420p9be         91ff5e945cb1f9e76ca2b5dd94ce53ef
+yuva420p9le         d5855fd334987ca2a083e3b7d3415559
+yuva422p            50a4e5db3f667219462adad411e7139a
+yuva422p10be        5d7e9fc558a83e2d210e02e6b7ab0dc5
+yuva422p10le        691eb7575d9ab3caeacaa8ad77090702
+yuva422p16be        985ac23975e40e2d17e3e28fbdaf8d1d
+yuva422p16le        e88a4bcabae7971f68f3c2c773a41ef3
+yuva422p9be         dde36453b84bf9e954a5a62e54695631
+yuva422p9le         67f80161c93e8e5dba7c1e59151113a8
+yuva444p            fadc28a276530fa17e88057226d04382
+yuva444p10be        173a4eea9bae114f44834ed193ef0dac
+yuva444p10le        66f8ce0eb99baba095b3f4f6e1bf3e1a
+yuva444p16be        26c5409b48c2aa8a7e4b020204d2f15c
+yuva444p16le        c892bf67aad39925e211459bae9d28f8
+yuva444p9be         7a697ca8289f6376aa4b71a0c92477e5
+yuva444p9le         2c8133fcf59c9706608c5ae72485ae8b
+yuvj420p            19b3cda5f114db609953792729ee5e68
+yuvj422p            6be4ab6c9634237d8c9c6bbb78799a38
+yuvj440p            26368d44d48344d935a48bf0aa4484c1
+yuvj444p            abde33f1772eef0981021b8f83c64b17
+yuyv422             58d0441e68e3868312657c49ee450b2d
diff --git a/tests/ref/fate/filter-pixfmts-pad b/tests/ref/fate/filter-pixfmts-pad
index f8f8dd4..fe0d62a 100644
--- a/tests/ref/fate/filter-pixfmts-pad
+++ b/tests/ref/fate/filter-pixfmts-pad
@@ -1,26 +1,26 @@
-0bgr                36ba5b43e0ac64d8daad4f897efd8cdf
-0rgb                cc3ca0f63885af19b3daa4504cadcc19
-abgr                9ddb78f395d7d3f75b65b5309223c0c5
-argb                e5fbb7bb282a80897b8f730627f68876
-bgr0                c55368036cccbb0af471d6bd82abe02a
-bgr24               67f9fd70dc6d9896b7122976b33932b4
-bgra                c8dd017b5a3b55e8b9d0ac1cdcf327bd
-gbrap               23e8ef832c4aef52c6183f429ac86b32
-gbrp                74f83deee9866bbdce3f91fa2aeddaaa
-gray                b1abadae3718522aa57a7972da8cbe17
-rgb0                b1977b45634c4db58a183a07feb2acff
-rgb24               e73de9dc0fdd78f4853c168603cc7aba
-rgba                5a36df3c5ba623b589728a5a442e98e2
-yuv410p             ff246b8b41d3d4a3eb90414ae3031123
-yuv411p             a82c606c665fa747679aa8bfffa8a5db
-yuv420p             0fe4d9031999f83ca96292ec2025f272
-yuv422p             5e0bffdac30b39f1bae9ec54fd9a6a34
-yuv440p             5e338303cd89d1d76ab918e5bec1e90d
-yuv444p             248bdf9747d5c3718580dc2279e2e273
-yuva420p            b5bdefbb0c5b302b6d18ee4df7c1d7c7
-yuva422p            8b56b36d9eb3c382d2a5a695107e759d
-yuva444p            389cf95e98bf24684a42d5d67b913e16
-yuvj420p            d182ac937d312e4894c1bc548883bf1c
-yuvj422p            26ac91b5daf6f2f1f3c22be489e994a3
-yuvj440p            63e2b94f81e0a6f2868055a4c8258b63
-yuvj444p            64f103c7db8fc803d062db7ed2b8dc76
+0bgr                481a178ee679cfd644249effd20b1b1c
+0rgb                44a37968a82865acac6d92e694e3cb1e
+abgr                53a74c70d639c0b5f8c1a4c115ebd16c
+argb                3de2e3c554a7abcf9987ff7bcdcd0282
+bgr0                b6a5e3986df498d2f50ad898094a56af
+bgr24               61b8c168969172779155f65094260e92
+bgra                7c568a795d9afd4d3beb3a7ba02d9be8
+gbrap               9b08aeb4b03e62d0e1ea358673e7a39b
+gbrp                1c16f2a9a399214a9b0d4010472ddc0e
+gray                be6b3d0b70c27abf4964d5b3fee627db
+rgb0                4854f31f84728dd2c91674feb0859095
+rgb24               6e0985f40182e95d1871690c510bc23e
+rgba                c3ea05ee5fb76b8237c2d1975026860a
+yuv410p             5899c22a696b5cf97b1dee539d4752f0
+yuv411p             3598f2dd239e2d9e4d814d26c01f26e9
+yuv420p             8e19723554414ca534104cbf922f2a9a
+yuv422p             97849317d6e8ca36c62722d8acc89213
+yuv440p             971cf6ffa1572d8f7d59c362c1b674c6
+yuv444p             fae0788a3f168f8f59fc1c1abe58ab21
+yuva420p            8ca3582a4ba2b17362d2bf9a212974ff
+yuva422p            347733ca603ac373aab0d59a92bcdb97
+yuva444p            8a7b19915415950b7e3c3406ffa17b53
+yuvj420p            1df65d01204de9acb691d1fae5faffdb
+yuvj422p            bc43af038eea6d4e3f640d06a147fbc7
+yuvj440p            deaebe7af2fe0fe06a6896cf7974779f
+yuvj444p            8a8982a50e3326d69e92bb9d3139750b
diff --git a/tests/ref/fate/filter-pixfmts-scale b/tests/ref/fate/filter-pixfmts-scale
index b354ddd..1e1090b 100644
--- a/tests/ref/fate/filter-pixfmts-scale
+++ b/tests/ref/fate/filter-pixfmts-scale
@@ -1,115 +1,115 @@
-0bgr                710350573339f608b23e5bf8ea3327d0
-0rgb                ba87d80ccd24ffb20ac711511132adb8
-abgr                e448ff50225b119979987e55399e49e2
-argb                ef03d804e0de6315fd59e3d2edaddb9d
-bgr0                93cd61cfcbef1789d2d5ccae4de75f79
-bgr24               793fc4c2b1c92ad4f7f4dca157e624d1
-bgr444be            9af6abe0bc74cdcc75b4ab2f441f5f67
-bgr444le            b8c0e693ae2cbd7c03abcc3aeb4bf7b4
-bgr48be             3aa33b667b9baefe3f17ef44360688cd
-bgr48le             eaf353ab363fbb279fd72d6c6e3b8855
-bgr4_byte           a6e269daf7085504a01113ce5e8bff57
-bgr555be            9d71206c1a5373b8978126e5f5779726
-bgr555le            025caaa21fed9d14c382cac26af778c8
-bgr565be            fca6f07daf23d9dd84381dd4c9afd959
-bgr565le            f524e9f16bdd68b247dbcb621e543fc0
-bgr8                68a3a395043dc57335ad1f8e891229c5
-bgra                3eaf5489b8aa13a3388aad3751b597bf
-gbrap               76ddf2bedea40c8743f4117b786d4773
-gbrp                7b83ae32c1f76bd634e50f4797a74e92
-gbrp10be            77dae432c42fad019c286753b0e4b0a8
-gbrp10le            7d3e7341423b1206e8a6a3a02b48b5d7
-gbrp12be            2c237c413e765024eb3f73d8c5e03df8
-gbrp12le            9a0c9eda1f16d640663c729d4bb88024
-gbrp14be            2b4f1928a5ef53d0a216b3b10fa11ca0
-gbrp14le            47100ec39fad45579de1dff56fe17117
-gbrp9be             c345137de0aa4b0536a00009e8e11267
-gbrp9le             b798662b2ba4cdf21ad6a6d4c1fe1b72
-gray                045c35e6cc7d41460f2b96b3e254deab
-gray16be            70064f9acdc5e3935ccda67e765bf2fb
-gray16le            578241fb43029e5ae841a3c94d940dce
-monob               91ec2a25b13f6ca34d42da778b217de0
-monow               a991455fda8f60f373aeb744456996b9
-nv12                0617f1e13ae4a43d4cb49282b9c02f71
-nv21                8a00d5d29766c1251eeda74c0ddee3f2
-pal8                7849884994cf99604f025b053332d08d
-rgb0                6a9d26ebf674f02b5a8830583ba7a171
-rgb24               1de2978e23ad10b9b4ca2777688b4546
-rgb444be            88f534c5d07ebf5a4374484aed540893
-rgb444le            c243685bfad7c243a78892a0dafe2b9f
-rgb48be             874c8e2305ce9d82165ffddf2854d1f2
-rgb48le             877075f2ff2d9a0aec6fec843385f126
-rgb4_byte           4a8b119cf1996efe273302da29cbfbfb
-rgb555be            8aeefa1fc4eba200abee3b1eb52186af
-rgb555le            0495a7c13f9b0d0253379d5ae90cf6c4
-rgb565be            5168b66e69c25351948085e5fc51bb3a
-rgb565le            301a4d41f0db3aaed341d812ed0d7927
-rgb8                8e5786e83099bc89d2e38a76e6dfcc52
-rgba                de6a65b8c01bdad84e575202ca8b66a0
-rgba64be            fdc6467660a45d6e9dad59339be2ec4c
-rgba64le            b208b8fdd403c1a24bbef0473a89d978
-uyvy422             479105bc4c7fbb4a33ca8745aa8c2de8
-xyz12be             e9be06091b6dd0b67598eaf8bd86a78e
-xyz12le             05a9bbd16d81183ef3db04447648e3b1
-yuv410p             d0daa93f5cee83360e219e39563ab6da
-yuv411p             e5c8f3ca024a88dd07e0a92db3e2133d
-yuv420p             485d9af8608f926ffffbf42230b4150d
-yuv420p10be         e4f12002b46549779886f27fd3c6c645
-yuv420p10le         698b7a346ae6d1315280d3e28c86b973
-yuv420p12be         10ccb1da4f69f5578e017ffdaa19adf6
-yuv420p12le         4f68fcfeee4fb70ea941979cc6a39d1f
-yuv420p14be         d7b1183a6ca2f5d80d1bddf609c35995
-yuv420p14le         934dbea61d804e7c66e805a45f1e3914
-yuv420p16be         6ebcf48a9317c6265430cd3ba5f569a2
-yuv420p16le         604a7215f384488a38aa0cffdbcbe17e
-yuv420p9be          7b293aec92897bf0a32ec3a02a20acf9
-yuv420p9le          f37fdff7d6c62ebe2ab0cf791cd049db
-yuv422p             b1724528079199908c667b3428a7c01c
-yuv422p10be         1c7281254fb980c123148dfd145c4a05
-yuv422p10le         959caa253354e897f01848db21b8006e
-yuv422p12be         9e1db2326fb3dd3a8f8d32f3a6f61305
-yuv422p12le         5a4aecf4baf74358551e75fd7f1549cd
-yuv422p14be         e75088b934f86ddb6a7ff1749b77687c
-yuv422p14le         2cdae3e0447b35ddee6161639107205b
-yuv422p16be         4ccc3e0bc94eaf3a3350e4d694c3a56c
-yuv422p16le         dde889032f13fa5f8d76b8484dd73116
-yuv422p9be          ba5eae7669d02a13f54a592344612098
-yuv422p9le          2deb39425d924a15c8946df79ceaa579
-yuv440p             19de0ba1fd354b42189e96cdf73ef7cc
-yuv444p             fba8a00cd0b182af82e9de3b2f4d2c8a
-yuv444p10be         db89397ac4d33e66b5eab3678661f73a
-yuv444p10le         28208677f07d4e4191ef228c096f3297
-yuv444p12be         55d291347d13f98b520c7d0cf7e0bdfe
-yuv444p12le         fd12d6054262cebda2a9b1a2ac4dac98
-yuv444p14be         a078f34e001828d576e748ca0850af56
-yuv444p14le         d02ba5c47b0bbb359df8ef478aa4c395
-yuv444p16be         07e27200d2f4382090ca260874f02e92
-yuv444p16le         f8bac16bf1f2afbd3626e07bcc815a9f
-yuv444p9be          db739906e3ae3b8792cdc5a0c3387565
-yuv444p9le          693b8d30958ef1a37296b1690b4b36d2
-yuva420p            df46b738bdaf30d3a7f880b5ae45b092
-yuva420p10be        8e5f3b069fdf2f0c14f49ad827991092
-yuva420p10le        ce4ac1961e0466c40448353cf76b3282
-yuva420p16be        aa8ca29a93936c62ef038ca8a57f47d7
-yuva420p16le        ee0cbb31f9cdb897c1982df0caa8ffa0
-yuva420p9be         b8ca5603123aeb953b9d4fc8ec8e35e1
-yuva420p9le         220212a81cda0f2d112f7ae96d532ff9
-yuva422p            650755270debb03d2c03b2e93b64c576
-yuva422p10be        8d077362542a73c72aadb885510ea0c7
-yuva422p10le        80f729d9f8f438d2ab87909797c27873
-yuva422p16be        0b8f9385498d2449b18fb15237b0a448
-yuva422p16le        ce22b20deb93b4846a5043aa104f22d1
-yuva422p9be         822df465d12916d8852340d6b56247c8
-yuva422p9le         f69c09e872838fe392dfe1825263d3f1
-yuva444p            72083e0941cc45af9f97b89d3cd16112
-yuva444p10be        42e159c62771239fa14d06a2db3b357d
-yuva444p10le        ee9786aee055c39da2dfbdb91ab834b5
-yuva444p16be        36a8797545163c24fc0d73f669c3108c
-yuva444p16le        c017c229aacb832a12c2297fb080a7a0
-yuva444p9be         8bfb5decfc8b71478b090a5b48c316c3
-yuva444p9le         2c7bfb90f7db9faab6862537801e1143
-yuvj420p            31386dce60a2dcc493da5d0ed9d880df
-yuvj422p            492452e50a3fe66724840cad29be4098
-yuvj440p            7632893e81d3f4f3ace3755f97479897
-yuvj444p            389388dd5d623f660c30ab840807ce82
-yuyv422             518be9b5ac93c365c0962453770fbe73
+0bgr                5b0493f1927630ef1e980d114a590489
+0rgb                209bbe46adf805e616c146f68a576583
+abgr                e08b001146e055c3d0f678f6fc04a388
+argb                987ffde696498a29aa8543d970c0ce45
+bgr0                302eaa71da968ced22917bd710ce483f
+bgr24               63b12e5a270791f08850ad1565899bff
+bgr444be            991b2e97f76c32c51bfcac95b897393c
+bgr444le            8e982bdf7aa5cfdcaf944992c16f56df
+bgr48be             639bd30ad839e4cfe6f06966e90f9cd8
+bgr48le             12cbf29e2986f7dedb3ccd3ddc7eefac
+bgr4_byte           223a469b86ee925266ac1c6c5dea11aa
+bgr555be            a8bb30cbbfcb0a4021f6b044ab71bf7c
+bgr555le            f3c33062e2988b93dfa47d8eb1feaaa2
+bgr565be            255491c258fd79837529a0dfc3e6d007
+bgr565le            1f2f49a0e332464aea7d9da88c9fe2f8
+bgr8                70d125113f7fce7e25871f5e3d26713e
+bgra                4cce0886bdf0f0d64ccf5d994abf84d0
+gbrap               63dde826d856c89800f5aa80c2196e9f
+gbrp                984427fe4fa9cdbd32055af6cc31720c
+gbrp10be            8f26a71f1f4bf26a637ffafa70eee567
+gbrp10le            d2441cd7ac21a2aeeca98b472bf52529
+gbrp12be            a9a735c1cb4a4e8bb50fb52dd7eb0d44
+gbrp12le            26c04e00673c1e0dbde1833caa72c8eb
+gbrp14be            6e7aee3b834dc8a14ea4c8c13df40812
+gbrp14le            0e789020c6eff5013b4513009ee15ea4
+gbrp9be             0f7852c563acae528e2b815d59b486bc
+gbrp9le             87349c2ec3480d0f8236716906da2a87
+gray                3095eed060f8dfc463e73db97683db7c
+gray16be            7cf307c14fcba2154a4ad95f421f2297
+gray16le            fe41a9f9fb93ba43711e3862766be9d6
+monob               40053217d2aac395d082c7b501706e3b
+monow               458e17ef06de9104be28459fea2fc3a0
+nv12                9e63197994c0535ec5db5ec82477ff08
+nv21                1efabb50f2c553e03bcb3862f6ef4d97
+pal8                1bf6c7c9b1cc7c01591a63eec900bd95
+rgb0                fa1fec66df5d9548d60ceec8f48ac044
+rgb24               6e0250b6eafbe548d0da39f9a3f779d3
+rgb444be            e7217104f92a3c3f654fcc9bffbfce9f
+rgb444le            6a75565d91a8764ade56c9e8b1fd10ef
+rgb48be             4e479471f69170086894010034822316
+rgb48le             5329b0bba7b794d92f8344da3a7a2a6e
+rgb4_byte           f328d9be59e9cd6d061cf71cc405979e
+rgb555be            c3220816b89753c3a511d79c56db1f40
+rgb555le            1bc0a7107b16d73c86e77eda185b9f15
+rgb565be            556de51dcf4b4c3df2b754a2466077f7
+rgb565le            7e303e1cf545bc80a1e4b280c4b1e71f
+rgb8                7da593859e64f4e836885a45d22e8697
+rgba                b9bd613e2a04d6b2f1c04872f8c51bc2
+rgba64be            ea30c8363e4fb335043a11d66dc9e566
+rgba64le            ce33ae37dd2e5cc23c46ee371eb29da0
+uyvy422             a0557aee96d686cb316d506fd6233cc4
+xyz12be             c423b5ce4acd058d6e3ff0d2000ec652
+xyz12le             7448a492cea20c829f845f9e9bfe223e
+yuv410p             3be48a1e2d403e53cfdc7901d23b963a
+yuv411p             a06b4ecd34db0c62833d3d6016f02c86
+yuv420p             bb3633406320eda4a16800d472a7019d
+yuv420p10be         da11e1411357e83fe1a25ec4f792c339
+yuv420p10le         f4f6840c49fa3778285ec3b8ed3eb472
+yuv420p12be         cc994293cb6e274302193ee0114060ea
+yuv420p12le         a10086048b0f36c0ff9cfae65214932c
+yuv420p14be         7868a122b79dcb9661eb41785b47f39b
+yuv420p14le         25b1301e1cf36de87cb5a248c4569c2a
+yuv420p16be         5d94fcfcd1278b24642b6e894f3d479e
+yuv420p16le         0f759d564736394040a5d008651ac625
+yuv420p9be          49e7d19494820d92f447272aac2aec63
+yuv420p9le          7c483c02b0fd01b4dcbb5b8d209e6917
+yuv422p             24d1297e627d97284a6a0d238500b6b8
+yuv422p10be         ca3c0161bc34c9f1ceb179225d0a3c56
+yuv422p10le         faea2aa8b8ba65716afebc615d3609c5
+yuv422p12be         2aa1d3955b09c31504590d77a7d3007f
+yuv422p12le         fbf38c089019f533ed0517e30e99f1f5
+yuv422p14be         3738d26bd70465fc3d8dbab5545345a7
+yuv422p14le         c1ea9e328acd09a250397dd1dd9044bc
+yuv422p16be         0596d1b8a1c3f621ba0d5040930b0277
+yuv422p16le         c0accf6a68ef1dfd5d46e03e4540944a
+yuv422p9be          82d179043c7b4dfe98be6c244c5d9473
+yuv422p9le          dc0226256076c638d0eb3864b6729ff0
+yuv440p             837d6dc4bb0d42b4cbc0e9edf064b739
+yuv444p             302396f8035c49935c19a7cff422bcee
+yuv444p10be         d176400552e868b1b369ed72fae6f38f
+yuv444p10le         a13b55cae7c6b6a6bcc25e3ea632f651
+yuv444p12be         347b16328b7351ace04b8ba238689c86
+yuv444p12le         271163d759091ed50665c8cc0d0fcb2c
+yuv444p14be         12573c03a1d30ba4353e9a618312f8f3
+yuv444p14le         16c642b06d59fa94581dd07041097453
+yuv444p16be         d7ec7f56899234ab54ffbbfa078298c7
+yuv444p16le         24b967843edaa836a39b702fb5347b9e
+yuv444p9be          4ac54607b910a2a8ba4c5044d49617b6
+yuv444p9le          e4e1ba8988f6d26aac618238b0cc5ff0
+yuva420p            c36c100644e40d5326d609dccfbc65ab
+yuva420p10be        e633eea9269c2b29c3a791c3c84e427a
+yuva420p10le        5b3a7aa24a2ddccf93b20b1ab16dbee4
+yuva420p16be        7ce5db2b3ce908c25ad307e828bb6a58
+yuva420p16le        fd18f625f8678a5a9dc7adcb215ffd7a
+yuva420p9be         37997c1640a562ee0ce9511563b96117
+yuva420p9le         6febb243dd8e7c88e5bbc1e06ed9beea
+yuva422p            b05591a2b94a8386d39fad0e8c97b3ae
+yuva422p10be        6492ed57efd542e0d283ce01007c2038
+yuva422p10le        9f72666bb4c04b5f012c692876835ea0
+yuva422p16be        f16513787b57b8b6c6b5fd6c832179de
+yuva422p16le        2e7118f14a64e2c7f9b95690045552c9
+yuva422p9be         0000d5a6b8548d808cf636a4264ac96d
+yuva422p9le         154e40fd11db0448292f23d70f8c0904
+yuva444p            f0138f2787597640fcef076dbd1f035d
+yuva444p10be        61b744aff0d99ad292e12a2412c41c75
+yuva444p10le        1ff3a1df07087c46f2e7f1644f94dffe
+yuva444p16be        28c4e46a07a2870de8255a0774c9adf8
+yuva444p16le        9bb10b2f00052f856d0aa42484f210b5
+yuva444p9be         e6937962b416407db7305e2b5ea52856
+yuva444p9le         684ab4196b9bf53c1dd457f88fb7a2fb
+yuvj420p            16820b995e2bb8e51348c075d67db658
+yuvj422p            c903d743c7e8fe005af96463a7991a55
+yuvj440p            a91108a0f583dad0c6db69775a1e6dce
+yuvj444p            c554ecd6f33db3244b9de8fef794281e
+yuyv422             d09ed194f5cd090a395a59f69aed9502
diff --git a/tests/ref/fate/filter-pixfmts-super2xsai b/tests/ref/fate/filter-pixfmts-super2xsai
index 964d04a..8dd91bc 100644
--- a/tests/ref/fate/filter-pixfmts-super2xsai
+++ b/tests/ref/fate/filter-pixfmts-super2xsai
@@ -1,14 +1,14 @@
-abgr                b04e3dfb0043f6eb04a573d2d13052eb
-argb                257e33717d23298430025c0665642cd5
-bgr24               3765d88f93d4ae8baa2cfbc64b0b32e1
-bgr555be            81832e6269c509be55bba49bdd0ebed5
-bgr555le            56772e91aefba4013890d156866730ce
-bgr565be            0b3c420fbddcec5a420c285b3c4b8792
-bgr565le            6cbded26d2bab8204afe2115384c09a8
-bgra                c81430c3d1465e37b6acaa19cc54e932
-rgb24               9899359a817e705dc5b9cc363d35a625
-rgb555be            9b60d9aa1f3c78edf9936894f37e3243
-rgb555le            917fa8565f35882404a45fee3a947bf7
-rgb565be            12edaab49440fbb3aa4c1835fd697745
-rgb565le            5bf91cb1767066f23f0c672dedb4d476
-rgba                71687289b6c3ab6fa727d468de459026
+abgr                81584f2e3e31c576c9252f312422dbda
+argb                97e5bd785848e702e666c8cd2642f965
+bgr24               3a43eab8a65ec93a04ef70b870c59dfc
+bgr555be            e8c5808e655caea57cb98af5bdb49264
+bgr555le            c036591a2c7f06d1c89ccafc5ee0d771
+bgr565be            4a204122a5818014d1ccd0b4fd0940db
+bgr565le            e099796c403e375763e1156a62b2072b
+bgra                dd297a13985f6d9554ac70a992c042ea
+rgb24               2dd31ad14028beb18b97e66ca59aa90b
+rgb555be            a46b5a4b627642692d06f2c7d0fa6b89
+rgb555le            fbe239eb5a25199641484c0f3eccda61
+rgb565be            c022ebc199205c6c550f01f7b9089656
+rgb565le            576b2d4eb343af8df060a4243b09d6ef
+rgba                98bdd08930ff6bea092f061599bb17f7
diff --git a/tests/ref/fate/filter-pixfmts-swapuv b/tests/ref/fate/filter-pixfmts-swapuv
index 2474171..a58d2d2 100644
--- a/tests/ref/fate/filter-pixfmts-swapuv
+++ b/tests/ref/fate/filter-pixfmts-swapuv
@@ -1,61 +1,61 @@
-yuv410p             5b295ab25ea56129be1a901d19b14f94
-yuv411p             d764e5278d2745f497a099468ce08f6d
-yuv420p             7c44249ab61c7974edd269966884a357
-yuv420p10be         ffe06addb7ffe7742ff885bffccda9d9
-yuv420p10le         285d971c468cad73a4d9669939ee942d
-yuv420p12be         2f7e4da722d45a757c5fb38031685165
-yuv420p12le         9db66b795b28e654136f8a5170482b4a
-yuv420p14be         35b9055f4b92a78a9b312f1471ffa270
-yuv420p14le         61817af578e8c6b5cacb120dca9008b0
-yuv420p16be         75e0bbe9a4f29e96eeae88207208827e
-yuv420p16le         340538ba047c5739242cd043d1f6c67b
-yuv420p9be          5e5bf3d0249cf5cdbd31bb58746e766b
-yuv420p9le          8adc79b7768cc8f7220381c3fe8f3090
-yuv422p             6c2d87652f18bc1b0e40cf794a061bd2
-yuv422p10be         711e7e00ab91aeee82e18ed84117345a
-yuv422p10le         cdb2c605b45a3ce840dc967bcca5893f
-yuv422p12be         ff378d3990ef37e6b43aee27880be256
-yuv422p12le         9e023fe6f0fc4626e3b2733326c8ff34
-yuv422p14be         f9f144674eb0b6945d9e7c8c3f84e2ee
-yuv422p14le         dc7fc4fcbc9b571f357df173d3521f98
-yuv422p16be         45a44b3298488c4979a5c184c95720f8
-yuv422p16le         479e36c10a498669ea003192289eee85
-yuv422p9be          37eaf23d5f5a331e949f7b4ec50a44ae
-yuv422p9le          267710ff84ef671419982f04cc111ad6
-yuv440p             5cd5fd358c63e130eacb77867c486f7d
-yuv444p             22bf5f86ca3e9fff950d2b2ea6da65be
-yuv444p10be         97a809d37853acb4864ef75f6e3aff24
-yuv444p10le         5081c59d16157eabc73d49c6b903d530
-yuv444p12be         183bff4f9470a4d4f980aac98a9181e7
-yuv444p12le         a57dc2f043659d1d1c7260b76e5d8745
-yuv444p14be         a0fd8199b6a05e799c3646e6dacff968
-yuv444p14le         1107f410652e9ecb4540b3d896c1252f
-yuv444p16be         f285bda960402c031303d8da5ab2f5f6
-yuv444p16le         dd72a55624c37d955bc66f54dd7d0770
-yuv444p9be          02fac80656a1aa16573ac89bf3bcb2ae
-yuv444p9le          f9009efe8e174f7b62edd9496d375af9
-yuva420p            99559efdc598a611e8a445726aae52df
-yuva420p10be        5ebfba649292669bf4a42ae812811ac9
-yuva420p10le        b3ca09bde07e20e6674390f7946b6e93
-yuva420p16be        10d49b187aa0e9f6980c0fe2583a403f
-yuva420p16le        8520c00011f8040ce3d760b4d73bdf40
-yuva420p9be         ab70cda1f3ae2822a70e84fec2130f6e
-yuva420p9le         70b5fc0e4b4d48c36530ea4ef1e3353b
-yuva422p            05fb65386a03cd61094348b15cd4bc8c
-yuva422p10be        3ffe3b85704883bbf9666b06afa0e1dc
-yuva422p10le        47a89fc53f0777f8cb973ccd25f2f09e
-yuva422p16be        805df2b4709283b34002b25e2e229e0a
-yuva422p16le        675315e192ded36ccec229a4aea28e89
-yuva422p9be         aedf684bcacc4e2375622ba9fd4f3846
-yuva422p9le         41aa087d23cfa8fae5a4e6406442fa8f
-yuva444p            70d4cba3980d5a1c16d5c29526e71ee5
-yuva444p10be        a0e80fe85810531348352b47ba4b712d
-yuva444p10le        c0caa122748be4a1467ce0f0600165cc
-yuva444p16be        5722e1a5b09b3808e5bbd9a7db1add49
-yuva444p16le        342725e837355d66019ec05ffa5b6c4c
-yuva444p9be         bcea6ad30ced293dbba9d7a6780d52ec
-yuva444p9le         bbd56cf86dadd7db8625d3679c6acc45
-yuvj420p            06d3226d86dbd01cd359d8a1507d0e6b
-yuvj422p            8f87a2f4261297545b53b3f237c5bf1a
-yuvj440p            92c7d84f41d703878ae53911d03d23c9
-yuvj444p            1eda19f660d5902e047bb8c43f182fb3
+yuv410p             832ed9bd842387e7d7d416870e5fe3a1
+yuv411p             0ef23705a8fe19c68e62ace52ecbbfd2
+yuv420p             72896aa9a3b8d3b6b49ce94d231cf70c
+yuv420p10be         eb3b1a4cf7769f7321c0709431f84e8e
+yuv420p10le         8cb3f93cb5e44a9b3c66bff0ecd008a4
+yuv420p12be         b23be29f87d706c97b6cb3e6ad00c3cb
+yuv420p12le         1c4286778e97870fd14fc31b658879cf
+yuv420p14be         fa3c5e3769ffd0f5691ef58f85472091
+yuv420p14le         c53c68cf5400956cc4c073ff12668414
+yuv420p16be         1d10277556ea39a75bb3cdb407a999c2
+yuv420p16le         e5a55858902d18808849765840d0ecca
+yuv420p9be          ee205985cd45edf3436a847032dc8574
+yuv420p9le          fa733ba1595ff1740313850dc37b2ba7
+yuv422p             b02347c380df0f8cc655ca8124caeabd
+yuv422p10be         ede31b1a7be72dcc7753c8bdcec0aee9
+yuv422p10le         4a3b62acdbcc6a04f75fac0ebf0eb92e
+yuv422p12be         5cc690c8f452f61967844093e5580708
+yuv422p12le         85125d2df7d593fe798daed71ee86a7b
+yuv422p14be         54dd3a03448470b42c9af013f55e7991
+yuv422p14le         63e55c67ac35e0390d08128fc911d2a6
+yuv422p16be         711c18b6dd0d47b6e981317363f70b6c
+yuv422p16le         eb38a864d64438c63f2a7d3634de88d2
+yuv422p9be          f76559250d04d575d630c14e7409a8e1
+yuv422p9le          2ac0c248ea5d71f24c37e1ee3fa0b3a4
+yuv440p             4994be93c46d3d11320048a95ba9533f
+yuv444p             b7dcd6a324bca827b6656d87ee8f6e66
+yuv444p10be         f32eef88f8507a2dae4a7eea13d640c3
+yuv444p10le         a216e1cac352a867a6aab7e8b74f632c
+yuv444p12be         ca6b9f7460f110ed695225ed17a9dbdb
+yuv444p12le         721b9f7f1fcf14d2d9fdb1dc0cda109d
+yuv444p14be         77c92e38909422b7338452a6eb64c96b
+yuv444p14le         52ef36a3e5ed9246cd3f446e701b3b49
+yuv444p16be         e0ed3c4c3f31ff6a542e6d20a7071d5e
+yuv444p16le         74967cf2207338b5284069b2b51a28cd
+yuv444p9be          3106a378749c06d1233688c6b701b63d
+yuv444p9le          675f7f7c07519a7d83e80d5675fd5c69
+yuva420p            7568d81067acd4ff1e7f7144dda61fcf
+yuva420p10be        51d1b641bc6e80597a4c64340d71b5d7
+yuva420p10le        c2479a9f9601e8359645278099536574
+yuva420p16be        22acaff009cc6e53b26ffc0614dabec4
+yuva420p16le        fa674945366671c6a0478ea207782949
+yuva420p9be         7a1b48cea293cfda3b43c0d9c9fdffb9
+yuva420p9le         f99386b61d9742e0ec567e0b147ea737
+yuva422p            7f7bfaa129e903d810ebb940b5e078df
+yuva422p10be        640fa4bb6897178b21576ebe19e09562
+yuva422p10le        6cee3c9ebc321600c4d95f2fd9d7e755
+yuva422p16be        3c5011a3058e8e995c104056a89f8473
+yuva422p16le        d91ca158f30401255dece8b8daf027cb
+yuva422p9be         3c70ec34640523ec31b9144a6688d9dd
+yuva422p9le         780941538abf923e5d5b1dcaeb4b77de
+yuva444p            b0ecf0d3210b98379bc1a2d836a1e16a
+yuva444p10be        1d7414672459e633c016d513ef6481a4
+yuva444p10le        504764fbeb5cc7d3da9cc27c986eadb4
+yuva444p16be        8b39b56bed691dd06b8117f7bd6c270a
+yuva444p16le        70873394c577ad089864195e055c64e3
+yuva444p9be         290642cffac3e4a38681c363d0cbff9e
+yuva444p9le         6b7c59fa3f64f512c59555f5d6f59261
+yuvj420p            e397527ca297860adf3dfae99258d981
+yuvj422p            7b3bf2b0f5b93d6621d4800557084228
+yuvj440p            02d49a4a9d4af7da43629b6d652d0d27
+yuvj444p            0d42842286bc16ccaf9740038b86bdda
diff --git a/tests/ref/fate/filter-pixfmts-tinterlace_merge b/tests/ref/fate/filter-pixfmts-tinterlace_merge
index 300713f..91762e2 100644
--- a/tests/ref/fate/filter-pixfmts-tinterlace_merge
+++ b/tests/ref/fate/filter-pixfmts-tinterlace_merge
@@ -1,10 +1,10 @@
-gray                c996e583bbc5a6f380463142eb77b7c6
-yuv410p             c9bad1317b496071d6d895238638e07d
-yuv420p             9794d11e59ec7bcdf9e30a433e4137b1
-yuv422p             e852e61e455db8ee3981ea942d510b0f
-yuv444p             a38a3f65d2f358cde5e9547c897cfcd5
-yuva420p            c1dc15d6ee78587d9f825acd795673d7
-yuvj420p            3ee7014727ee64b45292a4f15ba028d8
-yuvj422p            4f990d5473f15571276adb5770b3b773
-yuvj440p            9a005e8b8431aaa762fde8d942fd11a9
-yuvj444p            e29bf9f42e3a3632e09df529979e0040
+gray                35de00eaed2e73ecfbddfe900c09c34c
+yuv410p             59d25a6264e7bf17d75173edae0bbfb9
+yuv420p             7bc9e1169da602ddb4a02fcf8f881003
+yuv422p             bda68411ff63ab7bb1bc91a8ccc94d95
+yuv444p             3a26afff6ab3c35a2b6ada34d35299eb
+yuva420p            69e6794009223b5becc2ee315ee43637
+yuvj420p            49592b6e4b0a069b5381da2fbc2e6e2b
+yuvj422p            b9290e1b3018ca65e09982265db2ff2a
+yuvj440p            336655c672b1a7f1dce88e2972280945
+yuvj444p            39d25ef063eed80669ded5e6e6025bea
diff --git a/tests/ref/fate/filter-pixfmts-tinterlace_pad b/tests/ref/fate/filter-pixfmts-tinterlace_pad
index 722ac85..7e9d954 100644
--- a/tests/ref/fate/filter-pixfmts-tinterlace_pad
+++ b/tests/ref/fate/filter-pixfmts-tinterlace_pad
@@ -1,10 +1,10 @@
-gray                25a7d1ccf1a06c1a8a0520c1e6cb30ff
-yuv410p             17163d1b4f21d894598fc62e6aeb8141
-yuv420p             f8bbae33295741c1c17d33ff8ee16f7f
-yuv422p             4fa67d1580d3453942bb0950c5784f6e
-yuv444p             f0558305fb7ca65b5b86d3ee88c4201e
-yuva420p            7c76c0ca03a62275d25e8140c68da2b9
-yuvj420p            b5b7baf11946a2265fc56e48be5b0436
-yuvj422p            2e70ab700851d12a773f926bb1785235
-yuvj440p            93319f9c8a02ee793966fae40f7e42fd
-yuvj444p            81a124fffe0214bee5205c90ae0dd201
+gray                0e0ce1463c0ff2292dd3fac8e11e5b8d
+yuv410p             a4fb0032650cee30ca047a051a354bd2
+yuv420p             aa8a741b10a6ae4e6aa2ea7e4e383cf9
+yuv422p             71dc220ce4f7b677c3745b08834d817d
+yuv444p             8afbb1e99a265b8259bd004ec8ad06d6
+yuva420p            355e4212b7254feb87596596610b0d5f
+yuvj420p            05ed048e8eedd1cc45673e9166a116fb
+yuvj422p            dc453369d933a76d3eab20b90d278dfb
+yuvj440p            ebff5e73630c4787adc950f0cd2d54ca
+yuvj444p            2597f043b744da7d25427d4bf55ef21b
diff --git a/tests/ref/fate/filter-pixfmts-vflip b/tests/ref/fate/filter-pixfmts-vflip
index 70f5d5d..84cd128 100644
--- a/tests/ref/fate/filter-pixfmts-vflip
+++ b/tests/ref/fate/filter-pixfmts-vflip
@@ -1,115 +1,115 @@
-0bgr                30d1f7d7081c012556da0373e6d389ee
-0rgb                66cd838e9c19f750c61efd73f66c42ac
-abgr                e6cc18ed21293e455d1dc63f9e1645e4
-argb                b5383d783698a0b3d753d01f2498e490
-bgr0                f99729e70a94d1c278c292a7acdddae5
-bgr24               c48ec71c68a9840572a548c2ad141028
-bgr444be            ab9253d2f836f58ff8f3f2b4ec76abdc
-bgr444le            b1bd8245a286b615e75e10d34fda4e62
-bgr48be             b5355b4fa578b9422288507cf7fba2b6
-bgr48le             11dc232500b6339f58a9981f46d1d7a9
-bgr4_byte           531fd9a2249a213c89b1afc9788d070e
-bgr555be            54ba55dc1dcc5a7f27f2727976be6583
-bgr555le            a45c637fe5ce84b238b1e6f66fc8c852
-bgr565be            7100c2ddfee42e7efafec1ccefecf7c6
-bgr565le            9fab295d966386d4ef99d5b43066da47
-bgr8                275ce12eeb05de67a6915f67cbb43ce5
-bgra                d29c35871248c476c366e678db580982
-gbrap               29844a8e4334493fdd2d499bcb532535
-gbrp                7852e9bbe52cfad9bab8081a5c7a5a31
-gbrp10be            f591c6c98396baf3242837827081f2f7
-gbrp10le            c5edb9bb566edbc8c478595ac6ab070f
-gbrp12be            c61c19ad1bcca18719dd071e2cb77287
-gbrp12le            334a6c802ae0e15d9e0950c27ce4a457
-gbrp14be            e24459d3b4a1e9c56ec3658c525b7a32
-gbrp14le            99207ef7c7dcb1d1369dc3fe3b5dc261
-gbrp9be             1daea1677f8a62c5a1ef8959c5e0e4b0
-gbrp9le             e3cca50b844e7dd326eadf6e38fab84b
-gray                a53528cdf80ed31c9897042a2ea16618
-gray16be            9b23f3e79c54a6ccb62e0135a32e3045
-gray16le            93cfa8fbb2a86ead275ce1817444e6d5
-monob               c395a8efb9477b4ec53a77326e41ccd7
-monow               efaee1c763ccd5ce1a8519d2ed5aa5a9
-nv12                77373304a9c732b65dab0a33afba9295
-nv21                1e70b3ce8be75f91f465a6d62df550c3
-pal8                be51ffaaad8e8428f2ce1e10d5729d3d
-rgb0                84a83e576fc59ffd1ac5549fd7aa0023
-rgb24               a00171a51cbbdcc61ecbd0198b2e2513
-rgb444be            09a819863d3fe75518376cdac01c069f
-rgb444le            4ab35fc85b8550be2a9b96dec9bf7306
-rgb48be             97a30a902d26b4840235926dae9028dd
-rgb48le             82b33a864bab70d5463d57eaf693e78c
-rgb4_byte           afbfab537406988eab7460ec748a0389
-rgb555be            95e417e9429622245e2d2e0b1c3ab3e4
-rgb555le            e4b35d8e9c1710f6d051fb4bda8700cc
-rgb565be            c70d86afbd68a073f2d4fe0eee3a9832
-rgb565le            991576c5d3308a73068a826543b3e7af
-rgb8                42230235c5a2a66c0f9a2fcd20f9f5cd
-rgba                a6973a2940a378d2a8284194da26eec0
-rgba64be            d438e49304f65a5b7c5f09fcc1b979df
-rgba64le            9acbefa0f25441491d780b57aac11346
-uyvy422             21c48162379321bb83ec2399535f9253
-xyz12be             7070af64e30fa689e3627b1dde7506f4
-xyz12le             4c4b31100b836638e7e61181997c49e1
-yuv410p             8699f50c04f8ac931aa5a8306827364b
-yuv411p             47af34559b92b68851df4c2b170f7736
-yuv420p             c59b35b82b5a195128736021913b35a4
-yuv420p10be         fc5eed1744cdd033728362772a450e32
-yuv420p10le         141e6b39adac979765c846f3a5a8293c
-yuv420p12be         0e0145d3592d56362c1bcc62cbd78a78
-yuv420p12le         8c3a2b27126df203786d4e05fd79e269
-yuv420p14be         6a11c75aa378f9628cd8fc3339474e68
-yuv420p14le         e8b683876508bc0371582e2b8c0eb191
-yuv420p16be         c467fae3a1936f3f91c19dd1c0c63e49
-yuv420p16le         87f09595ac106e694c538382179bfcc5
-yuv420p9be          31bc440f64fdd8d9e7cba897881345ec
-yuv420p9le          c6fed3016f03c49aa01bdcd63f846d3a
-yuv422p             5e48541d3e659046ac0e1eacb038485f
-yuv422p10be         9097b4d06f1fc598375b7c6480a2ba50
-yuv422p10le         da7bd36f65cac06bd54bc9857493d835
-yuv422p12be         9c0fd650ec9872fbe06e82dc41a7399f
-yuv422p12le         3bdb982268c06b8876e206d8b89b4583
-yuv422p14be         bb0fc25212c2aa9f273aad2d562c3384
-yuv422p14le         1f89e82da25ce459db456ed27631054f
-yuv422p16be         95ed65e718929dbeb5092bf0d852026d
-yuv422p16le         c62e554dde4a170177bec2efc3f4f1a2
-yuv422p9be          b249cd58eaab5ccac6bae3e184774362
-yuv422p9le          696fc2a55f155edaaa9fc289574b2bb8
-yuv440p             fca8395b7e43e2d0f38dd6ba822ef747
-yuv444p             1ef971a434c53e81c578e3c7cb9cbcad
-yuv444p10be         3114a7469c2b9c440a9a9ccbd6e167d6
-yuv444p10le         34cb8774a1eb627b5f32825ac7d0ae9a
-yuv444p12be         2fd83655c3223d176243d7ff871df3cc
-yuv444p12le         cfec541fde2894656f6b3401177b7604
-yuv444p14be         11671a128afd177e5eda13bd2e93ac26
-yuv444p14le         5aefe5d3f78e4f3b86ed7041a20f9b8e
-yuv444p16be         35340098dc6956c34afce17bc6ffcedd
-yuv444p16le         201e3acfa6f7628dfe2a1663de1128b1
-yuv444p9be          6143c321929ade9e0bc93ddea926e936
-yuv444p9le          e43ba2026848ec803fabf74d77c10125
-yuva420p            dc8fd115eaf203a3eac351b92a7d8f18
-yuva420p10be        b3aaa8a5c9b9c3c9d66053159af3ec99
-yuva420p10le        f7a8ae85fcac45db1f1689a1ab7cc63e
-yuva420p16be        b5c54895e87521f65a298d33bab5eb08
-yuva420p16le        95e208bc6644e23a2126ac5fca085f06
-yuva420p9be         1ba55d16f060bf54698dd7200523b44f
-yuva420p9le         4b57b8bd1534743f6740502c74bef385
-yuva422p            6091f9c62a121c09eadb02e9173b2da2
-yuva422p10be        a6e8352978f263ea89e63ad06a9339b1
-yuva422p10le        ee39cfa1d29c294dc096f739bf454478
-yuva422p16be        3fa019b3d5e6dcb7c8e338837b9cffe1
-yuva422p16le        871f244989e14f5d3eda45abb6b3dfd1
-yuva422p9be         923c816778f782ff8a56bcd1b14ef08d
-yuva422p9le         bd882d40af0369d9ef7891c8e7891024
-yuva444p            9a55e83047abcc7a709f20805070135e
-yuva444p10be        6258901ef2ddfdb526a1038d92e8b63c
-yuva444p10le        24b8ef0f63e60f0f0a4d47a5870ad773
-yuva444p16be        4699a802e8ea3e74e968122980c0b0b0
-yuva444p16le        6f54a8cff38c54a235b92a0f1314e0aa
-yuva444p9be         7472bb4b0c774d5d741035086d5e4330
-yuva444p9le         ae11ddd5a3e8d69a36989f6f2a8897a1
-yuvj420p            200b0332de9944e76c94d2e0699a5a2d
-yuvj422p            a19a89ef145305cf224ef5aa247d075a
-yuvj440p            4240c9348d28af5f3edd0e642002bd2c
-yuvj444p            9e11298ba9c4faae0f5c81420d2123f2
-yuyv422             867fff568fa4170503779c48e5f25e6e
+0bgr                64681af90b8d925435310cbc969b7e26
+0rgb                4f08ebfb9962ebd0c39c7c7737da89d9
+abgr                0503ab3cada65837a95c774d2ef578ae
+argb                8bbf3d84b6544ec30ff237110cdd9e4e
+bgr0                c966c880daaf4449ed7f2e81871d8afd
+bgr24               e413aadb7c19217567181f0ab329327a
+bgr444be            e068f4f5a4a1005890f93d0329906c64
+bgr444le            6dc4ac2ebf1d0d67164304a63c214a16
+bgr48be             a1d4e571902880f02cf778726ca803c7
+bgr48le             a1cd701a05d7cbd79a52bc2762faeb59
+bgr4_byte           8f31480a730e517000f1dcaed7a27893
+bgr555be            e923831c8d7e7f31fea997b61f91ecfa
+bgr555le            1f7815187b14f2226297b9e06334d3a5
+bgr565be            f8fdb864e472c9e5ccff52a32afead83
+bgr565le            da5c2d55f20143238d72e2f9629566f0
+bgr8                c5e0aa726f2148fdfd9aaf513dafa7d7
+bgra                ca3e0b67a60488cfdde64d29395aca31
+gbrap               f1224ca22a6b928f8856981267514382
+gbrp                04b1447555e378610a6d679e0616c59b
+gbrp10be            3ed81262efe371cec419cd0e62725e03
+gbrp10le            756281480b8a637aa5015b96bf16a7f0
+gbrp12be            e5202bb5489c527748a035bde032b04d
+gbrp12le            b573d18becf3502a4b9f817f1271c2d7
+gbrp14be            f2cdb534c621ef82d5d4a03629b3e89a
+gbrp14le            eaa631433a2dd16331aa1e94d4612afb
+gbrp9be             05cf5d0f09857308dff6408be153cbae
+gbrp9le             2b5776394df311920b825f562b529a1e
+gray                e36223814151478fac06c6d841cc7c62
+gray16be            44dfe10d97f8ac267a4b34feb4178fba
+gray16le            013eb1d6e3ca0160e114f1b8352cf627
+monob               f409b47d0aa77abf00a99fc606d77acd
+monow               0b3d0ba64b293a57dbd56bb8bd7a90cc
+nv12                cdfbc478e4f2711212928cba060afa8a
+nv21                62c8a1e4267f0a48a9946eb18374fbe2
+pal8                681325d26ff3773176fbfa113fb91910
+rgb0                7729a2c8fd03501f79e7030a3e0089d5
+rgb24               9f96de897d6f397b6d25f1e0724a5a92
+rgb444be            63cebc0071732dc6942df6487d1997f6
+rgb444le            aa20057cf6373cf573804fc7e3ba360f
+rgb48be             a86fe84e722add23e94021fb62ac9781
+rgb48le             1d63349a3d3452bc9495470879294795
+rgb4_byte           6f384b0665ed41adeadcc004cac6a935
+rgb555be            dde51ef97379c667cb51fe652b5ae04e
+rgb555le            3d9b340ca55ed5289eb642f8a42e66e3
+rgb565be            8f32e9b604916ed3bbf99c2c1dd04909
+rgb565le            e3f5ccfa984c5c2b8dd493ed9a45ae9e
+rgb8                bdf2535c1f3383ba4b3008f96c32c6de
+rgba                13f4661ad6b0ee166fb4175e41e96e5a
+rgba64be            8b5cdd7c2d04f6b09f160ec74da5957b
+rgba64le            542e241404413917e8f00f0cf124f87d
+uyvy422             a94ab6c7a1159ed83ef87ebf17b37895
+xyz12be             d642d2c341f5a9f9f9d49868e33ff23c
+xyz12le             b5d74a2a70cf13f22361a41edf098e68
+yuv410p             792bb725147e7b67912da603caa70551
+yuv411p             b3b7fc81cef53f8cc1b4c31f2809ddaf
+yuv420p             ab6c23bbd22265456c52b40f6bc7736c
+yuv420p10be         5a507c5655903630cf1cd495784c390d
+yuv420p10le         9d7986b9db0797b2a175b0eefc3e41ea
+yuv420p12be         0c0fe234dd9e1e80c583f8919aebf312
+yuv420p12le         7316e8dba1477855c31efe58c7130589
+yuv420p14be         90c45556269bbd2f5737d04c7144bbb4
+yuv420p14le         8df1ca6bc4408f05700f5998bce7ac6a
+yuv420p16be         7a049f453f347ebf1f60046515aca33f
+yuv420p16le         4c2194cd2325e0d3ad9d7145808683f7
+yuv420p9be          cf811aab67969e05374cdb6e94fbd544
+yuv420p9le          d3d160db4008b341d3d6725c02b09b20
+yuv422p             61c2c9d73dc6e6f61377b38faf6a1084
+yuv422p10be         0a1b4e059442fa8c036083a5f4e7bb54
+yuv422p10le         1494f8dcc6a91b6b19e3453f799f48a6
+yuv422p12be         17af2500ee36d476a9020321e9dcf6fa
+yuv422p12le         35798eee15ebb417c61f909fc3feaa4a
+yuv422p14be         08274fee5069169014aa5e7b2ddd6e13
+yuv422p14le         20382836b02b55f3cac9d44e1f1166cc
+yuv422p16be         31509ba74f18bec413ce058ddc0b7c02
+yuv422p16le         86f5c84cdcabaf35e6a52b1a682679f3
+yuv422p9be          444083c77601c191ee5fdc95eef2db89
+yuv422p9le          e9c98f61bd5204481b5f10fcee6661a8
+yuv440p             e8560b7b66cd61c87c2f8af41bce0798
+yuv444p             a051e3269281227e251b351194308223
+yuv444p10be         d71de2807cdb7049b2411ea8149dab71
+yuv444p10le         2a4fefc356ccde68a1a3e36173f0c09e
+yuv444p12be         e2ad01cb773b4124ce240f6b326db237
+yuv444p12le         7d77fe232191b3325bc9262ef9b3ad86
+yuv444p14be         704bd9349fba3be396edf16f2adce8b5
+yuv444p14le         f853461483f3eacffa446adfd6a1d7dd
+yuv444p16be         e9d05aa72b328361542f15afa36d535f
+yuv444p16le         27bc13af2a8054e4c2bd93a0145d5800
+yuv444p9be          1573760e86cfc8189f5b2ad1f43b622e
+yuv444p9le          54f0b205ec42d03e19f99dc061cf9ab4
+yuva420p            6e96f2371f7464b952f596299995d7b0
+yuva420p10be        0d6469ed46c0e6b99d8410426e8f3ba4
+yuva420p10le        7d54232d31b4e07fd96b75eff1ba1eba
+yuva420p16be        93119f88b555864f708928a5086aa100
+yuva420p16le        02a0416524be821f6c42b728225e3ff9
+yuva420p9be         ef8c4e942ebdd7b8286a0765f9077454
+yuva420p9le         f9c962c5dbc10ad389a522a4b4416055
+yuva422p            4155020d04b62ac35e1f71a4f2d7ec1a
+yuva422p10be        ae0315de238061d3e27b2bbb8b4711e9
+yuva422p10le        edd1ab2bb1046c06b6bb0004882a5a21
+yuva422p16be        ab449a31b28732be8fe5fac4c5b2b49d
+yuva422p16le        4efd7c1cc50f3f567a79540ea6fffeff
+yuva422p9be         4b7a3cbde70c62c9a39a74575fe681c8
+yuva422p9le         288e8caf0678744044ba7da63b64ced1
+yuva444p            7710f4cdca0c5ca81c268cbadf7f4d94
+yuva444p10be        f53bed418e1d13b55295f653686500c7
+yuva444p10le        5840f9e665d322e41ede6201a2b543ff
+yuva444p16be        ce5c40588e61c7e096b6572d02bbf174
+yuva444p16le        d2f770c6208fe4ad64e9d48e34216a20
+yuva444p9be         1bc6b734fdd7e73e7c3ccc703115bb4e
+yuva444p9le         7b5f21531d2cee6a8364bb90549f66e2
+yuvj420p            6f2a1aaf4d1891829f500cdd963bde20
+yuvj422p            1b49c2d2b84a613eea363e29d5f03543
+yuvj440p            8aa07c131b656a6c896195838a2b8411
+yuvj444p            bd53886657646cd9029a9b501fa5cc9f
+yuyv422             a3742c0c16f76bea0ed07a1d9e8e08ad
diff --git a/tests/ref/fate/filter-pp b/tests/ref/fate/filter-pp
index 1f7efef..6d3e04d 100644
--- a/tests/ref/fate/filter-pp
+++ b/tests/ref/fate/filter-pp
@@ -1 +1 @@
-pp                  62a6acf1969155f29249fd0757540f9f
+pp                  29015579b199405ef525606c41297f28
diff --git a/tests/ref/fate/filter-pp2 b/tests/ref/fate/filter-pp2
index b32bd1a..b2abf80 100644
--- a/tests/ref/fate/filter-pp2
+++ b/tests/ref/fate/filter-pp2
@@ -1 +1 @@
-pp2                 efcfe545df8f869e3a93ae25a3e08967
+pp2                 fa85d2faedb86c0d5627bcb285ed84b9
diff --git a/tests/ref/fate/filter-pp3 b/tests/ref/fate/filter-pp3
index ccf2eeb..2749179 100644
--- a/tests/ref/fate/filter-pp3
+++ b/tests/ref/fate/filter-pp3
@@ -1 +1 @@
-pp3                 39af1a30d0ea0e906df264773adfcaa6
+pp3                 858d0e0ecc62c8cb2f9be23a94f199f6
diff --git a/tests/ref/fate/filter-pp4 b/tests/ref/fate/filter-pp4
index 0557ca6..62e81d5 100644
--- a/tests/ref/fate/filter-pp4
+++ b/tests/ref/fate/filter-pp4
@@ -1 +1 @@
-pp4                 d79a3727359f62747edb82cc92ed040b
+pp4                 1f6f30d0845833910f9f8351f8cbf73c
diff --git a/tests/ref/fate/filter-pp5 b/tests/ref/fate/filter-pp5
index 4265566..3e6b20f 100644
--- a/tests/ref/fate/filter-pp5
+++ b/tests/ref/fate/filter-pp5
@@ -1 +1 @@
-pp5                 5dc5a1f0c67d8a78e32cf50f47d1b27f
+pp5                 f16f647084f058e21e2e3ae3d7c2b7c4
diff --git a/tests/ref/fate/filter-pp6 b/tests/ref/fate/filter-pp6
index ca40024..8a12fe9 100644
--- a/tests/ref/fate/filter-pp6
+++ b/tests/ref/fate/filter-pp6
@@ -1 +1 @@
-pp6                 40fb584b10082dff87fb947a1bccdbef
+pp6                 71c225db87caac61be54c16c609cf9a8
diff --git a/tests/ref/fate/filter-scale200 b/tests/ref/fate/filter-scale200
index f267522..243e93e 100644
--- a/tests/ref/fate/filter-scale200
+++ b/tests/ref/fate/filter-scale200
@@ -1 +1 @@
-scale200            e84ce966038a9f8f915704959f64278d
+scale200            432567abf0d170019b39841ed6b82d59
diff --git a/tests/ref/fate/filter-scale500 b/tests/ref/fate/filter-scale500
index ec4a699..266f08f 100644
--- a/tests/ref/fate/filter-scale500
+++ b/tests/ref/fate/filter-scale500
@@ -1 +1 @@
-scale500            24e89b23ba4286162c2026181db8d2b7
+scale500            409ffed65fd6d9b119c35b2530343b1b
diff --git a/tests/ref/fate/filter-select b/tests/ref/fate/filter-select
index a9d2be0..81eb222 100644
--- a/tests/ref/fate/filter-select
+++ b/tests/ref/fate/filter-select
@@ -1 +1 @@
-select              7975bb8d0e326af9369379927324f1a6
+select              7f0e82b21381182a0e3d5ec07c481234
diff --git a/tests/ref/fate/filter-setdar b/tests/ref/fate/filter-setdar
index 5bc7d5d..28e3d9b 100644
--- a/tests/ref/fate/filter-setdar
+++ b/tests/ref/fate/filter-setdar
@@ -1 +1 @@
-setdar              04b06d4622b116cdae756d4b475b9d5d
+setdar              4b5ae080189a0b72638236abaacf02ea
diff --git a/tests/ref/fate/filter-setsar b/tests/ref/fate/filter-setsar
index 86592e8..b48945d 100644
--- a/tests/ref/fate/filter-setsar
+++ b/tests/ref/fate/filter-setsar
@@ -1 +1 @@
-setsar              04b06d4622b116cdae756d4b475b9d5d
+setsar              4b5ae080189a0b72638236abaacf02ea
diff --git a/tests/ref/fate/filter-thumbnail b/tests/ref/fate/filter-thumbnail
index 5cfbf50..a902b4b 100644
--- a/tests/ref/fate/filter-thumbnail
+++ b/tests/ref/fate/filter-thumbnail
@@ -1 +1 @@
-thumbnail           33c479d5701943253df5e6adc6bc8746
+thumbnail           b83292ad0166b8356ed51aa494eb6265
diff --git a/tests/ref/fate/filter-tile b/tests/ref/fate/filter-tile
index 376acfc..035276f 100644
--- a/tests/ref/fate/filter-tile
+++ b/tests/ref/fate/filter-tile
@@ -1 +1 @@
-tile                bfd98570151154d078b14398f867f0e8
+tile                4b78b6fe597d1cad32826fa36f79d316
diff --git a/tests/ref/fate/filter-vflip b/tests/ref/fate/filter-vflip
index ee49247..48cf3b2 100644
--- a/tests/ref/fate/filter-vflip
+++ b/tests/ref/fate/filter-vflip
@@ -1 +1 @@
-vflip               c59b35b82b5a195128736021913b35a4
+vflip               ab6c23bbd22265456c52b40f6bc7736c
diff --git a/tests/ref/fate/filter-vflip_crop b/tests/ref/fate/filter-vflip_crop
index 43c944a..13c2083 100644
--- a/tests/ref/fate/filter-vflip_crop
+++ b/tests/ref/fate/filter-vflip_crop
@@ -1 +1 @@
-vflip_crop          cd56578bb7e89ca0853467dfecab244b
+vflip_crop          cfb61f1acddd66254c7ef0aba60c68ec
diff --git a/tests/ref/fate/filter-vflip_vflip b/tests/ref/fate/filter-vflip_vflip
index f401fc7..64edd32 100644
--- a/tests/ref/fate/filter-vflip_vflip
+++ b/tests/ref/fate/filter-vflip_vflip
@@ -1 +1 @@
-vflip_vflip         61fffd2d8425759a33ae07e718d0242d
+vflip_vflip         36b5ec33915bb1f348d7adf79157e52c
diff --git a/tests/ref/lavf/nut b/tests/ref/lavf/nut
index 72e59e8..0633c57 100644
--- a/tests/ref/lavf/nut
+++ b/tests/ref/lavf/nut
@@ -1,3 +1,3 @@
-56c403dd91ae1dd4569348381b2b43a4 *./tests/data/lavf/lavf.nut
-319902 ./tests/data/lavf/lavf.nut
+b083e33e248e45347a43a65bbb28a44b *./tests/data/lavf/lavf.nut
+319903 ./tests/data/lavf/lavf.nut
 ./tests/data/lavf/lavf.nut CRC=0x4780846b
diff --git a/tests/ref/seek/lavf-nut b/tests/ref/seek/lavf-nut
index ef47ceb..f069de8 100644
--- a/tests/ref/seek/lavf-nut
+++ b/tests/ref/seek/lavf-nut
@@ -1,53 +1,53 @@
-ret: 0         st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos:    339 size:   208
+ret: 0         st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos:    340 size:   208
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    567 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    568 size: 27837
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st: 0 flags:0  ts: 0.788340
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st: 0 flags:1  ts:-0.317500
-ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    567 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    568 size: 27837
 ret: 0         st: 1 flags:0  ts: 2.576667
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271260 size:   209
 ret: 0         st: 1 flags:1  ts: 1.470839
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271260 size:   209
 ret: 0         st:-1 flags:0  ts: 0.365002
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st:-1 flags:1  ts:-0.740831
-ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    567 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    568 size: 27837
 ret: 0         st: 0 flags:0  ts: 2.153340
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st: 0 flags:1  ts: 1.047500
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st: 1 flags:0  ts:-0.058322
-ret: 0         st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos:    339 size:   208
+ret: 0         st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos:    340 size:   208
 ret: 0         st: 1 flags:1  ts: 2.835828
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271260 size:   209
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st: 0 flags:0  ts:-0.481660
-ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    567 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    568 size: 27837
 ret: 0         st: 0 flags:1  ts: 2.412500
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st: 1 flags:0  ts: 1.306667
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271260 size:   209
 ret: 0         st: 1 flags:1  ts: 0.200839
-ret: 0         st: 1 flags:1 dts: 0.182857 pts: 0.182857 pos:  71901 size:   209
+ret: 0         st: 1 flags:1 dts: 0.182857 pts: 0.182857 pos:  71902 size:   209
 ret: 0         st:-1 flags:0  ts:-0.904994
-ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    567 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    568 size: 27837
 ret: 0         st:-1 flags:1  ts: 1.989173
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st: 0 flags:0  ts: 0.883340
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st: 0 flags:1  ts:-0.222500
-ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    567 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    568 size: 27837
 ret: 0         st: 1 flags:0  ts: 2.671678
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271260 size:   209
 ret: 0         st: 1 flags:1  ts: 1.565850
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271259 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271260 size:   209
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146434 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.490918 pts: 0.490918 pos: 146435 size: 27925
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    567 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.010918 pts: 0.010918 pos:    568 size: 27837
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list