* {vf} fine-tuning
This commit is contained in:
parent
e1b63c7b96
commit
e1b57ed5d5
|
@ -279,10 +279,10 @@ 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[] { 1920, 1280, 720, 720, 360, 240, 120 };
|
int[] ws = new int[] { 15360, 7680, 3840, 1920, 1280, 720, 720, 360, 240, 120 };
|
||||||
int[] hs = new int[] { 1080, 720, 576, 480, 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++) {
|
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];
|
ns = hs[i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue