From: Eric Petit Date: Tue, 1 Aug 2006 15:18:31 +0000 (+0000) Subject: Fixes contexts allocation with threads=auto X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86ec16c126168adbb6f615159e26065b4b0000a7;p=libx264 Fixes contexts allocation with threads=auto git-svn-id: svn://svn.videolan.org/x264/trunk@545 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/encoder.c b/encoder/encoder.c index edadd01f..95121776 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -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