diff mxfenc.c @ 4346:0a142b4b841e libavformat

24bit pcm support
author bcoudurier
date Mon, 02 Feb 2009 10:58:33 +0000
parents 8e3538adb529
children b7fdb211ba7b
line wrap: on
line diff
--- a/mxfenc.c	Mon Feb 02 10:54:10 2009 +0000
+++ b/mxfenc.c	Mon Feb 02 10:58:33 2009 +0000
@@ -83,6 +83,7 @@
     int index;
 } mxf_essence_mappings[] = {
     { CODEC_ID_MPEG2VIDEO, 0 },
+    { CODEC_ID_PCM_S24LE,  1 },
     { CODEC_ID_PCM_S16LE,  1 },
     { 0 }
 };
@@ -708,7 +709,7 @@
     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)