diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-08-11 16:16:46 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-08-11 16:16:46 +0400 |
commit | 4af8276527bcbf3051fe66466844ee9d1585279e (patch) | |
tree | 6e6eece6ce5f8b27b700d8100841aba56e4ee5dc /src/filters/transform/Mpeg2DecFilter | |
parent | 3f7915830474bb4a35689f833c9cbb9d959dcbf3 (diff) |
remove unneeded parentheses from return true/false statements
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3650 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/Mpeg2DecFilter')
-rw-r--r-- | src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp b/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp index e2fe314e5..83c86401c 100644 --- a/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp +++ b/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp @@ -1581,7 +1581,7 @@ HRESULT CSubpicInputPin::SetMediaType(const CMediaType* mtIn) bool CSubpicInputPin::HasAnythingToRender(REFERENCE_TIME rt)
{
if(!IsConnected()) {
- return(false);
+ return false;
}
CAutoLock cAutoLock(&m_csReceive);
@@ -1590,11 +1590,11 @@ bool CSubpicInputPin::HasAnythingToRender(REFERENCE_TIME rt) while(pos) {
spu* sp = m_sps.GetNext(pos);
if(sp->m_rtStart <= rt && rt < sp->m_rtStop && (/*sp->m_psphli ||*/ sp->m_fForced || m_spon)) {
- return(true);
+ return true;
}
}
- return(false);
+ return false;
}
void CSubpicInputPin::RenderSubpics(REFERENCE_TIME rt, BYTE** yuv, int w, int h)
@@ -1921,7 +1921,7 @@ bool CSubpicInputPin::dvdspu::Parse() WORD datasize = (p[2]<<8)|p[3];
if(packetsize > GetCount() || datasize > packetsize) {
- return(false);
+ return false;
}
int i, next = datasize;
@@ -1935,7 +1935,7 @@ bool CSubpicInputPin::dvdspu::Parse() next = GetWORD;
if(next > packetsize || next < datasize) {
- return(false);
+ return false;
}
REFERENCE_TIME rt = m_rtStart + 1024*PTS2RT(pts);
@@ -2029,7 +2029,7 @@ bool CSubpicInputPin::dvdspu::Parse() m_offsets.AddTail(o); // is it always going to be sorted?
} while(i <= next && i < packetsize);
- return(true);
+ return true;
}
void CSubpicInputPin::dvdspu::Render(REFERENCE_TIME rt, BYTE** yuv, int w, int h, AM_DVD_YUV* sppal, bool fsppal)
@@ -2108,7 +2108,7 @@ bool CSubpicInputPin::cvdspu::Parse() WORD datasize = (p[2]<<8)|p[3];
if(packetsize > GetCount() || datasize > packetsize) {
- return(false);
+ return false;
}
p = GetData() + datasize;
@@ -2167,7 +2167,7 @@ bool CSubpicInputPin::cvdspu::Parse() }
}
- return(true);
+ return true;
}
void CSubpicInputPin::cvdspu::Render(REFERENCE_TIME rt, BYTE** yuv, int w, int h, AM_DVD_YUV* sppal, bool fsppal)
@@ -2221,14 +2221,14 @@ bool CSubpicInputPin::svcdspu::Parse() BYTE* p0 = p;
if(GetCount() < 2) {
- return(false);
+ return false;
}
WORD packetsize = (p[0]<<8)|p[1];
p += 2;
if(packetsize > GetCount()) {
- return(false);
+ return false;
}
bool duration = !!(*p++&0x04);
@@ -2266,7 +2266,7 @@ bool CSubpicInputPin::svcdspu::Parse() m_offset[0] = p - p0;
m_offset[1] += m_offset[0];
- return(true);
+ return true;
}
void CSubpicInputPin::svcdspu::Render(REFERENCE_TIME rt, BYTE** yuv, int w, int h, AM_DVD_YUV* sppal, bool fsppal)
|