aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2016-03-27 09:42:08 +0200
committerMartijn Kaijser <martijn@xbmc.org>2016-03-27 09:42:08 +0200
commitc84031fbb7724376fce7c41f8def002158e09a29 (patch)
tree79a7cfc821994379e26ecab25637d03783e2df49
parentdd0e23dd6216ef15f900948a11804875b76e5ac5 (diff)
parentc74720b98a147a3390d10c2a0459ce1a8240900f (diff)
Merge pull request #9465 from MartijnKaijser/droid_bp
FIX: typo when calculating forced ratio size. credits to Koying
-rw-r--r--xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
index 8a7c5cd670..085e2cd77e 100644
--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
+++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
@@ -1350,11 +1350,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;
}
}