mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-08-07 18:39:47 +08:00
Build: Match the codecs output more closely, better semantics
This commit is contained in:
parent
145e57bb74
commit
ca427cb904
@ -140,7 +140,9 @@ def get_codecs(cmd='ffmpeg'):
|
||||
codecs = _get_line_fields(stdout, 10, CODEC_RE, CODEC_FLAGS)
|
||||
for codec in codecs.values():
|
||||
for coders_match in CODEC_CODERS_RE.finditer(codec['description']):
|
||||
codec[coders_match.group(1)] = coders_match.group(3).split()
|
||||
coders = coders_match.group(3).split()
|
||||
if coders:
|
||||
codec[coders_match.group(1)] = coders
|
||||
description_match = CODEC_DESCRIPTION_RE.search(codec['description'])
|
||||
if description_match is not None:
|
||||
codec['description'] = description_match.group('description')
|
||||
|
Loading…
x
Reference in New Issue
Block a user