The first UL of the SMPTE 436M descriptor triple in mxfenc.c used 0x0a
instead of 0x09. This caused generated MXF files without "MXF-GC Generic
ANC
Data Mapping" essence container descriptor.

This patch corrects the UL to align with SMPTE RP224, so that the ANC
descriptor is properly recognized.

Tested with MXFInspect and Adobe Premiere:
- Without the patch, the stream is not identified as ANC.
- With the patch, the ANC data is correctly detected as "Generic ANC Data".

Signed-off-by: Helmuth Schmitz <helmuthschm...@gmail.com>

---

diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index b14a480ba3..245c0853af 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -224,7 +224,7 @@ static const MXFContainerEssenceEntry
mxf_essence_container_uls[] = {
       {
0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x00,0x00,0x00
},
       mxf_write_h264_desc },
     // S436M ANC
-    { {
0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x0D,0x01,0x03,0x01,0x02,0x0e,0x00,0x00
},
+    { {
0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x09,0x0D,0x01,0x03,0x01,0x02,0x0E,0x00,0x00
},
       {
0x06,0x0E,0x2B,0x34,0x01,0x02,0x01,0x01,0x0D,0x01,0x03,0x01,0x17,0x01,0x02,0x00
},
       {
0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x01,0x5C,0x00
},
       mxf_write_s436m_anc_desc },
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-le...@ffmpeg.org

Reply via email to