在 Visual Studio 2013 下编写 FFmpeg 程序时出错,错误如下: 出错代码如下: 解决方法为:将 avcodec_alloc_frame() 替换为 av_frame_alloc()。 转自:http://www.itechzero.com/ffmpeg-error-c4996-avcodec_alloc_frame-is-deprecated-solution.html 转载于:https://www.cnblogs.com/iZander/p/5687843.html