采用FFMPEG开源库和vs2008 mfc 写一个H264播放器(1)

/*    FFMPEG动态库使用  */

1 将一下文件拷入工程当前目录下面

http://pan.baidu.com/disk/home#dir/path=%2FFFMPEG

2 设置项目属性

     1)添加附加包含目录

     2)添加附加库目录

3)各个库的动态引用文件(.dll)已经拷入了,可以使用了

3)引用添加头文件

#ifdef __cplusplus
extern "C" {
#endif 
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>

#ifdef __cplusplus
}

扫描二维码关注公众号,回复: 1637059 查看本文章

4)完成动态库配置了,可以使用ffmpeg动态库了

猜你喜欢

转载自blog.csdn.net/spy20008/article/details/24198993
今日推荐