Revision 8ed82d81

View differences:

libavformat/mxfenc.c
620 620
    put_byte(pb, sc->interlaced);
621 621

  
622 622
    // video line map
623
    mxf_write_local_tag(pb, 16, 0x320D);
624
    put_be32(pb, 2);
625
    put_be32(pb, 4);
626 623
    switch (st->codec->height) {
627 624
    case  576: f1 = 23; f2 = 336; break;
628 625
    case  608: f1 =  7; f2 = 320; break;
......
638 635
        f1 *= 2;
639 636
    }
640 637

  
638
    mxf_write_local_tag(pb, 16, 0x320D);
639
    put_be32(pb, sc->interlaced ? 2 : 1);
640
    put_be32(pb, 4);
641 641
    put_be32(pb, f1);
642
    put_be32(pb, f2);
642
    if (sc->interlaced)
643
        put_be32(pb, f2);
643 644

  
644 645
    av_reduce(&dar.num, &dar.den,
645 646
              st->codec->width*st->codec->sample_aspect_ratio.num,

Also available in: Unified diff