diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e92f31b..682e7b3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 diff --git a/src/main/java/com/phono/srtplight/RTPProtocolImpl.java b/src/main/java/com/phono/srtplight/RTPProtocolImpl.java index 4af50e6..646548c 100644 --- a/src/main/java/com/phono/srtplight/RTPProtocolImpl.java +++ b/src/main/java/com/phono/srtplight/RTPProtocolImpl.java @@ -299,8 +299,9 @@ protected void parsePacket(DatagramPacket dp) throws IOException { offs+=2; Log.verb("skip an extension 0x"+Integer.toHexString(extype)+" length "+exlen); extens = new byte[4*exlen]; - pb.get(offs,extens); - offs += extens.length; + for (int i=0;i