[FFmpeg-cvslog] r16942 - trunk/libavformat/mxfenc.c
bcoudurier
subversion
Mon Feb 2 11:58:33 CET 2009
Author: bcoudurier
Date: Mon Feb 2 11:58:33 2009
New Revision: 16942
Log:
24bit pcm support
Modified:
trunk/libavformat/mxfenc.c
Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c Mon Feb 2 11:54:10 2009 (r16941)
+++ trunk/libavformat/mxfenc.c Mon Feb 2 11:58:33 2009 (r16942)
@@ -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
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)
More information about the ffmpeg-cvslog
mailing list