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