diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-31 06:59:55 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-31 06:59:55 +0000 |
commit | c6b579df52a175829ba3a49ab313c9214873f8a3 (patch) | |
tree | 11b84339dc41bb76efbbe3297a1708b66531b0a0 /libavformat/mxfenc.c | |
parent | 3f2795ed5405cadf4c542bddf237d9dfb50890ed (diff) | |
download | ffmpeg-c6b579df52a175829ba3a49ab313c9214873f8a3.tar.gz |
split wav_desc in generic_sound_desc
Originally committed as revision 16894 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index e626435f70..a43a9a88a8 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -604,12 +604,13 @@ static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st) 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 @@ static void mxf_write_wav_desc(AVFormatContext *s, AVStream *st) 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; |