projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16bd0e7
)
multiqueue: Fix overflow on get_buffering_level()
author
Seungha Yang
<sh.yang@lge.com>
Sat, 10 Dec 2016 09:38:32 +0000
(18:38 +0900)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sun, 11 Dec 2016 11:30:52 +0000
(13:30 +0200)
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
patch
|
blob
|
history
diff --git
a/plugins/elements/gstmultiqueue.c
b/plugins/elements/gstmultiqueue.c
index d6b29678183cf78ffbdd2e893b3e46396066ddfe..d59acaa8302031e94c33aba0a3b54ded6e8ca188 100644
(file)
--- 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);
}