X-Git-Url: https://git.nihav.org/?p=nihav-tool.git;a=blobdiff_plain;f=src%2Fmain.rs;h=87c718cf11a4823c1c4ce1682bbe8561698f5eee;hp=c1f44281ed156e8155a19d1085c85ac594d10652;hb=cdaf544509bb2aa1827b27c498c64fae7c230b07;hpb=cd9ece3c2316fe74631e33347328dfe3d8d21a65 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"); }