Commit 6b42af3f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec/encoder: remove no-op (refs #18697)

Changing AVCodecContext.noise_reduction at run-time has no effects.
Libavcodec only reads it during open.
parent 1c22bbe5
......@@ -1094,16 +1094,11 @@ static void check_hurry_up( encoder_sys_t *p_sys, AVFrame *frame, encoder_t *p_e
if ( current_date + HURRY_UP_GUARD2 > frame->pts )
{
p_sys->p_context->trellis = 0;
p_sys->p_context->noise_reduction = p_sys->i_noise_reduction
+ (HURRY_UP_GUARD2 + current_date - frame->pts) / 500;
msg_Dbg( p_enc, "hurry up mode 2" );
}
else
{
p_sys->p_context->trellis = p_sys->b_trellis;
p_sys->p_context->noise_reduction =
p_sys->i_noise_reduction;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment