cinepakenc: Move declaration out of for initialisation statement