summaryrefslogtreecommitdiff
path: root/libavcodec/opusenc_psy.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/opusenc_psy.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/opusenc_psy.c')
-rw-r--r--libavcodec/opusenc_psy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/opusenc_psy.c b/libavcodec/opusenc_psy.c
index 5c768ae68e..48ccd2ebd0 100644
--- a/libavcodec/opusenc_psy.c
+++ b/libavcodec/opusenc_psy.c
@@ -359,7 +359,7 @@ static void celt_gauge_psy_weight(OpusPsyContext *s, OpusPsyStep **start,
rate /= s->avctx->sample_rate/frame_size;
f_out->framebits = lrintf(rate);
- f_out->framebits = FFMIN(f_out->framebits, OPUS_MAX_PACKET_SIZE*8);
+ f_out->framebits = FFMIN(f_out->framebits, OPUS_MAX_FRAME_SIZE * 8);
f_out->framebits = FFALIGN(f_out->framebits, 8);
}