最近在windows 安装 ffmpeg 中出现如上报错:
经过查阅资料,编译存在bug
参考其他博主的帖文:https://blog.csdn.net/weixin_42186805/article/details/133498297
表示是右偏移问题,但未指出哪个mathops.h 文件,之后翻查资料 找到是源码包目录libavcodec下 目录x86中的mathops.h 路径为 C:\源码路径\libavcodec\x86\mathops.h
修改的补丁为:https://git.videolan.org/?p=ffmpeg.git;a=patch;h=effadce6c756247ea8bae32dc13bb3e6f464f0ebg
根据修改指引,把对应- + 的代码段进行修改即可。
编译还是报错,新版本有另外的问题 关于html文件
makeinfo: error parsing ./doc/t2h.pm: Undefined subroutine &Texinfo::Config::set_from_init_file called at ./doc/t2h.pm line 24.
make: *** [doc/Makefile:70: doc/ffmpeg.html] Error 1
--disable-htmlpages
还有其他选项可供选择:
Documentation options:
--disable-doc do not build documentation
--disable-htmlpages do not build HTML documentation pages
--disable-manpages do not build man documentation pages
--disable-podpages do not build POD documentation pages
--disable-txtpages do not build text documentation pages