diff options
author | Attila Nagy <attilanagy@google.com> | 2011-04-20 15:12:23 +0300 |
---|---|---|
committer | Attila Nagy <attilanagy@google.com> | 2011-04-20 15:26:55 +0300 |
commit | 43464e94edf3c6cb5792d5c2addb7e0ce1604d4c (patch) | |
tree | 0fd4b96f88c597b701233cf01f773f4c5c285d2b /vp8/common/alloccommon.c | |
parent | a9b465c5c9a35cb80e38d612bb63ba8d09c6855a (diff) | |
download | libvpx-43464e94edf3c6cb5792d5c2addb7e0ce1604d4c.tar libvpx-43464e94edf3c6cb5792d5c2addb7e0ce1604d4c.tar.gz libvpx-43464e94edf3c6cb5792d5c2addb7e0ce1604d4c.tar.bz2 libvpx-43464e94edf3c6cb5792d5c2addb7e0ce1604d4c.zip |
Do not copy data between encoder reference buffers.
Golden and ALT reference buffers were refreshed by copying from
the new buffer. Replaced this by index manipulation.
Also moved all the reference frame updates to one function for
easier tracking.
Change-Id: Icd3e534e7e2c8c5567168d222e6a64a96aae24a1
Diffstat (limited to 'vp8/common/alloccommon.c')
-rw-r--r-- | vp8/common/alloccommon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vp8/common/alloccommon.c b/vp8/common/alloccommon.c index edef36094..a1944ebda 100644 --- a/vp8/common/alloccommon.c +++ b/vp8/common/alloccommon.c @@ -65,9 +65,9 @@ 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; - - if (vp8_yv12_alloc_frame_buffer(&oci->yv12_fb[i], width, height, VP8BORDERINPIXELS) < 0) + oci->fb_idx_ref_cnt[0] = 0; + oci->yv12_fb[i].flags = 0; + if (vp8_yv12_alloc_frame_buffer(&oci->yv12_fb[i], width, height, VP8BORDERINPIXELS) < 0) { vp8_de_alloc_frame_buffers(oci); return 1; |