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

Fixes tandem-test.c

parent d0cb4ea3
......@@ -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",
......
......@@ -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);
......
Supports Markdown
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