Merge "get_ref_frame: fix test for valid buffer."
This commit is contained in:
commit
c5d8c1e785
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user