[Ffmpeg-cvslog] CVS: ffmpeg/libavformat movenc.c,1.62,1.63

Baptiste Coudurier CVS bcoudurier
Mon Apr 10 19:04:31 CEST 2006


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

Modified Files:
	movenc.c 
Log Message:
fix edts for tracks without b frames

Index: movenc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/movenc.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- movenc.c	4 Apr 2006 17:44:59 -0000	1.62
+++ movenc.c	10 Apr 2006 17:04:22 -0000	1.63
@@ -946,7 +946,10 @@
 
     put_be32(pb, av_rescale_rnd(track->trackDuration, globalTimescale, track->timescale, AV_ROUND_UP)); /* duration   ... doesn't seem to effect psp */
 
-    put_be32(pb, track->sampleDuration);
+    if (track->hasBframes)
+        put_be32(pb, track->sampleDuration); /* first pts is 1 */
+    else
+        put_be32(pb, 0);
     put_be32(pb, 0x00010000);
     return 0x24;
 }





More information about the ffmpeg-cvslog mailing list