mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
jitterbuffer: prevent overflow in EOS estimation
Use a guint64 instead of a guint to hold a 64bit value to prevent completely bogues EOS estimation values due to overflows.
This commit is contained in:
parent
d6c623e90c
commit
64046416cc
1 changed files with 1 additions and 1 deletions
|
@ -1623,7 +1623,7 @@ push_buffer:
|
||||||
elapsed = gst_util_uint64_scale_int (elapsed, GST_SECOND, priv->clock_rate);
|
elapsed = gst_util_uint64_scale_int (elapsed, GST_SECOND, priv->clock_rate);
|
||||||
|
|
||||||
if (elapsed > priv->last_elapsed) {
|
if (elapsed > priv->last_elapsed) {
|
||||||
guint left;
|
guint64 left;
|
||||||
|
|
||||||
priv->last_elapsed = elapsed;
|
priv->last_elapsed = elapsed;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue