读书人

ffmpeg下部几个函数与结构体找不到;/

发布时间: 2013-07-08 14:13:00 作者: rapoo

ffmpeg下面几个函数与结构体找不到;//头文件加好了,版本太低?


avformat_open_input()
av_probe_input_buffer()
avformat_alloc_context()
avio_alloc_context()
AVIOContext* pb = NULL;
AVInputFormat* piFmt = NULL;



3.2版本的呀
extern "C"
{
#include "include/libavcodec/avcodec.h"
#include "include/libavformat/avformat.h"
#include "include/libswscale/swscale.h"
}

#pragma comment(lib,"lib/avcodec.lib")
#pragma comment(lib,"lib/avdevice.lib")
#pragma comment(lib,"lib/avfilter.lib")
#pragma comment(lib,"lib/avformat.lib")
#pragma comment(lib,"lib/avutil.lib")
#pragma comment(lib,"lib/swscale.lib")

[解决办法]
升级ffmpeg版本,或用老版api替换

读书人网 >多媒体

热点推荐