summaryrefslogtreecommitdiff
path: root/libavcodec/h261enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-11 14:48:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-11 14:48:27 +0200
commit5ec016ad0b29beecc663fbc746b10a970cf341d2 (patch)
treeda4c2a4963ecc41af9afa18a82a4e014e161f8db /libavcodec/h261enc.c
parentab4afcb85b3ac23da3bce7fd9bc70d11b8bb28a4 (diff)
parent20429ba96e55db17ac57f6c0e330914287f1f614 (diff)
downloadffmpeg-5ec016ad0b29beecc663fbc746b10a970cf341d2.tar.gz
Merge commit '20429ba96e55db17ac57f6c0e330914287f1f614'
* commit '20429ba96e55db17ac57f6c0e330914287f1f614': h261: Move encoder/decoder shared table init to common code Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 23b8964dcc..84a8816022 100644
--- a/libavcodec/h261enc.c
+++ b/libavcodec/h261enc.c
@@ -314,12 +314,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;