Commit fae89c7afd for ffmpeg

commit fae89c7afd5050efecde8d675872f5bbcc740068
Author: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Date:   Fri Nov 20 21:57:16 2026 -0800

    avformat/movenc: fix language codes and localized text

    Write packed /T codes in mov too, and the tag's language in 3GPP udta
    strings and loci. Map two-letter and /B codes to /T, falling back to
    "und" for unassigned codes. Normalize retired ISO 639-2 aliases on
    remux. Correct the Macintosh language mappings and add codes 139 to
    151 so the packed writer receives valid codes when copying older MOVs.
    Export known Macintosh and packed language codes as /B. This also
    affects existing packed MOV and MP4 files: exact selectors such as
    -map 0:m:language:fra must use fre.
    HLS languages such as Cantonese (yue) that have no ISO 639-2 code
    also become "und" in mdhd.

    Older FFmpeg could write Swedish and Irish MOV tracks to MP4 as
    "sve" and "iri". These values now become "und" because they identify
    Serili and Rigwe. If the intended language is known, set the
    stream's language metadata to "swe" or "gle".

    Skip invalid UTF-8 and retain the complete prefix when reading a
    loci place name that crosses the 99-byte limit.

    Export localized user-data keys with the documented /B suffix. This
    also renames keys on existing files, for example title-fra to title-fre.

    Write track titles as tnam in MOV and titl in MP4 and 3GP, with their
    language. Older FFmpeg readers no longer export them as name.
    VLC 3.0.20 displays generic track labels for these MOV and MP4 files.

    Co-authored-by: Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Assisted-by: Fairy

diff --git a/libavformat/isom.c b/libavformat/isom.c
index e487911361..1248e74170 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -23,6 +23,7 @@

 #include "amr.h"
 #include "avformat.h"
+#include "avlanguage.h"
 #include "demux.h"
 #include "internal.h"
 #include "isom.h"
@@ -89,17 +90,17 @@ const AVCodecTag ff_codec_movdata_tags[] = {
     { AV_CODEC_ID_NONE, 0 },
 };

-/* map numeric codes from mdhd atom to ISO 639 */
-/* cf. QTFileFormat.pdf p253, qtff.pdf p205 */
-/* http://developer.apple.com/documentation/mac/Text/Text-368.html */
-/* deprecated by putting the code as 3*5 bits ASCII */
+/*
+ * Macintosh language codes mapped to ISO 639-2/B. See the QuickTime table:
+ * https://developer.apple.com/documentation/quicktime-file-format/language_code_values
+ */
 static const char mov_mdhd_language_map[][4] = {
     "eng",    /*   0 English */
-    "fra",    /*   1 French */
+    "fre",    /*   1 French */
     "ger",    /*   2 German */
     "ita",    /*   3 Italian */
     "dut",    /*   4 Dutch */
-    "sve",    /*   5 Swedish */
+    "swe",    /*   5 Swedish */
     "spa",    /*   6 Spanish */
     "dan",    /*   7 Danish */
     "por",    /*   8 Portuguese */
@@ -112,7 +113,7 @@ static const char mov_mdhd_language_map[][4] = {
     "ice",    /*  15 Icelandic */
     "mlt",    /*  16 Maltese */
     "tur",    /*  17 Turkish */
-    "hr ",    /*  18 Croatian */
+    "hrv",    /*  18 Croatian */
     "chi",    /*  19 Traditional Chinese */
     "urd",    /*  20 Urdu */
     "hin",    /*  21 Hindi */
@@ -124,19 +125,19 @@ static const char mov_mdhd_language_map[][4] = {
     "est",    /*  27 Estonian */
     "lav",    /*  28 Latvian */
     "smi",    /*  29 Sami */
-    "fo ",    /*  30 Faroese */
+    "fao",    /*  30 Faroese */
     "per",    /*  31 Farsi */
     "rus",    /*  32 Russian */
     "chi",    /*  33 Simplified Chinese */
-       "",    /*  34 Flemish */
-    "iri",    /*  35 Irish */
+    "dut",    /*  34 Flemish */
+    "gle",    /*  35 Irish */
     "alb",    /*  36 Albanian */
-    "ron",    /*  37 Romanian */
-    "ces",    /*  38 Czech */
-    "slk",    /*  39 Slovak */
+    "rum",    /*  37 Romanian */
+    "cze",    /*  38 Czech */
+    "slo",    /*  39 Slovak */
     "slv",    /*  40 Slovenian */
     "yid",    /*  41 Yiddish */
-    "sr ",    /*  42 Serbian */
+    "srp",    /*  42 Serbian */
     "mac",    /*  43 Macedonian */
     "bul",    /*  44 Bulgarian */
     "ukr",    /*  45 Ukrainian */
@@ -147,12 +148,12 @@ static const char mov_mdhd_language_map[][4] = {
     "aze",    /*  50 AzerbaijanAr */
     "arm",    /*  51 Armenian */
     "geo",    /*  52 Georgian */
-    "mol",    /*  53 Moldavian */
+    "rum",    /*  53 Moldavian */
     "kir",    /*  54 Kirghiz */
     "tgk",    /*  55 Tajiki */
     "tuk",    /*  56 Turkmen */
     "mon",    /*  57 Mongolian */
-       "",    /*  58 MongolianCyr */
+    "mon",    /*  58 MongolianCyr */
     "pus",    /*  59 Pashto */
     "kur",    /*  60 Kurdish */
     "kas",    /*  61 Kashmiri */
@@ -164,7 +165,7 @@ static const char mov_mdhd_language_map[][4] = {
     "ben",    /*  67 Bengali */
     "asm",    /*  68 Assamese */
     "guj",    /*  69 Gujarati */
-    "pa ",    /*  70 Punjabi */
+    "pan",    /*  70 Punjabi */
     "ori",    /*  71 Oriya */
     "mal",    /*  72 Malayalam */
     "kan",    /*  73 Kannada */
@@ -180,8 +181,8 @@ static const char mov_mdhd_language_map[][4] = {
     "may",    /*  83 MalayRoman */
     "may",    /*  84 MalayArabic */
     "amh",    /*  85 Amharic */
-    "tir",    /*  86 Galla */
-    "orm",    /*  87 Oromo */
+    "tir",    /*  86 Tigrinya */
+    "orm",    /*  87 Galla (Oromo) */
     "som",    /*  88 Somali */
     "swa",    /*  89 Swahili */
     "kin",    /*  90 Kinyarwanda */
@@ -233,33 +234,46 @@ static const char mov_mdhd_language_map[][4] = {
     "uig",    /* 136 Uighur */
     "dzo",    /* 137 Dzongkha */
     "jav",    /* 138 JavaneseRom */
+    /* 139-151 come from Apple's Script Manager constants in Script.h. */
+    "sun",    /* 139 SundaneseRom */
+    "glg",    /* 140 Galician */
+    "afr",    /* 141 Afrikaans */
+    "bre",    /* 142 Breton */
+    "iku",    /* 143 Inuktitut */
+    "gla",    /* 144 ScottishGaelic */
+    "glv",    /* 145 ManxGaelic */
+    "gle",    /* 146 IrishGaelicScript */
+    "ton",    /* 147 Tongan */
+    "grc",    /* 148 GreekAncient */
+    "kal",    /* 149 Greenlandic */
+    "aze",    /* 150 AzerbaijanRoman */
+    "nno",    /* 151 Nynorsk */
 };

-int ff_mov_iso639_to_lang(const char lang[4], int mp4)
+int ff_mov_pack_lang(const char lang[4])
 {
-    int i, code = 0;
+    const char *term;
+    size_t len = strspn(lang, "abcdefghijklmnopqrstuvwxyz");

-    /* old way, only for QT? */
-    for (i = 0; lang[0] && !mp4 && i < FF_ARRAY_ELEMS(mov_mdhd_language_map); i++) {
-        if (!strcmp(lang, mov_mdhd_language_map[i]))
-            return i;
-    }
-    /* XXX:can we do that in mov too? */
-    if (!mp4)
+    if ((len != 2 && len != 3) || lang[len])
         return -1;
-    /* handle undefined as such */
-    if (lang[0] == '\0')
-        lang = "und";
-    /* 5 bits ASCII */
-    for (i = 0; i < 3; i++) {
-        uint8_t c = lang[i];
-        c -= 0x60;
-        if (c > 0x1f)
-            return -1;
-        code <<= 5;
-        code |= c;
-    }
-    return code;
+    /* Normalize two-letter and bibliographic codes to terminology codes. */
+    if ((term = ff_convert_lang_to(lang, AV_LANG_ISO639_2_TERM)))
+        lang = term;
+    /* Normalize retired ISO 639-2 codes from existing metadata. */
+    else if (!strcmp(lang, "jaw"))
+        lang = "jav";
+    else if (!strcmp(lang, "scc"))
+        lang = "srp";
+    else if (!strcmp(lang, "scr"))
+        lang = "hrv";
+    else if (!strcmp(lang, "mol"))
+        lang = "ron";
+    /* assigned (cnr, zgh) or local use (qaa-qtz) codes, unknown to avlanguage.c */
+    else if (len != 3 || (strcmp(lang, "cnr") && strcmp(lang, "zgh") &&
+                         (strcmp(lang, "qaa") < 0 || strcmp(lang, "qtz") > 0)))
+        return -1;
+    return (lang[0] - 0x60) << 10 | (lang[1] - 0x60) << 5 | (lang[2] - 0x60);
 }

 int ff_mov_lang_to_iso639(unsigned code, char to[4])
@@ -269,10 +283,15 @@ int ff_mov_lang_to_iso639(unsigned code, char to[4])
     /* is it the mangled iso code? */
     /* see http://www.geocities.com/xhelmboyx/quicktime/formats/mp4-layout.txt */
     if (code >= 0x400 && code != 0x7fff) {
+        const char *bibl;
+
         for (i = 2; i >= 0; i--) {
             to[i] = 0x60 + (code & 0x1f);
             code >>= 5;
         }
+        bibl = ff_convert_lang_to(to, AV_LANG_ISO639_2_BIBL);
+        if (bibl)
+            memcpy(to, bibl, 4);
         return 1;
     }
     /* old fashion apple lang code */
diff --git a/libavformat/isom.h b/libavformat/isom.h
index 4d9091e992..f6bc826842 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -45,7 +45,21 @@ extern const AVCodecTag ff_codec_movaudio_tags[];
 extern const AVCodecTag ff_codec_movsubtitle_tags[];
 extern const AVCodecTag ff_codec_movdata_tags[];

-int ff_mov_iso639_to_lang(const char lang[4], int mp4);
+#define MOV_LANG_UND 0x55c4 /* packed "und" */
+
+/**
+ * Pack a lowercase ISO 639-1 or ISO 639-2 code as ISO 639-2/T.
+ *
+ * @return the packed 15-bit code, or -1 if the input cannot be packed.
+ */
+int ff_mov_pack_lang(const char lang[4]);
+
+/**
+ * Map a Macintosh or packed language code to ISO 639-2/B when known.
+ *
+ * @param to receives the null-terminated three-letter code, or an empty string.
+ * @return 1 if the code was mapped or unpacked, or 0 otherwise.
+ */
 int ff_mov_lang_to_iso639(unsigned code, char to[4]);

 #define FF_AMR_CONFIG_ATOM_SIZE 17
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ea8c49487a..90656f9231 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -285,11 +285,12 @@ static int mov_read_covr(MOVContext *c, AVIOContext *pb, int type, int len)
     return 0;
 }

-// 3GPP TS 26.244
 static int mov_metadata_loci(MOVContext *c, AVIOContext *pb, unsigned len)
 {
     char language[4] = { 0 };
-    char buf[200], place[100];
+    /* Keep the 99-byte limit plus a byte to check the UTF-8 boundary. */
+    char buf[200], place[101];
+    size_t prefix_len;
     uint16_t langcode = 0;
     int32_t longitude, latitude, altitude;
     int64_t lat, lon, alt;
@@ -306,6 +307,10 @@ static int mov_metadata_loci(MOVContext *c, AVIOContext *pb, unsigned len)
     len -= 6;

     len -= avio_get_str(pb, len, place, sizeof(place));
+    prefix_len = av_strnlen(place, sizeof(place) - 2);
+    while (prefix_len > 0 && ((uint8_t)place[prefix_len] & 0xc0) == 0x80)
+        prefix_len--;
+    place[prefix_len] = 0;
     if (len < 1) {
         av_log(c->fc, AV_LOG_ERROR, "place name too long\n");
         return AVERROR_INVALIDDATA;
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index f91a9272e6..14668a4f00 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -155,6 +155,18 @@ static int utf8len(const uint8_t *b)
     return len;
 }

+static int mov_valid_utf8(const char *str)
+{
+    const uint8_t *p = (const uint8_t *)str;
+    const uint8_t *end = p + strlen(str);
+    int32_t cp;
+
+    while (p < end)
+        if (av_utf8_decode(&cp, &p, end, AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS) < 0)
+            return 0;
+    return 1;
+}
+
 //FIXME support 64 bit variant with wide placeholders
 static int64_t update_size(AVIOContext *pb, int64_t pos)
 {
@@ -4642,17 +4654,56 @@ static int mov_write_udta_sdp(AVIOContext *pb, MOVTrack *track)
     return len + 24;
 }

-static int mov_write_track_metadata(AVIOContext *pb, AVStream *st,
-                                    const char *tag, const char *str)
+static AVDictionaryEntry *get_metadata_lang(AVDictionary *m,
+                                            const char *tag, int *lang)
+{
+    int l, len, len2;
+    AVDictionaryEntry *t, *t2 = NULL;
+    char tag2[16];
+
+    *lang = MOV_LANG_UND;
+
+    if (!(t = av_dict_get(m, tag, NULL, 0)))
+        return NULL;
+
+    len = strlen(t->key);
+    snprintf(tag2, sizeof(tag2), "%s-", tag);
+    while ((t2 = av_dict_get(m, tag2, t2, AV_DICT_IGNORE_SUFFIX))) {
+        len2 = strlen(t2->key);
+        if (len2 == len + 4 && !strcmp(t->value, t2->value)
+            && (l = ff_mov_pack_lang(&t2->key[len2 - 3])) >= 0) {
+            *lang = l;
+            return t;
+        }
+    }
+    return t;
+}
+
+static int mov_write_3gp_udta_tag(AVIOContext *pb, AVDictionary *m,
+                                  const char *tag, const char *str)
 {
     int64_t pos = avio_tell(pb);
-    AVDictionaryEntry *t = av_dict_get(st->metadata, str, NULL, 0);
-    if (!t || !utf8len(t->value))
+    int lang;
+    AVDictionaryEntry *t = get_metadata_lang(m, str, &lang);
+    if (!t || !*t->value || !mov_valid_utf8(t->value))
         return 0;
-
     avio_wb32(pb, 0);   /* size */
     ffio_wfourcc(pb, tag); /* type */
-    avio_write(pb, t->value, strlen(t->value)); /* UTF8 string value */
+    avio_wb32(pb, 0);   /* version + flags */
+    if (!strcmp(tag, "yrrc"))
+        avio_wb16(pb, atoi(t->value));
+    else {
+        avio_wb16(pb, lang); /* language */
+        avio_write(pb, t->value, strlen(t->value) + 1); /* UTF8 string value */
+        if (!strcmp(tag, "albm") &&
+            (t = av_dict_get(m, "track", NULL, 0))) {
+            char *end;
+            long track = strtol(t->value, &end, 10);
+            if (end != t->value && (!*end || *end == '/') &&
+                track >= 0 && track <= UINT8_MAX)
+                avio_w8(pb, track);
+        }
+    }
     return update_size(pb, pos);
 }

@@ -4716,15 +4767,17 @@ static int mov_write_track_udta_tag(AVIOContext *pb, MOVMuxContext *mov,
     int ret, size;
     uint8_t *buf;

-    if (!st || !(mov->mode & (MODE_MP4 | MODE_MOV)))
+    if (!st || !(mov->mode & (MODE_MP4 | MODE_MOV | MODE_3GP)))
+        return 0;
+    if ((mov->mode & MODE_3GP) && !av_dict_get(st->metadata, "title", NULL, 0))
         return 0;

     ret = avio_open_dyn_buf(&pb_buf);
     if (ret < 0)
         return ret;

-    if (mov->mode & (MODE_MP4|MODE_MOV))
-        mov_write_track_metadata(pb_buf, st, "name", "title");
+    mov_write_3gp_udta_tag(pb_buf, st->metadata,
+                          mov->mode == MODE_MOV ? "tnam" : "titl", "title");

     if (mov->mode & MODE_MP4) {
         if ((ret = mov_write_track_kinds(pb_buf, st)) < 0)
@@ -4948,8 +5001,6 @@ static int mov_write_string_data_tag(AVIOContext *pb, const char *data, int lang
         return size;
     } else {
         avio_wb16(pb, data_len); /* string length */
-        if (!lang)
-            lang = ff_mov_iso639_to_lang("und", 1);
         avio_wb16(pb, lang);
         avio_write(pb, data, data_len);
         return data_len + 4;
@@ -4999,37 +5050,12 @@ static int mov_write_freeform_tag(AVIOContext *pb, const char *mean,
     return update_size(pb, entry_pos);
 }

-static AVDictionaryEntry *get_metadata_lang(AVFormatContext *s,
-                                            const char *tag, int *lang)
-{
-    int l, len, len2;
-    AVDictionaryEntry *t, *t2 = NULL;
-    char tag2[16];
-
-    *lang = 0;
-
-    if (!(t = av_dict_get(s->metadata, tag, NULL, 0)))
-        return NULL;
-
-    len = strlen(t->key);
-    snprintf(tag2, sizeof(tag2), "%s-", tag);
-    while ((t2 = av_dict_get(s->metadata, tag2, t2, AV_DICT_IGNORE_SUFFIX))) {
-        len2 = strlen(t2->key);
-        if (len2 == len + 4 && !strcmp(t->value, t2->value)
-            && (l = ff_mov_iso639_to_lang(&t2->key[len2 - 3], 1)) >= 0) {
-            *lang = l;
-            return t;
-        }
-    }
-    return t;
-}
-
 static int mov_write_string_metadata(AVFormatContext *s, AVIOContext *pb,
                                      const char *name, const char *tag,
                                      int long_style)
 {
     int lang;
-    AVDictionaryEntry *t = get_metadata_lang(s, tag, &lang);
+    AVDictionaryEntry *t = get_metadata_lang(s->metadata, tag, &lang);
     if (!t)
         return 0;
     return mov_write_string_tag(pb, name, t->value, lang, long_style);
@@ -5070,7 +5096,7 @@ static int mov_write_loci_tag(AVFormatContext *s, AVIOContext *pb)
     int64_t pos = avio_tell(pb);
     double latitude, longitude, altitude = 0;
     int32_t latitude_fix, longitude_fix, altitude_fix;
-    AVDictionaryEntry *t = get_metadata_lang(s, "location", &lang);
+    AVDictionaryEntry *t = get_metadata_lang(s->metadata, "location", &lang);
     const char *ptr, *place = "";
     int n = 0;
     static const char *astronomical_body = "earth";
@@ -5088,6 +5114,8 @@ static int mov_write_loci_tag(AVFormatContext *s, AVIOContext *pb)
         ptr += n;
     if (*ptr == '/')
         place = ptr + 1;
+    if (!mov_valid_utf8(place))
+        place = "";

     latitude_fix  = lrint(av_clipd((1 << 16) * latitude,  INT32_MIN, INT32_MAX));
     longitude_fix = lrint(av_clipd((1 << 16) * longitude, INT32_MIN, INT32_MAX));
@@ -5415,40 +5443,6 @@ static int ascii_to_wc(AVIOContext *pb, const uint8_t *b)
     return 0;
 }

-static uint16_t language_code(const char *str)
-{
-    return (((str[0] - 0x60) & 0x1F) << 10) +
-           (((str[1] - 0x60) & 0x1F) <<  5) +
-           (( str[2] - 0x60) & 0x1F);
-}
-
-static int mov_write_3gp_udta_tag(AVIOContext *pb, AVFormatContext *s,
-                                  const char *tag, const char *str)
-{
-    int64_t pos = avio_tell(pb);
-    AVDictionaryEntry *t = av_dict_get(s->metadata, str, NULL, 0);
-    if (!t || !utf8len(t->value))
-        return 0;
-    avio_wb32(pb, 0);   /* size */
-    ffio_wfourcc(pb, tag); /* type */
-    avio_wb32(pb, 0);   /* version + flags */
-    if (!strcmp(tag, "yrrc"))
-        avio_wb16(pb, atoi(t->value));
-    else {
-        avio_wb16(pb, language_code("eng")); /* language */
-        avio_write(pb, t->value, strlen(t->value) + 1); /* UTF8 string value */
-        if (!strcmp(tag, "albm") &&
-            (t = av_dict_get(s->metadata, "track", NULL, 0))) {
-            char *end;
-            long track = strtol(t->value, &end, 10);
-            if (end != t->value && (!*end || *end == '/') &&
-                track >= 0 && track <= UINT8_MAX)
-                avio_w8(pb, track);
-        }
-    }
-    return update_size(pb, pos);
-}
-
 static int mov_write_chpl_tag(AVIOContext *pb, AVFormatContext *s)
 {
     int64_t pos = avio_tell(pb);
@@ -5489,14 +5483,14 @@ static int mov_write_udta_tag(AVIOContext *pb, MOVMuxContext *mov,
         return ret;

     if (mov->mode & MODE_3GP) {
-        mov_write_3gp_udta_tag(pb_buf, s, "perf", "artist");
-        mov_write_3gp_udta_tag(pb_buf, s, "titl", "title");
-        mov_write_3gp_udta_tag(pb_buf, s, "auth", "author");
-        mov_write_3gp_udta_tag(pb_buf, s, "gnre", "genre");
-        mov_write_3gp_udta_tag(pb_buf, s, "dscp", "comment");
-        mov_write_3gp_udta_tag(pb_buf, s, "albm", "album");
-        mov_write_3gp_udta_tag(pb_buf, s, "cprt", "copyright");
-        mov_write_3gp_udta_tag(pb_buf, s, "yrrc", "date");
+        mov_write_3gp_udta_tag(pb_buf, s->metadata, "perf", "artist");
+        mov_write_3gp_udta_tag(pb_buf, s->metadata, "titl", "title");
+        mov_write_3gp_udta_tag(pb_buf, s->metadata, "auth", "author");
+        mov_write_3gp_udta_tag(pb_buf, s->metadata, "gnre", "genre");
+        mov_write_3gp_udta_tag(pb_buf, s->metadata, "dscp", "comment");
+        mov_write_3gp_udta_tag(pb_buf, s->metadata, "albm", "album");
+        mov_write_3gp_udta_tag(pb_buf, s->metadata, "cprt", "copyright");
+        mov_write_3gp_udta_tag(pb_buf, s->metadata, "yrrc", "date");
         mov_write_loci_tag(s, pb_buf);
     } else if (mov->mode == MODE_MOV && !(mov->flags & FF_MOV_FLAG_USE_MDTA)) { // the title field breaks gtkpod with mp4 and my suspicion is that stuff is not valid in mp4
         mov_write_string_metadata(s, pb_buf, "\251ART", "artist",      0);
@@ -5546,7 +5540,7 @@ static void mov_write_psp_udta_tag(AVIOContext *pb,
         return;
     avio_wb16(pb, len * 2 + 10);        /* size */
     avio_wb32(pb, type);                /* type */
-    avio_wb16(pb, language_code(lang)); /* language */
+    avio_wb16(pb, ff_mov_pack_lang(lang)); /* language */
     avio_wb16(pb, 0x01);                /* ? */
     ascii_to_wc(pb, str);
 }
@@ -5573,7 +5567,7 @@ static int mov_write_uuidusmt_tag(AVIOContext *pb, AVFormatContext *s)
         // ?
         avio_wb16(pb, 0x0C);                 /* size */
         avio_wb32(pb, 0x0B);                 /* type */
-        avio_wb16(pb, language_code("und")); /* language */
+        avio_wb16(pb, MOV_LANG_UND);         /* language */
         avio_wb16(pb, 0x0);                  /* ? */
         avio_wb16(pb, 0x021C);               /* data */

@@ -8649,6 +8643,7 @@ static int mov_create_chapter_track(AVFormatContext *s, int tracknum)

     track->mode = mov->mode;
     track->tag = MKTAG('t','e','x','t');
+    track->language = MOV_LANG_UND;
     track->timescale = mov->movie_timescale;
     track->par = avcodec_parameters_alloc();
     if (!track->par)
@@ -8731,6 +8726,7 @@ static int mov_create_timecode_track(AVFormatContext *s, int index, int src_inde
     /* tmcd track based on video stream */
     track->mode      = mov->mode;
     track->tag       = MKTAG('t','m','c','d');
+    track->language  = MOV_LANG_UND;
     track->src_track = av_malloc(sizeof(*track->src_track));
     if (!track->src_track)
         return AVERROR(ENOMEM);
@@ -9374,13 +9370,19 @@ static int mov_init(AVFormatContext *s)
         AVStream *st= s->streams[i];
         MOVTrack *track = st->priv_data;
         AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL,0);
+        size_t lang_len = lang ? strcspn(lang->value, ",-") : 0;
+        char primary[4] = { 0 };

         if (!track)
             continue;

-        track->language = ff_mov_iso639_to_lang(lang?lang->value:"und", mov->mode!=MODE_MOV);
+        /* Use the primary subtag of the first language. */
+        if (lang_len < sizeof(primary))
+            for (size_t j = 0; j < lang_len; j++)
+                primary[j] = av_tolower(lang->value[j]);
+        track->language = ff_mov_pack_lang(primary);
         if (track->language < 0)
-            track->language = 32767;  // Unspecified Macintosh language code
+            track->language = MOV_LANG_UND;
         track->mode = mov->mode;
         if (track->mode == MODE_MP4 &&
             s->strict_std_compliance >= FF_COMPLIANCE_STRICT &&
diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c
index 65b3908938..3bab16a7e6 100644
--- a/libavformat/movenchint.c
+++ b/libavformat/movenchint.c
@@ -25,6 +25,7 @@
 #include "mux.h"
 #include "rtpenc_chain.h"
 #include "avio_internal.h"
+#include "isom.h"
 #include "rtp.h"

 int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index)
@@ -36,6 +37,7 @@ int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index)
     int ret = AVERROR(ENOMEM);

     track->tag = MKTAG('r','t','p',' ');
+    track->language = MOV_LANG_UND;
     track->src_track = av_malloc(sizeof(*track->src_track));
     if (!track->src_track)
         return AVERROR(ENOMEM);
diff --git a/tests/fate/mov.mak b/tests/fate/mov.mak
index 217d7d5e74..5b71fd7b60 100644
--- a/tests/fate/mov.mak
+++ b/tests/fate/mov.mak
@@ -564,7 +564,7 @@ fate-mov-vfr: CMD = md5 -filter_complex testsrc=size=2x2:duration=1,setpts=N*N:s
 FATE_MOV_FFMPEG-$(call TRANSCODE, DFPWM, MOV, LAVFI_INDEV SINE_FILTER ATRIM_FILTER PCM_S16LE_DECODER ARESAMPLE_FILTER) += fate-mov-dfpwm-last-packet
 fate-mov-dfpwm-last-packet: CMD = transcode lavfi "sine=r=48000,atrim=end_sample=85" mov "-auto_conversion_filters -c:a dfpwm -movie_timescale 48000" "-c copy"
 fate-mov-vfr: CMP = oneline
-fate-mov-vfr: REF = 54167f70fb0c2d164587b6af1aad9623
+fate-mov-vfr: REF = d9879ba6d2a4764aca8387bde1a2870c

 # The QuickTime user data list has to carry the composer atom the demuxer
 # already reads: without it a mov to mov remux dropped the tag.
@@ -574,14 +574,19 @@ fate-mov-composer-metadata: CMD = transcode wav ./tests/data/asynth-44100-2.wav
     "-af aresample -c:a pcm_s16le -t 0.05 -metadata composer=Bach" \
     "-af aresample -c:a pcm_s16le" "-show_entries format_tags"

-# 3GPP loci location: ties rounded to even, the altitude clipped to its
-# 16.16 range, and a missing altitude written as zero.
+# 3GPP loci location: coordinate rounding, altitude clipping and UTF-8 truncation.
+tests/data/mov-loci-location.txt: TAG = GEN
+tests/data/mov-loci-location.txt: | tests/data
+	$(M){ printf 'location=+00.03125-000.15625+32767.999999/'; \
+	    i=0; while test $$i -lt 50; do printf '\303\251'; i=$$((i + 1)); done; } > $@
+
 FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, PCM_S16LE, MP4 MOV, WAV_DEMUXER ARESAMPLE_FILTER) \
                        += fate-mov-mp4-loci fate-mov-mp4-loci-no-altitude
 fate-mov-mp4-loci fate-mov-mp4-loci-no-altitude: tests/data/asynth-44100-2.wav
+fate-mov-mp4-loci: tests/data/mov-loci-location.txt
 fate-mov-mp4-loci: CMD = transcode wav ./tests/data/asynth-44100-2.wav mp4 \
-    "-af aresample -c:a pcm_s16le -t 0.05 -metadata location=+00.03125-000.15625+32767.999999/Place" \
-    "-af aresample -c:a pcm_s16le" "-show_entries format_tags=location"
+    "-af aresample -c:a pcm_s16le -t 0.05 -/metadata $(TARGET_PATH)/tests/data/mov-loci-location.txt -metadata:s:a language=scc" \
+    "-af aresample -c:a pcm_s16le" "-show_entries format_tags=location:stream_tags=language"
 fate-mov-mp4-loci-no-altitude: CMD = transcode wav ./tests/data/asynth-44100-2.wav mp4 \
     "-af aresample -c:a pcm_s16le -t 0.05 -metadata location=-33.8568+151.2153/" \
     "-af aresample -c:a pcm_s16le" "-show_entries format_tags=location"
@@ -598,13 +603,14 @@ fate-mov-frag-large-comment: CMD = md5pipe -filter_complex color=s=2x2:r=1 -fram
 # The 3GPP TS 26.244 user data boxes have to be read back with their languages.
 FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, MPEG4, TGP MOV, LAVFI_INDEV COLOR_FILTER WRAPPED_AVFRAME_DECODER) += fate-mov-3gp-udta-metadata
 fate-mov-3gp-udta-metadata: CMD = transcode lavfi "color=s=32x32:r=1:d=1" 3gp \
-    "-c:v mpeg4 -metadata title=Title -metadata artist=Artist -metadata author=Author \
+    "-c:v mpeg4 -metadata:s:v language=fil-PH -metadata:s:v title=Video -metadata:s:v title-fre=Video \
+     -metadata title=Title -metadata artist=Artist -metadata author=Author \
      -metadata genre=Genre -metadata comment=Comment -metadata album=Album -metadata track=7 \
      -metadata copyright=Copyright -metadata date=2024 \
      -metadata title-eng=Title -metadata artist-eng=Artist -metadata author-eng=Author \
-     -metadata genre-eng=Genre -metadata comment-eng=Comment -metadata album-eng=Album \
+     -metadata genre-fre=Genre -metadata comment-eng=Comment -metadata album-eng=Album \
      -metadata copyright-eng=Copyright" \
-    "-c copy" "-show_entries format_tags"
+    "-c copy" "-show_entries format_tags:stream_tags=language,title,title-fre"

 # yuv2 defaults to full range BT.601; a colr matrix or a decoder option still takes precedence.
 MOV_YUV2_FILTERS = COLOR FORMAT SCALE
diff --git a/tests/ref/acodec/alac b/tests/ref/acodec/alac
index 9850b1874c..f1b71ea3d6 100644
--- a/tests/ref/acodec/alac
+++ b/tests/ref/acodec/alac
@@ -1,4 +1,4 @@
-9155a972804495e4cf5a4128df905192 *tests/data/fate/acodec-alac.mov
+4b75d2770558a588f94fc64974b193b1 *tests/data/fate/acodec-alac.mov
 389018 tests/data/fate/acodec-alac.mov
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-alac.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s16be b/tests/ref/acodec/pcm-s16be
index a0fdc429f7..3d4361d938 100644
--- a/tests/ref/acodec/pcm-s16be
+++ b/tests/ref/acodec/pcm-s16be
@@ -1,4 +1,4 @@
-54f786099b164d085ebff083e0470a40 *tests/data/fate/acodec-pcm-s16be.mov
+1cd819e87a002400a1e78d869eedd128 *tests/data/fate/acodec-pcm-s16be.mov
 1059069 tests/data/fate/acodec-pcm-s16be.mov
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s16be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s24be b/tests/ref/acodec/pcm-s24be
index 1a4f856594..3a4cfc9d6f 100644
--- a/tests/ref/acodec/pcm-s24be
+++ b/tests/ref/acodec/pcm-s24be
@@ -1,4 +1,4 @@
-79ee6b6a329c983f6f7067d82c9aa351 *tests/data/fate/acodec-pcm-s24be.mov
+514db09d84fd3c25b0333d6e36f04899 *tests/data/fate/acodec-pcm-s24be.mov
 1588323 tests/data/fate/acodec-pcm-s24be.mov
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s24be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s32be b/tests/ref/acodec/pcm-s32be
index 5ea7c896ef..58174d6c56 100644
--- a/tests/ref/acodec/pcm-s32be
+++ b/tests/ref/acodec/pcm-s32be
@@ -1,4 +1,4 @@
-759755987a26408006febea320fc090d *tests/data/fate/acodec-pcm-s32be.mov
+d04dbc524fd8e4029a7d70fe5277f51b *tests/data/fate/acodec-pcm-s32be.mov
 2117527 tests/data/fate/acodec-pcm-s32be.mov
 95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s32be.out.wav
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
diff --git a/tests/ref/acodec/pcm-s8 b/tests/ref/acodec/pcm-s8
index 790aeeb8cb..837b46401f 100644
--- a/tests/ref/acodec/pcm-s8
+++ b/tests/ref/acodec/pcm-s8
@@ -1,4 +1,4 @@
-13880adadc9ad9c9bf55c9af7566edd6 *tests/data/fate/acodec-pcm-s8.mov
+4eabb2e82005493e897ca0b0ef5b37ea *tests/data/fate/acodec-pcm-s8.mov
 529853 tests/data/fate/acodec-pcm-s8.mov
 652edf30f35ad89bf27bcc9d2f9c7b53 *tests/data/fate/acodec-pcm-s8.out.wav
 stddev:  147.89 PSNR: 52.93 MAXDIFF:  255 bytes:  1058400/  1058400
diff --git a/tests/ref/fate/adtstoasc_ticket3715 b/tests/ref/fate/adtstoasc_ticket3715
index 4d26414759..db83612c20 100644
--- a/tests/ref/fate/adtstoasc_ticket3715
+++ b/tests/ref/fate/adtstoasc_ticket3715
@@ -1,4 +1,4 @@
-36c7ef72d4eb195cf954971368833b76 *tests/data/fate/adtstoasc_ticket3715.mov
+694dac62260ad7efde387a2d71f3a850 *tests/data/fate/adtstoasc_ticket3715.mov
 33324 tests/data/fate/adtstoasc_ticket3715.mov
 #extradata 0:        2, 0x00340022
 #tb 0: 1/44100
diff --git a/tests/ref/fate/amrwb-mov-remux b/tests/ref/fate/amrwb-mov-remux
index ce234fa5bd..304899c272 100644
--- a/tests/ref/fate/amrwb-mov-remux
+++ b/tests/ref/fate/amrwb-mov-remux
@@ -1,4 +1,4 @@
-c327814fbc3cc97c7476c1a984a15caf *tests/data/fate/amrwb-mov-remux.mov
+a35b64411b896045422ab8cb368f8bf4 *tests/data/fate/amrwb-mov-remux.mov
 31923 tests/data/fate/amrwb-mov-remux.mov
 #tb 0: 1/16000
 #media_type 0: audio
diff --git a/tests/ref/fate/autorotate b/tests/ref/fate/autorotate
index 22706a0d56..2780dc3dde 100644
--- a/tests/ref/fate/autorotate
+++ b/tests/ref/fate/autorotate
@@ -1,4 +1,4 @@
-aedda581ccfd8d3607c867c39b4e7404 *tests/data/fate/autorotate.mov
+2ede2ad0caa886657b251fbe397e44e3 *tests/data/fate/autorotate.mov
 153258 tests/data/fate/autorotate.mov
 #extradata 0:       34, 0x9d7d073f
 #tb 0: 1/15360
diff --git a/tests/ref/fate/copy-trac236 b/tests/ref/fate/copy-trac236
index f3a832f96d..a78c4184db 100644
--- a/tests/ref/fate/copy-trac236
+++ b/tests/ref/fate/copy-trac236
@@ -1,4 +1,4 @@
-02b2d04b0d652c190972ce284e954ea9 *tests/data/fate/copy-trac236.mov
+522f192d6dafc1f03049c09fd575f429 *tests/data/fate/copy-trac236.mov
 630918 tests/data/fate/copy-trac236.mov
 #tb 0: 100/2997
 #media_type 0: video
diff --git a/tests/ref/fate/ffmpeg-side-data-bsf-keep-stream b/tests/ref/fate/ffmpeg-side-data-bsf-keep-stream
index 6455d4069d..86f61036fd 100644
--- a/tests/ref/fate/ffmpeg-side-data-bsf-keep-stream
+++ b/tests/ref/fate/ffmpeg-side-data-bsf-keep-stream
@@ -1,4 +1,4 @@
-80c8d637a6482bc2b9afaf337ff8ade9 *tests/data/fate/ffmpeg-side-data-bsf-keep-stream.mov
+67e63ff112232bf042b293f1fae90c0c *tests/data/fate/ffmpeg-side-data-bsf-keep-stream.mov
 61851 tests/data/fate/ffmpeg-side-data-bsf-keep-stream.mov
 #extradata 0:       29, 0x757e07f6
 #tb 0: 1/19200
diff --git a/tests/ref/fate/ffmpeg-side-data-bsf-remove-stream b/tests/ref/fate/ffmpeg-side-data-bsf-remove-stream
index 510d0a19f4..6d669ff2a5 100644
--- a/tests/ref/fate/ffmpeg-side-data-bsf-remove-stream
+++ b/tests/ref/fate/ffmpeg-side-data-bsf-remove-stream
@@ -1,4 +1,4 @@
-921d630eb70148b45230da21e31f50f8 *tests/data/fate/ffmpeg-side-data-bsf-remove-stream.mov
+17c390772b6ac67f66555637b20f6c7f *tests/data/fate/ffmpeg-side-data-bsf-remove-stream.mov
 61851 tests/data/fate/ffmpeg-side-data-bsf-remove-stream.mov
 #extradata 0:       29, 0x757e07f6
 #tb 0: 1/19200
diff --git a/tests/ref/fate/filter-meta-4560-rotate0 b/tests/ref/fate/filter-meta-4560-rotate0
index 5ddee0c50b..384237a362 100644
--- a/tests/ref/fate/filter-meta-4560-rotate0
+++ b/tests/ref/fate/filter-meta-4560-rotate0
@@ -1,4 +1,4 @@
-9e497446c9d0484a80e0819e65c955f2 *tests/data/fate/filter-meta-4560-rotate0.mov
+48f6a31b40d5621c30c7395520e38e18 *tests/data/fate/filter-meta-4560-rotate0.mov
 347425 tests/data/fate/filter-meta-4560-rotate0.mov
 #tb 0: 1/30
 #media_type 0: video
diff --git a/tests/ref/fate/h264-bsf-dts2pts b/tests/ref/fate/h264-bsf-dts2pts
index 6213466fc2..b54c2b1a86 100644
--- a/tests/ref/fate/h264-bsf-dts2pts
+++ b/tests/ref/fate/h264-bsf-dts2pts
@@ -1,4 +1,4 @@
-7a51a2ae24d28775db17801cd0d18338 *tests/data/fate/h264-bsf-dts2pts.mov
+e861f529a580ba9557e87499e50b0f9b *tests/data/fate/h264-bsf-dts2pts.mov
 243937 tests/data/fate/h264-bsf-dts2pts.mov
 #extradata 0:       26, 0x75e2093d
 #tb 0: 1/1200000
diff --git a/tests/ref/fate/hevc-bsf-dts2pts-cra b/tests/ref/fate/hevc-bsf-dts2pts-cra
index e5bc7fb6f1..00d270acf4 100644
--- a/tests/ref/fate/hevc-bsf-dts2pts-cra
+++ b/tests/ref/fate/hevc-bsf-dts2pts-cra
@@ -1,4 +1,4 @@
-ed2cabd5adf5a8b125cef4ada6cfbe6d *tests/data/fate/hevc-bsf-dts2pts-cra.mov
+14c918fcbca11d81ce762409ce7cd01c *tests/data/fate/hevc-bsf-dts2pts-cra.mov
 103067 tests/data/fate/hevc-bsf-dts2pts-cra.mov
 #extradata 0:      118, 0x25f51994
 #tb 0: 1/1200000
diff --git a/tests/ref/fate/hevc-bsf-dts2pts-idr b/tests/ref/fate/hevc-bsf-dts2pts-idr
index a6103af9b6..cc36a85592 100644
--- a/tests/ref/fate/hevc-bsf-dts2pts-idr
+++ b/tests/ref/fate/hevc-bsf-dts2pts-idr
@@ -1,4 +1,4 @@
-beb27042e44bef23da8f151244f288a0 *tests/data/fate/hevc-bsf-dts2pts-idr.mov
+5e016257a72ef5d5b75dd53ef93727c5 *tests/data/fate/hevc-bsf-dts2pts-idr.mov
 346603 tests/data/fate/hevc-bsf-dts2pts-idr.mov
 #extradata 0:      699, 0x9c810c10
 #tb 0: 1/1200000
diff --git a/tests/ref/fate/hevc-bsf-dts2pts-idr-cra b/tests/ref/fate/hevc-bsf-dts2pts-idr-cra
index 68414a1113..1f98f922cd 100644
--- a/tests/ref/fate/hevc-bsf-dts2pts-idr-cra
+++ b/tests/ref/fate/hevc-bsf-dts2pts-idr-cra
@@ -1,4 +1,4 @@
-7315970a851acc2fef62b5bcd7698432 *tests/data/fate/hevc-bsf-dts2pts-idr-cra.mov
+4ab19eedf1c70f79415af3618786e2fe *tests/data/fate/hevc-bsf-dts2pts-idr-cra.mov
 375266 tests/data/fate/hevc-bsf-dts2pts-idr-cra.mov
 #extradata 0:      648, 0x30a7fa5c
 #tb 0: 1/1200000
diff --git a/tests/ref/fate/media100 b/tests/ref/fate/media100
index d60345fe01..eb74b453ce 100644
--- a/tests/ref/fate/media100
+++ b/tests/ref/fate/media100
@@ -1,4 +1,4 @@
-e5617ee95dac26b7ddbd5e49f4b61119 *tests/data/fate/media100.mov
+03d58c2e007a1c88ed9a093311d42ef6 *tests/data/fate/media100.mov
 155218 tests/data/fate/media100.mov
 #tb 0: 1/25
 #media_type 0: video
diff --git a/tests/ref/fate/mov-3gp-udta-metadata b/tests/ref/fate/mov-3gp-udta-metadata
index 681e824d04..4e33b8ae26 100644
--- a/tests/ref/fate/mov-3gp-udta-metadata
+++ b/tests/ref/fate/mov-3gp-udta-metadata
@@ -1,5 +1,5 @@
-331d2eb81759784fdc90c62c9fff5412 *tests/data/fate/mov-3gp-udta-metadata.3gp
-939 tests/data/fate/mov-3gp-udta-metadata.3gp
+c54ffc694bb90669ef7a16af4573d14a *tests/data/fate/mov-3gp-udta-metadata.3gp
+967 tests/data/fate/mov-3gp-udta-metadata.3gp
 #extradata 0:       30, 0x4299048c
 #tb 0: 1/16384
 #media_type 0: video
@@ -7,6 +7,11 @@
 #dimensions 0: 32x32
 #sar 0: 1/1
 0,          0,          0,    16384,       26, 0x4a08091f
+[STREAM]
+TAG:language=fil
+TAG:title=Video
+TAG:title-fre=Video
+[/STREAM]
 [FORMAT]
 TAG:major_brand=3gp4
 TAG:minor_version=512
@@ -18,7 +23,7 @@ TAG:title-eng=Title
 TAG:author=Author
 TAG:author-eng=Author
 TAG:genre=Genre
-TAG:genre-eng=Genre
+TAG:genre-fre=Genre
 TAG:comment=Comment
 TAG:comment-eng=Comment
 TAG:album=Album
diff --git a/tests/ref/fate/mov-adpcm-ima-qt-flat-trim b/tests/ref/fate/mov-adpcm-ima-qt-flat-trim
index db7dbe3386..a6a2f1695a 100644
--- a/tests/ref/fate/mov-adpcm-ima-qt-flat-trim
+++ b/tests/ref/fate/mov-adpcm-ima-qt-flat-trim
@@ -1,4 +1,4 @@
-4e623936757776bb481e93b43287bdfc *tests/data/fate/mov-adpcm-ima-qt-flat-trim.mov
+92013694b7feb8e02a0c248f8ce36dc0 *tests/data/fate/mov-adpcm-ima-qt-flat-trim.mov
 1153 tests/data/fate/mov-adpcm-ima-qt-flat-trim.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-adpcm-ima-qt-frag-trim b/tests/ref/fate/mov-adpcm-ima-qt-frag-trim
index b07a21c98c..1ef8744968 100644
--- a/tests/ref/fate/mov-adpcm-ima-qt-frag-trim
+++ b/tests/ref/fate/mov-adpcm-ima-qt-frag-trim
@@ -1,4 +1,4 @@
-81ce89fcc790b4df76051e1931d25e89 *tests/data/fate/mov-adpcm-ima-qt-frag-trim.mov
+13ea194774793870db7a8cce5fd08235 *tests/data/fate/mov-adpcm-ima-qt-frag-trim.mov
 1348 tests/data/fate/mov-adpcm-ima-qt-frag-trim.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-adpcm-ima-qt-trim b/tests/ref/fate/mov-adpcm-ima-qt-trim
index 3dce0cbacb..0a0ba059f3 100644
--- a/tests/ref/fate/mov-adpcm-ima-qt-trim
+++ b/tests/ref/fate/mov-adpcm-ima-qt-trim
@@ -1,4 +1,4 @@
-c261e4a193a0b122d120627031b6c10a *tests/data/fate/mov-adpcm-ima-qt-trim.mov
+040c8a7d22ae7c73ccfc81eb7a4be2b9 *tests/data/fate/mov-adpcm-ima-qt-trim.mov
 1185 tests/data/fate/mov-adpcm-ima-qt-trim.mov
 #tb 0: 1/48000
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-adpcm-ima-wav-mov-remux b/tests/ref/fate/mov-adpcm-ima-wav-mov-remux
index 2efd7ba76e..190a31fec0 100644
--- a/tests/ref/fate/mov-adpcm-ima-wav-mov-remux
+++ b/tests/ref/fate/mov-adpcm-ima-wav-mov-remux
@@ -1,4 +1,4 @@
-b29d126f88d1d896c7910189de8f946f *tests/data/fate/mov-adpcm-ima-wav-mov-remux.mov
+0d13620a8e418b373d7c64bc70689ce3 *tests/data/fate/mov-adpcm-ima-wav-mov-remux.mov
 5821 tests/data/fate/mov-adpcm-ima-wav-mov-remux.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-adpcm-ima-wav-remux b/tests/ref/fate/mov-adpcm-ima-wav-remux
index 3037214d56..1613fb2fa4 100644
--- a/tests/ref/fate/mov-adpcm-ima-wav-remux
+++ b/tests/ref/fate/mov-adpcm-ima-wav-remux
@@ -1,4 +1,4 @@
-69cbaf102e3bd3c03d22b683e53994c9 *tests/data/fate/mov-adpcm-ima-wav-remux.mov
+c24acb96ff3da5872f3dae47fe051b09 *tests/data/fate/mov-adpcm-ima-wav-remux.mov
 5821 tests/data/fate/mov-adpcm-ima-wav-remux.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-adpcm-ms-mov-remux b/tests/ref/fate/mov-adpcm-ms-mov-remux
index 54477bcbf7..aa464e659d 100644
--- a/tests/ref/fate/mov-adpcm-ms-mov-remux
+++ b/tests/ref/fate/mov-adpcm-ms-mov-remux
@@ -1,4 +1,4 @@
-cd119af18f219bd991cdbac7ff9dbe04 *tests/data/fate/mov-adpcm-ms-mov-remux.mov
+6e3852485668e7d1164e031d2343ef19 *tests/data/fate/mov-adpcm-ms-mov-remux.mov
 5819 tests/data/fate/mov-adpcm-ms-mov-remux.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-adpcm-ms-mov-remux-trim-both b/tests/ref/fate/mov-adpcm-ms-mov-remux-trim-both
index 1f727854de..7d04eebeba 100644
--- a/tests/ref/fate/mov-adpcm-ms-mov-remux-trim-both
+++ b/tests/ref/fate/mov-adpcm-ms-mov-remux-trim-both
@@ -1,4 +1,4 @@
-cfe19ed761c77bae3edddfb4f3fee962 *tests/data/fate/mov-adpcm-ms-mov-remux-trim-both.mov
+44b92ac70cac622f32322b9e50d6f4ae *tests/data/fate/mov-adpcm-ms-mov-remux-trim-both.mov
 1723 tests/data/fate/mov-adpcm-ms-mov-remux-trim-both.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-adpcm-ms-remux b/tests/ref/fate/mov-adpcm-ms-remux
index 3132c1d8cb..33bc8e6e3b 100644
--- a/tests/ref/fate/mov-adpcm-ms-remux
+++ b/tests/ref/fate/mov-adpcm-ms-remux
@@ -1,4 +1,4 @@
-c3c0f31f29a046477c086a55b92666cb *tests/data/fate/mov-adpcm-ms-remux.mov
+d1a1757e1760e7e9bead3f09d29c1d34 *tests/data/fate/mov-adpcm-ms-remux.mov
 5851 tests/data/fate/mov-adpcm-ms-remux.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-adpcm-ms-remux-delay-moov b/tests/ref/fate/mov-adpcm-ms-remux-delay-moov
index 253d94ce71..6a84c8d608 100644
--- a/tests/ref/fate/mov-adpcm-ms-remux-delay-moov
+++ b/tests/ref/fate/mov-adpcm-ms-remux-delay-moov
@@ -1,4 +1,4 @@
-5d174d2b6e2db23e831b63417d6311b5 *tests/data/fate/mov-adpcm-ms-remux-delay-moov.mov
+54b5290599fd3cd3bce745f08c13d991 *tests/data/fate/mov-adpcm-ms-remux-delay-moov.mov
 6280 tests/data/fate/mov-adpcm-ms-remux-delay-moov.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-channel-description b/tests/ref/fate/mov-channel-description
index dd63703588..d9e0ed96bf 100644
--- a/tests/ref/fate/mov-channel-description
+++ b/tests/ref/fate/mov-channel-description
@@ -1,4 +1,4 @@
-dd278f8456f35f593cd4f018e2c58d77 *tests/data/fate/mov-channel-description.mov
+1be43331fd934d0dafbf0c0ebbd7a412 *tests/data/fate/mov-channel-description.mov
 4239964 tests/data/fate/mov-channel-description.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-composer-metadata b/tests/ref/fate/mov-composer-metadata
index 923e006507..af2feddf77 100644
--- a/tests/ref/fate/mov-composer-metadata
+++ b/tests/ref/fate/mov-composer-metadata
@@ -1,4 +1,4 @@
-c2e84c4301abaf09af9eb3dc64f39731 *tests/data/fate/mov-composer-metadata.mov
+cbb2da75a8c2fb1937b01a13b10506ed *tests/data/fate/mov-composer-metadata.mov
 9497 tests/data/fate/mov-composer-metadata.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-dfpwm-last-packet b/tests/ref/fate/mov-dfpwm-last-packet
index 5fd81f5326..b6725d2b52 100644
--- a/tests/ref/fate/mov-dfpwm-last-packet
+++ b/tests/ref/fate/mov-dfpwm-last-packet
@@ -1,4 +1,4 @@
-71833d5f8eaa866d5bbb425edb7ad63d *tests/data/fate/mov-dfpwm-last-packet.mov
+194592041acaebe07d5d1afe3cfb9da9 *tests/data/fate/mov-dfpwm-last-packet.mov
 656 tests/data/fate/mov-dfpwm-last-packet.mov
 #tb 0: 1/48000
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-frag-large-comment b/tests/ref/fate/mov-frag-large-comment
index e2951fafe3..79b9f0c58c 100644
--- a/tests/ref/fate/mov-frag-large-comment
+++ b/tests/ref/fate/mov-frag-large-comment
@@ -1 +1 @@
-60283556df08611133045caa7be694af
+437e460ba09a3cc90de13fb2081619ad
diff --git a/tests/ref/fate/mov-gama-color-trc b/tests/ref/fate/mov-gama-color-trc
index e72186ac69..35a04e812b 100644
--- a/tests/ref/fate/mov-gama-color-trc
+++ b/tests/ref/fate/mov-gama-color-trc
@@ -1,4 +1,4 @@
-b1b9ed556fc7550374671a0a63e04578 *tests/data/fate/mov-gama-color-trc.mov
+da2e51ea04b97cb42b817f227b483eae *tests/data/fate/mov-gama-color-trc.mov
 8607 tests/data/fate/mov-gama-color-trc.mov
 #extradata 0:       42, 0x114f0ce2
 #tb 0: 1/16384
diff --git a/tests/ref/fate/mov-gama-only-color-trc b/tests/ref/fate/mov-gama-only-color-trc
index 2dd4fe136e..261dbf00da 100644
--- a/tests/ref/fate/mov-gama-only-color-trc
+++ b/tests/ref/fate/mov-gama-only-color-trc
@@ -1,4 +1,4 @@
-6e5609ea15cc0b76e922cf5baf988915 *tests/data/fate/mov-gama-only-color-trc.mov
+973b00923a086b3ffa52935e077762f2 *tests/data/fate/mov-gama-only-color-trc.mov
 8589 tests/data/fate/mov-gama-only-color-trc.mov
 #extradata 0:       42, 0x114f0ce2
 #tb 0: 1/16384
diff --git a/tests/ref/fate/mov-ima4-96k b/tests/ref/fate/mov-ima4-96k
index 8858deff64..4cc4714108 100644
--- a/tests/ref/fate/mov-ima4-96k
+++ b/tests/ref/fate/mov-ima4-96k
@@ -1,4 +1,4 @@
-de230f69f5ffae2812c3328050cbab50 *tests/data/fate/mov-ima4-96k.mov
+aaa875533c28c27901a667a63e2b68d4 *tests/data/fate/mov-ima4-96k.mov
 791 tests/data/fate/mov-ima4-96k.mov
 #tb 0: 1/96000
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-mdta-numeric b/tests/ref/fate/mov-mdta-numeric
index cc5326bc9d..2bc053f61b 100644
--- a/tests/ref/fate/mov-mdta-numeric
+++ b/tests/ref/fate/mov-mdta-numeric
@@ -1,4 +1,4 @@
-f47ccb864f2f9e0d8fe30bc6eb2123a9 *tests/data/fate/mov-mdta-numeric.mov
+be258e054c4638ceae88a09217953531 *tests/data/fate/mov-mdta-numeric.mov
 1337 tests/data/fate/mov-mdta-numeric.mov
 #extradata 0:       30, 0x434804d7
 #tb 0: 1/16384
diff --git a/tests/ref/fate/mov-mp4-chapters b/tests/ref/fate/mov-mp4-chapters
index 7741770ec2..32bc96f848 100644
--- a/tests/ref/fate/mov-mp4-chapters
+++ b/tests/ref/fate/mov-mp4-chapters
@@ -1,5 +1,5 @@
-42157f80a30d2832704785607ffbc4f4 *tests/data/fate/mov-mp4-chapters.mp4
-111288 tests/data/fate/mov-mp4-chapters.mp4
+6b5eb2c25d1abcf963e712f9e18138e8 *tests/data/fate/mov-mp4-chapters.mp4
+111295 tests/data/fate/mov-mp4-chapters.mp4
 #extradata 0:     3469, 0xc6769ddc
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-mp4-frag-chapters-seek b/tests/ref/fate/mov-mp4-frag-chapters-seek
index 9d1b0988d4..a22d0b7ed8 100644
--- a/tests/ref/fate/mov-mp4-frag-chapters-seek
+++ b/tests/ref/fate/mov-mp4-frag-chapters-seek
@@ -1,4 +1,4 @@
-a6c70d81a66c26d5adcd240c60cb0822 *tests/data/fate/mov-mp4-frag-chapters-seek.mp4
+99c7218cc3bae47a516ca2d543adbd6b *tests/data/fate/mov-mp4-frag-chapters-seek.mp4
 1363303 tests/data/fate/mov-mp4-frag-chapters-seek.mp4
 #extradata 0:       31, 0x64c405ed
 #tb 0: 1/12800
diff --git a/tests/ref/fate/mov-mp4-frag-open-gop-wait b/tests/ref/fate/mov-mp4-frag-open-gop-wait
index 2625809b49..ad0688447c 100644
--- a/tests/ref/fate/mov-mp4-frag-open-gop-wait
+++ b/tests/ref/fate/mov-mp4-frag-open-gop-wait
@@ -1,4 +1,4 @@
-9c90a174a45129b3c17e84e97dcae923 *tests/data/fate/mov-mp4-frag-open-gop-wait.mp4
+931728d0bab03bee22e9c29b32ea32fe *tests/data/fate/mov-mp4-frag-open-gop-wait.mp4
 1390616 tests/data/fate/mov-mp4-frag-open-gop-wait.mp4
 #extradata 0:      256, 0xeb4d5fe0
 #tb 0: 1/12800
diff --git a/tests/ref/fate/mov-mp4-loci b/tests/ref/fate/mov-mp4-loci
index 81158269d7..f0d234e27c 100644
--- a/tests/ref/fate/mov-mp4-loci
+++ b/tests/ref/fate/mov-mp4-loci
@@ -1,5 +1,5 @@
-9764e0e274022d6afa84aa8ca29f7439 *tests/data/fate/mov-mp4-loci.mp4
-9570 tests/data/fate/mov-mp4-loci.mp4
+2ae3b85d1f4b0bacfe611bcc65679f0e *tests/data/fate/mov-mp4-loci.mp4
+9665 tests/data/fate/mov-mp4-loci.mp4
 #tb 0: 1/44100
 #media_type 0: audio
 #codec_id 0: pcm_s16le
@@ -8,6 +8,9 @@
 0,          0,          0,     1024,     4096, 0x29e3eecf
 0,       1024,       1024,     1024,     4096, 0x18390b96
 0,       2048,       2048,      157,      628, 0x4db5381d
+[STREAM]
+TAG:language=srp
+[/STREAM]
 [FORMAT]
-TAG:location=+00.0312-000.1562+32768.000/Place
+TAG:location=+00.0312-000.1562+32768.000/ééééééééééééééééééééééééééééééééééééééééééééééééé
 [/FORMAT]
diff --git a/tests/ref/fate/mov-mp4-loci-no-altitude b/tests/ref/fate/mov-mp4-loci-no-altitude
index 98983feba7..36b5abb1a1 100644
--- a/tests/ref/fate/mov-mp4-loci-no-altitude
+++ b/tests/ref/fate/mov-mp4-loci-no-altitude
@@ -1,4 +1,4 @@
-27aeba911b16c554cdee8a710668fb33 *tests/data/fate/mov-mp4-loci-no-altitude.mp4
+1ebe6bc5adc6b728bfb16d9a684a5a54 *tests/data/fate/mov-mp4-loci-no-altitude.mp4
 9565 tests/data/fate/mov-mp4-loci-no-altitude.mp4
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-pcm-delay-moov b/tests/ref/fate/mov-pcm-delay-moov
index ea82cf3b0f..d73b073c2b 100644
--- a/tests/ref/fate/mov-pcm-delay-moov
+++ b/tests/ref/fate/mov-pcm-delay-moov
@@ -1,4 +1,4 @@
-8560b9a8020f9da1b4d4f0a45ab84f3b *tests/data/fate/mov-pcm-delay-moov.mov
+4c6c5c2a872d2ba35013a1b5088350ae *tests/data/fate/mov-pcm-delay-moov.mov
 9664 tests/data/fate/mov-pcm-delay-moov.mov
 #tb 0: 1/44100
 #media_type 0: audio
diff --git a/tests/ref/fate/mov-qdmc-remux b/tests/ref/fate/mov-qdmc-remux
index 544219f0ab..5e6ada0feb 100644
--- a/tests/ref/fate/mov-qdmc-remux
+++ b/tests/ref/fate/mov-qdmc-remux
@@ -1,4 +1,4 @@
-5754c0c6268e4e4f3dbd46a0e988dd7d *tests/data/fate/mov-qdmc-remux.mov
+eaad798c0e4442f26a3a30b4f8e2eb31 *tests/data/fate/mov-qdmc-remux.mov
 2398 tests/data/fate/mov-qdmc-remux.mov
 #extradata 0:       64, 0x269b07fa
 #tb 0: 1/44100
diff --git a/tests/ref/fate/prores-aw-color-tags b/tests/ref/fate/prores-aw-color-tags
index e90f797e1f..1dc015add4 100644
--- a/tests/ref/fate/prores-aw-color-tags
+++ b/tests/ref/fate/prores-aw-color-tags
@@ -1,4 +1,4 @@
-772349495e7157a417486afcc26ae9ee *tests/data/fate/prores-aw-color-tags.mov
+94c0337658e7e5e15518396686abe8ee *tests/data/fate/prores-aw-color-tags.mov
 101914 tests/data/fate/prores-aw-color-tags.mov
 #tb 0: 1/12800
 #media_type 0: video
diff --git a/tests/ref/fate/prores-ks-color-tags b/tests/ref/fate/prores-ks-color-tags
index 31ff5c7a5d..9e66e67114 100644
--- a/tests/ref/fate/prores-ks-color-tags
+++ b/tests/ref/fate/prores-ks-color-tags
@@ -1,4 +1,4 @@
-6b032a90fa8a6f742867934a88290a14 *tests/data/fate/prores-ks-color-tags.mov
+dc24c9e77ecee2661b7ea6a298c80688 *tests/data/fate/prores-ks-color-tags.mov
 77871 tests/data/fate/prores-ks-color-tags.mov
 #tb 0: 1/12800
 #media_type 0: video
diff --git a/tests/ref/fate/prores-metadata b/tests/ref/fate/prores-metadata
index c29d5851ba..0ed4160de1 100644
--- a/tests/ref/fate/prores-metadata
+++ b/tests/ref/fate/prores-metadata
@@ -1 +1 @@
-4aba2bc1490e1975b14f7aee58cee1fc
+32988ec96f99a4dcdc1442717c7b5eb7
diff --git a/tests/ref/fate/prores-unknown-color-tags b/tests/ref/fate/prores-unknown-color-tags
index e3b4c46fdf..30b6313b29 100644
--- a/tests/ref/fate/prores-unknown-color-tags
+++ b/tests/ref/fate/prores-unknown-color-tags
@@ -1,4 +1,4 @@
-12d60c8ea73a08aab37868bc52209def *tests/data/fate/prores-unknown-color-tags.mov
+a0c878977bb3b147fb4e7fe680a467c4 *tests/data/fate/prores-unknown-color-tags.mov
 115303 tests/data/fate/prores-unknown-color-tags.mov
 #tb 0: 1/11988
 #media_type 0: video
diff --git a/tests/ref/lavf-fate/mv_hevc.mov b/tests/ref/lavf-fate/mv_hevc.mov
index 2549c041b1..1daefd2646 100644
--- a/tests/ref/lavf-fate/mv_hevc.mov
+++ b/tests/ref/lavf-fate/mv_hevc.mov
@@ -1,3 +1,3 @@
-b4611d00af6a5febdb080233248ae605 *tests/data/lavf-fate/lavf.mv_hevc.mov
+7559974b3341d221c36a92c21df1b1a8 *tests/data/lavf-fate/lavf.mv_hevc.mov
 145383 tests/data/lavf-fate/lavf.mv_hevc.mov
 tests/data/lavf-fate/lavf.mv_hevc.mov CRC=0xb71b4938
diff --git a/tests/ref/lavf-fate/qtrle_mace6.mov b/tests/ref/lavf-fate/qtrle_mace6.mov
index c0098567c5..e99c0dc4bc 100644
--- a/tests/ref/lavf-fate/qtrle_mace6.mov
+++ b/tests/ref/lavf-fate/qtrle_mace6.mov
@@ -1,3 +1,3 @@
-9ef5f70482cef2e9e8d51ba2816d6a86 *tests/data/lavf-fate/lavf.qtrle_mace6.mov
+cf4c92e0155cd491de6188e7f19d26f3 *tests/data/lavf-fate/lavf.qtrle_mace6.mov
 1270415 tests/data/lavf-fate/lavf.qtrle_mace6.mov
 tests/data/lavf-fate/lavf.qtrle_mace6.mov CRC=0x40401364
diff --git a/tests/ref/lavf/ismv b/tests/ref/lavf/ismv
index 2666586dee..485779ee56 100644
--- a/tests/ref/lavf/ismv
+++ b/tests/ref/lavf/ismv
@@ -1,7 +1,7 @@
-9406f5cb00ba8d597280aae2d39f139d *tests/data/lavf/lavf.ismv
+35785e74a3557a4097aa9526b59d16b1 *tests/data/lavf/lavf.ismv
 313169 tests/data/lavf/lavf.ismv
 tests/data/lavf/lavf.ismv CRC=0x9d9a638a
-07e08e1bbf36721fc51f0c0c08fe348f *tests/data/lavf/lavf.ismv
+beb816fb646bf2aeee9db303f39e8bb2 *tests/data/lavf/lavf.ismv
 322247 tests/data/lavf/lavf.ismv
 tests/data/lavf/lavf.ismv CRC=0xc5569484
 f94af95e58474b91930358ab811f7a43 *tests/data/lavf/lavf.ismv
diff --git a/tests/ref/lavf/mov b/tests/ref/lavf/mov
index c7f5207443..333d7c3b47 100644
--- a/tests/ref/lavf/mov
+++ b/tests/ref/lavf/mov
@@ -1,9 +1,9 @@
-8db9a9066a7a34ae26d4294ddddc258a *tests/data/lavf/lavf.mov
+90188c29b31d03b1214ccc8ec145ff00 *tests/data/lavf/lavf.mov
 357371 tests/data/lavf/lavf.mov
 tests/data/lavf/lavf.mov CRC=0xbb2b949b
-e3443e2f1be75ff45cfdf148f7064c2b *tests/data/lavf/lavf.mov
+dc677712a3633f6cf7e478392f47b957 *tests/data/lavf/lavf.mov
 366405 tests/data/lavf/lavf.mov
 tests/data/lavf/lavf.mov CRC=0xc75fc595
-5678dddf2a309f491d5e616323fbef8c *tests/data/lavf/lavf.mov
+b8c2cd5b1cb54a330ffd7900241ed873 *tests/data/lavf/lavf.mov
 356753 tests/data/lavf/lavf.mov
 tests/data/lavf/lavf.mov CRC=0xbb2b949b
diff --git a/tests/ref/lavf/mov_hybrid_frag b/tests/ref/lavf/mov_hybrid_frag
index 92a0fcdab4..32f76a8f01 100644
--- a/tests/ref/lavf/mov_hybrid_frag
+++ b/tests/ref/lavf/mov_hybrid_frag
@@ -1,3 +1,3 @@
-3bfb8ec4b379eb65003ec3b0c8b5a6c1 *tests/data/lavf/lavf.mov_hybrid_frag
+7509550087b17e36e6521e6062a00600 *tests/data/lavf/lavf.mov_hybrid_frag
 358464 tests/data/lavf/lavf.mov_hybrid_frag
 tests/data/lavf/lavf.mov_hybrid_frag CRC=0xbb2b949b
diff --git a/tests/ref/lavf/mov_rtphint b/tests/ref/lavf/mov_rtphint
index a2d18d5d70..34988ec528 100644
--- a/tests/ref/lavf/mov_rtphint
+++ b/tests/ref/lavf/mov_rtphint
@@ -1,3 +1,3 @@
-c9242a7a0f894d76272fc4b97f346f51 *tests/data/lavf/lavf.mov_rtphint
+468e132e07113c4dd12ba76c999d9f51 *tests/data/lavf/lavf.mov_rtphint
 365761 tests/data/lavf/lavf.mov_rtphint
 tests/data/lavf/lavf.mov_rtphint CRC=0xbb2b949b
diff --git a/tests/ref/lavf/mp4 b/tests/ref/lavf/mp4
index 4aabe0cb98..eca95a95e7 100644
--- a/tests/ref/lavf/mp4
+++ b/tests/ref/lavf/mp4
@@ -1,7 +1,7 @@
-2acb94de00541d0485fe505f2eb3ee67 *tests/data/lavf/lavf.mp4
+737daf521f30325bda250b68955808d2 *tests/data/lavf/lavf.mp4
 312477 tests/data/lavf/lavf.mp4
 tests/data/lavf/lavf.mp4 CRC=0x9d9a638a
-5f345ab8c0054bd467cd161ed5d0ee50 *tests/data/lavf/lavf.mp4
+47ac0ca952a751207e648fd03627641f *tests/data/lavf/lavf.mp4
 321535 tests/data/lavf/lavf.mp4
 tests/data/lavf/lavf.mp4 CRC=0xc5569484
 6fb400011aa03f374223646644d0201a *tests/data/lavf/lavf.mp4
diff --git a/tests/ref/vsynth/vsynth1-avui b/tests/ref/vsynth/vsynth1-avui
index 937a9a8f73..3b7a3822f8 100644
--- a/tests/ref/vsynth/vsynth1-avui
+++ b/tests/ref/vsynth/vsynth1-avui
@@ -1,4 +1,4 @@
-e632d7185b30ee08f9264fae3ee1e9e1 *tests/data/fate/vsynth1-avui.mov
+c2b702cd7c634838f7380f7b223ba943 *tests/data/fate/vsynth1-avui.mov
 42625037 tests/data/fate/vsynth1-avui.mov
 c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-avui.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-dnxhd-1080i b/tests/ref/vsynth/vsynth1-dnxhd-1080i
index 8716fd0ecb..d93b84a77a 100644
--- a/tests/ref/vsynth/vsynth1-dnxhd-1080i
+++ b/tests/ref/vsynth/vsynth1-dnxhd-1080i
@@ -1,4 +1,4 @@
-fb6ca0ffe259bcc68810a2069eabd09f *tests/data/fate/vsynth1-dnxhd-1080i.mov
+efef61ced36d9bc8c98b63303607a04b *tests/data/fate/vsynth1-dnxhd-1080i.mov
 3031911 tests/data/fate/vsynth1-dnxhd-1080i.mov
 fed9ed2a5179c9df0ef58772b025e303 *tests/data/fate/vsynth1-dnxhd-1080i.out.rawvideo
 stddev:    6.18 PSNR: 32.31 MAXDIFF:   64 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-dnxhd-1080i-10bit b/tests/ref/vsynth/vsynth1-dnxhd-1080i-10bit
index 7ef653de3a..1523d8fce7 100644
--- a/tests/ref/vsynth/vsynth1-dnxhd-1080i-10bit
+++ b/tests/ref/vsynth/vsynth1-dnxhd-1080i-10bit
@@ -1,4 +1,4 @@
-18aa5e567df7222d752001cdf8db7941 *tests/data/fate/vsynth1-dnxhd-1080i-10bit.mov
+14b01de3548ebfdd52d6c62c9cdea9a2 *tests/data/fate/vsynth1-dnxhd-1080i-10bit.mov
 4588391 tests/data/fate/vsynth1-dnxhd-1080i-10bit.mov
 31032fcb7e6af79daaac02288254c6d6 *tests/data/fate/vsynth1-dnxhd-1080i-10bit.out.rawvideo
 stddev:    5.69 PSNR: 33.02 MAXDIFF:   55 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-dnxhd-1080i-colr b/tests/ref/vsynth/vsynth1-dnxhd-1080i-colr
index 02d636218f..6071bd9500 100644
--- a/tests/ref/vsynth/vsynth1-dnxhd-1080i-colr
+++ b/tests/ref/vsynth/vsynth1-dnxhd-1080i-colr
@@ -1,4 +1,4 @@
-a077f41bb715c94ae5b309fa8a18f4e2 *tests/data/fate/vsynth1-dnxhd-1080i-colr.mov
+7838dd7ef9b3ad7c529eef338816d8a7 *tests/data/fate/vsynth1-dnxhd-1080i-colr.mov
 3031929 tests/data/fate/vsynth1-dnxhd-1080i-colr.mov
 6f2d5429ffc4529a76acfeb28b560542 *tests/data/fate/vsynth1-dnxhd-1080i-colr.out.rawvideo
 stddev:    5.65 PSNR: 33.09 MAXDIFF:   55 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-dnxhd-hr-hq-mov b/tests/ref/vsynth/vsynth1-dnxhd-hr-hq-mov
index eca1fde08b..3248cc084a 100644
--- a/tests/ref/vsynth/vsynth1-dnxhd-hr-hq-mov
+++ b/tests/ref/vsynth/vsynth1-dnxhd-hr-hq-mov
@@ -1,4 +1,4 @@
-dd81c0db11f0401fb4cedd964447a638 *tests/data/fate/vsynth1-dnxhd-hr-hq-mov.mov
+8155622c8b72061b2dc24ba3817d5086 *tests/data/fate/vsynth1-dnxhd-hr-hq-mov.mov
 4772599 tests/data/fate/vsynth1-dnxhd-hr-hq-mov.mov
 388c7c84573abe28cc963e3ad5e15a31 *tests/data/fate/vsynth1-dnxhd-hr-hq-mov.out.rawvideo
 stddev:    5.73 PSNR: 32.96 MAXDIFF:   56 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-dnxhd-hr-lb-mov b/tests/ref/vsynth/vsynth1-dnxhd-hr-lb-mov
index 92a944c32f..56b700a5f7 100644
--- a/tests/ref/vsynth/vsynth1-dnxhd-hr-lb-mov
+++ b/tests/ref/vsynth/vsynth1-dnxhd-hr-lb-mov
@@ -1,4 +1,4 @@
-3abbaba9b018047c40dc06d7b8292866 *tests/data/fate/vsynth1-dnxhd-hr-lb-mov.mov
+c720f28b3ec83e8ae66557d1c6165772 *tests/data/fate/vsynth1-dnxhd-hr-lb-mov.mov
 3748599 tests/data/fate/vsynth1-dnxhd-hr-lb-mov.mov
 21c68252f500bada13ccce232e1ecfca *tests/data/fate/vsynth1-dnxhd-hr-lb-mov.out.rawvideo
 stddev:    5.59 PSNR: 33.17 MAXDIFF:   55 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-dnxhd-hr-sq-mov b/tests/ref/vsynth/vsynth1-dnxhd-hr-sq-mov
index de8b51017a..3c7a68d62d 100644
--- a/tests/ref/vsynth/vsynth1-dnxhd-hr-sq-mov
+++ b/tests/ref/vsynth/vsynth1-dnxhd-hr-sq-mov
@@ -1,4 +1,4 @@
-2be8b4f144ccb4689aebf18595e41197 *tests/data/fate/vsynth1-dnxhd-hr-sq-mov.mov
+7782f34a146096ee9931d2b31f8094f3 *tests/data/fate/vsynth1-dnxhd-hr-sq-mov.mov
 2560763 tests/data/fate/vsynth1-dnxhd-hr-sq-mov.mov
 66d29f91cdf038753894dd42e65d997a *tests/data/fate/vsynth1-dnxhd-hr-sq-mov.out.rawvideo
 stddev:    5.77 PSNR: 32.91 MAXDIFF:   58 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-mov-bgr24 b/tests/ref/vsynth/vsynth1-mov-bgr24
index 149a08985c..7797501f6d 100644
--- a/tests/ref/vsynth/vsynth1-mov-bgr24
+++ b/tests/ref/vsynth/vsynth1-mov-bgr24
@@ -1,4 +1,4 @@
-de6950c556fd70efee6be2688233f3c7 *tests/data/fate/vsynth1-mov-bgr24.mov
+651f146da34254ee83fbb9ba69f72587 *tests/data/fate/vsynth1-mov-bgr24.mov
 15207169 tests/data/fate/vsynth1-mov-bgr24.mov
 93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mov-bgr24.out.rawvideo
 stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mov-bpp15 b/tests/ref/vsynth/vsynth1-mov-bpp15
index dfff82f788..9bb0bf05b7 100644
--- a/tests/ref/vsynth/vsynth1-mov-bpp15
+++ b/tests/ref/vsynth/vsynth1-mov-bpp15
@@ -1,4 +1,4 @@
-a072f846608799e728616e6c15427c18 *tests/data/fate/vsynth1-mov-bpp15.mov
+c2f98985e56a43b28a3f68eff42018ff *tests/data/fate/vsynth1-mov-bpp15.mov
 10138329 tests/data/fate/vsynth1-mov-bpp15.mov
 99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-mov-bpp15.out.rawvideo
 stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mov-bpp16 b/tests/ref/vsynth/vsynth1-mov-bpp16
index c1af4c62f5..a0998f4ddf 100644
--- a/tests/ref/vsynth/vsynth1-mov-bpp16
+++ b/tests/ref/vsynth/vsynth1-mov-bpp16
@@ -1,4 +1,4 @@
-d7642439bdaa7095053d94c7bb256c3a *tests/data/fate/vsynth1-mov-bpp16.mov
+2eff4c60c5f6638b59cd6489ef0b4832 *tests/data/fate/vsynth1-mov-bpp16.mov
 10138329 tests/data/fate/vsynth1-mov-bpp16.mov
 0cea382b9b0a4ce88260c1edc20b3f5b *tests/data/fate/vsynth1-mov-bpp16.out.rawvideo
 stddev:    3.79 PSNR: 36.55 MAXDIFF:   46 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-prores b/tests/ref/vsynth/vsynth1-prores
index da24b261b3..73b48490c6 100644
--- a/tests/ref/vsynth/vsynth1-prores
+++ b/tests/ref/vsynth/vsynth1-prores
@@ -1,4 +1,4 @@
-5e34ab60ee11e976c83853f1a8c4e128 *tests/data/fate/vsynth1-prores.mov
+7d77a89ecd4a3e4949c18ddc243185db *tests/data/fate/vsynth1-prores.mov
 5022821 tests/data/fate/vsynth1-prores.mov
 fb4a9e025d12afc0dbbca8d82831858f *tests/data/fate/vsynth1-prores.out.rawvideo
 stddev:    2.47 PSNR: 40.27 MAXDIFF:   31 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-prores_444 b/tests/ref/vsynth/vsynth1-prores_444
index 55622a185c..d766ff4090 100644
--- a/tests/ref/vsynth/vsynth1-prores_444
+++ b/tests/ref/vsynth/vsynth1-prores_444
@@ -1,4 +1,4 @@
-b6d8ae3dc3393d0137c011270092d22d *tests/data/fate/vsynth1-prores_444.mov
+449a69124deee9a821cc2e845c146f46 *tests/data/fate/vsynth1-prores_444.mov
 7778954 tests/data/fate/vsynth1-prores_444.mov
 e0da52b5d58171294d1b299539801ae0 *tests/data/fate/vsynth1-prores_444.out.rawvideo
 stddev:    2.80 PSNR: 39.17 MAXDIFF:   44 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-prores_444_int b/tests/ref/vsynth/vsynth1-prores_444_int
index d78f621580..edcd1e3cae 100644
--- a/tests/ref/vsynth/vsynth1-prores_444_int
+++ b/tests/ref/vsynth/vsynth1-prores_444_int
@@ -1,4 +1,4 @@
-6d25d0ead0294408d3fb7b90015a053b *tests/data/fate/vsynth1-prores_444_int.mov
+1ed64e77c0c7fbf55efe3eec35c1dbf3 *tests/data/fate/vsynth1-prores_444_int.mov
 9940947 tests/data/fate/vsynth1-prores_444_int.mov
 732ceeb6887524e0aee98762fe50578b *tests/data/fate/vsynth1-prores_444_int.out.rawvideo
 stddev:    2.83 PSNR: 39.08 MAXDIFF:   45 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-prores_int b/tests/ref/vsynth/vsynth1-prores_int
index ca970378d3..83df22c82b 100644
--- a/tests/ref/vsynth/vsynth1-prores_int
+++ b/tests/ref/vsynth/vsynth1-prores_int
@@ -1,4 +1,4 @@
-7bdacdfe9506a0d1cfdee2fdfcf82522 *tests/data/fate/vsynth1-prores_int.mov
+1a137baaf89e2852b2814cabcecbc831 *tests/data/fate/vsynth1-prores_int.mov
 6308688 tests/data/fate/vsynth1-prores_int.mov
 164a4ca890695cf594293d1acec9463c *tests/data/fate/vsynth1-prores_int.out.rawvideo
 stddev:    2.66 PSNR: 39.62 MAXDIFF:   34 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-prores_ks b/tests/ref/vsynth/vsynth1-prores_ks
index 71cd1c1d0b..a0c8833be5 100644
--- a/tests/ref/vsynth/vsynth1-prores_ks
+++ b/tests/ref/vsynth/vsynth1-prores_ks
@@ -1,4 +1,4 @@
-3b281342e9a91c5956364156fa929b4e *tests/data/fate/vsynth1-prores_ks.mov
+9dafd9ae6ffb7fa495ed36dface1251a *tests/data/fate/vsynth1-prores_ks.mov
 3858911 tests/data/fate/vsynth1-prores_ks.mov
 100eb002413fe7a632d440dfbdf7e3ff *tests/data/fate/vsynth1-prores_ks.out.rawvideo
 stddev:    3.17 PSNR: 38.09 MAXDIFF:   39 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-qtrle b/tests/ref/vsynth/vsynth1-qtrle
index 047947175c..0a7512c9e0 100644
--- a/tests/ref/vsynth/vsynth1-qtrle
+++ b/tests/ref/vsynth/vsynth1-qtrle
@@ -1,4 +1,4 @@
-cecee8dfa30ca362b75d0133ba21475d *tests/data/fate/vsynth1-qtrle.mov
+4ab946b52b3d99a70a03fd4b355d03f6 *tests/data/fate/vsynth1-qtrle.mov
 15263158 tests/data/fate/vsynth1-qtrle.mov
 93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-qtrle.out.rawvideo
 stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-qtrlegray b/tests/ref/vsynth/vsynth1-qtrlegray
index 608d61c569..85408d30b0 100644
--- a/tests/ref/vsynth/vsynth1-qtrlegray
+++ b/tests/ref/vsynth/vsynth1-qtrlegray
@@ -1,4 +1,4 @@
-abcc3d0f7fb82c9ff47785266fbc03fe *tests/data/fate/vsynth1-qtrlegray.mov
+89671bfd5e7a73f9b6b9e7abcf56d8e1 *tests/data/fate/vsynth1-qtrlegray.mov
 5113293 tests/data/fate/vsynth1-qtrlegray.mov
 cb20af0e5a65aad7cf47002fcb52288e *tests/data/fate/vsynth1-qtrlegray.out.rawvideo
 stddev:   25.34 PSNR: 20.05 MAXDIFF:  122 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-rpza b/tests/ref/vsynth/vsynth1-rpza
index e2a1f467b9..a13c5f6aa8 100644
--- a/tests/ref/vsynth/vsynth1-rpza
+++ b/tests/ref/vsynth/vsynth1-rpza
@@ -1,4 +1,4 @@
-478556ff2336f399900f55462eb342cd *tests/data/fate/vsynth1-rpza.mov
+46d4c575d3fad510d85df3914741a3e9 *tests/data/fate/vsynth1-rpza.mov
 10138529 tests/data/fate/vsynth1-rpza.mov
 99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-rpza.out.rawvideo
 stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-smc b/tests/ref/vsynth/vsynth1-smc
index 60722bbad1..fd5e9311b1 100644
--- a/tests/ref/vsynth/vsynth1-smc
+++ b/tests/ref/vsynth/vsynth1-smc
@@ -1,4 +1,4 @@
-ac0a76b533d6f060a8b3d308da03d4f7 *tests/data/fate/vsynth1-smc.mov
+c74209f1b010b45715f953fccc61e15c *tests/data/fate/vsynth1-smc.mov
 4613320 tests/data/fate/vsynth1-smc.mov
 f142ee03bf9f37bb2e1902fe32366bbf *tests/data/fate/vsynth1-smc.out.rawvideo
 stddev:    8.69 PSNR: 29.34 MAXDIFF:   64 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-svq1 b/tests/ref/vsynth/vsynth1-svq1
index 4d263c2cd1..298b3742b0 100644
--- a/tests/ref/vsynth/vsynth1-svq1
+++ b/tests/ref/vsynth/vsynth1-svq1
@@ -1,4 +1,4 @@
-40a3eaa6c22cb0196601dfc45d6b1f44 *tests/data/fate/vsynth1-svq1.mov
+941f33463d817bf366ceaec899f65cef *tests/data/fate/vsynth1-svq1.mov
 1333561 tests/data/fate/vsynth1-svq1.mov
 0b9ee47ee4bf735fe3697daad64fc409 *tests/data/fate/vsynth1-svq1.out.rawvideo
 stddev:    9.57 PSNR: 28.50 MAXDIFF:  210 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-v410 b/tests/ref/vsynth/vsynth1-v410
index 06d850dbc3..179c49adb0 100644
--- a/tests/ref/vsynth/vsynth1-v410
+++ b/tests/ref/vsynth/vsynth1-v410
@@ -1,4 +1,4 @@
-77bff3a3122cd74c0ab87e8fccddd8a9 *tests/data/fate/vsynth1-v410.mov
+501ac004bbaba3854fc135e6e27e3c7f *tests/data/fate/vsynth1-v410.mov
 20276029 tests/data/fate/vsynth1-v410.mov
 c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-v410.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-vc2-420p b/tests/ref/vsynth/vsynth1-vc2-420p
index 51c6191a55..d2c8893c4e 100644
--- a/tests/ref/vsynth/vsynth1-vc2-420p
+++ b/tests/ref/vsynth/vsynth1-vc2-420p
@@ -1,4 +1,4 @@
-0422e735b3bc5d0709a4b4e35d09c668 *tests/data/fate/vsynth1-vc2-420p.mov
+b5b54ed56f6e5bea52b16bbcd29cdffa *tests/data/fate/vsynth1-vc2-420p.mov
 1155415 tests/data/fate/vsynth1-vc2-420p.mov
 387696707c79cf1a6c9aeff4024226b9 *tests/data/fate/vsynth1-vc2-420p.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-420p10 b/tests/ref/vsynth/vsynth1-vc2-420p10
index 504cd9a115..f6c9ef7636 100644
--- a/tests/ref/vsynth/vsynth1-vc2-420p10
+++ b/tests/ref/vsynth/vsynth1-vc2-420p10
@@ -1,4 +1,4 @@
-5c9c2e29b06d65129ec7b20b740f7ee6 *tests/data/fate/vsynth1-vc2-420p10.mov
+d6deb0c0b2c89d8e4033157d91acbb97 *tests/data/fate/vsynth1-vc2-420p10.mov
 1417047 tests/data/fate/vsynth1-vc2-420p10.mov
 387696707c79cf1a6c9aeff4024226b9 *tests/data/fate/vsynth1-vc2-420p10.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-420p12 b/tests/ref/vsynth/vsynth1-vc2-420p12
index cf1f1bb79c..71a5fcaae9 100644
--- a/tests/ref/vsynth/vsynth1-vc2-420p12
+++ b/tests/ref/vsynth/vsynth1-vc2-420p12
@@ -1,4 +1,4 @@
-b4daf36c993fb9faba7048f9907feaf2 *tests/data/fate/vsynth1-vc2-420p12.mov
+86ccf5eaf01af2bcfea1f48b8a147608 *tests/data/fate/vsynth1-vc2-420p12.mov
 1746007 tests/data/fate/vsynth1-vc2-420p12.mov
 387696707c79cf1a6c9aeff4024226b9 *tests/data/fate/vsynth1-vc2-420p12.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-422p b/tests/ref/vsynth/vsynth1-vc2-422p
index 4e3b5d8015..0b83029fb8 100644
--- a/tests/ref/vsynth/vsynth1-vc2-422p
+++ b/tests/ref/vsynth/vsynth1-vc2-422p
@@ -1,4 +1,4 @@
-22d6ccf11c0683376222bcc7cbc0140e *tests/data/fate/vsynth1-vc2-422p.mov
+f820110b1f4ab7472450cc5c1d06de92 *tests/data/fate/vsynth1-vc2-422p.mov
 1229783 tests/data/fate/vsynth1-vc2-422p.mov
 57a7f41235e7f9f094aa7ba5bdc82f02 *tests/data/fate/vsynth1-vc2-422p.out.rawvideo
 stddev:    1.89 PSNR: 42.58 MAXDIFF:   23 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-422p10 b/tests/ref/vsynth/vsynth1-vc2-422p10
index 9626319ff1..f768e9efc3 100644
--- a/tests/ref/vsynth/vsynth1-vc2-422p10
+++ b/tests/ref/vsynth/vsynth1-vc2-422p10
@@ -1,4 +1,4 @@
-55d3923df58f38ff240c2cadf45fba5e *tests/data/fate/vsynth1-vc2-422p10.mov
+1b495c86f950aa25563c106e5cc62438 *tests/data/fate/vsynth1-vc2-422p10.mov
 1684055 tests/data/fate/vsynth1-vc2-422p10.mov
 f35dd1c1df4726bb1d75d95e321b0698 *tests/data/fate/vsynth1-vc2-422p10.out.rawvideo
 stddev:    1.88 PSNR: 42.61 MAXDIFF:   23 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-422p12 b/tests/ref/vsynth/vsynth1-vc2-422p12
index 22c33641b6..0a70da7712 100644
--- a/tests/ref/vsynth/vsynth1-vc2-422p12
+++ b/tests/ref/vsynth/vsynth1-vc2-422p12
@@ -1,4 +1,4 @@
-7d3d3d403eb7eba001e35230dd12fac2 *tests/data/fate/vsynth1-vc2-422p12.mov
+ee348eec30a97dff878b3042b98cfd01 *tests/data/fate/vsynth1-vc2-422p12.mov
 2135131 tests/data/fate/vsynth1-vc2-422p12.mov
 1b56b3d127320c0e6c643e3430b7ffd1 *tests/data/fate/vsynth1-vc2-422p12.out.rawvideo
 stddev:    1.88 PSNR: 42.62 MAXDIFF:   23 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-444p b/tests/ref/vsynth/vsynth1-vc2-444p
index c30833620e..c7a4a99fe1 100644
--- a/tests/ref/vsynth/vsynth1-vc2-444p
+++ b/tests/ref/vsynth/vsynth1-vc2-444p
@@ -1,4 +1,4 @@
-70aae3634c466d98321c9b97ce065a71 *tests/data/fate/vsynth1-vc2-444p.mov
+2a4b334867ece82716eeeb0ad65ecee3 *tests/data/fate/vsynth1-vc2-444p.mov
 1593810 tests/data/fate/vsynth1-vc2-444p.mov
 791cf0f21558ad4a4cad43da05628e06 *tests/data/fate/vsynth1-vc2-444p.out.rawvideo
 stddev:    2.69 PSNR: 39.51 MAXDIFF:   37 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-444p10 b/tests/ref/vsynth/vsynth1-vc2-444p10
index ea7a7262d2..08ac33c1b6 100644
--- a/tests/ref/vsynth/vsynth1-vc2-444p10
+++ b/tests/ref/vsynth/vsynth1-vc2-444p10
@@ -1,4 +1,4 @@
-de09a29f57cc71296752a1f78084fefd *tests/data/fate/vsynth1-vc2-444p10.mov
+0e3de2cb990f0aa1eb6dc90c2f97dfcc *tests/data/fate/vsynth1-vc2-444p10.mov
 2167643 tests/data/fate/vsynth1-vc2-444p10.mov
 0e2cd6d0e1d68ffee64d269dcb57d66d *tests/data/fate/vsynth1-vc2-444p10.out.rawvideo
 stddev:    2.69 PSNR: 39.53 MAXDIFF:   37 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-444p12 b/tests/ref/vsynth/vsynth1-vc2-444p12
index a6ac8183e9..42a6d0e8fe 100644
--- a/tests/ref/vsynth/vsynth1-vc2-444p12
+++ b/tests/ref/vsynth/vsynth1-vc2-444p12
@@ -1,4 +1,4 @@
-8281a021f449621b453da80a22e56097 *tests/data/fate/vsynth1-vc2-444p12.mov
+d0d02485763557c50f74df4615d1341c *tests/data/fate/vsynth1-vc2-444p12.mov
 2755159 tests/data/fate/vsynth1-vc2-444p12.mov
 55998114d7386d219a49011c8b804a58 *tests/data/fate/vsynth1-vc2-444p12.out.rawvideo
 stddev:    2.69 PSNR: 39.53 MAXDIFF:   37 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-t5_3 b/tests/ref/vsynth/vsynth1-vc2-t5_3
index 5104fc396f..bca6bb013d 100644
--- a/tests/ref/vsynth/vsynth1-vc2-t5_3
+++ b/tests/ref/vsynth/vsynth1-vc2-t5_3
@@ -1,4 +1,4 @@
-a90ed3e7087ff8e3724e69a4f1d14c3a *tests/data/fate/vsynth1-vc2-t5_3.mov
+dd541e2b562d13abadc86ec0af4d6c77 *tests/data/fate/vsynth1-vc2-t5_3.mov
 1604316 tests/data/fate/vsynth1-vc2-t5_3.mov
 f35dd1c1df4726bb1d75d95e321b0698 *tests/data/fate/vsynth1-vc2-t5_3.out.rawvideo
 stddev:    1.88 PSNR: 42.61 MAXDIFF:   23 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth1-vc2-thaar b/tests/ref/vsynth/vsynth1-vc2-thaar
index 08294c01d7..9c94549bfa 100644
--- a/tests/ref/vsynth/vsynth1-vc2-thaar
+++ b/tests/ref/vsynth/vsynth1-vc2-thaar
@@ -1,4 +1,4 @@
-38ca8608c72272a4252e8b8950ebf417 *tests/data/fate/vsynth1-vc2-thaar.mov
+bf6f8ef1803ce67be40d1d3323f133cc *tests/data/fate/vsynth1-vc2-thaar.mov
 1717724 tests/data/fate/vsynth1-vc2-thaar.mov
 f35dd1c1df4726bb1d75d95e321b0698 *tests/data/fate/vsynth1-vc2-thaar.out.rawvideo
 stddev:    1.88 PSNR: 42.61 MAXDIFF:   23 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-avui b/tests/ref/vsynth/vsynth2-avui
index e154979b89..c77f4e5004 100644
--- a/tests/ref/vsynth/vsynth2-avui
+++ b/tests/ref/vsynth/vsynth2-avui
@@ -1,4 +1,4 @@
-00096acdcf487b87b1fd472474cf5729 *tests/data/fate/vsynth2-avui.mov
+cb27543cec34305d293848a1988e7f58 *tests/data/fate/vsynth2-avui.mov
 42625037 tests/data/fate/vsynth2-avui.mov
 36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-avui.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-dnxhd-1080i b/tests/ref/vsynth/vsynth2-dnxhd-1080i
index c945600765..5cc12a9fad 100644
--- a/tests/ref/vsynth/vsynth2-dnxhd-1080i
+++ b/tests/ref/vsynth/vsynth2-dnxhd-1080i
@@ -1,4 +1,4 @@
-5b104262a81492abdfcae575521c00ad *tests/data/fate/vsynth2-dnxhd-1080i.mov
+7066aae4f1fce177b07255aa71154076 *tests/data/fate/vsynth2-dnxhd-1080i.mov
 3031911 tests/data/fate/vsynth2-dnxhd-1080i.mov
 e941d2587cfeccddc450da7f41f7f911 *tests/data/fate/vsynth2-dnxhd-1080i.out.rawvideo
 stddev:    1.50 PSNR: 44.56 MAXDIFF:   31 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-dnxhd-1080i-10bit b/tests/ref/vsynth/vsynth2-dnxhd-1080i-10bit
index f7c787dd86..6532da9ee7 100644
--- a/tests/ref/vsynth/vsynth2-dnxhd-1080i-10bit
+++ b/tests/ref/vsynth/vsynth2-dnxhd-1080i-10bit
@@ -1,4 +1,4 @@
-88fa2418e0f0331cc047011551270991 *tests/data/fate/vsynth2-dnxhd-1080i-10bit.mov
+87c489d9f5464005078ab55f7290a983 *tests/data/fate/vsynth2-dnxhd-1080i-10bit.mov
 4588391 tests/data/fate/vsynth2-dnxhd-1080i-10bit.mov
 e4ca9be476869afb94962d945f90bdf6 *tests/data/fate/vsynth2-dnxhd-1080i-10bit.out.rawvideo
 stddev:    1.57 PSNR: 44.18 MAXDIFF:   33 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-dnxhd-1080i-colr b/tests/ref/vsynth/vsynth2-dnxhd-1080i-colr
index 0c4ff36b70..5379a352ef 100644
--- a/tests/ref/vsynth/vsynth2-dnxhd-1080i-colr
+++ b/tests/ref/vsynth/vsynth2-dnxhd-1080i-colr
@@ -1,4 +1,4 @@
-f5786c444b42c364ef2d246b37402889 *tests/data/fate/vsynth2-dnxhd-1080i-colr.mov
+565545fbd86251adfa2b9059418b6474 *tests/data/fate/vsynth2-dnxhd-1080i-colr.mov
 3031929 tests/data/fate/vsynth2-dnxhd-1080i-colr.mov
 ec40a8014b819d02951b2f06bee7b514 *tests/data/fate/vsynth2-dnxhd-1080i-colr.out.rawvideo
 stddev:    1.54 PSNR: 44.33 MAXDIFF:   33 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-dnxhd-hr-hq-mov b/tests/ref/vsynth/vsynth2-dnxhd-hr-hq-mov
index 370cbd10a3..ef01eb78c8 100644
--- a/tests/ref/vsynth/vsynth2-dnxhd-hr-hq-mov
+++ b/tests/ref/vsynth/vsynth2-dnxhd-hr-hq-mov
@@ -1,4 +1,4 @@
-5cd63c69620f0b8e93b12f5394ff4b64 *tests/data/fate/vsynth2-dnxhd-hr-hq-mov.mov
+b43ed9fd33f4972fd23d3ea7dcd70e76 *tests/data/fate/vsynth2-dnxhd-hr-hq-mov.mov
 4772599 tests/data/fate/vsynth2-dnxhd-hr-hq-mov.mov
 9c087836b5e07bddb96533d27939219f *tests/data/fate/vsynth2-dnxhd-hr-hq-mov.out.rawvideo
 stddev:    1.56 PSNR: 44.25 MAXDIFF:   33 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-dnxhd-hr-lb-mov b/tests/ref/vsynth/vsynth2-dnxhd-hr-lb-mov
index 6f46991d28..1fdf4d3969 100644
--- a/tests/ref/vsynth/vsynth2-dnxhd-hr-lb-mov
+++ b/tests/ref/vsynth/vsynth2-dnxhd-hr-lb-mov
@@ -1,4 +1,4 @@
-6e1b019548154326e891e90fe9d38617 *tests/data/fate/vsynth2-dnxhd-hr-lb-mov.mov
+0dcca3f06a61d2eb5de0f43146bdb190 *tests/data/fate/vsynth2-dnxhd-hr-lb-mov.mov
 3748599 tests/data/fate/vsynth2-dnxhd-hr-lb-mov.mov
 6d4cdd8822ead300690af9ce52db037c *tests/data/fate/vsynth2-dnxhd-hr-lb-mov.out.rawvideo
 stddev:    1.52 PSNR: 44.49 MAXDIFF:   33 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-dnxhd-hr-sq-mov b/tests/ref/vsynth/vsynth2-dnxhd-hr-sq-mov
index 94c374492b..f43e7d2be7 100644
--- a/tests/ref/vsynth/vsynth2-dnxhd-hr-sq-mov
+++ b/tests/ref/vsynth/vsynth2-dnxhd-hr-sq-mov
@@ -1,4 +1,4 @@
-8eba7e044841814ea34d61816c8f37a2 *tests/data/fate/vsynth2-dnxhd-hr-sq-mov.mov
+65c98404d81eb255d01f38c1f85b47d6 *tests/data/fate/vsynth2-dnxhd-hr-sq-mov.mov
 2560763 tests/data/fate/vsynth2-dnxhd-hr-sq-mov.mov
 ba86d472b3f160e2f1d00cf569231e3f *tests/data/fate/vsynth2-dnxhd-hr-sq-mov.out.rawvideo
 stddev:    1.58 PSNR: 44.13 MAXDIFF:   35 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-mov-bgr24 b/tests/ref/vsynth/vsynth2-mov-bgr24
index bca5149dad..e1bc6ed5b7 100644
--- a/tests/ref/vsynth/vsynth2-mov-bgr24
+++ b/tests/ref/vsynth/vsynth2-mov-bgr24
@@ -1,4 +1,4 @@
-eedcdb06fbcc70705c2956066a77ab55 *tests/data/fate/vsynth2-mov-bgr24.mov
+56a5a2c51d16c97d082d0d0b716beaca *tests/data/fate/vsynth2-mov-bgr24.mov
 15207169 tests/data/fate/vsynth2-mov-bgr24.mov
 32fae3e665407bb4317b3f90fedb903c *tests/data/fate/vsynth2-mov-bgr24.out.rawvideo
 stddev:    1.54 PSNR: 44.37 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mov-bpp15 b/tests/ref/vsynth/vsynth2-mov-bpp15
index e74ca13bcd..0a180e600d 100644
--- a/tests/ref/vsynth/vsynth2-mov-bpp15
+++ b/tests/ref/vsynth/vsynth2-mov-bpp15
@@ -1,4 +1,4 @@
-20f0613606a1e76bd7118e9096051d83 *tests/data/fate/vsynth2-mov-bpp15.mov
+af0d9687c3cf422d6066abb37f7d04ca *tests/data/fate/vsynth2-mov-bpp15.mov
 10138329 tests/data/fate/vsynth2-mov-bpp15.mov
 eb3f0c974ed17ede7cd3ce30ce417d8d *tests/data/fate/vsynth2-mov-bpp15.out.rawvideo
 stddev:    2.81 PSNR: 39.14 MAXDIFF:   19 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mov-bpp16 b/tests/ref/vsynth/vsynth2-mov-bpp16
index e417d4e04e..066484f718 100644
--- a/tests/ref/vsynth/vsynth2-mov-bpp16
+++ b/tests/ref/vsynth/vsynth2-mov-bpp16
@@ -1,4 +1,4 @@
-367957ed0ff05f285da26bcf8e28a9e1 *tests/data/fate/vsynth2-mov-bpp16.mov
+67df9ea87cc53a3bdc4df785da7234ac *tests/data/fate/vsynth2-mov-bpp16.mov
 10138329 tests/data/fate/vsynth2-mov-bpp16.mov
 7747ab837f0e832be2124120d4f7df1c *tests/data/fate/vsynth2-mov-bpp16.out.rawvideo
 stddev:    2.21 PSNR: 41.24 MAXDIFF:   18 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-prores b/tests/ref/vsynth/vsynth2-prores
index 2a5534f371..bb239b24a0 100644
--- a/tests/ref/vsynth/vsynth2-prores
+++ b/tests/ref/vsynth/vsynth2-prores
@@ -1,4 +1,4 @@
-d87d75a9d86fb83c56ea5043280294fc *tests/data/fate/vsynth2-prores.mov
+251d02431419743c131c1b148bad36c6 *tests/data/fate/vsynth2-prores.mov
 3260123 tests/data/fate/vsynth2-prores.mov
 416fa8773615889c70491452428d6710 *tests/data/fate/vsynth2-prores.out.rawvideo
 stddev:    1.38 PSNR: 45.29 MAXDIFF:   12 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-prores_444 b/tests/ref/vsynth/vsynth2-prores_444
index fab5c4f834..8380ff006e 100644
--- a/tests/ref/vsynth/vsynth2-prores_444
+++ b/tests/ref/vsynth/vsynth2-prores_444
@@ -1,4 +1,4 @@
-5e7253d0369a5190ae164856e9068e15 *tests/data/fate/vsynth2-prores_444.mov
+7290e781948a1c16dbd1daa3405ce2eb *tests/data/fate/vsynth2-prores_444.mov
 5219722 tests/data/fate/vsynth2-prores_444.mov
 e425b6af7afa51b5e64fc529528b3691 *tests/data/fate/vsynth2-prores_444.out.rawvideo
 stddev:    0.88 PSNR: 49.18 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-prores_444_int b/tests/ref/vsynth/vsynth2-prores_444_int
index e2ca2dd49b..04671d56f1 100644
--- a/tests/ref/vsynth/vsynth2-prores_444_int
+++ b/tests/ref/vsynth/vsynth2-prores_444_int
@@ -1,4 +1,4 @@
-2ffbaafc8fc7046d0aae8878cee46f84 *tests/data/fate/vsynth2-prores_444_int.mov
+be4248487c07a20f09e9b532a7c0c1ac *tests/data/fate/vsynth2-prores_444_int.mov
 6420787 tests/data/fate/vsynth2-prores_444_int.mov
 33a5db4f0423168d4ae4f1db3610928e *tests/data/fate/vsynth2-prores_444_int.out.rawvideo
 stddev:    0.93 PSNR: 48.73 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-prores_int b/tests/ref/vsynth/vsynth2-prores_int
index 3f842424cc..5b3351a3ea 100644
--- a/tests/ref/vsynth/vsynth2-prores_int
+++ b/tests/ref/vsynth/vsynth2-prores_int
@@ -1,4 +1,4 @@
-5747883ae680549afe59607960d4ea93 *tests/data/fate/vsynth2-prores_int.mov
+01cda9e0eb2352823902c17c6c4a714f *tests/data/fate/vsynth2-prores_int.mov
 4070996 tests/data/fate/vsynth2-prores_int.mov
 bef9e38387a1fbb1ce2e4401b6d41674 *tests/data/fate/vsynth2-prores_int.out.rawvideo
 stddev:    1.54 PSNR: 44.37 MAXDIFF:   13 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-prores_ks b/tests/ref/vsynth/vsynth2-prores_ks
index 7522654f9e..4860abffe8 100644
--- a/tests/ref/vsynth/vsynth2-prores_ks
+++ b/tests/ref/vsynth/vsynth2-prores_ks
@@ -1,4 +1,4 @@
-2cfe2b8eecfcb12ef05b1f2b0f3c37ac *tests/data/fate/vsynth2-prores_ks.mov
+99aa47a36c31d037d6f852b8c3a27028 *tests/data/fate/vsynth2-prores_ks.mov
 3868162 tests/data/fate/vsynth2-prores_ks.mov
 fe7ad707205c6100e9a3956d4e1c300e *tests/data/fate/vsynth2-prores_ks.out.rawvideo
 stddev:    1.17 PSNR: 46.72 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-qtrle b/tests/ref/vsynth/vsynth2-qtrle
index acb6a0f07d..2b4258412d 100644
--- a/tests/ref/vsynth/vsynth2-qtrle
+++ b/tests/ref/vsynth/vsynth2-qtrle
@@ -1,4 +1,4 @@
-5a942f6375cd70df65801dbf04b2268a *tests/data/fate/vsynth2-qtrle.mov
+865ff3719269b22a913aa5c4377d69d7 *tests/data/fate/vsynth2-qtrle.mov
 14035926 tests/data/fate/vsynth2-qtrle.mov
 32fae3e665407bb4317b3f90fedb903c *tests/data/fate/vsynth2-qtrle.out.rawvideo
 stddev:    1.54 PSNR: 44.37 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-qtrlegray b/tests/ref/vsynth/vsynth2-qtrlegray
index a75e029df8..8dd0cb7a65 100644
--- a/tests/ref/vsynth/vsynth2-qtrlegray
+++ b/tests/ref/vsynth/vsynth2-qtrlegray
@@ -1,4 +1,4 @@
-9fcff370cb34d8ed3da156a015e770b4 *tests/data/fate/vsynth2-qtrlegray.mov
+514c2f7bcd3ca2f4106b6f2df47eaa7e *tests/data/fate/vsynth2-qtrlegray.mov
 4988372 tests/data/fate/vsynth2-qtrlegray.mov
 510a92a21b552c51fcafab8188982f4d *tests/data/fate/vsynth2-qtrlegray.out.rawvideo
 stddev:   16.31 PSNR: 23.88 MAXDIFF:   89 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-rpza b/tests/ref/vsynth/vsynth2-rpza
index e414646e0c..2d96bf9d2c 100644
--- a/tests/ref/vsynth/vsynth2-rpza
+++ b/tests/ref/vsynth/vsynth2-rpza
@@ -1,4 +1,4 @@
-7c24d053751cee0f0fed0af7ab9c77b9 *tests/data/fate/vsynth2-rpza.mov
+00692c8ecc892c1241bc1419483fd2bb *tests/data/fate/vsynth2-rpza.mov
 8473292 tests/data/fate/vsynth2-rpza.mov
 0f3567cb28439a55a15f2b33275efeae *tests/data/fate/vsynth2-rpza.out.rawvideo
 stddev:    3.11 PSNR: 38.27 MAXDIFF:   19 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-smc b/tests/ref/vsynth/vsynth2-smc
index 4f6c61a05e..edec907458 100644
--- a/tests/ref/vsynth/vsynth2-smc
+++ b/tests/ref/vsynth/vsynth2-smc
@@ -1,4 +1,4 @@
-e4e09ca85ad5aa8210be8cb63019fb0d *tests/data/fate/vsynth2-smc.mov
+c1d19ef0d6de7e20008fe3d9645d707d *tests/data/fate/vsynth2-smc.mov
 3475261 tests/data/fate/vsynth2-smc.mov
 df26a524cad8ebf0cf5ba4376c5f115f *tests/data/fate/vsynth2-smc.out.rawvideo
 stddev:    7.57 PSNR: 30.54 MAXDIFF:   35 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-svq1 b/tests/ref/vsynth/vsynth2-svq1
index 6b145251c5..5bd866d8b1 100644
--- a/tests/ref/vsynth/vsynth2-svq1
+++ b/tests/ref/vsynth/vsynth2-svq1
@@ -1,4 +1,4 @@
-a113a290f1ec0611f9a03f08d88903d0 *tests/data/fate/vsynth2-svq1.mov
+c809fff664353a90eb27c323d9061853 *tests/data/fate/vsynth2-svq1.mov
 940357 tests/data/fate/vsynth2-svq1.mov
 ba8f6b721a8e19fe8a6ef92a8cff7479 *tests/data/fate/vsynth2-svq1.out.rawvideo
 stddev:    3.71 PSNR: 36.72 MAXDIFF:  210 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-v410 b/tests/ref/vsynth/vsynth2-v410
index a084ac6cd8..d490464b65 100644
--- a/tests/ref/vsynth/vsynth2-v410
+++ b/tests/ref/vsynth/vsynth2-v410
@@ -1,4 +1,4 @@
-be9f0f026478eb887d9a264d0d3e4ed9 *tests/data/fate/vsynth2-v410.mov
+bd1d548391b40c3575cf7c89a3019587 *tests/data/fate/vsynth2-v410.mov
 20276029 tests/data/fate/vsynth2-v410.mov
 36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-v410.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-vc2-420p b/tests/ref/vsynth/vsynth2-vc2-420p
index 522b2e6574..f022293b92 100644
--- a/tests/ref/vsynth/vsynth2-vc2-420p
+++ b/tests/ref/vsynth/vsynth2-vc2-420p
@@ -1,4 +1,4 @@
-b3a64ea70f3d226189cfb26e9f6857f7 *tests/data/fate/vsynth2-vc2-420p.mov
+bde82e4f26f153ca32180d7ac850baa2 *tests/data/fate/vsynth2-vc2-420p.mov
 860743 tests/data/fate/vsynth2-vc2-420p.mov
 01389f7ae4f2a3dc0d7b8384d435fd83 *tests/data/fate/vsynth2-vc2-420p.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-420p10 b/tests/ref/vsynth/vsynth2-vc2-420p10
index 61e3e29534..7c0d7edd12 100644
--- a/tests/ref/vsynth/vsynth2-vc2-420p10
+++ b/tests/ref/vsynth/vsynth2-vc2-420p10
@@ -1,4 +1,4 @@
-fadc29e5ee3cc98e6af3121659f8e9ae *tests/data/fate/vsynth2-vc2-420p10.mov
+7677f0ddacf062ce0e75311c34b112ab *tests/data/fate/vsynth2-vc2-420p10.mov
 1181271 tests/data/fate/vsynth2-vc2-420p10.mov
 01389f7ae4f2a3dc0d7b8384d435fd83 *tests/data/fate/vsynth2-vc2-420p10.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-420p12 b/tests/ref/vsynth/vsynth2-vc2-420p12
index cc7a78194e..c14fe40092 100644
--- a/tests/ref/vsynth/vsynth2-vc2-420p12
+++ b/tests/ref/vsynth/vsynth2-vc2-420p12
@@ -1,4 +1,4 @@
-7dacb2f5078c20901cf09e851a03b2bd *tests/data/fate/vsynth2-vc2-420p12.mov
+48be4bee1fa952b4338759e27eb5a736 *tests/data/fate/vsynth2-vc2-420p12.mov
 1525079 tests/data/fate/vsynth2-vc2-420p12.mov
 01389f7ae4f2a3dc0d7b8384d435fd83 *tests/data/fate/vsynth2-vc2-420p12.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-422p b/tests/ref/vsynth/vsynth2-vc2-422p
index 38b8021fa6..8e1a4bcbd0 100644
--- a/tests/ref/vsynth/vsynth2-vc2-422p
+++ b/tests/ref/vsynth/vsynth2-vc2-422p
@@ -1,4 +1,4 @@
-3d2d01727e701ceec3727839abfc966f *tests/data/fate/vsynth2-vc2-422p.mov
+b28d2d8dfff148f041feabcc0819e2ce *tests/data/fate/vsynth2-vc2-422p.mov
 1035207 tests/data/fate/vsynth2-vc2-422p.mov
 c14eb0038a5dba9382f42f750d46ed3c *tests/data/fate/vsynth2-vc2-422p.out.rawvideo
 stddev:    0.35 PSNR: 57.21 MAXDIFF:    7 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-422p10 b/tests/ref/vsynth/vsynth2-vc2-422p10
index 643ee48515..553c5c4b50 100644
--- a/tests/ref/vsynth/vsynth2-vc2-422p10
+++ b/tests/ref/vsynth/vsynth2-vc2-422p10
@@ -1,4 +1,4 @@
-a5a1a338d80bce6d639b4c2483d83518 *tests/data/fate/vsynth2-vc2-422p10.mov
+55ba5ac72b966a1b1d741bb02b289fd8 *tests/data/fate/vsynth2-vc2-422p10.mov
 1321687 tests/data/fate/vsynth2-vc2-422p10.mov
 8f629e5cea24cc804d6aeadceacf0b2a *tests/data/fate/vsynth2-vc2-422p10.out.rawvideo
 stddev:    0.37 PSNR: 56.66 MAXDIFF:    7 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-422p12 b/tests/ref/vsynth/vsynth2-vc2-422p12
index ea1e666e64..1fbbb04fdc 100644
--- a/tests/ref/vsynth/vsynth2-vc2-422p12
+++ b/tests/ref/vsynth/vsynth2-vc2-422p12
@@ -1,4 +1,4 @@
-e3687945663bbb47e859e1c07775909c *tests/data/fate/vsynth2-vc2-422p12.mov
+79b3884e402c4b9587344af90167e8a7 *tests/data/fate/vsynth2-vc2-422p12.mov
 1752535 tests/data/fate/vsynth2-vc2-422p12.mov
 7241b922e7c17d14701567db6c743a9e *tests/data/fate/vsynth2-vc2-422p12.out.rawvideo
 stddev:    0.37 PSNR: 56.73 MAXDIFF:    7 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-444p b/tests/ref/vsynth/vsynth2-vc2-444p
index 712acc9072..29050990a3 100644
--- a/tests/ref/vsynth/vsynth2-vc2-444p
+++ b/tests/ref/vsynth/vsynth2-vc2-444p
@@ -1,4 +1,4 @@
-6f744f7f983294103d41047bf0cb88e7 *tests/data/fate/vsynth2-vc2-444p.mov
+be97583b5233cbb21f0baab83e1a741a *tests/data/fate/vsynth2-vc2-444p.mov
 1202386 tests/data/fate/vsynth2-vc2-444p.mov
 6b35f3ddc3b52f4424237d4191a2461f *tests/data/fate/vsynth2-vc2-444p.out.rawvideo
 stddev:    0.44 PSNR: 55.07 MAXDIFF:   10 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-444p10 b/tests/ref/vsynth/vsynth2-vc2-444p10
index c9bfb937b9..0f219944da 100644
--- a/tests/ref/vsynth/vsynth2-vc2-444p10
+++ b/tests/ref/vsynth/vsynth2-vc2-444p10
@@ -1,4 +1,4 @@
-9d5d3103bbb68856664c28c52c5cbd7e *tests/data/fate/vsynth2-vc2-444p10.mov
+9e9683454755b313a876ee7c954c896e *tests/data/fate/vsynth2-vc2-444p10.mov
 1603927 tests/data/fate/vsynth2-vc2-444p10.mov
 d5c80ee1881a0306b0487e3c868529a3 *tests/data/fate/vsynth2-vc2-444p10.out.rawvideo
 stddev:    0.48 PSNR: 54.46 MAXDIFF:   10 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-444p12 b/tests/ref/vsynth/vsynth2-vc2-444p12
index 8f4ce6dbf4..cccba746d1 100644
--- a/tests/ref/vsynth/vsynth2-vc2-444p12
+++ b/tests/ref/vsynth/vsynth2-vc2-444p12
@@ -1,4 +1,4 @@
-5e5000f1ea84e58b1dc31de74d3be0d7 *tests/data/fate/vsynth2-vc2-444p12.mov
+7681743e307dbc8b3b1cce4c00e7c8ff *tests/data/fate/vsynth2-vc2-444p12.mov
 2145499 tests/data/fate/vsynth2-vc2-444p12.mov
 38836be5c12b951c9b280d15fe3b31ce *tests/data/fate/vsynth2-vc2-444p12.out.rawvideo
 stddev:    0.48 PSNR: 54.46 MAXDIFF:   10 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-t5_3 b/tests/ref/vsynth/vsynth2-vc2-t5_3
index a183979e01..91b4135d7d 100644
--- a/tests/ref/vsynth/vsynth2-vc2-t5_3
+++ b/tests/ref/vsynth/vsynth2-vc2-t5_3
@@ -1,4 +1,4 @@
-985369d4806cd59df4b31ef1f14b1ae1 *tests/data/fate/vsynth2-vc2-t5_3.mov
+4b07600335acb695389ee663dcb461e2 *tests/data/fate/vsynth2-vc2-t5_3.mov
 1335772 tests/data/fate/vsynth2-vc2-t5_3.mov
 8f629e5cea24cc804d6aeadceacf0b2a *tests/data/fate/vsynth2-vc2-t5_3.out.rawvideo
 stddev:    0.37 PSNR: 56.66 MAXDIFF:    7 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth2-vc2-thaar b/tests/ref/vsynth/vsynth2-vc2-thaar
index 01fc63e052..1de0723b0c 100644
--- a/tests/ref/vsynth/vsynth2-vc2-thaar
+++ b/tests/ref/vsynth/vsynth2-vc2-thaar
@@ -1,4 +1,4 @@
-b5e19ae55908c45886de2a395a91e448 *tests/data/fate/vsynth2-vc2-thaar.mov
+f399cec567c486c97b48d5f179482e02 *tests/data/fate/vsynth2-vc2-thaar.mov
 1470300 tests/data/fate/vsynth2-vc2-thaar.mov
 8f629e5cea24cc804d6aeadceacf0b2a *tests/data/fate/vsynth2-vc2-thaar.out.rawvideo
 stddev:    0.37 PSNR: 56.66 MAXDIFF:    7 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth3-dnxhd-1080i-10bit b/tests/ref/vsynth/vsynth3-dnxhd-1080i-10bit
index 791b4d72bb..92ffb51102 100644
--- a/tests/ref/vsynth/vsynth3-dnxhd-1080i-10bit
+++ b/tests/ref/vsynth/vsynth3-dnxhd-1080i-10bit
@@ -1,4 +1,4 @@
-543ef30a0c264ab88acaf81f344eacbd *tests/data/fate/vsynth3-dnxhd-1080i-10bit.mov
+7a69fc613dbdcd521fbe0ae2602878e8 *tests/data/fate/vsynth3-dnxhd-1080i-10bit.mov
 4588391 tests/data/fate/vsynth3-dnxhd-1080i-10bit.mov
 c192f36ef8687e56c72a3dc416c7e191 *tests/data/fate/vsynth3-dnxhd-1080i-10bit.out.rawvideo
 stddev:    6.92 PSNR: 31.32 MAXDIFF:   50 bytes:    86700/     8670
diff --git a/tests/ref/vsynth/vsynth3-dnxhd-1080i-colr b/tests/ref/vsynth/vsynth3-dnxhd-1080i-colr
index c79aa99396..b42aff871f 100644
--- a/tests/ref/vsynth/vsynth3-dnxhd-1080i-colr
+++ b/tests/ref/vsynth/vsynth3-dnxhd-1080i-colr
@@ -1,4 +1,4 @@
-4584a298d791c3b79b292b73ac20352b *tests/data/fate/vsynth3-dnxhd-1080i-colr.mov
+aae6ef2815448b013a1f07e669d21620 *tests/data/fate/vsynth3-dnxhd-1080i-colr.mov
 3031929 tests/data/fate/vsynth3-dnxhd-1080i-colr.mov
 f907fd2d48bedbc5283fbfc3fb9f61a0 *tests/data/fate/vsynth3-dnxhd-1080i-colr.out.rawvideo
 stddev:    6.92 PSNR: 31.32 MAXDIFF:   50 bytes:    86700/     8670
diff --git a/tests/ref/vsynth/vsynth3-dnxhd-hr-hq-mov b/tests/ref/vsynth/vsynth3-dnxhd-hr-hq-mov
index 52f03f621f..2986ed03b4 100644
--- a/tests/ref/vsynth/vsynth3-dnxhd-hr-hq-mov
+++ b/tests/ref/vsynth/vsynth3-dnxhd-hr-hq-mov
@@ -1,4 +1,4 @@
-d2e78f6642ba3d92a01dc46d3e63bcbf *tests/data/fate/vsynth3-dnxhd-hr-hq-mov.mov
+12af6a6ec822907c5e583238f2c11fee *tests/data/fate/vsynth3-dnxhd-hr-hq-mov.mov
 4772599 tests/data/fate/vsynth3-dnxhd-hr-hq-mov.mov
 aa2e6c13a1e7760a22fccfca9faacdf3 *tests/data/fate/vsynth3-dnxhd-hr-hq-mov.out.rawvideo
 stddev:    6.92 PSNR: 31.32 MAXDIFF:   50 bytes:    86700/     8670
diff --git a/tests/ref/vsynth/vsynth3-dnxhd-hr-lb-mov b/tests/ref/vsynth/vsynth3-dnxhd-hr-lb-mov
index 7f42df1c94..d6ee5752b9 100644
--- a/tests/ref/vsynth/vsynth3-dnxhd-hr-lb-mov
+++ b/tests/ref/vsynth/vsynth3-dnxhd-hr-lb-mov
@@ -1,4 +1,4 @@
-e0b8f5c7233ecb4a45c5ee9e1e0aa12c *tests/data/fate/vsynth3-dnxhd-hr-lb-mov.mov
+e5b59388f60aa70c0fd7d94fe1880bfe *tests/data/fate/vsynth3-dnxhd-hr-lb-mov.mov
 3748599 tests/data/fate/vsynth3-dnxhd-hr-lb-mov.mov
 1a4d12fd893e4585944dd9c68fb23edf *tests/data/fate/vsynth3-dnxhd-hr-lb-mov.out.rawvideo
 stddev:    6.92 PSNR: 31.32 MAXDIFF:   50 bytes:    86700/     8670
diff --git a/tests/ref/vsynth/vsynth3-dnxhd-hr-sq-mov b/tests/ref/vsynth/vsynth3-dnxhd-hr-sq-mov
index a408cbf5b9..d3f0a9bec1 100644
--- a/tests/ref/vsynth/vsynth3-dnxhd-hr-sq-mov
+++ b/tests/ref/vsynth/vsynth3-dnxhd-hr-sq-mov
@@ -1,4 +1,4 @@
-7f2faa5d288d56c2522408f849369939 *tests/data/fate/vsynth3-dnxhd-hr-sq-mov.mov
+27d2ed4c7b90ff04849ba92efbe0123e *tests/data/fate/vsynth3-dnxhd-hr-sq-mov.mov
 2560763 tests/data/fate/vsynth3-dnxhd-hr-sq-mov.mov
 730c00cc5a24e13ee99a75789806cb28 *tests/data/fate/vsynth3-dnxhd-hr-sq-mov.out.rawvideo
 stddev:    6.91 PSNR: 31.33 MAXDIFF:   50 bytes:    86700/     8670
diff --git a/tests/ref/vsynth/vsynth3-mov-bgr24 b/tests/ref/vsynth/vsynth3-mov-bgr24
index 6114a1b19b..d4aa53a98e 100644
--- a/tests/ref/vsynth/vsynth3-mov-bgr24
+++ b/tests/ref/vsynth/vsynth3-mov-bgr24
@@ -1,4 +1,4 @@
-8d5e6baadad708f87b840f1b29a056a0 *tests/data/fate/vsynth3-mov-bgr24.mov
+b8b4ecd82a2b10e2bb54313438b05ccf *tests/data/fate/vsynth3-mov-bgr24.mov
 174093 tests/data/fate/vsynth3-mov-bgr24.mov
 693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-mov-bgr24.out.rawvideo
 stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-mov-bpp15 b/tests/ref/vsynth/vsynth3-mov-bpp15
index 6334e51147..7b57b13cfb 100644
--- a/tests/ref/vsynth/vsynth3-mov-bpp15
+++ b/tests/ref/vsynth/vsynth3-mov-bpp15
@@ -1,4 +1,4 @@
-b563fdeb3915deaa04ef6cca76e1e425 *tests/data/fate/vsynth3-mov-bpp15.mov
+2762b0cc358b918a2ead79b903bca7dc *tests/data/fate/vsynth3-mov-bpp15.mov
 116293 tests/data/fate/vsynth3-mov-bpp15.mov
 19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-mov-bpp15.out.rawvideo
 stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-mov-bpp16 b/tests/ref/vsynth/vsynth3-mov-bpp16
index 209a9960fe..3ff11c4095 100644
--- a/tests/ref/vsynth/vsynth3-mov-bpp16
+++ b/tests/ref/vsynth/vsynth3-mov-bpp16
@@ -1,4 +1,4 @@
-363cef6488a8b2e3691e4c922e75c2be *tests/data/fate/vsynth3-mov-bpp16.mov
+6a3f9b5101128646a9995f88a8eef7e2 *tests/data/fate/vsynth3-mov-bpp16.mov
 116293 tests/data/fate/vsynth3-mov-bpp16.mov
 756f68dd5412d245d4bbeda7b5d51829 *tests/data/fate/vsynth3-mov-bpp16.out.rawvideo
 stddev:    4.07 PSNR: 35.93 MAXDIFF:   46 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-prores b/tests/ref/vsynth/vsynth3-prores
index 64ba73fc49..fcea4044b6 100644
--- a/tests/ref/vsynth/vsynth3-prores
+++ b/tests/ref/vsynth/vsynth3-prores
@@ -1,4 +1,4 @@
-917dc18fda038009adcf649ebdcd38c1 *tests/data/fate/vsynth3-prores.mov
+60963ef1cfdcedf1079da526375eeb3b *tests/data/fate/vsynth3-prores.mov
 105367 tests/data/fate/vsynth3-prores.mov
 fff5e7ad21d78501c8fa4749bf4bf289 *tests/data/fate/vsynth3-prores.out.rawvideo
 stddev:    2.80 PSNR: 39.17 MAXDIFF:   27 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-prores_444 b/tests/ref/vsynth/vsynth3-prores_444
index 5a21d1f140..29abe1c480 100644
--- a/tests/ref/vsynth/vsynth3-prores_444
+++ b/tests/ref/vsynth/vsynth3-prores_444
@@ -1,4 +1,4 @@
-fbbe9c25e316a413bb9ede4903e5536a *tests/data/fate/vsynth3-prores_444.mov
+66004c595d7f6aedd0daf73ea194edcc *tests/data/fate/vsynth3-prores_444.mov
 159127 tests/data/fate/vsynth3-prores_444.mov
 025b48feb3d9a9652983ef71e6cb7e7c *tests/data/fate/vsynth3-prores_444.out.rawvideo
 stddev:    3.21 PSNR: 37.98 MAXDIFF:   41 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-prores_444_int b/tests/ref/vsynth/vsynth3-prores_444_int
index 7455ab8774..a66adca935 100644
--- a/tests/ref/vsynth/vsynth3-prores_444_int
+++ b/tests/ref/vsynth/vsynth3-prores_444_int
@@ -1,4 +1,4 @@
-ce32a413d3a32dcc2cbe5290dece9f5a *tests/data/fate/vsynth3-prores_444_int.mov
+3cd356925875a7320ac994e199bc1474 *tests/data/fate/vsynth3-prores_444_int.mov
 184397 tests/data/fate/vsynth3-prores_444_int.mov
 a8852aa2841c2ce5f2aa86176ceda4ef *tests/data/fate/vsynth3-prores_444_int.out.rawvideo
 stddev:    3.24 PSNR: 37.91 MAXDIFF:   41 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-prores_int b/tests/ref/vsynth/vsynth3-prores_int
index 96e692140d..cf1f9471a4 100644
--- a/tests/ref/vsynth/vsynth3-prores_int
+++ b/tests/ref/vsynth/vsynth3-prores_int
@@ -1,4 +1,4 @@
-f1c83492b739516d2c28160d9261cb35 *tests/data/fate/vsynth3-prores_int.mov
+be319b66c5ea4011f2609f99f2a291cc *tests/data/fate/vsynth3-prores_int.mov
 120484 tests/data/fate/vsynth3-prores_int.mov
 e5859ba47a99f9e53c1ddcaa68a8f8f8 *tests/data/fate/vsynth3-prores_int.out.rawvideo
 stddev:    2.92 PSNR: 38.81 MAXDIFF:   29 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-prores_ks b/tests/ref/vsynth/vsynth3-prores_ks
index d9448b88a5..9213b6723f 100644
--- a/tests/ref/vsynth/vsynth3-prores_ks
+++ b/tests/ref/vsynth/vsynth3-prores_ks
@@ -1,4 +1,4 @@
-726e9b2c99a24e011c2cb16669fc1451 *tests/data/fate/vsynth3-prores_ks.mov
+be6e5b97ad501d36f33844918c88813f *tests/data/fate/vsynth3-prores_ks.mov
 95053 tests/data/fate/vsynth3-prores_ks.mov
 9ab6d3e3cc7749796cd9fa984c60d890 *tests/data/fate/vsynth3-prores_ks.out.rawvideo
 stddev:    4.09 PSNR: 35.88 MAXDIFF:   35 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-qtrle b/tests/ref/vsynth/vsynth3-qtrle
index 3bb8a0d15b..022f7c8614 100644
--- a/tests/ref/vsynth/vsynth3-qtrle
+++ b/tests/ref/vsynth/vsynth3-qtrle
@@ -1,4 +1,4 @@
-a36c8d6c9c00cf6f5b24b8a80746c70a *tests/data/fate/vsynth3-qtrle.mov
+9de3222616f29f9be5840fc50d571583 *tests/data/fate/vsynth3-qtrle.mov
 179656 tests/data/fate/vsynth3-qtrle.mov
 693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-qtrle.out.rawvideo
 stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-rpza b/tests/ref/vsynth/vsynth3-rpza
index 2d781de419..5038b960da 100644
--- a/tests/ref/vsynth/vsynth3-rpza
+++ b/tests/ref/vsynth/vsynth3-rpza
@@ -1,4 +1,4 @@
-339a6464483a7da17b3b5a2c45998393 *tests/data/fate/vsynth3-rpza.mov
+efbce050dd26351dfac077e130451fb8 *tests/data/fate/vsynth3-rpza.mov
 130493 tests/data/fate/vsynth3-rpza.mov
 19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-rpza.out.rawvideo
 stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-smc b/tests/ref/vsynth/vsynth3-smc
index 4ab4a95a12..9724cf3f0c 100644
--- a/tests/ref/vsynth/vsynth3-smc
+++ b/tests/ref/vsynth/vsynth3-smc
@@ -1,4 +1,4 @@
-4886f885489d533bdececd5ed7e2d9ce *tests/data/fate/vsynth3-smc.mov
+713215ef67b08e06842ee0f9f6b17256 *tests/data/fate/vsynth3-smc.mov
 65521 tests/data/fate/vsynth3-smc.mov
 fa6042492a3116c1ae9a32b487caa677 *tests/data/fate/vsynth3-smc.out.rawvideo
 stddev:    8.88 PSNR: 29.16 MAXDIFF:   51 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-svq1 b/tests/ref/vsynth/vsynth3-svq1
index 22e12b14b7..70eb9539e0 100644
--- a/tests/ref/vsynth/vsynth3-svq1
+++ b/tests/ref/vsynth/vsynth3-svq1
@@ -1,4 +1,4 @@
-c7dd348b1f5a16fef0a8de34d5750d92 *tests/data/fate/vsynth3-svq1.mov
+9037d8e957a8f86f8a39113e8e8a6f64 *tests/data/fate/vsynth3-svq1.mov
 40777 tests/data/fate/vsynth3-svq1.mov
 a99efde992a2e3efcc085ecc6920a1e3 *tests/data/fate/vsynth3-svq1.out.rawvideo
 stddev:   14.49 PSNR: 24.91 MAXDIFF:  183 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-v410 b/tests/ref/vsynth/vsynth3-v410
index 606c499bd9..8067be8344 100644
--- a/tests/ref/vsynth/vsynth3-v410
+++ b/tests/ref/vsynth/vsynth3-v410
@@ -1,4 +1,4 @@
-e23f1e5671ce97f6176ea23293facad1 *tests/data/fate/vsynth3-v410.mov
+f99abd4af378a24a33374b1861d7349f *tests/data/fate/vsynth3-v410.mov
 231933 tests/data/fate/vsynth3-v410.mov
 a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-v410.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth_lena-avui b/tests/ref/vsynth/vsynth_lena-avui
index f7416e0347..84d4f81cff 100644
--- a/tests/ref/vsynth/vsynth_lena-avui
+++ b/tests/ref/vsynth/vsynth_lena-avui
@@ -1,4 +1,4 @@
-0ac7cec97ff19a9c6b97a09b28f662d9 *tests/data/fate/vsynth_lena-avui.mov
+79a81c768e45fdcd6fb635dd6782c637 *tests/data/fate/vsynth_lena-avui.mov
 42625037 tests/data/fate/vsynth_lena-avui.mov
 dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-avui.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-dnxhd-1080i b/tests/ref/vsynth/vsynth_lena-dnxhd-1080i
index 353bac72a3..cecd08e50e 100644
--- a/tests/ref/vsynth/vsynth_lena-dnxhd-1080i
+++ b/tests/ref/vsynth/vsynth_lena-dnxhd-1080i
@@ -1,4 +1,4 @@
-e6d5409349ca293439ad5b763219544e *tests/data/fate/vsynth_lena-dnxhd-1080i.mov
+acbb4fee0d47eb9a9698f5a8d2ee8227 *tests/data/fate/vsynth_lena-dnxhd-1080i.mov
 3031911 tests/data/fate/vsynth_lena-dnxhd-1080i.mov
 7d0ca92f12711535d57eff3609462b31 *tests/data/fate/vsynth_lena-dnxhd-1080i.out.rawvideo
 stddev:    1.29 PSNR: 45.87 MAXDIFF:   22 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-dnxhd-1080i-10bit b/tests/ref/vsynth/vsynth_lena-dnxhd-1080i-10bit
index 32d3fdcb07..3af73c85b5 100644
--- a/tests/ref/vsynth/vsynth_lena-dnxhd-1080i-10bit
+++ b/tests/ref/vsynth/vsynth_lena-dnxhd-1080i-10bit
@@ -1,4 +1,4 @@
-578d13ea649f54aaf18ca8a17e26ee2d *tests/data/fate/vsynth_lena-dnxhd-1080i-10bit.mov
+f90e1179cf5654eedee1d147b6b1827c *tests/data/fate/vsynth_lena-dnxhd-1080i-10bit.mov
 4588391 tests/data/fate/vsynth_lena-dnxhd-1080i-10bit.mov
 f2dc4375c58e0406d442e0cb28573e91 *tests/data/fate/vsynth_lena-dnxhd-1080i-10bit.out.rawvideo
 stddev:    1.36 PSNR: 45.40 MAXDIFF:   22 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-dnxhd-1080i-colr b/tests/ref/vsynth/vsynth_lena-dnxhd-1080i-colr
index c81cde6328..e2543456f0 100644
--- a/tests/ref/vsynth/vsynth_lena-dnxhd-1080i-colr
+++ b/tests/ref/vsynth/vsynth_lena-dnxhd-1080i-colr
@@ -1,4 +1,4 @@
-5dfcde3abbdc030556d9a13806962a36 *tests/data/fate/vsynth_lena-dnxhd-1080i-colr.mov
+4fb640eaa671de34d81f9875f75f70a8 *tests/data/fate/vsynth_lena-dnxhd-1080i-colr.mov
 3031929 tests/data/fate/vsynth_lena-dnxhd-1080i-colr.mov
 ce4993a69ef55c8c4b18138716f17b6f *tests/data/fate/vsynth_lena-dnxhd-1080i-colr.out.rawvideo
 stddev:    1.33 PSNR: 45.59 MAXDIFF:   22 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-dnxhd-hr-hq-mov b/tests/ref/vsynth/vsynth_lena-dnxhd-hr-hq-mov
index 143627a727..df4db1188f 100644
--- a/tests/ref/vsynth/vsynth_lena-dnxhd-hr-hq-mov
+++ b/tests/ref/vsynth/vsynth_lena-dnxhd-hr-hq-mov
@@ -1,4 +1,4 @@
-5ef486a4fbad003acde7304284343474 *tests/data/fate/vsynth_lena-dnxhd-hr-hq-mov.mov
+5b7c4d92e49a0c53963fa9901c2b10b4 *tests/data/fate/vsynth_lena-dnxhd-hr-hq-mov.mov
 4772599 tests/data/fate/vsynth_lena-dnxhd-hr-hq-mov.mov
 e6c3531cb32eb3d0c465c44098746fea *tests/data/fate/vsynth_lena-dnxhd-hr-hq-mov.out.rawvideo
 stddev:    1.34 PSNR: 45.54 MAXDIFF:   23 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-dnxhd-hr-lb-mov b/tests/ref/vsynth/vsynth_lena-dnxhd-hr-lb-mov
index 2f85eb7cc5..fef09407ee 100644
--- a/tests/ref/vsynth/vsynth_lena-dnxhd-hr-lb-mov
+++ b/tests/ref/vsynth/vsynth_lena-dnxhd-hr-lb-mov
@@ -1,4 +1,4 @@
-365ed8ad47fa233dac85f1571cce2296 *tests/data/fate/vsynth_lena-dnxhd-hr-lb-mov.mov
+008d3364a8c3b836b7d2d01cba7bbbad *tests/data/fate/vsynth_lena-dnxhd-hr-lb-mov.mov
 3748599 tests/data/fate/vsynth_lena-dnxhd-hr-lb-mov.mov
 0951de00b90d1bf34d2ff10a51db705d *tests/data/fate/vsynth_lena-dnxhd-hr-lb-mov.out.rawvideo
 stddev:    1.31 PSNR: 45.72 MAXDIFF:   21 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-dnxhd-hr-sq-mov b/tests/ref/vsynth/vsynth_lena-dnxhd-hr-sq-mov
index 404fe2c5b4..b1f6344e2b 100644
--- a/tests/ref/vsynth/vsynth_lena-dnxhd-hr-sq-mov
+++ b/tests/ref/vsynth/vsynth_lena-dnxhd-hr-sq-mov
@@ -1,4 +1,4 @@
-dc0d76663320db7498d818bfc5926449 *tests/data/fate/vsynth_lena-dnxhd-hr-sq-mov.mov
+d37db9972e6038738d1bdeb5a7b9529f *tests/data/fate/vsynth_lena-dnxhd-hr-sq-mov.mov
 2560763 tests/data/fate/vsynth_lena-dnxhd-hr-sq-mov.mov
 95e7da46fc066ed795de4ec1cf4d4ab5 *tests/data/fate/vsynth_lena-dnxhd-hr-sq-mov.out.rawvideo
 stddev:    1.35 PSNR: 45.51 MAXDIFF:   23 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-mov-bgr24 b/tests/ref/vsynth/vsynth_lena-mov-bgr24
index 4ff05ffd00..702b22ab74 100644
--- a/tests/ref/vsynth/vsynth_lena-mov-bgr24
+++ b/tests/ref/vsynth/vsynth_lena-mov-bgr24
@@ -1,4 +1,4 @@
-9972f7ffeb1514281b6327971a5166dd *tests/data/fate/vsynth_lena-mov-bgr24.mov
+90074a4f8a244b4e3ee00b13a05fe8ee *tests/data/fate/vsynth_lena-mov-bgr24.mov
 15207169 tests/data/fate/vsynth_lena-mov-bgr24.mov
 98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-mov-bgr24.out.rawvideo
 stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-mov-bpp15 b/tests/ref/vsynth/vsynth_lena-mov-bpp15
index a886a7140c..17546b6c45 100644
--- a/tests/ref/vsynth/vsynth_lena-mov-bpp15
+++ b/tests/ref/vsynth/vsynth_lena-mov-bpp15
@@ -1,4 +1,4 @@
-0e5e84d0507902b1d4e70253ba29a1f6 *tests/data/fate/vsynth_lena-mov-bpp15.mov
+a75531cc202c7c37fab37a47ece799a5 *tests/data/fate/vsynth_lena-mov-bpp15.mov
 10138329 tests/data/fate/vsynth_lena-mov-bpp15.mov
 be0e64bdf519ce1097613063804eded9 *tests/data/fate/vsynth_lena-mov-bpp15.out.rawvideo
 stddev:    2.16 PSNR: 41.43 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-mov-bpp16 b/tests/ref/vsynth/vsynth_lena-mov-bpp16
index 7c061042c6..3251eb2a78 100644
--- a/tests/ref/vsynth/vsynth_lena-mov-bpp16
+++ b/tests/ref/vsynth/vsynth_lena-mov-bpp16
@@ -1,4 +1,4 @@
-d294b9cb3c16c6c60308dea0ffdcffe5 *tests/data/fate/vsynth_lena-mov-bpp16.mov
+a791a4b814b21612bb1bebac21748256 *tests/data/fate/vsynth_lena-mov-bpp16.mov
 10138329 tests/data/fate/vsynth_lena-mov-bpp16.mov
 789bfa1dc2a72f498928f2ae85e461c3 *tests/data/fate/vsynth_lena-mov-bpp16.out.rawvideo
 stddev:    1.76 PSNR: 43.18 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-prores b/tests/ref/vsynth/vsynth_lena-prores
index 25578e1424..3aa273644c 100644
--- a/tests/ref/vsynth/vsynth_lena-prores
+++ b/tests/ref/vsynth/vsynth_lena-prores
@@ -1,4 +1,4 @@
-92c65d3cdd6d44e9d5d4c99a1d7290bc *tests/data/fate/vsynth_lena-prores.mov
+ed2c82bba1e06db80ff404817928f657 *tests/data/fate/vsynth_lena-prores.mov
 2844076 tests/data/fate/vsynth_lena-prores.mov
 03fd29e3963716a09d232b6f817ecb57 *tests/data/fate/vsynth_lena-prores.out.rawvideo
 stddev:    1.31 PSNR: 45.77 MAXDIFF:   11 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-prores_444 b/tests/ref/vsynth/vsynth_lena-prores_444
index 0458b72aba..c90e83b345 100644
--- a/tests/ref/vsynth/vsynth_lena-prores_444
+++ b/tests/ref/vsynth/vsynth_lena-prores_444
@@ -1,4 +1,4 @@
-1a1d100f7fcd2fe1e93d874eef5b76eb *tests/data/fate/vsynth_lena-prores_444.mov
+076acb70292e8764b4c92fbe706636b2 *tests/data/fate/vsynth_lena-prores_444.mov
 4734395 tests/data/fate/vsynth_lena-prores_444.mov
 a704e05e3e0a451edef7515b25a76bb8 *tests/data/fate/vsynth_lena-prores_444.out.rawvideo
 stddev:    0.81 PSNR: 49.88 MAXDIFF:    8 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-prores_444_int b/tests/ref/vsynth/vsynth_lena-prores_444_int
index 814af0c76e..0b326a1bef 100644
--- a/tests/ref/vsynth/vsynth_lena-prores_444_int
+++ b/tests/ref/vsynth/vsynth_lena-prores_444_int
@@ -1,4 +1,4 @@
-e9e87fbdfccea684d7f07e59712e877d *tests/data/fate/vsynth_lena-prores_444_int.mov
+43df69e79de9b45386994dea215a4758 *tests/data/fate/vsynth_lena-prores_444_int.mov
 5696258 tests/data/fate/vsynth_lena-prores_444_int.mov
 466380156e4d2b811f4ffb9c5a8bca72 *tests/data/fate/vsynth_lena-prores_444_int.out.rawvideo
 stddev:    0.88 PSNR: 49.23 MAXDIFF:    9 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-prores_int b/tests/ref/vsynth/vsynth_lena-prores_int
index 92717b060b..ec6cd7d46e 100644
--- a/tests/ref/vsynth/vsynth_lena-prores_int
+++ b/tests/ref/vsynth/vsynth_lena-prores_int
@@ -1,4 +1,4 @@
-1e6e9fda7679413d0644128c5c3b6c47 *tests/data/fate/vsynth_lena-prores_int.mov
+c83db8fa65ff9088a2d7fed96e2b81fa *tests/data/fate/vsynth_lena-prores_int.mov
 3532698 tests/data/fate/vsynth_lena-prores_int.mov
 eb5caa9824ca294f403cd13f33c40f23 *tests/data/fate/vsynth_lena-prores_int.out.rawvideo
 stddev:    1.47 PSNR: 44.78 MAXDIFF:   12 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-prores_ks b/tests/ref/vsynth/vsynth_lena-prores_ks
index 9ffd868662..da25175e2d 100644
--- a/tests/ref/vsynth/vsynth_lena-prores_ks
+++ b/tests/ref/vsynth/vsynth_lena-prores_ks
@@ -1,4 +1,4 @@
-5c1cf6260cdf1d3891010c13285dd67f *tests/data/fate/vsynth_lena-prores_ks.mov
+6ca0dc8af5623922ab828e0c2911ef9e *tests/data/fate/vsynth_lena-prores_ks.mov
 3884596 tests/data/fate/vsynth_lena-prores_ks.mov
 6cfe987de99cf8ac9d43bdc5cd150838 *tests/data/fate/vsynth_lena-prores_ks.out.rawvideo
 stddev:    0.92 PSNR: 48.78 MAXDIFF:   10 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-qtrle b/tests/ref/vsynth/vsynth_lena-qtrle
index 8799768735..4d8a7250d5 100644
--- a/tests/ref/vsynth/vsynth_lena-qtrle
+++ b/tests/ref/vsynth/vsynth_lena-qtrle
@@ -1,4 +1,4 @@
-ea78316f77a096921f0a60ffc87564af *tests/data/fate/vsynth_lena-qtrle.mov
+b16e76234b3e9bc763c86fe8d524e7cc *tests/data/fate/vsynth_lena-qtrle.mov
 14798345 tests/data/fate/vsynth_lena-qtrle.mov
 98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-qtrle.out.rawvideo
 stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-qtrlegray b/tests/ref/vsynth/vsynth_lena-qtrlegray
index 26ac22553b..7606dc32b2 100644
--- a/tests/ref/vsynth/vsynth_lena-qtrlegray
+++ b/tests/ref/vsynth/vsynth_lena-qtrlegray
@@ -1,4 +1,4 @@
-9cf3c914d3ba72d3102975853d979a07 *tests/data/fate/vsynth_lena-qtrlegray.mov
+d14bfbcb8769fcd5acb4f1d21b0bf317 *tests/data/fate/vsynth_lena-qtrlegray.mov
 5111283 tests/data/fate/vsynth_lena-qtrlegray.mov
 d7bfbe259af9ae323bb94b09c33570a5 *tests/data/fate/vsynth_lena-qtrlegray.out.rawvideo
 stddev:   18.65 PSNR: 22.72 MAXDIFF:   72 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-rpza b/tests/ref/vsynth/vsynth_lena-rpza
index fc002836ab..1b2def315a 100644
--- a/tests/ref/vsynth/vsynth_lena-rpza
+++ b/tests/ref/vsynth/vsynth_lena-rpza
@@ -1,4 +1,4 @@
-fbdc6af37cdb51419a450c86b3149f78 *tests/data/fate/vsynth_lena-rpza.mov
+f0e6885f7765caeab3b71a561b3a3a32 *tests/data/fate/vsynth_lena-rpza.mov
 8795888 tests/data/fate/vsynth_lena-rpza.mov
 94ab32b81b82e1f24a7aeb4435668f84 *tests/data/fate/vsynth_lena-rpza.out.rawvideo
 stddev:    2.47 PSNR: 40.25 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-smc b/tests/ref/vsynth/vsynth_lena-smc
index 57694ce5d3..166502a0f4 100644
--- a/tests/ref/vsynth/vsynth_lena-smc
+++ b/tests/ref/vsynth/vsynth_lena-smc
@@ -1,4 +1,4 @@
-93e7f223cc8e995d83a5a481a119c078 *tests/data/fate/vsynth_lena-smc.mov
+ab4d3765b2cf72b23c982c8a86419fc7 *tests/data/fate/vsynth_lena-smc.mov
 3502732 tests/data/fate/vsynth_lena-smc.mov
 db453693ceae6f65c173dd716ee2662e *tests/data/fate/vsynth_lena-smc.out.rawvideo
 stddev:    8.07 PSNR: 29.99 MAXDIFF:   32 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-svq1 b/tests/ref/vsynth/vsynth_lena-svq1
index 24d3c6ad0b..d3f5c54dfc 100644
--- a/tests/ref/vsynth/vsynth_lena-svq1
+++ b/tests/ref/vsynth/vsynth_lena-svq1
@@ -1,4 +1,4 @@
-e05fd882b96e501d808812e7f093e041 *tests/data/fate/vsynth_lena-svq1.mov
+5f7192300e1a2910b65c1df8decd758e *tests/data/fate/vsynth_lena-svq1.mov
 766837 tests/data/fate/vsynth_lena-svq1.mov
 85261558fa744ef468fe77dbe4d91d8d *tests/data/fate/vsynth_lena-svq1.out.rawvideo
 stddev:    3.23 PSNR: 37.93 MAXDIFF:   61 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-v410 b/tests/ref/vsynth/vsynth_lena-v410
index 07ad5e22d2..e6c9874428 100644
--- a/tests/ref/vsynth/vsynth_lena-v410
+++ b/tests/ref/vsynth/vsynth_lena-v410
@@ -1,4 +1,4 @@
-cf390e461fbab7d9f2118af3f2722c2c *tests/data/fate/vsynth_lena-v410.mov
+16b817c923dfd258fa17009d8b7f13b0 *tests/data/fate/vsynth_lena-v410.mov
 20276029 tests/data/fate/vsynth_lena-v410.mov
 dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-v410.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-420p b/tests/ref/vsynth/vsynth_lena-vc2-420p
index 65da654f83..d81eb0f9b2 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-420p
+++ b/tests/ref/vsynth/vsynth_lena-vc2-420p
@@ -1,4 +1,4 @@
-af4d61d7dcdea90739d8da4b0fb78a55 *tests/data/fate/vsynth_lena-vc2-420p.mov
+92e5523c5565ce343ab9eeeb0f473f41 *tests/data/fate/vsynth_lena-vc2-420p.mov
 849735 tests/data/fate/vsynth_lena-vc2-420p.mov
 b1c660113acab8eb4075f3d9fbb9cee9 *tests/data/fate/vsynth_lena-vc2-420p.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-420p10 b/tests/ref/vsynth/vsynth_lena-vc2-420p10
index 1f6b64779f..41b4f227d8 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-420p10
+++ b/tests/ref/vsynth/vsynth_lena-vc2-420p10
@@ -1,4 +1,4 @@
-c55a2a3b75683c93cbd137e35a93e6a5 *tests/data/fate/vsynth_lena-vc2-420p10.mov
+0ae7ca84fb1f0670354839600a073368 *tests/data/fate/vsynth_lena-vc2-420p10.mov
 1154775 tests/data/fate/vsynth_lena-vc2-420p10.mov
 b1c660113acab8eb4075f3d9fbb9cee9 *tests/data/fate/vsynth_lena-vc2-420p10.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-420p12 b/tests/ref/vsynth/vsynth_lena-vc2-420p12
index 2665acd84a..5a26f46040 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-420p12
+++ b/tests/ref/vsynth/vsynth_lena-vc2-420p12
@@ -1,4 +1,4 @@
-dbf2cb7713c27bda032cbd162fbdf030 *tests/data/fate/vsynth_lena-vc2-420p12.mov
+45b54285a7df33065818ca297aefbee2 *tests/data/fate/vsynth_lena-vc2-420p12.mov
 1516759 tests/data/fate/vsynth_lena-vc2-420p12.mov
 b1c660113acab8eb4075f3d9fbb9cee9 *tests/data/fate/vsynth_lena-vc2-420p12.out.rawvideo
 stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-422p b/tests/ref/vsynth/vsynth_lena-vc2-422p
index 70ce225c01..a4499bce49 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-422p
+++ b/tests/ref/vsynth/vsynth_lena-vc2-422p
@@ -1,4 +1,4 @@
-26f2b6380d77de454ecf733cb0432bc9 *tests/data/fate/vsynth_lena-vc2-422p.mov
+bb9c97689e77e2cfba398f1a3448661d *tests/data/fate/vsynth_lena-vc2-422p.mov
 1049287 tests/data/fate/vsynth_lena-vc2-422p.mov
 c4b2e69278c822f22655344068ea486d *tests/data/fate/vsynth_lena-vc2-422p.out.rawvideo
 stddev:    0.26 PSNR: 59.82 MAXDIFF:    5 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-422p10 b/tests/ref/vsynth/vsynth_lena-vc2-422p10
index 8e2b374631..6ab5558019 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-422p10
+++ b/tests/ref/vsynth/vsynth_lena-vc2-422p10
@@ -1,4 +1,4 @@
-d28f70ead2b4ddd3446c913614306ba5 *tests/data/fate/vsynth_lena-vc2-422p10.mov
+a73568b3eb9dab06b02b48bb2b9658b1 *tests/data/fate/vsynth_lena-vc2-422p10.mov
 1294039 tests/data/fate/vsynth_lena-vc2-422p10.mov
 e5ea17416bda234ae58f27dea27e8135 *tests/data/fate/vsynth_lena-vc2-422p10.out.rawvideo
 stddev:    0.30 PSNR: 58.58 MAXDIFF:    5 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-422p12 b/tests/ref/vsynth/vsynth_lena-vc2-422p12
index 93fd2dd172..6864a7e524 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-422p12
+++ b/tests/ref/vsynth/vsynth_lena-vc2-422p12
@@ -1,4 +1,4 @@
-bf19c3e17b8a5ec8dc1b1e4851c17a37 *tests/data/fate/vsynth_lena-vc2-422p12.mov
+52409fa23523c0ff3a36fdf422720ccf *tests/data/fate/vsynth_lena-vc2-422p12.mov
 1768027 tests/data/fate/vsynth_lena-vc2-422p12.mov
 bd374304997834410a69ee6c6e047d19 *tests/data/fate/vsynth_lena-vc2-422p12.out.rawvideo
 stddev:    0.29 PSNR: 58.76 MAXDIFF:    5 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-444p b/tests/ref/vsynth/vsynth_lena-vc2-444p
index 26edb1ef6e..63e3297165 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-444p
+++ b/tests/ref/vsynth/vsynth_lena-vc2-444p
@@ -1,4 +1,4 @@
-e7b8ac61cae1b79f1a17ec377d1826be *tests/data/fate/vsynth_lena-vc2-444p.mov
+654f7f090180e5363ff255a11492483e *tests/data/fate/vsynth_lena-vc2-444p.mov
 1174738 tests/data/fate/vsynth_lena-vc2-444p.mov
 f9306b14ff827ced1a992301d1ab02ca *tests/data/fate/vsynth_lena-vc2-444p.out.rawvideo
 stddev:    0.38 PSNR: 56.43 MAXDIFF:    6 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-444p10 b/tests/ref/vsynth/vsynth_lena-vc2-444p10
index 1fc54a4508..5e9b5efe50 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-444p10
+++ b/tests/ref/vsynth/vsynth_lena-vc2-444p10
@@ -1,4 +1,4 @@
-386e24d574c949a7a20beb7224aca44a *tests/data/fate/vsynth_lena-vc2-444p10.mov
+6b75496f203d6bff35a0830207803b93 *tests/data/fate/vsynth_lena-vc2-444p10.mov
 1577815 tests/data/fate/vsynth_lena-vc2-444p10.mov
 da13c67fe1c6d98dd73e92a6ba006edc *tests/data/fate/vsynth_lena-vc2-444p10.out.rawvideo
 stddev:    0.42 PSNR: 55.56 MAXDIFF:    7 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-444p12 b/tests/ref/vsynth/vsynth_lena-vc2-444p12
index 31810a19a3..a7aa8b10c8 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-444p12
+++ b/tests/ref/vsynth/vsynth_lena-vc2-444p12
@@ -1,4 +1,4 @@
-81cda088024d20737359fb1de276c499 *tests/data/fate/vsynth_lena-vc2-444p12.mov
+4c20ab3ea09db3bd6565a3e9ebd2c83c *tests/data/fate/vsynth_lena-vc2-444p12.mov
 2134875 tests/data/fate/vsynth_lena-vc2-444p12.mov
 a505434ec95362772a57d274f63a3f5a *tests/data/fate/vsynth_lena-vc2-444p12.out.rawvideo
 stddev:    0.42 PSNR: 55.58 MAXDIFF:    7 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-t5_3 b/tests/ref/vsynth/vsynth_lena-vc2-t5_3
index 73cddb4f0f..1688333550 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-t5_3
+++ b/tests/ref/vsynth/vsynth_lena-vc2-t5_3
@@ -1,4 +1,4 @@
-7b8dc83c13e08321683364649aa90c2d *tests/data/fate/vsynth_lena-vc2-t5_3.mov
+1c6daee491bae1ac609a4d2e7538f650 *tests/data/fate/vsynth_lena-vc2-t5_3.mov
 1305436 tests/data/fate/vsynth_lena-vc2-t5_3.mov
 e5ea17416bda234ae58f27dea27e8135 *tests/data/fate/vsynth_lena-vc2-t5_3.out.rawvideo
 stddev:    0.30 PSNR: 58.58 MAXDIFF:    5 bytes:  7603200/   760320
diff --git a/tests/ref/vsynth/vsynth_lena-vc2-thaar b/tests/ref/vsynth/vsynth_lena-vc2-thaar
index 450f6b2557..83bf2fcc2b 100644
--- a/tests/ref/vsynth/vsynth_lena-vc2-thaar
+++ b/tests/ref/vsynth/vsynth_lena-vc2-thaar
@@ -1,4 +1,4 @@
-2c6b7236fb5a64f6c94afc7e7b3b6446 *tests/data/fate/vsynth_lena-vc2-thaar.mov
+a54880cd89ab032709c3c4b348d3d79c *tests/data/fate/vsynth_lena-vc2-thaar.mov
 1431772 tests/data/fate/vsynth_lena-vc2-thaar.mov
 e5ea17416bda234ae58f27dea27e8135 *tests/data/fate/vsynth_lena-vc2-thaar.out.rawvideo
 stddev:    0.30 PSNR: 58.58 MAXDIFF:    5 bytes:  7603200/   760320