VS2012中使用FFMPEG庫,#define inline _inline#ifndef INT64_C#define INT64_C(c) (c ## LL)#define UINT64_C(c) (c ## ULL)#endif#ifdef __cplusplusextern "C" {#endif#include <libavformat/avformat.h>#include <libavcodec/avcodec.h>#include <libswscale/swscale.h>#include <libavutil/mem.h>#ifdef __cplusplus}#endif#include <stdio.h>static void SaveFrame(AVFrame *pFrame, int width, int height, int iFrame);int main (int argc, const char * argv[]){char* filename = "E:\\A.avi";AVFormatContext *pFormatCtx = NULL;int i, videoStream;AVCodecContext *pCodecCtx;AVCodec *pCodec;AVFrame *pFrame;AVFrame *pFrameRGB;AVPacket packet;int frameFinished;int numBytes;uint8_t *buffer;// Register all formats and codecsav_register_all();}編譯錯誤:main.obj : error LNK2019: 無法解析的外部符號 _av_register_all,該符號在函數 _main 中被引用求大神T_T
- 1 回答
- 0 關注
- 341 瀏覽
添加回答
舉報
0/150
提交
取消