diff options
author | kasper93 <kasper93@gmail.com> | 2014-05-11 16:46:15 +0400 |
---|---|---|
committer | kasper93 <kasper93@gmail.com> | 2014-05-12 00:15:16 +0400 |
commit | 2ee662b0886497335552b7fa862ea0457d62d86a (patch) | |
tree | c7c43c5944cc427ad9d40a3bb62138d2139b4c49 /src/filters/transform | |
parent | f2b6ade8e8185fdc5908ed88df31e68a106786a9 (diff) |
ISR: Apply aspect ratio compensation.
Diffstat (limited to 'src/filters/transform')
-rw-r--r-- | src/filters/transform/VSFilter/DirectVobSubFilter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filters/transform/VSFilter/DirectVobSubFilter.cpp b/src/filters/transform/VSFilter/DirectVobSubFilter.cpp index 4e5371cff..7182c8531 100644 --- a/src/filters/transform/VSFilter/DirectVobSubFilter.cpp +++ b/src/filters/transform/VSFilter/DirectVobSubFilter.cpp @@ -1166,8 +1166,8 @@ STDMETHODIMP CDirectVobSubFilter::put_AspectRatioSettings(CSimpleTextSubtitle::E pRTS->m_ePARCompensationType = m_ePARCompensationType;
if (m_CurrentVIH2.dwPictAspectRatioX && m_CurrentVIH2.dwPictAspectRatioY && m_CurrentVIH2.bmiHeader.biWidth && m_CurrentVIH2.bmiHeader.biHeight) {
- pRTS->m_dPARCompensation = ((double)abs(m_CurrentVIH2.bmiHeader.biWidth) / (double)abs(m_CurrentVIH2.bmiHeader.biHeight)) /
- ((double)abs((long)m_CurrentVIH2.dwPictAspectRatioX) / (double)abs((long)m_CurrentVIH2.dwPictAspectRatioY));
+ pRTS->m_dPARCompensation = ((double)abs(m_CurrentVIH2.bmiHeader.biWidth) / abs(m_CurrentVIH2.bmiHeader.biHeight)) /
+ ((double)abs((long)m_CurrentVIH2.dwPictAspectRatioX) / abs((long)m_CurrentVIH2.dwPictAspectRatioY));
} else {
pRTS->m_dPARCompensation = 1.00;
}
@@ -1613,8 +1613,8 @@ void CDirectVobSubFilter::SetSubtitle(ISubStream* pSubStream) pRTS->m_ePARCompensationType = m_ePARCompensationType;
if (m_CurrentVIH2.dwPictAspectRatioX && m_CurrentVIH2.dwPictAspectRatioY && m_CurrentVIH2.bmiHeader.biWidth && m_CurrentVIH2.bmiHeader.biHeight) {
- pRTS->m_dPARCompensation = ((double)abs(m_CurrentVIH2.bmiHeader.biWidth) / (double)abs(m_CurrentVIH2.bmiHeader.biHeight)) /
- ((double)abs((long)m_CurrentVIH2.dwPictAspectRatioX) / (double)abs((long)m_CurrentVIH2.dwPictAspectRatioY));
+ pRTS->m_dPARCompensation = ((double)abs(m_CurrentVIH2.bmiHeader.biWidth) / abs(m_CurrentVIH2.bmiHeader.biHeight)) /
+ ((double)abs((long)m_CurrentVIH2.dwPictAspectRatioX) / abs((long)m_CurrentVIH2.dwPictAspectRatioY));
} else {
pRTS->m_dPARCompensation = 1.00;
}
|