projects
/
nihav-tool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix lastpts handling
[nihav-tool.git]
/
src
/
main.rs
diff --git
a/src/main.rs
b/src/main.rs
index 02005904802e747076fcd6ccb05399974deff1f8..87c718cf11a4823c1c4ce1682bbe8561698f5eee 100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-83,7
+83,6
@@
fn main() {
}
let name = args[cur_arg].as_str();
cur_arg += 1;
}
let name = args[cur_arg].as_str();
cur_arg += 1;
-println!(" name = {} arg pos {}/{}", name, cur_arg, args.len());
if cur_arg < args.len() {
lastpts = Some(u64::from_str_radix(args[cur_arg].as_str(), 10).unwrap());
}
if cur_arg < args.len() {
lastpts = Some(u64::from_str_radix(args[cur_arg].as_str(), 10).unwrap());
}
@@
-163,7
+162,7
@@
panic!("decoder {} not found", info.get_name());
};
}
}
};
}
}
- if pkt.get_pts() != None &&
pkt.get_pts() =
= lastpts { break; }
+ if pkt.get_pts() != None &&
lastpts.is_some() && pkt.get_pts() >
= lastpts { break; }
}
//panic!("end");
}
}
//panic!("end");
}