diff --git a/libavformat/mux.c b/libavformat/mux.c index cd5481f1d2b4f71f0c8e00f44532c15dbe527825..48f4d77d5fd6eabf9eb07d0cb96630d06daa6ffe 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -113,7 +113,7 @@ AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precissi } else { q = st->codec->time_base; } - for (j=2; j<2000; j+= 1+(j>2)) + for (j=2; j<14; j+= 1+(j>2)) while (q.den / q.num < min_precission && q.num % j == 0) q.num /= j; while (q.den / q.num < min_precission && q.den < (1<<24))