diff x264.c @ 2742:5bdc60634470 libavcodec

enable x264 multi-threading
author mru
date Mon, 30 May 2005 20:34:02 +0000
parents dfa4d2773d13
children cdf74a048614
line wrap: on
line diff
--- a/x264.c	Mon May 30 19:14:50 2005 +0000
+++ b/x264.c	Mon May 30 20:34:02 2005 +0000
@@ -154,6 +154,8 @@
     x4->params.i_fps_num = avctx->time_base.den;
     x4->params.i_fps_den = avctx->time_base.num;
 
+    x4->params.i_threads = avctx->thread_count;
+
     x4->enc = x264_encoder_open(&x4->params);
     if(!x4->enc)
         return -1;