update live stream bitrates

This commit is contained in:
Luke Pulverenti
2017-01-26 01:26:58 -05:00
parent 8f780269cb
commit 045fdaf387
8 changed files with 37 additions and 36 deletions

View File

@@ -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);
}
}