hevc: put number of threads to the maximum