comparison mxfenc.c @ 4317:b978795a9e37 libavformat

local tag 3201 is picture essence coding, so do not write it for wav
author bcoudurier
date Sat, 31 Jan 2009 06:49:42 +0000
parents 3c4392f087dc
children a7d69a322311
comparison
equal deleted inserted replaced
4316:3c4392f087dc 4317:b978795a9e37
568 put_be32(pb, st->time_base.den); 568 put_be32(pb, st->time_base.den);
569 put_be32(pb, st->time_base.num); 569 put_be32(pb, st->time_base.num);
570 570
571 mxf_write_local_tag(pb, 16, 0x3004); 571 mxf_write_local_tag(pb, 16, 0x3004);
572 put_buffer(pb, mxf_essence_container_uls[sc->index].container_ul, 16); 572 put_buffer(pb, mxf_essence_container_uls[sc->index].container_ul, 16);
573
574 mxf_write_local_tag(pb, 16, 0x3201);
575 put_buffer(pb, *sc->codec_ul, 16);
576 } 573 }
577 574
578 static const UID mxf_mpegvideo_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x51,0x00 }; 575 static const UID mxf_mpegvideo_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x51,0x00 };
579 static const UID mxf_wav_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x48,0x00 }; 576 static const UID mxf_wav_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x48,0x00 };
580 577
599 1024*1024); 596 1024*1024);
600 597
601 mxf_write_local_tag(pb, 8, 0x320E); 598 mxf_write_local_tag(pb, 8, 0x320E);
602 put_be32(pb, dar.num); 599 put_be32(pb, dar.num);
603 put_be32(pb, dar.den); 600 put_be32(pb, dar.den);
601
602 mxf_write_local_tag(pb, 16, 0x3201);
603 put_buffer(pb, *sc->codec_ul, 16);
604 } 604 }
605 605
606 static void mxf_write_wav_desc(AVFormatContext *s, AVStream *st) 606 static void mxf_write_wav_desc(AVFormatContext *s, AVStream *st)
607 { 607 {
608 ByteIOContext *pb = s->pb; 608 ByteIOContext *pb = s->pb;
609 609
610 mxf_write_generic_desc(pb, st, mxf_wav_descriptor_key, 108); 610 mxf_write_generic_desc(pb, st, mxf_wav_descriptor_key, 88);
611 611
612 // write audio sampling rate 612 // write audio sampling rate
613 mxf_write_local_tag(pb, 8, 0x3D03); 613 mxf_write_local_tag(pb, 8, 0x3D03);
614 put_be32(pb, st->codec->sample_rate); 614 put_be32(pb, st->codec->sample_rate);
615 put_be32(pb, 1); 615 put_be32(pb, 1);