Commit 562d68d096 for ffmpeg
commit 562d68d096049b22e6d1a55e8159587c81008a0e
Author: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Date: Fri Nov 13 16:38:12 2026 -0800
avformat/mxfenc: write the DM schemes batch item size
An empty batch still has a 16 byte item size, ST 377-1 4.3.
Signed-off-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 7f5d630737..6ee68a2f46 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -813,9 +813,9 @@ static void mxf_write_preface(AVFormatContext *s)
mxf_write_local_tag(s, 8 + 16LL * DESCRIPTOR_COUNT(mxf->essence_container_count), 0x3B0A);
mxf_write_essence_container_refs(s);
- // write dm_scheme_refs
+ // write dm_scheme_refs, empty batch of ULs
mxf_write_local_tag(s, 8, 0x3B0B);
- avio_wb64(pb, 0);
+ mxf_write_refs_count(pb, 0);
}
/*
diff --git a/tests/ref/fate/copy-trac4914 b/tests/ref/fate/copy-trac4914
index 1fd16e9a4c..aa90883e6b 100644
--- a/tests/ref/fate/copy-trac4914
+++ b/tests/ref/fate/copy-trac4914
@@ -1,4 +1,4 @@
-a0f68fa1d9ed5d3030d8244ea0b0299a *tests/data/fate/copy-trac4914.mxf
+aff25c8d72e67567154b312790568d19 *tests/data/fate/copy-trac4914.mxf
561721 tests/data/fate/copy-trac4914.mxf
#tb 0: 1001/30000
#media_type 0: video
diff --git a/tests/ref/fate/mxf-d10-user-comments b/tests/ref/fate/mxf-d10-user-comments
index 60f23f31c2..8eb7831d5d 100644
--- a/tests/ref/fate/mxf-d10-user-comments
+++ b/tests/ref/fate/mxf-d10-user-comments
@@ -1,4 +1,4 @@
-f4c03e7304d45b2f2b9b4727f115ed61 *tests/data/fate/mxf-d10-user-comments.mxf_d10
+f147367edd1b13651fcb215905b3c0f8 *tests/data/fate/mxf-d10-user-comments.mxf_d10
3782189 tests/data/fate/mxf-d10-user-comments.mxf_d10
#extradata 0: 34, 0x717105c5
#tb 0: 1/25
diff --git a/tests/ref/fate/mxf-eia608-open-gop b/tests/ref/fate/mxf-eia608-open-gop
index ad834dfa24..219d85b50b 100644
--- a/tests/ref/fate/mxf-eia608-open-gop
+++ b/tests/ref/fate/mxf-eia608-open-gop
@@ -1,4 +1,4 @@
-67afa9e64e27eaec4031cdcfa9d6a7f7 *tests/data/fate/mxf-eia608-open-gop.mxf
+d0b0a5384cbcc1332636fb36f6a0452f *tests/data/fate/mxf-eia608-open-gop.mxf
165433 tests/data/fate/mxf-eia608-open-gop.mxf
#extradata 0: 22, 0x4e760627
#tb 0: 1001/30000
diff --git a/tests/ref/fate/mxf-eia608-sparse b/tests/ref/fate/mxf-eia608-sparse
index 0682725e62..81101b16c1 100644
--- a/tests/ref/fate/mxf-eia608-sparse
+++ b/tests/ref/fate/mxf-eia608-sparse
@@ -1,4 +1,4 @@
-7b1936e947e131f78a7f1f62656b92d4 *tests/data/fate/mxf-eia608-sparse.mxf
+f5a3cef47b10478e03a473459a303002 *tests/data/fate/mxf-eia608-sparse.mxf
390201 tests/data/fate/mxf-eia608-sparse.mxf
#extradata 0: 22, 0x4e760627
#tb 0: 1001/30000
diff --git a/tests/ref/fate/mxf-opatom-user-comments b/tests/ref/fate/mxf-opatom-user-comments
index 14a1cee1f2..98fa698a86 100644
--- a/tests/ref/fate/mxf-opatom-user-comments
+++ b/tests/ref/fate/mxf-opatom-user-comments
@@ -1 +1 @@
-d40b64e492133c74faa07e605eb65b2f
+e1de3ef7984c753c3829ca6b717bfcd3
diff --git a/tests/ref/fate/mxf-reel_name b/tests/ref/fate/mxf-reel_name
index f3bafcc118..8568d3e164 100644
--- a/tests/ref/fate/mxf-reel_name
+++ b/tests/ref/fate/mxf-reel_name
@@ -1 +1 @@
-75e0ac14d5632d709bd805f1cacb1fbb
+5368d6641911ec00d13ba521b8314287
diff --git a/tests/ref/fate/mxf-remux-applehdr10 b/tests/ref/fate/mxf-remux-applehdr10
index e5bd4c959f..9712d1b6cb 100644
--- a/tests/ref/fate/mxf-remux-applehdr10
+++ b/tests/ref/fate/mxf-remux-applehdr10
@@ -1,4 +1,4 @@
-746c72480f46876bd7de0d17aaa963e1 *tests/data/fate/mxf-remux-applehdr10.mxf
+06439b505515ecb2aaba275e9a289b55 *tests/data/fate/mxf-remux-applehdr10.mxf
323641 tests/data/fate/mxf-remux-applehdr10.mxf
#tb 0: 1001/60000
#media_type 0: video
diff --git a/tests/ref/fate/mxf-user-comments b/tests/ref/fate/mxf-user-comments
index b4c78744b0..b8943bd43f 100644
--- a/tests/ref/fate/mxf-user-comments
+++ b/tests/ref/fate/mxf-user-comments
@@ -1 +1 @@
-620ae205fefbb6dba74418f357a62c36
+4ee8fdb92fe77d2301b191fcfbee8596
diff --git a/tests/ref/fate/time_base b/tests/ref/fate/time_base
index 16a4bb9f4e..9affa53419 100644
--- a/tests/ref/fate/time_base
+++ b/tests/ref/fate/time_base
@@ -1 +1 @@
-6e5f2c57c2d4a3bf4cdd3e64cae5e5bf
+c541faa02a4d29cb6111a8b0c9fd8046
diff --git a/tests/ref/lavf/mxf b/tests/ref/lavf/mxf
index 7e90a07f21..2d79753222 100644
--- a/tests/ref/lavf/mxf
+++ b/tests/ref/lavf/mxf
@@ -1,9 +1,9 @@
-b3e24d85944c027e86d5d410ab7e4670 *tests/data/lavf/lavf.mxf
+89ec2061697ae58b21f20dd456793c0e *tests/data/lavf/lavf.mxf
526393 tests/data/lavf/lavf.mxf
tests/data/lavf/lavf.mxf CRC=0x8dddfaab
-c714c4f9bea014001c51d25a3d4bee8f *tests/data/lavf/lavf.mxf
+ccd55e4fbbdcec01f9772583dbff4e01 *tests/data/lavf/lavf.mxf
551481 tests/data/lavf/lavf.mxf
tests/data/lavf/lavf.mxf CRC=0xf091e687
-779a390835c475041fc711db9004bee5 *tests/data/lavf/lavf.mxf
+c661334394b1d2dd5ba307acc53c8a0e *tests/data/lavf/lavf.mxf
526393 tests/data/lavf/lavf.mxf
tests/data/lavf/lavf.mxf CRC=0x8dddfaab
diff --git a/tests/ref/lavf/mxf_d10 b/tests/ref/lavf/mxf_d10
index 1dfaf476a3..b4a937a9f9 100644
--- a/tests/ref/lavf/mxf_d10
+++ b/tests/ref/lavf/mxf_d10
@@ -1,3 +1,3 @@
-0f1187f21b47d645ea6ea4c3cea3d73d *tests/data/lavf/lavf.mxf_d10
+9409101162a0779ce053082a959554ee *tests/data/lavf/lavf.mxf_d10
5332013 tests/data/lavf/lavf.mxf_d10
tests/data/lavf/lavf.mxf_d10 CRC=0xc58d9422
diff --git a/tests/ref/lavf/mxf_dv25 b/tests/ref/lavf/mxf_dv25
index 33a0511398..33b02319d6 100644
--- a/tests/ref/lavf/mxf_dv25
+++ b/tests/ref/lavf/mxf_dv25
@@ -1,3 +1,3 @@
-e9a10efc1a6d127448ac6b60b0b3af51 *tests/data/lavf/lavf.mxf_dv25
+c1c0b76332ab29bb953df28a3af88681 *tests/data/lavf/lavf.mxf_dv25
3834413 tests/data/lavf/lavf.mxf_dv25
tests/data/lavf/lavf.mxf_dv25 CRC=0x3efa60d5
diff --git a/tests/ref/lavf/mxf_dvcpro100 b/tests/ref/lavf/mxf_dvcpro100
index 21e1d21e53..a1da8b4935 100644
--- a/tests/ref/lavf/mxf_dvcpro100
+++ b/tests/ref/lavf/mxf_dvcpro100
@@ -1,3 +1,3 @@
-a2d6031d60aee54d24919d7628a1f7b5 *tests/data/lavf/lavf.mxf_dvcpro100
+e295922f8f5813c5ccad37947645c99a *tests/data/lavf/lavf.mxf_dvcpro100
14637613 tests/data/lavf/lavf.mxf_dvcpro100
tests/data/lavf/lavf.mxf_dvcpro100 CRC=0x25feb3fd
diff --git a/tests/ref/lavf/mxf_dvcpro50 b/tests/ref/lavf/mxf_dvcpro50
index 7cf0cc8f0c..09fb7dda4f 100644
--- a/tests/ref/lavf/mxf_dvcpro50
+++ b/tests/ref/lavf/mxf_dvcpro50
@@ -1,3 +1,3 @@
-25160bc35e28e0fe89b5ce1ea89e0eff *tests/data/lavf/lavf.mxf_dvcpro50
+7a0dfccb8515e53ab5218ff235b0e0fb *tests/data/lavf/lavf.mxf_dvcpro50
7431213 tests/data/lavf/lavf.mxf_dvcpro50
tests/data/lavf/lavf.mxf_dvcpro50 CRC=0xfd34a6d9
diff --git a/tests/ref/lavf/mxf_ffv1 b/tests/ref/lavf/mxf_ffv1
index e876d9e5b2..55ff5053bd 100644
--- a/tests/ref/lavf/mxf_ffv1
+++ b/tests/ref/lavf/mxf_ffv1
@@ -1,3 +1,3 @@
-cda1615f44d0ed0dd63971d8f72a7a95 *tests/data/lavf/lavf.mxf_ffv1
+824573bfc98dfb2284f4f776211d9937 *tests/data/lavf/lavf.mxf_ffv1
5587001 tests/data/lavf/lavf.mxf_ffv1
tests/data/lavf/lavf.mxf_ffv1 CRC=0x02354cdc
diff --git a/tests/ref/lavf/mxf_opatom b/tests/ref/lavf/mxf_opatom
index fa72241813..cde56adc18 100644
--- a/tests/ref/lavf/mxf_opatom
+++ b/tests/ref/lavf/mxf_opatom
@@ -1,3 +1,3 @@
-6418766ca9b8b23fae74a80d66f26f3e *tests/data/lavf/lavf.mxf_opatom
+f65b5312d2233a5963c0c59a8bb2c59f *tests/data/lavf/lavf.mxf_opatom
4717625 tests/data/lavf/lavf.mxf_opatom
tests/data/lavf/lavf.mxf_opatom CRC=0xb13ba2f8
diff --git a/tests/ref/lavf/mxf_opatom_audio b/tests/ref/lavf/mxf_opatom_audio
index 0e034991c0..7272159799 100644
--- a/tests/ref/lavf/mxf_opatom_audio
+++ b/tests/ref/lavf/mxf_opatom_audio
@@ -1,3 +1,3 @@
-633b6d373009416f214edcf456208580 *tests/data/lavf/lavf.mxf_opatom_audio
+2c042a4c213356439b30c21254482496 *tests/data/lavf/lavf.mxf_opatom_audio
102969 tests/data/lavf/lavf.mxf_opatom_audio
tests/data/lavf/lavf.mxf_opatom_audio CRC=0xd155c6ff