aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Janda <petr.janda@holidaysinhell.com>2019-12-06 05:12:16 +1030
committerPetr Janda <petr.janda@holidaysinhell.com>2019-12-06 05:12:16 +1030
commit7d2bfabb32a5876c977a2a9e4d4e196ee6ca73b2 (patch)
tree3c9cb4f08496ffd252df729feae861b11591e5a5
parent8368815788805c610f3a88be405319ae57cb87d1 (diff)
Force original aspect ratio can be used for QSV subtitle scaling
-rw-r--r--MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
index 5a8366143..ad5050471 100644
--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
+++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
@@ -1593,14 +1593,12 @@ namespace MediaBrowser.Controller.MediaEncoding
state.VideoStream.Width.Value,
state.VideoStream.Height.Value);
+ videoSizeParam += ":force_original_aspect_ratio=decrease";
+
+ //For QSV, feed it into hardware encoder
if (string.Equals(outputVideoCodec, "h264_qsv", StringComparison.OrdinalIgnoreCase))
{
- //For QSV, feed it into hardware encoder
videoSizeParam += ",hwupload=extra_hw_frames=64";
- }
- else
- {
- videoSizeParam += ":force_original_aspect_ratio=decrease";
}
}