diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-04-15 18:14:48 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-04-15 18:14:48 +0200 |
commit | a2fdf5648fab2939f02b291c95dce01448ea6e04 (patch) | |
tree | 2c8e21d218470381a311d3bf7207601b21947fc2 /gst/rtpmanager/gstrtpjitterbuffer.c | |
parent | ba6b41dad4c697cacccd088fec8ffe4a940c24d8 (diff) | |
download | gst-plugins-bad-a2fdf5648fab2939f02b291c95dce01448ea6e04.tar.gz gst-plugins-bad-a2fdf5648fab2939f02b291c95dce01448ea6e04.tar.bz2 gst-plugins-bad-a2fdf5648fab2939f02b291c95dce01448ea6e04.zip |
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.
Diffstat (limited to 'gst/rtpmanager/gstrtpjitterbuffer.c')
-rw-r--r-- | gst/rtpmanager/gstrtpjitterbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 63aefec5..e023df10 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -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; |