[FFmpeg-devel] [PATCH 04/13] avformat/mxfenc: Add object model version

Tomas Härdin tjoppen at acc.umu.se
Tue May 8 13:32:17 EEST 2018


mån 2018-05-07 klockan 12:38 +0200 skrev Michael Niedermayer:
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

>      mxf_write_metadata_key(pb, 0x012f00);
>      PRINT_KEY(s, "preface key", pb->buf_ptr - 16);
> -    klv_encode_ber_length(pb, 130 + 16LL * DESCRIPTOR_COUNT(mxf->essence_container_count));
> +    klv_encode_ber_length(pb, 138 + 16LL * DESCRIPTOR_COUNT(mxf->essence_container_count));
>  
>      // write preface set uid
>      mxf_write_local_tag(pb, 16, 0x3C0A);
> @@ -696,6 +697,10 @@ static void mxf_write_preface(AVFormatContext *s)
>      mxf_write_local_tag(pb, 2, 0x3B05);
>      avio_wb16(pb, 259); // v1.2
>  
> +    // Object Model Version
> +    mxf_write_local_tag(pb, 4, 0x3B07);
> +    avio_wb32(pb, 1);
> 

Not sure what use this is, but looks OK at least. S377m doesn't seem to
think it's necessary. Is there some program that needs this?

/Tomas


More information about the ffmpeg-devel mailing list