mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01: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 @@ public MetaDataArgument(string metaDataContent)
|
||||||
|
|
||||||
public string GetText(StringBuilder context)
|
public string GetText(StringBuilder context)
|
||||||
{
|
{
|
||||||
var index = context.ToString().CountOccurrences("-i");
|
var index = context?.ToString().CountOccurrences("-i") ?? 0;
|
||||||
|
|
||||||
return $"-i \"{_tempFileName}\" -map_metadata {index}";
|
return $"-i \"{_tempFileName}\" -map_metadata {index}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue