mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Merge pull request #4626 from nyanmisaka/audio-bitrate
Do not extract audio stream bitrate info for videos from formatInfo
This commit is contained in:
commit
1bb4b590a7
1 changed files with 1 additions and 1 deletions
|
@ -782,7 +782,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||
if (bitrate == 0
|
||||
&& formatInfo != null
|
||||
&& !string.IsNullOrEmpty(formatInfo.BitRate)
|
||||
&& (stream.Type == MediaStreamType.Video || stream.Type == MediaStreamType.Audio))
|
||||
&& (stream.Type == MediaStreamType.Video || (isAudio && 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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue