aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/opus_rc.c
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.c
parente846617b8210fdd8d4a9612e0532c94173f193b1 (diff)
downloadffmpeg-5e8ea2bbc6d1798a8b843f9631fcb9da35c902f8.tar.gz
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.c')
-rw-r--r--libavcodec/opus_rc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/opus_rc.c b/libavcodec/opus_rc.c
index c432eb90c9..031332c9ce 100644
--- a/libavcodec/opus_rc.c
+++ b/libavcodec/opus_rc.c
@@ -390,7 +390,7 @@ void ff_opus_rc_enc_end(OpusRangeCoder *rc, uint8_t *dst, int size)
int i, lap;
uint8_t *rb_src, *rb_dst;
ff_opus_rc_put_raw(rc, 0, 32 - rc->rb.cachelen);
- rb_src = rc->buf + OPUS_MAX_PACKET_SIZE + 12 - rc->rb.bytes;
+ rb_src = rc->buf + OPUS_MAX_FRAME_SIZE + 12 - rc->rb.bytes;
rb_dst = dst + FFMAX(size - rc->rb.bytes, 0);
lap = &dst[rng_bytes] - rb_dst;
for (i = 0; i < lap; i++)
@@ -407,5 +407,5 @@ void ff_opus_rc_enc_init(OpusRangeCoder *rc)
rc->rem = -1;
rc->ext = 0;
rc->rng_cur = rc->buf;
- ff_opus_rc_dec_raw_init(rc, rc->buf + OPUS_MAX_PACKET_SIZE + 8, 0);
+ ff_opus_rc_dec_raw_init(rc, rc->buf + OPUS_MAX_FRAME_SIZE + 8, 0);
}