Skip to content

Commit 4b6bbdf

Browse files
committed
filters() - fixed reporting incorrect # of pads
for source and sink filters
1 parent 3b296b6 commit 4b6bbdf

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
1111
- consolidate representation of input/output/internal links for filtergraphs, affecting `util.filter.parse_graph()` & `util.filter.compose_graph()`
1212
- corrected function names `util.*spec_stream` to `util.*stream_spec`
1313

14+
### Fixed
15+
16+
- `caps.filters()` - fixed reporting incorrect # of pads for source and sink filters
17+
1418
## [0.7.0] - 2022-08-24
1519

1620
### Added

src/ffmpegio/caps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def filters(type=None):
186186
input=intype,
187187
num_inputs=len(match[5]) if intype != "dynamic" else None,
188188
output=outtype,
189-
num_outputs=len(match[6]) if outtype != "dynamic" else None,
189+
if outtype == "none"
190190
timeline_support=match[1] == "T",
191191
slice_threading=match[2] == "S",
192192
command_support=match[3] == "C",

0 commit comments

Comments
 (0)