diff options
author | Underground78 <underground78@users.sourceforge.net> | 2013-05-09 18:32:59 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-05-09 18:46:33 +0400 |
commit | 5c7de10894bced8b1339225445bde13398827bfa (patch) | |
tree | f051bb66dca9f3fe30b089c8ae04bb8b3f69aa48 /src/filters | |
parent | 7789c9fec0caaa90165bea88ca18c78b234bfe68 (diff) |
Cosmetics: Remove extra parenthesis.
Diffstat (limited to 'src/filters')
3 files changed, 5 insertions, 5 deletions
diff --git a/src/filters/parser/MpegSplitter/MpegSplitter.cpp b/src/filters/parser/MpegSplitter/MpegSplitter.cpp index 2b2203068..22307a11b 100644 --- a/src/filters/parser/MpegSplitter/MpegSplitter.cpp +++ b/src/filters/parser/MpegSplitter/MpegSplitter.cpp @@ -970,7 +970,7 @@ HRESULT CMpegSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) if (i == CMpegSplitterFile::audio) {
if (!cs_audioProgram.IsEmpty()) {
- if ((!cs_audioProgram.Compare(str)) && (S_OK == AddOutputPin(s, pPinOut))) {
+ if (!cs_audioProgram.Compare(str) && (S_OK == AddOutputPin(s, pPinOut))) {
break;
}
} else {
@@ -980,7 +980,7 @@ HRESULT CMpegSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) }
} else if (i == CMpegSplitterFile::subpic) {
if (!cs_subpicProgram.IsEmpty()) {
- if ((!cs_subpicProgram.Compare(str)) && (S_OK == AddOutputPin(s, pPinOut))) {
+ if (!cs_subpicProgram.Compare(str) && (S_OK == AddOutputPin(s, pPinOut))) {
break;
}
} else {
diff --git a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp index c3c12bc07..db1a7c836 100644 --- a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp @@ -265,7 +265,7 @@ STDMETHODIMP CmadVRAllocatorPresenter::SetPixelShader(LPCSTR pSrcData, LPCSTR pT {
HRESULT hr = E_NOTIMPL;
if (CComQIPtr<IMadVRExternalPixelShaders> pEPS = m_pDXR) {
- if ((!pSrcData) && (!pTarget)) {
+ if (!pSrcData && !pTarget) {
hr = pEPS->ClearPixelShaders(false);
} else {
hr = pEPS->AddPixelShader(pSrcData, pTarget, ShaderStage_PreScale, nullptr);
@@ -278,7 +278,7 @@ STDMETHODIMP CmadVRAllocatorPresenter::SetPixelShader2(LPCSTR pSrcData, LPCSTR p {
HRESULT hr = E_NOTIMPL;
if (CComQIPtr<IMadVRExternalPixelShaders> pEPS = m_pDXR) {
- if ((!pSrcData) && (!pTarget)) {
+ if (!pSrcData && !pTarget) {
hr = pEPS->ClearPixelShaders(bScreenSpace);
} else {
hr = pEPS->AddPixelShader(pSrcData, pTarget, bScreenSpace ? ShaderStage_PostScale : ShaderStage_PreScale, nullptr);
diff --git a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp b/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp index 853401ffc..58e83a324 100644 --- a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp +++ b/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp @@ -2073,7 +2073,7 @@ HRESULT CMPCVideoDecFilter::Transform(IMediaSample* pIn) void CMPCVideoDecFilter::UpdateAspectRatio()
{
- if (((m_nARMode) && (m_pAVCtx)) && ((m_pAVCtx->sample_aspect_ratio.num > 0) && (m_pAVCtx->sample_aspect_ratio.den > 0))) {
+ if (m_nARMode && m_pAVCtx && (m_pAVCtx->sample_aspect_ratio.num > 0) && (m_pAVCtx->sample_aspect_ratio.den > 0)) {
CSize PAR(m_pAVCtx->sample_aspect_ratio.num, m_pAVCtx->sample_aspect_ratio.den);
if (m_par != PAR) {
m_par = PAR;
|