Revision 216b6631 libavformat/mxfenc.c

View differences:

libavformat/mxfenc.c
381 381
    mxf_write_local_tag(pb, 16, 0x3B03);
382 382
    mxf_write_uuid(pb, ContentStorage, 0);
383 383

  
384
    // operational pattern
384 385
    mxf_write_local_tag(pb, 16, 0x3B09);
385
    put_buffer(pb, op1a_ul, 16);
386
    if (s->nb_streams > 1) {
387
        put_buffer(pb, op1a_ul, 14);
388
        put_be16(pb, 0x0900); // multi track
389
    } else {
390
        put_buffer(pb, op1a_ul, 16);
391
    }
386 392

  
387 393
    // write essence_container_refs
388 394
    mxf_write_local_tag(pb, 8 + 16 * mxf->essence_container_count, 0x3B0A);
......
1000 1006
    put_be64(pb, 0); // bodyOffset
1001 1007

  
1002 1008
    put_be32(pb, bodysid); // bodySID
1003
    put_buffer(pb, op1a_ul, 16); // operational pattern
1009

  
1010
    // operational pattern
1011
    if (s->nb_streams > 1) {
1012
        put_buffer(pb, op1a_ul, 14);
1013
        put_be16(pb, 0x0900); // multi track
1014
    } else {
1015
        put_buffer(pb, op1a_ul, 16);
1016
    }
1004 1017

  
1005 1018
    // essence container
1006 1019
    mxf_write_essence_container_refs(s);

Also available in: Unified diff