Skip to content

Commit

Permalink
[aml] fixed aspect ratio, hints.aspect == 1 typically means a default…
Browse files Browse the repository at this point in the history
…ed value and not that the aspect ratio is really 1:1
  • Loading branch information
davilla committed Apr 24, 2013
1 parent 6ed8c9b commit b270ba9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b270ba9

Please sign in to comment.