mirror of https://git.ffmpeg.org/ffmpeg.git
Original Commit: r49 | ods15 | 2006-09-23 12:52:21 +0300 (Sat, 23 Sep 2006) | 3 lines
fix off-by-one in both encoder and decoder. libvorbis and tremor work now, ffvorbis still doesn't Originally committed as revision 6456 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
33592a633f
commit
0e6fd0f12f
|
@ -389,7 +389,7 @@ static void put_codebook_header(PutBitContext * pb, codebook_t * cb) {
|
||||||
put_bits(pb, 1, ordered);
|
put_bits(pb, 1, ordered);
|
||||||
if (ordered) {
|
if (ordered) {
|
||||||
int len = cb->entries[0].len;
|
int len = cb->entries[0].len;
|
||||||
put_bits(pb, 5, len);
|
put_bits(pb, 5, len - 1);
|
||||||
i = 0;
|
i = 0;
|
||||||
while (i < cb->nentries) {
|
while (i < cb->nentries) {
|
||||||
int j;
|
int j;
|
||||||
|
|
Loading…
Reference in New Issue