[embedsubtitle] Fix error when duration is unknown

pull/1129/head
pukkandan 3 years ago
parent 804ca01cc7
commit 1f2a268bd3
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -545,7 +545,7 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
return [], information return [], information
filename = information['filepath'] filename = information['filepath']
if self._duration_mismatch( if information.get('duration') and self._duration_mismatch(
self._get_real_video_duration(information, False), information['duration']): self._get_real_video_duration(information, False), information['duration']):
self.to_screen(f'Skipping {self.pp_key()} since the real and expected durations mismatch') self.to_screen(f'Skipping {self.pp_key()} since the real and expected durations mismatch')
return [], information return [], information

Loading…
Cancel
Save