From b270ba94ebf2f0b5780364d65a9ca56ac5c80115 Mon Sep 17 00:00:00 2001 From: davilla Date: Wed, 24 Apr 2013 10:35:18 -0400 Subject: [PATCH] [aml] fixed aspect ratio, hints.aspect == 1 typically means a defaulted value and not that the aspect ratio is really 1:1 --- xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp index ad646f7403279..ee32c0592e9f8 100644 --- a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp +++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp @@ -231,7 +231,7 @@ bool CDVDVideoCodecAmlogic::GetPicture(DVDVideoPicture* pDvdVideoPicture) pDvdVideoPicture->iDisplayWidth = pDvdVideoPicture->iWidth; pDvdVideoPicture->iDisplayHeight = pDvdVideoPicture->iHeight; - if (m_aspect_ratio > 0.0 && !m_hints.forced_aspect) + if (m_aspect_ratio > 1.0 && !m_hints.forced_aspect) { pDvdVideoPicture->iDisplayWidth = ((int)lrint(pDvdVideoPicture->iHeight * m_aspect_ratio)) & -3; if (pDvdVideoPicture->iDisplayWidth > pDvdVideoPicture->iWidth)