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/h261.c | |
parent | 8a776ad90e00ab2b98e8683ac6182d641a383c3a (diff) | |
download | ffmpeg-20429ba96e55db17ac57f6c0e330914287f1f614.tar.gz |
h261: Move encoder/decoder shared table init to common code
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 f1b88001ea..b9783f1510 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; +} |