Revision b2a51e3d

View differences:

libavcodec/vorbis_dec.c
594 594

  
595 595
            create_map(vc, i);
596 596

  
597
                /* codebook dim is for padding if codebook dim doesn't *
598
                 * divide order+1 then we need to read more data       */
599
                floor_setup->data.t0.lsp =
600
                    av_malloc((floor_setup->data.t0.order+1 + max_codebook_dim)
601
                              * sizeof(float));
602
                if (!floor_setup->data.t0.lsp)
603
                    return -1;
597
            /* codebook dim is for padding if codebook dim doesn't *
598
             * divide order+1 then we need to read more data       */
599
            floor_setup->data.t0.lsp =
600
                av_malloc((floor_setup->data.t0.order+1 + max_codebook_dim)
601
                          * sizeof(float));
602
            if (!floor_setup->data.t0.lsp)
603
                return -1;
604 604

  
605 605
#ifdef V_DEBUG /* debug output parsed headers */
606 606
            AV_DEBUG("floor0 order: %u\n", floor_setup->data.t0.order);
......
1107 1107
                }
1108 1108

  
1109 1109
                /* calculate linear floor value */
1110
                    q = exp((((amplitude*vf->amplitude_offset) /
1111
                              (((1 << vf->amplitude_bits) - 1) * sqrt(p + q)))
1112
                             - vf->amplitude_offset) * .11512925f);
1110
                q = exp((((amplitude*vf->amplitude_offset) /
1111
                          (((1 << vf->amplitude_bits) - 1) * sqrt(p + q)))
1112
                         - vf->amplitude_offset) * .11512925f);
1113 1113

  
1114 1114
                /* fill vector */
1115 1115
                do {

Also available in: Unified diff