mlp: Define End-of-Stream code in common header file and use it in decoder.