From bd7cc019cf6d6616d36f60126c533cfc2686245d Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Tue, 5 Sep 2023 08:30:05 -0600 Subject: [PATCH] Changed to static test image --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f4a9d31..14d1a43 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,6 @@ #![feature(iter_array_chunks)] +#![feature(error_generic_member_access)] +#![feature(provide_any)] extern crate ffmpeg_next as ffmpeg; @@ -17,7 +19,7 @@ fn main() -> Result<(), Error> { ffmpeg::init()?; // read the input file - if let Ok(mut ictx) = input(&Path::new("output.mkv")) { + if let Ok(mut ictx) = input(&Path::new("rgb.png")) { let input = ictx .streams() @@ -69,6 +71,7 @@ fn main() -> Result<(), Error> { receive_and_process_decoded_frames(&mut decoder)?; } } + decoder.send_eof()?; receive_and_process_decoded_frames(&mut decoder)?; }