mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
fixes #1310 - Downscaling 1280x720 to 720x404
This commit is contained in:
parent
07d0384e87
commit
fb3c69c612
3 changed files with 27 additions and 6 deletions
|
|
@ -82,7 +82,10 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
|
||||
if (state.OutputVideoBitrate.HasValue)
|
||||
{
|
||||
var resolution = ResolutionNormalizer.Normalize(state.OutputVideoBitrate.Value,
|
||||
var resolution = ResolutionNormalizer.Normalize(
|
||||
state.VideoStream == null ? (int?)null : state.VideoStream.BitRate,
|
||||
state.OutputVideoBitrate.Value,
|
||||
state.VideoStream == null ? null : state.VideoStream.Codec,
|
||||
state.OutputVideoCodec,
|
||||
request.MaxWidth,
|
||||
request.MaxHeight);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue