Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2013-05-19 13:21:26 +0400
committerUnderground78 <underground78@users.sourceforge.net>2013-05-20 13:57:20 +0400
commit033ff367778b274f931b5fd68c8559222ea3a992 (patch)
tree57741557dc856470e2c692f394f60b38aeb34608 /src/filters/parser
parentdb0dfa1331fa773fab2246ac0865660ed17cb92b (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')
-rw-r--r--src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp2
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;
}