shithub: libvpx

Download patch

ref: 64e7f017cebd8282ffc865028f3a90457753f327
parent: 0defc2ddb3518f5395acf446fc0861dd1a4b5050
author: Deb Mukherjee <debargha@google.com>
date: Tue Apr 23 04:51:31 EDT 2013

Fix in token allocation with zerogroup expt

Fix to increase allocation of tokens at very high rates.

Change-Id: Ia27aa0316b0fab664230800f9c9947b5c68ecd58

--- a/vp9/common/vp9_onyxc_int.h
+++ b/vp9/common/vp9_onyxc_int.h
@@ -361,6 +361,10 @@
 }
 
 static int get_token_alloc(int mb_rows, int mb_cols) {
+#if CONFIG_CODE_ZEROGROUP
+  return mb_rows * mb_cols * (24 * 16 * 2);
+#else
   return mb_rows * mb_cols * (24 * 16 + 4);
+#endif
 }
 #endif  // VP9_COMMON_VP9_ONYXC_INT_H_