comparison vorbis_dec.c @ 11972:e36d1bb6d8b7 libavcodec

vorbisdec: Fix header parsing with no floor1 partitions
author conrad
date Sun, 27 Jun 2010 01:46:20 +0000
parents 5d9e0dad780b
children 7ca225db75e8
comparison
equal deleted inserted replaced
11971:5d9e0dad780b 11972:e36d1bb6d8b7
472 floor_setup->floor_type = get_bits(gb, 16); 472 floor_setup->floor_type = get_bits(gb, 16);
473 473
474 AV_DEBUG(" %d. floor type %d \n", i, floor_setup->floor_type); 474 AV_DEBUG(" %d. floor type %d \n", i, floor_setup->floor_type);
475 475
476 if (floor_setup->floor_type == 1) { 476 if (floor_setup->floor_type == 1) {
477 uint_fast8_t maximum_class = 0; 477 int maximum_class = -1;
478 uint_fast8_t rangebits; 478 uint_fast8_t rangebits;
479 uint_fast16_t floor1_values = 2; 479 uint_fast16_t floor1_values = 2;
480 480
481 floor_setup->decode = vorbis_floor1_decode; 481 floor_setup->decode = vorbis_floor1_decode;
482 482