avcodec/wcmv: check remaining space vs. blocks