Android10报错:error: format specifies type ‘long long‘ but the argument has type ‘int64_t‘ (aka ‘long‘

解释:

占位符"%lld":指定类型为'long long'

但参数actualSeekTimeUs类型为int64_t实际类型:为long 

修改前:
ALOGI("nearest keyframe is at %lld us (%.2f secs)",actualSeekTimeUs, actualSeekTimeUs / 1E6);

修改后:
ALOGI("nearest keyframe is at %lld us (%.2f secs)",(long long)actualSeekTimeUs, actualSeekTimeUs / 1E6);

猜你喜欢

转载自blog.csdn.net/u010164190/article/details/125889171
今日推荐