mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-02-18 11:02:31 +00:00
Merge pull request #67 from HmarikBel/master
Fix null reference exception in ParseAudioStream
Former-commit-id: 68709eeab1
This commit is contained in:
commit
9e7cf55150
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ namespace FFMpegCore
|
|||
CodecLongName = stream.CodecLongName,
|
||||
Channels = stream.Channels ?? default,
|
||||
ChannelLayout = stream.ChannelLayout,
|
||||
Duration = TimeSpan.FromSeconds(ParseDoubleInvariant(stream.Duration ?? stream.Tags.Duration ?? "0")),
|
||||
Duration = TimeSpan.FromSeconds(ParseDoubleInvariant(stream.Duration ?? stream.Tags?.Duration ?? "0")),
|
||||
SampleRateHz = !string.IsNullOrEmpty(stream.SampleRate) ? ParseIntInvariant(stream.SampleRate) : default,
|
||||
Language = stream.Tags?.Language
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue