[FFmpeg-devel] [PATCH 12/13] avformat/mxfenc: Add Stored F2 Offset / Image Start/End Offset for D10

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


mån 2018-05-07 klockan 12:38 +0200 skrev Michael Niedermayer:
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
>          desc_size += 8;
>      if (st->codecpar->color_range != AVCOL_RANGE_UNSPECIFIED)
>          desc_size += 8 * 3;
> +    if (s->oformat == &ff_mxf_d10_muxer)
> +        desc_size += 8 + 8 + 8;
>  
>      mxf_write_generic_desc(s, st, key, desc_size);
>  
> @@ -1169,6 +1173,20 @@ static void mxf_write_cdci_common(AVFormatContext *s, AVStream *st, const UID ke
>      mxf_write_local_tag(pb, 4, 0x3202);
>      avio_wb32(pb, stored_height>>sc->interlaced);
>  
> +    if (s->oformat == &ff_mxf_d10_muxer) {
> +        //Stored F2 Offset
> +        mxf_write_local_tag(pb, 4, 0x3216);
> +        avio_wb32(pb, 0);
> +
> +        //Image Start Offset
> +        mxf_write_local_tag(pb, 4, 0x3213);
> +        avio_wb32(pb, 0);
> +
> +        //Image End Offset
> +        mxf_write_local_tag(pb, 4, 0x3214);
> +        avio_wb32(pb, 0);
> +    }

Looks OK, but of course I don't know what the spec says

/Tomas


More information about the ffmpeg-devel mailing list