1、在libavformat/avformat.h中声明一个全局变量 extern int stop_parse;2、在libavformat/utils.c 中定义这个全局变量 int stop_parse = 0;3、在doc/examples/demuxing_decoding.c 中引用这个全局变量stop_parse = 0;编译时报错,原因是未定义的引用
如果你编译的是so文件,那就没错了