mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-26 03:26:20 +01:00
update resizing params
This commit is contained in:
parent
c7d433009b
commit
bfda416579
1 changed files with 2 additions and 2 deletions
|
|
@ -547,7 +547,7 @@ namespace MediaBrowser.Api.Playback
|
|||
{
|
||||
var heightParam = request.Height.Value.ToString(UsCulture);
|
||||
|
||||
filters.Add(string.Format("scale=trunc(oh*a*2)/2:{0}", heightParam));
|
||||
filters.Add(string.Format("scale=trunc(oh*a/2)*2:{0}", heightParam));
|
||||
}
|
||||
|
||||
// If a max width was requested
|
||||
|
|
@ -555,7 +555,7 @@ namespace MediaBrowser.Api.Playback
|
|||
{
|
||||
var maxWidthParam = request.MaxWidth.Value.ToString(UsCulture);
|
||||
|
||||
filters.Add(string.Format("scale=min(iw\\,{0}):trunc(ow/dar/2)*2", maxWidthParam));
|
||||
filters.Add(string.Format("scale=trunc(min(max(iw\\,ih*dar)\\,{0})/2)*2:trunc(ow/dar/2)*2", maxWidthParam));
|
||||
}
|
||||
|
||||
// If a max height was requested
|
||||
|
|
|
|||
Loading…
Reference in a new issue