Commit 6aa2e63d authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: default to 2 threads on encoding

Multiple cores are pretty common nowdays, so shouldn't be big issue. Maybe
better would be implement cpu-core counter, like in x264, but at the moment
only avcodec-module doesn't seem to handle i_threads=0 as automatic.
parent 13c520d1
......@@ -499,6 +499,8 @@ int OpenEncoder( vlc_object_t *p_this )
if ( p_enc->i_threads >= 1 )
avcodec_thread_init( p_context, p_enc->i_threads );
else
avcodec_thread_init( p_context, 2 );
if( p_sys->i_vtolerance > 0 )
p_context->bit_rate_tolerance = p_sys->i_vtolerance;
......
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