Minor refactoring in preparation for non-hwaccel decoder support

This commit is contained in:
Cameron Gutman
2019-04-15 21:56:01 -07:00
parent b8b633a6cc
commit 773b1af6f1
3 changed files with 29 additions and 19 deletions
@@ -46,6 +46,12 @@ public:
return true;
}
virtual enum AVPixelFormat getPreferredPixelFormat(int videoFormat) {
// Planar YUV 4:2:0
SDL_assert(videoFormat != VIDEO_FORMAT_H265_MAIN10);
return AV_PIX_FMT_YUV420P;
}
// IOverlayRenderer
virtual void notifyOverlayUpdated(Overlay::OverlayType) override {
// Nothing