summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2023-07-01 20:15:53 -0700
committerPhilip Langdale <github.philipl@overt.org>2023-07-14 20:41:24 -0700
commit7fe2a76621f15c11298fdbc55a13f878b35a36bf (patch)
tree555f84c526ec0e728989fa206545a0f69b2b55c2 /video
parent9f7f9c1614d53e4e54c86c76023ffd0a7e95d72e (diff)
downloadmpv-7fe2a76621f15c11298fdbc55a13f878b35a36bf.tar.bz2
mpv-7fe2a76621f15c11298fdbc55a13f878b35a36bf.tar.xz
vd_lavc: add `drm` and `drm-copy` to the `auto-safe` list
We have supported `hwdec=drm` for some time now, and on devices where this method is present, it is the preferred, and only, method available. Combine that with the fact that software decoding on embedded devices will not turn out well, and it's clear that we should put `drm` and `drm-copy` on the `auto-safe` list to maximise usability in simple configurations.
Diffstat (limited to 'video')
-rw-r--r--video/decode/vd_lavc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 96b6b2ca7b..33a6da85d2 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -243,6 +243,8 @@ const struct autoprobe_info hwdec_autoprobe_info[] = {
{"vaapi-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
{"vdpau", HWDEC_FLAG_AUTO},
{"vdpau-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
+ {"drm", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
+ {"drm-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
{"mmal", HWDEC_FLAG_AUTO},
{"mmal-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
{"mediacodec", HWDEC_FLAG_AUTO},