From 4317306f34b18fe405ed2bde36c6d2dc06c07f5d Mon Sep 17 00:00:00 2001 From: Oded Shimon Date: Mon, 2 Oct 2006 05:56:32 +0000 Subject: [PATCH] Original Commit: r42 | ods15 | 2006-09-23 10:53:16 +0300 (Sat, 23 Sep 2006) | 2 lines fix for residue end Originally committed as revision 6450 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vorbis_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index 33a8ca4f5e..9ace0dc149 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -311,7 +311,7 @@ static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccon rc = &venc->residues[0]; rc->type = 0; rc->begin = 0; - rc->end = 1 << venc->blocksize[0]; + rc->end = 1 << (venc->blocksize[0] - 1); rc->partition_size = 64; rc->classifications = 1; rc->classbook = 1;