mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 12:36:44 +00:00
Cleanup
This commit is contained in:
parent
ba2e31c43b
commit
476c8f33c0
4 changed files with 9 additions and 7 deletions
|
@ -3,11 +3,13 @@
|
|||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Numerics;
|
||||
using System.Runtime.Versioning;
|
||||
using FFMpegCore.Extensions.System.Drawing.Common;
|
||||
using FFMpegCore.Pipes;
|
||||
|
||||
namespace FFMpegCore.Test
|
||||
namespace FFMpegCore.Test.Utilities
|
||||
{
|
||||
[SupportedOSPlatform("windows")]
|
||||
static class BitmapSource
|
||||
{
|
||||
public static IEnumerable<IVideoFrame> CreateBitmaps(int count, PixelFormat fmt, int w, int h)
|
||||
|
|
|
@ -4,10 +4,10 @@ public class AudibleEncryptionKeyArgument : IArgument
|
|||
{
|
||||
private readonly bool _aaxcMode;
|
||||
|
||||
private readonly string _key;
|
||||
private readonly string _iv;
|
||||
private readonly string? _key;
|
||||
private readonly string? _iv;
|
||||
|
||||
private readonly string _activationBytes;
|
||||
private readonly string? _activationBytes;
|
||||
|
||||
|
||||
public AudibleEncryptionKeyArgument(string activationBytes)
|
||||
|
|
|
@ -12,7 +12,7 @@ public class FFProbeAnalysis
|
|||
public Format Format { get; set; } = null!;
|
||||
|
||||
[JsonIgnore]
|
||||
public IReadOnlyList<string> ErrorData { get; set; }
|
||||
public IReadOnlyList<string> ErrorData { get; set; } = new List<string>();
|
||||
}
|
||||
|
||||
public class FFProbeStream : ITagsContainer, IDispositionContainer
|
||||
|
@ -108,7 +108,7 @@ public class Format : ITagsContainer
|
|||
public string Size { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("bit_rate")]
|
||||
public string BitRate { get; set; } = null!;
|
||||
public string? BitRate { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("probe_score")]
|
||||
public int ProbeScore { get; set; }
|
||||
|
|
|
@ -13,7 +13,7 @@ internal MediaAnalysis(FFProbeAnalysis analysis)
|
|||
VideoStreams = analysis.Streams.Where(stream => stream.CodecType == "video").Select(ParseVideoStream).ToList();
|
||||
AudioStreams = analysis.Streams.Where(stream => stream.CodecType == "audio").Select(ParseAudioStream).ToList();
|
||||
SubtitleStreams = analysis.Streams.Where(stream => stream.CodecType == "subtitle").Select(ParseSubtitleStream).ToList();
|
||||
ErrorData = analysis.ErrorData ?? new List<string>().AsReadOnly();
|
||||
ErrorData = analysis.ErrorData;
|
||||
}
|
||||
|
||||
private MediaFormat ParseFormat(Format analysisFormat)
|
||||
|
|
Loading…
Reference in a new issue