use QThread::idealThreadCount instead of av_cpu_count

av_cpu_count is not available for old FFmpeg