Skip to content

Commit 9868517

Browse files
authored
Merge pull request xbmc#24527 from DaVukovic/streamdetails
[video] rework dimensions
2 parents e007eb0 + 73ea9a6 commit 9868517

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

xbmc/utils/StreamDetails.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -582,14 +582,15 @@ std::string CStreamDetails::VideoDimsToResolutionDescription(int iWidth, int iHe
582582
if (iWidth == 0 || iHeight == 0)
583583
return "";
584584

585-
else if (iWidth <= 720 && iHeight <= 480)
585+
// Anamorphic NTSC DVD
586+
else if (iWidth <= 854 && iHeight <= 480)
586587
return "480";
587-
// 720x576 (PAL) (768 when rescaled for square pixels)
588-
else if (iWidth <= 768 && iHeight <= 576)
589-
return "576";
590588
// 960x540 (sometimes 544 which is multiple of 16)
591589
else if (iWidth <= 960 && iHeight <= 544)
592590
return "540";
591+
// includes 768x576, 720x576 and 1024x576
592+
else if (iWidth <= 1024 && iHeight <= 576)
593+
return "576";
593594
// 1280x720
594595
else if (iWidth <= 1280 && iHeight <= 962)
595596
return "720";

0 commit comments

Comments
 (0)