decode: use empty input buffer for EOS