mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Backport pull request #8174 from jellyfin/release-10.8.z
Disable auto inserted SW scaler for HW decoders
Authored-by: nyanmisaka <nst799610810@gmail.com>
Merged-by: Bond-009 <bond.009@outlook.com>
Original-merge: 7297431f23
This commit is contained in:
@@ -931,6 +931,13 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
arg.Append(" -i \"").Append(state.AudioStream.Path).Append('"');
|
||||
}
|
||||
|
||||
// Disable auto inserted SW scaler for HW decoders in case of changed resolution.
|
||||
var isSwDecoder = string.IsNullOrEmpty(GetHardwareVideoDecoder(state, options));
|
||||
if (!isSwDecoder)
|
||||
{
|
||||
arg.Append(" -autoscale 0");
|
||||
}
|
||||
|
||||
return arg.ToString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user