From: Kostya Shishkov Date: Thu, 6 Sep 2018 09:45:21 +0000 (+0200) Subject: fix lastpts handling X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=cdaf544509bb2aa1827b27c498c64fae7c230b07;p=nihav-tool.git fix lastpts handling --- diff --git a/src/main.rs b/src/main.rs index c1f4428..87c718c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -162,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"); }