Changed to static test image
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
#![feature(iter_array_chunks)]
|
#![feature(iter_array_chunks)]
|
||||||
|
#![feature(error_generic_member_access)]
|
||||||
|
#![feature(provide_any)]
|
||||||
|
|
||||||
extern crate ffmpeg_next as ffmpeg;
|
extern crate ffmpeg_next as ffmpeg;
|
||||||
|
|
||||||
@@ -17,7 +19,7 @@ fn main() -> Result<(), Error> {
|
|||||||
ffmpeg::init()?;
|
ffmpeg::init()?;
|
||||||
|
|
||||||
// read the input file
|
// 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
|
let input = ictx
|
||||||
.streams()
|
.streams()
|
||||||
@@ -69,6 +71,7 @@ fn main() -> Result<(), Error> {
|
|||||||
receive_and_process_decoded_frames(&mut decoder)?;
|
receive_and_process_decoded_frames(&mut decoder)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
decoder.send_eof()?;
|
decoder.send_eof()?;
|
||||||
receive_and_process_decoded_frames(&mut decoder)?;
|
receive_and_process_decoded_frames(&mut decoder)?;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user