Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

纯视频流时暂停再播放视频会卡一段时间 #10

Open
ddduvet opened this issue May 11, 2022 · 3 comments
Open

纯视频流时暂停再播放视频会卡一段时间 #10

ddduvet opened this issue May 11, 2022 · 3 comments

Comments

@ddduvet
Copy link

ddduvet commented May 11, 2022

原因似乎是decodeVideoThread的音视频同步代码里,
audio_pts = (av_gettime() - mVideoStartTime) / 1000000.0;
这行代码会导致audio_pts在每次暂停后都会重新从0开始计数

@ddduvet
Copy link
Author

ddduvet commented May 11, 2022

卡的时间等于视频已播放的时间

@wwt2
Copy link

wwt2 commented Apr 17, 2024

现在解决了吗?

@itopsoft
Copy link
Member

感谢反馈,已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants