Skip to content
Snippets Groups Projects
Commit 2a88d249 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review
Browse files

Merge "Convert to int before adding negative numbers" into nextgenv2

parents f9490ff5 87061823
No related branches found
No related tags found
2 merge requests!6Rav1e 11 yushin 1,!3Rav1e 10 yushin
......@@ -213,8 +213,8 @@ struct lookahead_entry *av1_lookahead_peek(struct lookahead_ctx *ctx,
} else if (index < 0) {
// Backward peek
if (-index <= MAX_PRE_FRAMES) {
index += ctx->read_idx;
if (index < 0) index += ctx->max_sz;
index += (int)(ctx->read_idx);
if (index < 0) index += (int)(ctx->max_sz);
buf = ctx->buf + index;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment