Я загрузил последний исходный код FFMPEG и успешно установил его на Ubuntu
, но я не смог собрать простую демонстрацию. (Я включил надлежащие заголовки) < /p>
Вот сообщения об ошибках, лишь некоторые из них: < /p>
error: unknown type name 'AVFrame'
error: 'NULL' undeclared (first use in this function)
error: request for member 'streams' in something not a structure or union
error: 'AVMEDIA_TYPE_VIDEO' undeclared (first use in this function)
error: expected expression before ')' token
< /code>
Можете ли вы помочь мне решить эту проблему?extern "C"{
#include
#include
#include
#include
}
int main(int argc, char *argv[]) {
AVFormatContext *pFormatCtx;
int i, videoStreamIdx;
AVCodecContext *pCodecCtx;
AVCodec *pCodec;
AVFrame *pFrame;
AVFrame *pFrameRGB;
< /code>
e.g avformatcontext объявлен в окле «/сар/include/libavformat/avformat.h
».>
Подробнее здесь: https://stackoverflow.com/questions/164 ... -ffmpeg-qt