Open A11en1verson opened 3 years ago
sysclock= c->cmnvars->start_pts + (tickcur - c->cmnvars->start_tick) * c->speed / 100; scdiff = (int)(sysclock - c->cmnvars->vpts - c->tickavdiff); avdiff = (int)(c->cmnvars->apts - c->cmnvars->vpts - c->tickavdiff); avdiff = c->cmnvars->apts <= 0 ? scdiff : avdiff; 这里虽然有处理根据系统时间来判断,但是播放出来的效果是快进的。
麻烦提供你的测试视频文件
sysclock= c->cmnvars->start_pts + (tickcur - c->cmnvars->start_tick) * c->speed / 100; scdiff = (int)(sysclock - c->cmnvars->vpts - c->tickavdiff); avdiff = (int)(c->cmnvars->apts - c->cmnvars->vpts - c->tickavdiff); avdiff = c->cmnvars->apts <= 0 ? scdiff : avdiff; 这里虽然有处理根据系统时间来判断,但是播放出来的效果是快进的。