Revision 6d173dae

View differences:

libavcodec/vorbis_dec.c
568 568
            /* zero would result in a div by zero later *
569 569
             * 2^0 - 1 == 0                             */
570 570
            if (floor_setup->data.t0.amplitude_bits == 0) {
571
              av_log(vc->avccontext, AV_LOG_ERROR,
572
                     "Floor 0 amplitude bits is 0.\n");
573
              return -1;
571
                av_log(vc->avccontext, AV_LOG_ERROR,
572
                       "Floor 0 amplitude bits is 0.\n");
573
                return -1;
574 574
            }
575 575
            floor_setup->data.t0.amplitude_offset = get_bits(gb, 8);
576 576
            floor_setup->data.t0.num_books        = get_bits(gb, 4) + 1;
......
606 606
            AV_DEBUG("floor0 order: %u\n", floor_setup->data.t0.order);
607 607
            AV_DEBUG("floor0 rate: %u\n", floor_setup->data.t0.rate);
608 608
            AV_DEBUG("floor0 bark map size: %u\n",
609
              floor_setup->data.t0.bark_map_size);
609
                     floor_setup->data.t0.bark_map_size);
610 610
            AV_DEBUG("floor0 amplitude bits: %u\n",
611
              floor_setup->data.t0.amplitude_bits);
611
                     floor_setup->data.t0.amplitude_bits);
612 612
            AV_DEBUG("floor0 amplitude offset: %u\n",
613
              floor_setup->data.t0.amplitude_offset);
613
                     floor_setup->data.t0.amplitude_offset);
614 614
            AV_DEBUG("floor0 number of books: %u\n",
615
              floor_setup->data.t0.num_books);
615
                     floor_setup->data.t0.num_books);
616 616
            AV_DEBUG("floor0 book list pointer: %p\n",
617
              floor_setup->data.t0.book_list);
617
                     floor_setup->data.t0.book_list);
618 618
            {
619
              int idx;
620
              for (idx = 0; idx < floor_setup->data.t0.num_books; ++idx) {
621
                  AV_DEBUG("  Book %d: %u\n",
622
                           idx+1,
623
                           floor_setup->data.t0.book_list[idx]);
624
              }
619
                int idx;
620
                for (idx = 0; idx < floor_setup->data.t0.num_books; ++idx) {
621
                    AV_DEBUG("  Book %d: %u\n",
622
                             idx+1,
623
                             floor_setup->data.t0.book_list[idx]);
624
                }
625 625
            }
626 626
#endif
627 627
        } else {

Also available in: Unified diff