现在的位置: 首页 > 综合 > 正文

ffmpeg新版与旧版数据结构不同 持续更新…..

2019年03月08日 ⁄ 综合 ⁄ 共 463字 ⁄ 字号 评论关闭

avcodec_init -> avcodec_register_all

av_open_input_file -> avformat_open_input

AVFormatContext.file_size -> avio_size()
URL_WRONLY -> AVIO_FLAG_WRITE
url_fopen -> avio_open
url_fclose -> avio_close
SAMPLE_FMT_U8 -> AV_SAMPLE_FMT_U8
SAMPLE_FMT_S16 -> AV_SAMPLE_FMT_S16
SAMPLE_FMT_S32 -> AV_SAMPLE_FMT_S32
SAMPLE_FMT_FLT -> AV_SAMPLE_FMT_FLT
FF_I_TYPE -> AV_PICTURE_TYPE_I

avcodec_decode_audio2 取缔 ,新版 avcodec_decode_audio3

宏CODEC_TYPE_VIDEO ->AVMEDIA_TYPE_VIDEO

img_convert->sws_scale

pstrcpy->av_strlcpy

抱歉!评论已关闭.