Commit 47ea4102 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] update error message and change one return value in lib_dec::input_format_API_to_internal()

parent 59f47a87
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -235,7 +235,11 @@ static inline const char *ivas_error_to_string( ivas_error error_code )
        case IVAS_ERR_INVALID_HRTF:
            return "Unsupported HRTF filter set";
        case IVAS_ERR_INVALID_INPUT_FORMAT:
#ifdef FIX_510
            return "Invalid input format";
#else
            return "Invalid format of input bitstream";
#endif
        case IVAS_ERR_INVALID_INDEX:
            return "Invalid index";
        default:
+2 −1
Original line number Diff line number Diff line
@@ -223,6 +223,7 @@
#define FIX_483                                         /* FhG: fix issue 483, division by zero in nois_est */
#define FIX_483b                                        /* FhG: fix issue 483, uninitialized values in ivas_mct_core_enc */
#define FIX_170_DTX_MASA                /* Nokia: Fix issue 170, relaxing the use of DTX in MASA format */
#define FIX_510                                         /* FhG: fix issue 510, misleading error message for invalid input format */

                                                        /* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+4 −0
Original line number Diff line number Diff line
@@ -3209,7 +3209,11 @@ static ivas_error input_format_API_to_internal(
            *sdp_hf_only = 1;
            break;
        default:
#ifdef FIX_510
            return IVAS_ERR_INVALID_BITSTREAM;
#else
            return IVAS_ERR_INVALID_INPUT_FORMAT;
#endif
            break;
    }