Commit f067ee57 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/jpeg2000dwt: Move large arrays used in the test code away from the stack

This should avoid problems on systems with little stack space and fix some crashes
in fate

crash found-by: jamrial
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8428e2c5
......@@ -700,11 +700,12 @@ static int test_dwtf(float *array, float *ref, uint16_t border[2][2], int decomp
return 0;
}
static int array[MAX_W * MAX_W];
static int ref [MAX_W * MAX_W];
static float arrayf[MAX_W * MAX_W];
static float reff [MAX_W * MAX_W];
int main(void) {
int array[MAX_W * MAX_W];
int ref [MAX_W * MAX_W];
float arrayf[MAX_W * MAX_W];
float reff [MAX_W * MAX_W];
AVLFG prng;
int i,j;
uint16_t border[2][2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment