ref: c5f999097f64eb090e1a353a57f80045ece7330a
parent: d0cb4ea30139b640d0226db2c2baf4d92865529e
author: Jean-Marc Valin <[email protected]>
date: Fri Mar 18 11:47:53 EDT 2011
Fixes tandem-test.c
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -2723,7 +2723,7 @@
static const char *error_strings[8] = {
"success",
"invalid argument",
- "invalid mode",
+ "buffer too small",
"internal error",
"corrupted stream",
"request not implemented",
--- a/tests/tandem-test.c
+++ b/tests/tandem-test.c
@@ -112,7 +112,7 @@
}
ret = celt_decode(dec, data, ret, pcm, frame_size);
- if (ret != CELT_OK) {
+ if (ret < 0) {
fprintf(stderr, "Error: celt_decode returned %s\n", celt_strerror(ret));
}
}
@@ -137,7 +137,7 @@
}
ret = celt_decode(dec, data, ret, pcm, frame_size);
- if (ret != CELT_OK) {
+ if (ret < 0) {
fprintf(stderr, "Error: at %d bytes_per_frame celt_decode returned %s\n",
bytes_per_frame, celt_strerror(ret));
exit(1);