解决方案: 添加头文件-- #include "include/libswscale/swscale.h" 转载于:https://www.cnblogs.com/ouyangyuxi/p/4994117.html