Commit c5d8c1e7 authored by Adrian Grange's avatar Adrian Grange Committed by Gerrit Code Review
Browse files

Merge "get_ref_frame: fix test for valid buffer."

parents 715bab6e 89a213b4
......@@ -208,7 +208,7 @@ static INLINE YV12_BUFFER_CONFIG *get_ref_frame(VP9_COMMON *cm, int index) {
return NULL;
if (cm->ref_frame_map[index] < 0)
return NULL;
assert(cm->ref_frame_map[index] < REF_FRAMES);
assert(cm->ref_frame_map[index] < FRAME_BUFFERS);
return &cm->frame_bufs[cm->ref_frame_map[index]].buf;
Supports Markdown
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