void av_free_packet(AVPacket * pkt) Use void av_packet_unref(AVPacket * pkt) Wipe the packet. Unreference the buffer referenced by the packet and reset the remaining packet fields to their default values. Parameters pkt The packet to be unreferenced
升级Xcode9之后,工程中FFmpeg中的avutil.h下的AVMediaType与系统的AVFoundation框架冲突了. 报错信息:Typedef 'AVMediaType' cannot be referenced with a enum specifier xxx.... 解决方法:将FFmpeg的源码中的AVMediaType改个名字之后重新编译FFmpeg再导入工程即可编译通过. 具体方法可以使用linux下的sed命令,示例: sed -i '' "s/原字符串/修改字符串/