Browse Source

Fix the DG2 HDR TM tearing issue on Windows

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
nyanmisaka 2 years ago
parent
commit
48da35f91f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

+ 6 - 0
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -3404,6 +3404,12 @@ namespace MediaBrowser.Controller.MediaEncoding
                         // map from d3d11va to qsv.
                         mainFilters.Add("hwmap=derive_device=qsv");
                     }
+                    else
+                    {
+                        // Insert a qsv scaler to sync the decoder surface,
+                        // msdk will passthrough this internally.
+                        mainFilters.Add("hwmap=derive_device=qsv,scale_qsv");
+                    }
                 }
 
                 // hw deint