stub out channel mapping

This commit is contained in:
Luke Pulverenti
2016-06-09 12:13:25 -04:00
parent 527014d73a
commit b0c1ba1e19
7 changed files with 138 additions and 12 deletions

View File

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