From d692850bbbdf5be48bd91c2c540e83496582b9b1 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 24 Mar 2010 11:11:25 +0000 Subject: [PATCH] Silence ridiculous gcc warning. Originally committed as revision 22654 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/matroskaenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 5204e903c6..2b17154539 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -909,7 +909,7 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt) } // start a new cluster every 5 MB or 5 sec, or 32k / 1 sec for streaming - if (url_is_streamed(s->pb) && (url_ftell(pb) > 32*1024 || ts > mkv->cluster_pts + 1000) + if ((url_is_streamed(s->pb) && (url_ftell(pb) > 32*1024 || ts > mkv->cluster_pts + 1000)) || url_ftell(pb) > mkv->cluster_pos + 5*1024*1024 || ts > mkv->cluster_pts + 5000) { av_log(s, AV_LOG_DEBUG, "Starting new cluster at offset %" PRIu64 " bytes, pts %" PRIu64 "\n", url_ftell(pb), ts);