diff options
author | sfan5 <sfan5@live.de> | 2024-03-11 21:13:39 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-03-16 13:27:34 +0100 |
commit | 830f6ccd6bcd8bdffc4e2c8d8f1a3e1be25f0a1d (patch) | |
tree | 822850558da2fe8736339a30f0098e9d8ceead01 /video/out/vo_drm.c | |
parent | aa75a0e9d29e401dd048f6ec077b8c3c4129efee (diff) | |
download | mpv-830f6ccd6bcd8bdffc4e2c8d8f1a3e1be25f0a1d.tar.bz2 mpv-830f6ccd6bcd8bdffc4e2c8d8f1a3e1be25f0a1d.tar.xz |
vo_{drm,wlshm}: make query_format checks more correct
We're using mp_sws here, so we should ask it for format support
and not the underlying library (usually swscale) directly.
Diffstat (limited to 'video/out/vo_drm.c')
-rw-r--r-- | video/out/vo_drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c index 7fc75193c7..34726a3c02 100644 --- a/video/out/vo_drm.c +++ b/video/out/vo_drm.c @@ -24,7 +24,6 @@ #include <unistd.h> #include <drm_fourcc.h> -#include <libswscale/swscale.h> #include "common/msg.h" #include "drm_atomic.h" @@ -422,7 +421,8 @@ err: static int query_format(struct vo *vo, int format) { - return sws_isSupportedInput(imgfmt2pixfmt(format)); + struct priv *p = vo->priv; + return mp_sws_supports_formats(p->sws, p->imgfmt, format) ? 1 : 0; } static int control(struct vo *vo, uint32_t request, void *arg) |