Add support for AV_HWDEVICE_TYPE_DRM hwaccels
This commit is contained in:
parent
2a7fae2c82
commit
541784382a
1 changed files with 4 additions and 0 deletions
|
|
@ -522,6 +522,10 @@ IFFmpegRenderer* FFmpegVideoDecoder::createHwAccelRenderer(const AVCodecHWConfig
|
||||||
#ifdef HAVE_LIBVDPAU
|
#ifdef HAVE_LIBVDPAU
|
||||||
case AV_HWDEVICE_TYPE_VDPAU:
|
case AV_HWDEVICE_TYPE_VDPAU:
|
||||||
return new VDPAURenderer();
|
return new VDPAURenderer();
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_DRM
|
||||||
|
case AV_HWDEVICE_TYPE_DRM:
|
||||||
|
return new DrmRenderer();
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue