Commit 8ee76816 authored by sagnowski's avatar sagnowski
Browse files

Fix sanitizer issue due to unset ivas_format

parent 6f84f648
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -339,7 +339,7 @@ static DecoderDummy *allocDecoderDummy( int32_t sampleRate, int16_t numOutChanne
    decDummy->hDecoderConfig = count_malloc( sizeof( DECODER_CONFIG ) );
    decDummy->hDecoderConfig->output_Fs = sampleRate;
    decDummy->hDecoderConfig->nchan_out = numOutChannels;
    decDummy->hDecoderConfig->Opt_Headrotation = enableHeadRotation;
    decDummy->hDecoderConfig->Opt_Headrotation = 0;

    decDummy->hBinRenderer = NULL;
    decDummy->hEFAPdata = NULL;
@@ -425,6 +425,7 @@ static ivas_error initDecoderDummyForAmbiToBinaural( DecoderDummy *decDummyAmbiB

    error = IVAS_ERR_OK;

    decDummyAmbiBin->ivas_format = SBA_FORMAT;
    decDummyAmbiBin->renderer_type = binauralFormat == IVAS_REND_BINAURAL_ROOM ? RENDERER_BINAURAL_MIXER_CONV_ROOM : RENDERER_BINAURAL_MIXER_CONV;
    decDummyAmbiBin->intern_config = decDummyAmbiBin->transport_config = mapRendAmbisonicsToAudioConfig( inConfig.ambisonicsBuses[0].ambisonicsConfig );