mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02: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
|
if (bitrate == 0
|
||||||
&& formatInfo != null
|
&& formatInfo != null
|
||||||
&& !string.IsNullOrEmpty(formatInfo.BitRate)
|
&& !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 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))
|
if (int.TryParse(formatInfo.BitRate, NumberStyles.Any, _usCulture, out var value))
|
||||||
|
|
Loading…
Reference in a new issue