ffmpeg: use the cpu count as decoding thread count.

This commit is contained in:
Jérôme Duval 2012-04-29 15:32:13 +02:00
parent dab1609baf
commit 80ee381a5f

View File

@ -106,9 +106,12 @@ AVCodecDecoder::AVCodecDecoder()
{
TRACE("AVCodecDecoder::AVCodecDecoder()\n");
system_info info;
get_system_info(&info);
fContext->err_recognition = AV_EF_CAREFUL;
fContext->error_concealment = 3;
fContext->thread_count = 1;
fContext->thread_count = info.cpu_count;
}