From c1bd756acc54f76814fb5dca798ea191cbef6b97 Mon Sep 17 00:00:00 2001
From: angelaschmid <angela.schmid@wolke7.net>
Date: Sun, 5 Jan 2014 20:19:56 +0100
Subject: [PATCH] detect cropped HD (720p) content
---
mythtv/libs/libmythtv/mythplayer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index 4cba867..798f720 100644
a
|
b
|
void MythPlayer::GetCodecDescription(InfoMap &infoMap) |
4513 | 4513 | bool interlaced = is_interlaced(m_scan); |
4514 | 4514 | if (width == 1920 || height == 1080 || height == 1088) |
4515 | 4515 | infoMap["videodescrip"] = interlaced ? "HD_1080_I" : "HD_1080_P"; |
4516 | | else if (height == 720 && !interlaced) |
| 4516 | else if ((width == 1280 || height == 720) && !interlaced) |
4517 | 4517 | infoMap["videodescrip"] = "HD_720_P"; |
4518 | 4518 | else if (height >= 720) |
4519 | 4519 | infoMap["videodescrip"] = "HD"; |