Skip to content
Snippets Groups Projects
Commit 26cdb9a2 authored by Marc Hoffman's avatar Marc Hoffman Committed by Diego Biurrun
Browse files

Remove large automatics from stack.

patch by Marc Hoffman, mmh pleasantst com

Originally committed as revision 23117 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent 578688fa
No related branches found
No related tags found
No related merge requests found
......@@ -196,11 +196,11 @@ static void selfTest(uint8_t *src[3], int stride[3], int w, int h){
#define H 96
int main(int argc, char **argv){
uint8_t rgb_data[W*H*4];
uint8_t *rgb_data = malloc (W*H*4);
uint8_t *rgb_src[3]= {rgb_data, NULL, NULL};
int rgb_stride[3]={4*W, 0, 0};
uint8_t data[3][W*H];
uint8_t *src[3]= {data[0], data[1], data[2]};
uint8_t *data = malloc (3*W*H);
uint8_t *src[3]= {data, data+W*H, data+W*H*2};
int stride[3]={W, W, W};
int x, y;
struct SwsContext *sws;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment