summaryrefslogtreecommitdiff
path: root/libavcodec/opus_rc.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-07 19:36:40 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-08 10:19:36 +0200
commit5e8ea2bbc6d1798a8b843f9631fcb9da35c902f8 (patch)
treea64534112eee968c5b7bc69607bfc2585befe0a8 /libavcodec/opus_rc.h
parente846617b8210fdd8d4a9612e0532c94173f193b1 (diff)
avcodec/opus_rc: Don't duplicate define
Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/opus_rc.h')
-rw-r--r--libavcodec/opus_rc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/opus_rc.h b/libavcodec/opus_rc.h
index 627f83229e..4cd2378bdf 100644
--- a/libavcodec/opus_rc.h
+++ b/libavcodec/opus_rc.h
@@ -25,8 +25,7 @@
#include <stdint.h>
#include "get_bits.h"
-
-#define OPUS_MAX_PACKET_SIZE 1275
+#include "opus.h"
#define opus_ilog(i) (av_log2(i) + !!(i))
@@ -45,7 +44,7 @@ typedef struct OpusRangeCoder {
uint32_t total_bits;
/* Encoder */
- uint8_t buf[OPUS_MAX_PACKET_SIZE + 12]; /* memcpy vs (memmove + overreading) */
+ uint8_t buf[OPUS_MAX_FRAME_SIZE + 12]; /* memcpy vs (memmove + overreading) */
uint8_t *rng_cur; /* Current range coded byte */
int ext; /* Awaiting propagation */
int rem; /* Carryout flag */