diff options
| author | Nyanmisaka <nst799610810@gmail.com> | 2020-04-13 10:52:21 +0800 |
|---|---|---|
| committer | Vasily <just.one.man@yandex.ru> | 2020-05-26 18:21:31 +0300 |
| commit | 22ef0e3574418ed22fe24db149613d71bb8daf9a (patch) | |
| tree | 85c345c987b4c7c3ee60cdb31d77f9d8f946eeeb /MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | |
| parent | 5fd3ea8b21cc48c4b7d0f4f29933ac8f9f4ad61a (diff) | |
drop 'force_original_aspect_ratio'
graphical subtitles can be off-center in some cases
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index e0a2224ed..f7aaf8645 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -1593,11 +1593,9 @@ namespace MediaBrowser.Controller.MediaEncoding // Setup subtitle scaling 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( CultureInfo.InvariantCulture, - "scale={0}:{1}:force_original_aspect_ratio=decrease", + "scale={0}:{1}", state.VideoStream.Width.Value, state.VideoStream.Height.Value); @@ -1624,7 +1622,7 @@ namespace MediaBrowser.Controller.MediaEncoding { videoSizeParam = string.Format( CultureInfo.InvariantCulture, - "scale={0}:{1}:force_original_aspect_ratio=decrease", + "scale={0}:{1}", width.Value, height.Value); } |
