ref: 7ecf3bc91c1773902bd645655213d1c592251707
parent: a1123538a532c887cacb514c375c0c8e9d90b828
author: Frank Galligan <fgalligan@google.com>
date: Wed Dec 4 17:21:00 EST 2013
Fix ref count decrement code. Buffer 0 would never be decremented, so it could only be used once. Change-Id: I605d99fa2a513eadae6a0e230161729880653282
--- a/vp9/common/vp9_onyxc_int.h
+++ b/vp9/common/vp9_onyxc_int.h
@@ -240,7 +240,7 @@
static void ref_cnt_fb(int *buf, int *idx, int new_idx) {
const int ref_index = *idx;
- if (ref_index > 0 && buf[ref_index] > 0)
+ if (ref_index >= 0 && buf[ref_index] > 0)
buf[ref_index]--;
*idx = new_idx;
--
⑨