Commit e5d55a92 authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/x264.c: support for multi-threaded encoding.

parent 1e4a50ed
...@@ -410,6 +410,11 @@ static int Open ( vlc_object_t *p_this ) ...@@ -410,6 +410,11 @@ static int Open ( vlc_object_t *p_this )
p_sys->param.cpu &= ~X264_CPU_SSE2; p_sys->param.cpu &= ~X264_CPU_SSE2;
} }
#if X264_BUILD >= 29
if( p_enc->i_threads >= 1 )
p_sys->param.i_threads = p_enc->i_threads;
#endif
/* Open the encoder */ /* Open the encoder */
p_sys->h = x264_encoder_open( &p_sys->param ); p_sys->h = x264_encoder_open( &p_sys->param );
......
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