fix: Fixed issues with missing default values

This commit is contained in:
2025-12-29 16:01:41 -05:00
parent e9d41e67ad
commit a91d629556
2 changed files with 4 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ def "filterchain to-string" []: table -> string {
$in | each { filter to-string }| str join ',' $in | each { filter to-string }| str join ','
} }
def "filter to-string" []: record<input: list<string> name: string params: table<param: string value: string> output: list<string>> -> string { def "filter to-string" []: record<input: list<string> name: string params: table<param: string value: any> output: list<string>> -> string {
$in | update input { $in | update input {
str join '][' str join ']['
} | update output { } | update output {
@@ -162,7 +162,7 @@ export def complex-filter [
--output (-o): list<string> = [] --output (-o): list<string> = []
name: string name: string
params: record = {} params: record = {}
]: nothing -> record<input: list<string> name: string params: table<param: string, value: string> output: list<string>> { ]: nothing -> record<input: list<string> name: string params: table<param: string, value: any> output: list<string>> {
{ {
input: $input input: $input
name: $name name: $name

View File

@@ -91,8 +91,8 @@ export def format [
] { ] {
(append-complex-filter format { (append-complex-filter format {
pix_fmts: ($pix_fmts | list to-pipe-separated-string) pix_fmts: ($pix_fmts | list to-pipe-separated-string)
color_spaces: ($color_spaces | list to-pipe-separated-string) color_spaces: ($color_spaces | default [] | list to-pipe-separated-string)
color_ranges: ($color_ranges | list to-pipe-separated-string) color_ranges: ($color_ranges | default [] | list to-pipe-separated-string)
} -i $input -o $output) } -i $input -o $output)
} }