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

codec/h264: remove generic argument from NaluReader #51

Merged
merged 4 commits into from
Oct 24, 2023
Merged

Conversation

Gnurou
Copy link
Collaborator

@Gnurou Gnurou commented Sep 25, 2023

NaluReaders are always short-lived and want to work with a reference, so we can just build them with it and simplify the code.

NaluReaders are always short-lived and want to work with a reference, so
we can just build them with it and simplify the code.
The data member does not need to be owned - it can simply be borrowed
as a slice. Change that type to remove a generic argument (and introduce
a lifetime), which simplifies the code a bit.
The bitstream member does not need to be owned - it can simply be
borrowed as a slice. Change that type to remove a generic argument (and
introduce a lifetime), which simplifies the code a bit.
The bitstream member does not need to be owned - it can simply be
borrowed as a slice. Change that type to remove a generic argument (and
introduce a lifetime), which simplifies the code a bit.
@Gnurou
Copy link
Collaborator Author

Gnurou commented Oct 13, 2023

@dwlsalmeida do you think this can be merged?

@dwlsalmeida
Copy link
Collaborator

@Gnurou Yes, this looks good to me!

@Gnurou Gnurou merged commit bfbf4e0 into main Oct 24, 2023
2 checks passed
@Gnurou Gnurou deleted the nalureader branch February 16, 2024 08:09
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