Temporary makefile, fixed a segfault
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 1 Jul 2010 02:04:02 +0000 (22:04 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 1 Jul 2010 02:04:02 +0000 (22:04 -0400)
src/Makefile [new file with mode: 0644]
src/hybrid_decoder.c

diff --git a/src/Makefile b/src/Makefile
new file mode 100644 (file)
index 0000000..3673a52
--- /dev/null
@@ -0,0 +1,2 @@
+all:
+       gcc -O3 -g -I../ -I../celt/libcelt -L../celt/libcelt/.libs/ -o test_hybrid test_hybrid.c hybrid_decoder.c hybrid_encoder.c -lcelt0 -lm
index 2617faf..6d0c16a 100644 (file)
@@ -71,7 +71,7 @@ int hybrid_decode(HybridDecoder *st, const unsigned char *data,
        celt_decoder_ctl(st->celt_dec, CELT_SET_START_BAND(13));
 
        /* Encode high band with CELT */
-       celt_ret = celt_decode_with_ec(st->celt_dec, data, len, pcm, NULL, frame_size, &dec);
+       celt_ret = celt_decode_with_ec(st->celt_dec, data, len, pcm, frame_size, &dec);
 
        return celt_ret;