PR #26083 opened by 06needhamt
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26083
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26083.patch

# Summary of changes

Adds a demuxer and a muxer for Dynacolor MVC, the recording format used by 
surveillance cameras and DVRs built on Dynacolor chipsets.

A file is a sequence of records. Each record has a 16-byte index header, an 
optional 16-byte extra index header followed by "super extra" data, a 32-byte 
MPEG PES-style header, and one MJPEG, MPEG-4 Part 2 or H.264 frame. The index 
headers are little-endian and protected by XOR checksums. The layout is 
documented in `libavformat/dynacolor.h`.

**Demuxer**
- Each channel number in the records becomes its own video stream.
- Records only carry a time in whole seconds, so packet timestamps are placed 
on a 25 fps (PAL) or 30 fps (NTSC) grid within each second, chosen by the 
PAL/NTSC flag. The time of the first record is exported as `creation_time`.
- Audio records are skipped with a request for a sample, since no sample with 
audio is available.
- Seeking uses the generic index.

**Muxer**
- Writes each video stream (MJPEG, MPEG-4, H.264) as a separate channel.
- The record time comes from `creation_time` plus the packet dts, and the 
PAL/NTSC flag from the stream frame rate. As a result, remuxing a demuxed file 
with `-c copy -map_metadata 0` gives back the same packets and timestamps.

**Tests**
- `fate-dynacolor-demux`: stream copy of the sample.
- `fate-dynacolor-remux`: the sample is muxed, then remuxed. Both output
  files have the same checksum, and the packets match `fate-dynacolor-demux`
  except for the corrupt flag of the sample's truncated last record.
- `fate-dynacolor-mpeg4`: the same round trip on an MPEG-4 encode of `testsrc2` 
(no sample needed). The packets match the encoder output.
- `fate-lavf-dynacolor`: the standard lavf container test.

The two round-trip tests use a new `remux_roundtrip` helper in
`tests/fate-run.sh`.

The sample comes from
https://streams.videolan.org/samples/camera-dvr/dynacolor/dynacolor-camera-sample
(4.7 MB, md5 `0c2e83678d603a785a1a5ab9ca397b0b`) and is attached to this PR.

```fate-samples
dynacolor/dynacolor-camera-sample
```


>From 8c5df77521585142b89f9a5ac7b37d1cc3cfc970 Mon Sep 17 00:00:00 2001
From: Tom Needham <[email protected]>
Date: Sun, 15 Nov 2026 15:35:09 +0000
Subject: [PATCH 1/2] avformat: add Dynacolor MVC demuxer

Dynacolor MVC is the recording format of surveillance cameras and DVRs
based on Dynacolor chipsets. Each record consists of a 16 byte index
header, an optional 16 byte extra index header followed by "super extra"
data, a 32 byte MPEG PES style header and an MJPEG, MPEG-4 Part 2 or
H.264 frame.

Records carry the channel number, which is exported as a separate
stream, and a timestamp with one second resolution. Packet timestamps
are placed on a grid of the nominal PAL (25 fps) or NTSC (30 fps) frame
rate, starting at the beginning of the second each record belongs to.
The time of the first record is exported as creation_time.

Audio records are skipped as no sample with audio is available.

Sample:
https://streams.videolan.org/samples/camera-dvr/dynacolor/dynacolor-camera-sample
The FATE test expects it at dynacolor/dynacolor-camera-sample.

Signed-off-by: Tom Needham <[email protected]>
---
 Changelog                      |   1 +
 doc/general_contents.texi      |   2 +
 libavformat/Makefile           |   1 +
 libavformat/allformats.c       |   1 +
 libavformat/dynacolor.h        |  92 +++++++++
 libavformat/dynacolordec.c     | 296 +++++++++++++++++++++++++++
 libavformat/version.h          |   4 +-
 tests/Makefile                 |   1 +
 tests/fate/dynacolor.mak       |   5 +
 tests/ref/fate/dynacolor-demux | 355 +++++++++++++++++++++++++++++++++
 10 files changed, 756 insertions(+), 2 deletions(-)
 create mode 100644 libavformat/dynacolor.h
 create mode 100644 libavformat/dynacolordec.c
 create mode 100644 tests/fate/dynacolor.mak
 create mode 100644 tests/ref/fate/dynacolor-demux

diff --git a/Changelog b/Changelog
index bce79b181f7..17d9551a3ea 100644
--- a/Changelog
+++ b/Changelog
@@ -6,6 +6,7 @@ version <next>:
 - LCEVC raw demuxer and muxer
 - AVS+ (AVS1-P16, Broadcasting profile) support in the Chinese AVS decoder
 - PCM PAMF decoder
+- Dynacolor MVC demuxer
 
 version 9.1:
 - ASTC image encoding and decoding via libastcenc, with .astc and KTX 1.0 
muxers and demuxers
diff --git a/doc/general_contents.texi b/doc/general_contents.texi
index 0176cd08750..90be22fe2ad 100644
--- a/doc/general_contents.texi
+++ b/doc/general_contents.texi
@@ -601,6 +601,8 @@ library:
 @item DXA                       @tab   @tab X
     @tab This format is used in the non-Windows version of the Feeble Files
          game and different game cutscenes repacked for use with ScummVM.
+@item Dynacolor MVC             @tab   @tab X
+    @tab Format used by surveillance cameras and DVRs with a Dynacolor chipset.
 @item Electronic Arts cdata  @tab    @tab X
 @item Electronic Arts Multimedia  @tab    @tab X
     @tab Used in various EA games; files have extensions like WVE and UV2.
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 891d7f82d9a..691ae3da626 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -215,6 +215,7 @@ OBJS-$(CONFIG_DVBSUB_DEMUXER)            += dvbsub.o 
rawdec.o
 OBJS-$(CONFIG_DVBTXT_DEMUXER)            += dvbtxt.o rawdec.o
 OBJS-$(CONFIG_DVDVIDEO_DEMUXER)          += dvdvideodec.o dvdclut.o
 OBJS-$(CONFIG_DXA_DEMUXER)               += dxa.o
+OBJS-$(CONFIG_DYNACOLOR_DEMUXER)         += dynacolordec.o
 OBJS-$(CONFIG_EA_CDATA_DEMUXER)          += eacdata.o
 OBJS-$(CONFIG_EA_DEMUXER)                += electronicarts.o
 OBJS-$(CONFIG_EAC3_DEMUXER)              += ac3dec.o rawdec.o
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 3306d71bf7b..ff672c1c861 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -156,6 +156,7 @@ extern const FFOutputFormat ff_dv_muxer;
 extern const FFInputFormat  ff_dvbsub_demuxer;
 extern const FFInputFormat  ff_dvbtxt_demuxer;
 extern const FFInputFormat  ff_dxa_demuxer;
+extern const FFInputFormat  ff_dynacolor_demuxer;
 extern const FFInputFormat  ff_ea_demuxer;
 extern const FFInputFormat  ff_ea_cdata_demuxer;
 extern const FFInputFormat  ff_eac3_demuxer;
diff --git a/libavformat/dynacolor.h b/libavformat/dynacolor.h
new file mode 100644
index 00000000000..fb81d1ce3b5
--- /dev/null
+++ b/libavformat/dynacolor.h
@@ -0,0 +1,92 @@
+/*
+ * Dynacolor MVC common definitions
+ * Copyright (c) 2020-2026 Tom Needham
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVFORMAT_DYNACOLOR_H
+#define AVFORMAT_DYNACOLOR_H
+
+#include <stdint.h>
+
+/*
+ * A Dynacolor MVC file is a sequence of records, each made of:
+ *
+ *  - a 16 byte basic index:
+ *      0       '@'
+ *      1       device type
+ *      2       bits 0-3: reserved, bit 4: source (0: DVR, 1: IP device),
+ *              bits 5-6: width base (0: 720, 1: 704, 2: 640)
+ *      3       bits 0-1: channel bits 5-6, bits 2-3: stream type,
+ *              bits 4-7: quality index
+ *      4-7     record size (PES header + payload), little-endian
+ *      8-11    UNIX time in seconds, little-endian
+ *      12      bit 0: 0: NTSC, 1: PAL, bit 1: 0: live, 1: playback,
+ *              bit 2: audio, bit 3: DST, bit 4: covert, bit 5: video loss,
+ *              bit 6: alarm in, bit 7: motion
+ *      13      bit 0: extra index present, bit 1: event, bits 2-7: PPS index
+ *      14      bits 0-2: picture type (1: I, 2: P, 3: B),
+ *              bits 3-7: channel bits 0-4
+ *      15      XOR of bytes 0-14
+ *  - if bit 0 of byte 13 is set, a 16 byte extra index:
+ *      0       DST minutes
+ *      1       bit 0: summer/winter time, bit 1: over speed,
+ *              bits 2-6: skipped picture count, bit 7: exception
+ *      2-3     size of the following "super extra" data, little-endian
+ *      4-7     serial number, little-endian
+ *      8-13    alarm in, video loss and motion status bitmaps
+ *      14      bits 0-1: DVR recording, bits 2-7: time zone
+ *      15      XOR of bytes 0-14
+ *    followed by the super extra data (camera title, GPS, text, ...).
+ *  - a 32 byte MPEG PES style header:
+ *      0-2     start code 0x000001
+ *      3       bits 4-7: format, bits 0-3: channel bits 0-3
+ *      4-23    unused by the format
+ *      24-26   record size, with marker bits:
+ *              byte 24: 1 << 7 | size bits 15-21
+ *              byte 25: size bits 11-14 << 4 | 1 << 3 | size bits 8-10
+ *              byte 26: size bits 0-7
+ *      27      picture type
+ *      28-31   field information
+ *  - the payload, an elementary stream frame.
+ */
+
+#define DYNACOLOR_BASIC_IDX_SIZE  16
+#define DYNACOLOR_EXTRA_IDX_SIZE  16
+#define DYNACOLOR_PES_HEADER_SIZE 32
+
+#define DYNACOLOR_MAX_RECORD_SIZE 0x3FFFFF /* 22 bit size field in the PES 
header */
+#define DYNACOLOR_MAX_CHANNELS    128      /* 7 bit channel number */
+
+#define DYNACOLOR_FORMAT_AUDIO 0xC
+#define DYNACOLOR_FORMAT_JPEG  0xD
+#define DYNACOLOR_FORMAT_MPEG4 0xE
+#define DYNACOLOR_FORMAT_H264  0xF
+
+#define DYNACOLOR_PICTURE_I 1
+#define DYNACOLOR_PICTURE_P 2
+
+static inline uint8_t ff_dynacolor_checksum(const uint8_t *buf, int size)
+{
+    uint8_t sum = 0;
+    for (int i = 0; i < size; i++)
+        sum ^= buf[i];
+    return sum;
+}
+
+#endif /* AVFORMAT_DYNACOLOR_H */
diff --git a/libavformat/dynacolordec.c b/libavformat/dynacolordec.c
new file mode 100644
index 00000000000..1eb28ed359d
--- /dev/null
+++ b/libavformat/dynacolordec.c
@@ -0,0 +1,296 @@
+/*
+ * Dynacolor MVC demuxer
+ * Copyright (c) 2020-2026 Tom Needham
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "libavutil/intreadwrite.h"
+#include "libavutil/mem.h"
+
+#include "avformat.h"
+#include "avio_internal.h"
+#include "demux.h"
+#include "dynacolor.h"
+#include "internal.h"
+
+typedef struct DynacolorRecord {
+    int64_t  pos;
+    int64_t  data_pos;
+    uint32_t size;
+    uint32_t time;
+    int      channel;
+    int      pal;
+    int      key;
+    int      format;
+} DynacolorRecord;
+
+typedef struct DynacolorStream {
+    int64_t next_pts;
+} DynacolorStream;
+
+typedef struct DynacolorDemuxContext {
+    DynacolorRecord rec;
+    int             have_rec;
+    uint32_t        start_time;
+    int64_t         next_pos;
+    unsigned        unsupported_reported;
+} DynacolorDemuxContext;
+
+static int dynacolor_probe(const AVProbeData *p)
+{
+    const uint8_t *b = p->buf;
+    int offset = DYNACOLOR_BASIC_IDX_SIZE;
+
+    if (p->buf_size < DYNACOLOR_BASIC_IDX_SIZE + DYNACOLOR_EXTRA_IDX_SIZE + 4)
+        return 0;
+    if (b[0] != '@' || ff_dynacolor_checksum(b, 15) != b[15] ||
+        AV_RL32(b + 4) < DYNACOLOR_PES_HEADER_SIZE)
+        return 0;
+
+    if (b[13] & 1) {
+        if (ff_dynacolor_checksum(b + offset, 15) != b[offset + 15])
+            return 0;
+        offset += DYNACOLOR_EXTRA_IDX_SIZE + AV_RL16(b + offset + 2);
+    }
+
+    if (offset + 4 > p->buf_size ||
+        AV_RB24(b + offset) != 1 || b[offset + 3] >> 4 < 
DYNACOLOR_FORMAT_AUDIO)
+        return 0;
+
+    return AVPROBE_SCORE_MAX;
+}
+
+static int read_record_header(AVFormatContext *s, DynacolorRecord *rec)
+{
+    AVIOContext *pb = s->pb;
+    uint8_t basic[DYNACOLOR_BASIC_IDX_SIZE];
+    uint8_t extra[DYNACOLOR_EXTRA_IDX_SIZE];
+    uint8_t pes[DYNACOLOR_PES_HEADER_SIZE];
+    int ret;
+
+    rec->pos = avio_tell(pb);
+
+    ret = avio_read(pb, basic, sizeof(basic));
+    if (ret != sizeof(basic))
+        return ret < 0 ? ret : AVERROR_EOF;
+
+    if (basic[0] != '@') {
+        av_log(s, AV_LOG_ERROR, "Invalid record header at 0x%"PRIx64"\n", 
rec->pos);
+        return AVERROR_INVALIDDATA;
+    }
+    if (ff_dynacolor_checksum(basic, 15) != basic[15]) {
+        av_log(s, AV_LOG_WARNING, "Record header checksum mismatch at 
0x%"PRIx64"\n", rec->pos);
+        if (s->error_recognition & AV_EF_EXPLODE)
+            return AVERROR_INVALIDDATA;
+    }
+
+    rec->size    = AV_RL32(basic + 4);
+    rec->time    = AV_RL32(basic + 8);
+    rec->pal     = basic[12] & 1;
+    rec->key     = (basic[14] & 7) == DYNACOLOR_PICTURE_I;
+    rec->channel = (basic[3] & 3) << 5 | basic[14] >> 3;
+
+    if (rec->size < DYNACOLOR_PES_HEADER_SIZE) {
+        av_log(s, AV_LOG_ERROR, "Invalid record size %"PRIu32"\n", rec->size);
+        return AVERROR_INVALIDDATA;
+    }
+
+    if (basic[13] & 1) {
+        ret = ffio_read_size(pb, extra, sizeof(extra));
+        if (ret < 0)
+            return ret;
+        if (ff_dynacolor_checksum(extra, 15) != extra[15]) {
+            av_log(s, AV_LOG_WARNING, "Extra header checksum mismatch at 
0x%"PRIx64"\n", rec->pos);
+            if (s->error_recognition & AV_EF_EXPLODE)
+                return AVERROR_INVALIDDATA;
+        }
+        avio_skip(pb, AV_RL16(extra + 2));
+    }
+
+    ret = ffio_read_size(pb, pes, sizeof(pes));
+    if (ret < 0)
+        return ret;
+    if (AV_RB24(pes) != 1) {
+        av_log(s, AV_LOG_ERROR, "Invalid PES header at 0x%"PRIx64"\n", 
rec->pos);
+        return AVERROR_INVALIDDATA;
+    }
+
+    rec->format = pes[3] >> 4;
+    if (basic[12] & 4)
+        rec->format = DYNACOLOR_FORMAT_AUDIO;
+    if (rec->format == DYNACOLOR_FORMAT_JPEG)
+        rec->key = 1;
+
+    rec->data_pos = avio_tell(pb);
+
+    return 0;
+}
+
+static int get_stream(AVFormatContext *s, const DynacolorRecord *rec, AVStream 
**pst)
+{
+    DynacolorDemuxContext *dyn = s->priv_data;
+    enum AVCodecID codec_id;
+    AVStream *st;
+
+    *pst = NULL;
+
+    switch (rec->format) {
+    case DYNACOLOR_FORMAT_JPEG:  codec_id = AV_CODEC_ID_MJPEG; break;
+    case DYNACOLOR_FORMAT_MPEG4: codec_id = AV_CODEC_ID_MPEG4; break;
+    case DYNACOLOR_FORMAT_H264:  codec_id = AV_CODEC_ID_H264;  break;
+    default:
+        if (!(dyn->unsupported_reported & (1U << rec->format))) {
+            if (rec->format == DYNACOLOR_FORMAT_AUDIO)
+                avpriv_request_sample(s, "Audio");
+            else
+                avpriv_request_sample(s, "Format 0x%X", rec->format);
+            dyn->unsupported_reported |= 1U << rec->format;
+        }
+        return 0;
+    }
+
+    for (unsigned i = 0; i < s->nb_streams; i++) {
+        if (s->streams[i]->id == rec->channel) {
+            st = s->streams[i];
+            if (st->codecpar->codec_id != codec_id) {
+                av_log(s, AV_LOG_WARNING, "Codec change on channel %d is not 
supported\n",
+                       rec->channel);
+                return 0;
+            }
+            *pst = st;
+            return 0;
+        }
+    }
+
+    st = avformat_new_stream(s, NULL);
+    if (!st)
+        return AVERROR(ENOMEM);
+    st->priv_data = av_mallocz(sizeof(DynacolorStream));
+    if (!st->priv_data)
+        return AVERROR(ENOMEM);
+    ((DynacolorStream *)st->priv_data)->next_pts = AV_NOPTS_VALUE;
+
+    st->id                  = rec->channel;
+    st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
+    st->codecpar->codec_id   = codec_id;
+    st->r_frame_rate         = (AVRational){ rec->pal ? 25 : 30, 1 };
+    avpriv_set_pts_info(st, 64, 1, rec->pal ? 25 : 30);
+
+    *pst = st;
+    return 0;
+}
+
+static int dynacolor_read_header(AVFormatContext *s)
+{
+    DynacolorDemuxContext *dyn = s->priv_data;
+    AVStream *st;
+    int ret;
+
+    ret = read_record_header(s, &dyn->rec);
+    if (ret < 0)
+        return ret;
+    dyn->have_rec   = 1;
+    dyn->next_pos   = dyn->rec.pos;
+    dyn->start_time = dyn->rec.time;
+
+    ret = ff_dict_set_timestamp(&s->metadata, "creation_time",
+                                dyn->start_time * INT64_C(1000000));
+    if (ret < 0)
+        return ret;
+
+    /* More channels may show up later in the file. */
+    s->ctx_flags |= AVFMTCTX_NOHEADER;
+
+    return get_stream(s, &dyn->rec, &st);
+}
+
+static int dynacolor_read_packet(AVFormatContext *s, AVPacket *pkt)
+{
+    DynacolorDemuxContext *dyn = s->priv_data;
+    DynacolorRecord *rec = &dyn->rec;
+    AVIOContext *pb = s->pb;
+    DynacolorStream *dst;
+    AVStream *st;
+    int64_t pts;
+    int ret;
+
+    /* The record parsed by read_header() is only valid if no seek happened. */
+    if (dyn->have_rec && avio_tell(pb) != rec->data_pos)
+        dyn->have_rec = 0;
+
+    for (;;) {
+        if (!dyn->have_rec) {
+            ret = read_record_header(s, rec);
+            if (ret < 0)
+                return ret;
+        }
+        dyn->have_rec = 0;
+
+        /* After a seek, timestamps are only known with a granularity of one
+         * second until the next record. */
+        if (rec->pos != dyn->next_pos) {
+            for (unsigned i = 0; i < s->nb_streams; i++)
+                ((DynacolorStream *)s->streams[i]->priv_data)->next_pts = 
AV_NOPTS_VALUE;
+        }
+        dyn->next_pos = rec->data_pos + rec->size - DYNACOLOR_PES_HEADER_SIZE;
+
+        ret = get_stream(s, rec, &st);
+        if (ret < 0)
+            return ret;
+        if (st)
+            break;
+
+        avio_skip(pb, rec->size - DYNACOLOR_PES_HEADER_SIZE);
+    }
+
+    ret = av_get_packet(pb, pkt, rec->size - DYNACOLOR_PES_HEADER_SIZE);
+    if (ret < 0)
+        return ret;
+
+    /*
+     * Records only carry a timestamp in seconds. Frames are placed on a
+     * grid of the nominal PAL/NTSC frame rate, starting at the beginning
+     * of the second they belong to, so that the timestamps written by the
+     * muxer are reproduced.
+     */
+    dst = st->priv_data;
+    pts = ((int64_t)rec->time - dyn->start_time) * st->time_base.den;
+    if (dst->next_pts != AV_NOPTS_VALUE)
+        pts = FFMAX(pts, dst->next_pts);
+    dst->next_pts = pts + 1;
+
+    pkt->stream_index = st->index;
+    pkt->pos          = rec->pos;
+    pkt->pts          = pts;
+    pkt->dts          = pts;
+    if (rec->key)
+        pkt->flags |= AV_PKT_FLAG_KEY;
+
+    return 0;
+}
+
+const FFInputFormat ff_dynacolor_demuxer = {
+    .p.name         = "dynacolor",
+    .p.long_name    = NULL_IF_CONFIG_SMALL("Dynacolor MVC"),
+    .p.flags        = AVFMT_GENERIC_INDEX,
+    .p.extensions   = "dyna,dyn",
+    .priv_data_size = sizeof(DynacolorDemuxContext),
+    .read_probe     = dynacolor_probe,
+    .read_header    = dynacolor_read_header,
+    .read_packet    = dynacolor_read_packet,
+};
diff --git a/libavformat/version.h b/libavformat/version.h
index f4a26c28709..683184d5da1 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -31,8 +31,8 @@
 
 #include "version_major.h"
 
-#define LIBAVFORMAT_VERSION_MINOR  20
-#define LIBAVFORMAT_VERSION_MICRO 101
+#define LIBAVFORMAT_VERSION_MINOR  21
+#define LIBAVFORMAT_VERSION_MICRO 100
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                LIBAVFORMAT_VERSION_MINOR, \
diff --git a/tests/Makefile b/tests/Makefile
index 0656946f11f..d1029176a02 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -194,6 +194,7 @@ include $(SRC_PATH)/tests/fate/dfa.mak
 include $(SRC_PATH)/tests/fate/dnxhd.mak
 include $(SRC_PATH)/tests/fate/dpcm.mak
 include $(SRC_PATH)/tests/fate/dvvideo.mak
+include $(SRC_PATH)/tests/fate/dynacolor.mak
 include $(SRC_PATH)/tests/fate/ea.mak
 include $(SRC_PATH)/tests/fate/exif.mak
 include $(SRC_PATH)/tests/fate/enc_external.mak
diff --git a/tests/fate/dynacolor.mak b/tests/fate/dynacolor.mak
new file mode 100644
index 00000000000..450fe8c2da8
--- /dev/null
+++ b/tests/fate/dynacolor.mak
@@ -0,0 +1,5 @@
+FATE_DYNACOLOR-$(call FRAMECRC, DYNACOLOR) += fate-dynacolor-demux
+fate-dynacolor-demux: CMD = framecrc -i 
$(TARGET_SAMPLES)/dynacolor/dynacolor-camera-sample -c copy -copyinkf
+
+FATE_SAMPLES_FFMPEG += $(FATE_DYNACOLOR-yes)
+fate-dynacolor: $(FATE_DYNACOLOR-yes)
diff --git a/tests/ref/fate/dynacolor-demux b/tests/ref/fate/dynacolor-demux
new file mode 100644
index 00000000000..d57601b5cbf
--- /dev/null
+++ b/tests/ref/fate/dynacolor-demux
@@ -0,0 +1,355 @@
+#extradata 0:       19, 0x14fa035e
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: mpeg4
+#dimensions 0: 720x576
+#sar 0: 1/1
+0,          0,          0,        1,    12045, 0xd5189e93, F=0x0
+0,          1,          1,        1,    12061, 0x7cc16c9c, F=0x0
+0,          2,          2,        1,    12072, 0x9206db9b, F=0x0
+0,          3,          3,        1,    11996, 0x32a140b0, F=0x0
+0,          4,          4,        1,    12085, 0x6307a766, F=0x0
+0,          5,          5,        1,    15894, 0x7bec1b82, F=0x0
+0,          6,          6,        1,    16514, 0xdf6c1c8d, F=0x0
+0,          7,          7,        1,    24133, 0x179a3c98
+0,          8,          8,        1,     6051, 0xba71d18b, F=0x0
+0,          9,          9,        1,    12274, 0xa08f82c4, F=0x0
+0,         10,         10,        1,    24822, 0x5cabc59b, F=0x0
+0,         11,         11,        1,    12672, 0x3d4a3f74, F=0x0
+0,         12,         12,        1,    11932, 0x87c2d9b4, F=0x0
+0,         13,         13,        1,     9997, 0xeed82b53, F=0x0
+0,         14,         14,        1,    11161, 0x46273b0b, F=0x0
+0,         15,         15,        1,     9558, 0x47c54f8b, F=0x0
+0,         16,         16,        1,    10524, 0x67141d4b, F=0x0
+0,         17,         17,        1,     9376, 0xad3c2857, F=0x0
+0,         18,         18,        1,    12320, 0x689e57a6, F=0x0
+0,         25,         25,        1,    10202, 0x85909127, F=0x0
+0,         26,         26,        1,    13834, 0x3ab681e5, F=0x0
+0,         27,         27,        1,    11131, 0xe1dd2eb3, F=0x0
+0,         28,         28,        1,    14773, 0xe4e52dbf, F=0x0
+0,         29,         29,        1,    15073, 0x25315898, F=0x0
+0,         30,         30,        1,    12400, 0xa355885d, F=0x0
+0,         31,         31,        1,    14667, 0xa1bf781b, F=0x0
+0,         32,         32,        1,    13352, 0xaa55cf41, F=0x0
+0,         33,         33,        1,    14845, 0x9f50e907, F=0x0
+0,         34,         34,        1,    15251, 0xb80d0621, F=0x0
+0,         35,         35,        1,    14190, 0xe63f72e7, F=0x0
+0,         36,         36,        1,    15179, 0xe0b2ea24, F=0x0
+0,         37,         37,        1,    12654, 0x0ea65d01, F=0x0
+0,         38,         38,        1,    10505, 0xcb9db65e, F=0x0
+0,         39,         39,        1,    12622, 0xff528afa, F=0x0
+0,         40,         40,        1,    10285, 0x50c0e0f1, F=0x0
+0,         41,         41,        1,    13528, 0x2b91cad4, F=0x0
+0,         42,         42,        1,    11063, 0x71fa0cf0, F=0x0
+0,         43,         43,        1,    52515, 0xec579d0d
+0,         44,         44,        1,    15890, 0xcb6618d2, F=0x0
+0,         45,         45,        1,    14854, 0xc08d8450, F=0x0
+0,         46,         46,        1,    13647, 0x7abe4ed6, F=0x0
+0,         50,         50,        1,    12018, 0x34f85ae1, F=0x0
+0,         51,         51,        1,    12690, 0xc8a64fe4, F=0x0
+0,         52,         52,        1,    12507, 0x3e073b2b, F=0x0
+0,         53,         53,        1,    12241, 0x7251f9b5, F=0x0
+0,         54,         54,        1,    12166, 0x903dc2c7, F=0x0
+0,         55,         55,        1,    12388, 0x7f7136c4, F=0x0
+0,         56,         56,        1,    12635, 0x03619d5a, F=0x0
+0,         57,         57,        1,    11368, 0xd35e8a7e, F=0x0
+0,         58,         58,        1,    12232, 0x714ed319, F=0x0
+0,         59,         59,        1,    16114, 0x36f25842, F=0x0
+0,         60,         60,        1,    16424, 0xf6f6d8bf, F=0x0
+0,         61,         61,        1,     6978, 0x713411eb, F=0x0
+0,         62,         62,        1,     5651, 0xb7c8068c, F=0x0
+0,         63,         63,        1,     9763, 0xdcd5ffcc, F=0x0
+0,         64,         64,        1,    17757, 0x5d6c5226, F=0x0
+0,         65,         65,        1,    10538, 0x76c37240, F=0x0
+0,         66,         66,        1,    12248, 0xe18cc186, F=0x0
+0,         67,         67,        1,    10019, 0x298b27a8, F=0x0
+0,         68,         68,        1,    11210, 0x47273e0f, F=0x0
+0,         69,         69,        1,     9537, 0x2374713a, F=0x0
+0,         70,         70,        1,    10834, 0x82b69896, F=0x0
+0,         71,         71,        1,     9322, 0xb03e134f, F=0x0
+0,         72,         72,        1,    12393, 0xe02e9a20, F=0x0
+0,         73,         73,        1,    10261, 0xe5fa8fd2, F=0x0
+0,         75,         75,        1,    13903, 0x19635a1d, F=0x0
+0,         76,         76,        1,    11327, 0x6b948226, F=0x0
+0,         77,         77,        1,    52566, 0x2ef19a95
+0,         78,         78,        1,    15654, 0x5578f9ad, F=0x0
+0,         79,         79,        1,    16156, 0xfec632a3, F=0x0
+0,         80,         80,        1,    13292, 0x8fda0c29, F=0x0
+0,         81,         81,        1,    14360, 0x89ede0ba, F=0x0
+0,         82,         82,        1,    15794, 0x934c8841, F=0x0
+0,         83,         83,        1,    14596, 0xba4dae3f, F=0x0
+0,         84,         84,        1,    14041, 0xe7a58888, F=0x0
+0,         85,         85,        1,    14204, 0xb9a5d0c9, F=0x0
+0,         86,         86,        1,    13374, 0x89a0af35, F=0x0
+0,         87,         87,        1,    12569, 0x9bc1194d, F=0x0
+0,         88,         88,        1,    10036, 0x0a522342, F=0x0
+0,         89,         89,        1,    10204, 0xf34b6f5c, F=0x0
+0,         90,         90,        1,    13423, 0x28dfef3f, F=0x0
+0,         91,         91,        1,    10933, 0x9278d0b8, F=0x0
+0,         92,         92,        1,    14088, 0xea44d551, F=0x0
+0,         93,         93,        1,    12772, 0x05a903a6, F=0x0
+0,         94,         94,        1,    12457, 0x73ca47d2, F=0x0
+0,         95,         95,        1,    12675, 0xab7ccf59, F=0x0
+0,        100,        100,        1,    11697, 0xdaccfd22, F=0x0
+0,        101,        101,        1,    12152, 0xb230ab70, F=0x0
+0,        102,        102,        1,    12240, 0x8243088b, F=0x0
+0,        103,        103,        1,    12231, 0xcffd1c46, F=0x0
+0,        104,        104,        1,    12307, 0xa8dfed8d, F=0x0
+0,        105,        105,        1,    13032, 0xb676d1ec, F=0x0
+0,        106,        106,        1,    11723, 0x8c2b1d67, F=0x0
+0,        107,        107,        1,    11802, 0x92020029, F=0x0
+0,        108,        108,        1,    12268, 0x4672fe9a, F=0x0
+0,        109,        109,        1,    15926, 0x9aefebea, F=0x0
+0,        110,        110,        1,    16510, 0x9a36c050, F=0x0
+0,        111,        111,        1,    24247, 0x18b080c6
+0,        112,        112,        1,     6175, 0x9f3f1533, F=0x0
+0,        113,        113,        1,    28632, 0x302ca9a0, F=0x0
+0,        114,        114,        1,    14976, 0x4e34b3b8, F=0x0
+0,        115,        115,        1,    11693, 0x73bd5634, F=0x0
+0,        116,        116,        1,    10445, 0x42091bc2, F=0x0
+0,        117,        117,        1,     9979, 0x72fb58f7, F=0x0
+0,        118,        118,        1,    10366, 0xf13508cb, F=0x0
+0,        119,        119,        1,     9394, 0x3e9e3462, F=0x0
+0,        120,        120,        1,    10572, 0x67726082, F=0x0
+0,        121,        121,        1,     9399, 0x121338a7, F=0x0
+0,        122,        122,        1,    12156, 0xff8b2957, F=0x0
+0,        125,        125,        1,    10286, 0xc86abd80, F=0x0
+0,        126,        126,        1,    13952, 0x63e08cc2, F=0x0
+0,        127,        127,        1,    10960, 0x02e2f71b, F=0x0
+0,        128,        128,        1,    14565, 0xcf816cd7, F=0x0
+0,        129,        129,        1,    11958, 0x64b07934, F=0x0
+0,        130,        130,        1,    14608, 0xb128b95c, F=0x0
+0,        131,        131,        1,    12742, 0xd67ae692, F=0x0
+0,        132,        132,        1,    14564, 0x25695095, F=0x0
+0,        133,        133,        1,    12989, 0xfc15254f, F=0x0
+0,        134,        134,        1,    15028, 0xa7f35f42, F=0x0
+0,        135,        135,        1,    15702, 0x13e0859e, F=0x0
+0,        136,        136,        1,    13805, 0x0cef376d, F=0x0
+0,        137,        137,        1,    13380, 0x2ac35ec0, F=0x0
+0,        138,        138,        1,    12695, 0xb2bc7e48, F=0x0
+0,        139,        139,        1,    10113, 0x908c6d88, F=0x0
+0,        140,        140,        1,    10085, 0x618e3a12, F=0x0
+0,        141,        141,        1,    13965, 0x13220424, F=0x0
+0,        142,        142,        1,    13578, 0x4052b30d, F=0x0
+0,        143,        143,        1,    52436, 0x157b3520
+0,        144,        144,        1,    15844, 0x95800712, F=0x0
+0,        145,        145,        1,    14734, 0xba0c9e04, F=0x0
+0,        146,        146,        1,    13247, 0x3c27d1a5, F=0x0
+0,        150,        150,        1,    13095, 0x168b56c2, F=0x0
+0,        151,        151,        1,    11992, 0xe75f60a8, F=0x0
+0,        152,        152,        1,    12267, 0x31aed72a, F=0x0
+0,        153,        153,        1,    12444, 0x76b25490, F=0x0
+0,        154,        154,        1,    12175, 0xe1d9b5a3, F=0x0
+0,        155,        155,        1,    12412, 0x7d36281b, F=0x0
+0,        156,        156,        1,    12119, 0xaa30a958, F=0x0
+0,        157,        157,        1,    12497, 0x1da125c6, F=0x0
+0,        158,        158,        1,    11791, 0x5af333da, F=0x0
+0,        159,        159,        1,    20198, 0x8b201b06, F=0x0
+0,        160,        160,        1,     7174, 0xc043ae3f, F=0x0
+0,        161,        161,        1,     5648, 0x346423d9, F=0x0
+0,        162,        162,        1,     5132, 0x555c499b, F=0x0
+0,        163,        163,        1,    25330, 0xed20dc16, F=0x0
+0,        164,        164,        1,    11875, 0xb9fbbb4a, F=0x0
+0,        165,        165,        1,    10508, 0x8040508a, F=0x0
+0,        166,        166,        1,    11355, 0xef83b9df, F=0x0
+0,        167,        167,        1,     9881, 0xf82dff4e, F=0x0
+0,        168,        168,        1,    10798, 0xe1d00a30, F=0x0
+0,        169,        169,        1,     9417, 0x2af78517, F=0x0
+0,        170,        170,        1,    10446, 0x01f0cfe5, F=0x0
+0,        171,        171,        1,     9293, 0x170607d0, F=0x0
+0,        172,        172,        1,    12356, 0x239d9891, F=0x0
+0,        175,        175,        1,    10309, 0x2f3df991, F=0x0
+0,        176,        176,        1,    13749, 0x2490de50, F=0x0
+0,        177,        177,        1,    11125, 0x2ebf092d, F=0x0
+0,        178,        178,        1,    52279, 0x383db4bf
+0,        179,        179,        1,    15489, 0x9bc47e10, F=0x0
+0,        180,        180,        1,    16061, 0x215f4ccd, F=0x0
+0,        181,        181,        1,    13351, 0xb2dc7d84, F=0x0
+0,        182,        182,        1,    14536, 0x61973d1d, F=0x0
+0,        183,        183,        1,    13236, 0x4c4ef675, F=0x0
+0,        184,        184,        1,    15152, 0x9c4e78ad, F=0x0
+0,        185,        185,        1,    15926, 0x1e8501fa, F=0x0
+0,        186,        186,        1,    14027, 0x7f66c48b, F=0x0
+0,        187,        187,        1,    13428, 0xa6cc7528, F=0x0
+0,        188,        188,        1,    12796, 0x3459a6fb, F=0x0
+0,        189,        189,        1,    12519, 0xd28c2b9c, F=0x0
+0,        190,        190,        1,    10125, 0xf0e89548, F=0x0
+0,        191,        191,        1,    13431, 0xd970bce9, F=0x0
+0,        192,        192,        1,    13192, 0xe2f7fe83, F=0x0
+0,        193,        193,        1,    13094, 0x0c4db15f, F=0x0
+0,        194,        194,        1,    12590, 0x6825ba81, F=0x0
+0,        195,        195,        1,    12392, 0x22003fa7, F=0x0
+0,        196,        196,        1,    12688, 0x588e7cbb, F=0x0
+0,        200,        200,        1,    11658, 0xae76001c, F=0x0
+0,        201,        201,        1,    12109, 0x34b4ab1d, F=0x0
+0,        202,        202,        1,    12219, 0xde19e519, F=0x0
+0,        203,        203,        1,    12260, 0xb9eb336a, F=0x0
+0,        204,        204,        1,    12015, 0x9dc94d1b, F=0x0
+0,        205,        205,        1,    12131, 0x6b1d89c5, F=0x0
+0,        206,        206,        1,    11929, 0xa7168509, F=0x0
+0,        207,        207,        1,    12485, 0x47eb1f93, F=0x0
+0,        208,        208,        1,    11560, 0x1a19bc52, F=0x0
+0,        209,        209,        1,    19963, 0x24838689, F=0x0
+0,        210,        210,        1,     7129, 0x9c78a055, F=0x0
+0,        211,        211,        1,    24309, 0x1c30652b
+0,        212,        212,        1,     6155, 0xc60a1233, F=0x0
+0,        213,        213,        1,    28537, 0x33c3c582, F=0x0
+0,        214,        214,        1,    15120, 0x497f49fa, F=0x0
+0,        215,        215,        1,    11931, 0xf0d994b1, F=0x0
+0,        216,        216,        1,    11339, 0x124986e7, F=0x0
+0,        217,        217,        1,     9699, 0x11d8a467, F=0x0
+0,        218,        218,        1,    10519, 0x75881a51, F=0x0
+0,        219,        219,        1,     9530, 0xeec69d0f, F=0x0
+0,        220,        220,        1,    12096, 0x2bd04ae0, F=0x0
+0,        221,        221,        1,    10069, 0x88f475ea, F=0x0
+0,        222,        222,        1,    13881, 0x7fdc83c5, F=0x0
+0,        225,        225,        1,    11209, 0x049f5eff, F=0x0
+0,        226,        226,        1,    14486, 0xf8c6a89c, F=0x0
+0,        227,        227,        1,    12021, 0xea9ad285, F=0x0
+0,        228,        228,        1,    14703, 0x763ebc17, F=0x0
+0,        229,        229,        1,    12772, 0x48a90543, F=0x0
+0,        230,        230,        1,    14658, 0x10cd7b26, F=0x0
+0,        231,        231,        1,    13443, 0xd2fd1cda, F=0x0
+0,        232,        232,        1,    15125, 0x45707517, F=0x0
+0,        233,        233,        1,    15559, 0x772c1671, F=0x0
+0,        234,        234,        1,    14155, 0x1b88490c, F=0x0
+0,        235,        235,        1,    13232, 0x187513c2, F=0x0
+0,        236,        236,        1,    13264, 0xbff12c25, F=0x0
+0,        237,        237,        1,    12436, 0x68a0792e, F=0x0
+0,        238,        238,        1,    10921, 0x2c25c8aa, F=0x0
+0,        239,        239,        1,    11422, 0x296c8903, F=0x0
+0,        240,        240,        1,    11317, 0xe99778d2, F=0x0
+0,        241,        241,        1,    11187, 0x57425b47, F=0x0
+0,        242,        242,        1,    10898, 0xf113c732, F=0x0
+0,        243,        243,        1,    48464, 0x46711dfa
+0,        244,        244,        1,    14693, 0x3978f9fd, F=0x0
+0,        245,        245,        1,    13166, 0x470daa1a, F=0x0
+0,        246,        246,        1,    11976, 0xad05acc5, F=0x0
+0,        250,        250,        1,    11800, 0x813afaa4, F=0x0
+0,        251,        251,        1,    11058, 0x6d14bfbb, F=0x0
+0,        252,        252,        1,    11112, 0xca9ef5d9, F=0x0
+0,        253,        253,        1,    11216, 0x18832e37, F=0x0
+0,        254,        254,        1,    11043, 0x5a98e5c3, F=0x0
+0,        255,        255,        1,    11035, 0xf9ab181f, F=0x0
+0,        256,        256,        1,    11390, 0x2fae86e1, F=0x0
+0,        257,        257,        1,    10319, 0xba2b948b, F=0x0
+0,        258,        258,        1,    15343, 0x1e02c072, F=0x0
+0,        259,        259,        1,    15774, 0x0a288c98, F=0x0
+0,        260,        260,        1,     6899, 0x1b5b307f, F=0x0
+0,        261,        261,        1,     5525, 0x1d29de1e, F=0x0
+0,        262,        262,        1,     9831, 0x5182ea58, F=0x0
+0,        263,        263,        1,    21975, 0xc32894b0, F=0x0
+0,        264,        264,        1,    14079, 0x48fad1f5, F=0x0
+0,        265,        265,        1,    11256, 0x68e18433, F=0x0
+0,        266,        266,        1,    10426, 0x4e92fa0d, F=0x0
+0,        267,        267,        1,    10440, 0xc2272c90, F=0x0
+0,        268,        268,        1,     9396, 0xc44d18cc, F=0x0
+0,        269,        269,        1,    10456, 0x3383095e, F=0x0
+0,        270,        270,        1,     9176, 0x6256c623, F=0x0
+0,        271,        271,        1,    10238, 0xef41d36f, F=0x0
+0,        272,        272,        1,    13895, 0x1b69b3f8, F=0x0
+0,        273,        273,        1,    11175, 0xf614364b, F=0x0
+0,        275,        275,        1,    14944, 0xb92a3722, F=0x0
+0,        276,        276,        1,    12148, 0x8aecf67c, F=0x0
+0,        277,        277,        1,    53700, 0xdc39afef
+0,        278,        278,        1,    16302, 0x8b761320, F=0x0
+0,        279,        279,        1,    16252, 0xef683f74, F=0x0
+0,        280,        280,        1,    14009, 0x655861d7, F=0x0
+0,        281,        281,        1,    14597, 0x8c7d4a19, F=0x0
+0,        282,        282,        1,    15007, 0xdb1f2dc4, F=0x0
+0,        283,        283,        1,    13960, 0x933d62f4, F=0x0
+0,        284,        284,        1,    13783, 0x25d9c7de, F=0x0
+0,        285,        285,        1,    13277, 0xe9f93755, F=0x0
+0,        286,        286,        1,    12870, 0xad89de56, F=0x0
+0,        287,        287,        1,    11363, 0xbd54ec1c, F=0x0
+0,        288,        288,        1,     9231, 0xa307dfe7, F=0x0
+0,        289,        289,        1,     8740, 0xeba0f100, F=0x0
+0,        290,        290,        1,     8687, 0x11501678, F=0x0
+0,        291,        291,        1,     8302, 0x035e0790, F=0x0
+0,        292,        292,        1,     8345, 0x8c114211, F=0x0
+0,        293,        293,        1,     8154, 0x52b9da51, F=0x0
+0,        294,        294,        1,     8167, 0x73b3d631, F=0x0
+0,        295,        295,        1,     7989, 0x4ffaa41f, F=0x0
+0,        296,        296,        1,     8485, 0x96c35054, F=0x0
+0,        300,        300,        1,     8726, 0xf9043ff3, F=0x0
+0,        301,        301,        1,     7942, 0x216c74dd, F=0x0
+0,        302,        302,        1,     8314, 0x2c3b61a4, F=0x0
+0,        303,        303,        1,     8157, 0x40e6e449, F=0x0
+0,        304,        304,        1,     8154, 0x43ece6a4, F=0x0
+0,        305,        305,        1,     7957, 0xfe6d95cb, F=0x0
+0,        306,        306,        1,     8431, 0x61cf6a98, F=0x0
+0,        307,        307,        1,     8131, 0xa20ed8da, F=0x0
+0,        308,        308,        1,     8280, 0x9a0316a8, F=0x0
+0,        309,        309,        1,     8059, 0xc554c14e, F=0x0
+0,        310,        310,        1,    40240, 0xc1c3d6b2
+0,        311,        311,        1,    14311, 0x43a1b546, F=0x0
+0,        312,        312,        1,     6669, 0xd1e9e62f, F=0x0
+0,        313,        313,        1,     5359, 0x03ecb54e, F=0x0
+0,        314,        314,        1,     9618, 0x26288bf6, F=0x0
+0,        315,        315,        1,    22285, 0x4e1f4105, F=0x0
+0,        316,        316,        1,    14372, 0xfdaa7ad1, F=0x0
+0,        317,        317,        1,    11387, 0x5351b970, F=0x0
+0,        318,        318,        1,    10602, 0x5a268b15, F=0x0
+0,        319,        319,        1,    10649, 0x913686a0, F=0x0
+0,        320,        320,        1,    10657, 0x8e786215, F=0x0
+0,        321,        321,        1,     9036, 0xdafb9f6e, F=0x0
+0,        322,        322,        1,    12059, 0x92e70359, F=0x0
+0,        323,        323,        1,    10154, 0x2c39a448, F=0x0
+0,        325,        325,        1,    13734, 0xe3a0fef3, F=0x0
+0,        326,        326,        1,    11154, 0x02f36a94, F=0x0
+0,        327,        327,        1,    14797, 0xbb67f806, F=0x0
+0,        328,        328,        1,    12219, 0xb0aff172, F=0x0
+0,        329,        329,        1,    14789, 0xc76ddabd, F=0x0
+0,        330,        330,        1,    12744, 0xfafcd0a4, F=0x0
+0,        331,        331,        1,    14608, 0x9e5e7f5c, F=0x0
+0,        332,        332,        1,    13276, 0x0abdb5ce, F=0x0
+0,        333,        333,        1,    14064, 0x35577976, F=0x0
+0,        334,        334,        1,    14917, 0xeb40488c, F=0x0
+0,        335,        335,        1,    14794, 0x669b26cf, F=0x0
+0,        336,        336,        1,    13462, 0xcb084f19, F=0x0
+0,        337,        337,        1,    13206, 0x94e3253f, F=0x0
+0,        338,        338,        1,    12400, 0xc0218947, F=0x0
+0,        339,        339,        1,    10975, 0x8be99a5a, F=0x0
+0,        340,        340,        1,    11432, 0x0d80962c, F=0x0
+0,        341,        341,        1,    48288, 0xc4ee5c63
+0,        342,        342,        1,    14492, 0x9bea8676, F=0x0
+0,        343,        343,        1,    13337, 0x74b20cfd, F=0x0
+0,        344,        344,        1,    12029, 0x7230d3e4, F=0x0
+0,        345,        345,        1,    11455, 0xa9268869, F=0x0
+0,        346,        346,        1,    11392, 0xe0cda465, F=0x0
+0,        350,        350,        1,    11075, 0x6f38fa33, F=0x0
+0,        351,        351,        1,    11398, 0xffda61b0, F=0x0
+0,        352,        352,        1,    10576, 0xdce822ec, F=0x0
+0,        353,        353,        1,    10890, 0x497a93f8, F=0x0
+0,        354,        354,        1,    10882, 0x50978f2f, F=0x0
+0,        355,        355,        1,    10996, 0x350c9af2, F=0x0
+0,        356,        356,        1,    10904, 0x6066aefb, F=0x0
+0,        357,        357,        1,    10786, 0x4a8660f3, F=0x0
+0,        358,        358,        1,    10876, 0xf2719ab8, F=0x0
+0,        359,        359,        1,    10685, 0xe0fd13ba, F=0x0
+0,        360,        360,        1,    15327, 0xcc8bed0b, F=0x0
+0,        361,        361,        1,    15808, 0x7a5c8c21, F=0x0
+0,        362,        362,        1,     7017, 0x354742f9, F=0x0
+0,        363,        363,        1,     5796, 0x6278358b, F=0x0
+0,        364,        364,        1,     9986, 0x50b74dd5, F=0x0
+0,        365,        365,        1,    22566, 0x78c924cc, F=0x0
+0,        366,        366,        1,    12264, 0x77f53e7f, F=0x0
+0,        367,        367,        1,    10518, 0x75959acc, F=0x0
+0,        368,        368,        1,    11121, 0xc3fb4bf1, F=0x0
+0,        369,        369,        1,     9665, 0x03cacd25, F=0x0
+0,        370,        370,        1,    10551, 0xec76ffa6, F=0x0
+0,        371,        371,        1,     9329, 0x9dc72bae, F=0x0
+0,        372,        372,        1,    12148, 0x81545b35, F=0x0
+0,        375,        375,        1,    10068, 0xb31055e5, F=0x0
+0,        376,        376,        1,    50286, 0xf38c1379
+0,        377,        377,        1,    14419, 0xf0a67ebc, F=0x0
+0,        378,        378,        1,    15767, 0x046ad5a8, F=0x0
+0,        379,        379,        1,    12681, 0x666f48f9, F=0x0
+0,        380,        380,        1,    14594, 0x99a37db0, F=0x0
+0,        381,        381,        1,    12879, 0x2c4d4120, F=0x0
+0,        382,        382,        1,    14046, 0xf9f76b3e, F=0x0
+0,        383,        383,        1,    14526, 0xc55f60dd, F=0x0
+0,        384,        384,        1,    13566, 0xf6f38e1e, F=0x0
+0,        385,        385,        1,    15231, 0x5f61c825, F=0x0
+0,        386,        386,        1,    14594, 0x1c6c93cf, F=0x0
+0,        387,        387,        1,    11504, 0x30d1c94f, F=0x2
-- 
2.54.0


>From 580d1760fb689bdf3d8d10355ec44227c766b9ee Mon Sep 17 00:00:00 2001
From: Tom Needham <[email protected]>
Date: Sun, 15 Nov 2026 15:35:19 +0000
Subject: [PATCH 2/2] avformat: add Dynacolor MVC muxer

Video streams are written as separate channels. The record time is
derived from creation_time and the packet dts, and the PAL/NTSC flag
from the stream frame rate, so that remuxing a file demuxed by the
Dynacolor demuxer with stream copy and -map_metadata 0 reproduces the
same packets and timestamps.

The new remux_roundtrip FATE helper muxes the input, remuxes the result
into the same format and prints the checksums of both files, which must
be identical, followed by the packets demuxed from the second one. For
the sample, these match fate-dynacolor-demux except for the corrupt
flag of its truncated last packet. For the MPEG-4 test they match the
packets produced by the encoder.

Signed-off-by: Tom Needham <[email protected]>
---
 Changelog                      |   2 +-
 doc/general_contents.texi      |   2 +-
 libavformat/Makefile           |   1 +
 libavformat/allformats.c       |   1 +
 libavformat/dynacolorenc.c     | 184 +++++++++++++++++
 libavformat/version.h          |   2 +-
 tests/fate-run.sh              |  29 +++
 tests/fate/dynacolor.mak       |  11 +-
 tests/fate/lavf-container.mak  |   2 +
 tests/ref/fate/dynacolor-mpeg4 |  83 ++++++++
 tests/ref/fate/dynacolor-remux | 357 +++++++++++++++++++++++++++++++++
 tests/ref/lavf/dynacolor       |   3 +
 12 files changed, 673 insertions(+), 4 deletions(-)
 create mode 100644 libavformat/dynacolorenc.c
 create mode 100644 tests/ref/fate/dynacolor-mpeg4
 create mode 100644 tests/ref/fate/dynacolor-remux
 create mode 100644 tests/ref/lavf/dynacolor

diff --git a/Changelog b/Changelog
index 17d9551a3ea..92ac871a399 100644
--- a/Changelog
+++ b/Changelog
@@ -6,7 +6,7 @@ version <next>:
 - LCEVC raw demuxer and muxer
 - AVS+ (AVS1-P16, Broadcasting profile) support in the Chinese AVS decoder
 - PCM PAMF decoder
-- Dynacolor MVC demuxer
+- Dynacolor MVC demuxer and muxer
 
 version 9.1:
 - ASTC image encoding and decoding via libastcenc, with .astc and KTX 1.0 
muxers and demuxers
diff --git a/doc/general_contents.texi b/doc/general_contents.texi
index 90be22fe2ad..859807faf0b 100644
--- a/doc/general_contents.texi
+++ b/doc/general_contents.texi
@@ -601,7 +601,7 @@ library:
 @item DXA                       @tab   @tab X
     @tab This format is used in the non-Windows version of the Feeble Files
          game and different game cutscenes repacked for use with ScummVM.
-@item Dynacolor MVC             @tab   @tab X
+@item Dynacolor MVC             @tab X @tab X
     @tab Format used by surveillance cameras and DVRs with a Dynacolor chipset.
 @item Electronic Arts cdata  @tab    @tab X
 @item Electronic Arts Multimedia  @tab    @tab X
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 691ae3da626..c0d9c8f084e 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -216,6 +216,7 @@ OBJS-$(CONFIG_DVBTXT_DEMUXER)            += dvbtxt.o 
rawdec.o
 OBJS-$(CONFIG_DVDVIDEO_DEMUXER)          += dvdvideodec.o dvdclut.o
 OBJS-$(CONFIG_DXA_DEMUXER)               += dxa.o
 OBJS-$(CONFIG_DYNACOLOR_DEMUXER)         += dynacolordec.o
+OBJS-$(CONFIG_DYNACOLOR_MUXER)           += dynacolorenc.o
 OBJS-$(CONFIG_EA_CDATA_DEMUXER)          += eacdata.o
 OBJS-$(CONFIG_EA_DEMUXER)                += electronicarts.o
 OBJS-$(CONFIG_EAC3_DEMUXER)              += ac3dec.o rawdec.o
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index ff672c1c861..33c16ea11d3 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -157,6 +157,7 @@ extern const FFInputFormat  ff_dvbsub_demuxer;
 extern const FFInputFormat  ff_dvbtxt_demuxer;
 extern const FFInputFormat  ff_dxa_demuxer;
 extern const FFInputFormat  ff_dynacolor_demuxer;
+extern const FFOutputFormat ff_dynacolor_muxer;
 extern const FFInputFormat  ff_ea_demuxer;
 extern const FFInputFormat  ff_ea_cdata_demuxer;
 extern const FFInputFormat  ff_eac3_demuxer;
diff --git a/libavformat/dynacolorenc.c b/libavformat/dynacolorenc.c
new file mode 100644
index 00000000000..1de832420c0
--- /dev/null
+++ b/libavformat/dynacolorenc.c
@@ -0,0 +1,184 @@
+/*
+ * Dynacolor MVC muxer
+ * Copyright (c) 2021-2026 Tom Needham
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "libavutil/intreadwrite.h"
+#include "libavutil/mathematics.h"
+#include "libavutil/mem.h"
+
+#include "avformat.h"
+#include "dynacolor.h"
+#include "internal.h"
+#include "mux.h"
+
+typedef struct DynacolorMuxStream {
+    int     format;
+    int     pal;
+    int     width_base;
+    int64_t last_time;
+} DynacolorMuxStream;
+
+typedef struct DynacolorMuxContext {
+    int64_t  start_time;
+    uint32_t serial;
+} DynacolorMuxContext;
+
+/* Unused PES header bytes 6-23, as found in files written by Dynacolor 
devices. */
+static const uint8_t pes_filler[18] = {
+    0x87, 0x01, 0x17, 0x31, 0x00, 0x01, 0x00, 0x01, 0x11,
+    0x00, 0x01, 0x00, 0x01, 0x0F, 0x8B, 0x00, 0x00, 0x00,
+};
+
+static int dynacolor_init(AVFormatContext *s)
+{
+    DynacolorMuxContext *dyn = s->priv_data;
+    int ret;
+
+    if (s->nb_streams > DYNACOLOR_MAX_CHANNELS) {
+        av_log(s, AV_LOG_ERROR, "At most %d streams are supported\n",
+               DYNACOLOR_MAX_CHANNELS);
+        return AVERROR(EINVAL);
+    }
+
+    ret = ff_parse_creation_time_metadata(s, &dyn->start_time, 1);
+    if (ret < 0)
+        return ret;
+    if (dyn->start_time < 0 || dyn->start_time > UINT32_MAX) {
+        av_log(s, AV_LOG_ERROR, "creation_time out of range\n");
+        return AVERROR(EINVAL);
+    }
+
+    for (unsigned i = 0; i < s->nb_streams; i++) {
+        AVStream *st = s->streams[i];
+        const AVCodecParameters *par = st->codecpar;
+        DynacolorMuxStream *dst;
+        AVRational rate;
+
+        if (par->codec_type != AVMEDIA_TYPE_VIDEO) {
+            av_log(s, AV_LOG_ERROR, "Only video streams are supported\n");
+            return AVERROR_PATCHWELCOME;
+        }
+
+        dst = st->priv_data = av_mallocz(sizeof(*dst));
+        if (!dst)
+            return AVERROR(ENOMEM);
+        dst->last_time = dyn->start_time;
+
+        switch (par->codec_id) {
+        case AV_CODEC_ID_MJPEG: dst->format = DYNACOLOR_FORMAT_JPEG;  break;
+        case AV_CODEC_ID_MPEG4: dst->format = DYNACOLOR_FORMAT_MPEG4; break;
+        case AV_CODEC_ID_H264:  dst->format = DYNACOLOR_FORMAT_H264;  break;
+        default:
+            av_log(s, AV_LOG_ERROR, "Codec %s is not supported\n",
+                   avcodec_get_name(par->codec_id));
+            return AVERROR(EINVAL);
+        }
+
+        /* Frame rates above 25 fps can only be represented by NTSC. */
+        rate = st->r_frame_rate;
+        if (rate.num <= 0 || rate.den <= 0)
+            rate = st->avg_frame_rate;
+        dst->pal = rate.num <= 0 || rate.den <= 0 || av_cmp_q(rate, 
(AVRational){ 25, 1 }) <= 0;
+
+        switch (par->width) {
+        case 704: dst->width_base = 1; break;
+        case 640: dst->width_base = 2; break;
+        default:  dst->width_base = 0; break;
+        }
+    }
+
+    return 0;
+}
+
+static int dynacolor_write_packet(AVFormatContext *s, AVPacket *pkt)
+{
+    DynacolorMuxContext *dyn = s->priv_data;
+    AVStream *st = s->streams[pkt->stream_index];
+    DynacolorMuxStream *dst = st->priv_data;
+    AVIOContext *pb = s->pb;
+    uint8_t buf[DYNACOLOR_BASIC_IDX_SIZE + DYNACOLOR_EXTRA_IDX_SIZE + 
DYNACOLOR_PES_HEADER_SIZE];
+    uint8_t *basic = buf;
+    uint8_t *extra = basic + DYNACOLOR_BASIC_IDX_SIZE;
+    uint8_t *pes   = extra + DYNACOLOR_EXTRA_IDX_SIZE;
+    int channel    = pkt->stream_index;
+    int pic_type   = pkt->flags & AV_PKT_FLAG_KEY ? DYNACOLOR_PICTURE_I : 
DYNACOLOR_PICTURE_P;
+    int64_t time;
+    uint32_t size;
+
+    if (pkt->size > DYNACOLOR_MAX_RECORD_SIZE - DYNACOLOR_PES_HEADER_SIZE) {
+        av_log(s, AV_LOG_ERROR, "Packet of size %d is too large\n", pkt->size);
+        return AVERROR(EINVAL);
+    }
+    size = pkt->size + DYNACOLOR_PES_HEADER_SIZE;
+
+    time = dst->last_time;
+    if (pkt->dts != AV_NOPTS_VALUE)
+        time = dyn->start_time + av_rescale_rnd(pkt->dts, st->time_base.num,
+                                                st->time_base.den, 
AV_ROUND_DOWN);
+    if (time < 0 || time > UINT32_MAX) {
+        av_log(s, AV_LOG_ERROR, "Timestamp out of range\n");
+        return AVERROR(EINVAL);
+    }
+    dst->last_time = time;
+
+    memset(buf, 0, sizeof(buf));
+
+    basic[0]  = '@';
+    basic[1]  = '2';
+    basic[2]  = dst->width_base << 5;
+    basic[3]  = channel >> 5;
+    AV_WL32(basic + 4, size);
+    AV_WL32(basic + 8, time);
+    basic[12] = dst->pal;
+    basic[13] = 1; /* extra index present */
+    basic[14] = (channel & 0x1F) << 3 | pic_type;
+    basic[15] = ff_dynacolor_checksum(basic, 15);
+
+    AV_WL32(extra + 4, dyn->serial++);
+    extra[15] = ff_dynacolor_checksum(extra, 15);
+
+    AV_WB24(pes, 1);
+    pes[3]  = dst->format << 4 | (channel & 0xF);
+    AV_WB16(pes + 4, size - 6 <= UINT16_MAX ? size - 6 : 0);
+    memcpy(pes + 6, pes_filler, sizeof(pes_filler));
+    pes[24] = 0x80 | (size >> 15 & 0x7F);
+    pes[25] = (size >> 11 & 0xF) << 4 | 0x08 | (size >> 8 & 0x7);
+    pes[26] = size & 0xFF;
+    pes[27] = pic_type;
+    AV_WN32(pes + 28, 0xFFFFFFFF);
+
+    avio_write(pb, buf, sizeof(buf));
+    avio_write(pb, pkt->data, pkt->size);
+
+    return 0;
+}
+
+const FFOutputFormat ff_dynacolor_muxer = {
+    .p.name           = "dynacolor",
+    .p.long_name      = NULL_IF_CONFIG_SMALL("Dynacolor MVC"),
+    .p.extensions     = "dyna,dyn",
+    .p.audio_codec    = AV_CODEC_ID_NONE,
+    .p.video_codec    = AV_CODEC_ID_MPEG4,
+    .p.subtitle_codec = AV_CODEC_ID_NONE,
+    .p.flags          = AVFMT_VARIABLE_FPS,
+    .priv_data_size   = sizeof(DynacolorMuxContext),
+    .init             = dynacolor_init,
+    .write_packet     = dynacolor_write_packet,
+};
diff --git a/libavformat/version.h b/libavformat/version.h
index 683184d5da1..2f54f57c024 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -32,7 +32,7 @@
 #include "version_major.h"
 
 #define LIBAVFORMAT_VERSION_MINOR  21
-#define LIBAVFORMAT_VERSION_MICRO 100
+#define LIBAVFORMAT_VERSION_MICRO 101
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                LIBAVFORMAT_VERSION_MINOR, \
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 3c265fce2d4..7cb42a5030f 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -373,6 +373,35 @@ stream_remux(){
         run ffprobe${PROGSUF}${EXECSUF} -bitexact -threads $threads 
$ffprobe_opts $tencfile || return
 }
 
+# Mux the input into enc_fmt, then remux the result into enc_fmt again with
+# stream copy, keeping leading non-keyframes and the global metadata. Both
+# files must be identical, and the packets demuxed from the second one must
+# match those muxed into the first one.
+remux_roundtrip(){
+    src_fmt=$1
+    srcfile=$2
+    enc_fmt=$3
+    enc_opts=${4:--codec copy}
+    encfile1="${outdir}/${test}-1.${enc_fmt}"
+    encfile2="${outdir}/${test}-2.${enc_fmt}"
+    test $keep -ge 1 || cleanfiles="$cleanfiles $encfile1 $encfile2"
+    if [ "$src_fmt" = "lavfi" ]; then
+        tsrcfile="$srcfile"
+    else
+        tsrcfile=$(target_path $srcfile)
+    fi
+    tencfile1=$(target_path $encfile1)
+    tencfile2=$(target_path $encfile2)
+    ffmpeg -f $src_fmt $DEC_OPTS -i $tsrcfile -map_metadata 0 $enc_opts 
-copyinkf \
+        $FLAGS -f $enc_fmt -y $tencfile1 || return
+    ffmpeg -f $enc_fmt $DEC_OPTS -i $tencfile1 -map_metadata 0 -codec copy 
-copyinkf \
+        $FLAGS -f $enc_fmt -y $tencfile2 || return
+    do_md5sum $encfile1 | awk '{print $1}'
+    do_md5sum $encfile2 | awk '{print $1}'
+    ffmpeg -f $enc_fmt $DEC_OPTS -i $tencfile2 -codec copy -copyinkf $FLAGS \
+        -f framecrc - || return
+}
+
 # this function is for testing external encoders,
 # where the precise output is not controlled by us
 # we can still test e.g. that the output can be decoded correctly
diff --git a/tests/fate/dynacolor.mak b/tests/fate/dynacolor.mak
index 450fe8c2da8..006877f166b 100644
--- a/tests/fate/dynacolor.mak
+++ b/tests/fate/dynacolor.mak
@@ -1,5 +1,14 @@
 FATE_DYNACOLOR-$(call FRAMECRC, DYNACOLOR) += fate-dynacolor-demux
 fate-dynacolor-demux: CMD = framecrc -i 
$(TARGET_SAMPLES)/dynacolor/dynacolor-camera-sample -c copy -copyinkf
 
+# The packets demuxed from the remuxed file must match fate-dynacolor-demux,
+# except for the corrupt flag of the truncated last packet of the sample.
+FATE_DYNACOLOR-$(call REMUX, DYNACOLOR) += fate-dynacolor-remux
+fate-dynacolor-remux: CMD = remux_roundtrip dynacolor 
$(TARGET_SAMPLES)/dynacolor/dynacolor-camera-sample dynacolor
+
+FATE_DYNACOLOR_FFMPEG-$(call REMUX, DYNACOLOR, MPEG4_ENCODER LAVFI_INDEV 
TESTSRC2_FILTER) += fate-dynacolor-mpeg4
+fate-dynacolor-mpeg4: CMD = remux_roundtrip lavfi 
"testsrc2=size=176x144:rate=25:duration=3" dynacolor "-c:v mpeg4 -g 25 -threads 
1 -metadata creation_time=2009-01-21T14:21:08Z"
+
 FATE_SAMPLES_FFMPEG += $(FATE_DYNACOLOR-yes)
-fate-dynacolor: $(FATE_DYNACOLOR-yes)
+FATE_FFMPEG += $(FATE_DYNACOLOR_FFMPEG-yes)
+fate-dynacolor: $(FATE_DYNACOLOR-yes) $(FATE_DYNACOLOR_FFMPEG-yes)
diff --git a/tests/fate/lavf-container.mak b/tests/fate/lavf-container.mak
index 3e5eadaaaa6..106f1803efd 100644
--- a/tests/fate/lavf-container.mak
+++ b/tests/fate/lavf-container.mak
@@ -1,6 +1,7 @@
 FATE_LAVF_CONTAINER-$(call ENCDEC2, MSMPEG4V3,  MP2,       ASF)                
+= asf
 FATE_LAVF_CONTAINER-$(call ENCDEC2, MPEG4,      MP2,       AVI)                
+= avi
 FATE_LAVF_CONTAINER-$(call ENCDEC2, DVVIDEO,    PCM_S16LE, AVI)                
+= dv dv_pal dv_ntsc
+FATE_LAVF_CONTAINER-$(call ENCDEC,  MPEG4,                 DYNACOLOR)          
+= dynacolor
 FATE_LAVF_CONTAINER-$(call ENCDEC,  FLV,                   FLV)                
+= flv
 FATE_LAVF_CONTAINER-$(call ENCDEC,  RAWVIDEO,              FILMSTRIP)          
+= flm
 FATE_LAVF_CONTAINER-$(call ENCDEC2, MPEG2VIDEO, PCM_S16LE, GXF)                
+= gxf gxf_pal gxf_ntsc
@@ -41,6 +42,7 @@ fate-lavf-avi fate-lavf-nut: CMD = lavf_container "" "-c:a 
mp2 -ar 44100 -thread
 fate-lavf-dv:  CMD = lavf_container "-ar 48000 -channel_layout stereo" "-r 25 
-s pal"
 fate-lavf-dv_pal:  CMD = lavf_container_timecode_nodrop "-af 
aresample=48000:tsf=s16p -r 25 -s pal -ac 2 -f dv"
 fate-lavf-dv_ntsc:  CMD = lavf_container_timecode_drop "-af 
aresample=48000:tsf=s16p -pix_fmt yuv411p -s ntsc -ac 2 -f dv"
+fate-lavf-dynacolor: CMD = lavf_container "" "-an -c:v mpeg4 -threads 1 -f 
dynacolor"
 fate-lavf-flv fate-lavf-swf: CMD = lavf_container "" "-an"
 fate-lavf-flm: CMD = lavf_container "" "-pix_fmt rgba"
 fate-lavf-gxf: CMD = lavf_container "-ar 48000" "-r 25 -s pal -ac 1 -threads 1"
diff --git a/tests/ref/fate/dynacolor-mpeg4 b/tests/ref/fate/dynacolor-mpeg4
new file mode 100644
index 00000000000..7a1b7f3fea4
--- /dev/null
+++ b/tests/ref/fate/dynacolor-mpeg4
@@ -0,0 +1,83 @@
+9a29b7b81d6cc864168f6affc387b417
+9a29b7b81d6cc864168f6affc387b417
+#extradata 0:       30, 0x495705de
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: mpeg4
+#dimensions 0: 176x144
+#sar 0: 1/1
+0,          0,          0,        1,     6357, 0xe2f4bf51
+0,          1,          1,        1,     5657, 0xa06faee5, F=0x0
+0,          2,          2,        1,     3874, 0xa9f0e13c, F=0x0
+0,          3,          3,        1,     5162, 0xbe9c3d98, F=0x0
+0,          4,          4,        1,     4044, 0x44d5457f, F=0x0
+0,          5,          5,        1,     3962, 0x8fbd5c16, F=0x0
+0,          6,          6,        1,     2184, 0x751c5158, F=0x0
+0,          7,          7,        1,     2901, 0x746e9490, F=0x0
+0,          8,          8,        1,     1548, 0x907312fb, F=0x0
+0,          9,          9,        1,     2072, 0xbb7714fd, F=0x0
+0,         10,         10,        1,     1838, 0xbefbaba4, F=0x0
+0,         11,         11,        1,     1150, 0xdadd4550, F=0x0
+0,         12,         12,        1,     1443, 0xa561deb2, F=0x0
+0,         13,         13,        1,     1313, 0x8f579621, F=0x0
+0,         14,         14,        1,     1577, 0xb09227f8, F=0x0
+0,         15,         15,        1,     1100, 0x2b9420a1, F=0x0
+0,         16,         16,        1,     1436, 0xc380e02f, F=0x0
+0,         17,         17,        1,     1571, 0x7263367e, F=0x0
+0,         18,         18,        1,     1061, 0x21961d9c, F=0x0
+0,         19,         19,        1,     1598, 0x29c74616, F=0x0
+0,         20,         20,        1,     1088, 0x56af31d5, F=0x0
+0,         21,         21,        1,     1461, 0x0a51df58, F=0x0
+0,         22,         22,        1,      888, 0x78f7bf06, F=0x0
+0,         23,         23,        1,     1222, 0x53fd5fad, F=0x0
+0,         24,         24,        1,      952, 0x2383d858, F=0x0
+0,         25,         25,        1,     5586, 0xa4337028
+0,         26,         26,        1,     1329, 0xc36ba53b, F=0x0
+0,         27,         27,        1,     1026, 0x13fd04ed, F=0x0
+0,         28,         28,        1,     1237, 0x67696c16, F=0x0
+0,         29,         29,        1,     1073, 0x7e591c07, F=0x0
+0,         30,         30,        1,     1391, 0x86e2c77e, F=0x0
+0,         31,         31,        1,      856, 0x5e55aab8, F=0x0
+0,         32,         32,        1,     1221, 0x55ac935a, F=0x0
+0,         33,         33,        1,     1063, 0x4a12f5a3, F=0x0
+0,         34,         34,        1,     1190, 0x75175b80, F=0x0
+0,         35,         35,        1,     1227, 0x5c656e82, F=0x0
+0,         36,         36,        1,     1037, 0x92280eb5, F=0x0
+0,         37,         37,        1,     1244, 0x1bdf7e5a, F=0x0
+0,         38,         38,        1,      973, 0x4dddecd4, F=0x0
+0,         39,         39,        1,     1180, 0x49434412, F=0x0
+0,         40,         40,        1,     1096, 0xf20f2688, F=0x0
+0,         41,         41,        1,     1380, 0x10feba62, F=0x0
+0,         42,         42,        1,     1241, 0xf3868dad, F=0x0
+0,         43,         43,        1,      840, 0x6748b001, F=0x0
+0,         44,         44,        1,     1172, 0x8c0d54ab, F=0x0
+0,         45,         45,        1,      971, 0x03faf93e, F=0x0
+0,         46,         46,        1,     1154, 0x0a11320f, F=0x0
+0,         47,         47,        1,     1140, 0xf0a84149, F=0x0
+0,         48,         48,        1,     1460, 0x1161cb1d, F=0x0
+0,         49,         49,        1,      990, 0x7750efb7, F=0x0
+0,         50,         50,        1,     5733, 0x1d8bcdea
+0,         51,         51,        1,     1218, 0x524169e8, F=0x0
+0,         52,         52,        1,      954, 0xf9a9e067, F=0x0
+0,         53,         53,        1,     1220, 0x86a353f7, F=0x0
+0,         54,         54,        1,     1118, 0x925824f0, F=0x0
+0,         55,         55,        1,     1317, 0xba8d9b66, F=0x0
+0,         56,         56,        1,      955, 0x716ed365, F=0x0
+0,         57,         57,        1,     1240, 0xf9dc7177, F=0x0
+0,         58,         58,        1,      923, 0x0b0ebd45, F=0x0
+0,         59,         59,        1,     1212, 0x97a0675a, F=0x0
+0,         60,         60,        1,     1299, 0xf12382b2, F=0x0
+0,         61,         61,        1,     1018, 0x8c74f7d8, F=0x0
+0,         62,         62,        1,     1112, 0x786f3530, F=0x0
+0,         63,         63,        1,      816, 0x1700a04b, F=0x0
+0,         64,         64,        1,     1143, 0x5c543c53, F=0x0
+0,         65,         65,        1,     1347, 0xfd31a59b, F=0x0
+0,         66,         66,        1,     1229, 0x18f37eb9, F=0x0
+0,         67,         67,        1,     1359, 0x5b5eb464, F=0x0
+0,         68,         68,        1,     1054, 0xdfb40b0e, F=0x0
+0,         69,         69,        1,     1155, 0xe6ed3728, F=0x0
+0,         70,         70,        1,     1100, 0xb4d81cae, F=0x0
+0,         71,         71,        1,     1281, 0x50878754, F=0x0
+0,         72,         72,        1,     1092, 0x9c151ae6, F=0x0
+0,         73,         73,        1,     1273, 0xf11e785c, F=0x0
+0,         74,         74,        1,     1035, 0x39cf0672, F=0x0
diff --git a/tests/ref/fate/dynacolor-remux b/tests/ref/fate/dynacolor-remux
new file mode 100644
index 00000000000..2472678bcce
--- /dev/null
+++ b/tests/ref/fate/dynacolor-remux
@@ -0,0 +1,357 @@
+677366d7fcf63702c3a72f9841978043
+677366d7fcf63702c3a72f9841978043
+#extradata 0:       19, 0x14fa035e
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: mpeg4
+#dimensions 0: 720x576
+#sar 0: 1/1
+0,          0,          0,        1,    12045, 0xd5189e93, F=0x0
+0,          1,          1,        1,    12061, 0x7cc16c9c, F=0x0
+0,          2,          2,        1,    12072, 0x9206db9b, F=0x0
+0,          3,          3,        1,    11996, 0x32a140b0, F=0x0
+0,          4,          4,        1,    12085, 0x6307a766, F=0x0
+0,          5,          5,        1,    15894, 0x7bec1b82, F=0x0
+0,          6,          6,        1,    16514, 0xdf6c1c8d, F=0x0
+0,          7,          7,        1,    24133, 0x179a3c98
+0,          8,          8,        1,     6051, 0xba71d18b, F=0x0
+0,          9,          9,        1,    12274, 0xa08f82c4, F=0x0
+0,         10,         10,        1,    24822, 0x5cabc59b, F=0x0
+0,         11,         11,        1,    12672, 0x3d4a3f74, F=0x0
+0,         12,         12,        1,    11932, 0x87c2d9b4, F=0x0
+0,         13,         13,        1,     9997, 0xeed82b53, F=0x0
+0,         14,         14,        1,    11161, 0x46273b0b, F=0x0
+0,         15,         15,        1,     9558, 0x47c54f8b, F=0x0
+0,         16,         16,        1,    10524, 0x67141d4b, F=0x0
+0,         17,         17,        1,     9376, 0xad3c2857, F=0x0
+0,         18,         18,        1,    12320, 0x689e57a6, F=0x0
+0,         25,         25,        1,    10202, 0x85909127, F=0x0
+0,         26,         26,        1,    13834, 0x3ab681e5, F=0x0
+0,         27,         27,        1,    11131, 0xe1dd2eb3, F=0x0
+0,         28,         28,        1,    14773, 0xe4e52dbf, F=0x0
+0,         29,         29,        1,    15073, 0x25315898, F=0x0
+0,         30,         30,        1,    12400, 0xa355885d, F=0x0
+0,         31,         31,        1,    14667, 0xa1bf781b, F=0x0
+0,         32,         32,        1,    13352, 0xaa55cf41, F=0x0
+0,         33,         33,        1,    14845, 0x9f50e907, F=0x0
+0,         34,         34,        1,    15251, 0xb80d0621, F=0x0
+0,         35,         35,        1,    14190, 0xe63f72e7, F=0x0
+0,         36,         36,        1,    15179, 0xe0b2ea24, F=0x0
+0,         37,         37,        1,    12654, 0x0ea65d01, F=0x0
+0,         38,         38,        1,    10505, 0xcb9db65e, F=0x0
+0,         39,         39,        1,    12622, 0xff528afa, F=0x0
+0,         40,         40,        1,    10285, 0x50c0e0f1, F=0x0
+0,         41,         41,        1,    13528, 0x2b91cad4, F=0x0
+0,         42,         42,        1,    11063, 0x71fa0cf0, F=0x0
+0,         43,         43,        1,    52515, 0xec579d0d
+0,         44,         44,        1,    15890, 0xcb6618d2, F=0x0
+0,         45,         45,        1,    14854, 0xc08d8450, F=0x0
+0,         46,         46,        1,    13647, 0x7abe4ed6, F=0x0
+0,         50,         50,        1,    12018, 0x34f85ae1, F=0x0
+0,         51,         51,        1,    12690, 0xc8a64fe4, F=0x0
+0,         52,         52,        1,    12507, 0x3e073b2b, F=0x0
+0,         53,         53,        1,    12241, 0x7251f9b5, F=0x0
+0,         54,         54,        1,    12166, 0x903dc2c7, F=0x0
+0,         55,         55,        1,    12388, 0x7f7136c4, F=0x0
+0,         56,         56,        1,    12635, 0x03619d5a, F=0x0
+0,         57,         57,        1,    11368, 0xd35e8a7e, F=0x0
+0,         58,         58,        1,    12232, 0x714ed319, F=0x0
+0,         59,         59,        1,    16114, 0x36f25842, F=0x0
+0,         60,         60,        1,    16424, 0xf6f6d8bf, F=0x0
+0,         61,         61,        1,     6978, 0x713411eb, F=0x0
+0,         62,         62,        1,     5651, 0xb7c8068c, F=0x0
+0,         63,         63,        1,     9763, 0xdcd5ffcc, F=0x0
+0,         64,         64,        1,    17757, 0x5d6c5226, F=0x0
+0,         65,         65,        1,    10538, 0x76c37240, F=0x0
+0,         66,         66,        1,    12248, 0xe18cc186, F=0x0
+0,         67,         67,        1,    10019, 0x298b27a8, F=0x0
+0,         68,         68,        1,    11210, 0x47273e0f, F=0x0
+0,         69,         69,        1,     9537, 0x2374713a, F=0x0
+0,         70,         70,        1,    10834, 0x82b69896, F=0x0
+0,         71,         71,        1,     9322, 0xb03e134f, F=0x0
+0,         72,         72,        1,    12393, 0xe02e9a20, F=0x0
+0,         73,         73,        1,    10261, 0xe5fa8fd2, F=0x0
+0,         75,         75,        1,    13903, 0x19635a1d, F=0x0
+0,         76,         76,        1,    11327, 0x6b948226, F=0x0
+0,         77,         77,        1,    52566, 0x2ef19a95
+0,         78,         78,        1,    15654, 0x5578f9ad, F=0x0
+0,         79,         79,        1,    16156, 0xfec632a3, F=0x0
+0,         80,         80,        1,    13292, 0x8fda0c29, F=0x0
+0,         81,         81,        1,    14360, 0x89ede0ba, F=0x0
+0,         82,         82,        1,    15794, 0x934c8841, F=0x0
+0,         83,         83,        1,    14596, 0xba4dae3f, F=0x0
+0,         84,         84,        1,    14041, 0xe7a58888, F=0x0
+0,         85,         85,        1,    14204, 0xb9a5d0c9, F=0x0
+0,         86,         86,        1,    13374, 0x89a0af35, F=0x0
+0,         87,         87,        1,    12569, 0x9bc1194d, F=0x0
+0,         88,         88,        1,    10036, 0x0a522342, F=0x0
+0,         89,         89,        1,    10204, 0xf34b6f5c, F=0x0
+0,         90,         90,        1,    13423, 0x28dfef3f, F=0x0
+0,         91,         91,        1,    10933, 0x9278d0b8, F=0x0
+0,         92,         92,        1,    14088, 0xea44d551, F=0x0
+0,         93,         93,        1,    12772, 0x05a903a6, F=0x0
+0,         94,         94,        1,    12457, 0x73ca47d2, F=0x0
+0,         95,         95,        1,    12675, 0xab7ccf59, F=0x0
+0,        100,        100,        1,    11697, 0xdaccfd22, F=0x0
+0,        101,        101,        1,    12152, 0xb230ab70, F=0x0
+0,        102,        102,        1,    12240, 0x8243088b, F=0x0
+0,        103,        103,        1,    12231, 0xcffd1c46, F=0x0
+0,        104,        104,        1,    12307, 0xa8dfed8d, F=0x0
+0,        105,        105,        1,    13032, 0xb676d1ec, F=0x0
+0,        106,        106,        1,    11723, 0x8c2b1d67, F=0x0
+0,        107,        107,        1,    11802, 0x92020029, F=0x0
+0,        108,        108,        1,    12268, 0x4672fe9a, F=0x0
+0,        109,        109,        1,    15926, 0x9aefebea, F=0x0
+0,        110,        110,        1,    16510, 0x9a36c050, F=0x0
+0,        111,        111,        1,    24247, 0x18b080c6
+0,        112,        112,        1,     6175, 0x9f3f1533, F=0x0
+0,        113,        113,        1,    28632, 0x302ca9a0, F=0x0
+0,        114,        114,        1,    14976, 0x4e34b3b8, F=0x0
+0,        115,        115,        1,    11693, 0x73bd5634, F=0x0
+0,        116,        116,        1,    10445, 0x42091bc2, F=0x0
+0,        117,        117,        1,     9979, 0x72fb58f7, F=0x0
+0,        118,        118,        1,    10366, 0xf13508cb, F=0x0
+0,        119,        119,        1,     9394, 0x3e9e3462, F=0x0
+0,        120,        120,        1,    10572, 0x67726082, F=0x0
+0,        121,        121,        1,     9399, 0x121338a7, F=0x0
+0,        122,        122,        1,    12156, 0xff8b2957, F=0x0
+0,        125,        125,        1,    10286, 0xc86abd80, F=0x0
+0,        126,        126,        1,    13952, 0x63e08cc2, F=0x0
+0,        127,        127,        1,    10960, 0x02e2f71b, F=0x0
+0,        128,        128,        1,    14565, 0xcf816cd7, F=0x0
+0,        129,        129,        1,    11958, 0x64b07934, F=0x0
+0,        130,        130,        1,    14608, 0xb128b95c, F=0x0
+0,        131,        131,        1,    12742, 0xd67ae692, F=0x0
+0,        132,        132,        1,    14564, 0x25695095, F=0x0
+0,        133,        133,        1,    12989, 0xfc15254f, F=0x0
+0,        134,        134,        1,    15028, 0xa7f35f42, F=0x0
+0,        135,        135,        1,    15702, 0x13e0859e, F=0x0
+0,        136,        136,        1,    13805, 0x0cef376d, F=0x0
+0,        137,        137,        1,    13380, 0x2ac35ec0, F=0x0
+0,        138,        138,        1,    12695, 0xb2bc7e48, F=0x0
+0,        139,        139,        1,    10113, 0x908c6d88, F=0x0
+0,        140,        140,        1,    10085, 0x618e3a12, F=0x0
+0,        141,        141,        1,    13965, 0x13220424, F=0x0
+0,        142,        142,        1,    13578, 0x4052b30d, F=0x0
+0,        143,        143,        1,    52436, 0x157b3520
+0,        144,        144,        1,    15844, 0x95800712, F=0x0
+0,        145,        145,        1,    14734, 0xba0c9e04, F=0x0
+0,        146,        146,        1,    13247, 0x3c27d1a5, F=0x0
+0,        150,        150,        1,    13095, 0x168b56c2, F=0x0
+0,        151,        151,        1,    11992, 0xe75f60a8, F=0x0
+0,        152,        152,        1,    12267, 0x31aed72a, F=0x0
+0,        153,        153,        1,    12444, 0x76b25490, F=0x0
+0,        154,        154,        1,    12175, 0xe1d9b5a3, F=0x0
+0,        155,        155,        1,    12412, 0x7d36281b, F=0x0
+0,        156,        156,        1,    12119, 0xaa30a958, F=0x0
+0,        157,        157,        1,    12497, 0x1da125c6, F=0x0
+0,        158,        158,        1,    11791, 0x5af333da, F=0x0
+0,        159,        159,        1,    20198, 0x8b201b06, F=0x0
+0,        160,        160,        1,     7174, 0xc043ae3f, F=0x0
+0,        161,        161,        1,     5648, 0x346423d9, F=0x0
+0,        162,        162,        1,     5132, 0x555c499b, F=0x0
+0,        163,        163,        1,    25330, 0xed20dc16, F=0x0
+0,        164,        164,        1,    11875, 0xb9fbbb4a, F=0x0
+0,        165,        165,        1,    10508, 0x8040508a, F=0x0
+0,        166,        166,        1,    11355, 0xef83b9df, F=0x0
+0,        167,        167,        1,     9881, 0xf82dff4e, F=0x0
+0,        168,        168,        1,    10798, 0xe1d00a30, F=0x0
+0,        169,        169,        1,     9417, 0x2af78517, F=0x0
+0,        170,        170,        1,    10446, 0x01f0cfe5, F=0x0
+0,        171,        171,        1,     9293, 0x170607d0, F=0x0
+0,        172,        172,        1,    12356, 0x239d9891, F=0x0
+0,        175,        175,        1,    10309, 0x2f3df991, F=0x0
+0,        176,        176,        1,    13749, 0x2490de50, F=0x0
+0,        177,        177,        1,    11125, 0x2ebf092d, F=0x0
+0,        178,        178,        1,    52279, 0x383db4bf
+0,        179,        179,        1,    15489, 0x9bc47e10, F=0x0
+0,        180,        180,        1,    16061, 0x215f4ccd, F=0x0
+0,        181,        181,        1,    13351, 0xb2dc7d84, F=0x0
+0,        182,        182,        1,    14536, 0x61973d1d, F=0x0
+0,        183,        183,        1,    13236, 0x4c4ef675, F=0x0
+0,        184,        184,        1,    15152, 0x9c4e78ad, F=0x0
+0,        185,        185,        1,    15926, 0x1e8501fa, F=0x0
+0,        186,        186,        1,    14027, 0x7f66c48b, F=0x0
+0,        187,        187,        1,    13428, 0xa6cc7528, F=0x0
+0,        188,        188,        1,    12796, 0x3459a6fb, F=0x0
+0,        189,        189,        1,    12519, 0xd28c2b9c, F=0x0
+0,        190,        190,        1,    10125, 0xf0e89548, F=0x0
+0,        191,        191,        1,    13431, 0xd970bce9, F=0x0
+0,        192,        192,        1,    13192, 0xe2f7fe83, F=0x0
+0,        193,        193,        1,    13094, 0x0c4db15f, F=0x0
+0,        194,        194,        1,    12590, 0x6825ba81, F=0x0
+0,        195,        195,        1,    12392, 0x22003fa7, F=0x0
+0,        196,        196,        1,    12688, 0x588e7cbb, F=0x0
+0,        200,        200,        1,    11658, 0xae76001c, F=0x0
+0,        201,        201,        1,    12109, 0x34b4ab1d, F=0x0
+0,        202,        202,        1,    12219, 0xde19e519, F=0x0
+0,        203,        203,        1,    12260, 0xb9eb336a, F=0x0
+0,        204,        204,        1,    12015, 0x9dc94d1b, F=0x0
+0,        205,        205,        1,    12131, 0x6b1d89c5, F=0x0
+0,        206,        206,        1,    11929, 0xa7168509, F=0x0
+0,        207,        207,        1,    12485, 0x47eb1f93, F=0x0
+0,        208,        208,        1,    11560, 0x1a19bc52, F=0x0
+0,        209,        209,        1,    19963, 0x24838689, F=0x0
+0,        210,        210,        1,     7129, 0x9c78a055, F=0x0
+0,        211,        211,        1,    24309, 0x1c30652b
+0,        212,        212,        1,     6155, 0xc60a1233, F=0x0
+0,        213,        213,        1,    28537, 0x33c3c582, F=0x0
+0,        214,        214,        1,    15120, 0x497f49fa, F=0x0
+0,        215,        215,        1,    11931, 0xf0d994b1, F=0x0
+0,        216,        216,        1,    11339, 0x124986e7, F=0x0
+0,        217,        217,        1,     9699, 0x11d8a467, F=0x0
+0,        218,        218,        1,    10519, 0x75881a51, F=0x0
+0,        219,        219,        1,     9530, 0xeec69d0f, F=0x0
+0,        220,        220,        1,    12096, 0x2bd04ae0, F=0x0
+0,        221,        221,        1,    10069, 0x88f475ea, F=0x0
+0,        222,        222,        1,    13881, 0x7fdc83c5, F=0x0
+0,        225,        225,        1,    11209, 0x049f5eff, F=0x0
+0,        226,        226,        1,    14486, 0xf8c6a89c, F=0x0
+0,        227,        227,        1,    12021, 0xea9ad285, F=0x0
+0,        228,        228,        1,    14703, 0x763ebc17, F=0x0
+0,        229,        229,        1,    12772, 0x48a90543, F=0x0
+0,        230,        230,        1,    14658, 0x10cd7b26, F=0x0
+0,        231,        231,        1,    13443, 0xd2fd1cda, F=0x0
+0,        232,        232,        1,    15125, 0x45707517, F=0x0
+0,        233,        233,        1,    15559, 0x772c1671, F=0x0
+0,        234,        234,        1,    14155, 0x1b88490c, F=0x0
+0,        235,        235,        1,    13232, 0x187513c2, F=0x0
+0,        236,        236,        1,    13264, 0xbff12c25, F=0x0
+0,        237,        237,        1,    12436, 0x68a0792e, F=0x0
+0,        238,        238,        1,    10921, 0x2c25c8aa, F=0x0
+0,        239,        239,        1,    11422, 0x296c8903, F=0x0
+0,        240,        240,        1,    11317, 0xe99778d2, F=0x0
+0,        241,        241,        1,    11187, 0x57425b47, F=0x0
+0,        242,        242,        1,    10898, 0xf113c732, F=0x0
+0,        243,        243,        1,    48464, 0x46711dfa
+0,        244,        244,        1,    14693, 0x3978f9fd, F=0x0
+0,        245,        245,        1,    13166, 0x470daa1a, F=0x0
+0,        246,        246,        1,    11976, 0xad05acc5, F=0x0
+0,        250,        250,        1,    11800, 0x813afaa4, F=0x0
+0,        251,        251,        1,    11058, 0x6d14bfbb, F=0x0
+0,        252,        252,        1,    11112, 0xca9ef5d9, F=0x0
+0,        253,        253,        1,    11216, 0x18832e37, F=0x0
+0,        254,        254,        1,    11043, 0x5a98e5c3, F=0x0
+0,        255,        255,        1,    11035, 0xf9ab181f, F=0x0
+0,        256,        256,        1,    11390, 0x2fae86e1, F=0x0
+0,        257,        257,        1,    10319, 0xba2b948b, F=0x0
+0,        258,        258,        1,    15343, 0x1e02c072, F=0x0
+0,        259,        259,        1,    15774, 0x0a288c98, F=0x0
+0,        260,        260,        1,     6899, 0x1b5b307f, F=0x0
+0,        261,        261,        1,     5525, 0x1d29de1e, F=0x0
+0,        262,        262,        1,     9831, 0x5182ea58, F=0x0
+0,        263,        263,        1,    21975, 0xc32894b0, F=0x0
+0,        264,        264,        1,    14079, 0x48fad1f5, F=0x0
+0,        265,        265,        1,    11256, 0x68e18433, F=0x0
+0,        266,        266,        1,    10426, 0x4e92fa0d, F=0x0
+0,        267,        267,        1,    10440, 0xc2272c90, F=0x0
+0,        268,        268,        1,     9396, 0xc44d18cc, F=0x0
+0,        269,        269,        1,    10456, 0x3383095e, F=0x0
+0,        270,        270,        1,     9176, 0x6256c623, F=0x0
+0,        271,        271,        1,    10238, 0xef41d36f, F=0x0
+0,        272,        272,        1,    13895, 0x1b69b3f8, F=0x0
+0,        273,        273,        1,    11175, 0xf614364b, F=0x0
+0,        275,        275,        1,    14944, 0xb92a3722, F=0x0
+0,        276,        276,        1,    12148, 0x8aecf67c, F=0x0
+0,        277,        277,        1,    53700, 0xdc39afef
+0,        278,        278,        1,    16302, 0x8b761320, F=0x0
+0,        279,        279,        1,    16252, 0xef683f74, F=0x0
+0,        280,        280,        1,    14009, 0x655861d7, F=0x0
+0,        281,        281,        1,    14597, 0x8c7d4a19, F=0x0
+0,        282,        282,        1,    15007, 0xdb1f2dc4, F=0x0
+0,        283,        283,        1,    13960, 0x933d62f4, F=0x0
+0,        284,        284,        1,    13783, 0x25d9c7de, F=0x0
+0,        285,        285,        1,    13277, 0xe9f93755, F=0x0
+0,        286,        286,        1,    12870, 0xad89de56, F=0x0
+0,        287,        287,        1,    11363, 0xbd54ec1c, F=0x0
+0,        288,        288,        1,     9231, 0xa307dfe7, F=0x0
+0,        289,        289,        1,     8740, 0xeba0f100, F=0x0
+0,        290,        290,        1,     8687, 0x11501678, F=0x0
+0,        291,        291,        1,     8302, 0x035e0790, F=0x0
+0,        292,        292,        1,     8345, 0x8c114211, F=0x0
+0,        293,        293,        1,     8154, 0x52b9da51, F=0x0
+0,        294,        294,        1,     8167, 0x73b3d631, F=0x0
+0,        295,        295,        1,     7989, 0x4ffaa41f, F=0x0
+0,        296,        296,        1,     8485, 0x96c35054, F=0x0
+0,        300,        300,        1,     8726, 0xf9043ff3, F=0x0
+0,        301,        301,        1,     7942, 0x216c74dd, F=0x0
+0,        302,        302,        1,     8314, 0x2c3b61a4, F=0x0
+0,        303,        303,        1,     8157, 0x40e6e449, F=0x0
+0,        304,        304,        1,     8154, 0x43ece6a4, F=0x0
+0,        305,        305,        1,     7957, 0xfe6d95cb, F=0x0
+0,        306,        306,        1,     8431, 0x61cf6a98, F=0x0
+0,        307,        307,        1,     8131, 0xa20ed8da, F=0x0
+0,        308,        308,        1,     8280, 0x9a0316a8, F=0x0
+0,        309,        309,        1,     8059, 0xc554c14e, F=0x0
+0,        310,        310,        1,    40240, 0xc1c3d6b2
+0,        311,        311,        1,    14311, 0x43a1b546, F=0x0
+0,        312,        312,        1,     6669, 0xd1e9e62f, F=0x0
+0,        313,        313,        1,     5359, 0x03ecb54e, F=0x0
+0,        314,        314,        1,     9618, 0x26288bf6, F=0x0
+0,        315,        315,        1,    22285, 0x4e1f4105, F=0x0
+0,        316,        316,        1,    14372, 0xfdaa7ad1, F=0x0
+0,        317,        317,        1,    11387, 0x5351b970, F=0x0
+0,        318,        318,        1,    10602, 0x5a268b15, F=0x0
+0,        319,        319,        1,    10649, 0x913686a0, F=0x0
+0,        320,        320,        1,    10657, 0x8e786215, F=0x0
+0,        321,        321,        1,     9036, 0xdafb9f6e, F=0x0
+0,        322,        322,        1,    12059, 0x92e70359, F=0x0
+0,        323,        323,        1,    10154, 0x2c39a448, F=0x0
+0,        325,        325,        1,    13734, 0xe3a0fef3, F=0x0
+0,        326,        326,        1,    11154, 0x02f36a94, F=0x0
+0,        327,        327,        1,    14797, 0xbb67f806, F=0x0
+0,        328,        328,        1,    12219, 0xb0aff172, F=0x0
+0,        329,        329,        1,    14789, 0xc76ddabd, F=0x0
+0,        330,        330,        1,    12744, 0xfafcd0a4, F=0x0
+0,        331,        331,        1,    14608, 0x9e5e7f5c, F=0x0
+0,        332,        332,        1,    13276, 0x0abdb5ce, F=0x0
+0,        333,        333,        1,    14064, 0x35577976, F=0x0
+0,        334,        334,        1,    14917, 0xeb40488c, F=0x0
+0,        335,        335,        1,    14794, 0x669b26cf, F=0x0
+0,        336,        336,        1,    13462, 0xcb084f19, F=0x0
+0,        337,        337,        1,    13206, 0x94e3253f, F=0x0
+0,        338,        338,        1,    12400, 0xc0218947, F=0x0
+0,        339,        339,        1,    10975, 0x8be99a5a, F=0x0
+0,        340,        340,        1,    11432, 0x0d80962c, F=0x0
+0,        341,        341,        1,    48288, 0xc4ee5c63
+0,        342,        342,        1,    14492, 0x9bea8676, F=0x0
+0,        343,        343,        1,    13337, 0x74b20cfd, F=0x0
+0,        344,        344,        1,    12029, 0x7230d3e4, F=0x0
+0,        345,        345,        1,    11455, 0xa9268869, F=0x0
+0,        346,        346,        1,    11392, 0xe0cda465, F=0x0
+0,        350,        350,        1,    11075, 0x6f38fa33, F=0x0
+0,        351,        351,        1,    11398, 0xffda61b0, F=0x0
+0,        352,        352,        1,    10576, 0xdce822ec, F=0x0
+0,        353,        353,        1,    10890, 0x497a93f8, F=0x0
+0,        354,        354,        1,    10882, 0x50978f2f, F=0x0
+0,        355,        355,        1,    10996, 0x350c9af2, F=0x0
+0,        356,        356,        1,    10904, 0x6066aefb, F=0x0
+0,        357,        357,        1,    10786, 0x4a8660f3, F=0x0
+0,        358,        358,        1,    10876, 0xf2719ab8, F=0x0
+0,        359,        359,        1,    10685, 0xe0fd13ba, F=0x0
+0,        360,        360,        1,    15327, 0xcc8bed0b, F=0x0
+0,        361,        361,        1,    15808, 0x7a5c8c21, F=0x0
+0,        362,        362,        1,     7017, 0x354742f9, F=0x0
+0,        363,        363,        1,     5796, 0x6278358b, F=0x0
+0,        364,        364,        1,     9986, 0x50b74dd5, F=0x0
+0,        365,        365,        1,    22566, 0x78c924cc, F=0x0
+0,        366,        366,        1,    12264, 0x77f53e7f, F=0x0
+0,        367,        367,        1,    10518, 0x75959acc, F=0x0
+0,        368,        368,        1,    11121, 0xc3fb4bf1, F=0x0
+0,        369,        369,        1,     9665, 0x03cacd25, F=0x0
+0,        370,        370,        1,    10551, 0xec76ffa6, F=0x0
+0,        371,        371,        1,     9329, 0x9dc72bae, F=0x0
+0,        372,        372,        1,    12148, 0x81545b35, F=0x0
+0,        375,        375,        1,    10068, 0xb31055e5, F=0x0
+0,        376,        376,        1,    50286, 0xf38c1379
+0,        377,        377,        1,    14419, 0xf0a67ebc, F=0x0
+0,        378,        378,        1,    15767, 0x046ad5a8, F=0x0
+0,        379,        379,        1,    12681, 0x666f48f9, F=0x0
+0,        380,        380,        1,    14594, 0x99a37db0, F=0x0
+0,        381,        381,        1,    12879, 0x2c4d4120, F=0x0
+0,        382,        382,        1,    14046, 0xf9f76b3e, F=0x0
+0,        383,        383,        1,    14526, 0xc55f60dd, F=0x0
+0,        384,        384,        1,    13566, 0xf6f38e1e, F=0x0
+0,        385,        385,        1,    15231, 0x5f61c825, F=0x0
+0,        386,        386,        1,    14594, 0x1c6c93cf, F=0x0
+0,        387,        387,        1,    11504, 0x30d1c94f, F=0x0
diff --git a/tests/ref/lavf/dynacolor b/tests/ref/lavf/dynacolor
new file mode 100644
index 00000000000..e1c1a955fd7
--- /dev/null
+++ b/tests/ref/lavf/dynacolor
@@ -0,0 +1,3 @@
+fe1d8e75b2957fcf0a6fbb1fa654f347 *tests/data/lavf/lavf.dynacolor
+312744 tests/data/lavf/lavf.dynacolor
+tests/data/lavf/lavf.dynacolor CRC=0x9d9a638a
-- 
2.54.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to