Change megastek frame decoder (fix #895)