编译出现这种原因是由于:dll中封装的是.c 文件,函数接口不对,所以必须:
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/avutil.h>
#include <libswscale/swscale.h>
}
编译出现这种原因是由于:dll中封装的是.c 文件,函数接口不对,所以必须:
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/avutil.h>
#include <libswscale/swscale.h>
}