summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/svq1.c
diff options
context:
space:
mode:
authorRobin KAY <komadori@users.sourceforge.net>2002-12-22 00:35:04 +0000
committerRobin KAY <komadori@users.sourceforge.net>2002-12-22 00:35:04 +0000
commit614e17928e8f7b1bdc632fd934499cbfea165d8a (patch)
tree26887fbf9f785a69ec603c703ecda4650bbec829 /src/libffmpeg/libavcodec/svq1.c
parent1b71075127f7fdfad0c16cc8535cd2c2b4e01c3b (diff)
downloadxine-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.c5
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));