mirror of
https://github.com/darksaid98/mediaplex.git
synced 2026-12-03 22:16:48 +00:00
chore: update
This commit is contained in:
1 parent
345a8c44ca
commit
71b3dc90ee
136 files changed
+3928
-2157
No files matched your search
+3
-6
@@ -39,7 +39,7 @@
|
||||
#define CHANNELS 2
|
||||
#define FRAMESIZE 5760
|
||||
|
||||
int test_overflow(void)
|
||||
void test_overflow(void)
|
||||
{
|
||||
OpusDecoder *decoder;
|
||||
int result;
|
||||
@@ -51,7 +51,7 @@ int test_overflow(void)
|
||||
fprintf(stderr, " Checking for padding overflow... ");
|
||||
if (!in || !out) {
|
||||
fprintf(stderr, "FAIL (out of memory)\n");
|
||||
return -1;
|
||||
test_failed();
|
||||
}
|
||||
in[0] = 0xff;
|
||||
in[1] = 0x41;
|
||||
@@ -71,21 +71,18 @@ int test_overflow(void)
|
||||
}
|
||||
|
||||
fprintf(stderr, "OK.\n");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
const char *oversion;
|
||||
int tests = 0;;
|
||||
|
||||
iseed = 0;
|
||||
oversion = opus_get_version_string();
|
||||
if (!oversion) test_failed();
|
||||
fprintf(stderr, "Testing %s padding.\n", oversion);
|
||||
|
||||
tests += test_overflow();
|
||||
test_overflow();
|
||||
|
||||
fprintf(stderr, "All padding tests passed.\n");
|
||||
|
||||
|
||||
Reference in new issue
Block a user