vo_gpu_next: avoid duplicate code (cosmetic)

Also avoids 80col violation.
This commit is contained in:
Niklas Haas 2023-08-27 13:35:52 +02:00 committed by Niklas Haas
parent 6fb9d92b25
commit 835fd7bdeb
1 changed files with 4 additions and 5 deletions

View File

@ -1954,11 +1954,10 @@ static void update_render_options(struct vo *vo)
pars->params.frame_mixer = opts->interpolation ? map_scaler(p, SCALER_TSCALE) : NULL;
// Request as many frames as required from the decoder
if (pars->params.frame_mixer) {
vo_set_queue_params(vo, 0, 2 + ceilf(pars->params.frame_mixer->kernel->radius));
} else {
vo_set_queue_params(vo, 0, 2);
}
int req_frames = 2;
if (pars->params.frame_mixer)
req_frames += ceilf(pars->params.frame_mixer->kernel->radius);
vo_set_queue_params(vo, 0, req_frames);
pars->params.deband_params = opts->deband ? &pars->deband_params : NULL;
pars->deband_params.iterations = opts->deband_opts->iterations;