Perform keyframe checking and masking of offsets table

This commit is contained in:
collinsmith 2020-10-05 10:51:06 -07:00
parent fac0f9fd5d
commit db97517cd2

View File

@ -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('[');