# HG changeset patch # User cehoyos # Date 1269429085 0 # Node ID c973ff61882e820d6ba747aff4df8b3bc415c4f6 # Parent 6a24c2ae6ee4d4ea7f25535cb8a6e21c0a1aab2f Silence ridiculous gcc warning. diff -r 6a24c2ae6ee4 -r c973ff61882e matroskaenc.c --- a/matroskaenc.c Wed Mar 24 10:41:58 2010 +0000 +++ b/matroskaenc.c Wed Mar 24 11:11:25 2010 +0000 @@ -909,7 +909,7 @@ } // 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);