mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +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
ba6b41dad4
commit
a2fdf5648f
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);
|
||||
|
||||
if (elapsed > priv->last_elapsed) {
|
||||
guint left;
|
||||
guint64 left;
|
||||
|
||||
priv->last_elapsed = elapsed;
|
||||
|
||||
|
|
Loading…
Reference in a new issue