On Wed, Mar 29, 2023 at 10:54:39PM +0200, Cédric Le Barz wrote: > Add jpeg2000 subdescriptor in MXF file. > > Signed-off-by: Cedric Le Barz > --- > ffmpeg/libavformat/mxf.h | 1 + > ffmpeg/libavformat/mxfenc.c | 74 ++++++++++++++++++++++++++++++++++++- > 2 files changed, 74 insertions(+), 1 deletion(-) > > diff --git a/ffmpeg/libavformat/mxf.h b/ffmpeg/libavformat/mxf.h > index 2561605..7dd1681 100644 > --- a/ffmpeg/libavformat/mxf.h > +++ b/ffmpeg/libavformat/mxf.h > @@ -55,6 +55,7 @@ enum MXFMetadataSetType { > SoundfieldGroupLabelSubDescriptor, > GroupOfSoundfieldGroupsLabelSubDescriptor, > FFV1SubDescriptor, > + JPEG2000SubDescriptor, > }; > enum MXFFrameLayout { > diff --git a/ffmpeg/libavformat/mxfenc.c b/ffmpeg/libavformat/mxfenc.c > index a29d678..3bdf90a 100644 > --- a/ffmpeg/libavformat/mxfenc.c > +++ b/ffmpeg/libavformat/mxfenc.c > @@ -390,6 +390,20 @@ static const MXFLocalTagPair mxf_local_tag_batch[] = { > { 0x8302, FF_MXF_MasteringDisplayWhitePointChromaticity }, > { 0x8303, FF_MXF_MasteringDisplayMaximumLuminance }, > { 0x8304, FF_MXF_MasteringDisplayMinimumLuminance }, > + // ff_mxf_jpeg2000_local_tags > + { 0x8400, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x09,0x06,0x01,0x01,0x04,0x06,0x10,0x00,0x00}}, > /* Sub Descriptors / Opt Ordered array of strong references to sub > descriptor sets */ your patch is corrupted by newlines, i suggest you check word/line wraping settings or attach it instead thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The real ebay dictionary, page 1 "Used only once" - "Some unspecified defect prevented a second use" "In good condition" - "Can be repaird by experienced expert" "As is" - "You wouldnt want it even if you were payed for it, if you knew ..."