]> git.sesse.net Git - x264/commitdiff
Fixes contexts allocation with threads=auto
authorEric Petit <titer@videolan.org>
Tue, 1 Aug 2006 15:18:31 +0000 (15:18 +0000)
committerEric Petit <titer@videolan.org>
Tue, 1 Aug 2006 15:18:31 +0000 (15:18 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@545 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/encoder.c

index edadd01f6e4387e4978e692c9a5665fa67843831..95121776f4c482d72ba00138a16ef223f9e9251b 100644 (file)
@@ -621,7 +621,7 @@ x264_t *x264_encoder_open   ( x264_param_t *param )
 
     h->thread[0] = h;
     h->i_thread_num = 0;
-    for( i = 1; i < param->i_threads; i++ )
+    for( i = 1; i < h->param.i_threads; i++ )
         h->thread[i] = x264_malloc( sizeof(x264_t) );
 
 #ifdef DEBUG_DUMP_FRAME