Mercurial > libavcodec.hg
comparison vorbis_enc.c @ 3838:6ccaab22c4d6 libavcodec
Original Commit: r35 | ods15 | 2006-09-22 18:53:22 +0300 (Fri, 22 Sep 2006) | 4 lines
another off by one
header writing seems compliant now!
author | ods15 |
---|---|
date | Mon, 02 Oct 2006 05:56:16 +0000 |
parents | 2eb4d646d36b |
children | c5ec6d7710ba |
comparison
equal
deleted
inserted
replaced
3837:2eb4d646d36b | 3838:6ccaab22c4d6 |
---|---|
431 put_bits(pb, 16, rc->type); | 431 put_bits(pb, 16, rc->type); |
432 | 432 |
433 put_bits(pb, 24, rc->begin); | 433 put_bits(pb, 24, rc->begin); |
434 put_bits(pb, 24, rc->end); | 434 put_bits(pb, 24, rc->end); |
435 put_bits(pb, 24, rc->partition_size - 1); | 435 put_bits(pb, 24, rc->partition_size - 1); |
436 put_bits(pb, 6, rc->classifications); | 436 put_bits(pb, 6, rc->classifications - 1); |
437 put_bits(pb, 8, rc->classbook); | 437 put_bits(pb, 8, rc->classbook); |
438 | 438 |
439 for (i = 0; i < rc->classifications; i++) { | 439 for (i = 0; i < rc->classifications; i++) { |
440 int j, tmp = 0; | 440 int j, tmp = 0; |
441 for (j = 0; j < 8; j++) tmp |= (!!rc->books[i][j]) << j; | 441 for (j = 0; j < 8; j++) tmp |= (!!rc->books[i][j]) << j; |