shithub: libvpx

Download patch

ref: deca8cfc4461187a0dcc2fe588c983897b87aa7e
parent: db67dcba6a0f10b79b261b9f7ba084b3d937c2bc
author: Adrian Grange <agrange@google.com>
date: Fri Jun 24 04:43:40 EDT 2011

Fixed initialization of frame buffer ref counters

Only the first frame buffer ref counter was being initialized
because the index was fixed at 0 rather than using i.

Change-Id: Ib842298be4a5e3607f9e21c2cd4bfbee4054ffc4

--- a/vp8/common/alloccommon.c
+++ b/vp8/common/alloccommon.c
@@ -70,7 +70,7 @@
 
     for (i = 0; i < NUM_YV12_BUFFERS; i++)
     {
-        oci->fb_idx_ref_cnt[0] = 0;
+        oci->fb_idx_ref_cnt[i] = 0;
         oci->yv12_fb[i].flags = 0;
         if (vp8_yv12_alloc_frame_buffer(&oci->yv12_fb[i], width, height, VP8BORDERINPIXELS) < 0)
         {
--