编译直接打印Segmentation fault
来源:5-8 FFmpeg打印音视频Meta信息

xiongliang120
2018-09-27
写回答
2回答
-
xiongliang120
提问者
2018-09-28
#include<libavformat/avformat.h>
#include<libavutil/log.h>
int main(int argc,char * argv[])
{
AVFormatContext *fmt_cxt;
int ret;
av_log_set_level(AV_LOG_INFO);
av_register_all();
ret = avformat_open_input(&fmt_cxt,"./a.ts",NULL,NULL);
if(ret<0)
{
av_log(NULL,AV_LOG_INFO,"read fail");
return -1;
}
av_dump_format(fmt_cxt,0,"./a.ts",0);
avformat_close_input(&fmt_cxt);
return 0;
}022018-09-28 -
李超
2018-09-28
把你的程序贴出来哈,否则我无法判断是什么问题。
00
相似问题
Segmentation fault
回答 2
编译出错
回答 1