Loading ivas_processing_scripts/processing/evs.py +16 −3 Original line number Diff line number Diff line Loading @@ -266,9 +266,22 @@ class EVS(Processing): # in case of LFE 9.6 kbps NB processing strip any "-max_band XX" from cmd.extend and amend by "-max_band NB" if proc_chan_lfe_9k6bps_nb is True: cod_opts = [] regex = re.compile(r'-max_band.*') cod_opts = [i for i in self.cod_opts if not regex.match(i)] cod_opts.append('-max_band NB') # search for regex = re.compile(r'-max_band.*', re.I) last_was_max_band = False for i in self.cod_opts: # the additional arguments are expected in form of a list, where "-max_band" are "SWB" are two entries # then when we have detected "-max_band" in the previous run, we have to skip i again if last_was_max_band is True: last_was_max_band = False continue if regex.match(i): last_was_max_band = True else: cod_opts.append(i) last_was_max_band = False cod_opts.append('-max_band') cod_opts.append('NB') else: cod_opts = self.cod_opts Loading Loading
ivas_processing_scripts/processing/evs.py +16 −3 Original line number Diff line number Diff line Loading @@ -266,9 +266,22 @@ class EVS(Processing): # in case of LFE 9.6 kbps NB processing strip any "-max_band XX" from cmd.extend and amend by "-max_band NB" if proc_chan_lfe_9k6bps_nb is True: cod_opts = [] regex = re.compile(r'-max_band.*') cod_opts = [i for i in self.cod_opts if not regex.match(i)] cod_opts.append('-max_band NB') # search for regex = re.compile(r'-max_band.*', re.I) last_was_max_band = False for i in self.cod_opts: # the additional arguments are expected in form of a list, where "-max_band" are "SWB" are two entries # then when we have detected "-max_band" in the previous run, we have to skip i again if last_was_max_band is True: last_was_max_band = False continue if regex.match(i): last_was_max_band = True else: cod_opts.append(i) last_was_max_band = False cod_opts.append('-max_band') cod_opts.append('NB') else: cod_opts = self.cod_opts Loading