# HG changeset patch # User bellard # Date 1050855412 0 # Node ID e0fc95a6eb4e52d5b57b0609ab0c551c74d454c4 # Parent b448d7c1721548032c4e6eaba5a556b81dbc3f2c fixed static init diff -r b448d7c17215 -r e0fc95a6eb4e dsputil.c --- a/dsputil.c Sun Apr 20 16:15:43 2003 +0000 +++ b/dsputil.c Sun Apr 20 16:16:52 2003 +0000 @@ -2489,26 +2489,28 @@ add_pixels_clamped_c(block, dest, line_size); } -void dsputil_init(DSPContext* c, AVCodecContext *avctx) +/* init static data */ +void dsputil_static_init(void) { - static int init_done = 0; int i; - if (!init_done) { - for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i; - for(i=0;idct_algo==FF_DCT_FASTINT) diff -r b448d7c17215 -r e0fc95a6eb4e dsputil.h --- a/dsputil.h Sun Apr 20 16:15:43 2003 +0000 +++ b/dsputil.h Sun Apr 20 16:16:52 2003 +0000 @@ -245,6 +245,7 @@ } DSPContext; +void dsputil_static_init(void); void dsputil_init(DSPContext* p, AVCodecContext *avctx); /** diff -r b448d7c17215 -r e0fc95a6eb4e utils.c --- a/utils.c Sun Apr 20 16:15:43 2003 +0000 +++ b/utils.c Sun Apr 20 16:16:52 2003 +0000 @@ -555,7 +555,7 @@ return; inited = 1; - //dsputil_init(); + dsputil_static_init(); } /* this can be called after seeking and before trying to decode the next keyframe */