Fixed a decoder array indexing bug and protected input buffer against modification by the decoder.
Fixed a decoder array indexing bug and protected
input buffer against modification by the decoder.

piannucci/blurt,piannucci/blurt,piannucci/blurt,piannucci/blurt,piannucci/blurt,piannucci/blurt,piannucci/blurt