summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-29 13:45:49 +0200
committerwm4 <wm4@nowhere>2013-09-29 13:45:49 +0200
commit60e79262486705e275187580b35921b82dc1d309 (patch)
tree78df981fdd8d786901c25e9fe0d95c274dfb4689
parent4e1d65983a94a85e6ba4e1248b321aaaf053391e (diff)
downloadmpv-60e79262486705e275187580b35921b82dc1d309.tar.bz2
mpv-60e79262486705e275187580b35921b82dc1d309.tar.xz
vaapi: fix non-sense condition
Attempting signed comparison on unsigned value.
-rw-r--r--video/decode/vaapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c
index d7ee5b35dc..3fba49be12 100644
--- a/video/decode/vaapi.c
+++ b/video/decode/vaapi.c
@@ -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;