vc2enc_dwt: pad the temporary buffer by the slice size