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.
This commit is contained in:
wm4 2014-08-11 21:57:41 +02:00
parent beceb2fedc
commit 056622c33e
1 changed files with 1 additions and 1 deletions

View File

@ -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)