From a2fdf5648fab2939f02b291c95dce01448ea6e04 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 15 Apr 2009 18:14:48 +0200 Subject: [PATCH] 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. --- gst/rtpmanager/gstrtpjitterbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 63aefec5d7..e023df108b 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;