avcodec/ratecontrol: Remove unnecessary emms_c()

ff_rate_control_init/uninit() are only called during
codec init or close and no DSP calls happen in these,
so there is no need to reset the floating point state.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-02-08 16:21:16 +01:00
parent fe1742618d
commit 059654a73b

View File

@@ -533,7 +533,6 @@ av_cold int ff_rate_control_init(MPVMainEncContext *const m)
"qp2bits",
NULL
};
emms_c();
if (!avctx->rc_max_available_vbv_use && avctx->rc_buffer_size) {
if (avctx->rc_max_rate) {
@@ -710,8 +709,6 @@ av_cold int ff_rate_control_init(MPVMainEncContext *const m)
av_cold void ff_rate_control_uninit(RateControlContext *rcc)
{
emms_c();
// rc_eq is always managed via an AVOption and therefore not freed here.
av_expr_free(rcc->rc_eq_eval);
rcc->rc_eq_eval = NULL;