zmwangx / rust-ffmpeg

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

Build error ffmpeg-next 7.0.1 pixel.rs #186

Open iDevPro opened 1 month ago

iDevPro commented 1 month ago

Hello, i have a trouble with compile project which use ffmpeg-next 7.0.1 dependency (fotema) The build failed when build ffmpeg-next/src/util/format/pixel.rs with next error:

       not covered
    = note: the matched value is of type `sys::AVPixelFormat`
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
    |
824 ~             AV_PIX_FMT_GBRAP14LE => Pixel::GBRAP14LE,
825 ~             sys::AVPixelFormat::AV_PIX_FMT_NV15 | sys::AVPixelFormat::AV_PIX_FMT_NV20NP => todo!(),
    |

For more information about this error, try `rustc --explain E0004`.
error: could not compile `ffmpeg-next` (lib) due to 1 previous error

at first glance, this file does not contain the necessary code about pix formats AV_PIX_FMT_NV15 and AV_PIX_FMT_NV20NP

gopower commented 1 week ago

image