diff --git a/Cargo.lock b/Cargo.lock index b130867..07b3ce7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1132,7 +1132,7 @@ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "ffmpeg-rs-raw" version = "0.1.0" -source = "git+https://git.v0l.io/Kieran/ffmpeg-rs-raw.git?rev=de2050cec07a095bace38d3ccf9c4c4f9b03b217#de2050cec07a095bace38d3ccf9c4c4f9b03b217" +source = "git+https://git.v0l.io/Kieran/ffmpeg-rs-raw.git?rev=128f204253d06ac3c23033ccc28970c8bb198081#128f204253d06ac3c23033ccc28970c8bb198081" dependencies = [ "anyhow", "ffmpeg-sys-the-third", diff --git a/Cargo.toml b/Cargo.toml index c392586..5fd2fb9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ infer = "0.16.0" tokio-util = { version = "0.7.13", features = ["io", "io-util"] } libc = { version = "0.2.153", optional = true } -ffmpeg-rs-raw = { git = "https://git.v0l.io/Kieran/ffmpeg-rs-raw.git", rev = "de2050cec07a095bace38d3ccf9c4c4f9b03b217", optional = true } +ffmpeg-rs-raw = { git = "https://git.v0l.io/Kieran/ffmpeg-rs-raw.git", rev = "128f204253d06ac3c23033ccc28970c8bb198081", optional = true } candle-core = { git = "https://git.v0l.io/huggingface/candle.git", tag = "0.8.1", optional = true } candle-nn = { git = "https://git.v0l.io/huggingface/candle.git", tag = "0.8.1", optional = true } candle-transformers = { git = "https://git.v0l.io/huggingface/candle.git", tag = "0.8.1", optional = true } diff --git a/src/processing/mod.rs b/src/processing/mod.rs index 57c747e..1d9104e 100644 --- a/src/processing/mod.rs +++ b/src/processing/mod.rs @@ -103,7 +103,7 @@ impl WebpProcessor { while let Ok((mut pkt, _stream)) = input.get_packet() { let mut frame_save: *mut AVFrame = ptr::null_mut(); - for mut frame in decoder.decode_pkt(pkt)? { + for (mut frame, _stream) in decoder.decode_pkt(pkt)? { if frame_save.is_null() { frame_save = sws.process_frame(frame, w, h, AV_PIX_FMT_YUV420P)?; }