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

bcoudurier subversion
Fri Aug 11 11:27:40 CEST 2006


Author: bcoudurier
Date: Fri Aug 11 11:27:40 2006
New Revision: 5981

Modified:
   trunk/libavformat/movenc.c

Log:
set elst start time to first pts

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Fri Aug 11 11:27:40 2006
@@ -926,10 +926,7 @@
 
     put_be32(pb, av_rescale_rnd(track->trackDuration, globalTimescale, track->timescale, AV_ROUND_UP)); /* duration   ... doesn't seem to effect psp */
 
-    if (track->hasBframes)
-        put_be32(pb, track->sampleDuration); /* first pts is 1 */
-    else
-        put_be32(pb, 0);
+    put_be32(pb, track->cluster[0].cts); /* first pts is cts since dts is 0 */
     put_be32(pb, 0x00010000);
     return 0x24;
 }




More information about the ffmpeg-cvslog mailing list