ref: f9265ddf25cc512788820a636df11dc002210639
parent: 7fc2fbdb14af2ae7e9fb44cf56555f549ac65929
author: Jean-Marc Valin <[email protected]>
date: Thu Sep 1 09:46:18 EDT 2011
opus_strerror() and opus_get_version_string() moved to libcelt
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -2751,3 +2751,31 @@
return OPUS_UNIMPLEMENTED;
}
+
+
+const char *opus_strerror(int error)
+{
+ static const char *error_strings[8] = {
+ "success",
+ "invalid argument",
+ "buffer too small",
+ "internal error",
+ "corrupted stream",
+ "request not implemented",
+ "invalid state",
+ "memory allocation failed"
+ };
+ if (error > 0 || error < -7)
+ return "unknown error";
+ else
+ return error_strings[-error];
+}
+
+const char *opus_get_version_string(void)
+{
+ return "libopus " OPUS_VERSION
+#ifdef FUZZING
+ "-fuzzing"
+#endif
+ ;
+}
--- a/src/opus.c
+++ b/src/opus.c
@@ -49,29 +49,3 @@
}
}
-const char *opus_strerror(int error)
-{
- static const char *error_strings[8] = {
- "success",
- "invalid argument",
- "buffer too small",
- "internal error",
- "corrupted stream",
- "request not implemented",
- "invalid state",
- "memory allocation failed"
- };
- if (error > 0 || error < -7)
- return "unknown error";
- else
- return error_strings[-error];
-}
-
-const char *opus_get_version_string(void)
-{
- return "libopus " OPUS_VERSION
-#ifdef FUZZING
- "-fuzzing"
-#endif
- ;
-}