Commit 7ee32460 authored by vaclav's avatar vaclav
Browse files

Merge branch '56-revision-of-error-messages' into 'main'

Resolve "Revision of Error messages"

See merge request !55
parents 5e67b847 b71784c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1048,7 +1048,7 @@ ivas_error ivas_ism_dec_config(
            if ( st_ivas->ism_mode != last_ism_mode )
            {
                /*ivas_ism_dec_reconfigure( st_ivas );*/
                return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "\n\n!!! Error: ISM format switching not supported yet!!!\n\n" );
                return IVAS_ERROR( IVAS_ERR_RECONFIGURE_NOT_SUPPORTED, "\n\n!!! Error: ISM format switching not supported yet!!!\n\n" );
            }
        }
    }
+9 −0
Original line number Diff line number Diff line
@@ -1596,10 +1596,19 @@ const char *IVAS_DEC_GetErrorMessage(
            return "invalid format of input bitstream";
        case IVAS_ERR_INVALID_INDEX:
            return "invalid index";
        case IVAS_ERR_INTERNAL:
        case IVAS_ERR_INTERNAL_FATAL:
            return "internal error";
        case IVAS_ERR_RECONFIGURE_NOT_SUPPORTED:
            return "reconfigure not supported";
        case IVAS_ERR_UNEXPECTED_NULL_POINTER:
            return "unexpected NULL pointer";            
#ifdef DEBUGGING
        case IVAS_ERR_INVALID_FORCE_MODE:
            return "invalid force mode";
#endif
        case IVAS_ERR_FAILED_FILE_READ:
            return "could not read from file";
        case IVAS_ERR_NOT_IMPLEMENTED:
            return "not implemented";
        case IVAS_ERR_UNKNOWN:
+1 −0
Original line number Diff line number Diff line
@@ -1348,6 +1348,7 @@ const char *IVAS_ENC_GetErrorMessage(
        case IVAS_ERR_INDEX_OUT_OF_BOUNDS:
            return "index out of bounds";
        case IVAS_ERR_INTERNAL:
        case IVAS_ERR_INTERNAL_FATAL:
            return "internal error";
        case IVAS_ERR_RECONFIGURE_NOT_SUPPORTED:
            return "reconfigure not supported";