mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
Series: issue-6450
Issue: https://github.com/jellyfin/jellyfin/issues/6450 Enable DirectPlay responses Rewrite DirectPlay and DirectStream resolution Prefer copy transcode video codec options Enhance condition processor Support DirectStream and Transcode with parity Rework audio stream selection and add tests for ExternalAudio Update MediaInfoHelper to only call StreamBuilder once
This commit is contained in:
committed by
Cody Robibero
parent
d871dded9f
commit
5e779f20ee
@@ -1798,7 +1798,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
return false;
|
||||
}
|
||||
|
||||
return request.EnableAutoStreamCopy;
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool CanStreamCopyAudio(EncodingJobInfo state, MediaStream audioStream, IEnumerable<string> supportedAudioCodecs)
|
||||
@@ -1855,17 +1855,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
}
|
||||
|
||||
// Video bitrate must fall within requested value
|
||||
if (request.AudioBitRate.HasValue)
|
||||
if (request.AudioBitRate.HasValue
|
||||
&& audioStream.BitDepth.HasValue
|
||||
&& audioStream.BitRate.Value > request.AudioBitRate.Value)
|
||||
{
|
||||
if (!audioStream.BitRate.HasValue || audioStream.BitRate.Value <= 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (audioStream.BitRate.Value > request.AudioBitRate.Value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
return request.EnableAutoStreamCopy;
|
||||
|
||||
Reference in New Issue
Block a user