Commit a466424a authored by norvell's avatar norvell
Browse files

Call ref encoder only if update_ref == 1

parent 064ebc4c
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -760,7 +760,7 @@ def sba_enc(

        input_path = cut_file

    if ref_encoder_frontend:
    if update_ref == 1:
        # call REF encoder
        ref_encoder_frontend.run(
            ivas_br,
@@ -787,7 +787,7 @@ def sba_enc(
        )

    if SID == 1:
        if ref_encoder_frontend:
        if update_ref == 1:
            with open(ref_pkt_file, "rb") as fp_in:
                with open(ref_pkt_file_cut, "wb") as fp_out:
                    fr_cnt, cut_cnt = cut_from_start(fp_in, fp_out, 0, True)
@@ -864,7 +864,7 @@ def sba_dec(
    check_and_makedir(dut_out_dir)
    check_and_makedir(ref_out_dir)

    if ref_decoder_frontend:
    if update_ref == 1:
        # call REF decoder
        ref_decoder_frontend.run(
            output_config,