mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-13 12:26:28 +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();
|
video = new BinkVideo();
|
||||||
|
|
||||||
offsets = BitUtils.readSafe32u(in, numFrames + 1);
|
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()) {
|
if (log.traceEnabled()) {
|
||||||
StringBuilder builder = new StringBuilder(256);
|
StringBuilder builder = new StringBuilder(256);
|
||||||
builder.append('[');
|
builder.append('[');
|
||||||
|
Loading…
Reference in New Issue
Block a user