shithub: libvpx

Download patch

ref: bac6c229e5d14c1c972a65dfa5c4eef73651386d
parent: e59d53e999af2098e9d3690ec6d396c19a8150b4
author: James Berry <jamesberry@google.com>
date: Mon Oct 24 07:50:27 EDT 2011

Fix: Increase default cx_data_size

Prior size could be too small in some instances
resulting in an error.

Change-Id: Ic601e49cbae92c98a0e7fb51ba8c186b352ffba6

--- a/vp8/vp8_cx_iface.c
+++ b/vp8/vp8_cx_iface.c
@@ -560,7 +560,7 @@
 
         priv->cx_data_sz = priv->cfg.g_w * priv->cfg.g_h * 3 / 2 * 2;
 
-        if (priv->cx_data_sz < 4096) priv->cx_data_sz = 4096;
+        if (priv->cx_data_sz < 32768) priv->cx_data_sz = 32768;
 
         priv->cx_data = malloc(priv->cx_data_sz);
 
--