[FFmpeg-cvslog] r10357 - trunk/libavformat/matroskaenc.c

conrad subversion
Wed Sep 5 02:24:54 CEST 2007


Author: conrad
Date: Wed Sep  5 02:24:53 2007
New Revision: 10357

Log:
Use cluster_pos when checking cluster position


Modified:
   trunk/libavformat/matroskaenc.c

Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c	(original)
+++ trunk/libavformat/matroskaenc.c	Wed Sep  5 02:24:53 2007
@@ -677,7 +677,7 @@ static int mkv_write_packet(AVFormatCont
     int keyframe = !!(pkt->flags & PKT_FLAG_KEY);
 
     // start a new cluster every 5 MB or 5 sec
-    if (url_ftell(pb) > mkv->cluster + 5*1024*1024 || pkt->pts > mkv->cluster_pts + 5000) {
+    if (url_ftell(pb) > mkv->cluster_pos + 5*1024*1024 || pkt->pts > mkv->cluster_pts + 5000) {
         av_log(s, AV_LOG_DEBUG, "Starting new cluster at offset %llu bytes, pts %llu\n", url_ftell(pb), pkt->pts);
         end_ebml_master(pb, mkv->cluster);
 




More information about the ffmpeg-cvslog mailing list