Commit 92420d58 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

Merge branch '510-error-message-for-ivas_err_invalid_input_format-is-misleading' into 'main'

Resolve "Error message for IVAS_ERR_INVALID_INPUT_FORMAT is misleading"

See merge request !688
parents f4676a03 8265ff02
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:
+3 −4
Original line number Diff line number Diff line
@@ -224,10 +224,9 @@
#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 */
#define FIX_509                                         /* FhG: fix issue 509, too low number of bitsream indices in SBA */


/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */

+4 −0
Original line number Diff line number Diff line
@@ -3211,7 +3211,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;
    }