From 20429ba96e55db17ac57f6c0e330914287f1f614 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 5 Apr 2013 23:43:31 +0200 Subject: h261: Move encoder/decoder shared table init to common code --- libavcodec/h261enc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libavcodec/h261enc.c') diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c index c866776a57..3ef7a7c6e1 100644 --- a/libavcodec/h261enc.c +++ b/libavcodec/h261enc.c @@ -313,12 +313,7 @@ void ff_h261_encode_mb(MpegEncContext *s, int16_t block[6][64], void ff_h261_encode_init(MpegEncContext *s) { - static int done = 0; - - if (!done) { - done = 1; - ff_init_rl(&ff_h261_rl_tcoeff, ff_h261_rl_table_store); - } + ff_h261_common_init(); s->min_qcoeff = -127; s->max_qcoeff = 127; -- cgit v1.2.3