From 541784382aeb6d5e3a2f2a32b0a4a8dff59afd82 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 30 Jan 2021 10:00:01 -0600 Subject: [PATCH] Add support for AV_HWDEVICE_TYPE_DRM hwaccels --- app/streaming/video/ffmpeg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/streaming/video/ffmpeg.cpp b/app/streaming/video/ffmpeg.cpp index 6b5716cd..6f6d24e1 100644 --- a/app/streaming/video/ffmpeg.cpp +++ b/app/streaming/video/ffmpeg.cpp @@ -522,6 +522,10 @@ IFFmpegRenderer* FFmpegVideoDecoder::createHwAccelRenderer(const AVCodecHWConfig #ifdef HAVE_LIBVDPAU case AV_HWDEVICE_TYPE_VDPAU: return new VDPAURenderer(); +#endif +#ifdef HAVE_DRM + case AV_HWDEVICE_TYPE_DRM: + return new DrmRenderer(); #endif default: return nullptr;