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

Baptiste Coudurier CVS bcoudurier
Tue Apr 11 10:12:57 CEST 2006


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

Modified Files:
	movenc.c 
Log Message:
dont write stss atom if keyframes only

Index: movenc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/movenc.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- movenc.c	10 Apr 2006 17:04:22 -0000	1.63
+++ movenc.c	11 Apr 2006 08:12:54 -0000	1.64
@@ -758,7 +758,7 @@
     mov_write_stsd_tag(pb, track);
     mov_write_stts_tag(pb, track);
     if (track->enc->codec_type == CODEC_TYPE_VIDEO &&
-        track->hasKeyframes)
+        track->hasKeyframes < track->entry)
         mov_write_stss_tag(pb, track);
     if (track->enc->codec_type == CODEC_TYPE_VIDEO &&
         track->hasBframes)
@@ -1717,7 +1717,7 @@
         trk->cluster[cl][id].cts = pkt->pts - pkt->dts;
         trk->cluster[cl][id].key_frame = !!(pkt->flags & PKT_FLAG_KEY);
         if(trk->cluster[cl][id].key_frame)
-            trk->hasKeyframes = 1;
+            trk->hasKeyframes++;
     }
     trk->enc = enc;
     trk->entry++;





More information about the ffmpeg-cvslog mailing list