[FFmpeg-devel] [PATCH 2/2] mfenc: Avoid including codecapi.h, fix building in UWP mode with clang

Martin Storsjö martin at martin.st
Tue May 26 22:14:37 EEST 2020


On Mon, 25 May 2020, Martin Storsjö wrote:

> Including codecapi.h and uuids.h in UWP mode doesn't define all defines
> properly, ending up with constructs that MSVC silently tolerates, but
> that clang errors out on, like this:
>    DEFINE_GUIDEX(CODECAPI_AVEncCommonFormatConstraint);
>
> Just avoid including codecapi.h completely and hardcode the last few
> enum values we use from there. We already use local versions of most
> enums from there, due to older mingw-w64 headers being incomplete.
> ---
> libavcodec/mf_utils.h | 15 +++++++++++----
> libavcodec/mfenc.c    |  6 +++---
> 2 files changed, 14 insertions(+), 7 deletions(-)

Will push these, to fix compilation with clang/msvc in UWP mode.

// Martin


More information about the ffmpeg-devel mailing list