Commit 1c6abb84 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix bug in format conversion handling

parent 63c5e022
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -399,19 +399,19 @@ def get_processing_chain(
            preamble = 0

        # if the encoding format differs from the format after the preprocessing, add format conversion stuff
        if tmp_in_fmt != cod_cfg["fmt"]:
        if (cod_fmt := cod_cfg.get("fmt", tmp_in_fmt)) != tmp_in_fmt:
            chain["processes"].append(
                Preprocessing(
                    {
                        "in_fs": tmp_in_fs,
                        "in_fmt": tmp_in_fmt,
                        "out_fs": tmp_in_fs,
                        "out_fmt": cod_cfg["fmt"],
                        "out_fmt": cod_fmt,
                        "multiprocessing": cfg.multiprocessing,
                    }
                )
            )
            tmp_in_fmt = cod_cfg["fmt"]
            tmp_in_fmt = cod_fmt

        chain["processes"].append(
            IVAS(