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

committed by
Josh Holmer

parent
fa2b8d13ad
commit
05bad6e9e0
@ -238,7 +238,7 @@ fn main() {
|
||||
ost_time_bases[ost_index] = octx.stream(ost_index as _).unwrap().time_base();
|
||||
}
|
||||
|
||||
for (stream, mut packet) in ictx.packets() {
|
||||
for (stream, mut packet) in ictx.packets().filter_map(Result::ok) {
|
||||
let ist_index = stream.index();
|
||||
let ost_index = stream_mapping[ist_index];
|
||||
if ost_index < 0 {
|
||||
|
Reference in New Issue
Block a user