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