aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjd-uk <jjd-uk@kodi.tv>2020-12-02 10:30:43 +0000
committerGitHub <noreply@github.com>2020-12-02 10:30:43 +0000
commit9adccc3a02b6ef2c577e840cf48c6d5253ebe2bb (patch)
tree4db10f3325cf91c70c9315c26b103524be29ac90
parent40e7c29b4dcf4c24d40713ce1a828b361a3ea7f3 (diff)
parent9f8149391cbfc6d9f520211e903c1c3dba2c034a (diff)
Merge pull request #18830 from jjd-uk/streamdetails
[Video] Modify Streamdetails to return correct resolution for 4:3 video
-rw-r--r--xbmc/utils/StreamDetails.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xbmc/utils/StreamDetails.cpp b/xbmc/utils/StreamDetails.cpp
index 558af46d5c..acc644e109 100644
--- a/xbmc/utils/StreamDetails.cpp
+++ b/xbmc/utils/StreamDetails.cpp
@@ -566,16 +566,16 @@ std::string CStreamDetails::VideoDimsToResolutionDescription(int iWidth, int iHe
else if (iWidth <= 960 && iHeight <= 544)
return "540";
// 1280x720
- else if (iWidth <= 1280 && iHeight <= 720)
+ else if (iWidth <= 1280 && iHeight <= 962)
return "720";
// 1920x1080
- else if (iWidth <= 1920 && iHeight <= 1080)
+ else if (iWidth <= 1920 && iHeight <= 1440)
return "1080";
// 4K
- else if (iWidth <= 4096 && iHeight <= 2160)
+ else if (iWidth <= 4096 && iHeight <= 3072)
return "4K";
// 8K
- else if (iWidth <= 8192 && iHeight <= 4320)
+ else if (iWidth <= 8192 && iHeight <= 6144)
return "8K";
else
return "";