1
0
mirror of https://github.com/kkroening/ffmpeg-python.git synced 2025-04-06 04:15:44 +08:00

Also provide the number of splits to asplit filter

This commit is contained in:
Davide Depau 2017-12-22 17:11:23 +01:00
parent 7bc77ff714
commit 755fb843de
No known key found for this signature in database
GPG Key ID: C7D999B6A55EFE86

@ -152,7 +152,7 @@ class FilterNode(Node):
def _get_filter(self, outgoing_edges):
args = self.args
kwargs = self.kwargs
if self.name == 'split':
if self.name in ('split', 'asplit'):
args = [len(outgoing_edges)]
out_args = [escape_chars(x, '\\\'=:') for x in args]