revert codec.c for amp