在c++文件中引用ffmpeg头文件需要加extern “C”
extern “C”
{
#include “libavcodec/avcodec.h”
#include “libavformat/avformat.h”
#include “libswscale/swscale.h”
};
在c++文件中引用ffmpeg头文件需要加extern “C”
extern “C”
{
#include “libavcodec/avcodec.h”
#include “libavformat/avformat.h”
#include “libswscale/swscale.h”
};

被折叠的 条评论
为什么被折叠?