* improved steps for {vf}

This commit is contained in:
Reinhard Pointner 2014-04-29 07:35:03 +00:00
parent b41ab1f6f8
commit 31601c219f
1 changed files with 2 additions and 2 deletions

View File

@ -283,8 +283,8 @@ public class MediaBindingBean {
int height = Integer.parseInt(getMediaInfo(StreamKind.Video, 0, "Height")); int height = Integer.parseInt(getMediaInfo(StreamKind.Video, 0, "Height"));
int ns = 0; int ns = 0;
int[] ws = new int[] { 15360, 7680, 3840, 1920, 1280, 1024, 854, 854, 720, 720, 360, 240, 120 }; int[] ws = new int[] { 15360, 7680, 3840, 1920, 1280, 1024, 854, 852, 688, 512, 320 };
int[] hs = new int[] { 8640, 4320, 2160, 1080, 720, 576, 576, 480, 576, 480, 360, 240, 120 }; int[] hs = new int[] { 8640, 4320, 2160, 1080, 720, 576, 576, 480, 360, 240, 240 };
for (int i = 0; i < ws.length - 1; i++) { for (int i = 0; i < ws.length - 1; i++) {
if ((width >= ws[i] || height >= hs[i]) || (width > ws[i + 1] && height > hs[i + 1])) { if ((width >= ws[i] || height >= hs[i]) || (width > ws[i + 1] && height > hs[i + 1])) {
ns = hs[i]; ns = hs[i];