---
name: "opus_errorcodes"
section: "3"
platform: "linux"
package: "libopus-doc"
version: "1.5.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/opus_errorcodes"
---

# opus\_errorcodes(3)

Error codes

## NAME

opus\_errorcodes - Error codes

## SYNOPSIS

### Macros

\#define **OPUS\_OK**\
 No error.  #define **OPUS\_BAD\_ARG**\
 One or more invalid/out of range arguments.  #define **OPUS\_BUFFER\_TOO\_SMALL**\
 Not enough bytes allocated in the buffer.  #define **OPUS\_INTERNAL\_ERROR**\
 An internal error was detected.  #define **OPUS\_INVALID\_PACKET**\
 The compressed data passed is corrupted.  #define **OPUS\_UNIMPLEMENTED**\
 Invalid/unsupported request number.  #define **OPUS\_INVALID\_STATE**\
 An encoder or decoder structure is invalid or already freed.  #define **OPUS\_ALLOC\_FAIL**\
 Memory allocation has failed.

## Detailed Description

## Macro Definition Documentation

### #define OPUS\_ALLOC\_FAIL

Memory allocation has failed.

### #define OPUS\_BAD\_ARG

One or more invalid/out of range arguments.

### #define OPUS\_BUFFER\_TOO\_SMALL

Not enough bytes allocated in the buffer.

### #define OPUS\_INTERNAL\_ERROR

An internal error was detected.

### #define OPUS\_INVALID\_PACKET

The compressed data passed is corrupted.

### #define OPUS\_INVALID\_STATE

An encoder or decoder structure is invalid or already freed.

### #define OPUS\_OK

No error.

### #define OPUS\_UNIMPLEMENTED

Invalid/unsupported request number.

## Author

Generated automatically by Doxygen for Opus from the source code.
