* {vf} fine-tuning

This commit is contained in:
Reinhard Pointner 2013-09-23 20:01:11 +00:00
parent e1b63c7b96
commit e1b57ed5d5
1 changed files with 3 additions and 3 deletions

View File

@ -279,10 +279,10 @@ public class MediaBindingBean {
int height = Integer.parseInt(getMediaInfo(StreamKind.Video, 0, "Height"));
int ns = 0;
int[] ws = new int[] { 1920, 1280, 720, 720, 360, 240, 120 };
int[] hs = new int[] { 1080, 720, 576, 480, 360, 240, 120 };
int[] ws = new int[] { 15360, 7680, 3840, 1920, 1280, 720, 720, 360, 240, 120 };
int[] hs = new int[] { 8640, 4320, 2160, 1080, 720, 576, 480, 360, 240, 120 };
for (int i = 0; i < ws.length - 1; i++) {
if (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];
break;
}