Skip to content
Snippets Groups Projects
Unverified Commit 00541af3 authored by Lesmiscore's avatar Lesmiscore
Browse files

postprocessor/_attachments (RunsFFmpeg): fix error on duration calculation

parent e7dad905
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,8 @@ def compute_duration_to_track(self, info_dict, args):
start_time, end_time = 0, duration
for i, arg in enumerate(args):
arg_timestamp, timestamp_seconds = re.match(r'(?P<at>-(?:ss|sseof|to))', arg), None
if not arg_timestamp:
continue
if '=' in arg:
# e.g. -ss=100
timestamp_seconds = self.parse_ffmpeg_time_string(arg.split('=', 1)[1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment