Problem with dxva2api.h

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
xtne6f
Newbie
Newbie
Posts: 1
Joined: Mon Aug 31, 2020 6:16 am

Problem with dxva2api.h

Post by xtne6f »

Hello!

DXVA2FixedToFloat() and DXVA2FloatToFixed() functions at "include/dxva2api.h" now use implicit downcasting from (void*).
Although it would be legal in C language, when I refer the functions from my C++ source file, I get the following compile error:

Code: Select all

dxva2api.h: In function 'float DXVA2FixedToFloat(DXVA2_Fixed32)':
  error: invalid conversion from 'void*' to 'DXVA2FixedToFloat(DXVA2_Fixed32)::<unnamed struct>*' [-fpermissive]
    struct { USHORT Fraction; SHORT Value; } *_f32 = (void *)&f32;
Locked