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

Non-exhaustive patterns #101

Closed
ajsyp opened this issue Nov 29, 2017 · 1 comment
Closed

Non-exhaustive patterns #101

ajsyp opened this issue Nov 29, 2017 · 1 comment

Comments

@ajsyp
Copy link
Contributor

ajsyp commented Nov 29, 2017

My Cargo.toml pulls in rust-ffmpeg in this way:

[dependencies.ffmpeg]
git = "https://github.com/meh/rust-ffmpeg.git"
features = ["build"]

However, building the project (cargo build) fails with these errors:

$ cargo build
    Updating git repository `https://github.com/meh/rust-ffmpeg.git`
   ...
   Compiling ffmpeg v0.2.0-alpha.2 (https://github.com/meh/rust-ffmpeg.git#28b7a82a)
   ...
   Compiling ffmpeg-sys v3.4.0
warning: redundant linker flag specified for library `X11`

warning: redundant linker flag specified for library `X11`

warning: redundant linker flag specified for library `va`

warning: redundant linker flag specified for library `va`

warning: redundant linker flag specified for library `SDL2`

error[E0004]: non-exhaustive patterns: `AVCOL_SPC_CHROMA_DERIVED_NCL`, `AVCOL_SPC_CHROMA_DERIVED_CL` and `AVCOL_SPC_ICTCP` not covered
  --> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/util/color/space.rs:34:9
   |
34 |   match value {
   |         ^^^^^ patterns `AVCOL_SPC_CHROMA_DERIVED_NCL`, `AVCOL_SPC_CHROMA_DERIVED_CL` and `AVCOL_SPC_ICTCP` not covered

error[E0004]: non-exhaustive patterns: `AV_PIX_FMT_D3D11`, `AV_PIX_FMT_GRAY9BE`, `AV_PIX_FMT_GRAY9LE` and 5 more not covered
   --> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/util/format/pixel.rs:357:9
    |
357 |   match value {
    |         ^^^^^ patterns `AV_PIX_FMT_D3D11`, `AV_PIX_FMT_GRAY9BE`, `AV_PIX_FMT_GRAY9LE` and 5 more not covered

error[E0004]: non-exhaustive patterns: `AV_FRAME_DATA_CONTENT_LIGHT_LEVEL` and `AV_FRAME_DATA_ICC_PROFILE` not covered
  --> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/util/frame/side_data.rs:41:9
   |
41 |   match value {
   |         ^^^^^ patterns `AV_FRAME_DATA_CONTENT_LIGHT_LEVEL` and `AV_FRAME_DATA_ICC_PROFILE` not covered

error[E0004]: non-exhaustive patterns: `AV_CODEC_ID_BITPACKED`, `AV_CODEC_ID_MSCC`, `AV_CODEC_ID_SRGC` and 5 more not covered
   --> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/codec/id.rs:493:9
    |
493 |   match value {
    |         ^^^^^ patterns `AV_CODEC_ID_BITPACKED`, `AV_CODEC_ID_MSCC`, `AV_CODEC_ID_SRGC` and 5 more not covered

error[E0004]: non-exhaustive patterns: `AV_PKT_DATA_CONTENT_LIGHT_LEVEL` and `AV_PKT_DATA_A53_CC` not covered
  --> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/codec/packet/side_data.rs:37:9
   |
37 |   match value {
   |         ^^^^^ patterns `AV_PKT_DATA_CONTENT_LIGHT_LEVEL` and `AV_PKT_DATA_A53_CC` not covered

error: aborting due to 5 previous errors

error: Could not compile `ffmpeg`.

To learn more, run the command again with --verbose.

Any insight into what might be causing this?

@ajsyp
Copy link
Contributor Author

ajsyp commented Nov 29, 2017

This looks related to #97.

@meh meh closed this as completed in #102 Nov 29, 2017
tilpner pushed a commit to tilpner/rust-ffmpeg that referenced this issue Apr 26, 2023
tilpner pushed a commit to tilpner/rust-ffmpeg that referenced this issue Apr 26, 2023
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

No branches or pull requests

1 participant