<div><font color="#000080">i just download ffmpeg 2.5(</font><span style="color: rgb(230, 230, 230); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'Helvetica Neue', Helvetica, Verdana, Tahoma, sans-serif; font-size: 14.3999996185303px; line-height: 16px; text-align: justify; background-color: rgb(48, 48, 48);">released on 2014-12-04<span id="_editor_bookmark_start_0" style="display: none; line-height: 0px;">‍</span></span><span style="line-height: 1.5; color: rgb(0, 0, 128); font-size: 14px;">)and compile it.</span></div><div><span style="line-height: 1.5; color: rgb(0, 0, 128); font-size: 14px;">but encountered error as follows:</span></div><div><div>ffmpeg_dxva2.c:56:1: warning: 'GUID_NULL' initialized and declared 'extern'</div><div>ffmpeg_dxva2.c: In function 'dxva2_alloc':</div><div>ffmpeg_dxva2.c:363:5: error: implicit declaration of function 'GetShellWindow'</div><div>ffmpeg_dxva2.c:363:5: warning: passing argument 4 of 'ctx->d3d9->lpVtbl->CreateD</div><div>evice' makes pointer from integer without a cast</div><div>ffmpeg_dxva2.c:363:5: note: expected 'HWND' but argument is of type 'int'</div><div>make: *** [ffmpeg_dxva2.o] Error 1<span id="_editor_bookmark_start_1" style="display: none; line-height: 0px;">‍</span></div></div><div><br></div><div>i compile in mingw +windows. my gcc version is :</div><div><div>$ gcc --v</div><div>Using built-in specs.</div><div>COLLECT_GCC=C:\MinGW\bin\gcc.exe</div><div>COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe</div><div>Target: mingw32</div><div>Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,fortran,obj</div><div>c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo</div><div>mp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-r</div><div>untime-libs --disable-werror --build=mingw32 --prefix=/mingw</div><div>Thread model: win32</div><div>gcc version 4.5.2 (GCC)<span id="_editor_bookmark_start_2" style="display: none; line-height: 0px;">‍</span></div></div><div><br></div><div>my ffmpeg configure command is :</div><div><div>./configure --disable-static --enable-shared --enable-gpl --enable-version3 --disable-debug --enable-<span style="line-height: 1.5; font-size: 14px;">w32threads --enable-memalign-hack --extra-cflags="-fno-common"</span></div></div><div><span style="line-height: 1.5; font-size: 14px;"><br></span></div><div><span style="line-height: 1.5; font-size: 14px;">i just use </span>GetDesktopWindow to replace function <span style="font-size: 14.3999996185303px; line-height: 16.7999992370605px;">GetShellWindow, and compiled successfully.<span id="_editor_bookmark_start_5" style="display: none; line-height: 0px;">‍</span></span><span id="_editor_bookmark_start_4" style="display: none; line-height: 0px;">‍</span></div><div><span style="font-size: 14.3999996185303px; line-height: 16.7999992370605px;"><br></span></div><div>is there any other methods to modify this compiling error?</div><div>or is this a proper modification?</div><div><br></div><div>any reply is welcome, and 3ks everyone. </div>