fix bug in v0 codec where encoder could double a byte across a full frame