On Fri, May 09, 2014 at 01:54:18PM +0200, Hendrik Leppkes wrote:
> This fixes build failures on older mingw chains (before 2012).
> ---
> configure | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
I'm not convinced this is worth the trouble for supporting obsolete
platforms. AFAIK MinGW users update their build environments regularly.
So it seems to me this 2 year old platform is already obsolete and
moving into non-existence. Would you disagree?
> --- a/configure
> +++ b/configure
> @@ -1505,6 +1505,7 @@ HAVE_LIST="
> atomics_native
> dos_paths
> + dxva2api_cobj
> dxva2_lib
Place this after dxva2_lib.
> @@ -4016,6 +4017,16 @@ disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion
> -lbz2 || disable bzlib
> +enabled dxva2api_h &&
> + check_cc <<EOF && enable dxva2api_cobj
> +#define _WIN32_WINNT 0x0600
> +#define COBJMACROS
> +#include <windows.h>
> +#include <d3d9.h>
> +#include <dxva2api.h>
> +int main(void) { IDirectXVideoDecoder *o = NULL;
> IDirectXVideoDecoder_Release(o); return 0; }
IDirectXVideoDecoder_Release(NULL); ?
Surprisingly enough there is no ready-made helper function that sets
global #defines. Adding one or extending an existing one would probably
be a sensible course of action.
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel