aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2016-03-27 09:38:40 +0200
committerMartijn Kaijser <martijn@xbmc.org>2016-03-27 09:38:40 +0200
commite164dd12d193722d9479060dc9e15992b8bf0a0e (patch)
treed1fa07159ef48a326b35a70c9d75e8ab966e3b13
parentcc7c413c61ad2c36464c1d8bb9ca73885216b11d (diff)
parentc4aafd506ee499bfa78fc3591462d401fcca5cc6 (diff)
Merge pull request #9464 from MartijnKaijser/droid_bp_v17
FIX: typo when calculating forced ratio size. credits to Koying
-rw-r--r--xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
index 2257435bbc..021d5c4afc 100644
--- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
+++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
@@ -1347,11 +1347,11 @@ void CDVDVideoCodecAndroidMediaCodec::ConfigureOutputFormat(CJNIMediaFormat* med
m_videobuffer.iDisplayHeight = crop_bottom + 1 - crop_top;
if (m_hints.aspect > 1.0 && !m_hints.forced_aspect)
{
- m_videobuffer.iDisplayWidth = ((int)lrint(m_videobuffer.iHeight * m_hints.aspect)) & -3;
+ m_videobuffer.iDisplayWidth = ((int)lrint(m_videobuffer.iHeight * m_hints.aspect)) & ~3;
if (m_videobuffer.iDisplayWidth > m_videobuffer.iWidth)
{
m_videobuffer.iDisplayWidth = m_videobuffer.iWidth;
- m_videobuffer.iDisplayHeight = ((int)lrint(m_videobuffer.iWidth / m_hints.aspect)) & -3;
+ m_videobuffer.iDisplayHeight = ((int)lrint(m_videobuffer.iWidth / m_hints.aspect)) & ~3;
}
}