[Ffmpeg-cvslog] r8213 - trunk/libavformat/movenc.c
bcoudurier
subversion
Sun Mar 4 02:56:27 CET 2007
Author: bcoudurier
Date: Sun Mar 4 02:56:27 2007
New Revision: 8213
Modified:
trunk/libavformat/movenc.c
Log:
fix pcm u/s8 muxing
Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c (original)
+++ trunk/libavformat/movenc.c Sun Mar 4 02:56:27 2007
@@ -343,7 +343,11 @@ static int mov_write_audio_tag(ByteIOCon
if (track->mode == MODE_MOV) {
put_be16(pb, track->enc->channels);
- put_be16(pb, 16); /* FIXME 8 bit for 'raw ' in mov */
+ if (track->enc->codec_id == CODEC_ID_PCM_U8 ||
+ track->enc->codec_id == CODEC_ID_PCM_S8)
+ put_be16(pb, 8); /* bits per sample */
+ else
+ put_be16(pb, 16);
put_be16(pb, track->audio_vbr ? -2 : 0); /* compression ID */
} else { /* reserved for mp4/3gp */
put_be16(pb, 2);
More information about the ffmpeg-cvslog
mailing list