mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '62de77ffcaebd42fe685b8426da56b89b2532318'
* commit '62de77ffcaebd42fe685b8426da56b89b2532318': vorbis: Use a local codebook variable Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
10e3e3aa85
|
@ -1325,14 +1325,15 @@ static av_always_inline int setup_classifs(vorbis_context *vc,
|
||||||
int ptns_to_read
|
int ptns_to_read
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
vorbis_codebook *codebook = vc->codebooks + vr->classbook;
|
||||||
int p, j, i;
|
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 inverse_class = ff_inverse[vr->classifications];
|
||||||
unsigned temp, temp2;
|
unsigned temp, temp2;
|
||||||
for (p = 0, j = 0; j < ch_used; ++j) {
|
for (p = 0, j = 0; j < ch_used; ++j) {
|
||||||
if (!do_not_decode[j]) {
|
if (!do_not_decode[j]) {
|
||||||
temp = get_vlc2(&vc->gb, vc->codebooks[vr->classbook].vlc.table,
|
temp = get_vlc2(&vc->gb, codebook->vlc.table,
|
||||||
vc->codebooks[vr->classbook].nb_bits, 3);
|
codebook->nb_bits, 3);
|
||||||
|
|
||||||
av_dlog(NULL, "Classword: %u\n", temp);
|
av_dlog(NULL, "Classword: %u\n", temp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue