Fixes tandem-test.c
This commit is contained in:
parent
d0cb4ea301
commit
c5f999097f
2 changed files with 3 additions and 3 deletions
|
@ -2723,7 +2723,7 @@ const char *celt_strerror(int error)
|
||||||
static const char *error_strings[8] = {
|
static const char *error_strings[8] = {
|
||||||
"success",
|
"success",
|
||||||
"invalid argument",
|
"invalid argument",
|
||||||
"invalid mode",
|
"buffer too small",
|
||||||
"internal error",
|
"internal error",
|
||||||
"corrupted stream",
|
"corrupted stream",
|
||||||
"request not implemented",
|
"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);
|
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));
|
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);
|
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",
|
fprintf(stderr, "Error: at %d bytes_per_frame celt_decode returned %s\n",
|
||||||
bytes_per_frame, celt_strerror(ret));
|
bytes_per_frame, celt_strerror(ret));
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue