mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-21 23:27:29 +00:00
Fixed: JLayer stripping last byte of MP3 data
This commit is contained in:
@@ -66,6 +66,7 @@ All notable changes to this project will be documented in this file.
|
||||
- [#2464] SVG export - minimum stroke width of 1 px
|
||||
- [#2405] Incorrect saving tags after Cloning / Copy-pasting
|
||||
- [#1646] Scrolling in Error log frame inside log texts
|
||||
- JLayer stripping last byte of MP3 data
|
||||
|
||||
## [23.0.1] - 2025-05-16
|
||||
### Fixed
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -17,9 +17,7 @@ public class MarkingPushbackInputStream extends PushbackInputStream {
|
||||
public long getPosition() {
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public MarkingPushbackInputStream(InputStream in, int size) {
|
||||
super(in, size);
|
||||
is = new PushbackInputStream(in, size);
|
||||
@@ -47,22 +45,29 @@ public class MarkingPushbackInputStream extends PushbackInputStream {
|
||||
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
pos++;
|
||||
return is.read();
|
||||
int ret = is.read();
|
||||
if (ret > -1) {
|
||||
pos++;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read(byte[] b, int off, int len) throws IOException {
|
||||
|
||||
int ret = is.read(b, off, len);
|
||||
pos += ret;
|
||||
if (ret > -1) {
|
||||
pos += ret;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read(byte[] b) throws IOException {
|
||||
int ret = is.read(b);
|
||||
pos += ret;
|
||||
if (ret > -1) {
|
||||
pos += ret;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user