Skip to content

Commit

Permalink
faff with bytebuffer.get
Browse files Browse the repository at this point in the history
  • Loading branch information
steely-glint committed Aug 2, 2024
1 parent 4ad74b2 commit 7dea741
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/phono/srtplight/RTPProtocolImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<extens.length;i++){
extens[i]= packet[offs++];
}
} else {
extype = null;
}
Expand Down

0 comments on commit 7dea741

Please sign in to comment.