Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Subtitles: Adjust AVSub scaling in some cases.

Tweaks the heuristic for determining when the video was resized
without correspondingly rescaling the AV subtitles.  Fixes #10688.

Signed-off-by: Jim Stichnoth <jstichnoth@mythtv.org>
  • Loading branch information...
commit 53f7a1d2aa38a0343f33e91760ac88ffc6d596e9 1 parent 461f42d
almtvb authored stichnot committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  mythtv/libs/libmythtv/subtitlescreen.cpp
View
3  mythtv/libs/libmythtv/subtitlescreen.cpp
@@ -788,7 +788,8 @@ void SubtitleScreen::DisplayAVSubtitles(void)
!display.width() || !display.height())
{
int sd_height = 576;
- if ((m_player->GetFrameRate() > 26.0f) && bottom <= 480)
+ if ((m_player->GetFrameRate() > 26.0f ||
+ m_player->GetFrameRate() < 24.0f) && bottom <= 480)
sd_height = 480;
int height = ((currentFrame->height <= sd_height) &&
(bottom <= sd_height)) ? sd_height :
Please sign in to comment.
Something went wrong with that request. Please try again.