[Ffmpeg-cvslog] CVS: ffmpeg/libavformat movenc.c,1.74,1.75

Baptiste Coudurier CVS bcoudurier
Sun May 14 00:25:19 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv13116/libavformat

Modified Files:
	movenc.c 
Log Message:
do not write wave if not needed

Index: movenc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/movenc.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- movenc.c	13 May 2006 21:00:52 -0000	1.74
+++ movenc.c	13 May 2006 22:25:17 -0000	1.75
@@ -399,7 +399,11 @@
         put_be32(pb, 2);
     }
 
-    if(track->mode == MODE_MOV)
+    if(track->mode == MODE_MOV &&
+       (track->enc->codec_id == CODEC_ID_AAC ||
+        track->enc->codec_id == CODEC_ID_AMR_NB ||
+        track->enc->codec_id == CODEC_ID_PCM_S24LE ||
+        track->enc->codec_id == CODEC_ID_PCM_S32LE))
         mov_write_wave_tag(pb, track);
     else if(track->enc->codec_id == CODEC_ID_AAC)
         mov_write_esds_tag(pb, track);





More information about the ffmpeg-cvslog mailing list