diff options
author | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:53 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:53 +0000 |
commit | cce800b456be8deda5a4fc1744e4acc87253a68b (patch) | |
tree | 4be5beb7931337fcc69d3aeff1d4a59c1b09cb3a /libavformat | |
parent | f0e9f44271190dd1d5e6efa84049e5eb76c986f2 (diff) | |
download | ffmpeg-cce800b456be8deda5a4fc1744e4acc87253a68b.tar.gz |
Use cluster_pos when checking cluster position
Originally committed as revision 10357 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 6146ee1db4..3f4a3b666e 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -677,7 +677,7 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt) 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); |