undefined reference to `img_convert’的解决方法
来源:互联网 发布:医药行业大数据应用 编辑:程序博客网 时间:2024/05/16 00:29
ffmpeg4.0以上版本找不到img_convert,查了一下原因,才知道换成了sws_scale,
所以原来的
img_convert((AVPicture *)pFrameRGB, PIX_FMT_BGR24, (AVPicture*)pFrame,pCodecCtx->pix_fmt, pCodecCtx->width, pCodecCtx->height);
应该改成:
struct SwsContext *img_convert_ctx;if (img_convert_ctx == NULL){ img_convert_ctx = sws_getContext(pCodecCtx->width, pCodecCtx->height, pCodecCtx->pix_fmt, pCodecCtx->width, pCodecCtx->height, PIX_FMT_YUV420P, sws_flags, NULL, NULL, NULL); if (img_convert_ctx == NULL) { fprintf(stderr, "Cannot initialize the conversion context/n"); exit(1); }}sws_scale(pthis->img_convert_ctx, pthis->pFrame->data, pthis->pFrame->linesize, 0, pthis->pCodecCtx->height, pthis->pFrameRGB->data, pthis->pFrameRGB->linesize);
- undefined reference to `img_convert’的解决方法
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- undefined reference to错误的解决方法
- undefined reference to `ceilf'的解决方法
- undefined reference to错误的解决方法
- 关于将undefined reference to `*'的解决方法
- undefined reference to 'inflate' 错误的解决方法
- undefined reference to错误的解决方法
- undefined reference to错误的解决方法
- undefined reference to 错误的解决方法总结
- CFree “undefined reference to `__dyn_tls_init_callback'” 的解决方法
- undefined reference to 'pthread_create'的解决方法
- undefined reference to错误的解决方法
- undefined reference to error解决方法
- undefined reference to error解决方法
- 【链表】反转单链表
- 如何判断Access DataBase Engine for 2012是否安装
- std string 的常用使用
- vtk获取内存中图像数据
- c#环境变量设置
- undefined reference to `img_convert’的解决方法
- linux & 后台作业
- Python os._exit, sys.exit
- UILabel小结
- DataGridView的单元格内容即时更新方法
- linux下查看文件编码及修改编码
- ubuntu下解压缩zip,tar,tar.gz和tar.bz2文件
- 64位环境下解决apache对中文网址的支持问题
- Hibernate本地SQL查询SQLQuery