Commit 1e3263a2 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Fix for some test program compat and an assertion that didn't make sense anymore

parent 4213a725
......@@ -173,8 +173,6 @@ void alg_quant(celt_norm_t *X, int N, int K, int spread, ec_enc *enc)
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;
......
......@@ -8,6 +8,7 @@
#define CELT_C
#include "../libcelt/stack_alloc.h"
#include "../libcelt/kiss_fft.c"
#include "../libcelt/entcode.c"
#ifndef M_PI
......
......@@ -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 @@ int main(int _argc,char **_argv){
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment