]> granicus.if.org Git - libvpx/commitdiff
Fixed initialization of frame buffer ref counters
authorAdrian Grange <agrange@google.com>
Fri, 24 Jun 2011 15:43:40 +0000 (08:43 -0700)
committerAdrian Grange <agrange@google.com>
Fri, 24 Jun 2011 15:43:40 +0000 (08:43 -0700)
Only the first frame buffer ref counter was being initialized
because the index was fixed at 0 rather than using i.

Change-Id: Ib842298be4a5e3607f9e21c2cd4bfbee4054ffc4

vp8/common/alloccommon.c

index 216590cdcddcde7ef17c40ac26a5965bb6f95b54..376707ec64c678c19d75c7bea9a42b0a37f62d19 100644 (file)
@@ -70,7 +70,7 @@ int vp8_alloc_frame_buffers(VP8_COMMON *oci, int width, int height)
 
     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)
         {