summaryrefslogtreecommitdiff
path: root/libavcodec/opus.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/opus.h')
-rw-r--r--libavcodec/opus.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/opus.h b/libavcodec/opus.h
index 55c91fa012..fbf67c9b9f 100644
--- a/libavcodec/opus.h
+++ b/libavcodec/opus.h
@@ -32,7 +32,7 @@
#include "libavresample/avresample.h"
#include "avcodec.h"
-#include "get_bits.h"
+#include "bitstream.h"
#define MAX_FRAME_SIZE 1275
#define MAX_FRAMES 48
@@ -92,7 +92,7 @@ typedef struct RawBitsContext {
} RawBitsContext;
typedef struct OpusRangeCoder {
- GetBitContext gb;
+ BitstreamContext bc;
RawBitsContext rb;
unsigned int range;
unsigned int value;
@@ -196,7 +196,7 @@ typedef struct OpusContext {
static av_always_inline void opus_rc_normalize(OpusRangeCoder *rc)
{
while (rc->range <= 1<<23) {
- rc->value = ((rc->value << 8) | (get_bits(&rc->gb, 8) ^ 0xFF)) & ((1u << 31) - 1);
+ rc->value = ((rc->value << 8) | (bitstream_read(&rc->bc, 8) ^ 0xFF)) & ((1u << 31) - 1);
rc->range <<= 8;
rc->total_read_bits += 8;
}