ref: 1e3263a2674116e3fe2e7e0266e19184f5324a7d
parent: 4213a7254c6192788199da84aed67e2d36d1a02a
author: Jean-Marc Valin <[email protected]>
date: Fri Oct 2 13:48:25 EDT 2009
Fix for some test program compat and an assertion that didn't make sense anymore
--- a/libcelt/vq.c
+++ b/libcelt/vq.c
@@ -173,8 +173,6 @@
y[j] = 0;
} while (++j<N);
- celt_assert2(Rpp<=NORM_SCALING, "Rpp should never have a norm greater than unity");
-
xy = yy = 0;
pulsesLeft = K;
--- a/tests/dft-test.c
+++ b/tests/dft-test.c
@@ -8,6 +8,7 @@
#define CELT_C
#include "../libcelt/stack_alloc.h"
#include "../libcelt/kiss_fft.c"
+#include "../libcelt/entcode.c"
#ifndef M_PI
--- a/tests/ectest.c
+++ b/tests/ectest.c
@@ -5,8 +5,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
-#include <sys/types.h>
-#include <unistd.h>
#include <time.h>
#include "entcode.h"
#include "entenc.h"
@@ -49,7 +47,7 @@
if (_argc > 1)
seed = atoi(_argv[1]);
else
- seed = (time(NULL) ^ (getpid()%(1<<16) << 16));
+ seed = time(NULL);
/*Testing encoding of raw bit values.*/
ptr = malloc(DATA_SIZE);
ec_byte_writeinit_buffer(&buf, ptr, DATA_SIZE);