[Ffmpeg-cvslog] CVS: ffmpeg/libavformat movenc.c,1.57,1.58

Baptiste Coudurier CVS bcoudurier
Sat Mar 11 19:21:31 CET 2006


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

Modified Files:
	movenc.c 
Log Message:
create edts atom when muxing B frames, needed to compute cts

Index: movenc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/movenc.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- movenc.c	11 Mar 2006 18:18:17 -0000	1.57
+++ movenc.c	11 Mar 2006 18:21:28 -0000	1.58
@@ -929,7 +929,7 @@
 
     put_be32(pb, av_rescale_rnd(track->trackDuration, globalTimescale, track->timescale, AV_ROUND_UP)); /* duration   ... doesn't seem to effect psp */
 
-    put_be32(pb, 0x0);
+    put_be32(pb, track->sampleDuration);
     put_be32(pb, 0x00010000);
     return 0x24;
 }
@@ -959,7 +959,7 @@
     put_be32(pb, 0); /* size */
     put_tag(pb, "trak");
     mov_write_tkhd_tag(pb, track);
-    if (track->mode == MODE_PSP)
+    if (track->mode == MODE_PSP || track->hasBframes)
         mov_write_edts_tag(pb, track);  // PSP Movies require edts box
     mov_write_mdia_tag(pb, track);
     if (track->mode == MODE_PSP)





More information about the ffmpeg-cvslog mailing list