[转载] FFmpeg 错误 C4996: ‘avcodec_alloc_frame’: 被声明为已否决 解决方法

在 Visual Studio 2013 下编写 FFmpeg 程序时出错,错误如下:
技术分享

出错代码如下:
技术分享

解决方法为:
将 avcodec_alloc_frame() 替换为 av_frame_alloc()

 

转自:http://www.itechzero.com/ffmpeg-error-c4996-avcodec_alloc_frame-is-deprecated-solution.html

文章来自:http://www.cnblogs.com/iZander/p/5687843.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3