mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-02-18 11:02:31 +00:00
Fixed possible nullreference
This commit is contained in:
parent
1b2af5fd1f
commit
bfd2f4a908
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ namespace FFMpegCore.Arguments
|
|||
|
||||
public string GetText(StringBuilder context)
|
||||
{
|
||||
var index = context.ToString().CountOccurrences("-i");
|
||||
var index = context?.ToString().CountOccurrences("-i") ?? 0;
|
||||
|
||||
return $"-i \"{_tempFileName}\" -map_metadata {index}";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue