From c1c08fe4ead4452e7465dad088f31e156efc0e97 Mon Sep 17 00:00:00 2001 From: T H Panton Date: Fri, 2 Aug 2024 12:17:09 +0100 Subject: [PATCH] null extentype as a way of knowing if exten info is current --- src/main/java/com/phono/srtplight/RTPProtocolImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/phono/srtplight/RTPProtocolImpl.java b/src/main/java/com/phono/srtplight/RTPProtocolImpl.java index e99d543..4af50e6 100644 --- a/src/main/java/com/phono/srtplight/RTPProtocolImpl.java +++ b/src/main/java/com/phono/srtplight/RTPProtocolImpl.java @@ -301,6 +301,8 @@ protected void parsePacket(DatagramPacket dp) throws IOException { extens = new byte[4*exlen]; pb.get(offs,extens); offs += extens.length; + } else { + extype = null; } int endhead = offs; // if padding set then last byte tells you how much to skip