Commit a6eac327 authored by vaclav's avatar vaclav
Browse files

address reviewer's comments, step 2

parent abfa1f7a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4416,6 +4416,7 @@ static ivas_error restartDecoder(
    IVAS_CUSTOM_LS_DATA *hLsCustomData )
{
    ivas_error error = IVAS_ERR_OK;
    IVAS_DEC_HANDLE hIvasDec;

    if ( phIvasDec == NULL )
    {
@@ -4502,8 +4503,8 @@ static ivas_error restartDecoder(

cleanup:
    IVAS_DEC_Close( phIvasDec );

    return error;
}

#endif
#undef WMC_TOOL_SKIP
+6 −4
Original line number Diff line number Diff line
@@ -206,14 +206,16 @@ ivas_error IVAS_DEC_Open(
    IVAS_DEC_HANDLE hIvasDec;
    Decoder_Struct *st_ivas;

    if ( *phIvasDec != NULL )
#ifdef FIX_FMSW_DEC
    if ( phIvasDec == NULL )
    {
        return IVAS_ERR_WRONG_PARAMS;
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
    }
#endif

    if ( phIvasDec == NULL )
    if ( *phIvasDec != NULL )
    {
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
        return IVAS_ERR_WRONG_PARAMS;
    }

    /*-----------------------------------------------------------------*