# HG changeset patch # User bcoudurier # Date 1233385195 0 # Node ID 28d38c1fb5faa413a67a2e63b8d81da511303f77 # Parent a7d69a32231102c82e7d581395b1475bd06ab281 split wav_desc in generic_sound_desc diff -r a7d69a322311 -r 28d38c1fb5fa mxfenc.c --- a/mxfenc.c Sat Jan 31 06:54:30 2009 +0000 +++ b/mxfenc.c Sat Jan 31 06:59:55 2009 +0000 @@ -604,12 +604,13 @@ put_buffer(pb, *sc->codec_ul, 16); } -static void mxf_write_wav_desc(AVFormatContext *s, AVStream *st) +static void mxf_write_generic_sound_desc(AVFormatContext *s, AVStream *st, const UID key, unsigned size) { ByteIOContext *pb = s->pb; - mxf_write_generic_desc(pb, st, mxf_wav_descriptor_key, 93); + mxf_write_generic_desc(pb, st, key, size); + // audio locked mxf_write_local_tag(pb, 1, 0x3D02); put_byte(pb, 1); @@ -625,6 +626,11 @@ put_be32(pb, st->codec->bits_per_coded_sample); } +static void mxf_write_wav_desc(AVFormatContext *s, AVStream *st) +{ + mxf_write_generic_sound_desc(s, st, mxf_wav_descriptor_key, 93); +} + static void mxf_write_package(AVFormatContext *s, enum MXFMetadataSetType type) { ByteIOContext *pb = s->pb;