FFmpeg错误
a parenthesized type followed by an initializer list is a non-standard explicit type convers
error C4576: 后跟初始值设定项列表的带圆括号类型是一个非标准的显式类型转换语法
查看原代码
/**
Convenience macro, the return value should be used only directly in
function arguments but never stand-alone.
方便的宏,返回值只能直接在函数参数中使用,而不能单独使用
*/
#define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)
解决方案
在调用该函数的文件开始加上以下代码:
char av_ts_buff[AV_TS_MAX_STRING_SIZE] = { 0 };
#define av_ts2timestr(ts, tb) av_ts_make_time_string(av_ts_buff, ts, tb)