|
本帖最后由 b8b41e3c 于 2022-4-28 22:56 编辑
ps:1.0.3的二进制问题依旧
原因是如下代码:
- p_param->i_height = ass->PlayResY;
- p_param->i_width = ass->PlayResX;
- if (!s_info->i_width || !s_info->i_height)
复制代码
当字幕里有PlayResY或PlayResX的时候,a*b的方式始终不起作用。
修复方法:将
- if (!s_info->i_width || !s_info->i_height)
- {
- if (sscanf(video_format,"%d*%d", &s_info->i_width, &s_info->i_height) != 2){
- fprintf(stderr, "Error: Invalid video_format (%s).\n", video_format);
- return 1;
- }
- }
复制代码 改为
- if (!(sscanf(video_format, "%d*%d", &s_info->i_width, &s_info->i_height) == 2 && s_info->i_width * s_info->i_height > 0)) {
- fprintf(stderr, "Error: Invalid video_format (%s).\n", video_format);
- return 1;
- }
复制代码 另外,按照github上的方法编译不是静态的,,该如何生成静态编译的成品呢?
|
|