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

vout: reset A.R. and zoom to sane defaults if unset (fixes #8184)

(cherry picked from commit fb63f1cc675c5302628ad2fec033ac2472107085)
parent f5cd073a
......@@ -1452,8 +1452,17 @@ static int ThreadReinit(vout_thread_t *vout,
}
state.sar.num = 0;
state.sar.den = 0;
/* FIXME current vout "variables" are not in sync here anymore
* and I am not sure what to do */
if (state.cfg.display.sar.num <= 0 || state.cfg.display.sar.den <= 0) {
state.cfg.display.sar.num = 1;
state.cfg.display.sar.den = 1;
}
if (state.cfg.zoom.num <= 0 || state.cfg.zoom.den <= 0) {
state.cfg.zoom.num = 1;
state.cfg.zoom.den = 1;
}
vout->p->original = original;
vout->p->dpb_size = cfg->dpb_size;
......
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