mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 11:38:02 +00:00
stub out channel mapping
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user