mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Fix NullRefException in ParseFormat
This commit is contained in:
parent
b7b15079eb
commit
f3c99dffb6
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ private MediaFormat ParseFormat(Format analysisFormat)
|
|||
{
|
||||
return new MediaFormat
|
||||
{
|
||||
Duration = TimeSpan.Parse(analysisFormat.Duration),
|
||||
Duration = TimeSpan.Parse(analysisFormat.Duration ?? "0"),
|
||||
FormatName = analysisFormat.FormatName,
|
||||
FormatLongName = analysisFormat.FormatLongName,
|
||||
StreamCount = analysisFormat.NbStreams,
|
||||
|
|
Loading…
Reference in a new issue