mirror of
https://github.com/xiph/opus.git
synced 2025-06-04 01:27:42 +00:00
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] = {
|
||||
"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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue