int Mp3Decoder::prepare() {
int ret=0;
//1 打开文件获取fmt_ctx(用于解封装)
if(avformat_open_input(&fmt_ctx,src_filename,NULL,NULL)<0){
fprintf(stderr, "Could not open source file %s\n", src_filename);
setErrorMsg("Could not open source file %s\n", src_filename);
return -1;
}
FFMPEG解码mp3到pcm
最新推荐文章于 2025-05-10 12:10:57 发布