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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user