mirror of https://github.com/mpv-player/mpv
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:
parent
beceb2fedc
commit
056622c33e
|
@ -129,7 +129,7 @@ static int find_entrypoint(int format, VAEntrypoint *ep, int num_ep)
|
||||||
|
|
||||||
static int is_direct_mapping(VADisplay display)
|
static int is_direct_mapping(VADisplay display)
|
||||||
{
|
{
|
||||||
VADisplayAttribute attr;
|
VADisplayAttribute attr = {0};
|
||||||
VAStatus status;
|
VAStatus status;
|
||||||
|
|
||||||
#if VA_CHECK_VERSION(0,34,0)
|
#if VA_CHECK_VERSION(0,34,0)
|
||||||
|
|
Loading…
Reference in New Issue