summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-11 21:57:41 +0200
committerwm4 <wm4@nowhere>2014-08-11 21:57:41 +0200
commit056622c33e2ba305df4b1602149af01967bbb9ca (patch)
treea55cbe7bb2b6e9131b6e4599fffdbb143927135a /video/decode
parentbeceb2fedc96ce2f510a542de2ee10417221f731 (diff)
downloadmpv-056622c33e2ba305df4b1602149af01967bbb9ca.tar.bz2
mpv-056622c33e2ba305df4b1602149af01967bbb9ca.tar.xz
vaapi: fix uninitialized value read
Found with valgrind. This is somewhat terrifying, because the VA-API API function is supposed to fill these values, and we access them only if the API functions return success. So this shouldn't have happened.
Diffstat (limited to 'video/decode')
-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 0e88b86c76..19395f6e09 100644
--- a/video/decode/vaapi.c
+++ b/video/decode/vaapi.c
@@ -129,7 +129,7 @@ static int find_entrypoint(int format, VAEntrypoint *ep, int num_ep)
static int is_direct_mapping(VADisplay display)
{
- VADisplayAttribute attr;
+ VADisplayAttribute attr = {0};
VAStatus status;
#if VA_CHECK_VERSION(0,34,0)