Use the video AR from the script rather than the video's AR when opening linked video

Originally committed to SVN as r6946.
This commit is contained in:
Thomas Goyne 2012-07-24 02:40:31 +00:00
parent 269a206053
commit de7dd7e07f
1 changed files with 1 additions and 1 deletions

View File

@ -688,13 +688,13 @@ void FrameMain::OnSubtitlesOpen() {
// Video
if (videoChanged) {
wxString arString = context->ass->GetScriptInfo("Video Aspect Ratio");
context->videoController->SetVideo(curSubsVideo);
if (context->videoController->IsLoaded()) {
context->videoController->JumpToFrame(context->ass->GetScriptInfoAsInt("Video Position"));
long videoAr = 0;
double videoArValue = 0.;
wxString arString = context->ass->GetScriptInfo("Video Aspect Ratio");
if (arString.StartsWith("c")) {
videoAr = 4;
arString.Mid(1).ToDouble(&videoArValue);