diff options
author | Martijn Kaijser <mcm.kaijser@gmail.com> | 2016-03-27 09:36:56 +0200 |
---|---|---|
committer | Martijn Kaijser <mcm.kaijser@gmail.com> | 2016-03-27 09:36:56 +0200 |
commit | c4aafd506ee499bfa78fc3591462d401fcca5cc6 (patch) | |
tree | d1fa07159ef48a326b35a70c9d75e8ab966e3b13 | |
parent | cc7c413c61ad2c36464c1d8bb9ca73885216b11d (diff) |
FIX: typo when calculating forced ratio size. credits to Koying
-rw-r--r-- | xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp | 4 |
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; } } |