mirror of https://github.com/odrling/Aegisub
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:
parent
269a206053
commit
de7dd7e07f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue