From: Kostya Shishkov Date: Tue, 24 Mar 2020 13:48:27 +0000 (+0100) Subject: check end PTS only for packets that are decoded X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=a319c93c35587d7c2fd7a90fbd3c9e2c66f15f4e;p=nihav-tool.git check end PTS only for packets that are decoded --- diff --git a/src/main.rs b/src/main.rs index 71ccda6..bb6a7bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -237,8 +237,8 @@ panic!("decoder {} not found", info.get_name()); break; }, }; + if pkt.get_pts() != None && lastpts.is_some() && pkt.get_pts() >= lastpts { break; } } - if pkt.get_pts() != None && lastpts.is_some() && pkt.get_pts() >= lastpts { break; } } //panic!("end"); }