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
This commit is contained in:
Seungha Yang 2016-12-10 18:38:32 +09:00 committed by Sebastian Dröge
parent 16bd0e7bac
commit ce11ddeb0c

View file

@ -1133,7 +1133,7 @@ get_buffering_level (GstSingleQueue * sq)
buffering_level = 0; buffering_level = 0;
if (sq->max_size.time > 0) { if (sq->max_size.time > 0) {
tmp = tmp =
gst_util_uint64_scale_int (sq->cur_time, gst_util_uint64_scale (sq->cur_time,
MAX_BUFFERING_LEVEL, sq->max_size.time); MAX_BUFFERING_LEVEL, sq->max_size.time);
buffering_level = MAX (buffering_level, tmp); buffering_level = MAX (buffering_level, tmp);
} }