Revision 52e5cd2b libavformat/mxfenc.c

View differences:

libavformat/mxfenc.c
58 58
    const UID *codec_ul;
59 59
    int64_t duration;
60 60
    int order; ///< interleaving order if dts are equal
61
    int interlaced; ///< wether picture is interlaced
61 62
} MXFStreamContext;
62 63

  
63 64
typedef struct {
......
810 811
            if (i + 2 < pkt->size && (pkt->data[i+1] & 0xf0) == 0x10) { // seq ext
811 812
                st->codec->profile = pkt->data[i+1] & 0x07;
812 813
                st->codec->level   = pkt->data[i+2] >> 4;
814
            } else if (i + 5 < pkt->size && (pkt->data[i+1] & 0xf0) == 0x80) { // pict coding ext
815
                sc->interlaced = !(pkt->data[i+5] & 0x80); // progressive frame
813 816
                break;
814 817
            }
815 818
        }

Also available in: Unified diff