summaryrefslogtreecommitdiff
path: root/multimedia/gst-plugins/patches/patch-af
blob: 54815075624d7a0c0b86dc2bca9a8c0d8df98aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-af,v 1.1.1.1 2004/01/26 11:48:04 jmmv Exp $

--- gst/level/filter.func.orig	Sun Oct  5 18:46:21 2003
+++ gst/level/filter.func	Sun Jan 25 16:31:31 2004
@@ -9,10 +9,9 @@
   double squaresum = 0.0;	/* square sum of the integer samples */
   register double square = 0.0;		/* Square */
   register double PSS = 0.0;		/* Peak Square Sample */
+  gdouble normalizer = (double) (1 << resolution);
 
   *CS = 0.0;      /* Cumulative Square for this block */
-
-  gdouble normalizer = (double) (1 << resolution);
 
   /*
    * process data here