mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
drop 'force_original_aspect_ratio'
graphical subtitles can be off-center in some cases
This commit is contained in:
parent
5fd3ea8b21
commit
22ef0e3574
@ -1593,11 +1593,9 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
// Setup subtitle scaling
|
// Setup subtitle scaling
|
||||||
if (state.VideoStream != null && state.VideoStream.Width.HasValue && state.VideoStream.Height.HasValue)
|
if (state.VideoStream != null && state.VideoStream.Width.HasValue && state.VideoStream.Height.HasValue)
|
||||||
{
|
{
|
||||||
// force_original_aspect_ratio=decrease
|
|
||||||
// Enable decreasing output video width or height if necessary to keep the original aspect ratio
|
|
||||||
videoSizeParam = string.Format(
|
videoSizeParam = string.Format(
|
||||||
CultureInfo.InvariantCulture,
|
CultureInfo.InvariantCulture,
|
||||||
"scale={0}:{1}:force_original_aspect_ratio=decrease",
|
"scale={0}:{1}",
|
||||||
state.VideoStream.Width.Value,
|
state.VideoStream.Width.Value,
|
||||||
state.VideoStream.Height.Value);
|
state.VideoStream.Height.Value);
|
||||||
|
|
||||||
@ -1624,7 +1622,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
{
|
{
|
||||||
videoSizeParam = string.Format(
|
videoSizeParam = string.Format(
|
||||||
CultureInfo.InvariantCulture,
|
CultureInfo.InvariantCulture,
|
||||||
"scale={0}:{1}:force_original_aspect_ratio=decrease",
|
"scale={0}:{1}",
|
||||||
width.Value,
|
width.Value,
|
||||||
height.Value);
|
height.Value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user