Ticket #11095: patch-11095-3.diff

File patch-11095-3.diff, 1.1 KB (added by Yeechang Lee <ylee@…>, 12 years ago)

Match more SD videos. A letterboxed 720x300 DVD should be reported as "SD" even if below 480 pixels in height

  • libs/libmythtv/mythplayer.cpp

    diff -ur mythtv-0.25.2.orig/libs/libmythtv/mythplayer.cpp mythtv-0.25.2/libs/libmythtv/mythplayer.cpp
    old new  
    43794379    infoMap["videoheight"]    = QString::number(height);
    43804380    infoMap["videoframerate"] = QString::number(video_frame_rate, 'f', 2);
    43814381
    4382     if (height < 480)
     4382    if (width < 640)
    43834383        return;
    43844384
    43854385    bool interlaced = is_interlaced(m_scan);
    4386     if (height == 480 || height == 576)
    4387         infoMap["videodescrip"] = "SD";
     4386    if (width == 1920 || height == 1080 || height == 1088)
     4387        infoMap["videodescrip"] = interlaced ? "HD_1080_I" : "HD_1080_P";
    43884388    else if (height == 720 && !interlaced)
    43894389        infoMap["videodescrip"] = "HD_720_P";
    4390     else if (height == 1080 || height == 1088)
    4391         infoMap["videodescrip"] = interlaced ? "HD_1080_I" : "HD_1080_P";
     4390    else if (height >= 720)
     4391        infoMap["videodescrip"] = "HD";
     4392    else infoMap["videodescrip"] = "SD";
    43924393}
    43934394
    43944395bool MythPlayer::GetRawAudioState(void) const