fix a small range of slice idx
Merge pull request #1446 from sijchen/for_format

[Encoder] fix a small range of slice idx
roll back the file which is mis-formatted by astyle
Add casts to avoid warnings about comparison between signed and unsigned
Merge pull request #1448 from sijchen/for_format

roll back the file which is mis-formatted by astyle
fix a wrong range clip
fix names to keep consistent of style
improve UT to cover more cases under GetStatistics
Merge pull request #1450 from mstorsjo/avoid-warnings

Add casts to avoid warnings about comparison between signed and unsigned
Merge pull request #1451 from sijchen/for_format

Fixes and change naming
Merge remote-tracking branch 'upstream/master' into travis.osx