Commit 0d0d3a91 authored by Anika Treffehn's avatar Anika Treffehn
Browse files

added check to avoid unnecessary postprocessing steps

parent eb2f7a16
Loading
Loading
Loading
Loading
Loading
+12 −13
Original line number Diff line number Diff line
@@ -349,7 +349,6 @@ def get_processing_chain(
        )
        # update values to reflect decoder output
        tmp_in_fs = dec_cfg.get("fs", tmp_in_fs)

    elif cond_cfg["type"] == "ivas":
        cod_cfg = cond_cfg["cod"]
        dec_cfg = cond_cfg["dec"]
@@ -442,7 +441,6 @@ def get_processing_chain(
        # update values to reflect decoder output
        tmp_in_fs = dec_cfg.get("fs", tmp_in_fs)
        tmp_in_fmt = dec_cfg.get("fmt", tmp_out_fmt)

    else:
        raise SystemExit(f"Unknown condition {condition}!")

@@ -455,6 +453,7 @@ def get_processing_chain(
        # add Postprocessing with only format conversion for each format except the last
        fmts = [tmp_in_fmt] + pre_fmts
        for fmt_in, fmt_out in zip(fmts[:-1], fmts[1:]):
            if fmt_in != fmt_out:
                chain["processes"].append(
                    Postprocessing(
                        {