Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

AVRounding can't be a rustified enum #83

Open
kornelski opened this issue Jul 1, 2020 · 2 comments
Open

AVRounding can't be a rustified enum #83

kornelski opened this issue Jul 1, 2020 · 2 comments

Comments

@kornelski
Copy link
Collaborator

The crate builds all enums as Rust enums (.rustified_enum("*")), but AVRounding is expected to be OR-ed together like AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX, which is not allowed (and UB if you tried anyway).

It could use the bitflags crate instead.

@maoyutofu
Copy link

I also encountered the same problem, but I don't know how to solve it.

@maoyutofu
Copy link

I am using it at work and hope to get help. @meh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants