qtmux: prevent infinite loop when adjusting framerate
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 13 Oct 2010 15:47:29 +0000 (17:47 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 13 Oct 2010 15:48:34 +0000 (17:48 +0200)
Fixes #632070.

gst/qtmux/gstqtmux.c

index 32e8ce9..c09ad48 100644 (file)
@@ -2258,6 +2258,9 @@ refuse_renegotiation:
 static guint32
 adjust_rate (guint64 rate)
 {
+  if (rate == 0)
+    return 10000;
+
   while (rate >= 10000)
     rate /= 10;