Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-04-06 01:43:31 +0400
committerDiego Biurrun <diego@biurrun.de>2013-04-10 15:32:04 +0400
commit20429ba96e55db17ac57f6c0e330914287f1f614 (patch)
tree0168bc5616d74f986e1dd113f467ad3e58ff4117 /libavcodec/h261enc.c
parent8a776ad90e00ab2b98e8683ac6182d641a383c3a (diff)
h261: Move encoder/decoder shared table init to common code
Diffstat (limited to 'libavcodec/h261enc.c')
-rw-r--r--libavcodec/h261enc.c7
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;