Commit fb63f1cc 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)

parent 30fe07ba
......@@ -1449,8 +1449,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