mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-05-01 06:13:08 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user