mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-31 17:41:29 +00:00
update live stream bitrates
This commit is contained in:
parent
8f780269cb
commit
045fdaf387
8 changed files with 37 additions and 36 deletions
|
|
@ -187,11 +187,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||
// If ffprobe reported the container bitrate as being the same as the video stream bitrate, then it's wrong
|
||||
if (videoStreamsBitrate == (info.Bitrate ?? 0))
|
||||
{
|
||||
var streamBitrates = info.MediaStreams.Where(i => !i.IsExternal).Select(i => i.BitRate ?? 0).Sum();
|
||||
if (streamBitrates > (info.Bitrate ?? 0))
|
||||
{
|
||||
info.Bitrate = streamBitrates;
|
||||
}
|
||||
info.InferTotalBitrate(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue