Fix #197 and #209: video window size and .ts extension error

This commit is contained in:
Paddy Xu
2018-03-24 11:39:20 +02:00
parent 8e7f398626
commit d9bcce1a21
2 changed files with 5 additions and 3 deletions

View File

@@ -123,7 +123,9 @@ namespace QuickLook.Plugin.VideoViewer
var tracks = media.GetTracks();
var video = tracks.FirstOrDefault(mt => mt.Type == TrackType.Video) as VideoTrack;
size = video == null ? Size.Empty : new Size(video.Width, video.Height);
size = video == null
? Size.Empty
: new Size(Math.Max(1366, video.Width), Math.Max(768, video.Height));
return video != null;
}