Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix 605 support filter chain#607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
lucemia wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromfix-605-support-filter-chain
Draft
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fix handle binary option
  • Loading branch information
@lucemia
lucemia committedJun 3, 2025
commit48942864c2e7310499a73e50de9b2d32f95c720a
11 changes: 8 additions & 3 deletionssrc/ffmpeg/compile/compile_cli.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -323,7 +323,12 @@ def parse_global(
# Process tokens until we hit an input file marker (-i)
while remaining_tokens and remaining_tokens[0] != "-i":
if remaining_tokens[0].startswith("-"):
option_name = remaining_tokens[0][1:]
if remaining_tokens[0].startswith("-no"):
# it is a boolean option with -no prefix
option_name = remaining_tokens[0][3:]
else:
option_name = remaining_tokens[0][1:]

assert option_name in ffmpeg_options, (
f"Unknown global option: {option_name}"
)
Expand All@@ -338,8 +343,8 @@ def parse_global(
remaining_tokens = remaining_tokens[2:]
else:
# Boolean option
ifoption_name.startswith("no"):
global_params[option_name[2:]] = False
ifremaining_tokens[0].startswith("no"):
global_params[option_name] = False
else:
global_params[option_name] = True
remaining_tokens = remaining_tokens[1:]
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp