Commit ce85748b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

AVcodec: limit the number of auto-detected threads to 4 by default

Revert this when you have found the reason why it fails for soo many
people, in avi, mp4 (and mkv before the HACK)
parent 52a743df
......@@ -355,6 +355,9 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
i_thread_count = vlc_GetCPUCount();
if( i_thread_count > 1 )
//FIXME: take in count the decoding time
i_thread_count = __MIN( i_thread_count, 4 );
i_thread_count = __MIN( i_thread_count, 16 );
msg_Dbg( p_dec, "allowing %d thread(s) for decoding", i_thread_count );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment