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

fix format property recording

parent 3438f11d
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1287,16 +1287,16 @@ def get_split_idx(input_file: str, sampling_rate_khz: int) -> Optional[np.ndarra


IVAS_ENC_FORMATS = {
    "stereo": "Stereo",
    "ism": "ISM",
    "sba": "SBA",
    "masa": "Masa",
    "ism_sba": "OSBA",
    "ism_masa": "OMASA",
    "ism": "ISM",
    "mc": "Multichannel",
    "stereo_dmx_evs": "Stereo DMX EVS",
    "stereo": "Stereo",
}
# NOTE: the blanks at start and end are important to prevent e.g. "-ism_masa" matching on "-ism" only
# NOTE: the blank at the end is important to prevent e.g. "-ism_masa" matching on "-ism" only
PATTERN_IVAS_ENC_FORMAT = re.compile(r"-(" + r"|".join(IVAS_ENC_FORMATS.keys()) + ") ")