Revision cbd70c41 libavformat/mxfenc.c

View differences:

libavformat/mxfenc.c
188 188
    { 0x3D07, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x05,0x04,0x02,0x01,0x01,0x04,0x00,0x00,0x00}}, /* ChannelCount */
189 189
    { 0x3D01, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x04,0x04,0x02,0x03,0x03,0x04,0x00,0x00,0x00}}, /* Quantization bits */
190 190
    { 0x3D06, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x04,0x02,0x04,0x02,0x00,0x00,0x00,0x00}}, /* Sound Essence Compression */
191
    // MPEG video Descriptor
192
    { 0x8000, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x05,0x04,0x01,0x06,0x02,0x01,0x0B,0x00,0x00}}, /* BitRate */
191 193
};
192 194

  
193 195
static void mxf_write_uuid(ByteIOContext *pb, enum MXFMetadataSetType type, int value)
......
595 597
    AVRational dar;
596 598
    int f1, f2;
597 599

  
598
    mxf_write_generic_desc(pb, st, mxf_mpegvideo_descriptor_key, 149);
600
    mxf_write_generic_desc(pb, st, mxf_mpegvideo_descriptor_key, 157);
599 601

  
600 602
    mxf_write_local_tag(pb, 4, 0x3203);
601 603
    put_be32(pb, st->codec->width);
......
609 611
    mxf_write_local_tag(pb, 4, 0x3208);
610 612
    put_be32(pb, st->codec->height>>sc->interlaced);
611 613

  
614
    // bit rate
615
    mxf_write_local_tag(pb, 4, 0x8000);
616
    put_be32(pb, st->codec->bit_rate);
617

  
612 618
    // frame layout
613 619
    mxf_write_local_tag(pb, 1, 0x320C);
614 620
    put_byte(pb, sc->interlaced);

Also available in: Unified diff