qtmux: prevent infinite loop when adjusting framerate

Fixes #632070.
This commit is contained in:
Mark Nauwelaerts 2010-10-13 17:47:29 +02:00
parent 06c2987d38
commit 231d4d9bdc

View file

@ -2258,6 +2258,9 @@ refuse_renegotiation:
static guint32
adjust_rate (guint64 rate)
{
if (rate == 0)
return 10000;
while (rate >= 10000)
rate /= 10;