* accept default dimension even if one only one of h or w is good enough

@see http://www.filebot.net/forums/viewtopic.php?f=6&t=959&p=5998#p5998
This commit is contained in:
Reinhard Pointner 2013-09-23 18:52:13 +00:00
parent 7e1a8bb5c7
commit e1b63c7b96
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ public class MediaBindingBean {
int[] ws = new int[] { 1920, 1280, 720, 720, 360, 240, 120 };
int[] hs = new int[] { 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 + 1] || height > hs[i + 1]) {
ns = hs[i];
break;
}