Revision b8d5b161

View differences:

libavcodec/vorbis_enc.c
325 325
    for (i = 0; i < rc->classifications; i++) {
326 326
        int j;
327 327
        for (j = 0; j < 8; j++) rc->books[i][j] = 2 + j;
328
        rc->books[i][0] = rc->books[i][1] = rc->books[i][2] = rc->books[i][3] = -1;
328 329
    }
329 330

  
330 331
    venc->nmappings = 1;
......
750 751
        int range = 255 / fc->multiplier + 1;
751 752
        int j;
752 753
        put_bits(&pb, 1, 1); // non zero
753
        put_bits(&pb, ilog(range - 1), 113); // magic value - 3.7180282E-05
754
        put_bits(&pb, ilog(range - 1), 113); // both sides of X
754
        put_bits(&pb, ilog(range - 1), 180); // magic value - 3.7180282E-05
755
        put_bits(&pb, ilog(range - 1), 180); // both sides of X
755 756
        for (j = 0; j < fc->partitions; j++) {
756 757
            floor_class_t * c = &fc->classes[fc->partition_to_class[j]];
757 758
            codebook_t * book = &venc->codebooks[c->books[0]];
......
763 764
        }
764 765

  
765 766
        for (j = 0; j < samples; j++) {
766
            venc->floor[i * samples + j] = floor1_inverse_db_table[113];
767
            venc->floor[i * samples + j] = floor1_inverse_db_table[180];
767 768
        }
768 769
    }
769 770

  

Also available in: Unified diff