Add a process count check
Libav changes