diff options
author | Underground78 <underground78@users.sourceforge.net> | 2013-05-19 13:21:26 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-05-20 13:57:20 +0400 |
commit | 033ff367778b274f931b5fd68c8559222ea3a992 (patch) | |
tree | 57741557dc856470e2c692f394f60b38aeb34608 /src/filters/parser/BaseSplitter | |
parent | db0dfa1331fa773fab2246ac0865660ed17cb92b (diff) |
BaseSplitterFileEx: Simplify a check.
h.bitpersample is unsigned, checking if it's greater than 0 will always be true.
Diffstat (limited to 'src/filters/parser/BaseSplitter')
-rw-r--r-- | src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp index d5755ae4c..017574ea5 100644 --- a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp +++ b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp @@ -1086,7 +1086,7 @@ bool CBaseSplitterFileEx::Read(hdmvlpcmhdr& h, CMediaType* pmt) if (h.channels == 0 || h.channels == 2 ||
(h.samplerate != 1 && h.samplerate != 4 && h.samplerate != 5) ||
- h.bitpersample < 0 || h.bitpersample > 3) {
+ h.bitpersample > 3) {
return false;
}
|