diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-08-20 00:07:04 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-20 00:07:04 -0300 |
| commit | 01ff648bdf46b85409d1a834987a69150de7adb9 (patch) | |
| tree | aa72717b43babdae3431d1bbe8e68be0d875c91d /Ryujinx.Graphics.Nvdec.Vp9/Decoder.cs | |
| parent | 5eb0ee3ccaf531ad4042199f848e9462efb3d8ec (diff) | |
Fix asserts on VP9 decoder in debug mode and build warnings (#1480)
Diffstat (limited to 'Ryujinx.Graphics.Nvdec.Vp9/Decoder.cs')
| -rw-r--r-- | Ryujinx.Graphics.Nvdec.Vp9/Decoder.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Nvdec.Vp9/Decoder.cs b/Ryujinx.Graphics.Nvdec.Vp9/Decoder.cs index df3199cf..ff4221ac 100644 --- a/Ryujinx.Graphics.Nvdec.Vp9/Decoder.cs +++ b/Ryujinx.Graphics.Nvdec.Vp9/Decoder.cs @@ -7,7 +7,7 @@ using Vp9MvRef = Ryujinx.Graphics.Video.Vp9MvRef; namespace Ryujinx.Graphics.Nvdec.Vp9 { - public class Decoder : IVp9Decoder + public sealed class Decoder : IVp9Decoder { public bool IsHardwareAccelerated => false; @@ -37,6 +37,8 @@ namespace Ryujinx.Graphics.Nvdec.Vp9 cm.Width = output.Width; cm.Height = output.Height; + cm.SubsamplingX = 1; + cm.SubsamplingY = 1; cm.UsePrevFrameMvs = pictureInfo.UsePrevInFindMvRefs; @@ -48,6 +50,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9 cm.UvDcDeltaQ = pictureInfo.UvDcDeltaQ; cm.Mb.Lossless = pictureInfo.Lossless; + cm.Mb.Bd = 8; cm.TxMode = (TxMode)pictureInfo.TransformMode; |
