mjpegenc: fix YUV444 with w%16!=0