forked from mia/Aegisub
Fix crash when the video height or width is zero
Closes #1555. Closes #1644.
This commit is contained in:
parent
4d8adff9d6
commit
267de7ed07
1 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,9 @@ void VideoDisplay::Render() try {
|
|||
return;
|
||||
}
|
||||
|
||||
if (videoSize.GetWidth() == 0) videoSize.SetWidth(1);
|
||||
if (videoSize.GetHeight() == 0) videoSize.SetHeight(1);
|
||||
|
||||
if (!viewport_height || !viewport_width)
|
||||
PositionVideo();
|
||||
|
||||
|
|
Loading…
Reference in a new issue