mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
add correct media format profiles to res elements
This commit is contained in:
@@ -308,16 +308,7 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||
/// <returns>System.Nullable{System.Int64}.</returns>
|
||||
private long? GetEstimatedContentLength(StreamState state)
|
||||
{
|
||||
var totalBitrate = 0;
|
||||
|
||||
if (state.Request.AudioBitRate.HasValue)
|
||||
{
|
||||
totalBitrate += state.Request.AudioBitRate.Value;
|
||||
}
|
||||
if (state.VideoRequest != null && state.VideoRequest.VideoBitRate.HasValue)
|
||||
{
|
||||
totalBitrate += state.VideoRequest.VideoBitRate.Value;
|
||||
}
|
||||
var totalBitrate = state.TotalOutputBitrate ?? 0;
|
||||
|
||||
if (totalBitrate > 0 && state.RunTimeTicks.HasValue)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user