summaryrefslogtreecommitdiff
path: root/command/decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/decoder.cpp')
-rw-r--r--command/decoder.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/command/decoder.cpp b/command/decoder.cpp
index e35961e..4b112c8 100644
--- a/command/decoder.cpp
+++ b/command/decoder.cpp
@@ -115,12 +115,8 @@ cMarkAdDecoder::cMarkAdDecoder(bool useH264, int Threads)
cpu_set_t cpumask;
uint len = sizeof(cpumask);
- int cpucount;
- if (sched_getaffinity(0,len,&cpumask)<0)
- {
- cpucount=1;
- }
- else
+ int cpucount=1;
+ if (sched_getaffinity(0,len,&cpumask)>=0)
{
cpucount=CPU_COUNT(&cpumask);
}