remove unnecessary flush buffer in encoder
Merge pull request #980 from huili2/enc_remove_bsflush

remove unnecessary flush buffer in encoder