[Libav-user] ffmpeg 2.5 compile error

Tocy zyvj at qq.com
Fri Dec 5 08:54:36 CET 2014

i just download ffmpeg 2.5(released on 2014-12-04‍)and compile it.
but encountered error as follows:
ffmpeg_dxva2.c:56:1: warning: 'GUID_NULL' initialized and declared 'extern'
ffmpeg_dxva2.c: In function 'dxva2_alloc':
ffmpeg_dxva2.c:363:5: error: implicit declaration of function 'GetShellWindow'
ffmpeg_dxva2.c:363:5: warning: passing argument 4 of 'ctx->d3d9->lpVtbl->CreateD
evice' makes pointer from integer without a cast
ffmpeg_dxva2.c:363:5: note: expected 'HWND' but argument is of type 'int'
make: *** [ffmpeg_dxva2.o] Error 1‍

i compile in mingw +windows. my gcc version is :
$ gcc --v
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,fortran,obj
c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo
mp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-r
untime-libs --disable-werror --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.5.2 (GCC)‍

my ffmpeg configure command is :
./configure --disable-static --enable-shared --enable-gpl --enable-version3 --disable-debug --enable-w32threads --enable-memalign-hack --extra-cflags="-fno-common"

i just use GetDesktopWindow to replace function GetShellWindow, and compiled successfully.‍‍

is there any other methods to modify this compiling error?
or is this a proper modification?

any reply is welcome, and 3ks everyone.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20141205/aa0e5aaa/attachment.html>

More information about the Libav-user mailing list