mirror of
https://github.com/sbrow/nu-ffmpeg.git
synced 2025-12-29 16:23:11 -05:00
fix: Fixed issues with missing default values
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user