diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-02 10:58:33 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-02 10:58:33 +0000 |
commit | 822617cd509570ba54167dad1447a7c35856acf9 (patch) | |
tree | 358b6df260358995a3874239da43acb02261d0e9 | |
parent | 2253d6d77397a619ec96889636a9ce868a81ddc5 (diff) | |
download | ffmpeg-822617cd509570ba54167dad1447a7c35856acf9.tar.gz |
24bit pcm support
Originally committed as revision 16942 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mxfenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index fe9096521b..7a4746b1e9 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -83,6 +83,7 @@ static const struct { int index; } mxf_essence_mappings[] = { { CODEC_ID_MPEG2VIDEO, 0 }, + { CODEC_ID_PCM_S24LE, 1 }, { CODEC_ID_PCM_S16LE, 1 }, { 0 } }; @@ -708,7 +709,7 @@ static void mxf_write_generic_sound_desc(AVFormatContext *s, AVStream *st, const put_be32(pb, st->codec->channels); mxf_write_local_tag(pb, 4, 0x3D01); - put_be32(pb, st->codec->bits_per_coded_sample); + put_be32(pb, av_get_bits_per_sample(st->codec->codec_id)); } static void mxf_write_wav_common_desc(AVFormatContext *s, AVStream *st, const UID key, unsigned size) |