fix vlc overflow
Merge pull request #896 from ruil2/enc_rc_4

fix vlc overflow