}
#endif
- // XXX ugly hack to prevent x264 from crashing on second pass of multi-threaded encoding
+ // XXX ugly hack to prevent x264 from crashing on multi-threaded encoding
int pass = mlt_properties_get_int( properties, "pass" );
int thread_count = mlt_properties_get_int( properties, "threads" );
if ( thread_count == 0 && getenv( "MLT_AVFORMAT_THREADS" ) )
thread_count = atoi( getenv( "MLT_AVFORMAT_THREADS" ) );
- int multithreaded_x264 = ( video_codec_id == CODEC_ID_H264 && pass == 2 && thread_count > 1 );
+ int multithreaded_x264 = ( video_codec_id == CODEC_ID_H264 && thread_count > 1 );
// close each codec
if ( video_st && !multithreaded_x264 )