Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Nyanmisaka 2021-03-22 19:25:41 +08:00 committed by GitHub
parent fcb070abf7
commit a6bc191607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -596,8 +596,7 @@ namespace MediaBrowser.Controller.MediaEncoding
&& string.Equals(encodingOptions.HardwareAccelerationType, "nvenc", StringComparison.OrdinalIgnoreCase)
&& isNvdecDecoder)
{
arg.Append("-hwaccel_output_format cuda ")
.Append("-autorotate 0 ");
arg.Append("-hwaccel_output_format cuda -autorotate 0 ");
}
if (state.IsVideoRequest