Refactor to represent decoder state as member of decoder
Frame now decodes const