Optimization of function mjpegtoyuv420p
Patch proposed by Github user aklomp
Link: https://github.com/Mr-Dave/motion/issues/49