shithub: libvpx

Download patch

ref: 7de10a5f928dc7b62c61cbce58f476df27db4a00
parent: 8c82bda0b816b59c3caad5e0d814d3e519f6b39b
author: Jerome Jiang <jianj@google.com>
date: Thu Aug 9 14:47:02 EDT 2018

vp9: don't release buffer for current frame.

when resync is needed, we flush all frame buffers on key frame.

BUG=b/112406540
BUG=oss-fuzz:9722

Change-Id: Ie53feb12126f25877436eba40317400bf69c6207

--- 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);