diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-04-05 23:43:31 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-04-10 13:32:04 +0200 |
commit | 20429ba96e55db17ac57f6c0e330914287f1f614 (patch) | |
tree | 0168bc5616d74f986e1dd113f467ad3e58ff4117 /libavcodec/h261enc.c | |
parent | 8a776ad90e00ab2b98e8683ac6182d641a383c3a (diff) | |
download | ffmpeg-20429ba96e55db17ac57f6c0e330914287f1f614.tar.gz |
h261: Move encoder/decoder shared table init to common code
Diffstat (limited to 'libavcodec/h261enc.c')
-rw-r--r-- | libavcodec/h261enc.c | 7 |
1 files changed, 1 insertions, 6 deletions
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; |