mp_semaphore_wait( &worker_available );
static void parencodepict( Picture *picture ){	mp_semaphore_wait( &worker_available );	picture_to_encode = picture;	mp_semaphore_signal( &picture_available, 1 );	mp_semaphore_wait( &picture_started );}