ref: 65b08e23be250c053e60d49fadeaf5b2fe53e31e
parent: ad6429b9b53ca3afd18c55f2de3afb3e83c1d704
author: Luc Trudeau <ltrudeau@twoorioles.com>
date: Sun Sep 30 05:33:15 EDT 2018
Remove VLAs in recon.c
--- a/src/recon.c
+++ b/src/recon.c
@@ -1253,7 +1253,8 @@
t->tl_4x4_filter = filter_2d;
} else {
const enum Filter2d filter_2d = b->filter2d;
- coef (*tmp)[bw4 * bh4 * 16] = (coef (*)[bw4 * bh4 * 16]) t->scratch.compinter;
+ // Maximum super block size is 128x128
+ coef (*tmp)[128 * 128] = (coef (*)[128 * 128]) t->scratch.compinter;
int jnt_weight;
uint8_t *const seg_mask = t->scratch_seg_mask;
const uint8_t *mask;