]> granicus.if.org Git - libvpx/commitdiff
Fix: Increase default cx_data_size
authorJames Berry <jamesberry@google.com>
Mon, 24 Oct 2011 15:50:27 +0000 (11:50 -0400)
committerJames Berry <jamesberry@google.com>
Mon, 24 Oct 2011 15:50:27 +0000 (11:50 -0400)
Prior size could be too small in some instances
resulting in an error.

Change-Id: Ic601e49cbae92c98a0e7fb51ba8c186b352ffba6

vp8/vp8_cx_iface.c

index 1be7e337fc59592ca9f6eaae7cd560fcade6adbe..7260e942b1e0d6950c8a7f440d31d8553f9ec704 100644 (file)
@@ -560,7 +560,7 @@ static vpx_codec_err_t vp8e_init(vpx_codec_ctx_t *ctx)
 
         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);