rockcarry / fanplayer

A portable video player based on ffmpeg for windows and android platform.
GNU Lesser General Public License v3.0
617 stars 163 forks source link

对没有音频的文件播放帧率控制 #44

Open A11en1verson opened 3 years ago

A11en1verson commented 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; 这里虽然有处理根据系统时间来判断,但是播放出来的效果是快进的。

rockcarry commented 3 years ago

麻烦提供你的测试视频文件