From 7dea7416cdedf3017b256cc76e65e59609345dbb Mon Sep 17 00:00:00 2001 From: T H Panton Date: Fri, 2 Aug 2024 12:32:20 +0100 Subject: [PATCH] faff with bytebuffer.get --- .github/workflows/maven.yml | 2 +- src/main/java/com/phono/srtplight/RTPProtocolImpl.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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