Commit 86ec16c1 authored by Eric Petit's avatar Eric Petit

Fixes contexts allocation with threads=auto


git-svn-id: svn://svn.videolan.org/x264/trunk@545 df754926-b1dd-0310-bc7b-ec298dee348c
parent eeebca20
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment