clean build warning related encoder
Merge pull request #877 from ganyangbbl/remove_enc_warning

[Fix] clean build warning related encoder