qsv and vaapi fixes (#1139)

* lots of qsv fixes

* update changelog

* fix qsv mpeg2

* vaapi fixes

* update changelog

* upgrade mudblazor

* fix bug with undefined input colorspace
This commit is contained in:
Jason Dove
2023-01-29 10:00:52 -06:00
committed by GitHub
parent 3d821043bb
commit 2689a67eb8
23 changed files with 279 additions and 95 deletions
+6 -1
View File
@@ -16,7 +16,12 @@ public class DecoderVaapi : DecoderBase
FrameState nextState = base.NextState(currentState);
return currentState.PixelFormat.Match(
pixelFormat => nextState with { PixelFormat = new PixelFormatNv12(pixelFormat.Name) },
pixelFormat =>
{
return pixelFormat.BitDepth == 8
? nextState with { PixelFormat = new PixelFormatNv12(pixelFormat.Name) }
: nextState with { PixelFormat = new PixelFormatVaapi(pixelFormat.Name) };
},
() => nextState);
}
}