diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-11-30 17:47:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-30 17:47:03 +0100 |
| commit | 78fef806967563d613c5b06b23e5b59cb40f164e (patch) | |
| tree | d073ff6e57a32c4c5c594f22b71cbc776d7e2a8c /MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs | |
| parent | 729327441dd61e5a17c3b9f90f06f0d4c101ec8f (diff) | |
| parent | 92118c2129ec8175665e65dcd78c1400fbe60c80 (diff) | |
Merge pull request #4607 from nyanmisaka/fix-image-extraction
Fix the I-frame image extraction filter string
Diffstat (limited to 'MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs')
| -rw-r--r-- | MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs index 97d61441c..27bd693e3 100644 --- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs +++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs @@ -778,7 +778,11 @@ namespace MediaBrowser.MediaEncoding.Probing } } - if (bitrate == 0 && formatInfo != null && !string.IsNullOrEmpty(formatInfo.BitRate) && stream.Type == MediaStreamType.Video) + // The bitrate info of FLAC musics and some videos is included in formatInfo. + if (bitrate == 0 + && formatInfo != null + && !string.IsNullOrEmpty(formatInfo.BitRate) + && (stream.Type == MediaStreamType.Video || stream.Type == MediaStreamType.Audio)) { // If the stream info doesn't have a bitrate get the value from the media format info if (int.TryParse(formatInfo.BitRate, NumberStyles.Any, _usCulture, out var value)) |
