From a319c93c35587d7c2fd7a90fbd3c9e2c66f15f4e Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 24 Mar 2020 14:48:27 +0100 Subject: [PATCH] check end PTS only for packets that are decoded --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5