X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Fx264.c;h=000c20da04ff73f5db2dc55c6cf1f9629020ba95;hb=072c08340f7b91159468cc6f8641d7e2769eac33;hp=747dafbcc2a0fb76970e25b228a58a257a6728f2;hpb=6014f533a8bf88e7d8b709e94e58bb17b350a521;p=vlc diff --git a/modules/codec/x264.c b/modules/codec/x264.c index 747dafbcc2..000c20da04 100644 --- a/modules/codec/x264.c +++ b/modules/codec/x264.c @@ -410,6 +410,11 @@ static int Open ( vlc_object_t *p_this ) 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 */ p_sys->h = x264_encoder_open( &p_sys->param );