fix dump file issue
Merge pull request #490 from ruil2/encoder_slice_auto

fix dump file issue