Duplicate implementation of error-to-string functions
There are duplicate implementations of error-to-string functions in the following places:
-
lib_dec.c:IVAS_DEC_GetErrorMessage -
lib_enc.c:IVAS_ENC_GetErrorMessage -
ivas_error.h:ivas_error_to_string
Best way to clean this up while avoiding too many changes:
- Move all error-to-string mapping to
ivas_error_to_string - Call
ivas_error_to_stringinternally withinIVAS_[ENC|DEC]_GetErrorMessage