diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-03-03 10:32:26 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-03-08 14:33:02 +0100 |
commit | 62de77ffcaebd42fe685b8426da56b89b2532318 (patch) | |
tree | a4e72748200b2393854057b05045c792b6fe5777 /libavcodec/vorbisdec.c | |
parent | 0f9f7969ef4df3661131cede3e8cc770e1ea3db8 (diff) | |
download | ffmpeg-62de77ffcaebd42fe685b8426da56b89b2532318.tar.gz |
vorbis: Use a local codebook variable
Makes the code a little simpler.
Diffstat (limited to 'libavcodec/vorbisdec.c')
-rw-r--r-- | libavcodec/vorbisdec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index 59c582b93e..e156c0814b 100644 --- a/libavcodec/vorbisdec.c +++ b/libavcodec/vorbisdec.c @@ -1307,14 +1307,15 @@ static av_always_inline int setup_classifs(vorbis_context *vc, unsigned ch_used, int partition_count) { + vorbis_codebook *codebook = vc->codebooks + vr->classbook; int p, j, i; - unsigned c_p_c = vc->codebooks[vr->classbook].dimensions; + unsigned c_p_c = codebook->dimensions; unsigned inverse_class = ff_inverse[vr->classifications]; unsigned temp, temp2; for (p = 0, j = 0; j < ch_used; ++j) { if (!do_not_decode[j]) { - temp = get_vlc2(&vc->gb, vc->codebooks[vr->classbook].vlc.table, - vc->codebooks[vr->classbook].nb_bits, 3); + temp = get_vlc2(&vc->gb, codebook->vlc.table, + codebook->nb_bits, 3); av_dlog(NULL, "Classword: %u\n", temp); |