Clean warnings

Former-commit-id: 787804c3a2
This commit is contained in:
Malte Rosenbjerg 2022-03-24 20:46:02 +01:00
parent 6a7714a157
commit 93c2b62a08
2 changed files with 15 additions and 15 deletions

View file

@ -6,7 +6,7 @@ namespace FFMpegCore
public class FFProbeFrameAnalysis public class FFProbeFrameAnalysis
{ {
[JsonPropertyName("media_type")] [JsonPropertyName("media_type")]
public string MediaType { get; set; } public string MediaType { get; set; } = null!;
[JsonPropertyName("stream_index")] [JsonPropertyName("stream_index")]
public int StreamIndex { get; set; } public int StreamIndex { get; set; }
@ -18,25 +18,25 @@ public class FFProbeFrameAnalysis
public long PacketPts { get; set; } public long PacketPts { get; set; }
[JsonPropertyName("pkt_pts_time")] [JsonPropertyName("pkt_pts_time")]
public string PacketPtsTime { get; set; } public string PacketPtsTime { get; set; } = null!;
[JsonPropertyName("pkt_dts")] [JsonPropertyName("pkt_dts")]
public long PacketDts { get; set; } public long PacketDts { get; set; }
[JsonPropertyName("pkt_dts_time")] [JsonPropertyName("pkt_dts_time")]
public string PacketDtsTime { get; set; } public string PacketDtsTime { get; set; } = null!;
[JsonPropertyName("best_effort_timestamp")] [JsonPropertyName("best_effort_timestamp")]
public long BestEffortTimestamp { get; set; } public long BestEffortTimestamp { get; set; }
[JsonPropertyName("best_effort_timestamp_time")] [JsonPropertyName("best_effort_timestamp_time")]
public string BestEffortTimestampTime { get; set; } public string BestEffortTimestampTime { get; set; } = null!;
[JsonPropertyName("pkt_duration")] [JsonPropertyName("pkt_duration")]
public int PacketDuration { get; set; } public int PacketDuration { get; set; }
[JsonPropertyName("pkt_duration_time")] [JsonPropertyName("pkt_duration_time")]
public string PacketDurationTime { get; set; } public string PacketDurationTime { get; set; } = null!;
[JsonPropertyName("pkt_pos")] [JsonPropertyName("pkt_pos")]
public long PacketPos { get; set; } public long PacketPos { get; set; }
@ -51,10 +51,10 @@ public class FFProbeFrameAnalysis
public long Height { get; set; } public long Height { get; set; }
[JsonPropertyName("pix_fmt")] [JsonPropertyName("pix_fmt")]
public string PixelFormat { get; set; } public string PixelFormat { get; set; } = null!;
[JsonPropertyName("pict_type")] [JsonPropertyName("pict_type")]
public string PictureType { get; set; } public string PictureType { get; set; } = null!;
[JsonPropertyName("coded_picture_number")] [JsonPropertyName("coded_picture_number")]
public long CodedPictureNumber { get; set; } public long CodedPictureNumber { get; set; }
@ -72,12 +72,12 @@ public class FFProbeFrameAnalysis
public int RepeatPicture { get; set; } public int RepeatPicture { get; set; }
[JsonPropertyName("chroma_location")] [JsonPropertyName("chroma_location")]
public string ChromaLocation { get; set; } public string ChromaLocation { get; set; } = null!;
} }
public class FFProbeFrames public class FFProbeFrames
{ {
[JsonPropertyName("frames")] [JsonPropertyName("frames")]
public List<FFProbeFrameAnalysis> Frames { get; set; } public List<FFProbeFrameAnalysis> Frames { get; set; } = null!;
} }
} }

View file

@ -6,7 +6,7 @@ namespace FFMpegCore
public class FFProbePacketAnalysis public class FFProbePacketAnalysis
{ {
[JsonPropertyName("codec_type")] [JsonPropertyName("codec_type")]
public string CodecType { get; set; } public string CodecType { get; set; } = null!;
[JsonPropertyName("stream_index")] [JsonPropertyName("stream_index")]
public int StreamIndex { get; set; } public int StreamIndex { get; set; }
@ -15,19 +15,19 @@ public class FFProbePacketAnalysis
public long Pts { get; set; } public long Pts { get; set; }
[JsonPropertyName("pts_time")] [JsonPropertyName("pts_time")]
public string PtsTime { get; set; } public string PtsTime { get; set; } = null!;
[JsonPropertyName("dts")] [JsonPropertyName("dts")]
public long Dts { get; set; } public long Dts { get; set; }
[JsonPropertyName("dts_time")] [JsonPropertyName("dts_time")]
public string DtsTime { get; set; } public string DtsTime { get; set; } = null!;
[JsonPropertyName("duration")] [JsonPropertyName("duration")]
public int Duration { get; set; } public int Duration { get; set; }
[JsonPropertyName("duration_time")] [JsonPropertyName("duration_time")]
public string DurationTime { get; set; } public string DurationTime { get; set; } = null!;
[JsonPropertyName("size")] [JsonPropertyName("size")]
public int Size { get; set; } public int Size { get; set; }
@ -36,12 +36,12 @@ public class FFProbePacketAnalysis
public long Pos { get; set; } public long Pos { get; set; }
[JsonPropertyName("flags")] [JsonPropertyName("flags")]
public string Flags { get; set; } public string Flags { get; set; } = null!;
} }
public class FFProbePackets public class FFProbePackets
{ {
[JsonPropertyName("packets")] [JsonPropertyName("packets")]
public List<FFProbePacketAnalysis> Packets { get; set; } public List<FFProbePacketAnalysis> Packets { get; set; } = null!;
} }
} }