伟大无需多言!
C++开发者,再也不需要链接ffmpeg的时候用extern c自己去包裹FFMPEG的头文件了!
再也不用写一堆头文件了!

源码如下
//
// Created by CaoMengxuan on 2024/9/13.
//
#ifndef FFMPEG_HPP
#define FFMPEG_HPP
#ifdef __cplusplus
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavdevice/avdevice.h>
#include <libavfilter/avfilter.h>
#include <libavformat/avformat.h>
#include <libavutil/avutil.h>
#include <libpostproc/postprocess.h>
#include <libswresample/swresample.h>
#include <libswscale/swscale.h>
}
#endif
#endif//FFMPEG_HPP
1394

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



