aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2023-02-01 14:58:04 +0100
committerBond_009 <bond.009@outlook.com>2023-02-01 14:58:04 +0100
commit65d605b17dfc978ebc089b7500a5aacd8fcd863f (patch)
tree45b9b6716ba7ff27b302e04925b2952005d510b3 /MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs
parent992b460912f3100f126bc4db0fe042fd4aefee7c (diff)
Improve ffprobe json parsing and don't log error for Codec Type attachment
Diffstat (limited to 'MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs')
-rw-r--r--MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs b/MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs
index eab8f79bb..294442324 100644
--- a/MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs
+++ b/MediaBrowser.MediaEncoding/Probing/MediaStreamInfo.cs
@@ -43,7 +43,7 @@ namespace MediaBrowser.MediaEncoding.Probing
/// </summary>
/// <value>The codec_type.</value>
[JsonPropertyName("codec_type")]
- public string CodecType { get; set; }
+ public CodecType CodecType { get; set; }
/// <summary>
/// Gets or sets the sample_rate.
@@ -228,11 +228,11 @@ namespace MediaBrowser.MediaEncoding.Probing
public long StartPts { get; set; }
/// <summary>
- /// Gets or sets the is_avc.
+ /// Gets or sets a value indicating whether the stream is AVC.
/// </summary>
/// <value>The is_avc.</value>
[JsonPropertyName("is_avc")]
- public string IsAvc { get; set; }
+ public bool IsAvc { get; set; }
/// <summary>
/// Gets or sets the nal_length_size.