From 3980ab12b728fb8e14fc3a54dcd4336336a25422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Mon, 1 Sep 2014 23:08:56 +0200 Subject: rangecoder-test: Allow running with small stack size. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger --- libavcodec/rangecoder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavcodec/rangecoder.c') diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c index 69150a53bd..29fb909668 100644 --- a/libavcodec/rangecoder.c +++ b/libavcodec/rangecoder.c @@ -120,11 +120,12 @@ int ff_rac_terminate(RangeCoder *c) #include "libavutil/lfg.h" #include "libavutil/log.h" +static uint8_t b[9 * SIZE]; +static uint8_t r[9 * SIZE]; + int main(void) { RangeCoder c; - uint8_t b[9 * SIZE]; - uint8_t r[9 * SIZE]; int i; uint8_t state[10]; AVLFG prng; -- cgit v1.2.3