From 66f46a0df13c9c59c5f82cfd898f0185f614dd8c Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 10 Dec 2016 18:38:32 +0900 Subject: [PATCH] multiqueue: Fix overflow on get_buffering_level() guint64 denominator factor for gst_util_uint64_scale_int() can cause overflow https://bugzilla.gnome.org/show_bug.cgi?id=775921 --- plugins/elements/gstmultiqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index d6b2967818..d59acaa830 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -1133,7 +1133,7 @@ get_buffering_level (GstSingleQueue * sq) buffering_level = 0; if (sq->max_size.time > 0) { tmp = - gst_util_uint64_scale_int (sq->cur_time, + gst_util_uint64_scale (sq->cur_time, MAX_BUFFERING_LEVEL, sq->max_size.time); buffering_level = MAX (buffering_level, tmp); }