fixed the skipping of the zeros (skip the zeros instead of the good samples!)
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Mon, 26 May 2008 13:46:28 +0000 (23:46 +1000)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Mon, 26 May 2008 13:46:28 +0000 (23:46 +1000)
libcelt/testcelt.c

index d8dd5df..a22be79 100644 (file)
@@ -154,7 +154,7 @@ int main(int argc, char *argv[])
       }
 #endif
       count++;
       }
 #endif
       count++;
-      fwrite(out, sizeof(short), (frame_size-skip)*channels, fout);
+      fwrite(out+skip, sizeof(short), (frame_size-skip)*channels, fout);
       skip = 0;
    }
    celt_encoder_destroy(enc);
       skip = 0;
    }
    celt_encoder_destroy(enc);