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)?; }