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

fix: infinite read loop at end of some FFmpeg streams #24

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

protyposis
Copy link
Owner

When FFmpeg doesn't know from file metadata where a stream ends (e.g., MPEG transport streams), it tries to read until it reaches the end. To detect the end, it looks for a specific EOF code. Update the read function to return the EOF code instead of 0 (bytes read) and prevent FFmpeg from endlessly retrying to read.

@protyposis protyposis changed the title fix: infinite read loop at end of FFmpeg stream fix: infinite read loop at end of some FFmpeg streams Jan 26, 2024
@protyposis protyposis merged commit 6a99a85 into main Jan 26, 2024
3 checks passed
@protyposis protyposis deleted the feat/fix-ffmpeg-eof-loop branch January 26, 2024 20:01
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

Successfully merging this pull request may close these issues.

1 participant