Allow NV12 and NV21 to be selected for non-hwaccel decoders using the SDL renderer

This commit is contained in:
Cameron Gutman
2020-01-26 15:02:29 -08:00
parent cede6ce8a9
commit b9463b3c0e
5 changed files with 35 additions and 1 deletions
@@ -62,6 +62,11 @@ public:
}
}
virtual bool isPixelFormatSupported(int videoFormat, enum AVPixelFormat pixelFormat) {
// By default, we only support the preferred pixel format
return getPreferredPixelFormat(videoFormat) == pixelFormat;
}
// IOverlayRenderer
virtual void notifyOverlayUpdated(Overlay::OverlayType) override {
// Nothing