diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-04-17 14:09:56 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-04-17 14:09:56 +0000 |
commit | bd4110f99b6c4ce3a7fc134206404489dc8e41a6 (patch) | |
tree | 95f65ac0ae35b2dd652f1e6c3608a855b369b84c /libavcodec/wnv1.c | |
parent | 1d0036b01f1860fdead35a6efcdc1d0beb4c3269 (diff) | |
download | ffmpeg-bd4110f99b6c4ce3a7fc134206404489dc8e41a6.tar.gz |
Use new static VLC scheme in Indeo2, Musepack and WNV1 decoders
Originally committed as revision 18553 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wnv1.c')
-rw-r--r-- | libavcodec/wnv1.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/wnv1.c b/libavcodec/wnv1.c index 94240aba58..dc17e96659 100644 --- a/libavcodec/wnv1.c +++ b/libavcodec/wnv1.c @@ -129,15 +129,16 @@ static int decode_frame(AVCodecContext *avctx, static av_cold int decode_init(AVCodecContext *avctx){ WNV1Context * const l = avctx->priv_data; + static VLC_TYPE code_table[1 << CODE_VLC_BITS][2]; l->avctx = avctx; avctx->pix_fmt = PIX_FMT_YUV422P; - if(!code_vlc.table){ + code_vlc.table = code_table; + code_vlc.table_allocated = 1 << CODE_VLC_BITS; init_vlc(&code_vlc, CODE_VLC_BITS, 16, &code_tab[0][1], 4, 2, - &code_tab[0][0], 4, 2, INIT_VLC_USE_STATIC); - } + &code_tab[0][0], 4, 2, INIT_VLC_USE_NEW_STATIC); return 0; } |