1.下載 Zeranoe ffmpeg builds Dev + Shared
下載 inttypes.h & stdint.h header file 然後放入 ffmpeg\include 資料夾中
2.Visual Studio 專案屬性 -> C/C++ -> Additional Include Directories 加入 ffmpeg\include
Visual Studio 專案屬性 -> Linker -> Additional Library Directories 加入 ffmpeg\lib
3. 在 libavutil\common.h 加入
#define __STDC_CONSTANT_MACROS
#define inline __inline
#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif
ps. 如果遇到 Debug 可以執行 Release 卻 crash 的狀況
Visual Studio 專案屬性 -> Linker -> Optimization -> References -> 設成 No (/OPT:NOREF)
全站熱搜