diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-27 22:25:33 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-27 22:25:33 -0400 |
commit | c8649d0e0bbc726313a5e483ecdaba34ed33e19b (patch) | |
tree | 2e7b146f009ef97c4ddcb383d6eb0c2ca886a81c /src/opus_private.h | |
parent | f340bba0f23dd04649c9cf308a388cd6c357397c (diff) | |
download | libopus-c8649d0e0bbc726313a5e483ecdaba34ed33e19b.tar.gz |
Gives the Opus code direct access to (non-opaque) OpusRepacketizer
This avoids potential alignment issues with allocating a char
array on the stack.
Diffstat (limited to 'src/opus_private.h')
-rw-r--r-- | src/opus_private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/opus_private.h b/src/opus_private.h index ea7acb74..b3537052 100644 --- a/src/opus_private.h +++ b/src/opus_private.h @@ -32,6 +32,15 @@ #include "arch.h" #include "opus.h" +struct OpusRepacketizer { + unsigned char toc; + int nb_frames; + const unsigned char *frames[48]; + short len[48]; + int framesize; +}; + + #define MODE_SILK_ONLY 1000 #define MODE_HYBRID 1001 #define MODE_CELT_ONLY 1002 |