mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 20:27:23 +00:00
vaapi: fix non-sense condition
Attempting signed comparison on unsigned value.
This commit is contained in:
parent
4e1d65983a
commit
60e7926248
@ -283,7 +283,7 @@ static int create_decoder(struct lavc_ctx *ctx)
|
||||
if (!check_va_status(status, "vaQueryConfigEntrypoints()"))
|
||||
goto error;
|
||||
|
||||
VAEntrypoint entrypoint = find_entrypoint(p->format, ep, num_ep);
|
||||
int entrypoint = find_entrypoint(p->format, ep, num_ep);
|
||||
if (entrypoint < 0) {
|
||||
mp_msg(MSGT_VO, MSGL_ERR, "[vaapi] Could not find VA entrypoint.\n");
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user