mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Fix starting to read at wrong offset, now skips header
This commit is contained in:
parent
326b98d5e5
commit
6608f61353
@ -87,6 +87,11 @@ public final class VP8LDecoder {
|
||||
public void readVP8Lossless(final WritableRaster raster, final boolean topLevel) throws IOException {
|
||||
//https://github.com/webmproject/libwebp/blob/666bd6c65483a512fe4c2eb63fbc198b6fb4fae4/src/dec/vp8l_dec.c#L1114
|
||||
|
||||
//Skip past already read parts of header (signature, width, height, alpha, version) 5 Bytes in total
|
||||
if (topLevel) {
|
||||
imageInput.seek(imageInput.getStreamPosition() + 5);
|
||||
}
|
||||
|
||||
int xSize = raster.getWidth();
|
||||
int ySize = raster.getHeight();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user