From 86ec16c126168adbb6f615159e26065b4b0000a7 Mon Sep 17 00:00:00 2001 From: Eric Petit Date: Tue, 1 Aug 2006 15:18:31 +0000 Subject: [PATCH] Fixes contexts allocation with threads=auto git-svn-id: svn://svn.videolan.org/x264/trunk@545 df754926-b1dd-0310-bc7b-ec298dee348c --- encoder/encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0