fix for zeromv[1] might be uninitialized This resolves issue #581. Also moves the mode if statement out of frame loop Change-Id: I673bc9196ee56f7612b3aa943bb1ceb31c659b28