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

Prevent psmfplayer from loading too many mpeg frames at once #5002

Merged
merged 2 commits into from
Jan 4, 2014

Conversation

unknownbrackets
Copy link
Collaborator

Fixes #4550 again. Before these changes, it fills the video buffer and discards audio data that doesn't fit. This worked before when audio data was immediately demuxed, but now that happens on first read.

Also, seems like psmfplayer doesn't bother selecting the proper video/audio streams, but I'm not sure...

Anyway, Naruto still works this way too.

Without the cap on adding too much data at once, there is a slight but noticeable pause after the first frame/audio samples, before the video continues playing. I left the cap generously high in case it affects compatibility, but this kills the pause for me.

-[Unknown]

It takes more time (slowing the start of the video), and gets us closer to
overflowing buffers and stuff.
This way we definitely won't overfill it.
hrydgard added a commit that referenced this pull request Jan 4, 2014
Prevent psmfplayer from loading too many mpeg frames at once
@hrydgard hrydgard merged commit f630d8f into hrydgard:master Jan 4, 2014
@unknownbrackets unknownbrackets deleted the mpeg-minor branch January 4, 2014 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants