]> git.nihav.org Git - nihav-tool.git/commitdiff
check end PTS only for packets that are decoded
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 24 Mar 2020 13:48:27 +0000 (14:48 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 24 Mar 2020 13:48:27 +0000 (14:48 +0100)
src/main.rs

index 71ccda6490e4ccf8a7ef0d73ff9efaae68818e67..bb6a7bc1c6fde740f353f0b5b10ef7fe9b3def87 100644 (file)
@@ -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");
 }