diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-04-15 18:14:48 +0200 |
---|---|---|
committer | Dave Robillard <dave@drobilla.net> | 2009-05-03 12:03:15 -0400 |
commit | b234bafdcac658619549f682d1b80eef5c0b4c48 (patch) | |
tree | 1427a0d4fed4b62d8200ae32e459ded39f796d94 /gst | |
parent | 3463df485087223a0f6ac672dd430a98d96bf60a (diff) | |
download | gst-plugins-bad-b234bafdcac658619549f682d1b80eef5c0b4c48.tar.gz gst-plugins-bad-b234bafdcac658619549f682d1b80eef5c0b4c48.tar.bz2 gst-plugins-bad-b234bafdcac658619549f682d1b80eef5c0b4c48.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')
-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; |