Commit 28b7306f authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

fix uninitialized value in the arguments structure in the encoder

parent d705d8a9
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -61,8 +61,7 @@ static
#define DEFAULT_FIXED_SID_RATE 8 /* DTX SID rate */

/* Additional config info for each input format */
typedef union _EncInputFormatConfig
{
typedef union _EncInputFormatConfig {
    /* MONO details */
    bool stereoToMonoDownmix;

@@ -894,6 +893,9 @@ static void initArgStruct( EncArguments *arg )
    arg->outputBitstreamFilename = NULL;
    arg->inputFs = 0;
    arg->inputFormat = IVAS_ENC_INPUT_MONO;
#ifdef AMBISONICS_CONVENTIONS
    arg->sba_input_fmt = AMBI_FMT_ACN_SN3D;
#endif
    arg->is_binaural = false;
    arg->inputFormatConfig.stereoToMonoDownmix = false;
    arg->max_bwidth_user = false;
@@ -926,6 +928,8 @@ static void initArgStruct( EncArguments *arg )
#endif
    arg->pca = false;



    return;
}