diff options
author | Seungha Yang <sh.yang@lge.com> | 2016-12-10 12:38:32 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-12-13 12:43:42 +0300 |
commit | 66f46a0df13c9c59c5f82cfd898f0185f614dd8c (patch) | |
tree | 7a8075789936527e97293b6531b3b14d4e1d43be | |
parent | a52f5d73bdf8751f8122f05fe87b37f53429ee02 (diff) |
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
-rw-r--r-- | plugins/elements/gstmultiqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |