Commit afd974d9 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

move the first push_wmops() to be in line with the legacy standard

parent 8d2d40bb
Loading
Loading
Loading
Loading
+15 −4
Original line number Diff line number Diff line
@@ -156,6 +156,17 @@ int main( int argc, char** argv )
            read_next_bwidth_fx( &st_fx->max_bwidth_fx, f_bwidth, &bwidth_profile_cnt, st_fx->input_Fs_fx );
        }

#ifdef WMOPS
        IF(st_fx->Opt_AMR_WB_fx)
        {
            push_wmops("amr_wb_enc");
        }
        else
        {
            push_wmops("evs_enc");
        }
#endif

        IF( ( st_fx->Opt_RF_ON && ( NE_32( st_fx->total_brate_fx, ACELP_13k20 )||EQ_32(st_fx->input_Fs_fx,8000)||st_fx->max_bwidth_fx==NB))
            || st_fx->rf_fec_offset == 0 )
        {
@@ -191,16 +202,12 @@ int main( int argc, char** argv )
        /* run the main encoding routine */
        IF ( st_fx->Opt_AMR_WB_fx )
        {
            push_wmops("amr_wb_enc");
            amr_wb_enc_fx( st_fx, data, n_samples);
            pop_wmops();
        }
        ELSE
        {
            push_wmops("evs_enc");
            /* EVS encoder*/
            evs_enc_fx( st_fx, data, n_samples);
            pop_wmops();
        }

        /* pack indices into serialized payload format */
@@ -212,6 +219,10 @@ int main( int argc, char** argv )
        /* write indices into bitstream file */
        write_indices_fx( st_fx, f_stream, pFrame, pFrame_size );

#ifdef WMOPS
        pop_wmops();
#endif

        fflush(stderr);

        frame++;