mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:28:23 +00:00
stub out channel mapping
This commit is contained in:
parent
527014d73a
commit
b0c1ba1e19
7 changed files with 138 additions and 12 deletions
|
|
@ -425,6 +425,12 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
{
|
||||
var inputVideoCodec = videoStream == null ? null : videoStream.Codec;
|
||||
bitrate = ResolutionNormalizer.ScaleBitrate(bitrate.Value, inputVideoCodec, outputVideoCodec);
|
||||
|
||||
// If a max bitrate was requested, don't let the scaled bitrate exceed it
|
||||
if (request.VideoBitRate.HasValue)
|
||||
{
|
||||
bitrate = Math.Min(bitrate.Value, request.VideoBitRate.Value);
|
||||
}
|
||||
}
|
||||
|
||||
return bitrate;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue