Commit b313feda authored by Jan Kiene's avatar Jan Kiene
Browse files

fix check for td stereo second channel

parent 4c0dfa80
Loading
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -294,7 +294,12 @@ ivas_error pre_proc_front_ivas_fx(
    }

#ifdef DEBUG_MODE_INFO
    if ( !( hCPE->hStereoTD != NULL && ch_idx > 0 ) )
    {
        int16_t is_td_stereo_second_channel;
        is_td_stereo_second_channel = hCPE != NULL && hCPE->hStereoTD != NULL && ch_idx > 0;

        /* for TD stereo only write out first channel. The existence of a second channel can vary, this is just easier to handle */
        if ( !is_td_stereo_second_channel )
        {
            int16_t tmpF[L_FRAME48k];
            for ( int16_t isample = 0; isample < input_frame; isample++ )
@@ -303,6 +308,7 @@ ivas_error pre_proc_front_ivas_fx(
            }
            dbgwrite( &tmpF, sizeof( int16_t ), input_frame, 1, strcat( fname( debug_dir, "ivas_input_dmx", 0, ch_idx + 1, ENC ), ".pcm" ) );
        }
    }
#endif

#ifdef MSAN_FIX