diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-11 14:48:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-11 14:48:27 +0200 |
commit | 5ec016ad0b29beecc663fbc746b10a970cf341d2 (patch) | |
tree | da4c2a4963ecc41af9afa18a82a4e014e161f8db /libavcodec/h261.c | |
parent | ab4afcb85b3ac23da3bce7fd9bc70d11b8bb28a4 (diff) | |
parent | 20429ba96e55db17ac57f6c0e330914287f1f614 (diff) | |
download | ffmpeg-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/h261.c')
-rw-r--r-- | libavcodec/h261.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/h261.c b/libavcodec/h261.c index efda3d03dd..9836905d93 100644 --- a/libavcodec/h261.c +++ b/libavcodec/h261.c @@ -79,3 +79,14 @@ void ff_h261_loop_filter(MpegEncContext *s) h261_loop_filter(dest_cb, uvlinesize); h261_loop_filter(dest_cr, uvlinesize); } + +av_cold void ff_h261_common_init(void) +{ + static int done = 0; + + if (done) + return; + + ff_init_rl(&ff_h261_rl_tcoeff, ff_h261_rl_table_store); + done = 1; +} |