Mercurial > mplayer.hg
changeset 23099:368a15ab768d
Remove large automatics from stack.
patch by Marc Hoffman, mmh pleasantst com
author | diego |
---|---|
date | Thu, 26 Apr 2007 11:05:59 +0000 |
parents | 138d0a814e89 |
children | 23fb118dc55a |
files | libswscale/swscale-example.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale-example.c Thu Apr 26 10:36:59 2007 +0000 +++ b/libswscale/swscale-example.c Thu Apr 26 11:05:59 2007 +0000 @@ -196,11 +196,11 @@ #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;