修复自定义导出参数构造错误

This commit is contained in:
ww-rm
2025-08-19 18:02:21 +08:00
parent ebb2593526
commit 4786b0434c

View File

@@ -60,8 +60,9 @@ namespace Spine.Exporters
if (!string.IsNullOrEmpty(_codec)) options.WithVideoCodec(_codec); if (!string.IsNullOrEmpty(_codec)) options.WithVideoCodec(_codec);
if (!string.IsNullOrEmpty(_pixelFormat)) options.ForcePixelFormat(_pixelFormat); if (!string.IsNullOrEmpty(_pixelFormat)) options.ForcePixelFormat(_pixelFormat);
if (!string.IsNullOrEmpty(_bitrate)) options.WithCustomArgument($"-b:v {_bitrate}"); if (!string.IsNullOrEmpty(_bitrate)) options.WithCustomArgument($"-b:v {_bitrate}");
if (!string.IsNullOrEmpty(_filter)) options.WithCustomArgument($"-vf unpremultiply=inplace=1, {_customArgs}"); if (!string.IsNullOrEmpty(_filter)) options.WithCustomArgument($"-vf unpremultiply=inplace=1, {_filter}");
else options.WithCustomArgument("-vf unpremultiply=inplace=1"); else options.WithCustomArgument("-vf unpremultiply=inplace=1");
if (!string.IsNullOrEmpty(_customArgs)) options.WithCustomArgument($"{_customArgs}");
} }
/// <summary> /// <summary>