Commit 086dbba2 authored by vaclav's avatar vaclav
Browse files

add 'error' returns

parent dccd8511
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -459,9 +459,10 @@ ivas_error ivas_dec(
                st_ivas->hMasaIsmData->elevation_ism[n] = (int16_t) ( st_ivas->hIsmMetaData[n]->elevation + 0.5f );
            }
        }
        if ( st_ivas->nCPE == 1 )

        if ( ( error = ivas_cpe_dec( st_ivas, 0, output, output_frame, nb_bits_metadata[0] ) ) != IVAS_ERR_OK )
        {
            ivas_cpe_dec( st_ivas, 0, output, output_frame, nb_bits_metadata[0] );
            return error;
        }

        if ( st_ivas->hCPE[0]->nchan_out == 1 )
@@ -505,6 +506,7 @@ ivas_error ivas_dec(
                }

                ivas_dirac_dec( st_ivas, output, st_ivas->nchan_transport, NULL, NULL, -1 );

                ivas_masa_ism_separate_object_render( st_ivas, data_separated_objects, output, output_frame );
            }
            else
+4 −1
Original line number Diff line number Diff line
@@ -1047,7 +1047,10 @@ ivas_error ivas_init_decoder(
        }

        st_ivas->nCPE = 1;
        create_cpe_dec( st_ivas, 0, ivas_total_brate - ism_total_brate );
        if ( ( error = create_cpe_dec( st_ivas, 0, ivas_total_brate - ism_total_brate ) ) != IVAS_ERR_OK )
        {
            return error;
        }

        for ( n = 0; n < CPE_CHANNELS; n++ )
        {