[FFmpeg-cvslog] nut: store and read the r_frame_rate

Michael Niedermayer git at videolan.org
Tue Oct 2 01:16:19 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct  2 00:41:40 2012 +0200| [e3fb5bc1472c600af628df10e1472a4319781640] | committer: Michael Niedermayer

nut: store and read the r_frame_rate

With this, when we use a finer timebase than neccessary to store
durations the demuxer still knows what the original timebase was.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/nutdec.c                |    6 ++
 libavformat/nutenc.c                |    5 ++
 tests/ref/fate/ffprobe_compact      |   60 ++++++-------
 tests/ref/fate/ffprobe_csv          |   60 ++++++-------
 tests/ref/fate/ffprobe_default      |   64 +++++++-------
 tests/ref/fate/ffprobe_flat         |   64 +++++++-------
 tests/ref/fate/ffprobe_ini          |   64 +++++++-------
 tests/ref/fate/ffprobe_json         |   64 +++++++-------
 tests/ref/fate/ffprobe_xml          |   60 ++++++-------
 tests/ref/lavf/nut                  |    4 +-
 tests/ref/lavfi/alphaextract_rgb    |    2 +-
 tests/ref/lavfi/alphaextract_yuv    |    2 +-
 tests/ref/lavfi/alphamerge_rgb      |    2 +-
 tests/ref/lavfi/alphamerge_yuv      |    2 +-
 tests/ref/lavfi/colormatrix1        |    2 +-
 tests/ref/lavfi/colormatrix2        |    2 +-
 tests/ref/lavfi/crop                |    2 +-
 tests/ref/lavfi/crop_scale          |    2 +-
 tests/ref/lavfi/crop_scale_vflip    |    2 +-
 tests/ref/lavfi/crop_vflip          |    2 +-
 tests/ref/lavfi/drawbox             |    2 +-
 tests/ref/lavfi/edgedetect          |    2 +-
 tests/ref/lavfi/fade                |    2 +-
 tests/ref/lavfi/life                |    2 +-
 tests/ref/lavfi/null                |    2 +-
 tests/ref/lavfi/overlay             |    2 +-
 tests/ref/lavfi/pad                 |    2 +-
 tests/ref/lavfi/pixfmts_copy        |  166 +++++++++++++++++------------------
 tests/ref/lavfi/pixfmts_crop        |   86 +++++++++---------
 tests/ref/lavfi/pixfmts_hflip       |   94 ++++++++++----------
 tests/ref/lavfi/pixfmts_null        |  166 +++++++++++++++++------------------
 tests/ref/lavfi/pixfmts_pad         |   48 +++++-----
 tests/ref/lavfi/pixfmts_pixdesctest |  166 +++++++++++++++++------------------
 tests/ref/lavfi/pixfmts_scale       |  166 +++++++++++++++++------------------
 tests/ref/lavfi/pixfmts_super2xsai  |   28 +++---
 tests/ref/lavfi/pixfmts_vflip       |  166 +++++++++++++++++------------------
 tests/ref/lavfi/pp                  |    2 +-
 tests/ref/lavfi/pp2                 |    2 +-
 tests/ref/lavfi/pp3                 |    2 +-
 tests/ref/lavfi/pp4                 |    2 +-
 tests/ref/lavfi/pp5                 |    2 +-
 tests/ref/lavfi/pp6                 |    2 +-
 tests/ref/lavfi/scale200            |    2 +-
 tests/ref/lavfi/scale500            |    2 +-
 tests/ref/lavfi/select              |    2 +-
 tests/ref/lavfi/setdar              |    2 +-
 tests/ref/lavfi/setsar              |    2 +-
 tests/ref/lavfi/testsrc             |    2 +-
 tests/ref/lavfi/thumbnail           |    2 +-
 tests/ref/lavfi/tile                |    2 +-
 tests/ref/lavfi/tinterlace_merge    |   20 ++---
 tests/ref/lavfi/tinterlace_pad      |   20 ++---
 tests/ref/lavfi/transpose           |    2 +-
 tests/ref/lavfi/unsharp             |    2 +-
 tests/ref/lavfi/vflip               |    2 +-
 tests/ref/lavfi/vflip_crop          |    2 +-
 tests/ref/lavfi/vflip_vflip         |    2 +-
 tests/ref/seek/lavf_nut             |   54 ++++++------
 58 files changed, 857 insertions(+), 846 deletions(-)

diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index d6732b2..d9d115d 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -510,6 +510,12 @@ static int decode_info_header(NUTContext *nut)
                 set_disposition_bits(s, str_value, stream_id_plus1 - 1);
                 continue;
             }
+
+            if (stream_id_plus1 && !strcmp(name, "r_frame_rate")) {
+                sscanf(str_value, "%d/%d", &st->r_frame_rate.num, &st->r_frame_rate.den);
+                continue;
+            }
+
             if (metadata && av_strcasecmp(name, "Uses") &&
                 av_strcasecmp(name, "Depends") && av_strcasecmp(name, "Replaces"))
                 av_dict_set(metadata, name, str_value, 0);
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 955a6fb..5133ade 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -485,6 +485,11 @@ static int write_streaminfo(NUTContext *nut, AVIOContext *bc, int stream_id){
         if (st->disposition & ff_nut_dispositions[i].flag)
             count += add_info(dyn_bc, "Disposition", ff_nut_dispositions[i].str);
     }
+    if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
+        uint8_t buf[256];
+        snprintf(buf, sizeof(buf), "%d/%d", st->codec->time_base.den, st->codec->time_base.num);
+        count += add_info(dyn_bc, "r_frame_rate", buf);
+    }
     dyn_size = avio_close_dyn_buf(dyn_bc, &dyn_buf);
 
     if (count) {
diff --git a/tests/ref/fate/ffprobe_compact b/tests/ref/fate/ffprobe_compact
index 5abc91b..49b77c6 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=403|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=403|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=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=2478|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=1|pkt_duration_time=0.040000|pkt_pos=2478|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|reference=0
-packet|codec_type=video|stream_index=2|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=232899|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=1|pkt_duration_time=0.040000|pkt_pos=232899|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|reference=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=262904|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=262904|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
-packet|codec_type=video|stream_index=1|pts=1|pts_time=0.040000|dts=1|dts_time=0.040000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=264980|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=1|pkt_pts_time=0.040000|pkt_dts=1|pkt_dts_time=0.040000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=264980|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|reference=0
-packet|codec_type=video|stream_index=2|pts=1|pts_time=0.040000|dts=1|dts_time=0.040000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=495402|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=1|pkt_pts_time=0.040000|pkt_dts=1|pkt_dts_time=0.040000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=495402|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|reference=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=525407|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=525407|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=527478|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=527478|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
-packet|codec_type=video|stream_index=1|pts=2|pts_time=0.080000|dts=2|dts_time=0.080000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=529554|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=2|pkt_pts_time=0.080000|pkt_dts=2|pkt_dts_time=0.080000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=529554|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|reference=0
-packet|codec_type=video|stream_index=2|pts=2|pts_time=0.080000|dts=2|dts_time=0.080000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=759976|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=2|pkt_pts_time=0.080000|pkt_dts=2|pkt_dts_time=0.080000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=759976|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|reference=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=789981|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=789981|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=792052|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=792052|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
-packet|codec_type=video|stream_index=1|pts=3|pts_time=0.120000|dts=3|dts_time=0.120000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=794128|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=3|pkt_pts_time=0.120000|pkt_dts=3|pkt_dts_time=0.120000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=794128|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|reference=0
-packet|codec_type=video|stream_index=2|pts=3|pts_time=0.120000|dts=3|dts_time=0.120000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=1024550|flags=K
-frame|media_type=video|key_frame=1|pkt_pts=3|pkt_pts_time=0.120000|pkt_dts=3|pkt_dts_time=0.120000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=1024550|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|reference=0
-stream|index=0|codec_name=pcm_s16le|profile=unknown|codec_type=audio|codec_time_base=1/44100|codec_tag_string=[1][0][0][0]|codec_tag=0x0001|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=527313|duration=11.957211|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
+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=477|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=477|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=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=2552|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=1|pkt_duration_time=0.040000|pkt_pos=2552|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|reference=0
+packet|codec_type=video|stream_index=2|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=232973|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=1|pkt_duration_time=0.040000|pkt_pos=232973|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|reference=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=262978|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=262978|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
+packet|codec_type=video|stream_index=1|pts=1|pts_time=0.040000|dts=1|dts_time=0.040000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=265054|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=1|pkt_pts_time=0.040000|pkt_dts=1|pkt_dts_time=0.040000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=265054|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|reference=0
+packet|codec_type=video|stream_index=2|pts=1|pts_time=0.040000|dts=1|dts_time=0.040000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=495476|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=1|pkt_pts_time=0.040000|pkt_dts=1|pkt_dts_time=0.040000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=495476|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|reference=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=525481|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=525481|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=527552|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=527552|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
+packet|codec_type=video|stream_index=1|pts=2|pts_time=0.080000|dts=2|dts_time=0.080000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=529628|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=2|pkt_pts_time=0.080000|pkt_dts=2|pkt_dts_time=0.080000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=529628|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|reference=0
+packet|codec_type=video|stream_index=2|pts=2|pts_time=0.080000|dts=2|dts_time=0.080000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=760050|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=2|pkt_pts_time=0.080000|pkt_dts=2|pkt_dts_time=0.080000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=760050|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|reference=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=790055|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=790055|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=792126|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=792126|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
+packet|codec_type=video|stream_index=1|pts=3|pts_time=0.120000|dts=3|dts_time=0.120000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=794202|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=3|pkt_pts_time=0.120000|pkt_dts=3|pkt_dts_time=0.120000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=794202|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|reference=0
+packet|codec_type=video|stream_index=2|pts=3|pts_time=0.120000|dts=3|dts_time=0.120000|duration=1|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=1024624|flags=K
+frame|media_type=video|key_frame=1|pkt_pts=3|pkt_pts_time=0.120000|pkt_dts=3|pkt_dts_time=0.120000|pkt_duration=1|pkt_duration_time=0.040000|pkt_pos=1024624|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|reference=0
+stream|index=0|codec_name=pcm_s16le|profile=unknown|codec_type=audio|codec_time_base=1/44100|codec_tag_string=[1][0][0][0]|codec_tag=0x0001|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=527350|duration=11.958050|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
 stream|index=1|codec_name=rawvideo|profile=unknown|codec_type=video|codec_time_base=1/25|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=0/0|time_base=1/25|start_pts=0|start_time=0.000000|duration_ts=299|duration=11.960000|bit_rate=N/A|nb_frames=N/A|nb_read_frames=4|nb_read_packets=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0
 stream|index=2|codec_name=rawvideo|profile=unknown|codec_type=video|codec_time_base=1/25|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=0/0|time_base=1/25|start_pts=0|start_time=0.000000|duration_ts=299|duration=11.960000|bit_rate=N/A|nb_frames=N/A|nb_read_frames=4|nb_read_packets=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0
-format|filename=tests/data/ffprobe-test.nut|nb_streams=3|format_name=nut|start_time=0.000000|duration=11.960000|size=1054625|bit_rate=705434|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=11.960000|size=1054699|bit_rate=705484|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 94f2c51..075e056 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,403,K
-frame,audio,1,0,0.000000,0,0.000000,1024,0.023220,403,s16,1024,1,unknown
-packet,video,1,0,0.000000,0,0.000000,1,0.040000,N/A,N/A,230400,2478,K
-frame,video,1,0,0.000000,0,0.000000,1,0.040000,2478,320,240,rgb24,1:1,I,0,0,0,0,0,0
-packet,video,2,0,0.000000,0,0.000000,1,0.040000,N/A,N/A,30000,232899,K
-frame,video,1,0,0.000000,0,0.000000,1,0.040000,232899,100,100,rgb24,1:1,I,0,0,0,0,0,0
-packet,audio,0,1024,0.023220,1024,0.023220,1024,0.023220,N/A,N/A,2048,262904,K
-frame,audio,1,1024,0.023220,1024,0.023220,1024,0.023220,262904,s16,1024,1,unknown
-packet,video,1,1,0.040000,1,0.040000,1,0.040000,N/A,N/A,230400,264980,K
-frame,video,1,1,0.040000,1,0.040000,1,0.040000,264980,320,240,rgb24,1:1,I,0,0,0,0,0,0
-packet,video,2,1,0.040000,1,0.040000,1,0.040000,N/A,N/A,30000,495402,K
-frame,video,1,1,0.040000,1,0.040000,1,0.040000,495402,100,100,rgb24,1:1,I,0,0,0,0,0,0
-packet,audio,0,2048,0.046440,2048,0.046440,1024,0.023220,N/A,N/A,2048,525407,K
-frame,audio,1,2048,0.046440,2048,0.046440,1024,0.023220,525407,s16,1024,1,unknown
-packet,audio,0,3072,0.069660,3072,0.069660,1024,0.023220,N/A,N/A,2048,527478,K
-frame,audio,1,3072,0.069660,3072,0.069660,1024,0.023220,527478,s16,1024,1,unknown
-packet,video,1,2,0.080000,2,0.080000,1,0.040000,N/A,N/A,230400,529554,K
-frame,video,1,2,0.080000,2,0.080000,1,0.040000,529554,320,240,rgb24,1:1,I,0,0,0,0,0,0
-packet,video,2,2,0.080000,2,0.080000,1,0.040000,N/A,N/A,30000,759976,K
-frame,video,1,2,0.080000,2,0.080000,1,0.040000,759976,100,100,rgb24,1:1,I,0,0,0,0,0,0
-packet,audio,0,4096,0.092880,4096,0.092880,1024,0.023220,N/A,N/A,2048,789981,K
-frame,audio,1,4096,0.092880,4096,0.092880,1024,0.023220,789981,s16,1024,1,unknown
-packet,audio,0,5120,0.116100,5120,0.116100,1024,0.023220,N/A,N/A,2048,792052,K
-frame,audio,1,5120,0.116100,5120,0.116100,1024,0.023220,792052,s16,1024,1,unknown
-packet,video,1,3,0.120000,3,0.120000,1,0.040000,N/A,N/A,230400,794128,K
-frame,video,1,3,0.120000,3,0.120000,1,0.040000,794128,320,240,rgb24,1:1,I,0,0,0,0,0,0
-packet,video,2,3,0.120000,3,0.120000,1,0.040000,N/A,N/A,30000,1024550,K
-frame,video,1,3,0.120000,3,0.120000,1,0.040000,1024550,100,100,rgb24,1:1,I,0,0,0,0,0,0
-stream,0,pcm_s16le,unknown,audio,1/44100,[1][0][0][0],0x0001,s16,44100,1,16,N/A,0/0,0/0,1/44100,0,0.000000,527313,11.957211,705600,N/A,6,6,0,0,0,0,0,0,0,0,0,0,0
+packet,audio,0,0,0.000000,0,0.000000,1024,0.023220,N/A,N/A,2048,477,K
+frame,audio,1,0,0.000000,0,0.000000,1024,0.023220,477,s16,1024,1,unknown
+packet,video,1,0,0.000000,0,0.000000,1,0.040000,N/A,N/A,230400,2552,K
+frame,video,1,0,0.000000,0,0.000000,1,0.040000,2552,320,240,rgb24,1:1,I,0,0,0,0,0,0
+packet,video,2,0,0.000000,0,0.000000,1,0.040000,N/A,N/A,30000,232973,K
+frame,video,1,0,0.000000,0,0.000000,1,0.040000,232973,100,100,rgb24,1:1,I,0,0,0,0,0,0
+packet,audio,0,1024,0.023220,1024,0.023220,1024,0.023220,N/A,N/A,2048,262978,K
+frame,audio,1,1024,0.023220,1024,0.023220,1024,0.023220,262978,s16,1024,1,unknown
+packet,video,1,1,0.040000,1,0.040000,1,0.040000,N/A,N/A,230400,265054,K
+frame,video,1,1,0.040000,1,0.040000,1,0.040000,265054,320,240,rgb24,1:1,I,0,0,0,0,0,0
+packet,video,2,1,0.040000,1,0.040000,1,0.040000,N/A,N/A,30000,495476,K
+frame,video,1,1,0.040000,1,0.040000,1,0.040000,495476,100,100,rgb24,1:1,I,0,0,0,0,0,0
+packet,audio,0,2048,0.046440,2048,0.046440,1024,0.023220,N/A,N/A,2048,525481,K
+frame,audio,1,2048,0.046440,2048,0.046440,1024,0.023220,525481,s16,1024,1,unknown
+packet,audio,0,3072,0.069660,3072,0.069660,1024,0.023220,N/A,N/A,2048,527552,K
+frame,audio,1,3072,0.069660,3072,0.069660,1024,0.023220,527552,s16,1024,1,unknown
+packet,video,1,2,0.080000,2,0.080000,1,0.040000,N/A,N/A,230400,529628,K
+frame,video,1,2,0.080000,2,0.080000,1,0.040000,529628,320,240,rgb24,1:1,I,0,0,0,0,0,0
+packet,video,2,2,0.080000,2,0.080000,1,0.040000,N/A,N/A,30000,760050,K
+frame,video,1,2,0.080000,2,0.080000,1,0.040000,760050,100,100,rgb24,1:1,I,0,0,0,0,0,0
+packet,audio,0,4096,0.092880,4096,0.092880,1024,0.023220,N/A,N/A,2048,790055,K
+frame,audio,1,4096,0.092880,4096,0.092880,1024,0.023220,790055,s16,1024,1,unknown
+packet,audio,0,5120,0.116100,5120,0.116100,1024,0.023220,N/A,N/A,2048,792126,K
+frame,audio,1,5120,0.116100,5120,0.116100,1024,0.023220,792126,s16,1024,1,unknown
+packet,video,1,3,0.120000,3,0.120000,1,0.040000,N/A,N/A,230400,794202,K
+frame,video,1,3,0.120000,3,0.120000,1,0.040000,794202,320,240,rgb24,1:1,I,0,0,0,0,0,0
+packet,video,2,3,0.120000,3,0.120000,1,0.040000,N/A,N/A,30000,1024624,K
+frame,video,1,3,0.120000,3,0.120000,1,0.040000,1024624,100,100,rgb24,1:1,I,0,0,0,0,0,0
+stream,0,pcm_s16le,unknown,audio,1/44100,[1][0][0][0],0x0001,s16,44100,1,16,N/A,0/0,0/0,1/44100,0,0.000000,527350,11.958050,705600,N/A,6,6,0,0,0,0,0,0,0,0,0,0,0
 stream,1,rawvideo,unknown,video,1/25,RGB[24],0x18424752,320,240,0,1:1,4:3,rgb24,-99,N/A,N/A,25/1,0/0,1/25,0,0.000000,299,11.960000,N/A,N/A,4,4,0,0,0,0,0,0,0,0,0,0,0
 stream,2,rawvideo,unknown,video,1/25,RGB[24],0x18424752,100,100,0,1:1,1:1,rgb24,-99,N/A,N/A,25/1,0/0,1/25,0,0.000000,299,11.960000,N/A,N/A,4,4,0,0,0,0,0,0,0,0,0,0,0
-format,tests/data/ffprobe-test.nut,3,nut,0.000000,11.960000,1054625,705434,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,11.960000,1054699,705484,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 093efe3..3c8a89e 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=403
+pos=477
 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=403
+pkt_pos=477
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -40,7 +40,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=2478
+pos=2552
 flags=K
 [/PACKET]
 [FRAME]
@@ -52,7 +52,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=2478
+pkt_pos=2552
 width=320
 height=240
 pix_fmt=rgb24
@@ -77,7 +77,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=232899
+pos=232973
 flags=K
 [/PACKET]
 [FRAME]
@@ -89,7 +89,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=232899
+pkt_pos=232973
 width=100
 height=100
 pix_fmt=rgb24
@@ -114,7 +114,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=262904
+pos=262978
 flags=K
 [/PACKET]
 [FRAME]
@@ -126,7 +126,7 @@ pkt_dts=1024
 pkt_dts_time=0.023220
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=262904
+pkt_pos=262978
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -144,7 +144,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=264980
+pos=265054
 flags=K
 [/PACKET]
 [FRAME]
@@ -156,7 +156,7 @@ pkt_dts=1
 pkt_dts_time=0.040000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=264980
+pkt_pos=265054
 width=320
 height=240
 pix_fmt=rgb24
@@ -181,7 +181,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=495402
+pos=495476
 flags=K
 [/PACKET]
 [FRAME]
@@ -193,7 +193,7 @@ pkt_dts=1
 pkt_dts_time=0.040000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=495402
+pkt_pos=495476
 width=100
 height=100
 pix_fmt=rgb24
@@ -218,7 +218,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=525407
+pos=525481
 flags=K
 [/PACKET]
 [FRAME]
@@ -230,7 +230,7 @@ pkt_dts=2048
 pkt_dts_time=0.046440
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=525407
+pkt_pos=525481
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -248,7 +248,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=527478
+pos=527552
 flags=K
 [/PACKET]
 [FRAME]
@@ -260,7 +260,7 @@ pkt_dts=3072
 pkt_dts_time=0.069660
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=527478
+pkt_pos=527552
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -278,7 +278,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=529554
+pos=529628
 flags=K
 [/PACKET]
 [FRAME]
@@ -290,7 +290,7 @@ pkt_dts=2
 pkt_dts_time=0.080000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=529554
+pkt_pos=529628
 width=320
 height=240
 pix_fmt=rgb24
@@ -315,7 +315,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=759976
+pos=760050
 flags=K
 [/PACKET]
 [FRAME]
@@ -327,7 +327,7 @@ pkt_dts=2
 pkt_dts_time=0.080000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=759976
+pkt_pos=760050
 width=100
 height=100
 pix_fmt=rgb24
@@ -352,7 +352,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=789981
+pos=790055
 flags=K
 [/PACKET]
 [FRAME]
@@ -364,7 +364,7 @@ pkt_dts=4096
 pkt_dts_time=0.092880
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=789981
+pkt_pos=790055
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -382,7 +382,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=792052
+pos=792126
 flags=K
 [/PACKET]
 [FRAME]
@@ -394,7 +394,7 @@ pkt_dts=5120
 pkt_dts_time=0.116100
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=792052
+pkt_pos=792126
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -412,7 +412,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=794128
+pos=794202
 flags=K
 [/PACKET]
 [FRAME]
@@ -424,7 +424,7 @@ pkt_dts=3
 pkt_dts_time=0.120000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=794128
+pkt_pos=794202
 width=320
 height=240
 pix_fmt=rgb24
@@ -449,7 +449,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=1024550
+pos=1024624
 flags=K
 [/PACKET]
 [FRAME]
@@ -461,7 +461,7 @@ pkt_dts=3
 pkt_dts_time=0.120000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=1024550
+pkt_pos=1024624
 width=100
 height=100
 pix_fmt=rgb24
@@ -492,8 +492,8 @@ avg_frame_rate=0/0
 time_base=1/44100
 start_pts=0
 start_time=0.000000
-duration_ts=527313
-duration=11.957211
+duration_ts=527350
+duration=11.958050
 bit_rate=705600
 nb_frames=N/A
 nb_read_frames=6
@@ -596,8 +596,8 @@ nb_streams=3
 format_name=nut
 start_time=0.000000
 duration=11.960000
-size=1054625
-bit_rate=705434
+size=1054699
+bit_rate=705484
 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 5a0b6d8..f5201d0 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="403"
+packets_and_frames.packet.0.pos="477"
 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="403"
+packets_and_frames.frame.0.pkt_pos="477"
 packets_and_frames.frame.0.sample_fmt="s16"
 packets_and_frames.frame.0.nb_samples=1024
 packets_and_frames.frame.0.channels=1
@@ -35,7 +35,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="2478"
+packets_and_frames.packet.1.pos="2552"
 packets_and_frames.packet.1.flags="K"
 packets_and_frames.frame.1.media_type="video"
 packets_and_frames.frame.1.key_frame=1
@@ -45,7 +45,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=1
 packets_and_frames.frame.1.pkt_duration_time="0.040000"
-packets_and_frames.frame.1.pkt_pos="2478"
+packets_and_frames.frame.1.pkt_pos="2552"
 packets_and_frames.frame.1.width=320
 packets_and_frames.frame.1.height=240
 packets_and_frames.frame.1.pix_fmt="rgb24"
@@ -68,7 +68,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="232899"
+packets_and_frames.packet.2.pos="232973"
 packets_and_frames.packet.2.flags="K"
 packets_and_frames.frame.2.media_type="video"
 packets_and_frames.frame.2.key_frame=1
@@ -78,7 +78,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=1
 packets_and_frames.frame.2.pkt_duration_time="0.040000"
-packets_and_frames.frame.2.pkt_pos="232899"
+packets_and_frames.frame.2.pkt_pos="232973"
 packets_and_frames.frame.2.width=100
 packets_and_frames.frame.2.height=100
 packets_and_frames.frame.2.pix_fmt="rgb24"
@@ -101,7 +101,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="262904"
+packets_and_frames.packet.3.pos="262978"
 packets_and_frames.packet.3.flags="K"
 packets_and_frames.frame.3.media_type="audio"
 packets_and_frames.frame.3.key_frame=1
@@ -111,7 +111,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="262904"
+packets_and_frames.frame.3.pkt_pos="262978"
 packets_and_frames.frame.3.sample_fmt="s16"
 packets_and_frames.frame.3.nb_samples=1024
 packets_and_frames.frame.3.channels=1
@@ -127,7 +127,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="264980"
+packets_and_frames.packet.4.pos="265054"
 packets_and_frames.packet.4.flags="K"
 packets_and_frames.frame.4.media_type="video"
 packets_and_frames.frame.4.key_frame=1
@@ -137,7 +137,7 @@ packets_and_frames.frame.4.pkt_dts=1
 packets_and_frames.frame.4.pkt_dts_time="0.040000"
 packets_and_frames.frame.4.pkt_duration=1
 packets_and_frames.frame.4.pkt_duration_time="0.040000"
-packets_and_frames.frame.4.pkt_pos="264980"
+packets_and_frames.frame.4.pkt_pos="265054"
 packets_and_frames.frame.4.width=320
 packets_and_frames.frame.4.height=240
 packets_and_frames.frame.4.pix_fmt="rgb24"
@@ -160,7 +160,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="495402"
+packets_and_frames.packet.5.pos="495476"
 packets_and_frames.packet.5.flags="K"
 packets_and_frames.frame.5.media_type="video"
 packets_and_frames.frame.5.key_frame=1
@@ -170,7 +170,7 @@ packets_and_frames.frame.5.pkt_dts=1
 packets_and_frames.frame.5.pkt_dts_time="0.040000"
 packets_and_frames.frame.5.pkt_duration=1
 packets_and_frames.frame.5.pkt_duration_time="0.040000"
-packets_and_frames.frame.5.pkt_pos="495402"
+packets_and_frames.frame.5.pkt_pos="495476"
 packets_and_frames.frame.5.width=100
 packets_and_frames.frame.5.height=100
 packets_and_frames.frame.5.pix_fmt="rgb24"
@@ -193,7 +193,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="525407"
+packets_and_frames.packet.6.pos="525481"
 packets_and_frames.packet.6.flags="K"
 packets_and_frames.frame.6.media_type="audio"
 packets_and_frames.frame.6.key_frame=1
@@ -203,7 +203,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="525407"
+packets_and_frames.frame.6.pkt_pos="525481"
 packets_and_frames.frame.6.sample_fmt="s16"
 packets_and_frames.frame.6.nb_samples=1024
 packets_and_frames.frame.6.channels=1
@@ -219,7 +219,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="527478"
+packets_and_frames.packet.7.pos="527552"
 packets_and_frames.packet.7.flags="K"
 packets_and_frames.frame.7.media_type="audio"
 packets_and_frames.frame.7.key_frame=1
@@ -229,7 +229,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="527478"
+packets_and_frames.frame.7.pkt_pos="527552"
 packets_and_frames.frame.7.sample_fmt="s16"
 packets_and_frames.frame.7.nb_samples=1024
 packets_and_frames.frame.7.channels=1
@@ -245,7 +245,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="529554"
+packets_and_frames.packet.8.pos="529628"
 packets_and_frames.packet.8.flags="K"
 packets_and_frames.frame.8.media_type="video"
 packets_and_frames.frame.8.key_frame=1
@@ -255,7 +255,7 @@ packets_and_frames.frame.8.pkt_dts=2
 packets_and_frames.frame.8.pkt_dts_time="0.080000"
 packets_and_frames.frame.8.pkt_duration=1
 packets_and_frames.frame.8.pkt_duration_time="0.040000"
-packets_and_frames.frame.8.pkt_pos="529554"
+packets_and_frames.frame.8.pkt_pos="529628"
 packets_and_frames.frame.8.width=320
 packets_and_frames.frame.8.height=240
 packets_and_frames.frame.8.pix_fmt="rgb24"
@@ -278,7 +278,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="759976"
+packets_and_frames.packet.9.pos="760050"
 packets_and_frames.packet.9.flags="K"
 packets_and_frames.frame.9.media_type="video"
 packets_and_frames.frame.9.key_frame=1
@@ -288,7 +288,7 @@ packets_and_frames.frame.9.pkt_dts=2
 packets_and_frames.frame.9.pkt_dts_time="0.080000"
 packets_and_frames.frame.9.pkt_duration=1
 packets_and_frames.frame.9.pkt_duration_time="0.040000"
-packets_and_frames.frame.9.pkt_pos="759976"
+packets_and_frames.frame.9.pkt_pos="760050"
 packets_and_frames.frame.9.width=100
 packets_and_frames.frame.9.height=100
 packets_and_frames.frame.9.pix_fmt="rgb24"
@@ -311,7 +311,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="789981"
+packets_and_frames.packet.10.pos="790055"
 packets_and_frames.packet.10.flags="K"
 packets_and_frames.frame.10.media_type="audio"
 packets_and_frames.frame.10.key_frame=1
@@ -321,7 +321,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="789981"
+packets_and_frames.frame.10.pkt_pos="790055"
 packets_and_frames.frame.10.sample_fmt="s16"
 packets_and_frames.frame.10.nb_samples=1024
 packets_and_frames.frame.10.channels=1
@@ -337,7 +337,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="792052"
+packets_and_frames.packet.11.pos="792126"
 packets_and_frames.packet.11.flags="K"
 packets_and_frames.frame.11.media_type="audio"
 packets_and_frames.frame.11.key_frame=1
@@ -347,7 +347,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="792052"
+packets_and_frames.frame.11.pkt_pos="792126"
 packets_and_frames.frame.11.sample_fmt="s16"
 packets_and_frames.frame.11.nb_samples=1024
 packets_and_frames.frame.11.channels=1
@@ -363,7 +363,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="794128"
+packets_and_frames.packet.12.pos="794202"
 packets_and_frames.packet.12.flags="K"
 packets_and_frames.frame.12.media_type="video"
 packets_and_frames.frame.12.key_frame=1
@@ -373,7 +373,7 @@ packets_and_frames.frame.12.pkt_dts=3
 packets_and_frames.frame.12.pkt_dts_time="0.120000"
 packets_and_frames.frame.12.pkt_duration=1
 packets_and_frames.frame.12.pkt_duration_time="0.040000"
-packets_and_frames.frame.12.pkt_pos="794128"
+packets_and_frames.frame.12.pkt_pos="794202"
 packets_and_frames.frame.12.width=320
 packets_and_frames.frame.12.height=240
 packets_and_frames.frame.12.pix_fmt="rgb24"
@@ -396,7 +396,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="1024550"
+packets_and_frames.packet.13.pos="1024624"
 packets_and_frames.packet.13.flags="K"
 packets_and_frames.frame.13.media_type="video"
 packets_and_frames.frame.13.key_frame=1
@@ -406,7 +406,7 @@ packets_and_frames.frame.13.pkt_dts=3
 packets_and_frames.frame.13.pkt_dts_time="0.120000"
 packets_and_frames.frame.13.pkt_duration=1
 packets_and_frames.frame.13.pkt_duration_time="0.040000"
-packets_and_frames.frame.13.pkt_pos="1024550"
+packets_and_frames.frame.13.pkt_pos="1024624"
 packets_and_frames.frame.13.width=100
 packets_and_frames.frame.13.height=100
 packets_and_frames.frame.13.pix_fmt="rgb24"
@@ -435,8 +435,8 @@ streams.stream.0.avg_frame_rate="0/0"
 streams.stream.0.time_base="1/44100"
 streams.stream.0.start_pts=0
 streams.stream.0.start_time="0.000000"
-streams.stream.0.duration_ts=527313
-streams.stream.0.duration="11.957211"
+streams.stream.0.duration_ts=527350
+streams.stream.0.duration="11.958050"
 streams.stream.0.bit_rate="705600"
 streams.stream.0.nb_frames="N/A"
 streams.stream.0.nb_read_frames="6"
@@ -533,8 +533,8 @@ format.nb_streams=3
 format.format_name="nut"
 format.start_time="0.000000"
 format.duration="11.960000"
-format.size="1054625"
-format.bit_rate="705434"
+format.size="1054699"
+format.bit_rate="705484"
 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 9a5c197..dad636b 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=403
+pos=477
 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=403
+pkt_pos=477
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -42,7 +42,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=2478
+pos=2552
 flags=K
 
 [packets_and_frames.frame.1]
@@ -54,7 +54,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=2478
+pkt_pos=2552
 width=320
 height=240
 pix_fmt=rgb24
@@ -79,7 +79,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=232899
+pos=232973
 flags=K
 
 [packets_and_frames.frame.2]
@@ -91,7 +91,7 @@ pkt_dts=0
 pkt_dts_time=0.000000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=232899
+pkt_pos=232973
 width=100
 height=100
 pix_fmt=rgb24
@@ -116,7 +116,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=262904
+pos=262978
 flags=K
 
 [packets_and_frames.frame.3]
@@ -128,7 +128,7 @@ pkt_dts=1024
 pkt_dts_time=0.023220
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=262904
+pkt_pos=262978
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -146,7 +146,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=264980
+pos=265054
 flags=K
 
 [packets_and_frames.frame.4]
@@ -158,7 +158,7 @@ pkt_dts=1
 pkt_dts_time=0.040000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=264980
+pkt_pos=265054
 width=320
 height=240
 pix_fmt=rgb24
@@ -183,7 +183,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=495402
+pos=495476
 flags=K
 
 [packets_and_frames.frame.5]
@@ -195,7 +195,7 @@ pkt_dts=1
 pkt_dts_time=0.040000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=495402
+pkt_pos=495476
 width=100
 height=100
 pix_fmt=rgb24
@@ -220,7 +220,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=525407
+pos=525481
 flags=K
 
 [packets_and_frames.frame.6]
@@ -232,7 +232,7 @@ pkt_dts=2048
 pkt_dts_time=0.046440
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=525407
+pkt_pos=525481
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -250,7 +250,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=527478
+pos=527552
 flags=K
 
 [packets_and_frames.frame.7]
@@ -262,7 +262,7 @@ pkt_dts=3072
 pkt_dts_time=0.069660
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=527478
+pkt_pos=527552
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -280,7 +280,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=529554
+pos=529628
 flags=K
 
 [packets_and_frames.frame.8]
@@ -292,7 +292,7 @@ pkt_dts=2
 pkt_dts_time=0.080000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=529554
+pkt_pos=529628
 width=320
 height=240
 pix_fmt=rgb24
@@ -317,7 +317,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=759976
+pos=760050
 flags=K
 
 [packets_and_frames.frame.9]
@@ -329,7 +329,7 @@ pkt_dts=2
 pkt_dts_time=0.080000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=759976
+pkt_pos=760050
 width=100
 height=100
 pix_fmt=rgb24
@@ -354,7 +354,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=789981
+pos=790055
 flags=K
 
 [packets_and_frames.frame.10]
@@ -366,7 +366,7 @@ pkt_dts=4096
 pkt_dts_time=0.092880
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=789981
+pkt_pos=790055
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -384,7 +384,7 @@ duration_time=0.023220
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=2048
-pos=792052
+pos=792126
 flags=K
 
 [packets_and_frames.frame.11]
@@ -396,7 +396,7 @@ pkt_dts=5120
 pkt_dts_time=0.116100
 pkt_duration=1024
 pkt_duration_time=0.023220
-pkt_pos=792052
+pkt_pos=792126
 sample_fmt=s16
 nb_samples=1024
 channels=1
@@ -414,7 +414,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=230400
-pos=794128
+pos=794202
 flags=K
 
 [packets_and_frames.frame.12]
@@ -426,7 +426,7 @@ pkt_dts=3
 pkt_dts_time=0.120000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=794128
+pkt_pos=794202
 width=320
 height=240
 pix_fmt=rgb24
@@ -451,7 +451,7 @@ duration_time=0.040000
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=30000
-pos=1024550
+pos=1024624
 flags=K
 
 [packets_and_frames.frame.13]
@@ -463,7 +463,7 @@ pkt_dts=3
 pkt_dts_time=0.120000
 pkt_duration=1
 pkt_duration_time=0.040000
-pkt_pos=1024550
+pkt_pos=1024624
 width=100
 height=100
 pix_fmt=rgb24
@@ -494,8 +494,8 @@ avg_frame_rate=0/0
 time_base=1/44100
 start_pts=0
 start_time=0.000000
-duration_ts=527313
-duration=11.957211
+duration_ts=527350
+duration=11.958050
 bit_rate=705600
 nb_frames=N/A
 nb_read_frames=6
@@ -604,8 +604,8 @@ nb_streams=3
 format_name=nut
 start_time=0.000000
 duration=11.960000
-size=1054625
-bit_rate=705434
+size=1054699
+bit_rate=705484
 
 [format.tags]
 title=ffprobe test file
diff --git a/tests/ref/fate/ffprobe_json b/tests/ref/fate/ffprobe_json
index 19fa7b8..beaff81 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": "403",
+            "pos": "477",
             "flags": "K"
         },
         {
@@ -24,7 +24,7 @@
             "pkt_dts_time": "0.000000",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "403",
+            "pkt_pos": "477",
             "sample_fmt": "s16",
             "nb_samples": 1024,
             "channels": 1
@@ -40,7 +40,7 @@
             "duration": 1,
             "duration_time": "0.040000",
             "size": "230400",
-            "pos": "2478",
+            "pos": "2552",
             "flags": "K"
         },
         {
@@ -53,7 +53,7 @@
             "pkt_dts_time": "0.000000",
             "pkt_duration": 1,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "2478",
+            "pkt_pos": "2552",
             "width": 320,
             "height": 240,
             "pix_fmt": "rgb24",
@@ -77,7 +77,7 @@
             "duration": 1,
             "duration_time": "0.040000",
             "size": "30000",
-            "pos": "232899",
+            "pos": "232973",
             "flags": "K"
         },
         {
@@ -90,7 +90,7 @@
             "pkt_dts_time": "0.000000",
             "pkt_duration": 1,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "232899",
+            "pkt_pos": "232973",
             "width": 100,
             "height": 100,
             "pix_fmt": "rgb24",
@@ -114,7 +114,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "262904",
+            "pos": "262978",
             "flags": "K"
         },
         {
@@ -127,7 +127,7 @@
             "pkt_dts_time": "0.023220",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "262904",
+            "pkt_pos": "262978",
             "sample_fmt": "s16",
             "nb_samples": 1024,
             "channels": 1
@@ -143,7 +143,7 @@
             "duration": 1,
             "duration_time": "0.040000",
             "size": "230400",
-            "pos": "264980",
+            "pos": "265054",
             "flags": "K"
         },
         {
@@ -156,7 +156,7 @@
             "pkt_dts_time": "0.040000",
             "pkt_duration": 1,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "264980",
+            "pkt_pos": "265054",
             "width": 320,
             "height": 240,
             "pix_fmt": "rgb24",
@@ -180,7 +180,7 @@
             "duration": 1,
             "duration_time": "0.040000",
             "size": "30000",
-            "pos": "495402",
+            "pos": "495476",
             "flags": "K"
         },
         {
@@ -193,7 +193,7 @@
             "pkt_dts_time": "0.040000",
             "pkt_duration": 1,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "495402",
+            "pkt_pos": "495476",
             "width": 100,
             "height": 100,
             "pix_fmt": "rgb24",
@@ -217,7 +217,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "525407",
+            "pos": "525481",
             "flags": "K"
         },
         {
@@ -230,7 +230,7 @@
             "pkt_dts_time": "0.046440",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "525407",
+            "pkt_pos": "525481",
             "sample_fmt": "s16",
             "nb_samples": 1024,
             "channels": 1
@@ -246,7 +246,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "527478",
+            "pos": "527552",
             "flags": "K"
         },
         {
@@ -259,7 +259,7 @@
             "pkt_dts_time": "0.069660",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "527478",
+            "pkt_pos": "527552",
             "sample_fmt": "s16",
             "nb_samples": 1024,
             "channels": 1
@@ -275,7 +275,7 @@
             "duration": 1,
             "duration_time": "0.040000",
             "size": "230400",
-            "pos": "529554",
+            "pos": "529628",
             "flags": "K"
         },
         {
@@ -288,7 +288,7 @@
             "pkt_dts_time": "0.080000",
             "pkt_duration": 1,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "529554",
+            "pkt_pos": "529628",
             "width": 320,
             "height": 240,
             "pix_fmt": "rgb24",
@@ -312,7 +312,7 @@
             "duration": 1,
             "duration_time": "0.040000",
             "size": "30000",
-            "pos": "759976",
+            "pos": "760050",
             "flags": "K"
         },
         {
@@ -325,7 +325,7 @@
             "pkt_dts_time": "0.080000",
             "pkt_duration": 1,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "759976",
+            "pkt_pos": "760050",
             "width": 100,
             "height": 100,
             "pix_fmt": "rgb24",
@@ -349,7 +349,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "789981",
+            "pos": "790055",
             "flags": "K"
         },
         {
@@ -362,7 +362,7 @@
             "pkt_dts_time": "0.092880",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "789981",
+            "pkt_pos": "790055",
             "sample_fmt": "s16",
             "nb_samples": 1024,
             "channels": 1
@@ -378,7 +378,7 @@
             "duration": 1024,
             "duration_time": "0.023220",
             "size": "2048",
-            "pos": "792052",
+            "pos": "792126",
             "flags": "K"
         },
         {
@@ -391,7 +391,7 @@
             "pkt_dts_time": "0.116100",
             "pkt_duration": 1024,
             "pkt_duration_time": "0.023220",
-            "pkt_pos": "792052",
+            "pkt_pos": "792126",
             "sample_fmt": "s16",
             "nb_samples": 1024,
             "channels": 1
@@ -407,7 +407,7 @@
             "duration": 1,
             "duration_time": "0.040000",
             "size": "230400",
-            "pos": "794128",
+            "pos": "794202",
             "flags": "K"
         },
         {
@@ -420,7 +420,7 @@
             "pkt_dts_time": "0.120000",
             "pkt_duration": 1,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "794128",
+            "pkt_pos": "794202",
             "width": 320,
             "height": 240,
             "pix_fmt": "rgb24",
@@ -444,7 +444,7 @@
             "duration": 1,
             "duration_time": "0.040000",
             "size": "30000",
-            "pos": "1024550",
+            "pos": "1024624",
             "flags": "K"
         },
         {
@@ -457,7 +457,7 @@
             "pkt_dts_time": "0.120000",
             "pkt_duration": 1,
             "pkt_duration_time": "0.040000",
-            "pkt_pos": "1024550",
+            "pkt_pos": "1024624",
             "width": 100,
             "height": 100,
             "pix_fmt": "rgb24",
@@ -488,8 +488,8 @@
             "time_base": "1/44100",
             "start_pts": 0,
             "start_time": "0.000000",
-            "duration_ts": 527313,
-            "duration": "11.957211",
+            "duration_ts": 527350,
+            "duration": "11.958050",
             "bit_rate": "705600",
             "nb_read_frames": "6",
             "nb_read_packets": "6",
@@ -588,8 +588,8 @@
         "format_name": "nut",
         "start_time": "0.000000",
         "duration": "11.960000",
-        "size": "1054625",
-        "bit_rate": "705434",
+        "size": "1054699",
+        "bit_rate": "705484",
         "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 8308e42..1b7e088 100644
--- a/tests/ref/fate/ffprobe_xml
+++ b/tests/ref/fate/ffprobe_xml
@@ -1,38 +1,38 @@
 <?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="403" 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="403" 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="1" duration_time="0.040000" size="230400" pos="2478" 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="1" pkt_duration_time="0.040000" pkt_pos="2478" 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" reference="0"/>
-        <packet codec_type="video" stream_index="2" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="1" duration_time="0.040000" size="30000" pos="232899" 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="1" pkt_duration_time="0.040000" pkt_pos="232899" 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" reference="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="262904" 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="262904" sample_fmt="s16" nb_samples="1024" channels="1"/>
-        <packet codec_type="video" stream_index="1" pts="1" pts_time="0.040000" dts="1" dts_time="0.040000" duration="1" duration_time="0.040000" size="230400" pos="264980" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="1" pkt_pts_time="0.040000" pkt_dts="1" pkt_dts_time="0.040000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="264980" 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" reference="0"/>
-        <packet codec_type="video" stream_index="2" pts="1" pts_time="0.040000" dts="1" dts_time="0.040000" duration="1" duration_time="0.040000" size="30000" pos="495402" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="1" pkt_pts_time="0.040000" pkt_dts="1" pkt_dts_time="0.040000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="495402" 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" reference="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="525407" 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="525407" 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="527478" 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="527478" sample_fmt="s16" nb_samples="1024" channels="1"/>
-        <packet codec_type="video" stream_index="1" pts="2" pts_time="0.080000" dts="2" dts_time="0.080000" duration="1" duration_time="0.040000" size="230400" pos="529554" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="2" pkt_pts_time="0.080000" pkt_dts="2" pkt_dts_time="0.080000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="529554" 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" reference="0"/>
-        <packet codec_type="video" stream_index="2" pts="2" pts_time="0.080000" dts="2" dts_time="0.080000" duration="1" duration_time="0.040000" size="30000" pos="759976" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="2" pkt_pts_time="0.080000" pkt_dts="2" pkt_dts_time="0.080000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="759976" 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" reference="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="789981" 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="789981" 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="792052" 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="792052" sample_fmt="s16" nb_samples="1024" channels="1"/>
-        <packet codec_type="video" stream_index="1" pts="3" pts_time="0.120000" dts="3" dts_time="0.120000" duration="1" duration_time="0.040000" size="230400" pos="794128" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="3" pkt_pts_time="0.120000" pkt_dts="3" pkt_dts_time="0.120000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="794128" 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" reference="0"/>
-        <packet codec_type="video" stream_index="2" pts="3" pts_time="0.120000" dts="3" dts_time="0.120000" duration="1" duration_time="0.040000" size="30000" pos="1024550" flags="K"/>
-        <frame media_type="video" key_frame="1" pkt_pts="3" pkt_pts_time="0.120000" pkt_dts="3" pkt_dts_time="0.120000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="1024550" 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" reference="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="477" 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="477" 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="1" duration_time="0.040000" size="230400" pos="2552" 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="1" pkt_duration_time="0.040000" pkt_pos="2552" 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" reference="0"/>
+        <packet codec_type="video" stream_index="2" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="1" duration_time="0.040000" size="30000" pos="232973" 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="1" pkt_duration_time="0.040000" pkt_pos="232973" 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" reference="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="262978" 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="262978" sample_fmt="s16" nb_samples="1024" channels="1"/>
+        <packet codec_type="video" stream_index="1" pts="1" pts_time="0.040000" dts="1" dts_time="0.040000" duration="1" duration_time="0.040000" size="230400" pos="265054" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="1" pkt_pts_time="0.040000" pkt_dts="1" pkt_dts_time="0.040000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="265054" 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" reference="0"/>
+        <packet codec_type="video" stream_index="2" pts="1" pts_time="0.040000" dts="1" dts_time="0.040000" duration="1" duration_time="0.040000" size="30000" pos="495476" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="1" pkt_pts_time="0.040000" pkt_dts="1" pkt_dts_time="0.040000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="495476" 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" reference="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="525481" 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="525481" 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="527552" 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="527552" sample_fmt="s16" nb_samples="1024" channels="1"/>
+        <packet codec_type="video" stream_index="1" pts="2" pts_time="0.080000" dts="2" dts_time="0.080000" duration="1" duration_time="0.040000" size="230400" pos="529628" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="2" pkt_pts_time="0.080000" pkt_dts="2" pkt_dts_time="0.080000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="529628" 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" reference="0"/>
+        <packet codec_type="video" stream_index="2" pts="2" pts_time="0.080000" dts="2" dts_time="0.080000" duration="1" duration_time="0.040000" size="30000" pos="760050" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="2" pkt_pts_time="0.080000" pkt_dts="2" pkt_dts_time="0.080000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="760050" 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" reference="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="790055" 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="790055" 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="792126" 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="792126" sample_fmt="s16" nb_samples="1024" channels="1"/>
+        <packet codec_type="video" stream_index="1" pts="3" pts_time="0.120000" dts="3" dts_time="0.120000" duration="1" duration_time="0.040000" size="230400" pos="794202" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="3" pkt_pts_time="0.120000" pkt_dts="3" pkt_dts_time="0.120000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="794202" 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" reference="0"/>
+        <packet codec_type="video" stream_index="2" pts="3" pts_time="0.120000" dts="3" dts_time="0.120000" duration="1" duration_time="0.040000" size="30000" pos="1024624" flags="K"/>
+        <frame media_type="video" key_frame="1" pkt_pts="3" pkt_pts_time="0.120000" pkt_dts="3" pkt_dts_time="0.120000" pkt_duration="1" pkt_duration_time="0.040000" pkt_pos="1024624" 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" reference="0"/>
     </packets_and_frames>
 
     <streams>
-        <stream index="0" codec_name="pcm_s16le" codec_type="audio" codec_time_base="1/44100" codec_tag_string="[1][0][0][0]" codec_tag="0x0001" sample_fmt="s16" sample_rate="44100" channels="1" bits_per_sample="16" r_frame_rate="0/0" avg_frame_rate="0/0" time_base="1/44100" start_pts="0" start_time="0.000000" duration_ts="527313" duration="11.957211" bit_rate="705600" nb_read_frames="6" nb_read_packets="6">
+        <stream index="0" codec_name="pcm_s16le" codec_type="audio" codec_time_base="1/44100" codec_tag_string="[1][0][0][0]" codec_tag="0x0001" sample_fmt="s16" sample_rate="44100" channels="1" bits_per_sample="16" r_frame_rate="0/0" avg_frame_rate="0/0" time_base="1/44100" start_pts="0" start_time="0.000000" duration_ts="527350" duration="11.958050" bit_rate="705600" nb_read_frames="6" nb_read_packets="6">
             <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="0" forced="0" hearing_impaired="0" visual_impaired="0" clean_effects="0" attached_pic="0"/>
         </stream>
         <stream index="1" codec_name="rawvideo" codec_type="video" codec_time_base="1/25" codec_tag_string="RGB[24]" codec_tag="0x18424752" width="320" height="240" has_b_frames="0" sample_aspect_ratio="1:1" display_aspect_ratio="4:3" pix_fmt="rgb24" level="-99" r_frame_rate="25/1" avg_frame_rate="0/0" time_base="1/25" start_pts="0" start_time="0.000000" duration_ts="299" duration="11.960000" nb_read_frames="4" nb_read_packets="4">
@@ -43,7 +43,7 @@
         </stream>
     </streams>
 
-    <format filename="tests/data/ffprobe-test.nut" nb_streams="3" format_name="nut" start_time="0.000000" duration="11.960000" size="1054625" bit_rate="705434">
+    <format filename="tests/data/ffprobe-test.nut" nb_streams="3" format_name="nut" start_time="0.000000" duration="11.960000" size="1054699" bit_rate="705484">
         <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/lavf/nut b/tests/ref/lavf/nut
index 83cfda8..5e5df36 100644
--- a/tests/ref/lavf/nut
+++ b/tests/ref/lavf/nut
@@ -1,3 +1,3 @@
-6f0770a8eee4d6533d6520a1a62d3439 *./tests/data/lavf/lavf.nut
-319823 ./tests/data/lavf/lavf.nut
+3698d68a629551fca24a6e6af4f07585 *./tests/data/lavf/lavf.nut
+319860 ./tests/data/lavf/lavf.nut
 ./tests/data/lavf/lavf.nut CRC=0x3667030f
diff --git a/tests/ref/lavfi/alphaextract_rgb b/tests/ref/lavfi/alphaextract_rgb
index 47334e7..dcad785 100644
--- a/tests/ref/lavfi/alphaextract_rgb
+++ b/tests/ref/lavfi/alphaextract_rgb
@@ -1 +1 @@
-alphaextract_rgb    c855193d17be9c54b67c17984c7d7e0f
+alphaextract_rgb    193a965bfc9bdab8a873b3e10c393c45
diff --git a/tests/ref/lavfi/alphaextract_yuv b/tests/ref/lavfi/alphaextract_yuv
index 9f7ea33..225e763 100644
--- a/tests/ref/lavfi/alphaextract_yuv
+++ b/tests/ref/lavfi/alphaextract_yuv
@@ -1 +1 @@
-alphaextract_yuv    8d0b7740687981d2bfc9b5752eae900f
+alphaextract_yuv    527f7432973bec34b79b3774802dfc46
diff --git a/tests/ref/lavfi/alphamerge_rgb b/tests/ref/lavfi/alphamerge_rgb
index 2cf6407..d49f4ff 100644
--- a/tests/ref/lavfi/alphamerge_rgb
+++ b/tests/ref/lavfi/alphamerge_rgb
@@ -1 +1 @@
-alphamerge_rgb      c855193d17be9c54b67c17984c7d7e0f
+alphamerge_rgb      193a965bfc9bdab8a873b3e10c393c45
diff --git a/tests/ref/lavfi/alphamerge_yuv b/tests/ref/lavfi/alphamerge_yuv
index 96a849d..59556be 100644
--- a/tests/ref/lavfi/alphamerge_yuv
+++ b/tests/ref/lavfi/alphamerge_yuv
@@ -1 +1 @@
-alphamerge_yuv      8d0b7740687981d2bfc9b5752eae900f
+alphamerge_yuv      527f7432973bec34b79b3774802dfc46
diff --git a/tests/ref/lavfi/colormatrix1 b/tests/ref/lavfi/colormatrix1
index b6d361f..1414850 100644
--- a/tests/ref/lavfi/colormatrix1
+++ b/tests/ref/lavfi/colormatrix1
@@ -1 +1 @@
-colormatrix1        8ee2d4a88ccffc806ac58bc05c95848b
+colormatrix1        62712b752005e914f61c0ca0e5bad3d8
diff --git a/tests/ref/lavfi/colormatrix2 b/tests/ref/lavfi/colormatrix2
index 0df5a7c..b6eb5b0 100644
--- a/tests/ref/lavfi/colormatrix2
+++ b/tests/ref/lavfi/colormatrix2
@@ -1 +1 @@
-colormatrix2        fa314c32710d9d5d420c12a0f05c3b64
+colormatrix2        e878a75c03b8ef793daee5f4ca24c2d1
diff --git a/tests/ref/lavfi/crop b/tests/ref/lavfi/crop
index eec4580..50e0ea3 100644
--- a/tests/ref/lavfi/crop
+++ b/tests/ref/lavfi/crop
@@ -1 +1 @@
-crop                aa9ae07e171e0734801de21e73eda551
+crop                5b962079118f8502a01317c98c6b25a5
diff --git a/tests/ref/lavfi/crop_scale b/tests/ref/lavfi/crop_scale
index d3704f9..c0fcb44 100644
--- a/tests/ref/lavfi/crop_scale
+++ b/tests/ref/lavfi/crop_scale
@@ -1 +1 @@
-crop_scale          363c3faaa2612322ddb977365e1ba374
+crop_scale          32e723fa9503d4ce8173aa999bdb3b1c
diff --git a/tests/ref/lavfi/crop_scale_vflip b/tests/ref/lavfi/crop_scale_vflip
index 03a54a7..5e5146e 100644
--- a/tests/ref/lavfi/crop_scale_vflip
+++ b/tests/ref/lavfi/crop_scale_vflip
@@ -1 +1 @@
-crop_scale_vflip    80d00d6f3cf00918df9429233b8e4ed0
+crop_scale_vflip    9300146187e73d5eab965dc379d92a65
diff --git a/tests/ref/lavfi/crop_vflip b/tests/ref/lavfi/crop_vflip
index f4a2d37..2dfabfb 100644
--- a/tests/ref/lavfi/crop_vflip
+++ b/tests/ref/lavfi/crop_vflip
@@ -1 +1 @@
-crop_vflip          2e9c8ffd3c457c7a66ffb73b1dc7023f
+crop_vflip          07f397369c8772f4040045d35e16ca03
diff --git a/tests/ref/lavfi/drawbox b/tests/ref/lavfi/drawbox
index de2b209..ddb8d86 100644
--- a/tests/ref/lavfi/drawbox
+++ b/tests/ref/lavfi/drawbox
@@ -1 +1 @@
-drawbox             f9a92834eb8ad666ccebd9f8197ad59f
+drawbox             39a2f4efd35f77872b647126f700d37b
diff --git a/tests/ref/lavfi/edgedetect b/tests/ref/lavfi/edgedetect
index 45780df..f6130cb 100644
--- a/tests/ref/lavfi/edgedetect
+++ b/tests/ref/lavfi/edgedetect
@@ -1 +1 @@
-edgedetect          fe10771a46091b6573e5dc00dc64eab5
+edgedetect          666945146078e8e34bba6264776025de
diff --git a/tests/ref/lavfi/fade b/tests/ref/lavfi/fade
index 59c3512..3a9a703 100644
--- a/tests/ref/lavfi/fade
+++ b/tests/ref/lavfi/fade
@@ -1 +1 @@
-fade                4b3006b71829fb86715654216ff92221
+fade                abead3454d2e9adec67d7b237f69b5a1
diff --git a/tests/ref/lavfi/life b/tests/ref/lavfi/life
index e50376b..cb11a80 100644
--- a/tests/ref/lavfi/life
+++ b/tests/ref/lavfi/life
@@ -1 +1 @@
-life                a2895f84b84085831040e7c6b6bc5e3e
+life                db5aa52dabd45eb2b18b3e643828b9bb
diff --git a/tests/ref/lavfi/null b/tests/ref/lavfi/null
index 570c932..fae96c6 100644
--- a/tests/ref/lavfi/null
+++ b/tests/ref/lavfi/null
@@ -1 +1 @@
-null                489aa94d1a2abf74529ce5aaf812a338
+null                3b9efd4c33f3085a50a51dfbc5a4a5d1
diff --git a/tests/ref/lavfi/overlay b/tests/ref/lavfi/overlay
index 0c48b84..50ad4a8 100644
--- a/tests/ref/lavfi/overlay
+++ b/tests/ref/lavfi/overlay
@@ -1 +1 @@
-overlay             76e42f5b21f280ba9a0d7daf3f30636c
+overlay             4f3c972b857edc6eb07c0f9808161cc1
diff --git a/tests/ref/lavfi/pad b/tests/ref/lavfi/pad
index 1be89f2..6178533 100644
--- a/tests/ref/lavfi/pad
+++ b/tests/ref/lavfi/pad
@@ -1 +1 @@
-pad                 b01d899250b32d14d75e3f12095a9da1
+pad                 7f5d7584d68690cd17fa48addd4b1341
diff --git a/tests/ref/lavfi/pixfmts_copy b/tests/ref/lavfi/pixfmts_copy
index 85648e3..6bfc1e7 100644
--- a/tests/ref/lavfi/pixfmts_copy
+++ b/tests/ref/lavfi/pixfmts_copy
@@ -1,83 +1,83 @@
-0bgr                c60961367c88d4c4fdb74a4a03f18c24
-0rgb                6bbd6fb67c9a830026c834bc4415f2ab
-abgr                1efbf983d9e05945b223e94281ba03dd
-argb                43db1b6f92785cb1741d1a8918be1cd6
-bgr0                5df429190741e396e6374742ec3b5ebb
-bgr24               5a99ab751497ff2308654815bb386ab1
-bgr444be            ad888031403150f784afa4ab5e53fa25
-bgr444le            8bcb29875ef4446f7b40ad5cbe6293c7
-bgr48be             aef991ccc6241fe89501b791b6d1c8a4
-bgr48le             4fe26de32f985c661535592adb854ca0
-bgr4_byte           86ab90dbf28e0d1fcc474c1bc6f3e6ce
-bgr555be            83b5dc82aca5c59214e2821d7c37e101
-bgr555le            5b21fe6b886d105e086ac758c9739ef7
-bgr565be            a03cd63592f7aa85926852e1b0eefb55
-bgr565le            da9f51fd88b00b77a2bdb44092ced6ca
-bgr8                6ee3a027fdf23d9e7641cf9db622e38f
-bgra                571e36479d0bcc63c71d91432a15fd0b
-gray                669860b0e6f48784f1c4edec7d45a23d
-gray16be            c3720d00b935ae76108f6a05825f3ec4
-gray16le            1a4dfbdad429e3a0217dd03978665a60
-monob               cf885ca3ab5c4e79befec8e961b53e6b
-monow               39b7e285f47af4f11003972733a8ec04
-nv12                d0293efcd106022aee6f4696a2492594
-nv21                4b1adad7b2017b2e08a4c686778740bd
-pal8                f3442a379152b41f24a01c35bfe8b0d7
-rgb0                bea4f3e5a1c673fc49b2ed8330ad5698
-rgb24               4f016dcae1677971d5ab8fc5281b4eb1
-rgb444be            5a1f1e3248a7f74ad8a813f88d91e2c7
-rgb444le            db3babb73c538490c56f1dd1b42e32c2
-rgb48be             c157b4bfdaba46851fb409404f0e2b31
-rgb48le             aaeb094dfdd0f0390db94e558fb2e4ec
-rgb4_byte           7d2d7b9383f83902f83f78a49b401e9c
-rgb555be            cc39e0816288e2215e76520c2f3f17d8
-rgb555le            297ca82788b023a3f94677652c091f30
-rgb565be            1b0fc1a80a3913fe0eaf283e68b83d09
-rgb565le            b861ec0fa3c4197dffaef41fc66e7c52
-rgb8                d50a2f3503a8dd876197b604266cf15b
-rgba                090e417705ca0e5187f029eeb394a885
-uyvy422             95b3ca9c609beae6c61fa33a7e6fcfe3
-yuv410p             5652f52e932d718eaad651d06a11ce09
-yuv411p             857a16f561424bcf361784c2e8578d63
-yuv420p             489aa94d1a2abf74529ce5aaf812a338
-yuv420p10be         a1c91b8684cb84a946d78dfa80a6323f
-yuv420p10le         4de5eee1402ae84946a24e3cc4804502
-yuv420p12be         a0f533c65ceabba7ac74deb129435109
-yuv420p12le         fffb48e79346e5a120b12adb87e40980
-yuv420p14be         90f3cd8e808572d3b75fd258652b765f
-yuv420p14le         b41393e500813a4444ac5607c98d7d4b
-yuv420p16be         5b15ffe17c78761138a48cb91e94002e
-yuv420p16le         942b992ad799833754590f9c3371bdae
-yuv420p9be          db3b9b202f8014761e79cff2546536ea
-yuv420p9le          43341ba3955a5c1a1652218d5e466446
-yuv422p             cd9185df12127a7830820862b15d6150
-yuv422p10be         bf0d4d0d6a4d4896650eff08b0a157a4
-yuv422p10le         cab49211123e7337bf8e7b248befacdc
-yuv422p12be         ec8718c7f3a96e4b41d4e69cb1ecce0c
-yuv422p12le         a783156c3ae833b1b16b5f6238d1163b
-yuv422p14be         b58c2198c56330cc19cd61a35e7d799a
-yuv422p14le         7f74d4936577cab0e5e9d6be61a36820
-yuv422p16be         3725aa6136741d558900efc46fa02897
-yuv422p16le         e5613f26cf21e6caa14c55bfa6dbf91f
-yuv422p9be          9c162a559c912dc2a03c0ede9666d201
-yuv422p9le          d778190180fba976dc5e3162b7622d27
-yuv440p             bd74a3dbbba05205fd30e101216a8ee3
-yuv444p             14e06ce6ebba6eccda67d8c5fb0f3695
-yuv444p10be         67bcd450bb1f7de75e51b5e115083f8a
-yuv444p10le         8cd9fe3450e25e1635c5f982bc404f20
-yuv444p12be         2d709d5cbf2c61970e7e6d609fd30f44
-yuv444p12le         8096f6a0f7b6e9b7d60af2cb4d2459fe
-yuv444p14be         9ded64b1f7d37bc170d5c4f4b65c133b
-yuv444p14le         c4981882cca655f0cbc4ed07a33a24c7
-yuv444p16be         06f0ea1a525ddc34116b2c0e3021e5a9
-yuv444p16le         507fc54fe06db5fbd1e36182ec0df4a2
-yuv444p9be          29911d5ab017a4ba12d915dc078ecd87
-yuv444p9le          e55015c87e7a90d87258af0ea5cce0e3
-yuva420p            ff556e3f6cf74f322467860555612c74
-yuva422p            9370ac9fcb59806592f4a35fa8fa28e7
-yuva444p            bb5f5d0c12a9e09ae37ac3bafff907cf
-yuvj420p            295b48eaabd1d239647a20962ab2f1a3
-yuvj422p            cba3eba27031f3ff38ae511c0f7220af
-yuvj440p            53351b202fcda4e03a363e1dcdb808c0
-yuvj444p            b9a2528e0f59939f025c0ae2a885edc8
-yuyv422             1c0ecc295a449472049c9cfa5e8ee4ab
+0bgr                af0cdbd9c5e606f6826feda281021306
+0rgb                e9bd85dae7f90b7a8c59c5234012a195
+abgr                df72ca35d31621dfb793a68e3a058c0e
+argb                e798ab12f3aeb454ada73dff71a03fcc
+bgr0                e245a3145edb3fbc26ae3c45738521cb
+bgr24               2100f953dea4ef10eb1b51bdc913733e
+bgr444be            9ac705d6b376e54179e7270e22121e69
+bgr444le            c4db6c469f211819d304afdbbf344900
+bgr48be             52336c5ad4b1229bdb34ea42226144f7
+bgr48le             d3f1f46e272e7c7725fc1d482f3687b7
+bgr4_byte           055b8d527f17497d5245fc1347b4cd70
+bgr555be            f7f31cda9df45bd5f63c76fb0162426d
+bgr555le            0093d7a253686eb79f579bc24962187f
+bgr565be            53ac20cff64a4141b163640b143f74cf
+bgr565le            b29700c5b1300db3ab2e0e9af5bc2688
+bgr8                5eb0bbd04c4f484a8b334d94304ea7de
+bgra                cdea0a048183daf1aa71cb1226347270
+gray                fd2289b835017587db913c38060bff53
+gray16be            d681ecf7b10b50d074866a3c10fc79fc
+gray16le            d043ab55f76282cbabef7c8af2cb0cee
+monob               2065fd7c9ab96979b969678ddf62656c
+monow               b143abb40550d66f4730e8eb5318e1cb
+nv12                e25d6330c5474e3cf3ae3c3166c347f3
+nv21                27a634b83bb84ef857c5e1e55f6319a1
+pal8                0d9a7cb823d158890add60c1e00fbbd4
+rgb0                34b97a7607d34794cfe1bc9945b3b6d7
+rgb24               bd3cd61dd250a2140939c876cd0eec58
+rgb444be            1e3baed4723a7011bc1457ccccaa2806
+rgb444le            7d7a857d60eb8bb2ed8088afefa22f45
+rgb48be             3d0a72dc5e82241b4bc39341232e9be7
+rgb48le             a933caeab470831b5e55145bb2e9baf2
+rgb4_byte           b9948106ff030f658840cc220480953c
+rgb555be            61986143c7372711ebb86ef1ea026519
+rgb555le            aab038e44ac91e4e91390109d38abd54
+rgb565be            4e25ac845c96519ae34e077630778a73
+rgb565le            7285fefdd0d2486e99c1dc1b0c6f31f5
+rgb8                68b1cefad048a7d36b2a6123daa460f9
+rgba                efef1ef98681bb79723f3b4d10bd27a1
+uyvy422             344794c8fbbfbd906ac0d5a5514cd78f
+yuv410p             1e8c3156dc963dcb079688b430b1c0b0
+yuv411p             2737ad48cd2285fb133e9be1f9a9cf28
+yuv420p             3b9efd4c33f3085a50a51dfbc5a4a5d1
+yuv420p10be         f93b411b661272389aff40fb6c411ea4
+yuv420p10le         6807cf71a20c8b37331f85b49e83deef
+yuv420p12be         0d8b314b9831a008d9fa6b918f0f4747
+yuv420p12le         8762d6d306e225099bcc7955246abc0b
+yuv420p14be         88772ae6715fbb5a2730d2d0ac3c30e6
+yuv420p14le         abee7a9aa16dbcf257ac802d6ee3c770
+yuv420p16be         4883d2fc25e199dfef01d0131a5486d2
+yuv420p16le         cff6975103082259414224f0721125ba
+yuv420p9be          37df84a076eac4a1c8fe6c53e4684f9a
+yuv420p9le          02e91e484f14af32ab7ca0b5c1f8e2f5
+yuv422p             25f74db9daefb5dba7de622c741998d0
+yuv422p10be         dae7945ccd81810e52dc338984e8b868
+yuv422p10le         c934050fd37931740c67756f51ce9018
+yuv422p12be         9d8cd9d80575bb7d66c9405e4125b6aa
+yuv422p12le         26c433074422d16e4dd3af40e4f68b4e
+yuv422p14be         76527aede5a9cba9bf77038e132fe445
+yuv422p14le         57062d9c84afad541192ad0b7edb04a8
+yuv422p16be         cdb6bdaf0aab1b2108c485cac2270180
+yuv422p16le         6405652cceab04406e0da4d9fbed6142
+yuv422p9be          c0ef13d609e0b6f04c55cf6f2a8264e7
+yuv422p9le          b5d3fcf6503355ebb1f424cc43c037a9
+yuv440p             7e1bc3dade41c9c05b4edf112c1ee4cc
+yuv444p             7fc0b7e65748d4f7744107d26ebe06f2
+yuv444p10be         82a8fda7281ccda727cd6b25da0e219b
+yuv444p10le         f5954f6dde3e09c83d9321f0b84f5275
+yuv444p12be         80c416697b0b006228019d6ea3c13257
+yuv444p12le         95eef7a4245229cb488141d83ea46df9
+yuv444p14be         71c4146d88c9cd27a4ba669d2869dedc
+yuv444p14le         04f25ade3a02022997ed3f8469f126a8
+yuv444p16be         941710611d7bb3828163979eaa4cfe35
+yuv444p16le         1896fd04ff664052ae74dfcb33ed13b5
+yuv444p9be          23ffab586f4fdd7b63604d782ec3291c
+yuv444p9le          db9137c4c96f892cb6d49c24d00b6e31
+yuva420p            d3c91b0a968b248b24628cf0be7f82fc
+yuva422p            062631b545bb922765045fbb6ad48d36
+yuva444p            294a3b99740a2b8f69c5f362a64b0ac1
+yuvj420p            0fccd4e9d15fd1e801b5f615cc66d7f2
+yuvj422p            659cf6f0caba0cfeaf3f471c4def8945
+yuvj440p            3af38ae458bcf7a32f7e7a3c0f012018
+yuvj444p            64c0788c6fb2ec4f5ac12918d3ec756f
+yuyv422             66a8ac11d5a512f3f16c2a823f3d396a
diff --git a/tests/ref/lavfi/pixfmts_crop b/tests/ref/lavfi/pixfmts_crop
index 67e5fac..00dcd8c 100644
--- a/tests/ref/lavfi/pixfmts_crop
+++ b/tests/ref/lavfi/pixfmts_crop
@@ -1,43 +1,43 @@
-abgr                48346c491906eca28e00a23ef5353a77
-argb                b747553e21de237b4cdd408fcbbfaecd
-bgr24               fe0151a7b7f599302c25ca8e5c4af4db
-bgr48be             7382471d86acea0d8158297666c827fe
-bgr48le             f0e53dc36fbf2eca118a9d772bdb8f8d
-bgr4_byte           82f27084cfdd119c4e0d48cf5c24d69f
-bgr555be            f5b46a880be2a51bb236e4c5128f6be8
-bgr555le            8615050ab74f49722ee34e34e809a708
-bgr565be            ce8855d8588d458778bb6c4982bd5e18
-bgr565le            83eb258b10791ed24054efc82f7bf562
-bgr8                316bf8d5b86305ff44ad7ee267a2ff69
-bgra                d902c52cbbb2e95f684b6096323d97f9
-gray                4d0af088c340dd75d357f097b52acd89
-gray16be            8f5777495e28a94cc387aa2a048b3497
-gray16le            dd3e032e02a8f651033bcdb2015a5802
-pal8                431a276e504cb02365ab3b2361ffd8bc
-rgb24               c0e1ebddf432cda28609ba6ac3f545df
-rgb48be             0a268f87065014615dee33ee9c9be31e
-rgb48le             a00ad9474040c20978b142b2b47cd236
-rgb4_byte           f7f7134258f08c517d8e93bff36ad720
-rgb555be            afeb7387a1f39cf0d9003ed0e44fa064
-rgb555le            b4fa8603e841651c1212508ab475984b
-rgb565be            53ae8b7df8eb550c11550e5e14076ca0
-rgb565le            4912344d8e2ddb8b184c62578a09dd5a
-rgb8                94f3e7f787ae73b663bf3c9eea55247e
-rgba                7f244176bd49823ada1a129aaaac0ba5
-yuv410p             a183ffd33903014dd608560cd53a6bfe
-yuv411p             fa1cd715cc0b5b04d042953000a1352a
-yuv420p             a717efee3fe5b0ae21bfec28a8814a72
-yuv420p16be         828378732914a01ed07ec44c2b7b4aec
-yuv420p16le         2a41d2ca620a240b7a035c4427065438
-yuv422p             6cfc7d6275e44d9ed8d016b9057f59ce
-yuv422p16be         af92cd1066c7249abdfc4dece1f2c590
-yuv422p16le         8e074c403be086f4bc56342807e18f67
-yuv440p             9a9da3172fc4101ffad7729eeda8a853
-yuv444p             d81cb00ffd82d232e4d35647b18927ef
-yuv444p16be         b5e81c4f939e03716505c137fee542d7
-yuv444p16le         16fdf905bbf8139af6e8a6e75fa4a091
-yuva420p            08f69b3b734b9a454590a3a7f423d74b
-yuvj420p            f34db073719616df612b059e2b799380
-yuvj422p            f1946babecd8d509fe853b33f49492a4
-yuvj440p            dd9bb7d90e6c863bb888d719da183304
-yuvj444p            74eb7e8ad11bbce02929be19fc73f4bd
+abgr                c6f57b04f31e489132a7bcb8420b6435
+argb                4f46788968406fd1b994cbc254339bc2
+bgr24               44642a510b79d7469e6c841c8aa44b36
+bgr48be             f3026fb3b5b032f0adc875d228f6e912
+bgr48le             827c0a1db92f60c0465ecfaa565ef3eb
+bgr4_byte           626742ff4a54a09a2b35cd570005f55d
+bgr555be            22a6ed3d9701f07ede3a2a1ec550b059
+bgr555le            62182cc3ab5b00383f0037b7451cd0a8
+bgr565be            6f3c1c7cfa627c390703f5e95f3d565e
+bgr565le            1792f375b27c14f784f6fadf11eeecb5
+bgr8                12c3f9e99d99b2b2029f92b4b64cbf26
+bgra                76936dd2040b11ad7b5dc8dc9df646ac
+gray                6f715d8f91641e94de9f22e429860e3c
+gray16be            1e62313c7f6fc1589e030a6b93e4a50d
+gray16le            bf5c435d0ca9ae8392515217140a1359
+pal8                63057406ffc96a66e0bddad780423f00
+rgb24               ac8cb6c52c363255b656478752af5a8c
+rgb48be             dd1c8240dd8b49170c8071f9f4ca0500
+rgb48le             c07b785814c5a221681e708a3c38d4d7
+rgb4_byte           cf5c2cd6999b38cd56914d8b7aab01df
+rgb555be            f6c3e63759151e75c25f894342304838
+rgb555le            8f10e82ffa8c320dbfba30235a7c0a4e
+rgb565be            2633ad5d0d9f089013d1cd0cd07a807f
+rgb565le            c548a251c2160ae0343eef2f9d43d542
+rgb8                0d930f27b1f03677ad50b81130cbda07
+rgba                5d75f664aa12412dcd9f1294f8e86ae9
+yuv410p             60da6d88064127f15978209a0747a7a7
+yuv411p             35f303de0bc4c506e89d8aecd97c7b76
+yuv420p             e9b0e2c2873acfc2cc5c3ddb16d4c698
+yuv420p16be         29883026ef41971c8cab09dea5a59819
+yuv420p16le         5150a03ac0268c04df9fd79d1848c7c0
+yuv422p             6677f38dda4e6f442b8fdccfe04ada1d
+yuv422p16be         9e7bfac176ba8c61505031249382b4b2
+yuv422p16le         4a9863b33b7b79f05acaa1d5de17ed3a
+yuv440p             c815ac65ed316fc273053684eee34f5c
+yuv444p             b86691ac54a6059cb68a142005365aa9
+yuv444p16be         e3c0d57ae0fe658aee831abc1a34a279
+yuv444p16le         f774853c8bc5369b2ed27fba3a98b06f
+yuva420p            fe94527c46de2153dea7e3a9c8690110
+yuvj420p            2f1c3ad073638a72587c1cf2c82cd684
+yuvj422p            7a246902938fce0c4bc89ca1f958fa81
+yuvj440p            19b1b0fbef3ab21939a43524fbdf946b
+yuvj444p            3ea1dd23e50be7efd76e394d72dad5cf
diff --git a/tests/ref/lavfi/pixfmts_hflip b/tests/ref/lavfi/pixfmts_hflip
index 8e1d538..87fcd26 100644
--- a/tests/ref/lavfi/pixfmts_hflip
+++ b/tests/ref/lavfi/pixfmts_hflip
@@ -1,47 +1,47 @@
-abgr                2ce3f4a300ee03b93a77fe39e55987fa
-argb                64e29bf8d65ed7103b6990e46b1a010e
-bgr24               31673b9d4bf0d0fd885bce5296dfb754
-bgr444be            34ba282584233724e20094c33b31c096
-bgr444le            08ae1f0ed1009b508802e23e57c7b147
-bgr48be             9365c39b8b4a7a4206b3b8ca9e42de00
-bgr48le             1de87874708283d574d333188188c536
-bgr4_byte           b28046fa8bda1dba75a87666715dfc26
-bgr555be            fcd71635673f337d560981be16600522
-bgr555le            29645c643e8f4d16bcd8ecce26d4aaff
-bgr565be            f9eeeed19b719b5590ce87d00536241d
-bgr565le            e1fe693f81b6403ba9b19e3412607feb
-bgr8                f36e2b3619d9a3a2b04690132332a76e
-bgra                58a0ffb544f709647a4662fbb6d399a1
-gray                144b08b0c49627aaaaa17235444ec807
-gray16be            5f302f6626a857b2563ce01866380a64
-gray16le            f2afd6c87122c48b72afa75b17e89243
-pal8                4f5eeba8ff969ed698863340f5304e8c
-rgb24               3c100ecfe1533412448853669cb13268
-rgb444be            326d3f83d1fbadfa11ecdcb113a3e8a5
-rgb444le            0ababfb3a16f0bbeacddaed0f5c8427c
-rgb48be             8f5f38388148a911031a0a94b19de1d0
-rgb48le             68e9b1e48b02c33c79ba834629cc54bf
-rgb4_byte           0a1229d6bc69cf24fbc7ce5dd5c06873
-rgb555be            38493e6ab0817e33c67c44a598e73e10
-rgb555le            f26e1089005ac6fbe45f56d39a8496f4
-rgb565be            6685e9e820cc9af85ecd8eae4d30db70
-rgb565le            bda1fe6e39bfca1b35a68e999e2da914
-rgb8                438f99353b2f495f6965268a73ba1154
-rgba                0d0008a7cff117e8dfc2abb138e98c7e
-yuv410p             be386727c9557bb7e2a4b18a1c547ab5
-yuv411p             a4a4d0247e81702fa86128d174dfa5ea
-yuv420p             8c01e844700606452b333acc5fdbc73f
-yuv420p16be         e0f01dfdf7719a44f57b6274d847e54d
-yuv420p16le         8701064f8f9b007cde3a9f50214581d8
-yuv422p             9cb0abd34a2d0bbe7eae3ec234de581e
-yuv422p16be         e1d7268ef464fcdce91cc43445c4b370
-yuv422p16le         89631ffd8ebabf9eebe9db0f969e4996
-yuv440p             debe01ae305866cd388126c078f37d61
-yuv444p             e8e77e7757574f96bd510b0159104bf4
-yuv444p16be         b259403c8be44b2a8c43768b32cfeecd
-yuv444p16le         41ce5c9cde1e019b733a5de69880d8e5
-yuva420p            9a0002557a583cd09cd0e44b01c9a7a8
-yuvj420p            d5d699d74af6c8082932cafbcffbc83e
-yuvj422p            197cbb3bd2707e94a57e25bba37e3d06
-yuvj440p            f900b0ccb1bfae557b0afbf691f2eb50
-yuvj444p            729a34a7dffcb04ed5efbbdf6c0a62f1
+abgr                b2d21776cb989ebe6bd4bc2b9cd0ca47
+argb                68a19210023e15df0eac0a79e75183aa
+bgr24               5ad78e83dc0028f931f798e5f827e295
+bgr444be            eef430d7c80a13ec2492febe2bb0f6e0
+bgr444le            a89263802f74b384c636897b38a7e606
+bgr48be             fcf9040d31c88a7d553d3fed609e3e6e
+bgr48le             d1afce5faf0affac30a8668fca42460c
+bgr4_byte           aba8e7dec75db5dd5bab17bef5d46291
+bgr555be            21f05fc1d8553842f5df60d09e5458b4
+bgr555le            3ef5c95248d9e11351d92d4044fa35e5
+bgr565be            5dcd1ce4baac9b71a3a3b18f0af6a809
+bgr565le            3ed5d6c26b5288009c3da6f85d6c0466
+bgr8                f8ca984e121f50e43707f0b97c05235a
+bgra                c05e9e5d82e123a435c7f04f543e067a
+gray                ebe00908eaf8960391c42eedf586daf0
+gray16be            9648eaa01d7ac47b094c1311ae4ccd68
+gray16le            2582da19f4debeb4b73ce8180f6d3479
+pal8                111722688c66fb10d671c7bfc88ceff0
+rgb24               b65f8b8435682ac227bd0fb6a2845abb
+rgb444be            f34e83c7d069e488258bf75f9c2d0091
+rgb444le            b1490227611768671a56cbe9baf56ff3
+rgb48be             43a18af66706de67b323fac31a561e81
+rgb48le             7518d1a3b1edfe46c6631370bb109e17
+rgb4_byte           18ff980656cc632d0cfe1c66c065fd24
+rgb555be            fa1ac23c15d4179d1b97dcc71ed9e579
+rgb555le            020cee36c7716ff4c2729545308b28d2
+rgb565be            054366874dd65010f486526694a54318
+rgb565le            188289c256551f9befc2afb5c9c1dd19
+rgb8                ab27a8c93fe47baffd4bd867dfcf71d7
+rgba                0b7c2360d4e74dc3f11d617d6cb2c021
+yuv410p             b6ccd81ff854b56723e1141c0030be9b
+yuv411p             0e74482445a85f55ef86079c9713b4bd
+yuv420p             206849fbbb4feaa8395e1ef02bbfc7d6
+yuv420p16be         2279188920084f364db1a1785957b0f0
+yuv420p16le         f2d4104bfb5405e8c46d1f79723aaefa
+yuv422p             a45ef5fde221ce0d0bd37c4b4859954e
+yuv422p16be         b023e1e64c3bae04328c47669cb121aa
+yuv422p16le         51ed3acaa995948835c2a46f8eb00859
+yuv440p             0d0d93e908f8e41b2c5a43895e5fd650
+yuv444p             659a951ba2be3341596081dec6bbd21f
+yuv444p16be         14b0e93ea32883031f789b4e1a691f7c
+yuv444p16le         df92fd636a8201a47f3786f0c53500c1
+yuva420p            22bb7821c3b3030de8fad93cbddff425
+yuvj420p            c3a884977ca74149639e7fcf5ede0a1e
+yuvj422p            944d8b5dfc4dd82a076a637c56dbc8e8
+yuvj440p            df970958d39304b8c31332d456d8c15a
+yuvj444p            0c74264e2b6c017b7d0255e963148673
diff --git a/tests/ref/lavfi/pixfmts_null b/tests/ref/lavfi/pixfmts_null
index 85648e3..6bfc1e7 100644
--- a/tests/ref/lavfi/pixfmts_null
+++ b/tests/ref/lavfi/pixfmts_null
@@ -1,83 +1,83 @@
-0bgr                c60961367c88d4c4fdb74a4a03f18c24
-0rgb                6bbd6fb67c9a830026c834bc4415f2ab
-abgr                1efbf983d9e05945b223e94281ba03dd
-argb                43db1b6f92785cb1741d1a8918be1cd6
-bgr0                5df429190741e396e6374742ec3b5ebb
-bgr24               5a99ab751497ff2308654815bb386ab1
-bgr444be            ad888031403150f784afa4ab5e53fa25
-bgr444le            8bcb29875ef4446f7b40ad5cbe6293c7
-bgr48be             aef991ccc6241fe89501b791b6d1c8a4
-bgr48le             4fe26de32f985c661535592adb854ca0
-bgr4_byte           86ab90dbf28e0d1fcc474c1bc6f3e6ce
-bgr555be            83b5dc82aca5c59214e2821d7c37e101
-bgr555le            5b21fe6b886d105e086ac758c9739ef7
-bgr565be            a03cd63592f7aa85926852e1b0eefb55
-bgr565le            da9f51fd88b00b77a2bdb44092ced6ca
-bgr8                6ee3a027fdf23d9e7641cf9db622e38f
-bgra                571e36479d0bcc63c71d91432a15fd0b
-gray                669860b0e6f48784f1c4edec7d45a23d
-gray16be            c3720d00b935ae76108f6a05825f3ec4
-gray16le            1a4dfbdad429e3a0217dd03978665a60
-monob               cf885ca3ab5c4e79befec8e961b53e6b
-monow               39b7e285f47af4f11003972733a8ec04
-nv12                d0293efcd106022aee6f4696a2492594
-nv21                4b1adad7b2017b2e08a4c686778740bd
-pal8                f3442a379152b41f24a01c35bfe8b0d7
-rgb0                bea4f3e5a1c673fc49b2ed8330ad5698
-rgb24               4f016dcae1677971d5ab8fc5281b4eb1
-rgb444be            5a1f1e3248a7f74ad8a813f88d91e2c7
-rgb444le            db3babb73c538490c56f1dd1b42e32c2
-rgb48be             c157b4bfdaba46851fb409404f0e2b31
-rgb48le             aaeb094dfdd0f0390db94e558fb2e4ec
-rgb4_byte           7d2d7b9383f83902f83f78a49b401e9c
-rgb555be            cc39e0816288e2215e76520c2f3f17d8
-rgb555le            297ca82788b023a3f94677652c091f30
-rgb565be            1b0fc1a80a3913fe0eaf283e68b83d09
-rgb565le            b861ec0fa3c4197dffaef41fc66e7c52
-rgb8                d50a2f3503a8dd876197b604266cf15b
-rgba                090e417705ca0e5187f029eeb394a885
-uyvy422             95b3ca9c609beae6c61fa33a7e6fcfe3
-yuv410p             5652f52e932d718eaad651d06a11ce09
-yuv411p             857a16f561424bcf361784c2e8578d63
-yuv420p             489aa94d1a2abf74529ce5aaf812a338
-yuv420p10be         a1c91b8684cb84a946d78dfa80a6323f
-yuv420p10le         4de5eee1402ae84946a24e3cc4804502
-yuv420p12be         a0f533c65ceabba7ac74deb129435109
-yuv420p12le         fffb48e79346e5a120b12adb87e40980
-yuv420p14be         90f3cd8e808572d3b75fd258652b765f
-yuv420p14le         b41393e500813a4444ac5607c98d7d4b
-yuv420p16be         5b15ffe17c78761138a48cb91e94002e
-yuv420p16le         942b992ad799833754590f9c3371bdae
-yuv420p9be          db3b9b202f8014761e79cff2546536ea
-yuv420p9le          43341ba3955a5c1a1652218d5e466446
-yuv422p             cd9185df12127a7830820862b15d6150
-yuv422p10be         bf0d4d0d6a4d4896650eff08b0a157a4
-yuv422p10le         cab49211123e7337bf8e7b248befacdc
-yuv422p12be         ec8718c7f3a96e4b41d4e69cb1ecce0c
-yuv422p12le         a783156c3ae833b1b16b5f6238d1163b
-yuv422p14be         b58c2198c56330cc19cd61a35e7d799a
-yuv422p14le         7f74d4936577cab0e5e9d6be61a36820
-yuv422p16be         3725aa6136741d558900efc46fa02897
-yuv422p16le         e5613f26cf21e6caa14c55bfa6dbf91f
-yuv422p9be          9c162a559c912dc2a03c0ede9666d201
-yuv422p9le          d778190180fba976dc5e3162b7622d27
-yuv440p             bd74a3dbbba05205fd30e101216a8ee3
-yuv444p             14e06ce6ebba6eccda67d8c5fb0f3695
-yuv444p10be         67bcd450bb1f7de75e51b5e115083f8a
-yuv444p10le         8cd9fe3450e25e1635c5f982bc404f20
-yuv444p12be         2d709d5cbf2c61970e7e6d609fd30f44
-yuv444p12le         8096f6a0f7b6e9b7d60af2cb4d2459fe
-yuv444p14be         9ded64b1f7d37bc170d5c4f4b65c133b
-yuv444p14le         c4981882cca655f0cbc4ed07a33a24c7
-yuv444p16be         06f0ea1a525ddc34116b2c0e3021e5a9
-yuv444p16le         507fc54fe06db5fbd1e36182ec0df4a2
-yuv444p9be          29911d5ab017a4ba12d915dc078ecd87
-yuv444p9le          e55015c87e7a90d87258af0ea5cce0e3
-yuva420p            ff556e3f6cf74f322467860555612c74
-yuva422p            9370ac9fcb59806592f4a35fa8fa28e7
-yuva444p            bb5f5d0c12a9e09ae37ac3bafff907cf
-yuvj420p            295b48eaabd1d239647a20962ab2f1a3
-yuvj422p            cba3eba27031f3ff38ae511c0f7220af
-yuvj440p            53351b202fcda4e03a363e1dcdb808c0
-yuvj444p            b9a2528e0f59939f025c0ae2a885edc8
-yuyv422             1c0ecc295a449472049c9cfa5e8ee4ab
+0bgr                af0cdbd9c5e606f6826feda281021306
+0rgb                e9bd85dae7f90b7a8c59c5234012a195
+abgr                df72ca35d31621dfb793a68e3a058c0e
+argb                e798ab12f3aeb454ada73dff71a03fcc
+bgr0                e245a3145edb3fbc26ae3c45738521cb
+bgr24               2100f953dea4ef10eb1b51bdc913733e
+bgr444be            9ac705d6b376e54179e7270e22121e69
+bgr444le            c4db6c469f211819d304afdbbf344900
+bgr48be             52336c5ad4b1229bdb34ea42226144f7
+bgr48le             d3f1f46e272e7c7725fc1d482f3687b7
+bgr4_byte           055b8d527f17497d5245fc1347b4cd70
+bgr555be            f7f31cda9df45bd5f63c76fb0162426d
+bgr555le            0093d7a253686eb79f579bc24962187f
+bgr565be            53ac20cff64a4141b163640b143f74cf
+bgr565le            b29700c5b1300db3ab2e0e9af5bc2688
+bgr8                5eb0bbd04c4f484a8b334d94304ea7de
+bgra                cdea0a048183daf1aa71cb1226347270
+gray                fd2289b835017587db913c38060bff53
+gray16be            d681ecf7b10b50d074866a3c10fc79fc
+gray16le            d043ab55f76282cbabef7c8af2cb0cee
+monob               2065fd7c9ab96979b969678ddf62656c
+monow               b143abb40550d66f4730e8eb5318e1cb
+nv12                e25d6330c5474e3cf3ae3c3166c347f3
+nv21                27a634b83bb84ef857c5e1e55f6319a1
+pal8                0d9a7cb823d158890add60c1e00fbbd4
+rgb0                34b97a7607d34794cfe1bc9945b3b6d7
+rgb24               bd3cd61dd250a2140939c876cd0eec58
+rgb444be            1e3baed4723a7011bc1457ccccaa2806
+rgb444le            7d7a857d60eb8bb2ed8088afefa22f45
+rgb48be             3d0a72dc5e82241b4bc39341232e9be7
+rgb48le             a933caeab470831b5e55145bb2e9baf2
+rgb4_byte           b9948106ff030f658840cc220480953c
+rgb555be            61986143c7372711ebb86ef1ea026519
+rgb555le            aab038e44ac91e4e91390109d38abd54
+rgb565be            4e25ac845c96519ae34e077630778a73
+rgb565le            7285fefdd0d2486e99c1dc1b0c6f31f5
+rgb8                68b1cefad048a7d36b2a6123daa460f9
+rgba                efef1ef98681bb79723f3b4d10bd27a1
+uyvy422             344794c8fbbfbd906ac0d5a5514cd78f
+yuv410p             1e8c3156dc963dcb079688b430b1c0b0
+yuv411p             2737ad48cd2285fb133e9be1f9a9cf28
+yuv420p             3b9efd4c33f3085a50a51dfbc5a4a5d1
+yuv420p10be         f93b411b661272389aff40fb6c411ea4
+yuv420p10le         6807cf71a20c8b37331f85b49e83deef
+yuv420p12be         0d8b314b9831a008d9fa6b918f0f4747
+yuv420p12le         8762d6d306e225099bcc7955246abc0b
+yuv420p14be         88772ae6715fbb5a2730d2d0ac3c30e6
+yuv420p14le         abee7a9aa16dbcf257ac802d6ee3c770
+yuv420p16be         4883d2fc25e199dfef01d0131a5486d2
+yuv420p16le         cff6975103082259414224f0721125ba
+yuv420p9be          37df84a076eac4a1c8fe6c53e4684f9a
+yuv420p9le          02e91e484f14af32ab7ca0b5c1f8e2f5
+yuv422p             25f74db9daefb5dba7de622c741998d0
+yuv422p10be         dae7945ccd81810e52dc338984e8b868
+yuv422p10le         c934050fd37931740c67756f51ce9018
+yuv422p12be         9d8cd9d80575bb7d66c9405e4125b6aa
+yuv422p12le         26c433074422d16e4dd3af40e4f68b4e
+yuv422p14be         76527aede5a9cba9bf77038e132fe445
+yuv422p14le         57062d9c84afad541192ad0b7edb04a8
+yuv422p16be         cdb6bdaf0aab1b2108c485cac2270180
+yuv422p16le         6405652cceab04406e0da4d9fbed6142
+yuv422p9be          c0ef13d609e0b6f04c55cf6f2a8264e7
+yuv422p9le          b5d3fcf6503355ebb1f424cc43c037a9
+yuv440p             7e1bc3dade41c9c05b4edf112c1ee4cc
+yuv444p             7fc0b7e65748d4f7744107d26ebe06f2
+yuv444p10be         82a8fda7281ccda727cd6b25da0e219b
+yuv444p10le         f5954f6dde3e09c83d9321f0b84f5275
+yuv444p12be         80c416697b0b006228019d6ea3c13257
+yuv444p12le         95eef7a4245229cb488141d83ea46df9
+yuv444p14be         71c4146d88c9cd27a4ba669d2869dedc
+yuv444p14le         04f25ade3a02022997ed3f8469f126a8
+yuv444p16be         941710611d7bb3828163979eaa4cfe35
+yuv444p16le         1896fd04ff664052ae74dfcb33ed13b5
+yuv444p9be          23ffab586f4fdd7b63604d782ec3291c
+yuv444p9le          db9137c4c96f892cb6d49c24d00b6e31
+yuva420p            d3c91b0a968b248b24628cf0be7f82fc
+yuva422p            062631b545bb922765045fbb6ad48d36
+yuva444p            294a3b99740a2b8f69c5f362a64b0ac1
+yuvj420p            0fccd4e9d15fd1e801b5f615cc66d7f2
+yuvj422p            659cf6f0caba0cfeaf3f471c4def8945
+yuvj440p            3af38ae458bcf7a32f7e7a3c0f012018
+yuvj444p            64c0788c6fb2ec4f5ac12918d3ec756f
+yuyv422             66a8ac11d5a512f3f16c2a823f3d396a
diff --git a/tests/ref/lavfi/pixfmts_pad b/tests/ref/lavfi/pixfmts_pad
index dc9d6e6..3ae2646 100644
--- a/tests/ref/lavfi/pixfmts_pad
+++ b/tests/ref/lavfi/pixfmts_pad
@@ -1,24 +1,24 @@
-0bgr                4ba083c2dacb793db850327b01ae7da3
-0rgb                a2de4fa98a0f64999456e01f7c635c45
-abgr                7c21ccd9fdd85d713a027699d2d0671e
-argb                e135bc712d28070a5191e89423ae46b6
-bgr0                843ad90650dac020795f4b9cc0ce0a74
-bgr24               52c59f3a2c6a86f18d7359aa3a881de0
-bgra                3400e09d293f3c453cc53ea729dba637
-gray                22bcdafc651e6cd229e32226e34b3b6a
-rgb0                f0be0d2e36139fc31f2db676cb29d764
-rgb24               f31b08e95b688f759e096c0504b9ecfc
-rgba                5f6a5dadcafb470dda62f51e03e1d7f5
-yuv410p             3abc794b7a763b08bd5c24e7a531cb35
-yuv411p             478f7ecc0c84859ed4a23cd2e1f96a92
-yuv420p             8da6caa13ffce6ec37c603a5ffd30ba3
-yuv422p             725eb4f0af141dc986517dec3a84b6fb
-yuv440p             e9c6a5f11a3d2697e01a361e038a4ab8
-yuv444p             cf7971198613705ae89707d5e97d94f5
-yuva420p            1f20010e667ebe3bca4105d7e4d84dbf
-yuva422p            7f4785bc4ee9e939a64bb36d9456ef01
-yuva444p            2cbd185d426d4590d99c083a830b0f7b
-yuvj420p            bfc93fbdcdf2bec93a626d323a13d68c
-yuvj422p            b61587f65d206ce5654c88ecd055f5b7
-yuvj440p            6ea611c86dd6b18c01e4ddb2926a5663
-yuvj444p            9ad40f50112d06bc447643feb6382a93
+0bgr                39255df20922b1ffbaf70dc095487e21
+0rgb                7d6879c66b36a52e66ce55c833c3d682
+abgr                4e4ddc8e47c56e7ffb29aca591d77623
+argb                6d79953e088f65ea6fb95286ef3c1880
+bgr0                50c141e60199c26bdf3d4b994d8e318a
+bgr24               65210d503b3f5380c532cac7258a1d8e
+bgra                a423aa1c18e906b74934b9825b009687
+gray                1448406951db3b14afeda8681639042a
+rgb0                85a38e1832a0036e9fecb49198b544f9
+rgb24               9d6e7d76fd977bccdfe4571b65ffd41f
+rgba                d7b6c63b3c1e56bb2976cb2b9dcb4eeb
+yuv410p             b41268b6e7ac9ae188d4ba37a667bb82
+yuv411p             324c95080f6725a3105e1a096e428d40
+yuv420p             8fdb1e60d83cfe518c834495c12272ac
+yuv422p             0d24f8ff377eac785fdfb323c4e99535
+yuv440p             33fa2a5965b6ac3163d60f5c17754c04
+yuv444p             861639f66416b7e84081397a75ff51a1
+yuva420p            3b367091a0a2572b6ae3a403fba21d23
+yuva422p            bf50940eec9adb3bea0342e8e04e7d66
+yuva444p            d863cce447e17e6b7d3a085ea90d3ec3
+yuvj420p            98f4b0ba6c369690eedcbf0c520710eb
+yuvj422p            77a50bd244f134cdd458ff3bf518624b
+yuvj440p            c22aa02255577c8ac7d6594d31560bcd
+yuvj444p            c6ff986ff5be81c5462cc3a5ccf7426e
diff --git a/tests/ref/lavfi/pixfmts_pixdesctest b/tests/ref/lavfi/pixfmts_pixdesctest
index 08974d7..1939a85 100644
--- a/tests/ref/lavfi/pixfmts_pixdesctest
+++ b/tests/ref/lavfi/pixfmts_pixdesctest
@@ -1,83 +1,83 @@
-0bgr                3a2f7a255895f154bbc2c0541e11b66d
-0rgb                00ac9e01d63b821c394ac6203f7cd233
-abgr                1efbf983d9e05945b223e94281ba03dd
-argb                43db1b6f92785cb1741d1a8918be1cd6
-bgr0                fe56f8c8edc63130c65045dd8f1629f9
-bgr24               5a99ab751497ff2308654815bb386ab1
-bgr444be            ad888031403150f784afa4ab5e53fa25
-bgr444le            8bcb29875ef4446f7b40ad5cbe6293c7
-bgr48be             aef991ccc6241fe89501b791b6d1c8a4
-bgr48le             4fe26de32f985c661535592adb854ca0
-bgr4_byte           86ab90dbf28e0d1fcc474c1bc6f3e6ce
-bgr555be            83b5dc82aca5c59214e2821d7c37e101
-bgr555le            5b21fe6b886d105e086ac758c9739ef7
-bgr565be            a03cd63592f7aa85926852e1b0eefb55
-bgr565le            da9f51fd88b00b77a2bdb44092ced6ca
-bgr8                6ee3a027fdf23d9e7641cf9db622e38f
-bgra                571e36479d0bcc63c71d91432a15fd0b
-gray                669860b0e6f48784f1c4edec7d45a23d
-gray16be            c3720d00b935ae76108f6a05825f3ec4
-gray16le            1a4dfbdad429e3a0217dd03978665a60
-monob               cf885ca3ab5c4e79befec8e961b53e6b
-monow               39b7e285f47af4f11003972733a8ec04
-nv12                d0293efcd106022aee6f4696a2492594
-nv21                4b1adad7b2017b2e08a4c686778740bd
-pal8                f3442a379152b41f24a01c35bfe8b0d7
-rgb0                4b3850f80188f03b7fea0a39e5a035e4
-rgb24               4f016dcae1677971d5ab8fc5281b4eb1
-rgb444be            5a1f1e3248a7f74ad8a813f88d91e2c7
-rgb444le            db3babb73c538490c56f1dd1b42e32c2
-rgb48be             c157b4bfdaba46851fb409404f0e2b31
-rgb48le             aaeb094dfdd0f0390db94e558fb2e4ec
-rgb4_byte           7d2d7b9383f83902f83f78a49b401e9c
-rgb555be            cc39e0816288e2215e76520c2f3f17d8
-rgb555le            297ca82788b023a3f94677652c091f30
-rgb565be            1b0fc1a80a3913fe0eaf283e68b83d09
-rgb565le            b861ec0fa3c4197dffaef41fc66e7c52
-rgb8                d50a2f3503a8dd876197b604266cf15b
-rgba                090e417705ca0e5187f029eeb394a885
-uyvy422             95b3ca9c609beae6c61fa33a7e6fcfe3
-yuv410p             5652f52e932d718eaad651d06a11ce09
-yuv411p             857a16f561424bcf361784c2e8578d63
-yuv420p             489aa94d1a2abf74529ce5aaf812a338
-yuv420p10be         a1c91b8684cb84a946d78dfa80a6323f
-yuv420p10le         4de5eee1402ae84946a24e3cc4804502
-yuv420p12be         a0f533c65ceabba7ac74deb129435109
-yuv420p12le         fffb48e79346e5a120b12adb87e40980
-yuv420p14be         90f3cd8e808572d3b75fd258652b765f
-yuv420p14le         b41393e500813a4444ac5607c98d7d4b
-yuv420p16be         5b15ffe17c78761138a48cb91e94002e
-yuv420p16le         942b992ad799833754590f9c3371bdae
-yuv420p9be          db3b9b202f8014761e79cff2546536ea
-yuv420p9le          43341ba3955a5c1a1652218d5e466446
-yuv422p             cd9185df12127a7830820862b15d6150
-yuv422p10be         bf0d4d0d6a4d4896650eff08b0a157a4
-yuv422p10le         cab49211123e7337bf8e7b248befacdc
-yuv422p12be         ec8718c7f3a96e4b41d4e69cb1ecce0c
-yuv422p12le         a783156c3ae833b1b16b5f6238d1163b
-yuv422p14be         b58c2198c56330cc19cd61a35e7d799a
-yuv422p14le         7f74d4936577cab0e5e9d6be61a36820
-yuv422p16be         3725aa6136741d558900efc46fa02897
-yuv422p16le         e5613f26cf21e6caa14c55bfa6dbf91f
-yuv422p9be          9c162a559c912dc2a03c0ede9666d201
-yuv422p9le          d778190180fba976dc5e3162b7622d27
-yuv440p             bd74a3dbbba05205fd30e101216a8ee3
-yuv444p             14e06ce6ebba6eccda67d8c5fb0f3695
-yuv444p10be         67bcd450bb1f7de75e51b5e115083f8a
-yuv444p10le         8cd9fe3450e25e1635c5f982bc404f20
-yuv444p12be         2d709d5cbf2c61970e7e6d609fd30f44
-yuv444p12le         8096f6a0f7b6e9b7d60af2cb4d2459fe
-yuv444p14be         9ded64b1f7d37bc170d5c4f4b65c133b
-yuv444p14le         c4981882cca655f0cbc4ed07a33a24c7
-yuv444p16be         06f0ea1a525ddc34116b2c0e3021e5a9
-yuv444p16le         507fc54fe06db5fbd1e36182ec0df4a2
-yuv444p9be          29911d5ab017a4ba12d915dc078ecd87
-yuv444p9le          e55015c87e7a90d87258af0ea5cce0e3
-yuva420p            ff556e3f6cf74f322467860555612c74
-yuva422p            9370ac9fcb59806592f4a35fa8fa28e7
-yuva444p            bb5f5d0c12a9e09ae37ac3bafff907cf
-yuvj420p            295b48eaabd1d239647a20962ab2f1a3
-yuvj422p            cba3eba27031f3ff38ae511c0f7220af
-yuvj440p            53351b202fcda4e03a363e1dcdb808c0
-yuvj444p            b9a2528e0f59939f025c0ae2a885edc8
-yuyv422             1c0ecc295a449472049c9cfa5e8ee4ab
+0bgr                5d27afc2cf2ce274929dd4de94a2efbb
+0rgb                62e3a1d9253df23bdaf4ce30fad89e13
+abgr                df72ca35d31621dfb793a68e3a058c0e
+argb                e798ab12f3aeb454ada73dff71a03fcc
+bgr0                c650c5a5f7d1e63f36f3c601119bac02
+bgr24               2100f953dea4ef10eb1b51bdc913733e
+bgr444be            9ac705d6b376e54179e7270e22121e69
+bgr444le            c4db6c469f211819d304afdbbf344900
+bgr48be             52336c5ad4b1229bdb34ea42226144f7
+bgr48le             d3f1f46e272e7c7725fc1d482f3687b7
+bgr4_byte           055b8d527f17497d5245fc1347b4cd70
+bgr555be            f7f31cda9df45bd5f63c76fb0162426d
+bgr555le            0093d7a253686eb79f579bc24962187f
+bgr565be            53ac20cff64a4141b163640b143f74cf
+bgr565le            b29700c5b1300db3ab2e0e9af5bc2688
+bgr8                5eb0bbd04c4f484a8b334d94304ea7de
+bgra                cdea0a048183daf1aa71cb1226347270
+gray                fd2289b835017587db913c38060bff53
+gray16be            d681ecf7b10b50d074866a3c10fc79fc
+gray16le            d043ab55f76282cbabef7c8af2cb0cee
+monob               2065fd7c9ab96979b969678ddf62656c
+monow               b143abb40550d66f4730e8eb5318e1cb
+nv12                e25d6330c5474e3cf3ae3c3166c347f3
+nv21                27a634b83bb84ef857c5e1e55f6319a1
+pal8                0d9a7cb823d158890add60c1e00fbbd4
+rgb0                f234ca6f8a7eeec90eb1eeb89b45e779
+rgb24               bd3cd61dd250a2140939c876cd0eec58
+rgb444be            1e3baed4723a7011bc1457ccccaa2806
+rgb444le            7d7a857d60eb8bb2ed8088afefa22f45
+rgb48be             3d0a72dc5e82241b4bc39341232e9be7
+rgb48le             a933caeab470831b5e55145bb2e9baf2
+rgb4_byte           b9948106ff030f658840cc220480953c
+rgb555be            61986143c7372711ebb86ef1ea026519
+rgb555le            aab038e44ac91e4e91390109d38abd54
+rgb565be            4e25ac845c96519ae34e077630778a73
+rgb565le            7285fefdd0d2486e99c1dc1b0c6f31f5
+rgb8                68b1cefad048a7d36b2a6123daa460f9
+rgba                efef1ef98681bb79723f3b4d10bd27a1
+uyvy422             344794c8fbbfbd906ac0d5a5514cd78f
+yuv410p             1e8c3156dc963dcb079688b430b1c0b0
+yuv411p             2737ad48cd2285fb133e9be1f9a9cf28
+yuv420p             3b9efd4c33f3085a50a51dfbc5a4a5d1
+yuv420p10be         f93b411b661272389aff40fb6c411ea4
+yuv420p10le         6807cf71a20c8b37331f85b49e83deef
+yuv420p12be         0d8b314b9831a008d9fa6b918f0f4747
+yuv420p12le         8762d6d306e225099bcc7955246abc0b
+yuv420p14be         88772ae6715fbb5a2730d2d0ac3c30e6
+yuv420p14le         abee7a9aa16dbcf257ac802d6ee3c770
+yuv420p16be         4883d2fc25e199dfef01d0131a5486d2
+yuv420p16le         cff6975103082259414224f0721125ba
+yuv420p9be          37df84a076eac4a1c8fe6c53e4684f9a
+yuv420p9le          02e91e484f14af32ab7ca0b5c1f8e2f5
+yuv422p             25f74db9daefb5dba7de622c741998d0
+yuv422p10be         dae7945ccd81810e52dc338984e8b868
+yuv422p10le         c934050fd37931740c67756f51ce9018
+yuv422p12be         9d8cd9d80575bb7d66c9405e4125b6aa
+yuv422p12le         26c433074422d16e4dd3af40e4f68b4e
+yuv422p14be         76527aede5a9cba9bf77038e132fe445
+yuv422p14le         57062d9c84afad541192ad0b7edb04a8
+yuv422p16be         cdb6bdaf0aab1b2108c485cac2270180
+yuv422p16le         6405652cceab04406e0da4d9fbed6142
+yuv422p9be          c0ef13d609e0b6f04c55cf6f2a8264e7
+yuv422p9le          b5d3fcf6503355ebb1f424cc43c037a9
+yuv440p             7e1bc3dade41c9c05b4edf112c1ee4cc
+yuv444p             7fc0b7e65748d4f7744107d26ebe06f2
+yuv444p10be         82a8fda7281ccda727cd6b25da0e219b
+yuv444p10le         f5954f6dde3e09c83d9321f0b84f5275
+yuv444p12be         80c416697b0b006228019d6ea3c13257
+yuv444p12le         95eef7a4245229cb488141d83ea46df9
+yuv444p14be         71c4146d88c9cd27a4ba669d2869dedc
+yuv444p14le         04f25ade3a02022997ed3f8469f126a8
+yuv444p16be         941710611d7bb3828163979eaa4cfe35
+yuv444p16le         1896fd04ff664052ae74dfcb33ed13b5
+yuv444p9be          23ffab586f4fdd7b63604d782ec3291c
+yuv444p9le          db9137c4c96f892cb6d49c24d00b6e31
+yuva420p            d3c91b0a968b248b24628cf0be7f82fc
+yuva422p            062631b545bb922765045fbb6ad48d36
+yuva444p            294a3b99740a2b8f69c5f362a64b0ac1
+yuvj420p            0fccd4e9d15fd1e801b5f615cc66d7f2
+yuvj422p            659cf6f0caba0cfeaf3f471c4def8945
+yuvj440p            3af38ae458bcf7a32f7e7a3c0f012018
+yuvj444p            64c0788c6fb2ec4f5ac12918d3ec756f
+yuyv422             66a8ac11d5a512f3f16c2a823f3d396a
diff --git a/tests/ref/lavfi/pixfmts_scale b/tests/ref/lavfi/pixfmts_scale
index 9e89213..b7cb333 100644
--- a/tests/ref/lavfi/pixfmts_scale
+++ b/tests/ref/lavfi/pixfmts_scale
@@ -1,83 +1,83 @@
-0bgr                14371787cb6f25d13641c6ee20371b6b
-0rgb                91eddb69df6a24b979160958db22a565
-abgr                77db78782b1e7ddba60632dd1a303712
-argb                39ea6501e5d6eb294cd7eaab6371d343
-bgr0                25a81868b39ec50abcbe31c87c30a314
-bgr24               262e4b1d1c5e57ec510423f8b103deb1
-bgr444be            99910395203c3e3a124b88ce38c1ab30
-bgr444le            c97f15e264c3ed7aa3e762ea6badfbc5
-bgr48be             b9355b6e2fa9540844d3a4798a2f4cbc
-bgr48le             dbba0b9a29379a207d17e86727e590ec
-bgr4_byte           30e5b2a2e359510e44ec11af0485056e
-bgr555be            acd17ba4930f945be0d8aff56913a530
-bgr555le            c2d63d263ec54a8a0ac0f18f771b6fd4
-bgr565be            da90900ef28d0a968913d818b9151775
-bgr565le            a6b1d0cf6df7b12c70a6fde5bdbd300a
-bgr8                ef4ff3880990232eaf018000336a1c22
-bgra                95f4de4d34f216043e6faab0cada8f09
-gray                9f1890b80e6461b6dc52852b8ac2b46b
-gray16be            9553a17a213df5ac39ba63561d509e8d
-gray16le            e57f8e11e4b1469a33fd7872e5041cda
-monob               138812271ce79b8406dee4f7827ee315
-monow               a426636244885f16b5b0e53d4aac8a4d
-nv12                d9c8fede0c2b37efc9d392240ffda473
-nv21                db57de603b35c8b7825bdbee47ea6290
-pal8                b98525dc50bf0c8517289414f45738e0
-rgb0                036b5084768fd1aaf1c2beed6498c3d6
-rgb24               fd56bd5ae0b363db50ea0ddeed887357
-rgb444be            3458fde34335f458131bd2774697c356
-rgb444le            79353099096cb61721bc38d99dd5bdbf
-rgb48be             3e5cf94d961eb2450c05ccaeac1a441d
-rgb48le             01763198e94e34a3aef5f96e43ea9ac4
-rgb4_byte           f334376204287fdd2501f639005256a6
-rgb555be            e9e0308ea11a24ddee93726687bc2028
-rgb555le            6e0ecb95473955230024c8043ae38b6c
-rgb565be            262ad795c9b10e89ec72f9afae9152b0
-rgb565le            968790f4301ada0029df0a92efd6a1c1
-rgb8                64c5a73c8e09bb1514841629eb26ccff
-rgba                16eb3d427c37416eda786cf4ed22fc68
-uyvy422             63aafdc5321331cc771cb2dd01a4cc4e
-yuv410p             c5c8793588a517021a2201bbcfa503c6
-yuv411p             833360b69d70c002425f8976860e540d
-yuv420p             494b13c17712eddad7b837ca88211b4f
-yuv420p10be         1b4b0d0b2f209cd4d33a84907652cfa5
-yuv420p10le         6b5459a4c4d99205ef1d6dc3c1d5a7e2
-yuv420p12be         a8d6bf744abbdd55d5c3cde24de4b9cc
-yuv420p12le         794bac4781d58821d1e60cb821388a11
-yuv420p14be         16f2114f373c9446ff2aacf4b7e5f9fc
-yuv420p14le         2cb3fbf9ed08060a68ddcccfab6f884a
-yuv420p16be         3f51012ec7ad80ad03099598d5cce958
-yuv420p16le         26daa9638fc3971c959e20c30329beb2
-yuv420p9be          f381d3dfd8ca6b5b44aaa4f5583bf026
-yuv420p9le          3ab36daca6691c1fec64eba5b7070d8c
-yuv422p             6bea21dcd2a9e790e126ad27519a6cbb
-yuv422p10be         0dcc91430b4ae83e8567efb2b785e81d
-yuv422p10le         e56817bad3ff93319a9dd6bda8add151
-yuv422p12be         f943bb452e8e297c12185114b4df3181
-yuv422p12le         92a9e51141e0aee4741ea3b8e3255b2d
-yuv422p14be         f47e4c7b3a2ac4447d7bd5679dc16d86
-yuv422p14le         ed630d01cb5aaafaf356dfd15b3f57a1
-yuv422p16be         2c3dde6ece764d011e1aa513d1594818
-yuv422p16le         8e588d6e8e1816829cc9c138bc3ca5e0
-yuv422p9be          e6f84127e542f3728605d6e4d28f0209
-yuv422p9le          914f8415eab24f9c4aa4bf4f217022f1
-yuv440p             9b1b31dc70239952ea682631ca785b7c
-yuv444p             1731b67f3439fec9435e8796dc05e8a9
-yuv444p10be         c1bb15ed5c52f151bdbed2dc16c7fda5
-yuv444p10le         7925f118e9263b5794311cf0ae700ab0
-yuv444p12be         409453278552dcc8f813b545ea545f7d
-yuv444p12le         7f6dcfb61f2f37978d1f6ed0c52fb9e8
-yuv444p14be         65463b08fed9df349520bd41f00bebfb
-yuv444p14le         d56413c2f72ceeb81749011b8a7fe190
-yuv444p16be         863b6d45d776a0f8aa3b4acb806b6f50
-yuv444p16le         2e06a8dffb7a5b09a70becc013e13ad8
-yuv444p9be          26e1db6b43dd3479b5d20238e3e5edbb
-yuv444p9le          01c31ad72aff138698bdc9f7cef3105b
-yuva420p            4f8d6eda06a404cd85ce199ce5a75bf0
-yuva422p            620f340912561c9f5f93c211cb7d0842
-yuva444p            453b560554306aa20a19c577a7bb216f
-yuvj420p            48849ed52648620980aa323ee26aa7eb
-yuvj422p            36a5699407513b677de6838718862994
-yuvj440p            43f43fd7fb4a6f94b6ec3234be785f3a
-yuvj444p            6490aa566d645012537e9427f15d21d5
-yuyv422             21759d8b1d2e83282ce7f74bf51baea7
+0bgr                3ce1bc9a34055286b52265cc28ea349d
+0rgb                19c8fb4fa3a2495f99ff983065ed3c4b
+abgr                752147a57d2c92be19cd213a8333221a
+argb                77935afa001798a0726ec3d5d4736bc3
+bgr0                3ac1843150596ea403c1aa61efb67dc9
+bgr24               0fb9cabd8f7e5d271308525e5e458698
+bgr444be            b304d229ae359b3bb635c192ed299624
+bgr444le            7c0d23fa832ad2e02e4106f4673aa23b
+bgr48be             e6055866a17501886d779ca115331df4
+bgr48le             03a121ba6573682b403488000d48b2de
+bgr4_byte           8fb31aad8da39afe0598f7abe3c82dbb
+bgr555be            bc008dc5a62c8def883b5a72507a39ae
+bgr555le            41003f5722d8ce5815c3e521549b869b
+bgr565be            775ac4f0448bdccaba79d37246d56117
+bgr565le            72fa806e8eeef8c07c25db0fc38a6620
+bgr8                1b485af4ff09100ec5652a1252fd7375
+bgra                9e9eeff202945efd21ed81c52daf8377
+gray                c57498d4feadc8be0011b48f5b28342c
+gray16be            79e8e0ca7bd94caac2f0ff0e23fc0357
+gray16le            7293cad3f2a7e0eddbf16a6e72b18b0e
+monob               f88ddda6cefa9f929cd326afa22c38bb
+monow               1de0dae8147457014cf3587a47cd3e25
+nv12                97abee51c02b9db40e171a9b8b6d736a
+nv21                4d2eaac53eec063d2511bbb137f4970f
+pal8                7bf10078edfd8ac5e65e7943e2f79d98
+rgb0                d82f9bbc741c375b5dc809604b5702a5
+rgb24               6d50ac7ccfef26e62a7f5349c6dab408
+rgb444be            d6bfa7109e4c5e16bb761f0e88f785cd
+rgb444le            3c31c549f0da666f3bcd939530167ac4
+rgb48be             d6f5b8b2a8462835005787bc8e5ce9f0
+rgb48le             5ffbddea96d6ee5b02a71df4035ccda1
+rgb4_byte           2886596132c90eb609d1b2f84ddaa22c
+rgb555be            f383d09f5dee8892d1200e36e8173d39
+rgb555le            bf397518d047d7d6b809c1844a31354a
+rgb565be            ee180ebad7672fd85aff6c06d0c89ae3
+rgb565le            faaefce7053966bdcab2726eda02e586
+rgb8                7ba9b4e02d09d25add74459f97f50247
+rgba                996e2d84bc763daf4c509c5c14cca080
+uyvy422             cd6b284abeccb2385e081445d4e3aa2f
+yuv410p             b72725b068f8c71a762cae7e4873adb5
+yuv411p             2216b78c99e1a13ed29b9451f60c32cd
+yuv420p             c89df73fa9cbf6118f8250558e1dfdd0
+yuv420p10be         d5b9d95d4f91ca081566cb64c0f17dce
+yuv420p10le         618452c8ea0165ab0eaf0598f9f92ac0
+yuv420p12be         4203650200b824b9705db569aa377c5c
+yuv420p12le         a71bcbd55ab5aff72b14d0103f8958cd
+yuv420p14be         821ffa04da5ca99e5596d0da6d240b78
+yuv420p14le         7993673b9a2cb52fed6c8807b4f72c9d
+yuv420p16be         8ac3443f8881e479aed5468a164f807e
+yuv420p16le         92ba73688ed22b3c96d95835e2e2533b
+yuv420p9be          09b7483451fa813c714f924f7b40a8fa
+yuv420p9le          b48d1dc7637252dbbc644f3fdf966663
+yuv422p             dd118f69ba9f16848f116e2d1f60def5
+yuv422p10be         bd8dc8d310e5934bba851342931f458f
+yuv422p10le         5aa0cbe20cb0d50d141a42331d7d4f6a
+yuv422p12be         d8786641471bc5e238ba4bbdc5c5c084
+yuv422p12le         d84fb7e079646d340d38508b38006042
+yuv422p14be         0bcab72d67b81d02f192e4f47f444bf3
+yuv422p14le         a0d4626e49a418146c719cd42247245f
+yuv422p16be         17f451e622b2c7a66771b8bb90b6f5e3
+yuv422p16le         5787ef9812d6036488abed7a0a8bef65
+yuv422p9be          813699e5aa414cf74cc5dd52fdd3d7de
+yuv422p9le          a898e90e20341e520e225887b37d9b11
+yuv440p             20ee65fbdfeae7a307b1ccdf49aaf5b7
+yuv444p             bddef5056de6948d3fb26313e24aa0fe
+yuv444p10be         fc52d848951db516707a22bc9cf4ce99
+yuv444p10le         b0f6db34a21faaa829ae57450562533f
+yuv444p12be         3f8d2d9c5c086b3d587b4955113595d4
+yuv444p12le         3af051e5d91523a463840462fd233d92
+yuv444p14be         0dbda95a1774e95dbe48d0ab8314a6df
+yuv444p14le         8a23777e2d71f36d261eeabc043b24a6
+yuv444p16be         0a4c5aabd96cd3bd46ee4f80288d9b58
+yuv444p16le         1f971e9b86b48c5ab6747d895fbb4d48
+yuv444p9be          257af554645bbdcfef98bac6e2850df3
+yuv444p9le          99b4df1d55962c165ea67d2782d8b3c5
+yuva420p            138a51ee43fb46b532225b62ff9e41b6
+yuva422p            70bb6eb9dbc6b231ae5564f0a937d390
+yuva444p            0eb0627369313b663fa63dd5eaf09cd1
+yuvj420p            1fd2fc85b7d994f8ea9c4922fa51bb44
+yuvj422p            fc37fe1eba137c7f3caba130361e9859
+yuvj440p            0cb99655f287d60b5449773cc4c0325f
+yuvj444p            6f08b459c6b5cbe87485d679a15ac09f
+yuyv422             62f84b3f66a83ec4a342a5ee89496808
diff --git a/tests/ref/lavfi/pixfmts_super2xsai b/tests/ref/lavfi/pixfmts_super2xsai
index 5584fc9..a49c223 100644
--- a/tests/ref/lavfi/pixfmts_super2xsai
+++ b/tests/ref/lavfi/pixfmts_super2xsai
@@ -1,14 +1,14 @@
-abgr                72e4a233f5fa2c8c6b9c95583b69a3e1
-argb                8634cf8cf1e6c25eee93fc00494ed11b
-bgr24               b63dcc4d10d3e9ee70505328ba283f8f
-bgr555be            5e2f65a80547b48258f8ad1d3f8aafc2
-bgr555le            9f4c7baa78d4126993576c849abf2240
-bgr565be            1c99b149f2f1e85041716c3fc9881343
-bgr565le            750738a13ad7fa5f5704171ce2bb806f
-bgra                c28251ef6c7a7ada249accf17750f165
-rgb24               019d33663642ae0517c0215f5a5719f2
-rgb555be            a20298e4fc6574cea0ec7b6a2e4e0502
-rgb555le            bee2cdf7d0314de958d962055efb7954
-rgb565be            a69f68f33571f7d1b6a9b01f1b3cd4df
-rgb565le            94569d9dd804c85e9afebaf785aea031
-rgba                6e084b1e9e457269a970ac9385597d28
+abgr                f2d45b9c0696514cffb776d41ce28c72
+argb                7764fa15f6029ecdf67b4646497c1b9f
+bgr24               fbd7f1191c94c16b7b4916c55d75aef5
+bgr555be            887658475864bd33b9d713c2ac313ce9
+bgr555le            ee4f1ad5c162ed7ee7969a2dc745f4d2
+bgr565be            0a635551a328942410f78e3f9da173cf
+bgr565le            298fc08900612eb873585d4f6c13395c
+bgra                1016f5a3cd58ec4589bd01706a2f6026
+rgb24               1a05a569e202f5e613fbdb109d0afd79
+rgb555be            f475acd7d279760febd0f361d90848de
+rgb555le            0b1b2082055a6af93ddd386a3aed480e
+rgb565be            003a2862e6380742c86d020a73e15386
+rgb565le            b2059339b144c4a3bf4508dbf52b4d50
+rgba                03a4873617d083e784cc70554556904d
diff --git a/tests/ref/lavfi/pixfmts_vflip b/tests/ref/lavfi/pixfmts_vflip
index 5d7e656..1fbfb5b 100644
--- a/tests/ref/lavfi/pixfmts_vflip
+++ b/tests/ref/lavfi/pixfmts_vflip
@@ -1,83 +1,83 @@
-0bgr                fa3f0ce97b70ae0eb6fd24f6195f2091
-0rgb                300a5d5b80b746ebf00b1640dea2d817
-abgr                67710eb7e6d6e78d87c27e5c5b65e09c
-argb                6928f47cbd595792978ecfd72f588215
-bgr0                2c010f0f89d3d11b501d9421fa1a1733
-bgr24               506a7cf8eb73ff2e91dddd8989a18f12
-bgr444be            5a89a2ed5f90b86bc839a7bde8ea95e5
-bgr444le            b98d1e8563ff726ff80a6637af85afa3
-bgr48be             c1d44eb53d02e307ff8d0a1a57c0780d
-bgr48le             03c63a5d197008306be739c56d729420
-bgr4_byte           92fe489c4d786598d3e61bb2aa72d763
-bgr555be            4b260ce6fc19c7df90bb879fcc5cf962
-bgr555le            6b535578d42afa9b014fbcb17eb3b8c3
-bgr565be            5ace50bb09467828ea8efdd8713196ec
-bgr565le            88346e2e834adbb6bf7087dc5f7d2cc7
-bgr8                2373adfcf1b4a5968d8a00140d661e48
-bgra                7a1bd62f5768e6a1739546393972e721
-gray                d9d673e4ed652c080aa42631a97b94d4
-gray16be            88f90a01c5ae2ec57ed1041943071fbf
-gray16le            bcedd3c7bee4f2dc3890710df3ce2130
-monob               dfb092a1736017f95378bd76aeef16d8
-monow               940757cf7b0245ad69b8ef343085961e
-nv12                ef41a69821ea09da1de9d9c50872b265
-nv21                2d06f7dec8273737c58548efdc2d2e22
-pal8                e22b58f3621fbec7c044857dfe962939
-rgb0                ac7b37539ff03ffcb2cdfcc1321cb717
-rgb24               baffcf29cbef4164348bb73497535692
-rgb444be            6ac1c77afef40c6c86f5454aa66cb157
-rgb444le            56d48f09ca592166e18a88d009addb73
-rgb48be             a364c17acb67ba4f96ee4399970ca048
-rgb48le             791d935fc34e307104deb9899e28a2d3
-rgb4_byte           6cf30719d7cfe876b9d34baa0d28aec8
-rgb555be            dc3732df7b05e8cc88b7150c006d105c
-rgb555le            38eab4817339589dfe938a6d9c8b74ea
-rgb565be            6c0313d6ac0093e04740438eea7036ab
-rgb565le            47c4b1ddc3b7183c9bbe9d62046bd5d8
-rgb8                e1e00c02fff5c442bacc13e01dc64135
-rgba                b65c0e739b993d8ea16a9dbcc30cb132
-uyvy422             ece83505dc69e2004b5a344c4daa5a7d
-yuv410p             3fb3bbb96873d973ed70b9121c27a8f8
-yuv411p             106a75dc1312f66dbb497611a0a02520
-yuv420p             0a88149792aa1121ce8e7755f4523df9
-yuv420p10be         d1825eb808be09f5e080a86dcf7d705f
-yuv420p10le         f65d65b1f6f48eef28adb1bfd69d201e
-yuv420p12be         32d237de66223ae4b74431677af06593
-yuv420p12le         779c4b622ad3d64b88957493ae8d280b
-yuv420p14be         acafbaeb3d520d6f097a5678918bd66c
-yuv420p14le         07ca722472a8e5d17642489cbfa3f806
-yuv420p16be         58468ae4a7ca33a493c34d914e9adc7e
-yuv420p16le         eab1411947fb9b3b174e8edf3dd33424
-yuv420p9be          e491e39ea89ce81e086ccf30b08b174d
-yuv420p9le          326126b513f1d7f4db1565906e3cd3ba
-yuv422p             b1895d434e5b461704bc78cc0fe538de
-yuv422p10be         f31e81c31db780a5a37c93843eae7e9f
-yuv422p10le         116e79220d770960a7699af8b26c35d4
-yuv422p12be         c3619c347ea8296c1ed0aa5671ff8436
-yuv422p12le         0d189a30b2fa04b37b47261c10afb8e3
-yuv422p14be         1f743eb949370e4108f8ea64911bcc6b
-yuv422p14le         73c58185507f657e557860082e5f6b99
-yuv422p16be         619de2d8b32a3bb3bd7546957b4e358f
-yuv422p16le         9010c178b564cd937bd342ccecaa7ff9
-yuv422p9be          1db36898b100e3b508a36a677e2c4f70
-yuv422p9le          49218ae028d5577b9c646866350c8ebf
-yuv440p             25e36eb7fb5ac101507b916a4e12ba67
-yuv444p             33e85a87bcc2a3c8648ea21e79375b45
-yuv444p10be         ccd6e3f7997b41f2cb6593ec1cf34448
-yuv444p10le         c9b1346bae6d5c8ce63be9695ec1a7d9
-yuv444p12be         375703e688f9bfe1cdd23c3fdfd9027e
-yuv444p12le         85f50477867b3bc85ecf4d83c7bbda03
-yuv444p14be         e97d330963f1f9484b7313265bdc7d81
-yuv444p14le         2b6504830ff9f39335bd4b1ff70ec49c
-yuv444p16be         c9660655ca9a13993a9b615bc11f4b6e
-yuv444p16le         30fa301d390505b00761805fc6fb3eb6
-yuv444p9be          ddbdd8c0d103564e9fdf257d9928c9c3
-yuv444p9le          202fbf5dadb74b0e28ba8e34409adf4a
-yuva420p            5cf02b17792c24596fba194518b002de
-yuva422p            d5cb89aac9203927d2bd4a1793b69b62
-yuva444p            f819be12766f1a2ec0663fe2cde9f2c1
-yuvj420p            7fae45038fbe310c3ec94466479b7953
-yuvj422p            9ac0943a4b5e505476f210eb7146d543
-yuvj440p            fc9b4306e4a6c7d04af83fe54215a5dc
-yuvj444p            97f525e3ae103a9706a509e4e366d7ed
-yuyv422             d775e727ab42c1f47bf52fb88ed07b4e
+0bgr                65c37f17fcefbb9e13ea881e3d2a6ed9
+0rgb                d978d6197e4d8e3cd1c5a16635e33191
+abgr                d82c78ce55ee7b13283eb06808ff2c55
+argb                d61204b1ea19631f62cd5da9829e53cd
+bgr0                91df7d7d8dcc28e8a792cb586d6ea2e1
+bgr24               590f785b2ee4d07e6a143f8d962d4252
+bgr444be            c912d3590e369bf33c9a108624b4020a
+bgr444le            0e617f21fa0907f0d3ca15028227da48
+bgr48be             351903aa49b9951c31fa2247e5763a8b
+bgr48le             b62dabf1c65dccb0bfa29d76f0d14dfd
+bgr4_byte           1231cb20123f1396d26608a3d7d33df3
+bgr555be            1c4560fd6879240386024820b3283dc6
+bgr555le            cb2ae3a3fd8693fdeb8aac18e8982178
+bgr565be            b39020a17ecb6737cfee1f82982a3023
+bgr565le            38c30ce0681569d9b5d65750a78d456e
+bgr8                2a38e3955f833fcc97dd80ac859d2f7f
+bgra                16ca43eaa67266c1b41462f9cf5d5d88
+gray                955616d3028b294487f48c2e345fc59b
+gray16be            c782215b065c9aaa12ee71845fee7b0a
+gray16le            f0febe0cf21c0197ae14292c53564fca
+monob               c08eed9f0ce665ea022d3f0e40cbe88e
+monow               6cc761140ff9b184332ac001d5b54564
+nv12                49aaaf2ae4d30b60e30b476a713cf902
+nv21                32e66dc464e57815125853a9b6c2d281
+pal8                c5cebc912011c2735b57efad7cb13b89
+rgb0                7db53e57f7b59b08c90a1e694b679336
+rgb24               e3192324ac94044eb3e67be57d114d6d
+rgb444be            bf7591b8585221179f7df86fcabe204f
+rgb444le            027539e7b7123bbba9e7cbddb0778b27
+rgb48be             ced7163b1a735dda344b6c8730992f18
+rgb48le             8cf39f53c4d6db741de75e8ffbc40626
+rgb4_byte           33898e198a78da36f99a478ea2ebd305
+rgb555be            af5f06480433283c39247d657861f495
+rgb555le            71b884b9418e252dec92bc6c062c9d6e
+rgb565be            bf35002836fcd31b8484fe98f729ee75
+rgb565le            ead844d58860bbd831dead54bd9c133e
+rgb8                c14c59ab2ef8c08929fffacc8bd05ac0
+rgba                fd2fd45e3fd2ce4bbaac45f472f90fe6
+uyvy422             47bf2d601d82f6fbad6383ff8500fd94
+yuv410p             f6e036bf18f3dee06a6832a504bfee3e
+yuv411p             e3df929f6911726ad710b48dbb93e505
+yuv420p             b094859d64cdb8db951a1f664c316f62
+yuv420p10be         f41e11631870288d96ebe6f831e510cd
+yuv420p10le         6682733a0773e071fa3f21627845ddf3
+yuv420p12be         01b2b35f46f3f0d06e4e0375478296d2
+yuv420p12le         24e51174e989ea323113e02d5209476c
+yuv420p14be         14fcc4482a47d001d194eb7b8a12c838
+yuv420p14le         fee395f1d3406be6b6f6a126d56ea9e6
+yuv420p16be         4cd636eeee2280d2be0f3e3dc74556f2
+yuv420p16le         53626a1f9108e72a0dbb2a0c81c2fae8
+yuv420p9be          c3ee1bf19c096823b36b1327092e7983
+yuv420p9le          1b4242fbd5926e234701ccedfc00d975
+yuv422p             170fdc8ea3b1eb34cc97443376f1be2e
+yuv422p10be         8ad523d324d65fe10b1c623b530b58a7
+yuv422p10le         da5741e5e4640bbccf7d0af32700c8cb
+yuv422p12be         fa2407c96417dbac01ac54d63683f850
+yuv422p12le         cc4316bb8c4dd1b0b8b8a42f39642664
+yuv422p14be         133f3b7146ac02bc03816f6eb90dc5f3
+yuv422p14le         0ed9f7d3780937f35b5d64bdb2717b44
+yuv422p16be         8c21130d6fe0ebc6973d0a4b2ba7b3fe
+yuv422p16le         dba9c1f3632ba531223be16b7c2d2d3b
+yuv422p9be          eb50f2863e978f80fd531ae8995a7980
+yuv422p9le          2c4fd178d1615cbcb08de31a6bb54fa1
+yuv440p             4d969eb6639f126c7c98e6280bdf2baa
+yuv444p             b6c599162e07f65760a269b2d63b8ecd
+yuv444p10be         b27ea256178f708b6e9a1d20925e7637
+yuv444p10le         3f2c54115e916fc8a672f70fd747b84b
+yuv444p12be         15f839b31abf06b094ba6ef25c835cd2
+yuv444p12le         e8ad6ffa33cea8e6992adda3b0a1eba8
+yuv444p14be         76f3b394456962b0412b9b15ae895de6
+yuv444p14le         09907cfde0ac70a03afca65beab359c6
+yuv444p16be         85ec05f8bb62f1504ab1d3d60ad2a9b2
+yuv444p16le         bb2fbe90f09cfb087356cfd9e92474eb
+yuv444p9be          5173c8c8a5a72c876ba59279265b3700
+yuv444p9le          4408765b849e38aaeb894ed4876f130e
+yuva420p            a92c15d9ec21c44f702f1ba3db846736
+yuva422p            b2ca7fed10696ab2b4f49075739fe9cf
+yuva444p            460bf7143e465123ed04d6b07be1aa44
+yuvj420p            3b0da9747198b581441ad8532d3776b8
+yuvj422p            d19d33320595f4e43f5bb1dcae98e8ab
+yuvj440p            672fe1cd7cc5bcbdb4e1f923d9b57870
+yuvj444p            41a870a25c56ba531324540cbefbcfc5
+yuyv422             5a4482c46eb8bfa1e5c78b721f3d1363
diff --git a/tests/ref/lavfi/pp b/tests/ref/lavfi/pp
index 66db725..6a04bb9 100644
--- a/tests/ref/lavfi/pp
+++ b/tests/ref/lavfi/pp
@@ -1 +1 @@
-pp                  e0756dea5d0bb61c81fbb1b940c95244
+pp                  9d6801cb6cdd2666d6f153622231e20c
diff --git a/tests/ref/lavfi/pp2 b/tests/ref/lavfi/pp2
index 5182cc1..a3cda51 100644
--- a/tests/ref/lavfi/pp2
+++ b/tests/ref/lavfi/pp2
@@ -1 +1 @@
-pp2                 4c6d874eb355ab99bfd80ff8326d2558
+pp2                 a6bde15c1a1a1499df0c48758820d505
diff --git a/tests/ref/lavfi/pp3 b/tests/ref/lavfi/pp3
index ad4bea1..5fca6c6 100644
--- a/tests/ref/lavfi/pp3
+++ b/tests/ref/lavfi/pp3
@@ -1 +1 @@
-pp3                 2cdcc4683fd6c1f5c4dbd4f35428c5ee
+pp3                 8c7ec3f97cc6507be25ce0844c628bd2
diff --git a/tests/ref/lavfi/pp4 b/tests/ref/lavfi/pp4
index 69c2712..70995f6 100644
--- a/tests/ref/lavfi/pp4
+++ b/tests/ref/lavfi/pp4
@@ -1 +1 @@
-pp4                 7e51ac70aab4c738642ebd006e517138
+pp4                 1b3fa0980c69c6634c156e53929066d3
diff --git a/tests/ref/lavfi/pp5 b/tests/ref/lavfi/pp5
index 6afd078..d24789d 100644
--- a/tests/ref/lavfi/pp5
+++ b/tests/ref/lavfi/pp5
@@ -1 +1 @@
-pp5                 263d82e8b07f92d2d6a9ed0256f545b8
+pp5                 6c58afa1e224d2884f42fa1f7d51101d
diff --git a/tests/ref/lavfi/pp6 b/tests/ref/lavfi/pp6
index c660ad3..ece74e7 100644
--- a/tests/ref/lavfi/pp6
+++ b/tests/ref/lavfi/pp6
@@ -1 +1 @@
-pp6                 b46b6f830861d16153de2a9671c98e75
+pp6                 23b2a314bd833ad20232b4a52bcb4af5
diff --git a/tests/ref/lavfi/scale200 b/tests/ref/lavfi/scale200
index a956537..2c03914 100644
--- a/tests/ref/lavfi/scale200
+++ b/tests/ref/lavfi/scale200
@@ -1 +1 @@
-scale200            065fcec08fb9d4b9ed723af659ae1e01
+scale200            2d4bcb30bd9a583f9bb62efe34126c18
diff --git a/tests/ref/lavfi/scale500 b/tests/ref/lavfi/scale500
index 9dc46c4..ea12586 100644
--- a/tests/ref/lavfi/scale500
+++ b/tests/ref/lavfi/scale500
@@ -1 +1 @@
-scale500            696a493074397146e3c5d0b49ffa5caf
+scale500            f5cb0b192d86eabde2d990415cd705e6
diff --git a/tests/ref/lavfi/select b/tests/ref/lavfi/select
index f8c3297..f94634c 100644
--- a/tests/ref/lavfi/select
+++ b/tests/ref/lavfi/select
@@ -1 +1 @@
-select              0f5c26bc1741e0b72500a5bb7f33d15e
+select              aa747d1b7ca5de029c008e8250b96892
diff --git a/tests/ref/lavfi/setdar b/tests/ref/lavfi/setdar
index 180ad75..3f7a35a 100644
--- a/tests/ref/lavfi/setdar
+++ b/tests/ref/lavfi/setdar
@@ -1 +1 @@
-setdar              5e69edb10e33ecf536d0b2e9e42229df
+setdar              8e09e3fd83c0d6c04c6c5b2b731dda57
diff --git a/tests/ref/lavfi/setsar b/tests/ref/lavfi/setsar
index 2fee0c6..9f1c889 100644
--- a/tests/ref/lavfi/setsar
+++ b/tests/ref/lavfi/setsar
@@ -1 +1 @@
-setsar              5e69edb10e33ecf536d0b2e9e42229df
+setsar              8e09e3fd83c0d6c04c6c5b2b731dda57
diff --git a/tests/ref/lavfi/testsrc b/tests/ref/lavfi/testsrc
index a562466..c8eab42 100644
--- a/tests/ref/lavfi/testsrc
+++ b/tests/ref/lavfi/testsrc
@@ -1 +1 @@
-testsrc             285e218c941d6830b7174095e9814132
+testsrc             a175050c9c6351aca37945ec64669d2f
diff --git a/tests/ref/lavfi/thumbnail b/tests/ref/lavfi/thumbnail
index af6020c..775702a 100644
--- a/tests/ref/lavfi/thumbnail
+++ b/tests/ref/lavfi/thumbnail
@@ -1 +1 @@
-thumbnail           87f897b86cbecc7130780d309b42596b
+thumbnail           067e76a08efb02d53b04259230e236bd
diff --git a/tests/ref/lavfi/tile b/tests/ref/lavfi/tile
index 0fef007..fabfd8a 100644
--- a/tests/ref/lavfi/tile
+++ b/tests/ref/lavfi/tile
@@ -1 +1 @@
-tile                8016e2f3cbab976d0dcf531655220bdd
+tile                823967ac614525193829af654284137c
diff --git a/tests/ref/lavfi/tinterlace_merge b/tests/ref/lavfi/tinterlace_merge
index 42675a4..226e515 100644
--- a/tests/ref/lavfi/tinterlace_merge
+++ b/tests/ref/lavfi/tinterlace_merge
@@ -1,10 +1,10 @@
-gray                26b6b9e89fe1f32695f726639351504c
-yuv410p             3634d715f95aecceba00c96f40c121b6
-yuv420p             62339167a917a51e4d528ccf2d26de0f
-yuv422p             de3480004bdb8e7b711f5b465014aeab
-yuv444p             9c9847984402eaefde910ad8a088e356
-yuva420p            65f7fd965c848713ecb84e462722b173
-yuvj420p            a32361014887cda411c64253be37e020
-yuvj422p            2e2252ecb9d98b355f0cadd8495b340d
-yuvj440p            fff44eb68a5bfc9815637d0706b9b23c
-yuvj444p            23f3c3bbe1cb263202c366b8a2abc649
+gray                24de1c96cee124e642ab4ee92e62e2f3
+yuv410p             231f422123cddd99bb569abf58b22772
+yuv420p             abf98c200797e970d5f871bead44deb1
+yuv422p             b17c9833a68955eb7b28e4da3341f9b8
+yuv444p             a44bca88ce6d0afe52c29301fd0e90dc
+yuva420p            926fcd2f96cb08de76c72f056fe25d1b
+yuvj420p            bbae7aa2382518bb46f330d0b6eb815b
+yuvj422p            cd21685cd612921ccc42cf28521139f3
+yuvj440p            e1c7114e67babdde460a4f20d87b7686
+yuvj444p            acb6465edef95ada6d7cfcf027d1e466
diff --git a/tests/ref/lavfi/tinterlace_pad b/tests/ref/lavfi/tinterlace_pad
index 2e41c41..600c4f0 100644
--- a/tests/ref/lavfi/tinterlace_pad
+++ b/tests/ref/lavfi/tinterlace_pad
@@ -1,10 +1,10 @@
-gray                9258e5cf66725a1814302cff34d4e765
-yuv410p             4557c54e14f761e3cafae7681d696d90
-yuv420p             d9dee6c4f0eaedc55819fda8e2fd43a3
-yuv422p             531cfaad53e2fe4021286075ca0987e0
-yuv444p             7aff195b2d5a5390f8e83f64c4c66789
-yuva420p            5260ee1f1088eb1df6a671b10229c8c8
-yuvj420p            bc1ddf876ee211a8b6ef684b66f90a02
-yuvj422p            7ff40b351f2b11d901e9ffefe9fa9e45
-yuvj440p            aa4ad715791d02e2b4a62b2a083429ef
-yuvj444p            b1b5967c63467b415acdd7d653b2cef4
+gray                bca7d5868dddc5f46cf1d04c5b2d2b1d
+yuv410p             37ddf2682d741d68fda642985243474c
+yuv420p             d0d4b03682f22b6aca12d7d3bb165576
+yuv422p             b6eb830427726ba5af4a5a08920641d9
+yuv444p             7883e75f707c8dfb80997a0c5a86ef26
+yuva420p            4d06d440e793b16dceda7d7378795ea3
+yuvj420p            ad5141f7da9df1b59b60f68e11fa95b9
+yuvj422p            f63e368ed3356bb104c70df5dbe55846
+yuvj440p            8ad1d8507deb44cc6353321654bae519
+yuvj444p            b936b099450f7fc0143b8948b477185b
diff --git a/tests/ref/lavfi/transpose b/tests/ref/lavfi/transpose
index 7ed6be1..e292f8c 100644
--- a/tests/ref/lavfi/transpose
+++ b/tests/ref/lavfi/transpose
@@ -1 +1 @@
-transpose           14056020d8d3d53a1e777c9cf265d590
+transpose           7ab8e0774838c7de11c610e0750de64b
diff --git a/tests/ref/lavfi/unsharp b/tests/ref/lavfi/unsharp
index 70d19b9..c563259 100644
--- a/tests/ref/lavfi/unsharp
+++ b/tests/ref/lavfi/unsharp
@@ -1 +1 @@
-unsharp             d8075a533238ec096926b205a27ec87c
+unsharp             da200fd29ad94878fe24de852877a353
diff --git a/tests/ref/lavfi/vflip b/tests/ref/lavfi/vflip
index 23ac2b4..8fe4233 100644
--- a/tests/ref/lavfi/vflip
+++ b/tests/ref/lavfi/vflip
@@ -1 +1 @@
-vflip               0a88149792aa1121ce8e7755f4523df9
+vflip               b094859d64cdb8db951a1f664c316f62
diff --git a/tests/ref/lavfi/vflip_crop b/tests/ref/lavfi/vflip_crop
index a63eb8b..f2ece1f 100644
--- a/tests/ref/lavfi/vflip_crop
+++ b/tests/ref/lavfi/vflip_crop
@@ -1 +1 @@
-vflip_crop          5bc8ad16993c93cd00f03b90ed376c64
+vflip_crop          53f8135938538c3484e38166e50c2d76
diff --git a/tests/ref/lavfi/vflip_vflip b/tests/ref/lavfi/vflip_vflip
index 5391c19..e4d7dfb 100644
--- a/tests/ref/lavfi/vflip_vflip
+++ b/tests/ref/lavfi/vflip_vflip
@@ -1 +1 @@
-vflip_vflip         489aa94d1a2abf74529ce5aaf812a338
+vflip_vflip         3b9efd4c33f3085a50a51dfbc5a4a5d1
diff --git a/tests/ref/seek/lavf_nut b/tests/ref/seek/lavf_nut
index bb6fc43..de346ec 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:    296 size:   208
+ret: 0         st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos:    333 size:   208
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    522 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    559 size: 27837
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st: 0 flags:0  ts: 0.800000
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st: 0 flags:1  ts:-0.320000
-ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    522 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    559 size: 27837
 ret: 0         st: 1 flags:0  ts: 2.576667
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271188 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271225 size:   209
 ret: 0         st: 1 flags:1  ts: 1.470839
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271188 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271225 size:   209
 ret: 0         st:-1 flags:0  ts: 0.365002
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st:-1 flags:1  ts:-0.740831
-ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    522 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    559 size: 27837
 ret: 0         st: 0 flags:0  ts: 2.160000
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st: 0 flags:1  ts: 1.040000
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st: 1 flags:0  ts:-0.058322
-ret: 0         st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos:    296 size:   208
+ret: 0         st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos:    333 size:   208
 ret: 0         st: 1 flags:1  ts: 2.835828
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271188 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271225 size:   209
 ret: 0         st:-1 flags:0  ts: 1.730004
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st: 0 flags:0  ts:-0.480000
-ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    522 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    559 size: 27837
 ret: 0         st: 0 flags:1  ts: 2.400000
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st: 1 flags:0  ts: 1.306667
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271188 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271225 size:   209
 ret: 0         st: 1 flags:1  ts: 0.200839
-ret: 0         st: 1 flags:1 dts: 0.182857 pts: 0.182857 pos:  71851 size:   209
+ret: 0         st: 1 flags:1 dts: 0.182857 pts: 0.182857 pos:  71888 size:   209
 ret: 0         st:-1 flags:0  ts:-0.904994
-ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    522 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    559 size: 27837
 ret: 0         st:-1 flags:1  ts: 1.989173
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st: 0 flags:0  ts: 0.880000
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st: 0 flags:1  ts:-0.240000
-ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    522 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    559 size: 27837
 ret: 0         st: 1 flags:0  ts: 2.671678
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271188 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271225 size:   209
 ret: 0         st: 1 flags:1  ts: 1.565850
-ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271188 size:   209
+ret: 0         st: 1 flags:1 dts: 0.862041 pts: 0.862041 pos: 271225 size:   209
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146375 size: 27925
+ret: 0         st: 0 flags:1 dts: 0.520000 pts: 0.520000 pos: 146412 size: 27925
 ret: 0         st:-1 flags:1  ts:-0.645825
-ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    522 size: 27837
+ret: 0         st: 0 flags:1 dts: 0.040000 pts: 0.040000 pos:    559 size: 27837



More information about the ffmpeg-cvslog mailing list