diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-08-04 13:03:12 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-08-04 13:03:12 +0000 |
commit | 940e4bf9b9fcca463f804a3b847e94b97a7b858c (patch) | |
tree | 1f32d34717a4a9922828da5a436bf4f13653d411 /libavcodec/dnxhddec.c | |
parent | 035bc6470d4c6edecdf3b217ce58e80a4979d831 (diff) | |
download | ffmpeg-940e4bf9b9fcca463f804a3b847e94b97a7b858c.tar.gz |
10l, use correct cid table
Originally committed as revision 9898 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dnxhddec.c')
-rw-r--r-- | libavcodec/dnxhddec.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index e60b3e3f0c..64be3b905f 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxhddec.c @@ -115,23 +115,23 @@ static int dnxhd_init_vlc(DNXHDContext *ctx, int cid) } 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); } |