diff options
author | Robin KAY <komadori@users.sourceforge.net> | 2002-12-22 00:35:04 +0000 |
---|---|---|
committer | Robin KAY <komadori@users.sourceforge.net> | 2002-12-22 00:35:04 +0000 |
commit | 614e17928e8f7b1bdc632fd934499cbfea165d8a (patch) | |
tree | 26887fbf9f785a69ec603c703ecda4650bbec829 /src/libffmpeg/libavcodec/svq1.c | |
parent | 1b71075127f7fdfad0c16cc8535cd2c2b4e01c3b (diff) | |
download | xine-lib-614e17928e8f7b1bdc632fd934499cbfea165d8a.tar.gz xine-lib-614e17928e8f7b1bdc632fd934499cbfea165d8a.tar.bz2 |
Make xine-lib compile with the SunPro compiler
CVS patchset: 3623
CVS date: 2002/12/22 00:35:04
Diffstat (limited to 'src/libffmpeg/libavcodec/svq1.c')
-rw-r--r-- | src/libffmpeg/libavcodec/svq1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libffmpeg/libavcodec/svq1.c b/src/libffmpeg/libavcodec/svq1.c index 86ebd7382..6abccf403 100644 --- a/src/libffmpeg/libavcodec/svq1.c +++ b/src/libffmpeg/libavcodec/svq1.c @@ -26,6 +26,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <alloca.h> #include "common.h" #include "avcodec.h" @@ -1136,7 +1137,9 @@ static int svq1_decode_frame(AVCodecContext *avctx, current += 16*linesize; } } else { - svq1_pmv_t pmv[width/8+3]; + svq1_pmv_t *pmv; + + pmv = alloca((width/8+3) * sizeof(svq1_pmv_t)); /* delta frame */ memset (pmv, 0, ((width / 8) + 3) * sizeof(svq1_pmv_t)); |