我想将我的 int 值分配给 CMTime 类型变量
我希望这个代码像:
CMTime frameTime;
if (i == 0 && i == 1) {
frameTime = 0;//CMTimeMake(value, preferredTimeScale);
}
else if(i == 2) {
frameTime = 2;
}
else {
frameTime = 3;
}
append_ok = [adaptor appendPixelBuffer:buffer
withPresentationTime:frameTime];
代替:
int64_t value = 10000;
int32_t preferredTimeScale = 600;
frameTime = CMTimeMake(value, preferredTimeScale);
这可能吗?