To avoid having to load the full movie in memory a threading system has been added.
The main program is reading from a shared buffer and encrypting the content.
A different thread is responsible of reading from the disk and copying
the data into the buffer.