diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 35f54c6..7138cc0 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -894,6 +894,10 @@ slices_ok:
             }
     }
 
+    // estimate bitrate assuming 40% compression
+    avctx->bit_rate = ff_guess_coded_bitrate(avctx) * 2 / 5;
+    avctx->bit_rate_tolerance = avctx->bit_rate;
+
     return 0;
 }
 
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c
index 89639b7..8911408 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -446,6 +446,10 @@ FF_ENABLE_DEPRECATION_WARNINGS
 
     s->picture_number=0;
 
+    // estimate bitrate assuming 60% compression
+    avctx->bit_rate = ff_guess_coded_bitrate(avctx) * 3 / 5;
+    avctx->bit_rate_tolerance = avctx->bit_rate;
+
     return 0;
 }
 static int encode_422_bitstream(HYuvContext *s, int offset, int count)
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index c92dba4..a63793b 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -361,4 +361,10 @@ int ff_side_data_set_encoder_stats(AVPacket *pkt, int quality, int64_t *error, i
 int ff_alloc_a53_sei(const AVFrame *frame, size_t prefix_len,
                      void **data, size_t *sei_size);
 
+/**
+ * Get an estimated video bitrate based on frame size, frame rate and coded
+ * bits per pixel.
+ */
+int64_t ff_guess_coded_bitrate(AVCodecContext *avctx);
+
 #endif /* AVCODEC_INTERNAL_H */
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f8ec4c1..561cabc 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -4329,3 +4329,24 @@ int ff_alloc_a53_sei(const AVFrame *frame, size_t prefix_len,
 
     return 0;
 }
+
+int64_t ff_guess_coded_bitrate(AVCodecContext *avctx)
+{
+    AVRational framerate = avctx->framerate;
+    int bits_per_coded_sample = avctx->bits_per_coded_sample;
+    int64_t bitrate;
+
+    if (!(framerate.num && framerate.den))
+        framerate = av_inv_q(avctx->time_base);
+    if (!(framerate.num && framerate.den))
+        return 0;
+
+    if (!bits_per_coded_sample) {
+        const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
+        bits_per_coded_sample = av_get_bits_per_pixel(desc);
+    }
+    bitrate = (int64_t)bits_per_coded_sample * avctx->width * avctx->height *
+              framerate.num / framerate.den;
+
+    return bitrate;
+}
diff --git a/tests/ref/vsynth/vsynth1-ffv1 b/tests/ref/vsynth/vsynth1-ffv1
index 001f10a..64229db 100644
--- a/tests/ref/vsynth/vsynth1-ffv1
+++ b/tests/ref/vsynth/vsynth1-ffv1
@@ -1,4 +1,4 @@
-26b1296a0ef80a3b5c8b63cc57c52bc2 *tests/data/fate/vsynth1-ffv1.avi
+69e340b652a8f4327dd3206694038895 *tests/data/fate/vsynth1-ffv1.avi
 2691268 tests/data/fate/vsynth1-ffv1.avi
 c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffv1-v0 b/tests/ref/vsynth/vsynth1-ffv1-v0
index 8c722e4..48e90a1 100644
--- a/tests/ref/vsynth/vsynth1-ffv1-v0
+++ b/tests/ref/vsynth/vsynth1-ffv1-v0
@@ -1,4 +1,4 @@
-36011c9a2b288fb04bf6c520371646d4 *tests/data/fate/vsynth1-ffv1-v0.avi
+60abe2036d363181732272ac8ea52f0e *tests/data/fate/vsynth1-ffv1-v0.avi
 2655368 tests/data/fate/vsynth1-ffv1-v0.avi
 c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1-v0.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffv1-v3-bgr0 b/tests/ref/vsynth/vsynth1-ffv1-v3-bgr0
index 3808f49..b203246 100644
--- a/tests/ref/vsynth/vsynth1-ffv1-v3-bgr0
+++ b/tests/ref/vsynth/vsynth1-ffv1-v3-bgr0
@@ -1,4 +1,4 @@
-3c68357b239479fc26656f6dd76b0b58 *tests/data/fate/vsynth1-ffv1-v3-bgr0.avi
+a600af23538090372f56fea8ecd49d62 *tests/data/fate/vsynth1-ffv1-v3-bgr0.avi
 6883176 tests/data/fate/vsynth1-ffv1-v3-bgr0.avi
 49c03ab1b73b7cd3cabc3c77a9479c9e *tests/data/fate/vsynth1-ffv1-v3-bgr0.out.rawvideo
 stddev:    3.16 PSNR: 38.12 MAXDIFF:   50 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffv1-v3-rgb48 b/tests/ref/vsynth/vsynth1-ffv1-v3-rgb48
index 5c44488..4e94817 100644
--- a/tests/ref/vsynth/vsynth1-ffv1-v3-rgb48
+++ b/tests/ref/vsynth/vsynth1-ffv1-v3-rgb48
@@ -1,4 +1,4 @@
-f457dba7d58f0c28aedcfef518758d23 *tests/data/fate/vsynth1-ffv1-v3-rgb48.avi
+8dac00a7b847f87591b13d4a21c3ce75 *tests/data/fate/vsynth1-ffv1-v3-rgb48.avi
 16858304 tests/data/fate/vsynth1-ffv1-v3-rgb48.avi
 b91ddc45eb70b4377dc7439e16733232 *tests/data/fate/vsynth1-ffv1-v3-rgb48.out.rawvideo
 stddev:    3.58 PSNR: 37.04 MAXDIFF:   75 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffv1-v3-yuv420p b/tests/ref/vsynth/vsynth1-ffv1-v3-yuv420p
index a4af95b..e387c42 100644
--- a/tests/ref/vsynth/vsynth1-ffv1-v3-yuv420p
+++ b/tests/ref/vsynth/vsynth1-ffv1-v3-yuv420p
@@ -1,4 +1,4 @@
-26b1296a0ef80a3b5c8b63cc57c52bc2 *tests/data/fate/vsynth1-ffv1-v3-yuv420p.avi
+69e340b652a8f4327dd3206694038895 *tests/data/fate/vsynth1-ffv1-v3-yuv420p.avi
 2691268 tests/data/fate/vsynth1-ffv1-v3-yuv420p.avi
 c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1-v3-yuv420p.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffv1-v3-yuv422p10 b/tests/ref/vsynth/vsynth1-ffv1-v3-yuv422p10
index d56cf27..82fef85 100644
--- a/tests/ref/vsynth/vsynth1-ffv1-v3-yuv422p10
+++ b/tests/ref/vsynth/vsynth1-ffv1-v3-yuv422p10
@@ -1,4 +1,4 @@
-aa8c5630213381c7b2afdec4a91405ed *tests/data/fate/vsynth1-ffv1-v3-yuv422p10.avi
+9ee0d9766fa49008ad5501ab02359d74 *tests/data/fate/vsynth1-ffv1-v3-yuv422p10.avi
 2845574 tests/data/fate/vsynth1-ffv1-v3-yuv422p10.avi
 c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1-v3-yuv422p10.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffv1-v3-yuv444p16 b/tests/ref/vsynth/vsynth1-ffv1-v3-yuv444p16
index 5d919ea..4925cc8 100644
--- a/tests/ref/vsynth/vsynth1-ffv1-v3-yuv444p16
+++ b/tests/ref/vsynth/vsynth1-ffv1-v3-yuv444p16
@@ -1,4 +1,4 @@
-f6b6943455d8b2c3010ff898df5dc9db *tests/data/fate/vsynth1-ffv1-v3-yuv444p16.avi
+c536b49b7a004974e1263eb18348b035 *tests/data/fate/vsynth1-ffv1-v3-yuv444p16.avi
 5357816 tests/data/fate/vsynth1-ffv1-v3-yuv444p16.avi
 c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1-v3-yuv444p16.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffvhuff b/tests/ref/vsynth/vsynth1-ffvhuff
index c982fb9..890ccf0 100644
--- a/tests/ref/vsynth/vsynth1-ffvhuff
+++ b/tests/ref/vsynth/vsynth1-ffvhuff
@@ -1,4 +1,4 @@
-be797b3c97bea941c5df720b44b779d4 *tests/data/fate/vsynth1-ffvhuff.avi
+04bc11476caaf29cd842cd1ea4f48eb5 *tests/data/fate/vsynth1-ffvhuff.avi
 6809214 tests/data/fate/vsynth1-ffvhuff.avi
 c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffvhuff.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffvhuff420p12 b/tests/ref/vsynth/vsynth1-ffvhuff420p12
index 0d80bd6..c487102 100644
--- a/tests/ref/vsynth/vsynth1-ffvhuff420p12
+++ b/tests/ref/vsynth/vsynth1-ffvhuff420p12
@@ -1,4 +1,4 @@
-866485c954242232878e40f0389790dd *tests/data/fate/vsynth1-ffvhuff420p12.avi
+3839b2910c25bb1a4d6b4fe84f3a90c4 *tests/data/fate/vsynth1-ffvhuff420p12.avi
 14205356 tests/data/fate/vsynth1-ffvhuff420p12.avi
 b48f32c140712e8c7bf81cfdd66ae312 *tests/data/fate/vsynth1-ffvhuff420p12.out.rawvideo
 stddev:    0.68 PSNR: 51.47 MAXDIFF:    1 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffvhuff422p10left b/tests/ref/vsynth/vsynth1-ffvhuff422p10left
index 25c2ded..bd6ad05 100644
--- a/tests/ref/vsynth/vsynth1-ffvhuff422p10left
+++ b/tests/ref/vsynth/vsynth1-ffvhuff422p10left
@@ -1,4 +1,4 @@
-d29edc22816fd865d3075ad6c1eaaffa *tests/data/fate/vsynth1-ffvhuff422p10left.avi
+1db193afb0aa36e229347bdef1369131 *tests/data/fate/vsynth1-ffvhuff422p10left.avi
 13860684 tests/data/fate/vsynth1-ffvhuff422p10left.avi
 c31e6caada921ffa3daad3432ef3b754 *tests/data/fate/vsynth1-ffvhuff422p10left.out.rawvideo
 stddev:    1.85 PSNR: 42.78 MAXDIFF:   29 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffvhuff444 b/tests/ref/vsynth/vsynth1-ffvhuff444
index 978a0af..87e57cf 100644
--- a/tests/ref/vsynth/vsynth1-ffvhuff444
+++ b/tests/ref/vsynth/vsynth1-ffvhuff444
@@ -1,4 +1,4 @@
-b013f0933ef27f7e23a62a13226e0510 *tests/data/fate/vsynth1-ffvhuff444.avi
+448c40aea4c5b8a270292e1909f92ed2 *tests/data/fate/vsynth1-ffvhuff444.avi
 11712342 tests/data/fate/vsynth1-ffvhuff444.avi
 10fb42f1abf40a289c3edafc0390482c *tests/data/fate/vsynth1-ffvhuff444.out.rawvideo
 stddev:    2.67 PSNR: 39.60 MAXDIFF:   43 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-ffvhuff444p16 b/tests/ref/vsynth/vsynth1-ffvhuff444p16
index f3a6d7d..87611d5 100644
--- a/tests/ref/vsynth/vsynth1-ffvhuff444p16
+++ b/tests/ref/vsynth/vsynth1-ffvhuff444p16
@@ -1,4 +1,4 @@
-2f780c186d2549aa257511a951918617 *tests/data/fate/vsynth1-ffvhuff444p16.avi
+1f44582800e4819a22a4c98742d1aa78 *tests/data/fate/vsynth1-ffvhuff444p16.avi
 24706276 tests/data/fate/vsynth1-ffvhuff444p16.avi
 ee8379fa217dfd023de3aa6974a14d1e *tests/data/fate/vsynth1-ffvhuff444p16.out.rawvideo
 stddev:    2.66 PSNR: 39.62 MAXDIFF:   44 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-huffyuv b/tests/ref/vsynth/vsynth1-huffyuv
index 6bf7944..4fd368d 100644
--- a/tests/ref/vsynth/vsynth1-huffyuv
+++ b/tests/ref/vsynth/vsynth1-huffyuv
@@ -1,4 +1,4 @@
-9a89f73cb2e305c15dda99c99c39b9d1 *tests/data/fate/vsynth1-huffyuv.avi
+d72eb3904488698b27f3021e8463a8d2 *tests/data/fate/vsynth1-huffyuv.avi
 8876474 tests/data/fate/vsynth1-huffyuv.avi
 c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-huffyuv.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-huffyuvbgr24 b/tests/ref/vsynth/vsynth1-huffyuvbgr24
index e4e7723..d2a1983 100644
--- a/tests/ref/vsynth/vsynth1-huffyuvbgr24
+++ b/tests/ref/vsynth/vsynth1-huffyuvbgr24
@@ -1,4 +1,4 @@
-54032b56a1727c1ad940d8c66d65169e *tests/data/fate/vsynth1-huffyuvbgr24.avi
+f21eda6885c87a8e2a0ce55e2af3ae69 *tests/data/fate/vsynth1-huffyuvbgr24.avi
 13196990 tests/data/fate/vsynth1-huffyuvbgr24.avi
 49c03ab1b73b7cd3cabc3c77a9479c9e *tests/data/fate/vsynth1-huffyuvbgr24.out.rawvideo
 stddev:    3.16 PSNR: 38.12 MAXDIFF:   50 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-huffyuvbgra b/tests/ref/vsynth/vsynth1-huffyuvbgra
index f4ea59b..0496c96 100644
--- a/tests/ref/vsynth/vsynth1-huffyuvbgra
+++ b/tests/ref/vsynth/vsynth1-huffyuvbgra
@@ -1,4 +1,4 @@
-98e1f0bd1734cfb0eb0b442259a7de32 *tests/data/fate/vsynth1-huffyuvbgra.avi
+07c03a875ca5bee9d6703c0ad86aa79e *tests/data/fate/vsynth1-huffyuvbgra.avi
 14464170 tests/data/fate/vsynth1-huffyuvbgra.avi
 49c03ab1b73b7cd3cabc3c77a9479c9e *tests/data/fate/vsynth1-huffyuvbgra.out.rawvideo
 stddev:    3.16 PSNR: 38.12 MAXDIFF:   50 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1 b/tests/ref/vsynth/vsynth2-ffv1
index b38bb38..845b04e 100644
--- a/tests/ref/vsynth/vsynth2-ffv1
+++ b/tests/ref/vsynth/vsynth2-ffv1
@@ -1,4 +1,4 @@
-6d7b6352f49e21153bb891df411e60ec *tests/data/fate/vsynth2-ffv1.avi
+0d47218848185b032dcc443efd97c3c3 *tests/data/fate/vsynth2-ffv1.avi
 3718026 tests/data/fate/vsynth2-ffv1.avi
 36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffv1.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1-v0 b/tests/ref/vsynth/vsynth2-ffv1-v0
index e1e71f1..6ccc082 100644
--- a/tests/ref/vsynth/vsynth2-ffv1-v0
+++ b/tests/ref/vsynth/vsynth2-ffv1-v0
@@ -1,4 +1,4 @@
-9647e906f0739ed84303bd03d1cb8105 *tests/data/fate/vsynth2-ffv1-v0.avi
+9586de6f70f32571ccec29861207a349 *tests/data/fate/vsynth2-ffv1-v0.avi
 3692542 tests/data/fate/vsynth2-ffv1-v0.avi
 36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffv1-v0.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1-v3-bgr0 b/tests/ref/vsynth/vsynth2-ffv1-v3-bgr0
index 11f516b..3d05f70 100644
--- a/tests/ref/vsynth/vsynth2-ffv1-v3-bgr0
+++ b/tests/ref/vsynth/vsynth2-ffv1-v3-bgr0
@@ -1,4 +1,4 @@
-4e8ea4c31ddb7703638989c6251e37fe *tests/data/fate/vsynth2-ffv1-v3-bgr0.avi
+6d4b10436aa475c709597f4db7dbab62 *tests/data/fate/vsynth2-ffv1-v3-bgr0.avi
 6386312 tests/data/fate/vsynth2-ffv1-v3-bgr0.avi
 835a86f8dff88917c3e5f2776954c5b7 *tests/data/fate/vsynth2-ffv1-v3-bgr0.out.rawvideo
 stddev:    1.57 PSNR: 44.18 MAXDIFF:   20 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1-v3-rgb48 b/tests/ref/vsynth/vsynth2-ffv1-v3-rgb48
index 983c381..6341d74 100644
--- a/tests/ref/vsynth/vsynth2-ffv1-v3-rgb48
+++ b/tests/ref/vsynth/vsynth2-ffv1-v3-rgb48
@@ -1,4 +1,4 @@
-99b39b0286428ccf9c788545dfccb49f *tests/data/fate/vsynth2-ffv1-v3-rgb48.avi
+4a861c439b6ecac8f5d02b019a96b628 *tests/data/fate/vsynth2-ffv1-v3-rgb48.avi
 15089212 tests/data/fate/vsynth2-ffv1-v3-rgb48.avi
 b7278d99ea84fe8becf02de773fee0a5 *tests/data/fate/vsynth2-ffv1-v3-rgb48.out.rawvideo
 stddev:    1.43 PSNR: 44.97 MAXDIFF:   28 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1-v3-yuv420p b/tests/ref/vsynth/vsynth2-ffv1-v3-yuv420p
index 5d85ffc..e78c109 100644
--- a/tests/ref/vsynth/vsynth2-ffv1-v3-yuv420p
+++ b/tests/ref/vsynth/vsynth2-ffv1-v3-yuv420p
@@ -1,4 +1,4 @@
-6d7b6352f49e21153bb891df411e60ec *tests/data/fate/vsynth2-ffv1-v3-yuv420p.avi
+0d47218848185b032dcc443efd97c3c3 *tests/data/fate/vsynth2-ffv1-v3-yuv420p.avi
 3718026 tests/data/fate/vsynth2-ffv1-v3-yuv420p.avi
 36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffv1-v3-yuv420p.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1-v3-yuv422p10 b/tests/ref/vsynth/vsynth2-ffv1-v3-yuv422p10
index b1a6c19..2b79e1c 100644
--- a/tests/ref/vsynth/vsynth2-ffv1-v3-yuv422p10
+++ b/tests/ref/vsynth/vsynth2-ffv1-v3-yuv422p10
@@ -1,4 +1,4 @@
-b43b20163948e44a6c806714e69ac3bf *tests/data/fate/vsynth2-ffv1-v3-yuv422p10.avi
+0226508db665747161501ec48746b0d3 *tests/data/fate/vsynth2-ffv1-v3-yuv422p10.avi
 4069370 tests/data/fate/vsynth2-ffv1-v3-yuv422p10.avi
 36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffv1-v3-yuv422p10.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffv1-v3-yuv444p16 b/tests/ref/vsynth/vsynth2-ffv1-v3-yuv444p16
index 4d0a0c2..128da79 100644
--- a/tests/ref/vsynth/vsynth2-ffv1-v3-yuv444p16
+++ b/tests/ref/vsynth/vsynth2-ffv1-v3-yuv444p16
@@ -1,4 +1,4 @@
-ae0bad7ece3ceacc9554f342ab489a4d *tests/data/fate/vsynth2-ffv1-v3-yuv444p16.avi
+fcf6451be5b2a51f233287c501854cc2 *tests/data/fate/vsynth2-ffv1-v3-yuv444p16.avi
 5086918 tests/data/fate/vsynth2-ffv1-v3-yuv444p16.avi
 36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffv1-v3-yuv444p16.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffvhuff b/tests/ref/vsynth/vsynth2-ffvhuff
index 4a79180..ebad603 100644
--- a/tests/ref/vsynth/vsynth2-ffvhuff
+++ b/tests/ref/vsynth/vsynth2-ffvhuff
@@ -1,4 +1,4 @@
-bf05520f43523ffde8952c23f36cc6a9 *tests/data/fate/vsynth2-ffvhuff.avi
+706959000726f410b16e246eb6ae9181 *tests/data/fate/vsynth2-ffvhuff.avi
 4865622 tests/data/fate/vsynth2-ffvhuff.avi
 36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffvhuff.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffvhuff420p12 b/tests/ref/vsynth/vsynth2-ffvhuff420p12
index 82c467a..1d9a9b7 100644
--- a/tests/ref/vsynth/vsynth2-ffvhuff420p12
+++ b/tests/ref/vsynth/vsynth2-ffvhuff420p12
@@ -1,4 +1,4 @@
-3ab9567895bf1ec31a82aadf16a5da0e *tests/data/fate/vsynth2-ffvhuff420p12.avi
+13a41487b6345692fe4b1e406317d15b *tests/data/fate/vsynth2-ffvhuff420p12.avi
 10562808 tests/data/fate/vsynth2-ffvhuff420p12.avi
 542327cb5ca7708085513ffc3d7c693c *tests/data/fate/vsynth2-ffvhuff420p12.out.rawvideo
 stddev:    0.72 PSNR: 50.87 MAXDIFF:    1 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffvhuff422p10left b/tests/ref/vsynth/vsynth2-ffvhuff422p10left
index a4284cf..1a92e1f 100644
--- a/tests/ref/vsynth/vsynth2-ffvhuff422p10left
+++ b/tests/ref/vsynth/vsynth2-ffvhuff422p10left
@@ -1,4 +1,4 @@
-d13c20fb63b70b81dd6100be47a3f07c *tests/data/fate/vsynth2-ffvhuff422p10left.avi
+f31503ea522edac0f906a4fea6801b04 *tests/data/fate/vsynth2-ffvhuff422p10left.avi
 9870628 tests/data/fate/vsynth2-ffvhuff422p10left.avi
 8bb1c449e1a2a94fd0d98841c04246bb *tests/data/fate/vsynth2-ffvhuff422p10left.out.rawvideo
 stddev:    0.39 PSNR: 56.17 MAXDIFF:    9 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffvhuff444 b/tests/ref/vsynth/vsynth2-ffvhuff444
index 7c7242e..555b81e 100644
--- a/tests/ref/vsynth/vsynth2-ffvhuff444
+++ b/tests/ref/vsynth/vsynth2-ffvhuff444
@@ -1,4 +1,4 @@
-770909cb12fc8a1b2ce020e5f9b421d4 *tests/data/fate/vsynth2-ffvhuff444.avi
+3dfdb350a1090fd6058050fbffe1d0fd *tests/data/fate/vsynth2-ffvhuff444.avi
 7635774 tests/data/fate/vsynth2-ffvhuff444.avi
 8394327c14ef0b6fbaae3b69fcc5572a *tests/data/fate/vsynth2-ffvhuff444.out.rawvideo
 stddev:    0.50 PSNR: 54.10 MAXDIFF:   13 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-ffvhuff444p16 b/tests/ref/vsynth/vsynth2-ffvhuff444p16
index ebc3840..2e1718a 100644
--- a/tests/ref/vsynth/vsynth2-ffvhuff444p16
+++ b/tests/ref/vsynth/vsynth2-ffvhuff444p16
@@ -1,4 +1,4 @@
-63ad1a32444c67d7092735fd74a7193d *tests/data/fate/vsynth2-ffvhuff444p16.avi
+5d4966854e8f8584a1873df613cef68e *tests/data/fate/vsynth2-ffvhuff444p16.avi
 26612924 tests/data/fate/vsynth2-ffvhuff444p16.avi
 410af07de7ae21936aaeae03fc90cbc9 *tests/data/fate/vsynth2-ffvhuff444p16.out.rawvideo
 stddev:    0.53 PSNR: 53.63 MAXDIFF:   13 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-huffyuv b/tests/ref/vsynth/vsynth2-huffyuv
index a10d430..a20dac4 100644
--- a/tests/ref/vsynth/vsynth2-huffyuv
+++ b/tests/ref/vsynth/vsynth2-huffyuv
@@ -1,4 +1,4 @@
-0f56e00a2850c0156de419d979782f29 *tests/data/fate/vsynth2-huffyuv.avi
+794827e70fbbbad96403838bdf60e46f *tests/data/fate/vsynth2-huffyuv.avi
 6159098 tests/data/fate/vsynth2-huffyuv.avi
 36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-huffyuv.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-huffyuvbgr24 b/tests/ref/vsynth/vsynth2-huffyuvbgr24
index 4263e0f..a8a7144 100644
--- a/tests/ref/vsynth/vsynth2-huffyuvbgr24
+++ b/tests/ref/vsynth/vsynth2-huffyuvbgr24
@@ -1,4 +1,4 @@
-f7a321d9dc6b2cdef377067eae413954 *tests/data/fate/vsynth2-huffyuvbgr24.avi
+23e584ab3e7172d78d2b2253d4c580dc *tests/data/fate/vsynth2-huffyuvbgr24.avi
 8809210 tests/data/fate/vsynth2-huffyuvbgr24.avi
 835a86f8dff88917c3e5f2776954c5b7 *tests/data/fate/vsynth2-huffyuvbgr24.out.rawvideo
 stddev:    1.57 PSNR: 44.18 MAXDIFF:   20 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-huffyuvbgra b/tests/ref/vsynth/vsynth2-huffyuvbgra
index 1451f6b..eeab420 100644
--- a/tests/ref/vsynth/vsynth2-huffyuvbgra
+++ b/tests/ref/vsynth/vsynth2-huffyuvbgra
@@ -1,4 +1,4 @@
-7f591295660b0a4dd93cc436e51d1a87 *tests/data/fate/vsynth2-huffyuvbgra.avi
+bbc8dc254f6309efe3002420b213bdbd *tests/data/fate/vsynth2-huffyuvbgra.avi
 10076390 tests/data/fate/vsynth2-huffyuvbgra.avi
 835a86f8dff88917c3e5f2776954c5b7 *tests/data/fate/vsynth2-huffyuvbgra.out.rawvideo
 stddev:    1.57 PSNR: 44.18 MAXDIFF:   20 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth3-ffv1 b/tests/ref/vsynth/vsynth3-ffv1
index 8ffdd3f..e0e2f0c 100644
--- a/tests/ref/vsynth/vsynth3-ffv1
+++ b/tests/ref/vsynth/vsynth3-ffv1
@@ -1,4 +1,4 @@
-f969ca8542c8384c27233f362b661f8a *tests/data/fate/vsynth3-ffv1.avi
+3870a01b4f2baf1a9f72df66015c3041 *tests/data/fate/vsynth3-ffv1.avi
 62194 tests/data/fate/vsynth3-ffv1.avi
 a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffv1.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffv1-v0 b/tests/ref/vsynth/vsynth3-ffv1-v0
index 967a022..e5728f9 100644
--- a/tests/ref/vsynth/vsynth3-ffv1-v0
+++ b/tests/ref/vsynth/vsynth3-ffv1-v0
@@ -1,4 +1,4 @@
-91ddf7723476e2b084253ffca69f382e *tests/data/fate/vsynth3-ffv1-v0.avi
+21f55a4b83570617bf7d3ff9131ccd42 *tests/data/fate/vsynth3-ffv1-v0.avi
 52256 tests/data/fate/vsynth3-ffv1-v0.avi
 a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffv1-v0.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffv1-v3-bgr0 b/tests/ref/vsynth/vsynth3-ffv1-v3-bgr0
index 2adffed..a977083 100644
--- a/tests/ref/vsynth/vsynth3-ffv1-v3-bgr0
+++ b/tests/ref/vsynth/vsynth3-ffv1-v3-bgr0
@@ -1,4 +1,4 @@
-bdb5f694222e91bb7cb7264d2d5d419b *tests/data/fate/vsynth3-ffv1-v3-bgr0.avi
+7562e4789e76a8545ba89b20b95739cc *tests/data/fate/vsynth3-ffv1-v3-bgr0.avi
 112780 tests/data/fate/vsynth3-ffv1-v3-bgr0.avi
 5d031d2e891b13593b8cd79e63d083b4 *tests/data/fate/vsynth3-ffv1-v3-bgr0.out.rawvideo
 stddev:    3.23 PSNR: 37.92 MAXDIFF:   50 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffv1-v3-rgb48 b/tests/ref/vsynth/vsynth3-ffv1-v3-rgb48
index 9a7b6f5..6bcbc06 100644
--- a/tests/ref/vsynth/vsynth3-ffv1-v3-rgb48
+++ b/tests/ref/vsynth/vsynth3-ffv1-v3-rgb48
@@ -1,4 +1,4 @@
-3bec2f4381dc362c24d1bbc304d0af58 *tests/data/fate/vsynth3-ffv1-v3-rgb48.avi
+bc555c460d8b4382a53d7942fe73bbe6 *tests/data/fate/vsynth3-ffv1-v3-rgb48.avi
 244742 tests/data/fate/vsynth3-ffv1-v3-rgb48.avi
 d37e1507abd3233e27b0b00441149ddc *tests/data/fate/vsynth3-ffv1-v3-rgb48.out.rawvideo
 stddev:    3.52 PSNR: 37.19 MAXDIFF:   59 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffv1-v3-yuv420p b/tests/ref/vsynth/vsynth3-ffv1-v3-yuv420p
index 38fb24a..5f54236 100644
--- a/tests/ref/vsynth/vsynth3-ffv1-v3-yuv420p
+++ b/tests/ref/vsynth/vsynth3-ffv1-v3-yuv420p
@@ -1,4 +1,4 @@
-f969ca8542c8384c27233f362b661f8a *tests/data/fate/vsynth3-ffv1-v3-yuv420p.avi
+3870a01b4f2baf1a9f72df66015c3041 *tests/data/fate/vsynth3-ffv1-v3-yuv420p.avi
 62194 tests/data/fate/vsynth3-ffv1-v3-yuv420p.avi
 a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffv1-v3-yuv420p.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffv1-v3-yuv422p10 b/tests/ref/vsynth/vsynth3-ffv1-v3-yuv422p10
index d86c9c9..0a4ede4 100644
--- a/tests/ref/vsynth/vsynth3-ffv1-v3-yuv422p10
+++ b/tests/ref/vsynth/vsynth3-ffv1-v3-yuv422p10
@@ -1,4 +1,4 @@
-4fc113caac00ada68e19639ae6f7bc47 *tests/data/fate/vsynth3-ffv1-v3-yuv422p10.avi
+09852bd26cd764554051a0ed00c1733b *tests/data/fate/vsynth3-ffv1-v3-yuv422p10.avi
 63840 tests/data/fate/vsynth3-ffv1-v3-yuv422p10.avi
 a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffv1-v3-yuv422p10.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffv1-v3-yuv444p16 b/tests/ref/vsynth/vsynth3-ffv1-v3-yuv444p16
index 5d61f11..733af3b 100644
--- a/tests/ref/vsynth/vsynth3-ffv1-v3-yuv444p16
+++ b/tests/ref/vsynth/vsynth3-ffv1-v3-yuv444p16
@@ -1,4 +1,4 @@
-1e8981cec92407938b25cd82381d1c64 *tests/data/fate/vsynth3-ffv1-v3-yuv444p16.avi
+86ddf61c5e76ad49623c8e3cd1813eec *tests/data/fate/vsynth3-ffv1-v3-yuv444p16.avi
 82908 tests/data/fate/vsynth3-ffv1-v3-yuv444p16.avi
 a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffv1-v3-yuv444p16.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffvhuff b/tests/ref/vsynth/vsynth3-ffvhuff
index b2772b0..13ca12d 100644
--- a/tests/ref/vsynth/vsynth3-ffvhuff
+++ b/tests/ref/vsynth/vsynth3-ffvhuff
@@ -1,4 +1,4 @@
-9f355bfe2abe63b06e325a078151f784 *tests/data/fate/vsynth3-ffvhuff.avi
+23383f0ada7d959285203f0f8cf03187 *tests/data/fate/vsynth3-ffvhuff.avi
 90210 tests/data/fate/vsynth3-ffvhuff.avi
 a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffvhuff.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffvhuff420p12 b/tests/ref/vsynth/vsynth3-ffvhuff420p12
index 72d412d..0e78c98 100644
--- a/tests/ref/vsynth/vsynth3-ffvhuff420p12
+++ b/tests/ref/vsynth/vsynth3-ffvhuff420p12
@@ -1,4 +1,4 @@
-e5a178d75afeda6df1d4eb6f7cdfa3a0 *tests/data/fate/vsynth3-ffvhuff420p12.avi
+3dc08eed58e149ceae0d2ca668edd6ec *tests/data/fate/vsynth3-ffvhuff420p12.avi
 175260 tests/data/fate/vsynth3-ffvhuff420p12.avi
 ee95a44ccd612b5057860b43fe9775d6 *tests/data/fate/vsynth3-ffvhuff420p12.out.rawvideo
 stddev:    0.69 PSNR: 51.35 MAXDIFF:    1 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffvhuff422p10left b/tests/ref/vsynth/vsynth3-ffvhuff422p10left
index d395829..c3109cc 100644
--- a/tests/ref/vsynth/vsynth3-ffvhuff422p10left
+++ b/tests/ref/vsynth/vsynth3-ffvhuff422p10left
@@ -1,4 +1,4 @@
-37e15f58570aeeafc86972524756136a *tests/data/fate/vsynth3-ffvhuff422p10left.avi
+13bec66b1efc2a8183104d5f787fcdf1 *tests/data/fate/vsynth3-ffvhuff422p10left.avi
 173552 tests/data/fate/vsynth3-ffvhuff422p10left.avi
 0cf7cf68724fa5146b1667e4fa08b0e1 *tests/data/fate/vsynth3-ffvhuff422p10left.out.rawvideo
 stddev:    2.12 PSNR: 41.58 MAXDIFF:   26 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffvhuff444 b/tests/ref/vsynth/vsynth3-ffvhuff444
index 37e20e1..52f4e68 100644
--- a/tests/ref/vsynth/vsynth3-ffvhuff444
+++ b/tests/ref/vsynth/vsynth3-ffvhuff444
@@ -1,4 +1,4 @@
-dc07c964dad37768d1a021afe7c3612e *tests/data/fate/vsynth3-ffvhuff444.avi
+5aab3aef33bf42387613c9d76dddd302 *tests/data/fate/vsynth3-ffvhuff444.avi
 151366 tests/data/fate/vsynth3-ffvhuff444.avi
 02a85ec07377df6b483281038f8882ee *tests/data/fate/vsynth3-ffvhuff444.out.rawvideo
 stddev:    3.06 PSNR: 38.40 MAXDIFF:   40 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-ffvhuff444p16 b/tests/ref/vsynth/vsynth3-ffvhuff444p16
index 0f4bc77..272294a 100644
--- a/tests/ref/vsynth/vsynth3-ffvhuff444p16
+++ b/tests/ref/vsynth/vsynth3-ffvhuff444p16
@@ -1,4 +1,4 @@
-93571f2ddceadebd534c6d76fe93fc93 *tests/data/fate/vsynth3-ffvhuff444p16.avi
+cfb98bbdc5d7beaaa88a50243b1671f2 *tests/data/fate/vsynth3-ffvhuff444p16.avi
 320088 tests/data/fate/vsynth3-ffvhuff444p16.avi
 e5933e1e6dbacddb78e6d90cd5ed2b5d *tests/data/fate/vsynth3-ffvhuff444p16.out.rawvideo
 stddev:    3.06 PSNR: 38.40 MAXDIFF:   40 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-huffyuv b/tests/ref/vsynth/vsynth3-huffyuv
index 2d79e56..7a7d88d 100644
--- a/tests/ref/vsynth/vsynth3-huffyuv
+++ b/tests/ref/vsynth/vsynth3-huffyuv
@@ -1,4 +1,4 @@
-4468635f2c221d7744cc6f87ff9e9b48 *tests/data/fate/vsynth3-huffyuv.avi
+3974999582ad91d48d33690725fe8a22 *tests/data/fate/vsynth3-huffyuv.avi
 116350 tests/data/fate/vsynth3-huffyuv.avi
 a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-huffyuv.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-huffyuvbgr24 b/tests/ref/vsynth/vsynth3-huffyuvbgr24
index 91cd51e..ad48c28 100644
--- a/tests/ref/vsynth/vsynth3-huffyuvbgr24
+++ b/tests/ref/vsynth/vsynth3-huffyuvbgr24
@@ -1,4 +1,4 @@
-758d6b72a396743c096b003f41f54023 *tests/data/fate/vsynth3-huffyuvbgr24.avi
+bbe9a3a045f2598f1bf4517ec63af4d5 *tests/data/fate/vsynth3-huffyuvbgr24.avi
 165158 tests/data/fate/vsynth3-huffyuvbgr24.avi
 5d031d2e891b13593b8cd79e63d083b4 *tests/data/fate/vsynth3-huffyuvbgr24.out.rawvideo
 stddev:    3.23 PSNR: 37.92 MAXDIFF:   50 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-huffyuvbgra b/tests/ref/vsynth/vsynth3-huffyuvbgra
index c155f74..9add4bd 100644
--- a/tests/ref/vsynth/vsynth3-huffyuvbgra
+++ b/tests/ref/vsynth/vsynth3-huffyuvbgra
@@ -1,4 +1,4 @@
-79a2b229d1c105b4b20de226f254f4b2 *tests/data/fate/vsynth3-huffyuvbgra.avi
+8c3d4b57e2fc317be9b80d371cf88d7b *tests/data/fate/vsynth3-huffyuvbgra.avi
 179602 tests/data/fate/vsynth3-huffyuvbgra.avi
 5d031d2e891b13593b8cd79e63d083b4 *tests/data/fate/vsynth3-huffyuvbgra.out.rawvideo
 stddev:    3.23 PSNR: 37.92 MAXDIFF:   50 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1 b/tests/ref/vsynth/vsynth_lena-ffv1
index 4060d8e..b02755d 100644
--- a/tests/ref/vsynth/vsynth_lena-ffv1
+++ b/tests/ref/vsynth/vsynth_lena-ffv1
@@ -1,4 +1,4 @@
-ed72c22374718589ffacd7ea15424687 *tests/data/fate/vsynth_lena-ffv1.avi
+4821dae222afdd45660db1033b7e5b8a *tests/data/fate/vsynth_lena-ffv1.avi
 3547792 tests/data/fate/vsynth_lena-ffv1.avi
 dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffv1.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1-v0 b/tests/ref/vsynth/vsynth_lena-ffv1-v0
index cbfb4af..e44e410 100644
--- a/tests/ref/vsynth/vsynth_lena-ffv1-v0
+++ b/tests/ref/vsynth/vsynth_lena-ffv1-v0
@@ -1,4 +1,4 @@
-ad518c7014bdd6a72514a79a9102f64f *tests/data/fate/vsynth_lena-ffv1-v0.avi
+8c9d1e576a9bd865e5875af7359bda01 *tests/data/fate/vsynth_lena-ffv1-v0.avi
 3525796 tests/data/fate/vsynth_lena-ffv1-v0.avi
 dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffv1-v0.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1-v3-bgr0 b/tests/ref/vsynth/vsynth_lena-ffv1-v3-bgr0
index cfc98f6..c117f4b 100644
--- a/tests/ref/vsynth/vsynth_lena-ffv1-v3-bgr0
+++ b/tests/ref/vsynth/vsynth_lena-ffv1-v3-bgr0
@@ -1,4 +1,4 @@
-edf0987619d4d63f8b7e3022a8d0a724 *tests/data/fate/vsynth_lena-ffv1-v3-bgr0.avi
+9da84bb2b2da20c42798a9b755143a13 *tests/data/fate/vsynth_lena-ffv1-v3-bgr0.avi
 6013028 tests/data/fate/vsynth_lena-ffv1-v3-bgr0.avi
 0a8b7ddfec03622e37c869c5b552f9fc *tests/data/fate/vsynth_lena-ffv1-v3-bgr0.out.rawvideo
 stddev:    1.24 PSNR: 46.26 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1-v3-rgb48 b/tests/ref/vsynth/vsynth_lena-ffv1-v3-rgb48
index 629d685..590d094 100644
--- a/tests/ref/vsynth/vsynth_lena-ffv1-v3-rgb48
+++ b/tests/ref/vsynth/vsynth_lena-ffv1-v3-rgb48
@@ -1,4 +1,4 @@
-294d4f9fdf53ba0fe9d224d28ba700f0 *tests/data/fate/vsynth_lena-ffv1-v3-rgb48.avi
+174874dfede59b9c6e06ec106f10d677 *tests/data/fate/vsynth_lena-ffv1-v3-rgb48.avi
 13795036 tests/data/fate/vsynth_lena-ffv1-v3-rgb48.avi
 7bd82d1860095ae1e10ec0ace9cb04b6 *tests/data/fate/vsynth_lena-ffv1-v3-rgb48.out.rawvideo
 stddev:    0.91 PSNR: 48.91 MAXDIFF:   21 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv420p b/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv420p
index 1cffcb6..39f0b56 100644
--- a/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv420p
+++ b/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv420p
@@ -1,4 +1,4 @@
-ed72c22374718589ffacd7ea15424687 *tests/data/fate/vsynth_lena-ffv1-v3-yuv420p.avi
+4821dae222afdd45660db1033b7e5b8a *tests/data/fate/vsynth_lena-ffv1-v3-yuv420p.avi
 3547792 tests/data/fate/vsynth_lena-ffv1-v3-yuv420p.avi
 dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffv1-v3-yuv420p.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv422p10 b/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv422p10
index ab1cd34..084101f 100644
--- a/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv422p10
+++ b/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv422p10
@@ -1,4 +1,4 @@
-cd3f5b3d4544a30bd08a9a11945a8adc *tests/data/fate/vsynth_lena-ffv1-v3-yuv422p10.avi
+0bbdc703cf620c0ded9a4bc1f15a7625 *tests/data/fate/vsynth_lena-ffv1-v3-yuv422p10.avi
 3910306 tests/data/fate/vsynth_lena-ffv1-v3-yuv422p10.avi
 dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffv1-v3-yuv422p10.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv444p16 b/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv444p16
index 08f9f0e..02ffc3f 100644
--- a/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv444p16
+++ b/tests/ref/vsynth/vsynth_lena-ffv1-v3-yuv444p16
@@ -1,4 +1,4 @@
-e65ad01440ad756b1872b22d3cfa23d7 *tests/data/fate/vsynth_lena-ffv1-v3-yuv444p16.avi
+d4e3b96910cca4f0701b18a9e4b0e3bd *tests/data/fate/vsynth_lena-ffv1-v3-yuv444p16.avi
 4871266 tests/data/fate/vsynth_lena-ffv1-v3-yuv444p16.avi
 dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffv1-v3-yuv444p16.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffvhuff b/tests/ref/vsynth/vsynth_lena-ffvhuff
index 88711a5..b0e4d26 100644
--- a/tests/ref/vsynth/vsynth_lena-ffvhuff
+++ b/tests/ref/vsynth/vsynth_lena-ffvhuff
@@ -1,4 +1,4 @@
-c8bcad0cd3babf63ce96525f6c11ae6e *tests/data/fate/vsynth_lena-ffvhuff.avi
+4be14b5427bd199ae352ac609af8f796 *tests/data/fate/vsynth_lena-ffvhuff.avi
 4845026 tests/data/fate/vsynth_lena-ffvhuff.avi
 dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffvhuff.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffvhuff420p12 b/tests/ref/vsynth/vsynth_lena-ffvhuff420p12
index e8ea4bc..37f1c91 100644
--- a/tests/ref/vsynth/vsynth_lena-ffvhuff420p12
+++ b/tests/ref/vsynth/vsynth_lena-ffvhuff420p12
@@ -1,4 +1,4 @@
-b2f3d04ca30c113b79877bb5518dd6ea *tests/data/fate/vsynth_lena-ffvhuff420p12.avi
+0ea4e6c73bf2b53a0fbab81048405370 *tests/data/fate/vsynth_lena-ffvhuff420p12.avi
 10925580 tests/data/fate/vsynth_lena-ffvhuff420p12.avi
 08b3c6c70eba608bae926608ff253f2a *tests/data/fate/vsynth_lena-ffvhuff420p12.out.rawvideo
 stddev:    0.68 PSNR: 51.38 MAXDIFF:    1 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffvhuff422p10left b/tests/ref/vsynth/vsynth_lena-ffvhuff422p10left
index d650427..95f25fe 100644
--- a/tests/ref/vsynth/vsynth_lena-ffvhuff422p10left
+++ b/tests/ref/vsynth/vsynth_lena-ffvhuff422p10left
@@ -1,4 +1,4 @@
-f6eae87090fcccc682f84a794784b4dd *tests/data/fate/vsynth_lena-ffvhuff422p10left.avi
+680b2b96cce3d433e5fa42707629fc12 *tests/data/fate/vsynth_lena-ffvhuff422p10left.avi
 10041836 tests/data/fate/vsynth_lena-ffvhuff422p10left.avi
 a627fb50c8276200fd71383977d87ca3 *tests/data/fate/vsynth_lena-ffvhuff422p10left.out.rawvideo
 stddev:    0.34 PSNR: 57.43 MAXDIFF:    6 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffvhuff444 b/tests/ref/vsynth/vsynth_lena-ffvhuff444
index 366498d..1c2b343 100644
--- a/tests/ref/vsynth/vsynth_lena-ffvhuff444
+++ b/tests/ref/vsynth/vsynth_lena-ffvhuff444
@@ -1,4 +1,4 @@
-1afdc5e87de165520f2b7e0fab18b241 *tests/data/fate/vsynth_lena-ffvhuff444.avi
+be63a229d2d05e9f6c107098eccafca7 *tests/data/fate/vsynth_lena-ffvhuff444.avi
 7530718 tests/data/fate/vsynth_lena-ffvhuff444.avi
 d43cb310c130c69214332d74f6ee5f9a *tests/data/fate/vsynth_lena-ffvhuff444.out.rawvideo
 stddev:    0.41 PSNR: 55.80 MAXDIFF:    7 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-ffvhuff444p16 b/tests/ref/vsynth/vsynth_lena-ffvhuff444p16
index 3161b41..2167aef 100644
--- a/tests/ref/vsynth/vsynth_lena-ffvhuff444p16
+++ b/tests/ref/vsynth/vsynth_lena-ffvhuff444p16
@@ -1,4 +1,4 @@
-94e2c25a08522071ca4d2314ddb2a4a1 *tests/data/fate/vsynth_lena-ffvhuff444p16.avi
+bbf078f7b8c4080fb3846f83b4eef775 *tests/data/fate/vsynth_lena-ffvhuff444p16.avi
 26360720 tests/data/fate/vsynth_lena-ffvhuff444p16.avi
 05ccd9a38f9726030b3099c0c99d3a13 *tests/data/fate/vsynth_lena-ffvhuff444p16.out.rawvideo
 stddev:    0.45 PSNR: 55.06 MAXDIFF:    7 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-huffyuv b/tests/ref/vsynth/vsynth_lena-huffyuv
index 25dac45..0eae605 100644
--- a/tests/ref/vsynth/vsynth_lena-huffyuv
+++ b/tests/ref/vsynth/vsynth_lena-huffyuv
@@ -1,4 +1,4 @@
-e0027fb7a9ab8ac964bba02186b4a829 *tests/data/fate/vsynth_lena-huffyuv.avi
+f1412f001057ced4404df2a30ce9f4a4 *tests/data/fate/vsynth_lena-huffyuv.avi
 6108514 tests/data/fate/vsynth_lena-huffyuv.avi
 dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-huffyuv.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-huffyuvbgr24 b/tests/ref/vsynth/vsynth_lena-huffyuvbgr24
index 6bb71fc..2fa1deb 100644
--- a/tests/ref/vsynth/vsynth_lena-huffyuvbgr24
+++ b/tests/ref/vsynth/vsynth_lena-huffyuvbgr24
@@ -1,4 +1,4 @@
-baa4da184fd977f1d6040d63644cbd55 *tests/data/fate/vsynth_lena-huffyuvbgr24.avi
+f8e07e9585a74c65fb8ce7df71ff01c5 *tests/data/fate/vsynth_lena-huffyuvbgr24.avi
 8872414 tests/data/fate/vsynth_lena-huffyuvbgr24.avi
 0a8b7ddfec03622e37c869c5b552f9fc *tests/data/fate/vsynth_lena-huffyuvbgr24.out.rawvideo
 stddev:    1.24 PSNR: 46.26 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-huffyuvbgra b/tests/ref/vsynth/vsynth_lena-huffyuvbgra
index 509275d..99c0a84 100644
--- a/tests/ref/vsynth/vsynth_lena-huffyuvbgra
+++ b/tests/ref/vsynth/vsynth_lena-huffyuvbgra
@@ -1,4 +1,4 @@
-bf52b827c5fabea0949ce4776d3d66c8 *tests/data/fate/vsynth_lena-huffyuvbgra.avi
+75d8e50493600fa79b81e2d33c19946d *tests/data/fate/vsynth_lena-huffyuvbgra.avi
 10139602 tests/data/fate/vsynth_lena-huffyuvbgra.avi
 0a8b7ddfec03622e37c869c5b552f9fc *tests/data/fate/vsynth_lena-huffyuvbgra.out.rawvideo
 stddev:    1.24 PSNR: 46.26 MAXDIFF:   17 bytes:  7603200/  7603200
