// progressive by default if ScanType is undefined
This commit is contained in:
parent
6aae22e604
commit
9bec33c20b
@ -380,8 +380,11 @@ public class MediaBindingBean {
|
|||||||
String height = getMediaInfo(StreamKind.Video, 0, "Height");
|
String height = getMediaInfo(StreamKind.Video, 0, "Height");
|
||||||
String scanType = getMediaInfo(StreamKind.Video, 0, "ScanType");
|
String scanType = getMediaInfo(StreamKind.Video, 0, "ScanType");
|
||||||
|
|
||||||
|
// progressive by default if ScanType is undefined
|
||||||
|
String p = scanType.codePoints().map(Character::toLowerCase).mapToObj(Character::toChars).map(String::valueOf).findFirst().orElse("p");
|
||||||
|
|
||||||
// e.g. 720p
|
// e.g. 720p
|
||||||
return height + Character.toLowerCase(scanType.charAt(0));
|
return height + p;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Define("af")
|
@Define("af")
|
||||||
|
Loading…
Reference in New Issue
Block a user