Skip to content

Commit eba917a

Browse files
committed
fixed filterpad regex
1 parent 5a2e223 commit eba917a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ffmpegio/caps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ def _get_filter_pad_info(str):
858858
elif str.startswith(" none"):
859859
return None
860860

861-
matches = re.finditer(r" #\d+: (\S+)(?= \() \((\S+)\)\s*?\n", str)
861+
matches = re.finditer(r" #\d+: (\S+)(?= \() \((\S+)\)\s*?(?:\n|$)", str)
862862
if not matches:
863863
raise Exception("Failed to parse filter port info: %s" % str)
864864
return [{"name": m[1], "type": m[2]} for m in matches]

0 commit comments

Comments
 (0)