-
Notifications
You must be signed in to change notification settings - Fork 207
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
solution for error in Windows: non-exhaustive patterns
#154
Comments
ffmpeg-sys-next v6.0.1
non-exhaustive patterns
non-exhaustive patterns
non-exhaustive patterns
non-exhaustive patterns
non-exhaustive patterns
It's related to what version of ffmpeg library you use. |
Hi! We just merged some things for ffmpeg 6.1 support - this should work for you now :) We're always lagging behind a bit for new releases, so that explains why windows (whose build downloads automatically the latest ffmpeg version) sometimes fails to compile. Hopefully we fixed it! |
@Polochon-street |
@thewh1teagle I remember it was a pain, and I'm not even sure I managed. It seems possible, but given that there all whole projects dedicated to that, I'm thinking shipping the dlls might be the easiest |
@Polochon-street |
@Polochon-street |
Thank you to both of you! <3 We migrated to GStreamer after encountering this specific issue, so I'm not certain if updating the version could resolve the error. :-( Again, thank you for this beautiful repo and your time ❤️ |
TL/DR: #155
First of all, thank you for this beautiful contribution. ❤️
I wanted to use rust-ffmpeg in one of my projects and it compiles on MAC without any problem. But when I try it on Windows 11 I get an error: 😢
I made the following implementations and my problem was solved: 🥳
src/util/format/pixel.rs
rust-ffmpeg/src/util/format/pixel.rs
Line 10 in 6b84927
I updated the Pixel enum to include all possible pixel formats like so:
Then, I updated the implementation of From for Pixel and From for AVPixelFormat to include these new enumerations.
In the id.rs file, I updated the Id enum and did a similar update for the From for Id and From for AVCodecID implementations:
src/codec/id.rs
rust-ffmpeg/src/codec/id.rs
Line 10 in 6b84927
after these implementations, all is okay now
happy coding. 😸
The text was updated successfully, but these errors were encountered: