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

Test that Unmarshal doesn't do any allocations #267

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

jech
Copy link
Member

@jech jech commented Apr 15, 2024

The various Unmarshal functions are low-level functions that
should not do any extensive parsing. Anything that requires
allocations should be done in a user-callable function so that
applications can call Unmarshal without concern for efficiency.

@jech
Copy link
Member Author

jech commented Apr 15, 2024

This currently fails for H264, H265 and AV1. If either #265 or #266 gets applied, it will pass for AV1. Once that happens, I'll fix H264 and H265.

@jech
Copy link
Member Author

jech commented Apr 15, 2024

If #266 and #268 are applied, this passes for AV1 and H.264. I'm not going to fix H.265, since I'm not interested in single-platform codecs.

Assert that H264, VP8, VP9 and AV1 don't do any allocation. At this time
H265 does allocate.
@Sean-Der Sean-Der merged commit 12646b6 into pion:master Apr 23, 2024
9 of 12 checks passed
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