From 056622c33e2ba305df4b1602149af01967bbb9ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 11 Aug 2014 21:57:41 +0200 Subject: 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. --- video/decode/vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3