From f0d4f12485ead8a1a7175100c7bd3eacebc45be5 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Mon, 13 Jul 2020 23:56:12 +0200 Subject: [PATCH] Fix warnings Former-commit-id: 29d8829d481595064b42eceb37a6beef6093f2cb --- FFMpegCore/FFProbe/FFProbeAnalysis.cs | 16 ++++++++-------- FFMpegCore/FFProbe/MediaFormat.cs | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/FFMpegCore/FFProbe/FFProbeAnalysis.cs b/FFMpegCore/FFProbe/FFProbeAnalysis.cs index 1185998..8bf17ec 100644 --- a/FFMpegCore/FFProbe/FFProbeAnalysis.cs +++ b/FFMpegCore/FFProbe/FFProbeAnalysis.cs @@ -84,7 +84,7 @@ public class Tags public class Format { [JsonPropertyName("filename")] - public string Filename { get; set; } + public string Filename { get; set; } = null!; [JsonPropertyName("nb_streams")] public int NbStreams { get; set; } @@ -93,27 +93,27 @@ public class Format public int NbPrograms { get; set; } [JsonPropertyName("format_name")] - public string FormatName { get; set; } + public string FormatName { get; set; } = null!; [JsonPropertyName("format_long_name")] - public string FormatLongName { get; set; } + public string FormatLongName { get; set; } = null!; [JsonPropertyName("start_time")] - public string StartTime { get; set; } + public string StartTime { get; set; } = null!; [JsonPropertyName("duration")] - public string Duration { get; set; } + public string Duration { get; set; } = null!; [JsonPropertyName("size")] - public string Size { get; set; } + public string Size { get; set; } = null!; [JsonPropertyName("bit_rate")] - public string BitRate { get; set; } + public string BitRate { get; set; } = null!; [JsonPropertyName("probe_score")] public int ProbeScore { get; set; } [JsonPropertyName("tags")] - public Tags Tags { get; set; } + public Tags Tags { get; set; } = null!; } } diff --git a/FFMpegCore/FFProbe/MediaFormat.cs b/FFMpegCore/FFProbe/MediaFormat.cs index 60c89b8..ea5c6f3 100644 --- a/FFMpegCore/FFProbe/MediaFormat.cs +++ b/FFMpegCore/FFProbe/MediaFormat.cs @@ -5,8 +5,8 @@ namespace FFMpegCore public class MediaFormat { public TimeSpan Duration { get; set; } - public string FormatName { get; set; } - public string FormatLongName { get; set; } + public string FormatName { get; set; } = null!; + public string FormatLongName { get; set; } = null!; public int StreamCount { get; set; } public double ProbeScore { get; set; } public double BitRate { get; set; }