Commit 0524b741 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer

correct lenght calculation for SE

parent 7128dc5c
......@@ -443,7 +443,7 @@ static uint32_t assess_se_option(struct aec_stream *strm)
len = UINT32_MAX;
break;
} else {
len += d * (d + 1) / 2 + state->block[i + 1];
len += d * (d + 1) / 2 + state->block[i + 1] + 1;
}
}
return len;
......
......@@ -138,9 +138,9 @@ int check_se(struct test_state *state)
state->out(tmp + size, 0, size);
state->out(tmp + 2 * size, 0, size);
state->out(tmp + 3 * size, 0, size);
state->out(tmp + 4 * size, 0, size);
state->out(tmp + 5 * size, 0, size);
state->out(tmp + 6 * size, 0, size);
state->out(tmp + 4 * size, 1, size);
state->out(tmp + 5 * size, 1, size);
state->out(tmp + 6 * size, 1, size);
state->out(tmp + 7 * size, 1, size);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment