microsoft / FFmpegInterop

This is a code sample to make it easier to use FFmpeg in Windows applications.
Apache License 2.0
1.27k stars 308 forks source link

MSFT: 46737360 - Support building FFmpegInterop WACK compliant for Store apps #302

Closed brbeec closed 9 months ago

brbeec commented 9 months ago

Why is this change being made?

MFInitMediaTypeFromVideoInfoHeader(), which is used by VFWSampleProvider::SetEncodingProperties() to initialize the stream's VideoEncodingProperties, is not a WACK supported API.

What changed?

This change updates FFmpegInterop to support building WACK compliant for Store apps when WINAPI_FAMILY=WINAPI_FAMILY_PC_APP.

How was the change tested?

For both WINAPI_FAMILY=WINAPI_FAMILY_PC_APP and WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP, which is the default if WINAPI_FAMILY is not specified, I verified: