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

Support for io.EOF to C.AVERROR_EOF mapping #73

Merged
merged 2 commits into from
Sep 22, 2024

Conversation

daniel-sullivan
Copy link
Contributor

At present, there's no mapping between the io.EOF returned by os.File or most io.Reader implementations and the astiav / ffmpeg ErrEof (C.AVERROR_EOF).

This PR adds a mapping in the event io.EOF is returned by the custom reader implementation.

Copy link
Owner

@asticode asticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

Adding this mapping was my first instinct but I don't remember why I decided to remove it. Now this feels like a good idea 👍

io_context.go Outdated Show resolved Hide resolved
io_context_test.go Outdated Show resolved Hide resolved
@asticode asticode merged commit ff9ebd2 into asticode:master Sep 22, 2024
3 checks passed
@asticode
Copy link
Owner

Thanks again for the PR ❤️

Let me know whether you need a tag 👍

@daniel-sullivan
Copy link
Contributor Author

No worries! If I get a chance, I'll try and contribute an example for the audio FIFO implementation. Thank you for the great library!

No tag needed for now - we have a pretty easygoing policy of allowing go.mod to use commits rather than tags.

@daniel-sullivan daniel-sullivan deleted the eof-support branch September 23, 2024 23:17
asticode pushed a commit that referenced this pull request Oct 23, 2024
* Support for io.EOF to C.AVERROR_EOF mapping

* Requested changes
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.

2 participants