Merge "get_ref_frame: fix test for valid buffer."

This commit is contained in:
Adrian Grange 2014-08-15 10:41:28 -07:00 committed by Gerrit Code Review
commit c5d8c1e785

View File

@ -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;
}