From 6cd94998a4ebd23c7bc141b22b1e0973daf1ca38 Mon Sep 17 00:00:00 2001 From: Tobias Bindhammer Date: Thu, 26 Aug 2010 10:03:03 +0000 Subject: [PATCH] enable a flexible lifetime Originally committed as revision 24940 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/a64multienc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c index df76bd9b9e..d281b1a60b 100644 --- a/libavcodec/a64multienc.c +++ b/libavcodec/a64multienc.c @@ -33,7 +33,6 @@ #define DITHERSTEPS 8 #define CHARSET_CHARS 256 #define INTERLACED 1 -#define LIFETIME 4 /* gray gradient */ static const int mc_colors[5]={0x0,0xb,0xc,0xf,0x1}; @@ -241,7 +240,7 @@ static int a64multi_encode_frame(AVCodecContext *avctx, unsigned char *buf, int a; int req_size; - int num_frames = LIFETIME; + int num_frames = c->mc_lifetime; int *charmap = c->mc_charmap; uint8_t *colram = c->mc_colram;