fixed(?) memory leak when re-encoding a movie