Fix warnings

Former-commit-id: 29d8829d48
This commit is contained in:
Malte Rosenbjerg 2020-07-13 23:56:12 +02:00
parent 40f22de444
commit f0d4f12485
2 changed files with 10 additions and 10 deletions

View file

@ -84,7 +84,7 @@ public class Tags
public class Format public class Format
{ {
[JsonPropertyName("filename")] [JsonPropertyName("filename")]
public string Filename { get; set; } public string Filename { get; set; } = null!;
[JsonPropertyName("nb_streams")] [JsonPropertyName("nb_streams")]
public int NbStreams { get; set; } public int NbStreams { get; set; }
@ -93,27 +93,27 @@ public class Format
public int NbPrograms { get; set; } public int NbPrograms { get; set; }
[JsonPropertyName("format_name")] [JsonPropertyName("format_name")]
public string FormatName { get; set; } public string FormatName { get; set; } = null!;
[JsonPropertyName("format_long_name")] [JsonPropertyName("format_long_name")]
public string FormatLongName { get; set; } public string FormatLongName { get; set; } = null!;
[JsonPropertyName("start_time")] [JsonPropertyName("start_time")]
public string StartTime { get; set; } public string StartTime { get; set; } = null!;
[JsonPropertyName("duration")] [JsonPropertyName("duration")]
public string Duration { get; set; } public string Duration { get; set; } = null!;
[JsonPropertyName("size")] [JsonPropertyName("size")]
public string Size { get; set; } public string Size { get; set; } = null!;
[JsonPropertyName("bit_rate")] [JsonPropertyName("bit_rate")]
public string BitRate { get; set; } public string BitRate { get; set; } = null!;
[JsonPropertyName("probe_score")] [JsonPropertyName("probe_score")]
public int ProbeScore { get; set; } public int ProbeScore { get; set; }
[JsonPropertyName("tags")] [JsonPropertyName("tags")]
public Tags Tags { get; set; } public Tags Tags { get; set; } = null!;
} }
} }

View file

@ -5,8 +5,8 @@ namespace FFMpegCore
public class MediaFormat public class MediaFormat
{ {
public TimeSpan Duration { get; set; } public TimeSpan Duration { get; set; }
public string FormatName { get; set; } public string FormatName { get; set; } = null!;
public string FormatLongName { get; set; } public string FormatLongName { get; set; } = null!;
public int StreamCount { get; set; } public int StreamCount { get; set; }
public double ProbeScore { get; set; } public double ProbeScore { get; set; }
public double BitRate { get; set; } public double BitRate { get; set; }