编译FFmpeg时踩的那些坑

编译FFmpeg过程中遇到如下报错:

1号坑:error: 'ERROR_NOT_ENOUGH_MEMORY' undeclared

libavformat/options.c:77:5: warning: 'av_oformat_next' is deprecated [-Wdeprecated-declarations]
     while (ofmt = av_oformat_next(ofmt))
     ^~~~~
In file included from libavformat/options.c:20:0:
libavformat/avformat.h:2095:17: note: declared here
 AVOutputFormat *av_oformat_next(const AVOutputFormat *f);
                 ^~~~~~~~~~~~~~~
CC      libavformat/os_support.o
In file included from libavformat/os_support.h:115:0,
                 from libavformat/os_support.c:29:
libavformat/os_support.c: In function 'ff_gai_strerror':
libavformat/os_support.c:194:10: error: 'ERROR_NOT_ENOUGH_MEMORY' undeclared (first use in this function)
     case EAI_MEMORY:
          ^
libavformat/os_support.c:194:10: note: each undeclared identifier is reported only once for each function it appears in
make: *** [libavformat/os_support.o

你可能感兴趣的:(音视频开发,ffmpeg,makefile,编译报错)