shithub: libvpx

Download patch

ref: a4cc75cd754a20176aef52e537b0ffeb2abc44c9
parent: 25ca4edf74151dcd871c4012ac9748831526f49f
parent: 7de10a5f928dc7b62c61cbce58f476df27db4a00
author: Jerome Jiang <jianj@google.com>
date: Mon Aug 13 18:25:53 EDT 2018

Merge "vp9: don't release buffer for current frame."

--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -1736,6 +1736,7 @@
     BufferPool *const pool = cm->buffer_pool;
     int i;
     for (i = 0; i < FRAME_BUFFERS; ++i) {
+      if (i == cm->new_fb_idx) continue;
       frame_bufs[i].ref_count = 0;
       if (!frame_bufs[i].released) {
         pool->release_fb_cb(pool->cb_priv, &frame_bufs[i].raw_frame_buffer);