Updates codec package to  new API.