]> granicus.if.org Git - libvpx/commitdiff
get_ref_frame: fix test for valid buffer.
authorAdrian Grange <agrange@google.com>
Thu, 14 Aug 2014 19:42:11 +0000 (12:42 -0700)
committerAdrian Grange <agrange@google.com>
Thu, 14 Aug 2014 19:42:11 +0000 (12:42 -0700)
In the current implementation of the encoder,
frame buffers may come from the wider set of
12 such buffers, and is not restricted to the
8 allowed as reference frames. This is only
an implementation detail and does not affect
the constraint of having a total of 8 reference
buffers overall.

Change-Id: I075f777146c2df49c275d89232933f8127235175

vp9/common/vp9_onyxc_int.h

index dff077c112c0111051091510501a45dcd1eed0d0..777f2819fb070c096946bec1b2f28bc5c608d9b0 100644 (file)
@@ -207,7 +207,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;
 }