[Ffmpeg-cvslog] r5947 - trunk/libavformat/movenc.c

bcoudurier subversion
Mon Aug 7 16:11:17 CEST 2006


Author: bcoudurier
Date: Mon Aug  7 16:11:17 2006
New Revision: 5947

Modified:
   trunk/libavformat/movenc.c

Log:
mp4, 3gp field is reserved and value is 2

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Mon Aug  7 16:11:17 2006
@@ -360,7 +360,7 @@
     put_be16(pb, 0); /* Revision level */
     put_be32(pb, 0); /* Reserved */
 
-    put_be16(pb, track->enc->channels); /* Number of channels */
+    put_be16(pb, track->mode == MODE_MOV ? track->enc->channels : 2); /* Number of channels */
     /* TODO: Currently hard-coded to 16-bit, there doesn't seem
                  to be a good way to get number of bits of audio */
     put_be16(pb, 0x10); /* Reserved */




More information about the ffmpeg-cvslog mailing list