C++ ffmpeg包含问题-某些功能缺失
由于FFMPEG,我尝试按照这一点进行调整,以转换视频,但似乎缺少一些功能,如:C++ ffmpeg包含问题-某些功能缺失,c++,ffmpeg,include,C++,Ffmpeg,Include,由于FFMPEG,我尝试按照这一点进行调整,以转换视频,但似乎缺少一些功能,如: int avcodec_open ( AVCodecContext * avctx, AVCodec * codec) 当我在文档中查看它的来源时,我在我的程序中包含的文件libavcodec/avcodec.h中找到了它#包括“libavcodec/avcodec.h”(在我的.h文件的顶部) 考虑到这一点,我不明白为什么Qt会给我这个错误: ../../Dev/Joker/libs/PhVideo/
int avcodec_open ( AVCodecContext * avctx, AVCodec * codec)
当我在文档中查看它的来源时,我在我的程序中包含的文件libavcodec/avcodec.h
中找到了它#包括“libavcodec/avcodec.h”
(在我的.h
文件的顶部)
考虑到这一点,我不明白为什么Qt会给我这个错误:
../../Dev/Joker/libs/PhVideo/PhVideoEncoder.cpp:360:6: error: use of undeclared identifier 'avcodec_open'
if (avcodec_open(c, codec) < 0) {
。/../Dev/Joker/libs/PhVideo/PhVideoEncoder.cpp:360:6:错误:使用未声明的标识符“avcodec\u open”
如果(avcodec_打开(c,codec)<0){
avcodec\u open
已被弃用,并在较新版本的FFMPEG中替换为avcodec\u open2
参考最新版本,以及