cinepakenc: fix mask output optimisation