mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-26 04:59:30 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user