Propagate errors in Input::packets().
This commit is contained in:

committed by
Josh Holmer

parent
fa2b8d13ad
commit
05bad6e9e0
@ -45,7 +45,7 @@ fn main() -> Result<(), ffmpeg::Error> {
|
||||
Ok(())
|
||||
};
|
||||
|
||||
for (stream, packet) in ictx.packets() {
|
||||
for (stream, packet) in ictx.packets().filter_map(Result::ok) {
|
||||
if stream.index() == video_stream_index {
|
||||
decoder.send_packet(&packet)?;
|
||||
receive_and_process_decoded_frames(&mut decoder)?;
|
||||
|
Reference in New Issue
Block a user