]> granicus.if.org Git - libvpx/commitdiff
Fix token allocation for non-4:2:0
authorJohn Koleszar <jkoleszar@google.com>
Wed, 8 May 2013 23:15:54 +0000 (16:15 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 10 May 2013 03:22:59 +0000 (20:22 -0700)
Increase the allocated size of the token array to support 4:4:4.

Change-Id: I7766a7bedc74b819dcc1f3622d634f340fd3186d

vp9/common/vp9_onyxc_int.h

index 3e8bb15d94c874c2fb23266216bf5fc9b7f7af88..57f9978f4d644f897ca8f52f66bb3ca8478189eb 100644 (file)
@@ -329,6 +329,6 @@ static int get_mi_col(const MACROBLOCKD *xd) {
 }
 
 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_