1.add encodeh264
2.when module->ref_count is 0, print error and return, or it will call module_close many times.
Merge pull request #4 from changzhix/staging-rebase

fix the issue of rebase.