shithub: libvpx

Download patch

ref: 00207bc81247af208397ca31cb74f02fa7254dbc
parent: 018ffd385f09354b3bd86269168c2885f5b7c4f2
parent: 6367818c500291bcde56cd126dace3b825be924a
author: Jingning Han <jingning@google.com>
date: Wed Sep 5 10:30:19 EDT 2018

Merge "Increase encoder buffer for multi-layer ARFs"

--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -1099,7 +1099,7 @@
       // There's no codec control for multiple alt-refs so check the encoder
       // instance for its status to determine the compressed data size.
       data_sz = ctx->cfg.g_w * ctx->cfg.g_h * get_image_bps(img) / 8 *
-                (cpi->multi_arf_allowed ? 8 : 2);
+                (cpi->multi_arf_allowed || cpi->multi_layer_arf ? 8 : 2);
       if (data_sz < kMinCompressedSize) data_sz = kMinCompressedSize;
       if (ctx->cx_data == NULL || ctx->cx_data_sz < data_sz) {
         ctx->cx_data_sz = data_sz;