zmwangx / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
1.2k stars 195 forks source link

version 7.0.2 on Windows ffmpeng-7.0.1 AVColorSpace appears in non-detailed mode #197

Closed crt379 closed 4 days ago

crt379 commented 4 days ago

Please include as much info as possible to save me (solo maintainer helping for free) some time. A minimal, complete, and reproducible example is a must. Link to a gist if you don't feel like posting all the code inline. At the same time, please leave out unnecessary code so I don't need to wade through a hundred lines to get to the problematic part. Tell me your OS, FFmpeg version, etc. if there's even a slim chance of relevancy.

ffmeng: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z

     = note: the matched value is of type `sys::AVColorSpace`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
     |
61   ~             AVCOL_SPC_ICTCP => Space::ICTCP,
62   ~             sys::AVColorSpace::AVCOL_SPC_IPT_C2 | sys::AVColorSpace::AVCOL_SPC_YCGCO_RE | sys::AVColorSpace::AVCOL_SPC_YCGCO_RO => todo!(),
     |

error[E0004]: non-exhaustive patterns: `sys::AVOptionType::AV_OPT_TYPE_UINT` not covered

I saw that AVColorSpace in ffmpeng-sys-next has added these enums:

#[repr(i32)]
#[doc = " YUV colorspace type.\n These values match the ones defined by ISO/IEC 23091-2_2019 subclause 8.3."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVColorSpace {
    ...
    AVCOL_SPC_IPT_C2 = 15,
    #[doc = "< YCgCo-R, even addition of bits"]
    AVCOL_SPC_YCGCO_RE = 16,
    #[doc = "< YCgCo-R, odd addition of bits"]
    AVCOL_SPC_YCGCO_RO = 17,
    #[doc = "< Not part of ABI"]
    AVCOL_SPC_NB = 18,
}

I tried using ffmpeng-6.1.1 and had the same problem I tried using ffmpeng-7.0.0, problem solved