rust-ffmpeg icon indicating copy to clipboard operation
rust-ffmpeg copied to clipboard

Instant panic on init

Open n1ght-hunter opened this issue 3 years ago • 1 comments

When calling ffmpeg-next::init a panic is called if the dll aren't available. This seems counter intuitive since a result is returned but ignored. This is a simple example.

fn main() {
    if let Err(e) = ffmpeg_next::init() {
        panic!("Error initializing ffmpeg: {}", e);
    }
}

this would panic with error: process didn't exit successfully: 'target\debug\ffmpeg-testing.exe' (exit code: 0xc0000139, STATUS_ENTRYPOINT_NOT_FOUND)

Ffmpeg version: Version: 6.0-full_build

ffmpeg-next: "6.0.0"

n1ght-hunter avatar Apr 15 '23 07:04 n1ght-hunter

C:\Users\Brandon\Desktop\vcpkg\installed\x64-windows-release\bin
image

these if you installed with vcpkg on windows

dupe of https://github.com/zmwangx/rust-ffmpeg/issues/119

brandonros avatar May 25 '23 03:05 brandonros