Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jean-marc.valin@octasic.com>2011-03-18 22:47:53 +0300
committerJean-Marc Valin <jean-marc.valin@octasic.com>2011-03-18 22:47:53 +0300
commitc5f999097f64eb090e1a353a57f80045ece7330a (patch)
treed4e52ed421acc8730cf883bad16b13c207872084
parentd0cb4ea30139b640d0226db2c2baf4d92865529e (diff)
Fixes tandem-test.c
-rw-r--r--libcelt/celt.c2
-rw-r--r--tests/tandem-test.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libcelt/celt.c b/libcelt/celt.c
index f615091..334fbce 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -2723,7 +2723,7 @@ const char *celt_strerror(int error)
static const char *error_strings[8] = {
"success",
"invalid argument",
- "invalid mode",
+ "buffer too small",
"internal error",
"corrupted stream",
"request not implemented",
diff --git a/tests/tandem-test.c b/tests/tandem-test.c
index 72783c8..3070d1d 100644
--- a/tests/tandem-test.c
+++ b/tests/tandem-test.c
@@ -112,7 +112,7 @@ int async_tandem(int rate, int frame_size, int channels, int bitrate_min,
}
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 @@ int async_tandem(int rate, int frame_size, int channels, int bitrate_min,
}
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);