[libbluray-devel] [Git][videolan/libbluray][master] FileInputStream: fix sign extended bytes in read()
Petri Hintukainen
gitlab at videolan.org
Tue Aug 18 17:53:10 CEST 2020
Petri Hintukainen pushed to branch master at VideoLAN / libbluray
Commits:
bc6150d2 by hpi1 at 2020-08-18T18:43:49+03:00
FileInputStream: fix sign extended bytes in read()
- - - - -
1 changed file:
- src/libbluray/bdj/java-j2se/java/io/FileInputStream.java
Changes:
=====================================
src/libbluray/bdj/java-j2se/java/io/FileInputStream.java
=====================================
@@ -139,7 +139,7 @@ public class FileInputStream extends InputStream
public int read() throws IOException {
byte b[] = new byte[1];
if (read(b) == 1)
- return b[0];
+ return ((int)b[0]) & 0xff;
return -1;
}
View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/bc6150d2048648fb6dfc7de41ce1d1cac6ee3c7c
--
View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/bc6150d2048648fb6dfc7de41ce1d1cac6ee3c7c
You're receiving this email because of your account on code.videolan.org.
More information about the libbluray-devel
mailing list