rtpsession: compute the average correctly scaled
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 13 Sep 2010 10:31:40 +0000 (12:31 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 13 Sep 2010 10:31:40 +0000 (12:31 +0200)
gst/rtpmanager/rtpsession.c

index 6348665..5403bc1 100644 (file)
@@ -80,7 +80,7 @@ enum
   if ((avg) == 0)                       \
    (avg) = (val) << 4;                  \
   else                                  \
-   (avg) = ((val) + (15 * (avg))) >> 4;
+   (avg) = ((val) + (15 * (avg)));
 
 /* The number RTCP intervals after which to timeout entries in the
  * collision table