mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-10 19:08:14 +07:00
Perform keyframe checking and masking of offsets table
This commit is contained in:
parent
fac0f9fd5d
commit
db97517cd2
@ -119,6 +119,13 @@ public class BIK {
|
||||
video = new BinkVideo();
|
||||
|
||||
offsets = BitUtils.readSafe32u(in, numFrames + 1);
|
||||
for (int i = 0; i <= numFrames; i++) {
|
||||
boolean keyframe = (offsets[i] & 1) == 1;
|
||||
if (keyframe) {
|
||||
offsets[i] &= ~1;
|
||||
}
|
||||
}
|
||||
|
||||
if (log.traceEnabled()) {
|
||||
StringBuilder builder = new StringBuilder(256);
|
||||
builder.append('[');
|
||||
|
Loading…
Reference in New Issue
Block a user