shithub: libvpx

Download patch

ref: da5054c5af4d8da16492f670ca023a334559021e
parent: a37ee9d2e8b9b7cf33455af60bcd9312dc898126
author: John Koleszar <jkoleszar@google.com>
date: Wed May 8 12:15:54 EDT 2013

Fix token allocation for non-4:2:0

Increase the allocated size of the token array to support 4:4:4.

Change-Id: I7766a7bedc74b819dcc1f3622d634f340fd3186d

--- a/vp9/common/vp9_onyxc_int.h
+++ b/vp9/common/vp9_onyxc_int.h
@@ -329,6 +329,6 @@
 }
 
 static int get_token_alloc(int mb_rows, int mb_cols) {
-  return mb_rows * mb_cols * (24 * 16 + 4);
+  return mb_rows * mb_cols * (48 * 16 + 4);
 }
 #endif  // VP9_COMMON_VP9_ONYXC_INT_H_