Browse code

enable a flexible lifetime

Originally committed as revision 24940 to svn://svn.ffmpeg.org/ffmpeg/trunk

Tobias Bindhammer authored on 2010/08/26 19:03:03
Showing 1 changed files
... ...
@@ -33,7 +33,6 @@
33 33
 #define DITHERSTEPS   8
34 34
 #define CHARSET_CHARS 256
35 35
 #define INTERLACED    1
36
-#define LIFETIME      4
37 36
 
38 37
 /* gray gradient */
39 38
 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,
241 241
     int a;
242 242
 
243 243
     int req_size;
244
-    int num_frames = LIFETIME;
244
+    int num_frames = c->mc_lifetime;
245 245
 
246 246
     int *charmap         = c->mc_charmap;
247 247
     uint8_t *colram      = c->mc_colram;