Mercurial > libavcodec.hg
changeset 5465:6478c562c80f libavcodec
10l, use correct cid table
author | bcoudurier |
---|---|
date | Sat, 04 Aug 2007 13:03:12 +0000 |
parents | 75940bbbecfc |
children | 587b3e6c8d4f |
files | dnxhddec.c |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/dnxhddec.c Sat Aug 04 12:59:49 2007 +0000 +++ b/dnxhddec.c Sat Aug 04 13:03:12 2007 +0000 @@ -115,23 +115,23 @@ } ctx->cid_table = &cid_table[index]; init_vlc(&ctx->ac_vlc, DNXHD_VLC_BITS, 257, - cid_table->ac_bits, 1, 1, - cid_table->ac_codes, 2, 2, 0); + ctx->cid_table->ac_bits, 1, 1, + ctx->cid_table->ac_codes, 2, 2, 0); init_vlc(&ctx->dc_vlc, DNXHD_DC_VLC_BITS, 12, - cid_table->dc_bits, 1, 1, - cid_table->dc_codes, 1, 1, 0); + ctx->cid_table->dc_bits, 1, 1, + ctx->cid_table->dc_codes, 1, 1, 0); init_vlc(&ctx->run_vlc, DNXHD_VLC_BITS, 62, - cid_table->run_bits, 1, 1, - cid_table->run_codes, 2, 2, 0); + ctx->cid_table->run_bits, 1, 1, + ctx->cid_table->run_codes, 2, 2, 0); - ctx->run = cid_table->run; - ctx->ac_level = cid_table->ac_level; - ctx->ac_run_flag = cid_table->ac_run_flag; - ctx->ac_index_flag = cid_table->ac_index_flag; - ctx->luma_weigth = cid_table->luma_weigth; - ctx->chroma_weigth = cid_table->chroma_weigth; + ctx->run = ctx->cid_table->run; + ctx->ac_level = ctx->cid_table->ac_level; + ctx->ac_run_flag = ctx->cid_table->ac_run_flag; + ctx->ac_index_flag = ctx->cid_table->ac_index_flag; + ctx->luma_weigth = ctx->cid_table->luma_weigth; + ctx->chroma_weigth = ctx->cid_table->chroma_weigth; - ctx->index_bits = cid_table->index_bits; + ctx->index_bits = ctx->cid_table->index_bits; ff_init_scantable(ctx->dsp.idct_permutation, &ctx->scantable, ff_zigzag_direct); }