Changed to static test image

This commit is contained in:
Oliver Atkinson 2023-09-05 08:30:05 -06:00
parent 0f3c3453ac
commit bd7cc019cf

View File

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