Fix completely incorrect behavior when AR changing is enabled in the resolution resampler

This commit is contained in:
Thomas Goyne 2012-09-14 07:55:31 -07:00
parent e552dc4c9c
commit 2c2f60d4e0

View file

@ -245,9 +245,12 @@ void ResampleResolution(AssFile *ass, ResampleSettings const& settings) {
settings.margin,
double(settings.script_x) / double(src_x),
double(settings.script_y) / double(src_y),
settings.change_ar ? state.rx / state.ry : 1.0
1.0
};
if (settings.change_ar)
state.ar = state.rx / state.ry;
for_each(ass->Line.begin(), ass->Line.end(), bind(resample_line, &state, std::tr1::placeholders::_1));
ass->SetScriptInfo("PlayResX", wxString::Format("%d", settings.script_x));