配置ffmpeg OK后运行output_example
2009-04-07 15:31
204 查看
配置好ffmpeg的方法后:
创建一个空的win32工程,加入d:/ffmpeg /output_example.c
编译报错:
Cannot open include file: ''inttypes.h'': No such file or directory
双击报错的common.h文件,
将#include <inttypes.h>
修改为以下:
//#include <inttypes.h>
#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
#define CONFIG_WIN32
#endif
#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(EMULATE_INTTYPES)
#define EMULATE_INTTYPES
#endif
#ifndef EMULATE_INTTYPES
#include <inttypes.h>
#else
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#ifdef CONFIG_WIN32
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else /* other OS */
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
#endif /* other OS */
#endif /* EMULATE_INTTYPES */
#if defined(WIN32) && !defined(__cplusplus)
#define inline __inline
#endif
运行,OK
创建一个空的win32工程,加入d:/ffmpeg /output_example.c
编译报错:
Cannot open include file: ''inttypes.h'': No such file or directory
双击报错的common.h文件,
将#include <inttypes.h>
修改为以下:
//#include <inttypes.h>
#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
#define CONFIG_WIN32
#endif
#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(EMULATE_INTTYPES)
#define EMULATE_INTTYPES
#endif
#ifndef EMULATE_INTTYPES
#include <inttypes.h>
#else
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#ifdef CONFIG_WIN32
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else /* other OS */
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
#endif /* other OS */
#endif /* EMULATE_INTTYPES */
#if defined(WIN32) && !defined(__cplusplus)
#define inline __inline
#endif
运行,OK
相关文章推荐
- vs2010配置FFMPEG SDK并编译output_example.c遇到的问题
- FFMpeg output_example.c 分析
- FFMpeg的output_example.c例子分析
- FFMpeg的output_example.c例子分析
- linux下编译ffmpeg ,以及x.264在linux下运行的配置
- 自制FFmpeg SDK并使用output_example测试
- 在VS2008下调试ffmpeg output_example.c详细步骤
- FFMpeg中的实例output_example.c的编译
- FFMpeg的output_example.c例子分析
- 关于编译ffmpeg的output-example.c和api-example.c 错误的一些解决方法
- FFMpeg中的实例output_example.c的编译
- FFMpeg的output_example.c例子分析
- FFMpeg的output_example.c例子分析
- [转]FFMpeg的output_example.c例子分析
- ffmpeg基础与编译_在VS2008下调试output_example.c(详细步骤)
- OK6410与Ubuntu 11.10 NFS配置与运行第一个程序
- FFmpeg SDK开发手册(以output_example为示例)
- React Native配置运行官方Example Demo 等等
- ffmpeg基础与编译_在VS2008下调试output_example.c(详细步骤)
- FFMpeg的output_example.c例子分析