mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 08:23:04 +00:00
update live stream bitrates
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user